/* BackgammonX v0.2.13 — 09-dice-turn-flow.css

   Owns: the compact, fixed/upright dice-and-turn HUD
   (.dtf-hud and its children) that sits above the board, entirely
   OUTSIDE .bgx-board-rotation-stage (js/22-dice-turn-flow.js's own
   markup lives in Bv0.2.13.html, never inside the rotation stage, so
   no future board-rotation transform can ever affect it).

   Does NOT touch: .app-main/.bgx-play-area-shell/.bgx-rail sizing
   (css/01, css/07 — the accepted v0.2.9-v0.2.12 large-board layout),
   button base appearance (.x-button* — css/05-x-shell.css, reused
   as-is), or any board/checker/rail-marker rule (css/02/06/07/08).
   Confirmed by SHA-256: none of those files changed this pass.

   Compact by design — "do not enlarge the existing rails" and "do not
   shrink the accepted large board": every rule below is sized to a
   single, short row plus a couple of one-line status strings, never a
   fixed pixel height that could push the board down meaningfully on a
   short viewport. */

:root { --bgx-css-09: 1; }

.dtf-hud {
  width: 100%;
  max-width: 1280px;   /* matches .bgx-play-area-shell's own desktop cap (css/07) — never wider than the board itself */
  margin: 0 auto 8px;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 9, 12, 0.28);
  border: 1px solid rgba(184, 145, 45, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  color: #f2f4f7;
}

.dtf-hud-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dtf-active-side-label {
  font-size: 11px;
  color: rgba(230, 230, 235, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dtf-active-side {
  font-size: 14px;
  font-weight: 700;
  min-width: 34px;
  /* v0.2.19 PATCH-2 — the longer "P2 — White" text (was "Red") pushed the
     dice stage's decorative launch-origin marker (28px left of the
     tray) over the tail of the name; reserving that width keeps the
     marker clear of the text. */
  margin-right: 30px;
}
/* v0.2.19 PATCH-2 §C — neutral, accessible text (inherits the HUD's own
   text colour, re-toned for Light appearance in css/11) plus a colour
   SWATCH accent whose body and edge tokens are the same ones the real
   checkers use (Black/White carry a contrasting edge). Ownership is
   carried by the "P1 —"/"P2 —" text, never by colour. */
.dtf-active-side.dtf-side-blue,
.dtf-active-side.dtf-side-red { color: inherit; }
.dtf-active-side.dtf-side-blue::before,
.dtf-active-side.dtf-side-red::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: -1px;
}
.dtf-active-side.dtf-side-blue::before {
  background: radial-gradient(circle at 35% 30%, var(--bgx-p1-light, #bfe0ff), var(--bgx-p1-mid, #62b5ff) 65%, var(--bgx-p1-dark, #2c74ad));
  border: 1.5px solid var(--bgx-p1-border, rgba(10, 30, 55, 0.55));
}
.dtf-active-side.dtf-side-red::before {
  background: radial-gradient(circle at 35% 30%, var(--bgx-p2-light, #ffc2c8), var(--bgx-p2-mid, #ff6675) 65%, var(--bgx-p2-dark, #b8323e));
  border: 1.5px solid var(--bgx-p2-border, rgba(55, 10, 15, 0.55));
}

/* Two visually distinct dice, fixed/upright regardless of any board
   rotation (this whole HUD lives outside the rotation stage). Doubles
   get an obvious extra highlight (gold ring), per the handoff's own
   "doubles are obvious" requirement.
   v0.2.19 §C — sized at exactly 2x the v0.2.18.2 baseline (44/40/38px
   desktop/tablet/phone, was 22/20/19px) per the owner's own explicit
   "twice each dimension, not merely twice the area" instruction. */
.dtf-dice {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.dtf-die {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(160deg, #fbf6ea, #d9cfae);
  color: #241a08;
  font-weight: 700;
  font-size: 13px;
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.dtf-die-double {
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 0 0 2px #d4a02a, 0 0 6px rgba(212, 160, 42, 0.7);
}

.dtf-roll-btn, .dtf-new-game-btn {
  font-size: 12px;
  padding: 6px 12px;
  margin-left: auto;
}
.dtf-new-game-btn { margin-left: 6px; }
.dtf-hud-row-primary .dtf-roll-btn:first-of-type { margin-left: auto; }

.dtf-opening-attribution, .dtf-result, .dtf-status, .dtf-test-mode-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
}
.dtf-opening-attribution { color: rgba(230, 230, 235, 0.75); }
.dtf-result {
  font-weight: 700;
  color: #d4a02a;
}
.dtf-status { color: rgba(230, 230, 235, 0.85); }
.dtf-test-mode-note {
  color: #ffcf6e;
  background: rgba(212, 160, 42, 0.1);
  border-radius: 6px;
  padding: 4px 7px;
}

.dtf-hud.dtf-test-mode { border-color: rgba(212, 160, 42, 0.5); }
.dtf-hud.dtf-phase-game-over { border-color: rgba(255, 102, 117, 0.4); }

/* Responsive: tablet/phone — compact further, never wraps into a
   second visually-heavy row beyond the natural flex-wrap already
   above, and never introduces horizontal overflow (max-width:100% at
   both breakpoints, matching .bgx-play-area-shell's own pattern). */
@media (max-width: 1023px) {
  .dtf-hud { max-width: 560px; padding: 7px 9px; }
  .dtf-die { width: 40px; height: 40px; }
}
@media (max-width: 639px) {
  .dtf-hud { max-width: 100%; padding: 6px 8px; }
  .dtf-hud-row { gap: 7px; }
  .dtf-active-side-label { display: none; }   /* the side name/color alone is enough at this width */
  .dtf-die { width: 38px; height: 38px; }
  .dtf-roll-btn, .dtf-new-game-btn { font-size: 11px; padding: 5px 9px; }
}
