/* DartsHub cast surface — design tokens, stage and the Cricket gameplay screen.
 * Tokens and values come from the Claude Design handoffs ("DartsHub Screencast
 * System Design" and "Cricket ML Layout"). The shared setup / match card /
 * transition screens live in shared-screens.css. */

/* Batman Forever Alternate — freeware display face. Confirm the licence before
 * shipping to real users. */
@font-face {
  /* Audiowide (SIL OFL, fonts/AUDIOWIDE-OFL.txt): the display face until the
     final one is picked. */
  font-family: 'Audiowide';
  src: url('fonts/audiowide.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --dh-surface-primary: linear-gradient(180deg, #001546 0%, #00091f 100%);
  --dh-brand-blue: #014cfd;
  --dh-action-blue: #0140d4;
  --dh-bright-blue: #429bfc;
  --dh-white: #ffffff;
  --dh-text-primary: #d1d5d8;
  --dh-text-secondary: #8e98a0;
  --dh-text-tertiary: rgba(142, 152, 160, 0.64);
  --dh-panel-08: rgba(209, 213, 216, 0.08);
  --dh-panel-16: rgba(209, 213, 216, 0.16);
  --dh-stroke-08: rgba(209, 213, 216, 0.08);
  --dh-stroke-24: rgba(209, 213, 216, 0.24);
  --dh-radius-m: 10px;
  --dh-radius-xl: 16px;
  --dh-ls-display: 0.04em;
  --dh-ls-micro: 0.08em;
  --dh-font-display: 'Audiowide', 'Bungee', system-ui, sans-serif;
  --dh-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Cricket segment states (Cricket ML Layout · "Stylized board · segment states") */
  --cr-score-here: #ffc93c;
  --cr-to-close: #1e88fc;
  --cr-dead: #747f8a;
  --cr-not-in-play: #0e1b33;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #00091f;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center;
  overflow: hidden;
  background: var(--dh-surface-primary);
  color: var(--dh-text-primary);
  font-family: var(--dh-font-display);
  letter-spacing: var(--dh-ls-display);
  text-transform: uppercase;
}

/* Every screen is laid out for 1920 × 1080 exactly and centred in the stage.
 * An ultrawide monitor is wider than the frame, and letting the standby
 * screens fill it stretched their furniture — a quote rail across the whole
 * 21:9, statistics columns drifting apart — while gameplay stayed composed.
 * One frame for all of them; the stage's own gradient fills the sides. */
.screen {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%);
}

/* ── Keyframes (verbatim from the screencast handoff) ─────────────────────── */
@keyframes dh-pulse { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
@keyframes dh-breathe { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
@keyframes dh-sweep { 0% { transform: translateX(-100%) } 100% { transform: translateX(320%) } }
@keyframes dh-rise { from { opacity: 0; transform: translateY(36px) } to { opacity: 1; transform: translateY(0) } }
@keyframes dh-pop { 0% { opacity: 0; transform: scale(.82) } 60% { transform: scale(1.03) } 100% { opacity: 1; transform: scale(1) } }
@keyframes dh-flash { 0% { opacity: 0 } 18% { opacity: 1 } 100% { opacity: 0 } }
@keyframes dh-slam { 0% { opacity: 0; transform: scale(1.5); letter-spacing: .5em } 30% { opacity: 1; transform: scale(1); letter-spacing: .14em } 72% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(.96) } }
@keyframes dh-bar { 0% { transform: scaleX(0) } 40% { transform: scaleX(1) } 100% { transform: scaleX(1) } }
@keyframes dh-pulse-ring { 0%, 100% { opacity: 1 } 50% { opacity: .62 } }

/* ── Pairing (not in the handoff yet: on-brand placeholder) ───────────────── */
.pairing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  position: relative;
  height: 100%;
}
/* Burn-in (QA bb27bc19): the block drifts on a slow loop (±64 × ±36 px, 10 min), the logo on its own (±20 px,
 * 7 min). Under a pixel a second: nobody sees it move, no edge stays put. Translate only, so the QR scans anywhere. */
.pairing__drift {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  animation: pair-drift 600s linear infinite;
}
.brand--drift { animation: pair-drift-logo 420s linear infinite, pair-dim 8s ease 600s both; }
/* ...and after 10 min with nobody pairing the screen dims to 60 % (QA bb27bc19, the second half of the burn-in
 * proposal): the white QR card and the logo stop sitting at full light for hours. The QR still scans. A phone
 * pairing takes the block back to full light (.pairing--live owns the animation from then on). */
.pairing { animation: pair-dim 8s ease 600s both; }
:has(> .pairing--live) > .brand--drift { animation: pair-drift-logo 420s linear infinite; }
@keyframes pair-dim { from { opacity: 1 } to { opacity: .6 } }
@keyframes pair-drift {
  0%, 100% { transform: translate(0, 0) }
  17% { transform: translate(-64px, -28px) }
  33% { transform: translate(40px, -36px) }
  50% { transform: translate(64px, 22px) }
  67% { transform: translate(-24px, 36px) }
  83% { transform: translate(-56px, 8px) }
}
@keyframes pair-drift-logo {
  0%, 100% { transform: translate(0, 0) }
  25% { transform: translate(20px, 14px) }
  50% { transform: translate(6px, -12px) }
  75% { transform: translate(-16px, 10px) }
}
.pairing__hint { font-size: 30px; letter-spacing: .2em; color: var(--dh-text-secondary); }
.pairing__code {
  font-size: 220px;
  line-height: 1;
  color: #fff;
  letter-spacing: .18em;
  font-variant-numeric: tabular-nums;
}
.pairing__body { display: flex; align-items: center; gap: 96px; }
.pairing__qr {
  width: 300px;
  height: 300px;
  padding: 22px;
  background: #fff;
  border-radius: 24px;
}
.pairing__qr svg { display: block; width: 100%; height: 100%; }
.pairing--live .pairing__qr { animation: pair-out 420ms var(--dh-ease-out) both }

/* After pairing the code stays small in a corner, so a phone that dropped off
 * can find its way back without anyone walking to the TV. */
.code-chip {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 10;
  font: 15px/1 var(--dh-font-display);
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .38);
  pointer-events: none;
}
.code-chip[hidden] { display: none; }
.pairing__status { font-size: 26px; letter-spacing: .14em; color: var(--dh-bright-blue); animation: dh-breathe 2.2s infinite; }
.pairing__status--offline { color: #d11212; }
.pairing__fullscreen { font-size: 20px; letter-spacing: .14em; color: var(--dh-text-secondary); min-height: 1.4em; margin-top: 8px; }
.pairing--live .pairing__fullscreen { animation: pair-out 420ms var(--dh-ease-out) both }

/* The handshake. Quiet on purpose: the room has just typed a code into a phone
 * and needs telling it worked, which is a confirmation, not a moment. The code
 * settles, one green ring leaves it with a thinner one behind, the waiting line
 * becomes a tick, and the screen bows out under the quotes coming up. */
.pairing__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 9999px;
  border: 3px solid rgba(58, 210, 78, .5);
  opacity: 0;
  pointer-events: none;
  animation: pair-ring 1100ms var(--dh-ease-out) 60ms both;
}
.pairing__ring--trail { border-width: 2px; border-color: rgba(58, 210, 78, .3); animation-delay: 240ms; }
@keyframes pair-ring {
  0% { opacity: 0; transform: scale(.16) }
  18% { opacity: 1 }
  100% { opacity: 0; transform: scale(1.9) }
}
.pairing__bloom {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(closest-side at 50% 50%, rgba(58, 210, 78, .2) 0%, rgba(58, 210, 78, 0) 72%);
  animation: pair-bloom 1250ms var(--dh-ease-out) both;
}
@keyframes pair-bloom { 0% { opacity: 0 } 22% { opacity: 1 } 100% { opacity: 0 } }
/* The code has done its job: it tightens and settles rather than sitting there
 * waiting for input that has already arrived. */
.pairing--live .pairing__code { animation: pair-lock 640ms var(--dh-ease-out) both }
@keyframes pair-lock {
  0% { letter-spacing: .18em; transform: scale(1) }
  45% { letter-spacing: .15em; transform: scale(.968) }
  100% { letter-spacing: .16em; transform: scale(.982) }
}
.pairing--live .pairing__hint { animation: pair-out 420ms var(--dh-ease-out) both }
.pairing--live .pairing__status {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #3ad24e;
  animation: pair-in 520ms var(--dh-ease-out) 120ms both;
}
.pairing__tick path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: pair-tick 400ms var(--dh-ease-out) 260ms forwards }
@keyframes pair-tick { to { stroke-dashoffset: 0 } }
@keyframes pair-in { 0% { opacity: 0; transform: translateY(16px) } 100% { opacity: 1; transform: none } }
@keyframes pair-out { 0% { opacity: 1 } 100% { opacity: 0 } }
/* 770 + 480 = the 1250ms the screen is given: it is gone as the quotes arrive. */
.pairing--live { animation: pair-exit 480ms var(--dh-ease-out) 770ms both }
@keyframes pair-exit { 0% { opacity: 1; transform: translateY(0) } 100% { opacity: 0; transform: translateY(-28px) } }
@media (prefers-reduced-motion: reduce) {
  .pairing__ring, .pairing__bloom { display: none }
  .pairing--live, .pairing--live .pairing__code, .pairing--live .pairing__status,
  .pairing--live .pairing__hint, .pairing__tick path { animation: none }
}

/* ── Cricket gameplay ─────────────────────────────────────────────────────── */
/* Backdrop: the same blue bloom as the setup and match card screens
 * (.backdrop in shared-screens.css). */
.cricket__board,
.x01__board {
  position: absolute;
  left: 50%;
  top: 600px;
  width: 980px;
  height: 980px;
  transform: translate(-50%, -50%);
}
.cricket__board svg,
.x01__board svg { display: block; }

/* A dart landing. The board takes the knock: a short recoil pivoting on the
 * hit, so the motion comes from where the dart went in. One percent is enough
 * — at 980px across a living room that already reads as impact, and anything
 * more turns the stage into a trampoline. The crosshair stamps in over it and
 * a ring goes out from the point. */
.board--impact { animation: board-impact 420ms var(--dh-ease-out) both; }
@keyframes board-impact {
  0% { transform: scale(1) }
  10% { transform: scale(1.011) }
  34% { transform: scale(.9965) }
  58% { transform: scale(1.0025) }
  100% { transform: scale(1) }
}
.board__hit--land {
  transform-box: fill-box;
  transform-origin: center;
  animation: board-stamp 240ms var(--dh-ease-out) both;
}
@keyframes board-stamp {
  0% { opacity: 0; transform: scale(2.4) }
  48% { opacity: 1; transform: scale(.86) }
  100% { opacity: 1; transform: scale(1) }
}
.board__shock {
  transform-box: fill-box;
  transform-origin: center;
  animation: board-shock 460ms var(--dh-ease-out) both;
}
@keyframes board-shock {
  0% { opacity: .8; transform: scale(.14) }
  70% { opacity: .2 }
  100% { opacity: 0; transform: scale(1) }
}
/* A run building. One dart in the target is a good dart; two is a finish — or
 * a Shanghai — one dart away, and the board should say so before the third is
 * thrown. What is still lit burns brighter, and the dart that lands next hits
 * harder: a longer recoil, a wider ring, and at three a second ring behind it.
 * The bed's step-up is declared later in this sheet and so wins while it is
 * running; the throb takes the bed over once the step-up is done. */
.board--impact-2 { animation: board-impact-2 520ms var(--dh-ease-out) both }
@keyframes board-impact-2 {
  0% { transform: scale(1) }
  10% { transform: scale(1.019) }
  34% { transform: scale(.994) }
  58% { transform: scale(1.004) }
  100% { transform: scale(1) }
}
.board--impact-3 { animation: board-impact-3 640ms var(--dh-ease-out) both }
@keyframes board-impact-3 {
  0% { transform: scale(1) }
  9% { transform: scale(1.028) }
  30% { transform: scale(.991) }
  52% { transform: scale(1.007) }
  74% { transform: scale(.998) }
  100% { transform: scale(1) }
}
.board__shock--wide { animation: board-shock-wide 620ms var(--dh-ease-out) both }
@keyframes board-shock-wide {
  0% { opacity: .45; transform: scale(.08) }
  70% { opacity: .12 }
  100% { opacity: 0; transform: scale(1) }
}
.board--hot-1 .route--now { filter: brightness(1.22) drop-shadow(0 0 16px rgba(255, 201, 60, .55)) }
.board--hot-2 .route--now {
  filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 201, 60, .9));
  animation: route-throb 860ms var(--dh-ease-out) infinite;
}
.board--hot-1 .route--later { filter: brightness(1.3) }
.board--hot-2 .route--later { filter: brightness(1.6) }
@keyframes route-throb { 0%, 100% { opacity: 1 } 50% { opacity: .68 } }

@media (prefers-reduced-motion: reduce) {
  .board--impact, .board--impact-2, .board--impact-3, .board__hit--land { animation: none }
  .board--hot-2 .route--now { animation: none }
  .board__shock { display: none }
}

/* ── A number moving, a bar growing ───────────────────────────────────────── */
/* The gold "+N" the Academy games print off a banked score
 * (academy_score_pop.dart): #FFD37A, 700ms, in over the first fifth and out
 * over the rest, rising as it goes.
 *
 * The phone has empty space above the score to rise into. The cast card, sized
 * around the biggest possible board, has none — every edge of it is the head
 * row, the stats or the checkout — so the pop carries the card's own chip
 * (radius 10, 2px border, glass) and reads over whatever it passes. Out of
 * flow either way: no layout moves for it. */
.score-pop {
  position: absolute;
  right: 0;
  /* Above the number, not over it: the score is the one thing on the card that
   * must stay readable while it changes. */
  bottom: calc(100% + 6px);
  pointer-events: none;
  padding: 3px 12px 5px;
  border-radius: 10px;
  background: rgba(11, 13, 17, .74);
  border: 2px solid rgba(255, 201, 60, .45);
  backdrop-filter: blur(16px);
  font-size: 36px;
  line-height: 1;
  color: #ffd37a;
  text-shadow: 0 0 18px rgba(255, 201, 60, .45);
  animation: score-pop 700ms var(--dh-ease-out) both;
}
.seats--compact .score-pop { font-size: 30px; }
.player--solo .score-pop { font-size: 48px; }
@keyframes score-pop {
  0% { opacity: 0; transform: translateY(10px) scale(.92) }
  20% { opacity: 1; transform: translateY(0) scale(1) }
  100% { opacity: 0; transform: translateY(-34px) scale(1) }
}

/* A bar that grew starts from where it was and runs out to the new value on
 * the same curve, with a flare of the same gold as it goes. Two keyframes
 * because the bars grow along different properties. */
.leg-progress__fill--grew { animation: bar-grow-width 620ms var(--dh-ease-out) }
@keyframes bar-grow-width {
  from { width: var(--grow-from) }
  35% { filter: brightness(1.5) saturate(1.15) }
  to { filter: none }
}
.sh-cell--grew::after { animation: bar-grow-height 620ms var(--dh-ease-out) }
@keyframes bar-grow-height {
  from { height: calc(var(--grow-from) * (100% - var(--sh-label))) }
  35% { filter: brightness(1.5) saturate(1.15) }
  to { filter: none }
}

/* Cricket counts in marks, not lengths, so its progress grows a cell at a
 * time: the one that just landed runs out from its own edge through the same
 * gold, and the row flashes when the third mark closes the number. No
 * fill-mode and nothing in box-shadow — the cells carry their state there, and
 * a filled keyframe would leave a finished mark holding this animation's
 * values. The row is mirrored in the right column but its three cells are not:
 * the first mark is the left-hand cell on either side of the board. */
.marks__cell--new { transform-origin: left center; animation: mark-in 420ms var(--dh-ease-out) }
@keyframes mark-in {
  0% { transform: scaleX(.16); background-color: #ffc93c }
  55% { transform: scaleX(1.03) }
  100% { transform: scaleX(1) }
}
.marks__row--closing { animation: mark-closed 620ms var(--dh-ease-out) }
@keyframes mark-closed {
  0% { background: rgba(255, 201, 60, .38) }
  100% { background: transparent }
}
@media (prefers-reduced-motion: reduce) {
  .score-pop { display: none }
  .leg-progress__fill--grew, .sh-cell--grew::after,
  .marks__cell--new, .marks__row--closing { animation: none }
}

.cricket__nav,
.x01__nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 148px;
  display: grid;
  /* minmax(0,…): a long line shrinks inside its side of the nav instead of
   * widening it and pushing the dart discs off the centre of the board. */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 40px;
  align-items: center;
  padding: 0 64px;
}
/* No bar and no edge: the nav's ground is a scrim that fades out, so the
 * gameplay backdrop carries straight through it. It lives on a pseudo-element
 * because the mask that fades the blur with the tint — a hard blur line being
 * as visible as a hard colour one — would otherwise fade the nav's own text. */
.cricket__nav::before,
.x01__nav::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Behind the nav's own text: a positioned pseudo-element otherwise paints
   * over in-flow content and swallows the title. */
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 9, 31, .62) 0%, rgba(0, 9, 31, .34) 62%, rgba(0, 9, 31, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
}
/* Three lines: the game, what the game is asking for, where the match stands.
 * One fact a line keeps every line short whatever the state of the game, and
 * a line that still runs long is cut rather than let into the discs. */
.cricket__mode,
.x01__mode { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cricket__mode-title,
.x01__mode-title { font-size: 52px; line-height: 1; color: #fff; white-space: nowrap; overflow: hidden; }
.cricket__mode-sub,
.x01__mode-sub,
.cricket__mode-leg,
.x01__mode-leg { font-size: 24px; line-height: 1; letter-spacing: var(--dh-ls-micro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* What the game is asking for changes through a leg, so it is the brighter of
 * the two; where the match stands is there when somebody looks for it. */
.cricket__mode-sub,
.x01__mode-sub { color: rgba(255, 255, 255, .86); }
.cricket__mode-leg,
.x01__mode-leg { color: var(--dh-text-secondary); }
.cricket__mode-sub:empty,
.x01__mode-sub:empty { display: none; }
.cricket__visit,
.x01__visit { display: flex; align-items: center; gap: 24px; }
.cricket__status,
.x01__status { display: flex; justify-content: flex-end; align-items: center; }
.cricket__autoscoring,
.cast-autoscoring {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 9999px;
  background: rgba(11, 13, 17, .44);
  border: 1px solid rgba(76, 175, 80, .30);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 28px rgba(76, 175, 80, .14);
  /* 22px: the German label next to the dart tiles leaves the visit total room. */
  font-size: 22px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  color: #fff;
  white-space: nowrap;
}
.cricket__autoscoring svg,
.cast-autoscoring svg { flex: 0 0 auto; filter: drop-shadow(0 0 6px rgba(76, 175, 80, .65)); }

/* The visit: three dart tiles and the visit total — the phone's DartsHub 2.0
 * DartSlots (ds2 web/ds.css `.dh-slot`), scaled for the far side of a room.
 * The phone sets them on its blue hero; here the nav's dark scrim is the
 * ground, so a thrown tile is the lighter panel and one still to throw the
 * quieter one. Sizes are fixed so the row never moves while a visit fills. */
/* The visit sits under a line kept for the guide ('Checkout · 2 darts'),
 * empty when there is none, so the tiles never jump when a finish comes on. */
.dt { display: flex; align-items: flex-end; gap: 12px; }
.dt-col { display: flex; flex-direction: column; gap: 8px; }
.dt-tiles { display: flex; align-items: stretch; gap: 12px; }
.dt-guide { height: 22px; font-size: 22px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: #ffc93c; text-align: center; white-space: nowrap; overflow: hidden; }
.dt-tile {
  position: relative;
  width: 208px;
  height: 92px;
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(209, 213, 216, .07);
  color: #fff;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.dt-tile > * { align-self: center; }
.dt-bed { flex: none; max-width: 100%; font-size: 40px; text-align: center; white-space: nowrap; overflow: hidden; }
.dt-tile--long .dt-bed { font-size: 32px; }
.dt-mark { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.dt-tile--thrown { background: rgba(209, 213, 216, .16); justify-content: center; }
/* Still to throw: the dart alone in the middle of its tile. */
.dt-tile--pend { justify-content: center; }
.dt-pd { flex: none; display: grid; place-items: center; }
.dt-pd i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.dt-cam { width: 38px; height: 38px; color: rgba(255, 255, 255, .42); }
.dt-tile--next { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .42); }
.dt-tile--next .dt-pd i { background: rgba(255, 255, 255, .7); }
.dt-tile--next .dt-cam { color: rgba(255, 255, 255, .75); }
.dt-tile--empty { justify-content: center; background: rgba(209, 213, 216, .05); }
.dt-tile--empty .dt-bed { flex: none; color: rgba(255, 255, 255, .3); }

.dt-tile--gold { background: #ffc93c; }
.dt-tile--gold .dt-bed { color: #00091f; }
.dt-tile--red { background: rgba(251, 97, 97, .42); }
.dt-tile--miss .dt-bed { color: rgba(255, 255, 255, .5); }
.dt-tile--x .dt-bed {
  text-decoration: line-through;
  text-decoration-color: #fb6161;
  text-decoration-thickness: 4px;
  opacity: .75;
}
.dt-tile--fixed { box-shadow: inset 0 0 0 4px #2fd47a; }

/* The guide. The aim tile: the bed the next dart goes at, gold, a gold
 * outline that breathes. The route after it: the same beds, quieter. */
.dt-tile--aim {
  background: rgba(255, 201, 60, .12);
  box-shadow: inset 0 0 0 3px #ffc93c;
  animation: dt-aim 1.8s ease-in-out infinite;
}
.dt-tile--aim .dt-dart { color: #ffc93c; }
.dt-tile--aim .dt-bed { color: #ffc93c; }
.dt-tile--route .dt-bed { color: rgba(255, 201, 60, .55); }
@keyframes dt-aim {
  0%, 100% { box-shadow: inset 0 0 0 3px #ffc93c, 0 0 0 rgba(255, 201, 60, 0); }
  50% { box-shadow: inset 0 0 0 3px #ffc93c, 0 0 26px rgba(255, 201, 60, .45); }
}
@media (prefers-reduced-motion: reduce) { .dt-tile--aim { animation: none; } }

/* The dart arriving: it lands in its tile the moment the phone reads it. */
.dt-tile--in { animation: dt-in 420ms var(--dh-ease-out) both; }
@keyframes dt-in {
  0% { transform: scale(1.18); filter: brightness(1.9); }
  60% { transform: scale(.98); filter: brightness(1.1); }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .dt-tile--in { animation: none; } }

.dt-total {
  flex: none;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding-left: 8px;
  line-height: 1;
}
.dt-total__label { font-size: 20px; letter-spacing: var(--dh-ls-micro); color: rgba(255, 255, 255, .6); white-space: nowrap; }
.dt-total__value { font-weight: 400; font-size: 52px; color: #fff; font-variant-numeric: tabular-nums; }

/* ── Drama: the tiles and the stage, building to a checkout or a bust ──────
 * (components/drama.js). Transforms and opacity, apart from the tiles' own
 * small backgrounds. */

/* The dart in hand, nothing to aim at: brand blue, a dart beating in it. */
.dt-tile--throw { background: linear-gradient(180deg, #014cfd 0%, #0136b8 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 0 24px rgba(1, 76, 253, .45); }
.dt-dart { width: 46px; height: 46px; color: #fff; animation: dt-dart 1.2s ease-in-out infinite; }
@keyframes dt-dart { 0%, 100% { transform: scale(.9) rotate(0deg); opacity: .75 } 50% { transform: scale(1.12) rotate(-8deg); opacity: 1 } }

/* A checkout on: the aim goes hot — fuller gold, a shimmer running across it,
 * and a glow that grows as the finish gets closer (heat 1 → 3). */
.dt-tile--hot.dt-tile--aim {
  background: linear-gradient(105deg, rgba(255, 201, 60, .22) 30%, rgba(255, 236, 170, .55) 50%, rgba(255, 201, 60, .22) 70%) 0 0 / 300% 100%;
  animation: dt-hot 1.5s ease-in-out infinite, dt-shimmer 2.2s linear infinite;
}
.dt-heat-2.dt-tile--aim { animation-duration: 1.1s, 1.6s; }
.dt-heat-3.dt-tile--aim { animation: dt-hot-3 .8s ease-in-out infinite, dt-shimmer 1.1s linear infinite; }
.dt-tile--hot.dt-tile--route { background: rgba(255, 201, 60, .1); box-shadow: inset 0 0 0 2px rgba(255, 201, 60, .4); }
.dt-tile--hot.dt-tile--route .dt-bed { color: rgba(255, 201, 60, .78); }
@keyframes dt-shimmer { from { background-position: 100% 0 } to { background-position: -50% 0 } }
@keyframes dt-hot {
  0%, 100% { box-shadow: inset 0 0 0 3px #ffc93c, 0 0 10px rgba(255, 201, 60, .35); }
  50% { box-shadow: inset 0 0 0 4px #ffd96e, 0 0 34px rgba(255, 201, 60, .7); }
}
@keyframes dt-hot-3 {
  0%, 100% { box-shadow: inset 0 0 0 4px #ffc93c, 0 0 22px rgba(255, 201, 60, .55); transform: scale(1); }
  50% { box-shadow: inset 0 0 0 5px #ffe28f, 0 0 56px rgba(255, 201, 60, .95); transform: scale(1.05); }
}
.dt-guide--hot { text-shadow: 0 0 16px rgba(255, 201, 60, .8); animation: dt-guide 1.4s ease-in-out infinite; }
@keyframes dt-guide { 0%, 100% { opacity: .8 } 50% { opacity: 1 } }

/* A dart that hit its bed: the tile bursts gold, and keeps the gold text. */
.dt-tile--routed { background: rgba(255, 201, 60, .2); }
.dt-tile--routed .dt-bed { color: #ffc93c; }
.dt-tile--burst { animation: dt-burst 700ms var(--dh-ease-out) both; }
.dt-tile--burst::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 4px #ffc93c;
  pointer-events: none;
  animation: dt-burst-ring 700ms var(--dh-ease-out) both;
}
@keyframes dt-burst {
  0% { transform: scale(1.4); background-color: #ffe9a8; filter: brightness(2); }
  35% { transform: scale(.94); background-color: #ffc93c; }
  100% { transform: none; filter: none; }
}
@keyframes dt-burst-ring { from { transform: scale(1); opacity: 1 } to { transform: scale(1.7, 2.1); opacity: 0 } }

/* Off the route: the plan is drawn again, dropping into place. */
.dt-tile--retarget { animation: dt-retarget 560ms var(--dh-ease-out) both; }
@keyframes dt-retarget {
  0% { opacity: .25; transform: translateY(-18px) scale(.92); }
  60% { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}

/* Bust: the tiles wash red and crack. */
.dt-tile--x { background: rgba(251, 97, 97, .3); overflow: hidden; }
.dt-tile--x::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 208 92' preserveAspectRatio='none'%3E%3Cpath d='M0 38 L46 50 L70 30 L104 58 L132 40 L160 62 L208 44 M104 58 L96 92 M70 30 L78 0 M160 62 L176 92' fill='none' stroke='%23ffd0d0' stroke-width='2.5' stroke-opacity='.75'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  animation: dt-crack 380ms var(--dh-ease-out) both;
}
@keyframes dt-crack { from { opacity: 0; transform: scale(1.2) } to { opacity: 1; transform: none } }

/* The stage. Tension 1: a lift of light over the board. Tension 2: the room
 * closes in, everything but the last aim tile dims, the tile takes a
 * spotlight and a heartbeat, the board leans in. Tension 3: the leg. */
.drama-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.drama-vignette::before,
.drama-vignette::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--dh-ease-out); }
.drama-vignette::before { background: radial-gradient(circle at 50% 600px, rgba(255, 214, 120, .2) 0, rgba(66, 155, 252, .12) 360px, transparent 620px); mix-blend-mode: screen; }
.drama-vignette::after { background: radial-gradient(ellipse 980px 760px at 50% 560px, transparent 30%, rgba(0, 4, 14, .82) 100%); transition-duration: 1400ms; }
[data-tension="1"] > .drama-vignette::before { opacity: 1; }
[data-tension="2"] > .drama-vignette::before { opacity: .7; }
[data-tension="2"] > .drama-vignette::after { opacity: 1; }
[data-tension="3"] > .drama-vignette::before { opacity: 1; transition-duration: 200ms; }
.x01__board { transition: scale 3.2s var(--dh-ease-out); }
[data-tension="2"] .x01__board { scale: 1.03; }
[data-tension="2"] .x01__mode,
[data-tension="2"] .x01__status,
[data-tension="2"] .dt-total,
[data-tension="2"] .dt-tile:not(.dt-tile--aim) { opacity: .4; transition: opacity 900ms var(--dh-ease-out); }
[data-tension="2"] .dt-tile--aim { animation: dt-heartbeat 1.05s ease-in-out infinite, dt-shimmer 1.1s linear infinite; z-index: 1; }
[data-tension="2"] .dt-tile--aim::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -40px;
  width: 640px;
  height: 1000px;
  translate: -50% 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 0, rgba(255, 220, 130, .28), rgba(255, 220, 130, .08) 55%, transparent 100%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  animation: drama-beam 1.4s var(--dh-ease-out) both;
}
@keyframes drama-beam { from { opacity: 0 } to { opacity: 1 } }
@keyframes dt-heartbeat {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 4px #ffc93c, 0 0 30px rgba(255, 201, 60, .6); }
  14% { transform: scale(1.08); box-shadow: inset 0 0 0 5px #ffe9a8, 0 0 70px rgba(255, 201, 60, 1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); box-shadow: inset 0 0 0 5px #ffe28f, 0 0 54px rgba(255, 201, 60, .9); }
  70% { transform: scale(1); }
}

/* Effects laid over the board: segments shattering, the shockwave, ripples. */
.drama-fx { position: absolute; left: 50%; top: 600px; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; overflow: visible; }
.drama-shatter__flash { fill: #ffd76a; animation: drama-seg-flash 520ms ease-out both; }
.drama-shatter__shard { fill: #ffc93c; stroke: #fff2c4; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: drama-shard 900ms cubic-bezier(.2, .7, .3, 1) both; }
.drama-shatter--final .drama-shatter__shard { animation-duration: 1300ms; }
.drama-shatter__ring { fill: none; stroke: #ffc93c; stroke-width: 6; animation: drama-ring 800ms var(--dh-ease-out) both; }
@keyframes drama-seg-flash { 0% { opacity: 0 } 25% { opacity: 1 } 100% { opacity: 0 } }
@keyframes drama-shard {
  0%, 12% { transform: none; opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--spin)) scale(.5); opacity: 0; }
}
@keyframes drama-ring { from { transform: scale(.3); opacity: 1 } to { transform: scale(4); opacity: 0 } }
.drama-shot__wave { fill: none; stroke: #fff4d0; stroke-width: 14; animation: drama-wave 1100ms cubic-bezier(.15, .7, .3, 1) both; }
@keyframes drama-wave { from { transform: scale(.2); opacity: 1 } to { transform: scale(12); opacity: 0 } }
.drama-shot__ripple { fill: none; stroke: #ffc93c; stroke-width: 5; transform-box: view-box; transform-origin: 50% 50%; animation: drama-ripple 1000ms var(--dh-ease-out) both; }
@keyframes drama-ripple { 0% { transform: scale(1); opacity: 0 } 15% { opacity: .95 } 100% { transform: scale(1.4); opacity: 0 } }
.drama-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 600px, #fffbe8 0, rgba(255, 214, 110, .75) 420px, rgba(255, 201, 60, .2) 1000px); }
.drama-flash--play { animation: drama-flash 800ms ease-out both; }
/* Full-frame flashes peak at .45 at most (FLASH_MAX in motion.js). */
@keyframes drama-flash { 0% { opacity: 0 } 12% { opacity: .45 } 100% { opacity: 0 } }

/* Bust: the stage shakes, washes red, the score snaps back. */
.drama-shake { animation: drama-shake 620ms cubic-bezier(.36, .07, .19, .97) both; }
@keyframes drama-shake {
  0%, 100% { translate: 0 0; }
  10% { translate: -18px 4px; } 20% { translate: 16px -6px; } 30% { translate: -14px 6px; }
  40% { translate: 12px -4px; } 55% { translate: -8px 2px; } 70% { translate: 5px -2px; } 85% { translate: -2px 0; }
}
.drama-redwash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 40%, rgba(251, 97, 97, .15), rgba(160, 10, 10, .55)); }
.drama-redwash--play { animation: drama-redwash 1100ms ease-out both; }
@keyframes drama-redwash { 0% { opacity: 0 } 15% { opacity: 1 } 100% { opacity: 0 } }
.drama-snap { display: inline-block; animation: drama-snap 760ms var(--dh-ease-out) both; }
@keyframes drama-snap {
  0% { transform: translateY(-30px) scale(1.15); color: #fb6161; }
  45% { transform: translateY(6px) scale(.96); color: #fb6161; }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-dart, .dt-tile--burst, .dt-tile--burst::after, .dt-tile--retarget, .dt-tile--x::after,
  .drama-shake, .drama-snap, .drama-shatter__shard, .drama-shatter__ring, .drama-shot__wave, .drama-shot__ripple { animation: none !important; }
  .drama-shatter__shard, .drama-shot__wave, .drama-shot__ripple, .drama-shatter__ring { display: none; }
  .dt-tile--hot.dt-tile--aim, [data-tension="2"] .dt-tile--aim { animation: none; box-shadow: inset 0 0 0 4px #ffc93c, 0 0 30px rgba(255, 201, 60, .6); }
  [data-tension="2"] .x01__board { scale: none; }
  .drama-flash--play { animation-name: rm-glow; }
}

/* Player column (left player mirrored on the right) */
.player {
  position: absolute;
  top: 196px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.player--left { left: 64px; align-items: flex-start; }
.player--right { right: 64px; align-items: flex-end; }
.player__head { display: flex; align-items: center; gap: 24px; }
.player--right .player__head { flex-direction: row-reverse; }
.player__avatar { width: 120px; height: 120px; border-radius: 9999px; overflow: hidden; flex-shrink: 0; }
.player__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__who { display: flex; flex-direction: column; gap: 12px; }
.player--left .player__who { align-items: flex-start; }
.player--right .player__who { align-items: flex-end; }
.player__name { font-size: 48px; line-height: 1; white-space: nowrap; color: #fff; }
/* ── Name plate ───────────────────────────────────────────────────────────
 * A card is two pieces: the name plate (avatar and name) on top, and the
 * stats under it in a fixed width. A long name is the plate's problem, not the
 * card's: it wraps between words, two lines at most, and a single word too
 * long for its line steps its type down (components/name-plate.js fits it
 * after render, and gives every name on the screen the height of the tallest,
 * so the rows under the names stay level from card to card). A short name
 * sits on the bottom line of that room, against its tags. */
.player { --name-max-rows: 2; }
.player__who { min-width: 0; }
.player__name {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  line-height: 1.04;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.player--right .player__who .player__name { text-align: right; }
/* The last resort, past the smallest step: break the word, never cut it. */
.player__name--break { overflow-wrap: anywhere; }
/* Head to head and solo: the stats column has one width whatever the names are, the
 * width the figures need, so it never reaches the board. The plate above it
 * may run wider, out towards the board's top, but stops short of the number
 * ring: the 12 and the 18 start 684px in from either edge, and the thrower's
 * name steps up by 1.05 (below), so the plate ends at 64 + 556 × 1.05 ≈ 648px
 * (owner QA ca3d305b: "SPACE AGENT X" ran into the 12 at 616px). A name that
 * needs more wraps to a second line or steps its type down (name-plate.js). */
.screen--game .player:not([data-seat]):not(.player--solo),
.screen--game:not(.game--cricket) .player--solo { width: 448px; }
.screen--game .player:not([data-seat]):not(.player--solo) > .player__head,
.screen--game:not(.game--cricket) .player--solo > .player__head { width: max-content; max-width: 556px; }
.player__progress { display: flex; flex-direction: column; gap: 8px; }
.player__progress-row { display: flex; align-items: center; gap: 12px; }
.player--right .player__progress-row { flex-direction: row-reverse; }
.player__progress-label { font-size: 20px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); }
.player__bars { display: flex; gap: 6px; }
.player--right .player__bars { flex-direction: row-reverse; }
.player__bar { display: block; width: 34px; border-radius: 3px; background: rgba(255, 255, 255, .11); }
.player__bar--set { height: 12px; }
.player__bar--leg { height: 8px; border-radius: 8px; }
/* The standing has to read from across the room, so a won pill is lit, not
 * just filled: legs green, sets gold — the colour says which ladder it is. */
.player__bar--won { background: #3ad24e; box-shadow: 0 0 14px rgba(58, 210, 78, .6), inset 0 0 0 1px rgba(255, 255, 255, .28); }
.player__bar--set.player__bar--won { background: var(--cr-score-here); box-shadow: 0 0 16px rgba(255, 201, 60, .65), inset 0 0 0 1px rgba(255, 255, 255, .3); }
/* Two looks only (Dart'agnan 2026-10-11): won, or empty. The set or leg in
 * play is not marked — a grey pip between the two read as a third state. */
.player__score { position: relative; font-size: 150px; line-height: .92; white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; }

.player--idle .player__name,
.player--idle .player__score,
.player--idle .player__stat-value { color: var(--dh-text-secondary); }
.player--idle .player__avatar { filter: saturate(.75) brightness(.85); }
/* Head to head, whose turn it is (owner QA 799 #17: greying the waiting
 * card's name and score alone did not read from the sofa): the waiting card
 * steps back as an idle seat does, and the thrower's half is lit (below).
 * The blue edge bar the thrower's card used to light went with owner QA
 * 06a2c48c (2026-10-22: "remove the blue active line, blow up the active
 * player backdrop instead"): the spotlight alone says whose turn it is. */
.screen--game .player:not([data-seat]):not(.player--solo) { transition: opacity 300ms var(--dh-ease-out); }
.screen--game .player--idle:not([data-seat]):not(.player--solo) { opacity: .55; }
.screen--game .player--idle:not([data-seat]):not(.player--solo) .player__avatar { filter: saturate(.5) brightness(.68); }
/* The thrower's spotlight (owner QA 2415c271, 2026-10-22: "some more drama,
 * but it's not a card"; 06a2c48c: bigger, in place of the edge bar). No fill
 * and no edges: a blue light falls from the top of the screen onto the
 * thrower's half — wide and tall enough to read as that half lit, denser at
 * the name and score, faded out before the board (its tail ends ~590px in,
 * the board face starts at 470px with the number ring at 684px) — the name
 * and score step up a touch and glow, and the waiting side sits further back
 * (.55 above). The step-up is a `scale`, not a size: the layout boxes do not
 * change, so the rows under the names stay level from side to side. */
.screen--game .player:not([data-seat]):not(.player--solo)::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -196px;
  width: 880px;
  height: 1080px;
  opacity: 0;
  transition: opacity 300ms var(--dh-ease-out);
  pointer-events: none;
}
.screen--game .player--left:not([data-seat]):not(.player--solo)::after {
  left: -64px;
  background: radial-gradient(ellipse 60% 92% at 26% 0%, rgba(1, 76, 253, .58), rgba(66, 155, 252, .24) 44%, rgba(66, 155, 252, 0) 70%);
}
.screen--game .player--right:not([data-seat]):not(.player--solo)::after {
  right: -64px;
  background: radial-gradient(ellipse 60% 92% at 74% 0%, rgba(1, 76, 253, .58), rgba(66, 155, 252, .24) 44%, rgba(66, 155, 252, 0) 70%);
}
.screen--game .player:not([data-seat]):not(.player--solo):not(.player--idle)::after { opacity: 1; }
.screen--game .player:not([data-seat]):not(.player--solo) .player__score,
.screen--game .player:not([data-seat]):not(.player--solo) .player__name {
  transition: scale 300ms var(--dh-ease-out), text-shadow 300ms var(--dh-ease-out), color 300ms var(--dh-ease-out);
}
.screen--game .player--left:not([data-seat]):not(.player--solo) .player__score { transform-origin: left top; }
.screen--game .player--right:not([data-seat]):not(.player--solo) .player__score { transform-origin: right top; }
.screen--game .player--left:not([data-seat]):not(.player--solo) .player__name { transform-origin: left bottom; }
.screen--game .player--right:not([data-seat]):not(.player--solo) .player__name { transform-origin: right bottom; }
.screen--game .player:not([data-seat]):not(.player--solo):not(.player--idle) .player__score {
  scale: 1.08;
  text-shadow: 0 0 40px rgba(66, 155, 252, .55);
}
.screen--game .player:not([data-seat]):not(.player--solo):not(.player--idle) .player__name {
  scale: 1.05;
  text-shadow: 0 0 24px rgba(66, 155, 252, .5);
}
@media (prefers-reduced-motion: reduce) {
  .screen--game .player:not([data-seat]):not(.player--solo),
  .screen--game .player:not([data-seat]):not(.player--solo)::after,
  .screen--game .player:not([data-seat]):not(.player--solo) .player__score,
  .screen--game .player:not([data-seat]):not(.player--solo) .player__name { transition: none; }
}

/* Marks rows: bull, 20 … 15 */
.marks { width: 360px; display: flex; flex-direction: column; gap: 8px; }
.marks__row { display: flex; align-items: center; gap: 14px; height: 42px; }
.player--right .marks__row { flex-direction: row-reverse; }
.marks__label { width: 64px; flex: 0 0 auto; font-size: 30px; line-height: 30px; text-align: right; }
/* Four letters in the column of a two-digit number. */
.marks__label--bull { font-size: 20px; }
.player--right .marks__label { text-align: left; }
.marks__end { width: 22px; flex: 0 0 auto; display: flex; justify-content: center; }
.marks__cells { flex: 1; display: flex; gap: 9px; }
.marks__cells--scorable { box-shadow: inset 0 0 0 2px rgba(255, 201, 60, .40); border-radius: 7px; padding: 2px; }
.marks__cell { flex: 1; height: 22px; border-radius: 5px; background: rgba(4, 10, 26, .62); box-shadow: inset 0 0 0 2px rgba(209, 213, 216, .15); }
.marks__cells--exposed .marks__cell:not(.marks__cell--hit) { box-shadow: inset 0 0 0 2px rgba(255, 77, 85, .55); }
.marks__cell--hit { background: var(--cr-to-close); box-shadow: 0 0 14px #1e88fc88; }
.marks__row--closed .marks__label { color: var(--cr-score-here); }
.marks__row--closed .marks__cell { background: var(--cr-score-here); box-shadow: 0 0 14px #ffc93c88; }
.marks__row--open .marks__label { color: var(--cr-to-close); }
.marks__row--dead .marks__label { color: rgba(116, 127, 138, .62); }
/* Closed by everyone (QA 25b88a67): the three marks stay, filled grey, and a grey tick says closed — no struck bar. */
.marks__cells--dead { position: relative; }
.marks__cell--dead { background: rgba(116, 127, 138, .34); box-shadow: inset 0 0 0 2px rgba(163, 173, 184, .22); }
/* The tick sits on the tower only where there is no end column for it (the seats). */
.marks__lock { display: none; }
/* The bull's label: the word head to head and solo, a bullseye in the towers. */
.marks__label-icon { display: none; width: 22px; height: 22px; }

.player__stats { display: flex; gap: 40px; }
/* Each label sits centred over its own number (MPR, HIT, LAST …), on either side and in every seat (owner QA 799
 * 8fc1d1a4); the row itself still hangs from the card's outer edge. */
.player__stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.player__stat-label { font-size: 22px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); }
.player__stat-value { font-size: 56px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }

/* ── Seats: three to six players ──────────────────────────────────────────
 * The board never shrinks, so the players share the two side columns and
 * nothing else. Seats alternate left and right in throw order, and the tier
 * (two or three a side) follows the fuller column so both sides match. The
 * card is the 1v1 card with its type scale stepped down — no new components. */
.seats {
  position: absolute;
  top: 150px;
  width: 440px;
  height: 908px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* Three and five players leave one column short. It fills from the top, so
   * seat 2 sits level with seat 1 instead of drifting down the frame. */
  justify-content: flex-start;
  gap: 20px;
}
.seats--left { left: 32px; }
.seats--right { right: 32px; }
.screen--game .seats .player {
  position: static;
  display: grid;
  /* minmax(0,…) or a wide child — a twenty-cell Shanghai strip, a long name —
   * pushes the column past the card instead of shrinking inside it. */
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  grid-template-areas: 'head head' 'score stats' 'body body' 'progress progress';
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 26px;
  border-radius: var(--dh-radius-xl);
  background: var(--dh-panel-08);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 2px var(--dh-stroke-08);
}
/* At the oche: brighter glass, a heavier ring and a glow that lifts the card
 * off the backdrop, so the turn is obvious from across the room. */
.screen--game .seats .player:not(.player--idle) {
  background: rgba(1, 76, 253, .24);
  box-shadow:
    inset 0 0 0 4px var(--dh-brand-blue),
    inset 0 18px 60px rgba(1, 76, 253, .28),
    0 0 44px rgba(1, 76, 253, .38);
}
.seats .player:not(.player--idle) .player__score { text-shadow: 0 0 34px rgba(66, 155, 252, .5); }
.seats .player__head { grid-area: head; gap: 18px; min-width: 0; }
.seats--compact .player__progress { gap: 5px; }
.seats--compact .player__progress-row { gap: 8px; }
.seats--compact .player__progress-label { font-size: 14px; }
.seats--compact .player__bar { width: 24px; }
.seats--compact .player__bar--set { height: 9px; }
.seats--compact .player__bar--leg { height: 7px; }
/* A long name has a slot, not the whole card: nowrap alone let "Bullseye Bex"
 * run out past the edge. The solo card is a fixed column too, so it clamps
 * the same way. */
.seats .player__who,
.player--solo .player__who { min-width: 0; }
.player--solo .player__head { min-width: 0; }
/* (A seat's name wraps and steps down in the name plate, never an ellipsis.) */
/* The solo card has the height a seat does not: a long name wraps there
 * rather than losing its end to an ellipsis. */

.seats .player__score { grid-area: score; }
/* The stats ride beside the score, on its inner side, and the space that
 * frees goes to the route and the leg bar. */
.seats .player__stats { grid-area: stats; justify-self: start; }
.seats .player--right .player__stats,
.seats.seats--right .player .player__stats { justify-self: end; }
.seats.seats--right .player {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  grid-template-areas: 'head head' 'stats score' 'body body' 'progress progress';
}
.seats .x01-checkout { grid-area: body; }
.seats .marks { grid-area: body; }
.seats .leg-progress { grid-area: progress; }

/* How far through the leg, for comparing six cards at a glance. */
.leg-progress {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 9999px;
  background: rgba(4, 10, 26, .62);
  box-shadow: inset 0 0 0 2px var(--dh-stroke-08);
  overflow: hidden;
}
.leg-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(1, 76, 253, .55), var(--dh-bright-blue));
}
/* The highest finish: past this line a checkout is on. */
.leg-progress__finish {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 201, 60, .55);
}
.seats .player--leader .leg-progress__fill {
  background: linear-gradient(90deg, rgba(255, 201, 60, .45), var(--cr-score-here));
}
.seats--compact .leg-progress { height: 12px; }
.seats .x01-checkout { min-height: 0; gap: 10px; }
.seats .player__stats { gap: 26px; }
/* Beside the score the labels have a column, not a paragraph: one line each. */
.seats .player__stat-label { white-space: nowrap; }
.seats .player__stat { gap: 6px; }

/* Two a side — three and four players. */
.seats--tall .player { height: 444px; }
.seats--tall .player__avatar { width: 92px; height: 92px; }
/* 'Bullseye Bex' at 31 needs 300px of a 278px slot: 28 fits it whole. */
.seats--tall .player__name { font-size: 28px; }
.seats--tall .x01__score { font-size: 150px; }
/* Three digits beside a stat column do not fit at the two-digit size: 501 is
 * half again as wide as 81, and the grid sizes the score column to its text. */
.seats--tall .x01__score--wide { font-size: 124px; }
.seats--tall .player__stats { flex-direction: column; gap: 10px; }
.seats--tall .player__stat-value { font-size: 26px; }
.seats--tall .player__stat-label { font-size: 14px; }
.seats--tall .player__stat { gap: 2px; }
.seats--tall .x01-route { gap: 9px; }
.seats--tall .x01-route__step { padding: 8px 16px; font-size: 25px; }
.seats--tall .x01-route__none { padding: 8px 16px; font-size: 20px; }

/* Three a side — five and six players. The card has 289px: the leg pips, the
 * darts count and the "Checkout" label go, because at this size the score and
 * the gold route are what carry across the room. */
.screen--game .seats--compact .player { gap: 8px; padding: 14px 20px; }
.seats--compact .x01-checkout .player__stat-label { display: none; }
.seats--compact .player { height: 289px; }
/* No room for a second line of name here: a long one steps its type down to
 * fit the one. */
.seats--compact .player { --name-max-rows: 1; }
.seats--compact .player__head { gap: 14px; }
.seats--compact .player__avatar { width: 64px; height: 64px; }
.seats--compact .player__name { font-size: 26px; }
.seats--compact .x01__score { font-size: 118px; }
.seats--compact .x01__score--wide { font-size: 96px; }
/* Same column as the tall tier: a three-digit score beside a row of stats
 * runs past 440. */
.seats--compact .player__stats { flex-direction: column; gap: 7px; }
.seats--compact .player__stat-value { font-size: 22px; }
.seats--compact .player__stat-label { font-size: 13px; }
.seats--compact .player__stat { gap: 2px; }
.seats--compact .player__stat:nth-child(3) { display: none; }
.seats--compact .x01-route { gap: 7px; }
.seats--compact .x01-route__step { padding: 6px 12px; font-size: 21px; }
.seats--compact .x01-route__none { padding: 6px 12px; font-size: 17px; }
.seats--compact .x01-route__arrow { width: 18px; height: 18px; }

/* Waiting their turn. The 1v1 screen only greys the name and the score, which
 * is enough when there is one other card; with five others the whole card has
 * to step back. Everything that glows — the gold route, the blue marks, the
 * leg bar, the avatar — comes down together, and the card surface flattens,
 * so the lit card is the one at the oche. The leader's gold survives it. */
.screen--game .seats .player--idle {
  background: rgba(209, 213, 216, .035);
  box-shadow: inset 0 0 0 2px rgba(209, 213, 216, .06);
}
.seats .player--idle { opacity: .78; }
.seats .player--idle .player__avatar { filter: saturate(.5) brightness(.68); }
.seats .player--idle .player__stat-label,
.seats .player--idle .player__progress-label { color: var(--dh-text-tertiary); }
.seats .player--idle .x01-route__step,
.seats .player--idle .x01-route__none { opacity: .5; }
.seats .player--idle .x01-route__arrow { opacity: .4; }
.seats .player--idle .leg-progress__fill { filter: saturate(.45) brightness(.8); }
.seats .player--idle .leg-progress__finish { opacity: .5; }
.seats .player--idle .marks__cell--hit,
.seats .player--idle .marks__row--closed .marks__cell { filter: saturate(.62) brightness(.86); }
.seats .player--idle .marks__label { opacity: .8; }
/* The leader is still the leader while they sit down. */
.seats .player--leader.player--idle { opacity: .94; }

/* The leader — fewest left in X01, most points in Cricket — carries the gold:
 * an embossed score, and the card's edge too when it isn't their turn (the
 * blue ring has to keep meaning "at the oche", so gold never takes it over).
 * A tie lights nobody, as the 1v1 average rail already works. */
/* The leader is marked by the card's edge, not by its score: a gold number
 * beside five white ones pulled the eye away from whoever was throwing. */
.screen--game .seats .player--leader.player--idle {
  background: rgba(255, 201, 60, .09);
  box-shadow: inset 0 0 0 2px rgba(255, 201, 60, .42), 0 0 30px rgba(255, 201, 60, .10);
}


/* A bot says so, next to the name, in the ink of a label rather than a badge
 * competing with the score. */
.player__bot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 9999px;
  background: var(--dh-panel-08);
  box-shadow: inset 0 0 0 1px var(--dh-stroke-24);
  font-size: 18px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  color: var(--dh-text-secondary);
  white-space: nowrap;
}
/* The tags share one row under the name, and the row is as tall with a tag in
 * it as without: a bot on one card, or a player coming into range, leaves
 * every card's figures where they were. */
.player__tags { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.player--right .player__who > .player__tags { flex-direction: row-reverse; }
.seats--tall .player__tags { min-height: 26px; }
.seats--compact .player__tags { min-height: 19px; gap: 6px; }
.player__bot svg { flex: none; }
.player--right .player__bot { flex-direction: row-reverse; }
.seats--tall .player__bot { font-size: 16px; padding: 3px 9px 3px 8px; }
.seats--compact .player__bot { font-size: 14px; padding: 2px 8px; gap: 5px; }
.seats--compact .player__bot svg { width: 15px; height: 15px; }

/* ── Shanghai ─────────────────────────────────────────────────────────────
 * The round strip is the game: twenty cells, one per number in the order. A
 * played round fills by how much of the 3× it took, a blank reads grey, the
 * round in play is outlined, and a Shanghai takes the whole cell in gold. */
.sh-strip {
  display: flex;
  gap: 3px;
  width: 100%;
  min-width: 0;
}
/* No tray behind the bar: the round stands on a hairline baseline and the
 * card shows through everything it has not taken. */
.sh-cell {
  /* The label, where it is shown, sits under the axis: the baseline and the
   * bar both stand on top of that strip rather than across it. */
  --sh-label: 0px;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
}
.sh-cell::before {
  content: '';
  position: absolute;
  inset: auto 0 var(--sh-label) 0;
  height: 2px;
  background: rgba(209, 213, 216, .14);
}
/* The fill rises from the baseline: nine marks fills the bar. */
.sh-cell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sh-label);
  border-radius: 4px 4px 0 0;
  height: calc(var(--sh-fill, 0) * (100% - var(--sh-label)));
  background: linear-gradient(180deg, var(--cr-to-close), rgba(30, 136, 252, .72));
}
/* Thrown and missed: a stub on the baseline, not an empty frame. */
.sh-cell--blank::before { height: 4px; background: rgba(255, 77, 85, .62); }
.sh-cell--now::before { height: 4px; background: var(--dh-bright-blue); box-shadow: 0 0 12px rgba(66, 155, 252, .7); }
.sh-cell--shanghai::after { height: calc(100% - var(--sh-label)); background: var(--cr-score-here); }

.sh-flag {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--cr-score-here);
  color: #1a1300;
  font-size: 24px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  box-shadow: 0 0 28px rgba(255, 201, 60, .5);
}
.seats .sh-strip { grid-area: body; gap: 2px; }
/* Twenty numbers in a 388px card is noise at sofa distance, and the nav
 * already says which round and target are in play: the seats keep the run as
 * a bar and leave the labels to the solo card, which has the width for them. */
.seats--tall .sh-cell { height: 84px; }
.seats--compact .sh-cell { height: 56px; }
/* The Shanghai card: a top row of two columns — who they are, and what they
 * have — then the ladders, then the run. */
/* The columns mirror, as every other game's cards do (owner QA 799 #6, #9,
 * Bermuda #1): the total on the card's outer edge, the name plate on the
 * inner one. A left card read the other way round put its total against the
 * board, and it only fitted because the avatar shared the row. */
.game--shanghai .seats .player,
.game--shanghai .seats.seats--right .player {
  /* The figures take the width they need and the name plate the rest: a long
   * name wraps or steps down in its column, never into the total. */
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'ident figures' 'progress progress' 'body body';
  align-items: start;
  column-gap: 24px;
}
.game--shanghai .seats.seats--left .player {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'figures ident' 'progress progress' 'body body';
}
.game--shanghai .seats--left .sh-figures { align-items: flex-start; }
.game--shanghai .seats--left .sh-ident { align-items: flex-end; }
.game--shanghai .seats--left .sh-ident .player__name { text-align: right; }
.game--shanghai .seats--left .sh-ident .player__tags { justify-content: flex-end; }
.game--shanghai .seats--left .sh-ident .player__bot { align-self: flex-end; }
/* The solo column is 396px: an identity column beside a three-digit total
 * leaves neither any room, so solo stacks and gives the run the full width. */
.game--shanghai .player--solo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'ident' 'figures' 'progress' 'body';
  row-gap: 22px;
}
.game--shanghai .player--solo .sh-ident { flex-direction: row; align-items: center; gap: 20px; }
/* The plate in the solo column: avatar beside the name, the bot chip under the
 * name rather than after it, where it ran out of the column into the board. */
.game--shanghai .player--solo .sh-ident {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: end;
  row-gap: 10px;
}
.game--shanghai .player--solo .sh-ident > .player__avatar { grid-row: 1 / span 2; align-self: center; }
.game--shanghai .player--solo .sh-ident > .player__tags { align-self: start; }
.game--shanghai .player--solo .player__name { font-size: 34px; }
.sh-ident {
  grid-area: ident;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
/* The total and its rates sit against the card's right edge: the identity
 * column is the ragged side, the figures the straight one. */
.sh-figures {
  grid-area: figures;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}
.game--shanghai .player--solo .sh-figures { align-items: flex-start; }
/* Head to head: the same mirror as X01's 1v1 — plate and total on the outer
 * edge of each column, so the left total no longer sits on the 11. */
.game--shanghai .player:not([data-seat]):not(.player--solo) > .sh-ident,
.game--shanghai .player:not([data-seat]):not(.player--solo) > .sh-figures { align-self: stretch; }
.game--shanghai .player--left:not([data-seat]):not(.player--solo) .sh-figures { align-items: flex-start; }
.game--shanghai .player--right:not([data-seat]):not(.player--solo) .sh-ident { align-items: flex-end; }
.game--shanghai .player--right:not([data-seat]):not(.player--solo) .sh-ident .player__name { text-align: right; }
.game--shanghai .player--right:not([data-seat]):not(.player--solo) .sh-ident .player__tags { justify-content: flex-end; }
.game--shanghai .player--right:not([data-seat]):not(.player--solo) .sh-ident .player__bot { align-self: flex-end; }
/* Three rates under the total in a 448px column: at the 1v1 size "100%" and
 * "Halved" ran the row past the column and into the board (Bermuda QA 799
 * #16). A tighter row and a step down keep the widest case inside. */
.game--shanghai .player:not([data-seat]):not(.player--solo) .player__stats { gap: 28px; max-width: 100%; }
.game--shanghai .player:not([data-seat]):not(.player--solo) .player__stat-value { font-size: 48px; }
.game--shanghai .player:not([data-seat]):not(.player--solo) .player__stat-label { white-space: nowrap; }
.sh-ident .player__bot { align-self: flex-start; }
.game--shanghai .player__progress { grid-area: progress; }
.game--shanghai .sh-strip { grid-area: body; }
.sh-ident .player__name { line-height: 1.04; white-space: normal; }
/* Every card on the screen keeps the room the longest name needs, and the
 * room a bot's chip needs when a bot is playing: a name on two lines or a
 * chip on one card must not push that card's figures out of line with the
 * card across the board. */

.game--shanghai .seats--tall .player__avatar { width: 112px; height: 112px; }
.game--shanghai .seats--tall .player__name { font-size: 23px; }
.game--shanghai .seats--compact .player__avatar { width: 78px; height: 78px; }
.game--shanghai .seats--compact .player__name { font-size: 24px; }
/* The name sits under the avatar here, in a column with height to spare: two
 * lines at every tier. */
.game--shanghai .seats .player { --name-max-rows: 2; }

/* Shanghai totals are three digits beside two rates, so the score takes the
 * seat sizes rather than the card's default 150. */
.game--shanghai .seats .player__stats { flex-direction: row; gap: 18px; }
.game--shanghai .seats--tall .player__score { font-size: 92px; }
.game--shanghai .seats--compact .player__score { font-size: 84px; }
.game--shanghai .seats--compact .player__stats { gap: 14px; }
.game--shanghai .seats--compact .player__stat-value { font-size: 22px; }
.game--shanghai .seats--compact .player__stat-label { font-size: 13px; }
.game--shanghai .seats--compact .sh-cell { height: 48px; }
.game--shanghai .seats--compact .sh-flag { padding: 5px 12px; font-size: 17px; }
.game--shanghai .seats--tall .sh-flag { padding: 6px 14px; font-size: 20px; }

/* Solo: the rounds in full, in the other column. */
.player--solo .sh-strip { width: 396px; gap: 3px; }
.player--solo .sh-cell { height: 104px; }
.game--shanghai .player--solo .player__score { font-size: 170px; }
/* Solo: MPR and hit rate only — the rounds panel beside it already lists the
 * last round (Shanghai) and the halvings (Bermuda), and a third figure ran the
 * row up against the board's numbers. */
.game--shanghai .player--solo .player__stat:nth-child(3) { display: none; }
.rounds-panel {
  position: absolute;
  right: 44px;
  top: 196px;
  width: 420px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rounds__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rounds__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 18px;
  border-radius: var(--dh-radius-m);
  background: var(--dh-panel-08);
  backdrop-filter: blur(16px);
}
.rounds__row--now { background: rgba(1, 76, 253, .17); box-shadow: inset 0 0 0 2px var(--dh-brand-blue); }
.rounds__n { flex: 1; font-size: 19px; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); white-space: nowrap; }
.rounds__target { font-size: 26px; color: var(--dh-bright-blue); }
.rounds__score { font-size: 38px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.rounds__score--max { color: var(--cr-score-here); }
.rounds__of { font-size: 19px; color: var(--dh-text-secondary); white-space: nowrap; }

/* ── Solo: one player, and the leg in the other column ────────────────────
 * Nobody to compare against, so the second column carries the leg so far —
 * the sheet a practising player otherwise keeps in their head. */
/* The board is 980 wide and centred, so both columns stop short of 470px. */
.player--solo .player__avatar { width: 120px; height: 120px; }
.player--solo .player__name { font-size: 46px; }
.player--solo .x01__score { font-size: 200px; }
.player--solo .player__stat-value { font-size: 62px; }

/* Solo Cricket: identity, then the points with the rates beside them, then
 * the seven targets as full-width bars — the same anatomy as a seat card, at
 * the size one player can afford. The column stops short of the board at 470. */
.game--cricket .player--solo {
  display: grid;
  width: 396px;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'head head' 'score rates' 'marks marks';
  align-items: center;
  column-gap: 24px;
  row-gap: 26px;
}
.game--cricket .player--solo .player__head { grid-area: head; }
/* The marks want the width, so the identity block gives some back: at 34 a
 * two-word name holds one line inside the 396 column. */
.game--cricket .player--solo .player__avatar { width: 96px; height: 96px; }
.game--cricket .player--solo .player__name { font-size: 34px; }
.game--cricket .player--solo .player__score { grid-area: score; font-size: 130px; }
.game--cricket .player--solo .player__stats { grid-area: rates; justify-self: start; flex-direction: column; gap: 10px; }
.game--cricket .player--solo .player__stat-value { font-size: 40px; }
.game--cricket .player--solo .marks { grid-area: marks; width: 100%; }
.game--cricket .player--solo .marks__row { height: 46px; }
.game--cricket .player--solo .marks__cell,
.game--cricket .player--solo .marks__dead { height: 26px; }

.leglog {
  position: absolute;
  right: 44px;
  top: 196px;
  width: 420px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aside__head { display: flex; justify-content: space-between; align-items: baseline; }
.leglog__title { font-size: 34px; line-height: 1; color: #fff; }
.leglog__hint { font-size: 20px; line-height: 1; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); }
.aside__rule { height: 1px; background: var(--dh-stroke-24); }
.leglog__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.leglog__visit {
  display: flex;
  backdrop-filter: blur(16px);
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-radius: var(--dh-radius-m);
  background: var(--dh-panel-08);
}
.leglog__visit--now { background: rgba(1, 76, 253, .17); box-shadow: inset 0 0 0 2px var(--dh-brand-blue); }
.leglog__n { font-size: 19px; white-space: nowrap; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); }
.leglog__score { font-size: 44px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.leglog__score--ton { color: var(--cr-score-here); }
.leglog__left { font-size: 23px; line-height: 1; white-space: nowrap; color: var(--dh-text-secondary); font-variant-numeric: tabular-nums; }
.aside__foot { display: flex; gap: 40px; padding-top: 4px; }

/* Cricket in seats: the marks are a grid from three players up (decided
 * 2026-09-29), so the card has the height for the points as well. */
.game--cricket .seats .player { row-gap: 8px; }
/* The marks grid fills the tall card to its edge: a second line of name would
 * push the labels through the border, so a long name steps down to one line. */
.game--cricket .seats--tall .player { --name-max-rows: 1; }
/* Cricket has two rates, not three stats, and the seven rows need the height
 * more than the rates need a column: they sit side by side beside the points,
 * which is what keeps the 15 row inside the card. */
.game--cricket .seats .player__stats { flex-direction: row; gap: 20px; }
.game--cricket .seats .player__stat { gap: 2px; }
.game--cricket .seats .marks { width: 100%; }
.game--cricket .seats--tall .player__avatar { width: 72px; height: 72px; }
.game--cricket .seats--tall .player__name { font-size: 30px; }
.game--cricket .seats--tall .player__score { font-size: 104px; }
.game--cricket .seats--tall .player__stat-value { font-size: 26px; }
.game--cricket .seats--tall .player__stat-label { font-size: 15px; }
.game--cricket .seats--tall .player__stat { gap: 3px; }

.game--cricket .seats--compact .player { row-gap: 8px; padding: 12px 20px; }
.game--cricket .seats--compact .player__avatar { width: 52px; height: 52px; }
.game--cricket .seats--compact .player__name { font-size: 24px; }
.game--cricket .seats--compact .player__score { font-size: 84px; }
/* Three players and up: the seven rows lie down into an axis, 15 to Bull.
 * Each target is a column of three marks stacked bottom-up, with its label
 * under the axis — one way of reading the marks at every seat count from
 * three, and one that reads from the sofa where a 17px row did not. It also
 * gives back the height the points and the rates want. */
.game--cricket .seats .marks { flex-direction: row; gap: 9px; }
.game--cricket .seats .marks__row,
.game--cricket .seats .player--right .marks__row {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column-reverse;
  align-items: stretch;
  justify-content: flex-start;
  height: auto;
  gap: 6px;
}
.game--cricket .seats .marks__label,
.game--cricket .seats .player--right .marks__label {
  width: auto;
  font-size: 22px;
  line-height: 22px;
  text-align: center;
}
/* Both columns say it: the mirrored-label rule above would otherwise set the
 * right-hand cards' Bull at the size of a number. */
.game--cricket .seats .marks__label--bull,
.game--cricket .seats .player--right .marks__label--bull { font-size: 17px; }
/* The bull column is as wide as a number's (QA 98b4695d, 93391348): the word
 * gives way to a bullseye of a number's width, so no column is wider. */
.game--cricket .seats .marks__label--bull .marks__label-word { display: none; }
.game--cricket .seats .marks__label--bull { display: flex; justify-content: center; align-items: center; height: 22px; }
.game--cricket .seats .marks__label--bull .marks__label-icon { display: block; }
/* The marks fill bottom-up, so the tower grows towards the number as it closes. */
.game--cricket .seats .marks__cells,
.game--cricket .seats .player--right .marks__cells { flex: 0 0 auto; flex-direction: column-reverse; gap: 3px; }
/* Stacked, the pips keep their own height instead of sharing the row's. */
.game--cricket .seats .marks__cell { flex: 0 0 auto; height: 19px; border-radius: 5px; }
.game--cricket .seats .marks__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.game--cricket .seats .marks__cells--scorable { padding: 1px; }
/* The tick and the dead cross have no column to sit in: the gold fill and the
 * struck-through bar already say closed and dead. */
.game--cricket .seats .marks__end { display: none; }
/* Two a side has the height for a bigger tower and a label to match. */
.game--cricket .seats--tall .marks { gap: 9px; }
.game--cricket .seats--tall .marks__row,
.game--cricket .seats--tall .player--right .marks__row { gap: 10px; }
.game--cricket .seats--tall .marks__cells,
.game--cricket .seats--tall .player--right .marks__cells { gap: 5px; }
.game--cricket .seats--tall .marks__cell { height: 36px; border-radius: 7px; }
.game--cricket .seats--tall .marks__label,
.game--cricket .seats--tall .player--right .marks__label { font-size: 28px; line-height: 28px; }
.game--cricket .seats--tall .marks__label--bull,
.game--cricket .seats--tall .player--right .marks__label--bull { font-size: 16px; height: 28px; }
.game--cricket .seats--tall .marks__label-icon { width: 27px; height: 27px; }
.game--cricket .seats--tall .marks__lock svg { width: 30px; height: 30px; }

/* Solo Cricket: what is still open, and how many marks each still wants. */
.toclose {
  position: absolute;
  right: 44px;
  top: 196px;
  width: 420px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.toclose__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toclose__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-radius: var(--dh-radius-m);
  background: var(--dh-panel-08);
  backdrop-filter: blur(16px);
}
.toclose__target { min-width: 104px; font-size: 40px; line-height: 1; color: var(--cr-to-close); }
.toclose__target--bull { font-size: 30px; }
.toclose__pips { display: flex; gap: 8px; }
.toclose__pip {
  display: block;
  width: 34px;
  height: 16px;
  border-radius: 5px;
  background: rgba(4, 10, 26, .62);
  box-shadow: inset 0 0 0 2px rgba(209, 213, 216, .15);
}
.toclose__pip--hit { background: var(--cr-to-close); box-shadow: 0 0 14px #1e88fc88; }
.toclose__left { font-size: 22px; line-height: 1; white-space: nowrap; color: var(--dh-text-secondary); }

/* ── X01 gameplay (X01 Cast Stage) ────────────────────────────────────────── */
/* Three-digit scores sit at 140px, not Cricket's 150, to clear the board's numbers. */
.x01__score { font-size: 140px; }
.screen--game .player { gap: 30px; }

.x01-checkout { display: flex; flex-direction: column; gap: 14px; min-height: 100px; }
.player--left .x01-checkout { align-items: flex-start; }
.player--right .x01-checkout { align-items: flex-end; }
.x01-route { display: flex; align-items: center; gap: 14px; }
/* The chip, as the overlay design system draws it: white label on the
 * segment's colour at 22%, a 2px border of it at 85%, radius 10, padding
 * 14/26. Not a gold pill — that was this screen's own invention. */
.x01-route__step {
  display: grid;
  place-items: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 201, 60, .22);
  border: 2px solid rgba(255, 201, 60, .85);
}
/* A three-dart route is the widest a side column gets: with two players the
 * chips at full padding run into the board's 11 / 6, so they tighten. */
.player:not([data-seat]) .x01-route--three { gap: 10px; }
.player:not([data-seat]) .x01-route--three .x01-route__step { padding-inline: 16px; }
/* The bed for the next dart is called out on the board; the chips stay a set. */
.x01-route__step--now { box-shadow: 0 0 22px rgba(255, 201, 60, .35); }
/* Waiting: the same route, stepped back — outline only, and no lit first bed,
 * which belongs to whoever is at the oche. */
.x01-route--waiting .x01-route__step {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 201, 60, .12);
  border-color: rgba(255, 201, 60, .42);
  box-shadow: none;
}
.x01-route--waiting .x01-route__arrow { opacity: .45; }

.x01-route__none {
  display: flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 26px;
  letter-spacing: var(--dh-ls-micro);
  color: var(--dh-text-tertiary);
  background: rgba(209, 213, 216, .06);
  border: 2px solid rgba(209, 213, 216, .18);
}

.x01-trend {
  width: 400px;
  padding: 14px 18px 12px;
  border-radius: var(--dh-radius-m);
  background: rgba(4, 10, 26, .32);
  box-shadow: inset 0 0 0 2px rgba(209, 213, 216, .08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.x01-trend--lead { background: rgba(255, 201, 60, .07); box-shadow: inset 0 0 0 2px rgba(255, 201, 60, .26); }
.x01-trend__head { display: flex; justify-content: space-between; align-items: baseline; }
.player--right .x01-trend__head { flex-direction: row-reverse; }
.x01-trend__title { font-size: 20px; line-height: 1; letter-spacing: .09em; color: var(--dh-text-tertiary); }
.x01-trend__value { font-size: 44px; line-height: 1; color: var(--dh-text-primary); font-variant-numeric: tabular-nums; }
.x01-trend--lead .x01-trend__title { color: rgba(255, 201, 60, .9); }
.x01-trend--lead .x01-trend__value { color: #ffc93c; }
.x01-trend__chart { display: block; }
.x01-trend__foot { font-size: 16px; line-height: 1; letter-spacing: .06em; color: var(--dh-text-tertiary); }
.player--right .x01-trend__foot { text-align: right; }
.x01__hot { color: var(--dh-bright-blue) !important; }
/* A busted visit: the same red the busted darts carry in the navbar. */
.x01__bust { color: #fb6161 !important; font-size: .82em; letter-spacing: .06em; }

/* Moments play over the board; gameplay stays visible around them. */
.moment {
  --ring: var(--dh-bright-blue);
  --glow: rgba(66, 155, 252, .55);
  position: absolute;
  left: 50%;
  top: 600px;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 5;
}
.moment[hidden] { display: none; }
.moment--gold { --ring: #ffc93c; --glow: rgba(255, 201, 60, .55); }
.moment--bust { --ring: #fb6161; --glow: rgba(209, 18, 18, .55); }
.moment__medal {
  position: relative;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #123a8f 0%, #06164a 62%, #030b27 100%);
  box-shadow: inset 0 0 0 10px var(--ring), inset 0 0 0 16px rgba(0, 0, 0, .35), 0 0 120px var(--glow);
}
.moment--bust .moment__medal { background: radial-gradient(circle at 50% 38%, #5a0d16 0%, #2a0610 62%, #14030a 100%); }
.moment__big { font-size: 190px; line-height: .9; color: #fff; text-shadow: 0 0 40px var(--glow); }
.moment__cap { margin-top: 18px; font-size: 34px; letter-spacing: .22em; color: var(--ring); }
.moment__sub { margin-top: 10px; font-size: 26px; letter-spacing: .12em; color: var(--dh-text-primary); }
.moment__rays {
  position: absolute;
  inset: -130px;
  border-radius: 50%;
  opacity: 0;
  background: repeating-conic-gradient(from 0deg, var(--glow) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 50%, transparent 72%);
  mask: radial-gradient(circle, transparent 42%, #000 50%, transparent 72%);
}
.moment--play .moment__medal { animation: x01-medal var(--moment-ms, 2200ms) var(--dh-ease-out) both; }
.moment--play .moment__rays { animation: x01-rays var(--moment-ms, 2200ms) linear both; }
@keyframes x01-medal {
  0% { transform: scale(.2); opacity: 0 }
  14% { transform: scale(1.1); opacity: 1 }
  22% { transform: scale(1) }
  82% { transform: scale(1); opacity: 1 }
  100% { transform: scale(.9); opacity: 0 }
}
@keyframes x01-rays {
  0% { transform: rotate(0) scale(.6); opacity: 0 }
  20% { opacity: .55 }
  100% { transform: rotate(40deg) scale(1.08); opacity: 0 }
}

/* Checkout route steps on the board: the next bed steps up when the dart
 * before it hit; an abandoned plan fades out. */
.x01__board .route--activate { animation: x01-route-activate 520ms var(--dh-ease-out) both; }
.x01__board .route--fading { animation: x01-route-out 700ms var(--dh-ease-out) both; }
@keyframes x01-route-activate { 0% { opacity: .36 } 45% { opacity: 1; filter: brightness(1.6) } 100% { opacity: 1; filter: none } }
@keyframes x01-route-out { from { opacity: 1 } to { opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  .x01__board .route, .moment--play .moment__medal, .moment--play .moment__rays { animation: none !important; }
  .x01__board .route--fading { display: none; }
}

/* ── X01 score bands (score overlays handoff, LOCKED) ─────────────────────── */
/* Keyframes verbatim from the Score Bands prototype, renamed dh-* → sb-* so
 * they can't collide with the screens' own dh-flash. */
.band { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
@keyframes sb-dim { 0% { opacity:0 } 14% { opacity:1 } 82% { opacity:1 } 100% { opacity:0 } }
@keyframes sb-flash { 0% { opacity:0 } 5% { opacity:1 } 26% { opacity:0 } 100% { opacity:0 } }
@keyframes sb-glow { 0% { opacity:0; transform:translate(-50%,-50%) scale(.35) } 16% { opacity:1; transform:translate(-50%,-50%) scale(1.06) } 30% { transform:translate(-50%,-50%) scale(1) } 80% { opacity:1 } 100% { opacity:0; transform:translate(-50%,-50%) scale(1.04) } }
@keyframes sb-wave { 0% { opacity:0; transform:translate(-50%,-50%) scale(.22) } 8% { opacity:1 } 62% { opacity:.5 } 100% { opacity:0; transform:translate(-50%,-50%) scale(1) } }
@keyframes sb-med-stamp { 0% { opacity:0; transform:scale(2.3) rotate(-11deg) } 13% { opacity:1; transform:scale(.955) rotate(-3deg) } 21% { transform:scale(1.03) rotate(-3deg) } 31% { transform:scale(1) rotate(-3deg) } 84% { opacity:1; transform:scale(1) rotate(-3deg) } 100% { opacity:0; transform:scale(1.02) rotate(-3deg) } }
@keyframes sb-digit-stamp { 0% { opacity:0; transform:scale(2.6) rotate(9deg) } 12% { opacity:1; transform:scale(.94) rotate(2.5deg) } 20% { transform:scale(1.04) rotate(2.5deg) } 30% { transform:scale(1) rotate(2.5deg) } 84% { opacity:1; transform:scale(1) rotate(2.5deg) } 100% { opacity:0; transform:scale(1.02) rotate(2.5deg) } }
@keyframes sb-ink2 { 0% { opacity:0; transform:translate(-50%,-50%) scale(.4) } 12% { opacity:0 } 22% { opacity:.9; transform:translate(-50%,-50%) scale(1) } 56% { opacity:0; transform:translate(-50%,-50%) scale(1.6) } 100% { opacity:0 } }
@keyframes sb-cap { 0% { opacity:0; transform:translateY(24px) } 34% { opacity:1; transform:translateY(0) } 84% { opacity:1 } 100% { opacity:0 } }
@keyframes sb-shake-1 { 0%,100% { transform:translate(0,0) } 10% { transform:translate(-4px,2px) } 22% { transform:translate(3px,-2px) } 34% { transform:translate(-2px,-1px) } 46% { transform:translate(0,0) } }
@keyframes sb-shake-2 { 0%,100% { transform:translate(0,0) } 8% { transform:translate(-7px,4px) } 18% { transform:translate(6px,-4px) } 28% { transform:translate(-4px,-3px) } 38% { transform:translate(3px,2px) } 48% { transform:translate(0,0) } }
@keyframes sb-shake-3 { 0%,100% { transform:translate(0,0) } 6% { transform:translate(-12px,8px) } 14% { transform:translate(10px,-7px) } 22% { transform:translate(-8px,-5px) } 30% { transform:translate(6px,4px) } 40% { transform:translate(-3px,2px) } 50% { transform:translate(0,0) } }
@keyframes sb-shake-4 { 0%,100% { transform:translate(0,0) } 5% { transform:translate(-17px,11px) } 11% { transform:translate(14px,-10px) } 17% { transform:translate(-12px,-7px) } 23% { transform:translate(10px,7px) } 30% { transform:translate(-7px,4px) } 38% { transform:translate(4px,-3px) } 48% { transform:translate(0,0) } }
@keyframes sb-shake-5 { 0%,100% { transform:translate(0,0) } 4% { transform:translate(-23px,15px) } 9% { transform:translate(20px,-13px) } 14% { transform:translate(-17px,-10px) } 19% { transform:translate(14px,10px) } 25% { transform:translate(-10px,6px) } 32% { transform:translate(7px,-5px) } 40% { transform:translate(-3px,2px) } 50% { transform:translate(0,0) } }

/* Big fish. The handoff lands the medallion and stops, which is the quietest
 * of the four art states for the biggest checkout on the board. It breaches
 * instead: up through the surface with a roll and an overshoot, and the flare,
 * the rings, the jets and the drops all wait for the moment it breaks through
 * rather than starting with it. */
@keyframes bf-leap {
  0% { opacity:0; transform:translateY(420px) scale(.72) rotate(-9deg) }
  8% { opacity:1 }
  20% { transform:translateY(-46px) scale(1.06) rotate(4deg) }
  28% { transform:translateY(10px) scale(.99) rotate(-2deg) }
  36% { transform:translateY(0) scale(1) rotate(0deg) }
  86% { opacity:1; transform:translateY(0) scale(1) rotate(0deg) }
  100% { opacity:0; transform:translateY(-26px) scale(1.02) }
}
@keyframes bf-water { 0% { opacity:0 } 14% { opacity:1 } 84% { opacity:.8 } 100% { opacity:0 } }
@keyframes bf-flare {
  0% { opacity:0; transform:scaleX(.24) scaleY(.2) }
  14% { opacity:1; transform:scaleX(.9) scaleY(1.5) }
  36% { opacity:.95; transform:scaleX(1.06) scaleY(1) }
  100% { opacity:0; transform:scaleX(1.16) scaleY(.6) }
}
@keyframes bf-ripple {
  0% { opacity:0; transform:translate(-50%,-50%) scale(.16) }
  12% { opacity:1 }
  66% { opacity:.45 }
  100% { opacity:0; transform:translate(-50%,-50%) scale(1) }
}
@keyframes bf-jet {
  0% { opacity:0; transform:translateY(-100%) rotate(var(--jr)) scaleY(.1) }
  14% { opacity:1; transform:translateY(-100%) rotate(var(--jr)) scaleY(1) }
  60% { opacity:.7 }
  100% { opacity:0; transform:translateY(-100%) rotate(var(--jr)) scaleY(1.2) }
}
/* The gold half of the breach: a starburst behind the fish, a bloom of light
 * off it, three rings out, and confetti that keeps falling after all of it. */
@keyframes bf-burst {
  0% { opacity:0; transform:scale(.2) rotate(-14deg) }
  14% { opacity:1; transform:scale(1.02) rotate(0deg) }
  100% { opacity:0; transform:scale(1.3) rotate(10deg) }
}
@keyframes bf-bloom {
  0% { opacity:0; transform:scale(.24) }
  16% { opacity:1; transform:scale(1.04) }
  100% { opacity:0; transform:scale(1.22) }
}
@keyframes bf-goldring {
  0% { opacity:0; transform:scale(.12) }
  10% { opacity:1 }
  70% { opacity:.5 }
  100% { opacity:0; transform:scale(1) }
}
@keyframes bf-droplet {
  0% { opacity:0; transform:translate(0,0) scale(.3) }
  10% { opacity:1 }
  62% { opacity:.9 }
  100% { opacity:0; transform:translate(var(--dx),var(--dy)) scale(1) }
}

/* Double double finish: two beds arriving from opposite sides to meet in the
 * middle. The right chip comes in on a hard ease-in so it arrives fast, and
 * where it lands is the moment. */
@keyframes dd-dim { 0% { opacity:0 } 10% { opacity:1 } 86% { opacity:1 } 100% { opacity:0 } }
@keyframes dd-out { 0%, 86% { opacity:1 } 100% { opacity:0 } }
@keyframes dd-flash { 0% { opacity:0 } 6% { opacity:.75 } 100% { opacity:0 } }
@keyframes dd-wave { 0% { opacity:0; transform:translate(-50%,-50%) scale(.2) } 10% { opacity:1 } 100% { opacity:0; transform:translate(-50%,-50%) scale(1) } }
@keyframes dd-cap { 0% { opacity:0; transform:translateY(24px) } 20% { opacity:1; transform:translateY(0) } 84% { opacity:1 } 100% { opacity:0 } }
@keyframes dd-spin { 0% { transform:rotateY(0deg) } 100% { transform:rotateY(360deg) } }
@keyframes dd-chip-l { 0% { opacity:0; transform:translateX(-1200px) } 70% { opacity:1; transform:translateX(12px) } 100% { opacity:1; transform:translateX(0) } }
@keyframes dd-chip-r { 0% { opacity:0; transform:translateX(1200px) } 100% { opacity:1; transform:translateX(0) } }
@keyframes dd-jolt { 0%, 100% { transform:translateX(0) } 20% { transform:translateX(-34px) } 50% { transform:translateX(6px) } }
@keyframes dd-shake { 0%, 100% { transform:translate(0,0) } 6% { transform:translate(-14px,9px) } 14% { transform:translate(12px,-8px) } 22% { transform:translate(-9px,-6px) } 32% { transform:translate(6px,4px) } 44% { transform:translate(-3px,2px) } 56% { transform:translate(0,0) } }

/* Ton+ finish: the scope. Letterbox bars, a reticle gliding bed to bed, the
 * segments lighting as it locks and staying lit. Every move is slow-fast-slow,
 * and nothing is loud until the double lands. The reticle's own path is built
 * per checkout and ships with the overlay. */
@keyframes tp-dim { 0% { opacity:0 } 12% { opacity:1 } 88% { opacity:1 } 100% { opacity:0 } }
@keyframes tp-out { 0%, 88% { opacity:1 } 100% { opacity:0 } }
@keyframes tp-in { 0% { opacity:0; transform:translateY(18px) } 100% { opacity:1; transform:translateY(0) } }
@keyframes tp-fade-in { 0% { opacity:0 } 100% { opacity:1 } }
@keyframes tp-gone { 0% { opacity:1 } 100% { opacity:0 } }
@keyframes tp-recede { 0% { opacity:1 } 100% { opacity:.18 } }
@keyframes tp-wave { 0% { opacity:0; transform:translate(-50%,-50%) scale(.2) } 10% { opacity:1 } 100% { opacity:0; transform:translate(-50%,-50%) scale(1) } }
@keyframes tp-flash { 0% { opacity:0 } 6% { opacity:.45 } 100% { opacity:0 } }
@keyframes tp-ghost { 0% { opacity:0; transform:scale(1.6) rotate(-6deg) } 14% { opacity:1; transform:scale(.97) rotate(-3deg) } 24% { transform:scale(1) rotate(-3deg) } 86% { opacity:1; transform:scale(1) rotate(-3deg) } 100% { opacity:0; transform:scale(1) rotate(-3deg) } }
@keyframes tp-sharp { 0% { opacity:0; transform:scale(1.8) rotate(6deg) } 14% { opacity:1; transform:scale(.97) rotate(2deg) } 24% { transform:scale(1) rotate(2deg) } 86% { opacity:1; transform:scale(1) rotate(2deg) } 100% { opacity:0; transform:scale(1) rotate(2deg) } }
@keyframes tp-cap { 0% { opacity:0; transform:translateY(20px) } 18% { opacity:1; transform:translateY(0) } 84% { opacity:1 } 100% { opacity:0 } }
@keyframes tp-deep { 0%, 100% { transform:translate(0,0) } 6% { transform:translate(-10px,12px) } 16% { transform:translate(8px,-7px) } 28% { transform:translate(-4px,4px) } 42% { transform:translate(2px,-1px) } 60% { transform:translate(0,0) } }
@keyframes tp-bar-t { 0% { transform:translateY(-100%) } 100% { transform:translateY(0) } }
@keyframes tp-bar-b { 0% { transform:translateY(100%) } 100% { transform:translateY(0) } }
@keyframes tp-snap-t { 0% { transform:translateY(0) } 40% { transform:translateY(26px) } 100% { transform:translateY(0) } }
@keyframes tp-snap-b { 0% { transform:translateY(0) } 40% { transform:translateY(-26px) } 100% { transform:translateY(0) } }
/* The lit segment flashes, dips, and holds: it has to stay readable under the
 * number that prints over it. */
@keyframes tp-seg { 0% { opacity:0 } 8% { opacity:1 } 30% { opacity:.55 } 45% { opacity:.9 } 100% { opacity:.8 } }
@keyframes tp-seg-edge { 0% { opacity:0; stroke-width:6 } 20% { opacity:1 } 100% { opacity:1; stroke-width:1.6 } }
@keyframes tp-lock { 0% { transform:scale(1.5); opacity:.4 } 60% { transform:scale(.94); opacity:1 } 100% { transform:scale(1); opacity:1 } }

/* ── Marks per round (marks-per-round handoff) ────────────────────────────── */
/* The visit print for the games that count in marks. Everything else it needs
 * — dim, glow, waves, the two-beat stamp, the caption, the shake — is the
 * score-band grammar above; these three are its own. */
.marks-band { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
@keyframes mk-tile {
  0% { opacity:0; transform:translateY(-40px) scale(1.5) }
  9% { opacity:1; transform:translateY(0) scale(.94) }
  14% { transform:scale(1.03) }
  19% { transform:scale(1) }
  86% { opacity:1; transform:scale(1) }
  100% { opacity:0; transform:scale(.96) }
}
/* The glyph draws itself: one slash for a single, a cross for a double, a
 * cross in a ring for a treble. */
@keyframes mk-draw { 0% { stroke-dashoffset:1 } 100% { stroke-dashoffset:0 } }
@keyframes mk-pop { 0% { opacity:0; transform:translate(-50%,-50%) scale(.4) } 20% { opacity:.9 } 100% { opacity:0; transform:translate(-50%,-50%) scale(1.9) } }
@media (prefers-reduced-motion: reduce) {
  .marks-band [style*="mk-tile"], .marks-band [style*="mk-pop"] { animation: none }
}

/* ── Elimination (elimination handoff) ────────────────────────────────────── */
/* The one overlay that happens to a card rather than to the middle of the
 * screen. The knock and the score match are classes on the elements
 * themselves, so a screen re-rendering mid-overlay cannot lose them; the rest
 * is drawn in the layer, from the card's own rect. */
.elim-band { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.el-hit { animation: var(--el-hit) }
.el-matching .player__score { animation: var(--el-match) }
/* From the strike, the overlay owns the number: the card's own score would
 * otherwise sit under the shattered copy and the nought at the same time. */
.el-struck .player__score { opacity: 0 }
@keyframes el-match { 0%, 100% { color:#fff; text-shadow:none } 20%, 70% { color:var(--mc); text-shadow:0 0 30px var(--mc) } }
@keyframes el-lock { 0% { opacity:0; transform:scale(1.5) rotate(12deg) } 60% { opacity:1; transform:scale(.97) rotate(0deg) } 72% { transform:scale(1.02) } 100% { opacity:1; transform:scale(1) } }
@keyframes el-lock-out { 0% { opacity:1 } 100% { opacity:0; transform:scale(1.08) } }
@keyframes el-chip { 0% { opacity:0; transform:translate(-50%,16px) scale(.85) } 30% { opacity:1; transform:translate(-50%,0) scale(1.06) } 42% { transform:translate(-50%,0) scale(1) } 84% { opacity:1 } 100% { opacity:0 } }
/* Each digit leaves on its own line, and does not come back. */
@keyframes el-shatter { 0% { opacity:1; transform:translate(0,0) rotate(0deg) } 100% { opacity:0; transform:translate(var(--dx),var(--dy)) rotate(var(--dr)) scale(.7) } }
@keyframes el-card-hit { 0% { transform:translate(0,0) } 8% { transform:translate(-14px,8px) } 18% { transform:translate(11px,-6px) } 30% { transform:translate(-7px,4px) } 44% { transform:translate(4px,-2px) } 60%, 100% { transform:translate(0,0) } }
@keyframes el-card-flash { 0% { opacity:0 } 6% { opacity:1 } 40% { opacity:.35 } 100% { opacity:0 } }
@keyframes el-title { 0% { opacity:0; transform:scale(1.7) } 10% { opacity:1; transform:scale(.95) } 16% { transform:scale(1.03) } 22% { transform:scale(1) } 84% { opacity:1; transform:scale(1) } 100% { opacity:0; transform:scale(1.02) } }
@keyframes el-slot { 0% { opacity:0; transform:scale(.6) } 100% { opacity:1; transform:scale(1) } }
@keyframes el-slot-new { 0% { opacity:0; transform:scale(2.4) rotate(-40deg) } 40% { opacity:1; transform:scale(.9) rotate(4deg) } 60% { transform:scale(1.08) rotate(0deg) } 100% { opacity:1; transform:scale(1) } }
@keyframes el-out { 0% { opacity:0; transform:translateY(10px) } 100% { opacity:1; transform:translateY(0) } }
/* Two more frame quakes, carrying the screen's centring like the rest. */
@keyframes sb-quake-2 {
  0%, 100% { transform: translate(-50%, -50%) }
  8% { transform: translate(calc(-50% - 7px), calc(-50% + 4px)) }
  18% { transform: translate(calc(-50% + 6px), calc(-50% - 4px)) }
  28% { transform: translate(calc(-50% - 4px), calc(-50% - 3px)) }
  38% { transform: translate(calc(-50% + 3px), calc(-50% + 2px)) }
  48% { transform: translate(-50%, -50%) }
}
@keyframes sb-quake-3 {
  0%, 100% { transform: translate(-50%, -50%) }
  6% { transform: translate(calc(-50% - 12px), calc(-50% + 8px)) }
  14% { transform: translate(calc(-50% + 10px), calc(-50% - 7px)) }
  22% { transform: translate(calc(-50% - 8px), calc(-50% - 5px)) }
  30% { transform: translate(calc(-50% + 6px), calc(-50% + 4px)) }
  40% { transform: translate(calc(-50% - 3px), calc(-50% + 2px)) }
  50% { transform: translate(-50%, -50%) }
}
@media (prefers-reduced-motion: reduce) {
  .el-hit, .el-matching .player__score { animation: none }
}

/* ── Around the Clock combos (around-the-clock handoff) ───────────────────── */
/* The streak print: twenty nodes on a ring, lighting in the order they were
 * hit, with an arc drawn along the track behind them. Everything after the
 * chain — dim, glow, waves, the two-beat stamp, the caption, the shake — is
 * the score-band grammar above. */
.combo-band { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
@keyframes ac-ring { 0% { opacity:0; transform:scale(1.14) rotate(-10deg) } 8% { opacity:1; transform:scale(1) rotate(0deg) } 88% { opacity:1; transform:scale(1) } 100% { opacity:0; transform:scale(.97) } }
@keyframes ac-node { 0% { transform:scale(1) } 30% { transform:scale(1.38) } 60% { transform:scale(.94) } 100% { transform:scale(1) } }
@keyframes ac-lit { 0% { opacity:0 } 100% { opacity:1 } }
@keyframes ac-arc { 0% { stroke-dashoffset:var(--len) } 100% { stroke-dashoffset:0 } }
@keyframes ac-spark { 0% { opacity:0; transform:rotate(var(--a)) translateY(-300px) scaleY(.2) } 16% { opacity:1 } 100% { opacity:0; transform:rotate(var(--a)) translateY(-560px) scaleY(1) } }
@keyframes ac-spin { 0% { transform:translate(-50%,-50%) rotate(0deg) } 100% { transform:translate(-50%,-50%) rotate(360deg) } }
@keyframes ac-rays { 0% { opacity:0 } 20% { opacity:1 } 84% { opacity:1 } 100% { opacity:0 } }

/* ── X01 overlay states (six-state + champagne handoffs) ──────────────────── */
/* A named state replaces the plain band for the visit that fired it. The tier
 * ladder, the two-beat print and the shared keyframes are the score-band
 * system above; what follows is only what these states add.
 *
 * Frame shake is the one thing that cannot be a plain shake keyframe: the
 * screen is centred with translate(-50%, -50%), so a keyframe that sets
 * `transform` would drop the centring and throw the frame across the stage.
 * Every quake carries the centring in its own transforms. */
.moment-state { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.sb-quaking { animation: var(--sb-quake) }
@keyframes sb-quake-1 {
  0%, 100% { transform: translate(-50%, -50%) }
  10% { transform: translate(calc(-50% - 4px), calc(-50% + 2px)) }
  22% { transform: translate(calc(-50% + 3px), calc(-50% - 2px)) }
  34% { transform: translate(calc(-50% - 2px), calc(-50% - 1px)) }
  46% { transform: translate(-50%, -50%) }
}
@keyframes sb-quake-4 {
  0%, 100% { transform: translate(-50%, -50%) }
  5% { transform: translate(calc(-50% - 17px), calc(-50% + 11px)) }
  11% { transform: translate(calc(-50% + 14px), calc(-50% - 10px)) }
  17% { transform: translate(calc(-50% - 12px), calc(-50% - 7px)) }
  23% { transform: translate(calc(-50% + 10px), calc(-50% + 7px)) }
  30% { transform: translate(calc(-50% - 7px), calc(-50% + 4px)) }
  38% { transform: translate(calc(-50% + 4px), calc(-50% - 3px)) }
  48% { transform: translate(-50%, -50%) }
}
@keyframes sb-quake-5 {
  0%, 100% { transform: translate(-50%, -50%) }
  4% { transform: translate(calc(-50% - 23px), calc(-50% + 15px)) }
  9% { transform: translate(calc(-50% + 20px), calc(-50% - 13px)) }
  14% { transform: translate(calc(-50% - 17px), calc(-50% - 10px)) }
  19% { transform: translate(calc(-50% + 14px), calc(-50% + 10px)) }
  25% { transform: translate(calc(-50% - 10px), calc(-50% + 6px)) }
  32% { transform: translate(calc(-50% + 7px), calc(-50% - 5px)) }
  40% { transform: translate(calc(-50% - 3px), calc(-50% + 2px)) }
  50% { transform: translate(-50%, -50%) }
}
/* Madhouse: low and uneasy, and it never quite settles. */
@keyframes sb-rumble {
  0% { transform: translate(-50%, -50%) }
  3% { transform: translate(calc(-50% - 6px), calc(-50% + 14px)) }
  7% { transform: translate(calc(-50% + 4px), calc(-50% - 9px)) }
  11% { transform: translate(calc(-50% - 3px), calc(-50% + 5px)) }
  15% { transform: translate(-50%, -50%) }
  22% { transform: translate(calc(-50% + 5px), calc(-50% + 11px)) }
  27% { transform: translate(calc(-50% - 4px), calc(-50% - 7px)) }
  32% { transform: translate(calc(-50% + 2px), calc(-50% + 4px)) }
  38% { transform: translate(-50%, -50%) }
  62% { transform: translate(calc(-50% - 2px), calc(-50% + 3px)) }
  78% { transform: translate(calc(-50% + 2px), calc(-50% - 2px)) }
  100% { transform: translate(-50%, -50%) }
}
/* Bust: the red flash is the state's own colour, not a screen-blended white. */
@keyframes sb-flash-red { 0% { opacity:0 } 4% { opacity:.45 } 14% { opacity:.16 } 22% { opacity:.38 } 44% { opacity:0 } 100% { opacity:0 } }
@keyframes sb-chip { 0% { opacity:0; transform:translateY(26px) scale(.86) } 40% { opacity:1; transform:translateY(0) scale(1.06) } 55% { transform:scale(1) } 84% { opacity:1 } 100% { opacity:0 } }
/* Madhouse: the bats scatter out of the scene to where each one is going. */
@keyframes sb-bat {
  0% { opacity:0; transform:translate(-50%,-50%) translate(0,60px) scale(.2) rotate(0deg) }
  14% { opacity:1 }
  76% { opacity:.9 }
  100% { opacity:0; transform:translate(-50%,-50%) translate(var(--bx),var(--by)) scale(1) rotate(var(--br)) }
}
@keyframes sb-flap { 0%, 100% { transform:scaleY(1) } 50% { transform:scaleY(.42) } }
/* Low rider: speed lines past the frame edges, alternating direction. */
@keyframes sb-streak { 0% { opacity:0; transform:translateX(var(--sx)) scaleX(.2) } 18% { opacity:1 } 64% { opacity:.8 } 100% { opacity:0; transform:translateX(calc(var(--sx) * -1)) scaleX(1) } }
/* Shanghai: the jackpot. */
@keyframes sj-pop { 0% { opacity:0; transform:scale(var(--s0)) } 62% { opacity:1 } 78% { transform:scale(1.06) } 100% { opacity:1; transform:scale(1) } }
@keyframes sj-rise { 0% { opacity:0; transform:translateY(26px) scale(.86) } 66% { opacity:1 } 100% { opacity:1; transform:translateY(0) scale(1) } }
@keyframes sj-spin { 0% { transform:rotate(0deg) } 100% { transform:rotate(360deg) } }
@keyframes sj-breathe { 0% { transform:scale(.96) } 100% { transform:scale(1.06) } }
/* The Shanghai number's beds on the board: lit as each chip locks, then held. */
@keyframes sj-bed { 0% { opacity:0 } 8% { opacity:.95 } 30% { opacity:.62 } 100% { opacity:.62 } }
/* Champagne finish: the bottle builds, the cork goes, the frame takes it. */
@keyframes cf-dim { 0% { opacity:0 } 10% { opacity:1 } 88% { opacity:1 } 100% { opacity:0 } }
@keyframes cf-medal { 0% { opacity:0; transform:scale(1.32) } 8% { opacity:1; transform:scale(.97) } 11% { transform:scale(1.01) } 13% { transform:scale(1) } 88% { opacity:1; transform:scale(1) } 100% { opacity:0; transform:scale(1.03) } }
@keyframes cf-tremble {
  0%, 10% { transform:translate(0,0) rotate(0deg) }
  12% { transform:translate(1px,0) rotate(.4deg) } 14% { transform:translate(-1px,1px) rotate(-.5deg) }
  16% { transform:translate(1px,-1px) rotate(.7deg) } 18% { transform:translate(-2px,1px) rotate(-.9deg) }
  20% { transform:translate(2px,-1px) rotate(1.2deg) } 22% { transform:translate(-2px,2px) rotate(-1.5deg) }
  24% { transform:translate(3px,-2px) rotate(1.9deg) } 25.5% { transform:translate(-3px,2px) rotate(-2.3deg) }
  27% { transform:translate(4px,-3px) rotate(2.6deg) }
  27.8% { transform:translate(-22px,26px) rotate(-6deg) scale(1.05) }
  31% { transform:translate(8px,-8px) rotate(2deg) scale(.99) }
  35% { transform:translate(-3px,3px) rotate(-.7deg) scale(1) }
  40%, 100% { transform:translate(0,0) rotate(0deg) scale(1) }
}
@keyframes cf-cork { 0%,10% { transform:translate(0,0) rotate(0deg) } 14% { transform:translate(1px,-1px) rotate(-4deg) } 18% { transform:translate(2px,-2px) rotate(5deg) } 22% { transform:translate(4px,-4px) rotate(-7deg) } 25% { transform:translate(6px,-6px) rotate(9deg) } 27.6% { opacity:1; transform:translate(9px,-9px) rotate(-6deg) } 27.8%,100% { opacity:0; transform:translate(9px,-9px) } }
@keyframes cf-neck { 0%,10% { opacity:0; transform:translate(-50%,-50%) scale(.3) } 27.5% { opacity:.85; transform:translate(-50%,-50%) scale(1) } 28.6% { opacity:.9; transform:translate(-50%,-50%) scale(1.5) } 38%,100% { opacity:0; transform:translate(-50%,-50%) scale(1.8) } }
@keyframes cf-flash { 0% { opacity:0 } 8% { opacity:.32 } 100% { opacity:0 } }
@keyframes cf-ring { 0% { opacity:0; transform:translate(-50%,-50%) scale(.15) } 10% { opacity:1 } 70% { opacity:.4 } 100% { opacity:0; transform:translate(-50%,-50%) scale(1) } }
@keyframes cf-title { 0% { opacity:0; transform:scale(1.5) } 12% { opacity:1; transform:scale(.96) } 18% { transform:scale(1.02) } 24% { transform:scale(1) } 82% { opacity:1; transform:scale(1) } 100% { opacity:0; transform:scale(1.02) } }
@keyframes cf-cap { 0% { opacity:0; transform:translateY(24px) } 14% { opacity:1; transform:translateY(0) } 82% { opacity:1 } 100% { opacity:0 } }
@media (prefers-reduced-motion: reduce) {
  .sb-quaking { animation: none }
  .moment-state canvas { display: none }
}

/* ── Leg won: the broadcast lower third over the dimmed game screen ───────── */
/* The gameplay layer under the winner card fills that same frame. */
.legwon__behind { position: absolute; inset: 0; opacity: .5; filter: saturate(.85); }
.legwon { position: absolute; inset: 0; }
.legwon__impact { position: absolute; inset: 0; background: #fff; opacity: 0; animation: lw-impact .45s var(--dh-ease-out) .4s both; }
@keyframes lw-impact { 0% { opacity: 0 } 10% { opacity: .45 } 100% { opacity: 0 } }

.legwon__lower {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 170px;
  height: 300px;
  display: flex;
  align-items: stretch;
  animation: lw-slam .5s cubic-bezier(.2, .9, .25, 1) both;
}
/* The card flies in, overshoots, and the screen takes the knock: the wiggle
 * that follows is the board settling after a hit. */
@keyframes lw-slam {
  0% { transform: translateX(-115%) skewX(6deg) }
  62% { transform: translateX(2.5%) skewX(-1.5deg) }
  82% { transform: translateX(-1%) skewX(.5deg) }
  100% { transform: translateX(0) skewX(0) }
}
/* The screen is centred with translate(-50%, -50%), so the knock has to carry
 * that centring: a keyframe that sets a bare translate drops it and throws the
 * whole frame half a screen down and right for the length of the shake. */
.screen--legwon { animation: lw-shake .5s var(--dh-ease-out) .4s both; }
@keyframes lw-shake {
  0% { transform: translate(-50%, -50%) }
  14% { transform: translate(calc(-50% - 16px), calc(-50% + 7px)) }
  30% { transform: translate(calc(-50% + 13px), calc(-50% - 6px)) }
  46% { transform: translate(calc(-50% - 9px), calc(-50% + 4px)) }
  62% { transform: translate(calc(-50% + 6px), calc(-50% - 3px)) }
  80% { transform: translate(calc(-50% - 3px), calc(-50% + 1px)) }
  100% { transform: translate(-50%, -50%) }
}

.legwon__tag {
  width: 430px;
  flex: 0 0 auto;
  background: var(--dh-brand-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 60px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
}
.legwon--match .legwon__tag { background: var(--cr-score-here); }
.legwon__eb { font-size: 26px; letter-spacing: .3em; color: #fff; opacity: .9; }
.legwon--match .legwon__eb { color: #00091f; opacity: 1; }
.legwon__leg { font-size: 58px; line-height: 1; color: #fff; }
.legwon--match .legwon__leg { color: #00091f; }

.legwon__who {
  flex: 1;
  min-width: 0;
  background: rgba(11, 13, 17, .78);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 64px 0 44px;
  transform-origin: left center;
  animation: lw-wiggle 1s var(--dh-ease-out) .46s both;
}
@keyframes lw-wiggle {
  0% { transform: rotate(0) }
  18% { transform: rotate(.55deg) }
  38% { transform: rotate(-.38deg) }
  58% { transform: rotate(.22deg) }
  78% { transform: rotate(-.1deg) }
  100% { transform: rotate(0) }
}
.legwon__avatar { width: 196px; height: 196px; border-radius: 9999px; overflow: hidden; flex: 0 0 auto; border: 6px solid var(--cr-score-here); box-shadow: 0 0 50px rgba(255, 201, 60, .4); }
.legwon__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.legwon__id { min-width: 0; }
.legwon__name { font-size: 86px; line-height: 1; color: #fff; white-space: nowrap; }
.legwon__how { font-size: 28px; letter-spacing: var(--dh-ls-micro); color: var(--dh-text-secondary); margin-top: 10px; white-space: nowrap; }
.legwon__how b { color: var(--cr-score-here); font-weight: 400; }
.legwon__prog { margin-left: auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.legwon__prog-row { display: flex; align-items: center; gap: 14px; }
.legwon__prog-row span { font-size: 20px; letter-spacing: .1em; color: var(--dh-text-secondary); }
.legwon__bars { display: flex; gap: 8px; }
.legwon__bar { display: block; width: 54px; border-radius: 4px; background: rgba(255, 255, 255, .11); }
.legwon__bar--set { height: 14px; }
.legwon__bar--leg { height: 10px; border-radius: 8px; }
.legwon__bar.is-won { background: #3ad24e; box-shadow: 0 0 14px rgba(58, 210, 78, .6); }
.legwon__bar--set.is-won { background: var(--cr-score-here); box-shadow: 0 0 16px rgba(255, 201, 60, .65); }
.legwon__bar.is-new { background: rgba(255, 255, 255, .3); animation: lw-light .5s cubic-bezier(.2, .9, .25, 1) 1.05s both; }
.legwon__bar--set.is-new { animation-name: lw-light-set; }
@keyframes lw-light { to { background: #3ad24e; box-shadow: 0 0 22px rgba(58, 210, 78, .85) } }
@keyframes lw-light-set { to { background: #ffc93c; box-shadow: 0 0 24px rgba(255, 201, 60, .9) } }

.legwon__countdown { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: 520px; height: 6px; border-radius: 9999px; background: rgba(209, 213, 216, .1); overflow: hidden; }
.legwon__countdown i { display: block; height: 100%; border-radius: 9999px; background: var(--dh-brand-blue); transform-origin: left; animation: lw-count 3s linear both; }
@keyframes lw-count { from { transform: scaleX(0) } to { transform: scaleX(1) } }

/* ── Statistics after a leg (screens/stats.js, HANDOFF-tv-stats-screens.md) ───
   THIS LEG / MATCH, 1–6 players, the same layout for every game: navy ground, the game's art as a soft strip along
   the top only, the table (300 px labels + one column per player), the chart panel at 790. */
.ts { --ts-label: 300px; position: absolute; inset: 0; overflow: hidden; font-family: 'Outfit', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #d1d5d8;
  background: radial-gradient(ellipse 80% 70% at 60% 20%, #0b2a6e 0%, #03123a 50%, #00091f 100%); }
.ts__bg { position: absolute; left: 0; right: 0; top: 0; height: 257px; background-repeat: no-repeat; background-size: 1920px auto; background-position: 0 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 60%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 60%); mask-composite: intersect; }
/* X01: the board top mid-left, gone by a third of the height so the photo's darts stay off the table. */
.ts__bg--board { inset: 0; height: auto; background-size: 2100px auto; background-position: -150px -330px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 22%, transparent 34%), linear-gradient(90deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 22%, transparent 34%), linear-gradient(90deg, transparent 0%, #000 60%); }

.ts__head { position: absolute; left: 72px; right: 72px; top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ts__title { display: flex; align-items: baseline; gap: 28px; min-width: 0; }
.ts__game { font-family: var(--dh-font-display); font-size: 52px; line-height: 1; color: #fff; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ts__eye { font-family: var(--dh-font-display); font-size: 20px; letter-spacing: .16em; text-transform: uppercase; color: #8e98a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts__tabs { display: flex; align-items: center; gap: 10px; flex: none; }
.ts__tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--dh-font-display); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: #8e98a0; background: rgba(0,9,31,.5); border: 1px solid rgba(209,213,216,.16); }
.ts__tab.is-on { background: #014cfd; border-color: #014cfd; color: #fff; box-shadow: 0 0 30px rgba(1,76,253,.5); }
.ts__again { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; margin-right: 8px; border-radius: 999px; font-family: var(--dh-font-display); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: #ffc93c; background: rgba(255,201,60,.12); border: 1px solid rgba(255,201,60,.55); white-space: nowrap; }
.ts__fill { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: #ffc93c; transform-origin: left; animation: ts-fill var(--ts-page, 7s) linear both; }
.ts__fill.is-pinned { animation: none; transform: scaleX(.62); }
@keyframes ts-fill { from { transform: scaleX(0) } to { transform: scaleX(1) } }

.ts__table { position: absolute; left: 72px; right: 72px; top: 150px; display: flex; flex-direction: column; gap: 6px; }
.ts__row { display: grid; align-items: center; column-gap: 16px; height: 56px; border-radius: 14px; }
.ts__row.is-alt { background: rgba(209,213,216,.04); }
.ts__row--cards { position: relative; height: auto; margin-bottom: 8px; }
.ts__label { font-family: var(--dh-font-display); font-size: 19px; letter-spacing: .1em; color: #8e98a0; text-transform: uppercase; padding-left: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts__cell { display: flex; justify-content: center; min-width: 0; }
.ts__val { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; max-width: 100%; height: 42px; padding: 0 18px; border-radius: 12px; font-family: var(--dh-font-display); font-size: 28px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ts__val.is-best { background: rgba(255,201,60,.16); color: #ffc93c; box-shadow: inset 0 0 0 2px rgba(255,201,60,.6); }
.ts__val.is-dim { color: #5d6873; }
.ts__val.is-red { background: rgba(251,97,97,.14); color: #fb6161; box-shadow: inset 0 0 0 2px rgba(251,97,97,.45); }
.ts--n5 .ts__val, .ts--n6 .ts__val { min-width: 96px; padding: 0 12px; font-size: 24px; }

/* The player cards: centred, the leg winner (and a solo player) in the gold frame. */
.ts__card { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; padding: 10px 18px; border-radius: 20px; background: rgba(8,22,58,.85); border: 1px solid rgba(66,155,252,.22); }
.ts__card.is-win { background: linear-gradient(180deg, rgba(255,201,60,.2), rgba(255,201,60,.04)); border-color: rgba(255,201,60,.7); box-shadow: 0 0 50px rgba(255,201,60,.18); }
.ts__av { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #0e2a66; box-shadow: 0 0 0 4px #00091f, 0 0 0 7px var(--ring, #429bfc); }
.ts__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts__av b { font-family: var(--dh-font-display); font-weight: 400; font-size: 24px; color: #fff; }
.ts__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* A long name wraps between words, two lines at most, on the bottom line of the room every name gets (stats.js fitCardNames). */
.ts__name { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; font-family: var(--dh-font-display); font-size: 28px; line-height: 1.1; color: #fff; letter-spacing: .04em; text-transform: uppercase; white-space: normal; overflow-wrap: normal; word-break: normal; overflow: hidden; }
.ts__sub { font-size: 19px; color: #8e98a0; white-space: nowrap; overflow: hidden; }
.ts__card.is-win .ts__sub { color: #ffc93c; }
.ts__legs { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.ts__pl { font-family: var(--dh-font-display); font-size: 13px; letter-spacing: .12em; color: #8e98a0; text-transform: uppercase; }
.ts__bars { display: flex; align-items: center; gap: 5px; }
.ts__bar { display: block; width: 28px; border-radius: 3px; background: rgba(255,255,255,.11); }
.ts__bar--leg { height: 7px; border-radius: 7px; }
.ts__bar--set { height: 10px; }
.ts__bar--leg.is-won { background: #3ad24e; box-shadow: 0 0 12px rgba(58,210,78,.6), inset 0 0 0 1px rgba(255,255,255,.28); }
.ts__bar--set.is-won { background: #ffc93c; box-shadow: 0 0 14px rgba(255,201,60,.65), inset 0 0 0 1px rgba(255,255,255,.3); }
/* Five and six players: the card stacks, the bars shrink. */
.ts--n5 .ts__card, .ts--n6 .ts__card { gap: 12px; padding: 10px 12px; }
.ts--n5 .ts__av, .ts--n6 .ts__av { width: 52px; height: 52px; }
.ts--n5 .ts__name, .ts--n6 .ts__name { font-size: 24px; }
.ts--n5 .ts__sub, .ts--n6 .ts__sub { font-size: 17px; line-height: 1.15; white-space: normal; }
.ts--n5 .ts__bar, .ts--n6 .ts__bar { width: 18px; }
/* 1 v 1: the VS tile between the two cards. */
.ts__vs { position: absolute; left: calc(50% + 158px); top: 50%; transform: translate(-50%, -50%) rotate(-6deg); width: 88px; height: 88px; border-radius: 24px; background: linear-gradient(135deg, #014cfd, #00133f); border: 3px solid #ffc93c; display: flex; align-items: center; justify-content: center; font-family: var(--dh-font-display); font-size: 36px; color: #fff; letter-spacing: .02em; box-shadow: 0 0 0 6px rgba(0,9,31,.9), 0 0 46px rgba(1,76,253,.75), 0 0 26px rgba(255,201,60,.4); text-shadow: 0 3px 0 #00133f; z-index: 2; }

/* The chart panel. */
.ts__charttitle { position: absolute; left: 92px; top: 746px; font-family: var(--dh-font-display); font-size: 20px; letter-spacing: .18em; text-transform: uppercase; color: #d1d5d8; }
.ts__story { position: absolute; left: 72px; right: 72px; top: 790px; height: 262px; box-sizing: border-box; padding: 14px 28px 10px 20px; display: flex; gap: 24px; border-radius: 24px; background: rgba(6,18,50,.82); border: 1px solid rgba(66,155,252,.22); }
.ts__chart { position: relative; flex: none; width: 1440px; height: 236px; }
.ts__chart svg { display: block; overflow: visible; }
.ts__legend { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 6px 0 10px 24px; border-left: 1px solid rgba(209,213,216,.1); }
/* Legend names: whole, never an ellipsis — two lines at most, at word breaks; screens/stats.js fitLegend sizes them. */
.ts__key { display: flex; align-items: center; gap: 16px; font-family: var(--dh-font-display); line-height: 1.05; color: #fff; letter-spacing: .04em; text-transform: uppercase; white-space: normal; min-width: 0; }
.ts__key i { flex: none; height: 6px; border-radius: 3px; }
.ts__key span { flex: 1 1 auto; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.ts__ov { position: absolute; white-space: nowrap; line-height: 1; pointer-events: none; }
.ts__ax { transform: translate(-50%, -50%); font-size: 17px; color: #8e98a0; }
.ts__ay { transform: translate(-100%, -50%); font-size: 19px; color: #8e98a0; }
.ts__ay--ref { font-family: var(--dh-font-display); color: #ffc93c; }
.ts__tag { font-family: var(--dh-font-display); font-size: 15px; letter-spacing: 2px; color: #8e98a0; text-transform: uppercase; }
.ts__end { transform: translate(0, -75%); font-family: var(--dh-font-display); font-size: 24px; color: #fff; }
.ts__end.is-end { transform: translate(-100%, -75%); }
.ts__end.is-small { font-size: 20px; }
.ts__bust { transform: translate(-50%, -100%); font-family: var(--dh-font-display); font-size: 18px; color: #fb6161; }
.ts__chip { transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 10px; background: #ffc93c; color: #241a00; font-family: var(--dh-font-display); font-size: 16px; letter-spacing: .08em; box-shadow: 0 0 24px rgba(255,201,60,.55); }
.ts__half { transform: translate(-50%, 0); font-family: 'Outfit', 'Archivo', system-ui, sans-serif; font-weight: 700; font-size: 24px; color: #fb6161; }
.ts__ko { transform: translate(-50%, -100%); margin-top: -14px; padding: 5px 10px; border-radius: 8px; background: rgba(46,14,30,.94); border: 1px solid rgba(251,97,97,.6); font-family: var(--dh-font-display); font-size: 14px; color: #fb6161; text-transform: uppercase; }
/* Killer: tighter columns, the chart's drops carry no labels. */
.ts--killer { --ts-label: 280px; }
.ts--killer .ts__val { font-size: 27px; }

@media (prefers-reduced-motion: reduce) {
  .legwon__lower, .legwon__who, .screen--legwon, .legwon__impact, .legwon__bar.is-new, .ts__fill { animation-duration: .01ms; }
}


/* ── Round the Clock ──────────────────────────────────────────────────────
 * The card is the X01 card with a different figure: not what is left, but
 * the number they are throwing at. It says so above the number, because a
 * bare 14 on a scoreboard reads as a score. */
.rtc-target::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: -24px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  color: var(--dh-text-secondary);
  white-space: nowrap;
}
.player--right .rtc-target::before { left: auto; right: 0; }
.seats .rtc-target::before { top: -12px; font-size: 14px; }
/* Five and six a side: the card has no line to spare, and the lit number on
 * the board is already saying what the figure is. */
.seats--compact .rtc-target::before { display: none; }
/* Outside the seats the card is a column, not a grid: the bar takes the
 * width the trend card has in X01. */
.game--rtc .player > .leg-progress,
.game--elimination .player > .leg-progress { width: 400px; }
.game--rtc .seats .player > .leg-progress,
.game--elimination .seats .player > .leg-progress { width: 100%; }
.game--rtc .player--solo .x01__score--wide { font-size: 150px; }
/* The order's last target: nothing comes after it, so the "then" box goes (owner QA 799 5f7e057d). Hidden, not
 * removed: the room stays, and the bar and the stats row keep level with the other card. */
.game--rtc .x01-checkout.rtc-then--none { visibility: hidden; }
/* 'Done' is five characters where X01's 'Last' is three: at the full-size card
 * the row ran into the board's numbers, so it steps down and closes up. */
.game--rtc .player--left:not([data-seat]) .player__stats,
.game--rtc .player--right:not([data-seat]) .player__stats { gap: 26px; }
.game--rtc .player--left:not([data-seat]) .player__stat-value,
.game--rtc .player--right:not([data-seat]) .player__stat-value { font-size: 44px; }

/* ── Elimination ──────────────────────────────────────────────────────────
 * A knock-back chip is a checkout chip that names who it lands on. */
.el-strike { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.el-strike small {
  font-size: .44em;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}
/* Within reach of whoever is throwing. Red, because this is the one card on
 * the screen about to lose something. */
.el-range {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(255, 77, 85, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 85, .7);
  font-size: 18px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  color: #ff8a90;
  white-space: nowrap;
}
.seats--tall .el-range { font-size: 16px; padding: 3px 9px; }
.seats--compact .el-range { font-size: 14px; padding: 2px 8px; }
.screen--game .seats .player--threat.player--idle {
  background: rgba(255, 77, 85, .07);
  box-shadow: inset 0 0 0 2px rgba(255, 77, 85, .5), 0 0 30px rgba(255, 77, 85, .12);
}
.seats .player--threat.player--idle { opacity: .94; }
.player--threat.player--idle .player__score { color: #ff8a90; }
/* Three knock backs under a three-digit score: the chips step down a size. */
.game--elimination .seats--tall .el-strike { padding: 7px 12px; font-size: 23px; }
.game--elimination .seats--compact .el-strike { padding: 5px 10px; font-size: 20px; }

/* ── Bermuda ──────────────────────────────────────────────────────────────
 * Shanghai's card and Shanghai's strip, with one cell Shanghai never has: the
 * round that took nothing, which cost half of everything. It stands the full
 * height of the strip, hatched, so it cannot be read as a good round. */
.sh-cell--halved::before { height: 4px; background: rgba(255, 77, 85, .95); }
.sh-cell--halved::after {
  height: calc(100% - var(--sh-label));
  background: repeating-linear-gradient(135deg, rgba(255, 77, 85, .88) 0 6px, rgba(255, 77, 85, .42) 6px 12px);
}
.game--bermuda .sh-strip { gap: 5px; }
.game--bermuda .seats .sh-strip { gap: 4px; }
.bm-halved { color: #ff6b72 !important; }
.seats .player--idle .sh-cell--halved::after { filter: saturate(.7) brightness(.85); }

/* The halving. The total lands whole, the line goes through at 520ms, the
 * halves come apart and the new total is stamped where it stood. */
.halved-band { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
@keyframes bm-cut-up {
  0% { opacity:0; transform:scale(1.6) }
  9% { opacity:1; transform:scale(.97) }
  14%, 17.3% { opacity:1; transform:translate(0,0) rotate(0deg) scale(1) }
  30% { opacity:1; transform:translate(-24px,-44px) rotate(-5deg) }
  40% { opacity:0; transform:translate(-70px,-150px) rotate(-10deg) }
  100% { opacity:0; transform:translate(-70px,-150px) rotate(-10deg) }
}
@keyframes bm-cut-down {
  0% { opacity:0; transform:scale(1.6) }
  9% { opacity:1; transform:scale(.97) }
  14%, 17.3% { opacity:1; transform:translate(0,0) rotate(0deg) scale(1) }
  30% { opacity:1; transform:translate(24px,44px) rotate(5deg) }
  40% { opacity:0; transform:translate(70px,170px) rotate(11deg) }
  100% { opacity:0; transform:translate(70px,170px) rotate(11deg) }
}
@keyframes bm-slash {
  0%, 15% { opacity:0; transform:translate(-50%,-50%) rotate(-7deg) scaleX(0) }
  19% { opacity:1; transform:translate(-50%,-50%) rotate(-7deg) scaleX(1) }
  30% { opacity:.9; transform:translate(-50%,-50%) rotate(-7deg) scaleX(1) }
  38%, 100% { opacity:0; transform:translate(-50%,-50%) rotate(-7deg) scaleX(1.05) }
}
@media (prefers-reduced-motion: reduce) {
  .halved-band [style*="bm-cut"], .halved-band [style*="bm-slash"] { animation: none }
}

/* ── Rows that hold their line ───────────────────────────────────────────────
 * Every card on a screen is read against the others, so what a card holds
 * must not move what sits under it. A three-digit score is set smaller than a
 * two-digit one but keeps the taller line; a route, a knock back and 'no
 * checkout' are different heights and share the tallest one's row; and the
 * Shanghai flag rides the card's edge rather than taking a row of its own. */
.x01-route { min-height: var(--route-row, 66px); }
.seats--tall { --route-row: 45px; }
.seats--compact { --route-row: 37px; }
.game--elimination { --route-row: 86px; }
.game--elimination .seats--tall { --route-row: 56px; }
.game--elimination .seats--compact { --route-row: 48px; }
.seats--tall .x01__score--wide { line-height: calc(150px * .92); }
.seats--compact .x01__score--wide { line-height: calc(118px * .92); }
/* Relative, so the flag has its own card to hang on; the 1v1 card's offsets
 * do not apply to a seat. */
.screen--game .seats .player { position: relative; inset: auto; }
.seats .sh-flag { position: absolute; top: 0; right: 26px; transform: translateY(-50%); z-index: 1; }

/* Round the Clock combo (owner 2026-10-21): all three darts of a visit hit, the thrower throws again. A chip on the
 * thrower's card, off the card's flow so no card changes height: above it head to head, on its top edge in the seats. */
.rtc-again {
  position: absolute;
  top: -58px;
  z-index: 3;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #3AD24E;
  color: #04210a;
  font-size: 22px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  white-space: nowrap;
  box-shadow: 0 0 28px rgba(58, 210, 78, .5);
  animation: rtc-again-in 420ms var(--dh-ease-out) both;
}
.player--left .rtc-again, .player--solo .rtc-again { left: 0; }
.player--right .rtc-again { right: 0; }
.seats .rtc-again { top: 0; left: auto; right: 26px; transform: translateY(-50%); padding: 6px 14px; font-size: 18px; }
.seats--left .rtc-again { right: auto; left: 26px; }
@keyframes rtc-again-in { from { opacity: 0; scale: .7 } to { opacity: 1; scale: 1 } }
@media (prefers-reduced-motion: reduce) { .rtc-again { animation: none } }

/* Three a side is the tightest card there is, and the row of tags under the
 * name took nineteen pixels of it. Cricket gives them back out of the towers,
 * Elimination out of the knock-back chips, so nothing runs past the card or
 * into the bar under it. */
/* Every game: the name, the tags and the ladders sit closer together. */
.seats--compact .player__who { gap: 5px; }
.game--shanghai .seats--compact .sh-ident { gap: 6px; }
.game--cricket .seats--compact .player { row-gap: 6px; }
.game--cricket .seats--compact .marks__cell { height: 15px; }
.game--cricket .seats--compact .marks__row,
.game--cricket .seats--compact .player--right .marks__row { gap: 4px; }
.game--elimination .seats--compact .el-strike { padding: 3px 9px; font-size: 18px; gap: 3px; }
.game--elimination .seats--compact { --route-row: 40px; }

/* ── Killer ──────────────────────────────────────────────────────────────────
 * A card is how many lives and which double. The lives are hearts as well as
 * a figure, because what the room follows is who is one hit from going. */
.killer-band { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.kl-lives { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; }
.kl-heart { display: block; width: 40px; height: 40px; flex: none; }
.kl-heart svg { display: block; width: 100%; height: 100%; fill: rgba(4, 10, 26, .62); stroke: var(--dh-stroke-24); stroke-width: 1.6; }
.kl-heart--on svg { fill: #ff4d55; stroke: #ff8a90; filter: drop-shadow(0 0 8px rgba(255, 77, 85, .55)); }
.player--right .kl-lives { flex-direction: row-reverse; }
.seats .kl-lives { grid-area: body; }
.seats .player--right .kl-lives,
.seats.seats--right .player .kl-lives { flex-direction: row-reverse; }
.seats--tall .kl-lives { height: 36px; gap: 11px; }
.seats--tall .kl-heart { width: 36px; height: 36px; }
.seats--compact .kl-lives { height: 28px; gap: 9px; }
.seats--compact .kl-heart { width: 28px; height: 28px; }
.seats .player--idle .kl-heart--on svg { filter: none; opacity: .78; }
/* Armed, and out. */
.kl-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: var(--dh-ls-micro);
  white-space: nowrap;
}
.kl-tag--killer { color: #1a1300; background: var(--cr-score-here); box-shadow: 0 0 18px rgba(255, 201, 60, .45); }
.kl-tag--out { color: var(--dh-text-secondary); background: rgba(209, 213, 216, .08); box-shadow: inset 0 0 0 1px var(--dh-stroke-24); }
.seats--tall .kl-tag { font-size: 16px; padding: 3px 9px; }
.seats--compact .kl-tag { font-size: 14px; padding: 2px 8px; }
/* A double is the colour it has on the board when its owner throws: gold
 * while it is the way in, red once it costs them a life. */
.player__stat-value.kl-target { color: var(--cr-score-here); }
.player__stat-value.kl-own { color: #ff8a90; }
/* Still after their own double: said plainly, in the board's blue, so it
 * cannot be read as the Killer's gold. */
.kl-tag--chasing { color: #9cc8ff; background: rgba(66, 155, 252, .12); box-shadow: inset 0 0 0 1px rgba(66, 155, 252, .6); }
/* A Killer wears it: a gold ring round the face and a crosshair on it. */
.kl-face { position: relative; flex: none; display: flex; }
.player--killer .player__avatar { box-shadow: 0 0 0 4px var(--cr-score-here), 0 0 26px rgba(255, 201, 60, .55); }
.kl-badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: var(--cr-score-here);
  color: #1a1300;
  box-shadow: 0 0 0 3px #00091f;
}
.kl-badge svg { width: 68%; height: 68%; }
.player--right:not([data-seat]) .kl-badge { right: auto; left: -8px; }
.seats--tall .kl-badge { width: 34px; height: 34px; right: -6px; bottom: -6px; }
.seats--compact .kl-badge { width: 28px; height: 28px; right: -5px; bottom: -5px; box-shadow: 0 0 0 2px #00091f; }
.seats--compact .player--killer .player__avatar { box-shadow: 0 0 0 3px var(--cr-score-here), 0 0 18px rgba(255, 201, 60, .5); }
/* Waiting their turn, a Killer's gold steps back with the rest of the card. */
.seats .player--idle.player--killer .player__avatar { box-shadow: 0 0 0 3px rgba(255, 201, 60, .75); }
/* The draw's call over the middle of the board (QA 797 #14): who throws, SHOOT FOR YOUR DOUBLE in the Killer's gold,
 * what the dart decides. Inside the double ring so the doubles already drawn stay in view; gone once the dart lands. */
.kl-call { position: absolute; left: 50%; top: 600px; z-index: 5; width: 600px; transform: translate(-50%, -50%); pointer-events: none; }
.kl-call[hidden] { display: none; }
.kl-call__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 34px 30px;
  border-radius: 32px;
  text-align: center;
  background: rgba(0, 9, 31, .86);
  border: 2px solid rgba(255, 201, 60, .8);
  box-shadow: 0 0 90px rgba(255, 201, 60, .32), 0 24px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(12px);
  animation: kl-call-in 520ms var(--dh-ease-out) both, kl-call-glow 2.4s ease-in-out 520ms infinite;
}
.kl-call__eye { font-size: 26px; line-height: 1.1; letter-spacing: .14em; text-transform: uppercase; color: #9cc8ff; }
.kl-call__title { font-size: 60px; line-height: 1.02; text-transform: uppercase; color: #ffc93c; text-shadow: 0 0 44px rgba(255, 201, 60, .55); }
.kl-call__sub { font-family: 'Outfit', 'Archivo', system-ui, sans-serif; font-size: 26px; line-height: 1.25; color: #d1d5d8; }
@keyframes kl-call-in { 0% { opacity: 0; transform: scale(1.25); } 100% { opacity: 1; transform: none; } }
@keyframes kl-call-glow { 0%, 100% { box-shadow: 0 0 90px rgba(255, 201, 60, .32), 0 24px 70px rgba(0, 0, 0, .55); } 50% { box-shadow: 0 0 130px rgba(255, 201, 60, .5), 0 24px 70px rgba(0, 0, 0, .55); } }
@media (prefers-reduced-motion: reduce) { .kl-call__card { animation: none; } }
/* Out of the leg: still at the table, no longer in it. */
.game--killer .player--out { opacity: .42; filter: saturate(.4); }
.game--killer .player--out .player__score { color: var(--dh-text-secondary); }
@media (prefers-reduced-motion: reduce) {
  .killer-band [style*="sb-"] { animation-duration: 1ms !important; }
}


/* ── Hold'em (party mode) — redesign 2026-10-10 ───────────────────────────
 * SPEC-holdem-redesign §1–§2, frames agents/cto/design/holdem-redesign/Main + TV-*. One full-stage scene per moment
 * (screens/holdem.js): lobby, intro, the dealt board (+ the card reveal), the poker table (betting, showdown, everyone
 * folded), bull-off, final. Navy stage, Audiowide display + Archivo body, gold #ffc93c only for the moment that
 * matters. */
.game--holdem {
  --hx-gold: #ffc93c;
  --hx-blue: #429bfc;
  --hx-red: #ff6b6b;
  --hx-grey: #8e98a0;
  --hx-ink: #00091f;
  --hx-paper: #f7f2e8;
  --hx-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The lobby is the shared party join screen (derby.css .dy-qr/.dy-pitch/.dy-lseat…, screens/party-join.js). */
  --dy-gold: #ffc93c;
  --dy-blue: #429bfc;
  --dy-grey: #8e98a0;
  --dy-body: var(--hx-body);
  color: #d1d5d8;
  letter-spacing: 0;
}
.hx-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 65% at 50% 52%, #0b2a6e 0%, #03123a 50%, #00091f 100%); transition: background 600ms; }
.game--holdem[data-step="lobby"] .hx-bg { background: radial-gradient(ellipse 70% 62% at 50% 40%, #0b2a6e 0%, #03123a 48%, #00091f 100%); }
.game--holdem[data-step="throw"] .hx-bg { background: radial-gradient(ellipse 60% 70% at 24% 46%, #0b2a6e 0%, #03123a 50%, #00091f 100%); }
.game--holdem[data-step="showdown"] .hx-bg { background: radial-gradient(ellipse 70% 65% at 50% 52%, #1a2f6e 0%, #03123a 50%, #00091f 100%); }
.game--holdem[data-step="bulloff"] .hx-bg { background: radial-gradient(ellipse 40% 60% at 50% 55%, #0b2a6e 0%, #03123a 55%, #00091f 100%); }
.game--holdem[data-step="final"] .hx-bg { background: #00091f; }
.game--holdem.hx-revealing .hx-bg { background: radial-gradient(ellipse 55% 65% at 50% 46%, #0b2a6e 0%, #03123a 52%, #00091f 100%); }
.hx-scene, .hx-fx { position: absolute; inset: 0; }
.hx-fx { pointer-events: none; z-index: 20; }

/* Type */
.hx-eye { font-family: var(--dh-font-display); font-size: 20px; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-grey); }
.hx-eye--blue { color: var(--hx-blue); }
.hx-eye--gold { color: var(--hx-gold); }
.hx-eye--light { color: #d1d5d8; }
.neg { color: var(--hx-red) !important; }
.gold { color: var(--hx-gold) !important; }

/* Header */
.hx-head { position: absolute; left: 72px; right: 72px; top: 44px; z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.hx-head__l { display: flex; align-items: baseline; gap: 28px; min-width: 0; }
.hx-title { font-size: 44px; color: #fff; letter-spacing: .04em; white-space: nowrap; }
.game--holdem[data-step="lobby"] .hx-title { font-size: 48px; }
.hx-head__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-hpots { display: flex; gap: 14px; }
.hx-hpot { display: flex; align-items: center; gap: 16px; padding: 10px 26px 10px 18px; border-radius: 999px; background: rgba(255, 201, 60, .1); border: 1px solid rgba(255, 201, 60, .35); }
.hx-hpot .hx-eye { color: var(--hx-gold); }
.hx-hpot b { font-weight: 400; font-size: 44px; color: var(--hx-gold); }
.hx-hpot--side { padding-left: 24px; }
.hx-hpot--side b { font-size: 34px; }
.hx-raises { display: flex; align-items: center; gap: 8px; }
.hx-raises .hx-eye { margin-right: 4px; }
.hx-raises i { width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; border: 2px solid rgba(142, 152, 160, .5); }
.hx-raises i.on { background: var(--hx-blue); border-color: var(--hx-blue); }

/* Cards (§1.2, §1.3) */
.hx-card { position: relative; display: inline-block; flex: none; box-sizing: border-box; background: var(--hx-paper); color: #15171d; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); font-style: normal; font-family: var(--dh-font-display); letter-spacing: 0; }
.hx-card--red { color: #c8283c; }
.hx-card__ix { position: absolute; left: 9%; top: 6%; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hx-card__ix b { font-weight: 400; }
.hx-card__ix .hx-suit { width: .72em; height: .72em; margin-top: .08em; }
.hx-card__pip { position: absolute; left: 0; right: 0; bottom: 11%; display: flex; justify-content: center; }
.hx-card__pip .hx-suit { width: 1.9em; height: 1.9em; }
.hx-suit { display: block; flex: none; }
.hx-card--l { width: 120px; height: 168px; font-size: 32px; }
.hx-card--t { width: 96px; height: 134px; font-size: 26px; border-radius: 10px; }
.hx-card--p { width: 72px; height: 100px; font-size: 20px; border-radius: 8px; }
.hx-card--s { width: 60px; height: 84px; font-size: 17px; border-radius: 8px; }
.hx-card--xs { width: 44px; height: 62px; font-size: 13px; border-radius: 7px; }
.hx-card--xs .hx-card__pip { display: none; }
.hx-card--xs .hx-card__ix { left: 0; right: 0; top: 14%; font-size: 15px; }
.hx-card--back {
  background:
    url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ0LjQ5NyAzMi40MTg5QzQ0LjMwMTMgMzUuOTk4NiA0Mi43MzY0IDM4Ljc1NTIgMzkuOTE5MSA0MC44NjcyQzM3LjY4ODcgNDIuNTQ5NiAzNS4xMDU4IDQzLjQ4MDUgMzIuMjEwMiA0My40ODA1SDIxLjI5MzhDMjAuODI0MyA0My41MTYzIDIwLjM1NCA0My40MDg1IDE5LjUzMjMgNDMuMzM2OUMyMy40ODQzIDM5LjcyMTUgMjcuMTYyNiAzNi4zOTIyIDMwLjg3OTkgMzMuMDI3M0MzMS4xOTI4IDMyLjc0MTEgMzEuNjYyMyAzMi40NTUzIDMyLjA1MzUgMzIuNDU1MUMzNi4xMjMgMzIuNDE5MyA0MC4yMzIgMzIuNDE4OSA0NC40OTcgMzIuNDE4OVoiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iLjMiLz4KPHBhdGggZD0iTTE5LjQxNTUgMjAuNjA1NUMyNC41NDEzIDIwLjYwNTUgMjkuMTE5NSAyMC4zNTU2IDMzLjY1ODQgMjAuNjc3N0MzOS41Mjc4IDIxLjEwNzQgNDMuODcwOSAyNS43OTY2IDQ0LjQ5NyAzMS41OTU3SDQzLjUxOUMzOS44Nzk5IDMxLjYzMTUgMzYuMjQwNyAzMS42MzE1IDMyLjU2MjYgMzEuNTk1N0MzMi4wMTQ4IDMxLjU5NTcgMzEuMzQ5OCAzMS40MTU5IDMwLjk5NzcgMzEuMDkzOEMyNy4yNDEzIDI3LjcyODkgMjMuNTI0IDI0LjMyODMgMTkuNDE1NSAyMC42MDU1WiIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1vcGFjaXR5PSIuMyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTMwLjI1ODMgNEMzMC4zOTIyIDQuMDAwMTMgNjEuODY3OSA0LjA2MzM5IDU5LjkxMjUgMzMuNzk0OUM1OC4xODU3IDYwLjA1MDggMzAuMTI2OSA2MCAzMC4xMjY5IDYwSDRWNEgzMC4yNTgzWk0xMy4xNDQ0IDUyLjQ2MTlIMzAuMTI2OUMzMC4xMjY5IDUyLjQ2MTkgNDguOTM4OCA1MS45ODI5IDUxLjAyOSAzMy43OTQ5QzUyLjcyMyAxMS41OTQ2IDMwLjM3MSAxMS41MzgyIDMwLjI1ODMgMTEuNTM4MUgxMy4xNDQ0VjUyLjQ2MTlaIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9Ii4zIi8+Cjwvc3ZnPgo=") center / 52% no-repeat,
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .11) 0 1.5px, transparent 1.5px 8px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .11) 0 1.5px, transparent 1.5px 8px),
    radial-gradient(circle at 50% 45%, #2a66ff, #0a2f9e 78%);
  box-shadow: inset 0 0 0 4px #f7f8fa, inset 0 0 0 6px #0a2f9e, inset 0 0 0 7.5px rgba(255, 201, 60, .7), 0 10px 20px -10px rgba(0, 0, 0, .7);
}
.hx-card--xs.hx-card--back { box-shadow: inset 0 0 0 2.5px #f7f8fa, inset 0 0 0 4px #0a2f9e, 0 6px 12px -6px rgba(0, 0, 0, .7); }
.hx-card--slot { background: rgba(66, 155, 252, .05); border: 2px dashed rgba(66, 155, 252, .32); box-shadow: none; }
.hx-card--next { background: linear-gradient(180deg, #014cfd 0%, #0136b8 100%); color: #fff; border: 3px solid var(--hx-blue); box-shadow: 0 0 0 8px rgba(66, 155, 252, .18), 0 0 60px rgba(1, 76, 253, .8); display: inline-flex; align-items: center; justify-content: center; animation: hx-next 1.6s ease-in-out infinite; }
.hx-card--next .dt-dart { width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)) drop-shadow(0 0 22px rgba(90, 160, 255, .7)); }
.hx-card--t.hx-card--next .dt-dart { width: 52px; height: 52px; }
.hx-card--target { border-color: var(--hx-blue); box-shadow: 0 0 50px rgba(66, 155, 252, .8); }
@keyframes hx-next { 0%, 100% { box-shadow: 0 0 0 8px rgba(66, 155, 252, .18), 0 0 60px rgba(1, 76, 253, .8); } 50% { box-shadow: 0 0 0 12px rgba(66, 155, 252, .1), 0 0 80px rgba(1, 76, 253, 1); } }
.hx-tilt-l { transform: rotate(-8deg); }
.hx-tilt-r { transform: rotate(6deg); margin-left: 6px; }

/* A card that turns over (showdown, show): back first, then the face. */
.hx-flip { position: relative; display: inline-block; perspective: 700px; }
.hx-flip__in { position: relative; display: block; transform-style: preserve-3d; transform: rotateY(0deg); }
.hx-flip__face, .hx-flip__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hx-flip__back { position: absolute; left: 0; top: 0; transform: rotateY(180deg); }

/* Avatars (§1.1), the crown (§1.5), the dealer button */
.hx-av { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c, #014cfd); color: #fff; font-family: var(--dh-font-display); }
.hx-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hx-av > span { line-height: 1; }
.hx-av .hx-crown { position: absolute; left: 10%; top: -24%; width: 48%; height: auto; transform: rotate(-12deg); filter: drop-shadow(0 0 8px rgba(255, 201, 60, .7)); }
.hx-av--44 { width: 44px; height: 44px; font-size: 16px; }
.hx-av--52 { width: 52px; height: 52px; font-size: 18px; }
.hx-av--64 { width: 64px; height: 64px; font-size: 22px; }
.hx-av--112 { width: 112px; height: 112px; font-size: 38px; box-shadow: 0 0 0 6px #00091f, 0 0 0 9px rgba(255, 255, 255, .18); }
.hx-av--120 { width: 120px; height: 120px; font-size: 40px; }
.hx-av--140 { width: 140px; height: 140px; font-size: 46px; }
.hx-av--150 { width: 150px; height: 150px; font-size: 50px; }
.hx-av--220 { width: 220px; height: 220px; font-size: 72px; }
.hx-av--lit { box-shadow: 0 0 0 5px #00091f, 0 0 0 9px var(--hx-blue), 0 0 60px rgba(66, 155, 252, .6); }
.hx-dealer { width: 48px; height: 48px; border-radius: 50%; background: var(--hx-paper); color: var(--hx-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 0 0 4px #0a1430, 0 6px 16px rgba(0, 0, 0, .6); }
.hx-dealerpos { position: absolute; z-index: 3; }
.hx-dealer--seat { position: absolute; top: -16px; right: -12px; width: 42px; height: 42px; font-size: 20px; box-shadow: 0 0 0 3px #00091f, 0 4px 12px rgba(0, 0, 0, .5); }

/* Tags and pills */
.hx-tag { font-size: 15px; letter-spacing: .1em; padding: 7px 14px; border-radius: 999px; background: rgba(0, 9, 31, .75); color: #d1d5d8; white-space: nowrap; }
.hx-tag--blue { background: #014cfd; color: #fff; }
.hx-tag--gold { background: rgba(255, 201, 60, .16); color: var(--hx-gold); }
.hx-tag--red { background: #c62828; color: #fff; }

/* ── Lobby (frame Main · TV 1): the party join screen (SPEC-party-join-screen), Derby's classes + the felt ── */
.hx-scene--lobby { text-transform: none; }
.game--holdem .dy-pitch__p, .game--holdem .dy-how__tx span, .game--holdem .dy-lseat__hint { font-family: var(--hx-body); }
.dy-turf.hx-turf { background-image: url("img/holdem/lobby-poker-felt.jpg"); background-position: -180px -400px; }
.dy-cloth--lobby.hx-cloth { border-radius: 20px; }
.hx-howcards { display: flex; flex: none; width: 64px; justify-content: center; }
.hx-howcards .hx-card--xs { width: 38px; height: 54px; border-radius: 6px; }
.hx-howcards .hx-card:first-child { transform: rotate(-8deg); }
.hx-howcards .hx-card + .hx-card { transform: rotate(6deg); margin-left: -18px; }
@keyframes hx-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── The table (frames TV-Intro, TV-Preflop, TV-Betting, TV-Showdown, TV-FoldWin) ── */
.hx-felt i { position: absolute; border-radius: 50%; }
.hx-felt__rim { left: 300px; top: 250px; width: 1320px; height: 620px; background: #0a1430; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(66, 155, 252, .25); }
.hx-felt__cloth { left: 330px; top: 280px; width: 1260px; height: 560px; background: radial-gradient(ellipse at 50% 45%, #11408f 0%, #082a6a 55%, #05194a 100%); box-shadow: inset 0 0 0 3px rgba(66, 155, 252, .35), inset 0 0 80px rgba(0, 0, 0, .45); }
.hx-felt__line { left: 380px; top: 325px; width: 1160px; height: 470px; border: 2px dashed rgba(255, 255, 255, .12); box-sizing: border-box; }
.hx-tseat { position: absolute; z-index: 4; width: 250px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity 400ms; }
.hx-tseat__av { position: relative; width: 112px; height: 112px; }
.hx-tseat__av .hx-crown { width: 54px; left: 12px; top: -30px; }
.hx-tseat__cards { position: absolute; right: -34px; bottom: -4px; display: flex; z-index: 2; } /* over the 90 s ring (z 1) */
.hx-tseat__cards .hx-card:first-child { transform: rotate(-10deg); }
.hx-tseat__cards .hx-card + .hx-card { transform: rotate(8deg); margin-left: -24px; }
.hx-tseat__cards.is-grey .hx-card { filter: grayscale(.9) brightness(.6); }
.hx-tseat__nm { font-size: 28px; color: #fff; letter-spacing: .03em; white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.hx-tseat__chips { display: grid; font-size: 24px; }
.hx-tseat__ch { grid-area: 1 / 1; text-align: center; color: #fff; white-space: nowrap; }
.hx-tseat__ch small, .hx-pod__ch small, .hx-side__ch small { font-size: 14px; color: var(--hx-grey); }
.hx-tseat.is-folded { opacity: .4; }
.hx-tseat.is-lit .hx-av { box-shadow: 0 0 0 6px #00091f, 0 0 0 11px var(--hx-blue), 0 0 70px rgba(66, 155, 252, .7); }
.hx-tseat.is-lead .hx-av { box-shadow: 0 0 0 6px #00091f, 0 0 0 10px var(--hx-gold); }
.hx-tseat.is-acting .hx-av { box-shadow: 0 0 0 6px #00091f, 0 0 70px rgba(66, 155, 252, .8); }
/* QA 3b5ca4f1 (801, owner: "the active player must be more present, back glow"): the 799 whose-turn rule on the
 * poker table — the seat to act lifts a little, its avatar takes the at-the-oche blue ring and a breathing blue back
 * glow, its name glows; every other live seat steps back (dimmed, avatar desaturated) as an idle seat does. */
.hx-tseat.is-acting { z-index: 5; }
.hx-tseat__glow { position: absolute; left: 50%; top: 62%; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(66, 155, 252, .85) 0%, rgba(1, 76, 253, .62) 26%, rgba(1, 76, 253, .26) 48%, rgba(1, 76, 253, .08) 62%, rgba(1, 76, 253, 0) 72%);
  animation: hx-act-glow 1.8s ease-in-out infinite alternate; }
.hx-tseat__av > .hx-av { z-index: 1; }
@keyframes hx-act-glow { from { opacity: .8; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
.hx-tseat.is-acting .hx-av { transform: scale(1.1); transition: transform 300ms var(--dh-ease-out);
  box-shadow: 0 0 0 6px #00091f, 0 0 0 12px var(--dh-brand-blue, #014cfd), 0 0 26px rgba(1, 76, 253, .9), 0 0 96px rgba(66, 155, 252, .75); }
.hx-tseat.is-acting .hx-tseat__nm { text-shadow: 0 0 18px rgba(66, 155, 252, .9), 0 0 4px rgba(66, 155, 252, .6); }
.hx-tseat.is-idle { opacity: .74; }
.hx-tseat.is-idle .hx-av { filter: saturate(.5) brightness(.68); }
.hx-seatcard.is-idle { opacity: .74; }
.hx-seatcard.is-idle .hx-av { filter: saturate(.5) brightness(.68); }
@media (prefers-reduced-motion: reduce) { .hx-tseat__glow { animation: none; } }
.hx-tseat.is-win .hx-av { box-shadow: 0 0 0 6px #00091f, 0 0 0 10px var(--hx-gold), 0 0 70px rgba(255, 201, 60, .5); }
.hx-tseat__tag { font-size: 15px; min-height: 18px; }
/* The stamp row: always there (empty or not), so every seat's rows sit level. */
.hx-tseat__stamp { height: 34px; display: flex; align-items: center; justify-content: center; }
/* The last move as a small stamp (owner feedback 2026-10-11): outlined, a touch turned, the chips it put in. */
.hx-stamp { font-size: 15px; letter-spacing: .1em; padding: 5px 12px; border-radius: 6px; border: 2px solid currentColor; background: rgba(0, 9, 31, .7); transform: rotate(-3deg); color: #d1d5d8; }
.hx-stamp.hx-tag--gold { color: var(--hx-gold); background: rgba(0, 9, 31, .7); }
.hx-stamp.hx-tag--call { color: #9ccbff; }
.hx-stamp.hx-tag--check { color: var(--hx-grey); }
.hx-stamp.hx-tag--fold { color: var(--hx-grey); border-style: dashed; }
.hx-stamp.hx-tag--red { color: var(--hx-red); background: rgba(0, 9, 31, .7); }
/* D / SB / BB beside the avatar, left of it: never over the avatar, the name or the stamp. */
.hx-badges { position: absolute; left: 14px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.hx-badge { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: .02em; background: var(--hx-paper); color: var(--hx-ink); box-shadow: 0 0 0 3px #00091f, 0 4px 10px rgba(0, 0, 0, .5); }
.hx-badge--d { font-size: 18px; }
.hx-badge--sb { background: #9ccbff; }
.hx-badge--bb { background: var(--hx-gold); }
.hx-stackpill { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(0, 9, 31, .75); border: 1px solid rgba(255, 201, 60, .35); }
.hx-stackpill b { font-weight: 400; font-size: 26px; color: var(--hx-gold); }

/* Bets on the felt (§1.6: real chips, the number beside them) */
.hx-bet { position: absolute; z-index: 3; width: 220px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.hx-betchips { display: flex; align-items: center; gap: 6px; padding: 4px 14px 4px 6px; border-radius: 999px; background: rgba(0, 9, 31, .65); animation: hx-push 360ms var(--dh-ease-out) both; }
.hx-betchips b { font-weight: 400; font-size: 24px; color: var(--hx-gold); white-space: nowrap; }
.hx-betchips.is-allin b { color: var(--hx-red); }
/* The decision in the lower third, off the table: who the table waits for, what they face (no clock). */
.hx-turn { position: absolute; left: 72px; bottom: 44px; z-index: 5; display: flex; align-items: center; gap: 22px; padding: 14px 28px 14px 14px; border-radius: 999px; background: rgba(0, 9, 31, .88); box-shadow: inset 0 0 0 2px rgba(66, 155, 252, .55), 0 0 50px rgba(1, 76, 253, .35); animation: hx-push 360ms var(--dh-ease-out) both; }
.hx-turn .hx-av { box-shadow: 0 0 0 4px #00091f, 0 0 0 7px var(--hx-blue); }
.hx-turn__who { display: flex; flex-direction: column; gap: 4px; }
.hx-turn__who .hx-eye { font-size: 15px; }
.hx-turn__who b { font-weight: 400; font-size: 30px; color: #fff; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.hx-turn__q { font-size: 26px; letter-spacing: .08em; color: #fff; background: #014cfd; padding: 10px 22px; border-radius: 999px; white-space: nowrap; }
.hd-blind--bb { background: var(--hx-gold); }
@keyframes hx-push { from { opacity: 0; transform: translateY(18px) scale(.8); } to { opacity: 1; transform: none; } }

/* The middle of the table */
.hx-centre { position: absolute; left: 560px; top: 418px; width: 800px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hx-lead { font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(0, 9, 31, .8); text-align: center; white-space: nowrap; }
.hx-lead__n { font-weight: 400; font-size: 64px; color: var(--hx-gold); text-shadow: 0 0 40px rgba(255, 201, 60, .45); }
.hx-lead__n.red { color: var(--hx-red); text-shadow: 0 0 40px rgba(255, 107, 107, .45); }
.hx-tcomm { display: flex; gap: 12px; align-items: center; }
.hx-tcomm .hx-card--slot { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .22); }
.hx-gap { display: block; flex: none; width: 10px; }
.hx-tpots { display: flex; gap: 12px; }
.hx-tpot { display: flex; align-items: center; gap: 14px; padding: 10px 24px 10px 14px; border-radius: 999px; background: rgba(0, 9, 31, .6); border: 1px solid rgba(255, 201, 60, .4); }
.hx-tpot .hx-eye { color: var(--hx-gold); }
.hx-tpot b { font-weight: 400; font-size: 40px; color: var(--hx-gold); }
.hx-tpot--side { padding-left: 24px; }
.hx-tpot--side b { font-size: 32px; }

/* Showdown on the table: headline, pots that empty, community with the best five, pockets that flip and grow */
.game--holdem[data-step="showdown"] .hx-centre { top: 400px; gap: 14px; }
.hx-headline { position: absolute; left: 460px; top: 112px; width: 1000px; z-index: 5; }
.hx-headline__in { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: hx-head 600ms var(--dh-ease-out) var(--d, 0ms) both; }
.hx-headline__big { font-size: 64px; line-height: 1; color: #fff; text-align: center; }
@keyframes hx-head { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.hx-tpots--sd { animation: hx-fade 400ms ease-in calc(var(--d, 0ms) + 200ms) both; }
@keyframes hx-fade { to { opacity: 0; } }
.hx-tcomm--sd .hx-card { animation: hx-dim 500ms var(--dh-ease-out) var(--d, 0ms) both; }
.hx-tcomm--sd .hx-card.hx-up { animation-name: hx-cardup; }
@keyframes hx-dim { to { opacity: .38; } }
@keyframes hx-cardup { to { transform: translateY(-14px); box-shadow: 0 0 0 4px var(--hx-gold), 0 0 40px rgba(255, 201, 60, .55), 0 10px 24px rgba(0, 0, 0, .5); } }
.hx-pk { position: absolute; z-index: 3; width: 156px; height: 100px; margin: -50px 0 0 -78px; display: flex; gap: 12px; }
.hx-pk.is-flip { animation: hx-grow 500ms var(--dh-ease-out) var(--d, 0ms) both; }
.hx-pk.is-lose { animation: hx-grow 500ms var(--dh-ease-out) var(--d, 0ms) both, hx-loser 500ms ease calc(var(--w, 0ms) + 200ms) forwards; }
.hx-pk.is-flip .hx-flip__in { animation: hx-turn 520ms ease-in-out var(--d, 0ms) both; }
.hx-pk .hx-card.hx-up { box-shadow: 0 0 0 3px var(--hx-gold), 0 10px 24px rgba(0, 0, 0, .5); }
.hx-pk__halo { position: absolute; left: 50%; top: 50%; width: 190px; height: 130px; margin: -65px 0 0 -95px; border-radius: 20px; box-shadow: 0 0 0 3px var(--hx-gold), 0 0 80px rgba(255, 201, 60, .55); background: rgba(255, 201, 60, .08); animation: hx-halo 500ms ease var(--w, 0ms) both; }
@keyframes hx-grow { from { transform: scale(1); } to { transform: scale(1.32); } }
@keyframes hx-loser { to { transform: scale(1.32); opacity: .55; } }
@keyframes hx-turn { from { transform: rotateY(180deg); } to { transform: rotateY(360deg); } }
@keyframes hx-halo { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1.04); } }
.hx-pk.is-down, .hx-pk.is-show { transform: scale(1.2); }
.hx-pk.is-show .hx-flip__in { animation: hx-turn 600ms ease-in-out both; }
.hx-pk.is-show { animation: hx-grow-show 600ms var(--dh-ease-out) both; }
@keyframes hx-grow-show { from { transform: scale(1); } to { transform: scale(1.25); } }
.hx-pk.is-muck { animation: hx-muck 700ms ease-in forwards; }
@keyframes hx-muck { to { opacity: 0; transform: translate(120px, 60px) rotate(25deg) scale(.6); } }
.hx-chipfly { position: absolute; left: 938px; top: 410px; width: 44px; height: 40px; opacity: 0; z-index: 6; animation: hx-chipfly 900ms cubic-bezier(.5, 0, .3, 1) var(--d, 0ms) both; }
@keyframes hx-chipfly { 0% { opacity: 1; transform: translate(0, 0) scale(1.2); } 85% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.8); } }
.hx-flylayer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.hx-wonpop { position: absolute; right: -78px; top: 10px; z-index: 2; font-size: 34px; color: var(--hx-ink); background: var(--hx-gold); padding: 6px 14px; border-radius: 999px; box-shadow: 0 0 30px rgba(255, 201, 60, .7); white-space: nowrap; animation: hx-pop 500ms var(--dh-ease-out) var(--d, 0ms) both; }
@keyframes hx-pop { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
.hx-outstamp { position: absolute; left: -14px; top: 34px; width: 140px; text-align: center; z-index: 2; font-size: 30px; letter-spacing: .12em; color: #fff; background: #c62828; padding: 6px 0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); animation: hx-stamp 360ms var(--dh-ease-out) var(--d, 0ms) both; }
@keyframes hx-stamp { 0% { opacity: 0; transform: rotate(-10deg) scale(2.2); } 80% { opacity: 1; transform: rotate(-10deg) scale(.9); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
.hx-was { animation: hx-fade 200ms linear var(--d, 0ms) both; }
.hx-now { animation: hx-show 200ms linear var(--d, 0ms) both; }
.hx-late { animation: hx-show 300ms linear var(--d, 0ms) both; }
@keyframes hx-show { from { opacity: 0; } to { opacity: 1; } }

/* Everyone folded: show or muck */
.hx-ask { position: absolute; left: 660px; top: 640px; width: 600px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 20px; background: rgba(0, 9, 31, .75); border: 1.5px solid rgba(66, 155, 252, .6); box-shadow: 0 0 50px rgba(1, 76, 253, .35); animation: hx-in 400ms var(--dh-ease-out) var(--d, 0ms) both; }
.hx-ask b { font-weight: 400; font-size: 28px; color: #fff; }
.hx-ask span { font-family: var(--hx-body); font-size: 20px; color: #d1d5d8; text-transform: none; letter-spacing: 0; }
.hx-verdict { position: absolute; left: 560px; top: 646px; width: 800px; z-index: 5; display: flex; justify-content: center; animation: hx-pop 500ms var(--dh-ease-out) 500ms both; }
.hx-verdict span { font-size: 30px; padding: 14px 28px; border-radius: 999px; background: rgba(0, 9, 31, .75); border: 1.5px solid currentColor; }
.hx-verdict--show { color: var(--hx-gold); }
.hx-verdict--muck { color: var(--hx-grey); }

/* The blind steal's window in the middle of the table (§1.7; markup from holdem-v2.js stealHtml) */
.hd-steal { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 34px; border-radius: 24px; background: rgba(0, 9, 31, .78); border: 1.5px solid rgba(255, 201, 60, .5); box-shadow: 0 0 60px rgba(255, 201, 60, .2); margin-top: -40px; }
.hd-steal .hd-panel__eye { font-size: 18px; letter-spacing: .16em; color: var(--hx-gold); }
.hd-steal__title { font-size: 48px; color: #fff; animation: hd-steal-in 500ms var(--dh-ease-out) both; }
.hd-steal__bb { display: flex; align-items: center; gap: 14px; font-size: 22px; color: #d1d5d8; }
.hd-steal__pot { font-size: 22px; color: var(--hx-grey); }
.hd-steal__pot b { font-weight: 400; color: var(--hx-gold); font-size: 30px; }
.hd-steal__call { font-family: var(--hx-body); text-transform: none; letter-spacing: 0; font-size: 20px; color: #d1d5d8; text-align: center; }
.hd-steal__row { display: flex; gap: 18px; min-height: 52px; align-items: center; }
.hd-steal__c { display: flex; align-items: center; gap: 10px; font-size: 20px; color: #fff; }
.hd-steal__c.new { animation: hd-steal-pop 500ms var(--dh-ease-out) both; }
.hd-steal__none { font-size: 18px; letter-spacing: .12em; color: var(--dh-text-tertiary); }
.hd-cta { display: flex; justify-content: space-between; width: 100%; font-size: 18px; letter-spacing: .1em; color: var(--hx-grey); }
.hd-cta b { font-weight: 400; color: var(--hx-gold); }
@keyframes hd-steal-in { 0% { opacity: 0; transform: scale(1.6); } 100% { opacity: 1; transform: none; } }
@keyframes hd-steal-pop { 0% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.15); } 100% { transform: none; } }

/* ── Intro (frame TV-Intro): rolling lines over the table ── */
.hx-lines { position: absolute; left: 560px; top: 430px; width: 800px; height: 260px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hx-line { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hx-line__t { font-size: 60px; line-height: 1.05; color: #fff; text-transform: uppercase; text-shadow: 0 0 60px rgba(66, 155, 252, .6); }
.hx-line--ready .hx-line__t { font-size: 96px; }
.hx-line.is-cur { animation: hx-in 500ms var(--dh-ease-out) both; }
/* The intro's blinds on the felt: chips + "SB 5" / "BB 10", flying in from the seat on the blinds line. */
.hx-ibet { position: absolute; z-index: 3; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hx-ibet__pill { font-size: 18px; line-height: 1; padding: 8px 12px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .12); color: #fff; }
.hx-ibet.is-fly { animation: hx-ibet 900ms cubic-bezier(.2, .8, .3, 1) both; }
@keyframes hx-ibet { 0% { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.hx-tseat.is-lit .hx-tseat__tag { color: #fff; }
.hx-tseat.is-acting .hx-tseat__tag { color: var(--hx-blue); }
/* A fold at the betting table: the two cards thrown in to the middle. */
.hx-muckfly { position: absolute; z-index: 3; display: flex; pointer-events: none; }
.hx-muckfly .hx-card { animation: hx-muckfly 1s ease-in both; }
.hx-muckfly .hx-card + .hx-card { margin-left: -14px; animation-delay: 120ms; }
@keyframes hx-muckfly { 0%, 12% { transform: none; opacity: 1; } 100% { transform: translate(var(--mx), var(--my)) rotate(50deg); opacity: 0; } }

/* ── The dealt board (frame TV-Deal) ── */
.hx-board { position: absolute; left: 96px; top: 110px; width: 740px; height: 740px; transition: opacity 420ms var(--dh-ease-out); }
.hx-board__svg { position: absolute; left: 0; top: 0; }
.hx-revealing .hx-board { opacity: .28; }
.hx-num { position: absolute; width: 92px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 20px; line-height: 1; color: rgba(142, 152, 160, .35); }
.hx-num.on { font-size: 27px; color: #15171d; background: var(--hx-paper); border-radius: 22px; box-shadow: 0 0 0 3px #040c22, 0 0 22px rgba(247, 242, 232, .45); }
.hx-num.on .hx-suit { width: 24px; height: 24px; }
.hx-num.on.red { box-shadow: 0 0 0 3px #040c22, 0 0 22px rgba(255, 107, 125, .55); }
.hx-num.on.red .hx-suit { color: #c8283c; }
.hx-num.on.black .hx-suit { color: #15171d; }
.hx-q { position: absolute; width: 24px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: rgba(142, 152, 160, .4); }
.hx-tok { position: absolute; display: flex; align-items: center; justify-content: center; color: #e8ecf0; line-height: 1; letter-spacing: 0; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.hx-tok b { font-weight: 400; }
.hx-tok--T { font-size: 22px; color: var(--hx-gold); text-shadow: 0 0 12px rgba(255, 201, 60, .55), 0 1px 4px rgba(0, 0, 0, .9); }
.hx-tok--D, .hx-tok--I { font-size: 16px; }
.hx-tok--O { font-size: 19px; }
.hx-tok--blind { color: rgba(209, 213, 216, .4); text-shadow: none; }
.hx-tok--dead { color: #5c6673 !important; text-shadow: none !important; text-decoration: line-through; }
.hx-tok--demo { position: static; width: 30px; height: 40px; font-size: 14px; flex: none; }
.hx-tok--demo.hx-tok--blind { font-size: 16px; }
.hx-mark { position: absolute; width: 80px; height: 80px; margin: -40px 0 0 -40px; opacity: .6; transform: scale(.75); }
.hx-mark.is-last { opacity: 1; transform: none; animation: hx-stampin 420ms var(--dh-ease-out) both; }
.hx-mark svg, .hx-reveal__hit svg { width: 80px; height: 80px; overflow: visible; display: block; }
@keyframes hx-stampin { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }
.hx-right { position: absolute; left: 870px; right: 72px; top: 150px; display: flex; flex-direction: column; gap: 44px; }
.hx-ontable { display: flex; flex-direction: column; gap: 16px; }
.hx-comm { display: flex; gap: 16px; align-items: flex-end; }
.hx-comm .hx-gap, .hx-streets .hx-gap { width: 20px; }
.hx-comm > .hx-card:not(.hx-card--slot):not(.hx-card--next) { animation: hx-land 380ms var(--dh-ease-out) both; }
@keyframes hx-land { 0% { transform: scale(1.12); } 100% { transform: none; } }
.hx-streets { display: flex; gap: 16px; }
.hx-street { font-size: 15px; border-top: 2px solid rgba(142, 152, 160, .3); padding-top: 10px; width: 120px; }
.hx-street--flop { width: 392px; }
.hx-street.on { color: var(--hx-blue); border-color: rgba(66, 155, 252, .5); }
.hx-oche { display: flex; align-items: center; gap: 28px; min-height: 120px; transition: opacity 300ms; }
.hx-oche__tx { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hx-oche__nm { font-size: 80px; line-height: 1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-oche__task { font-family: var(--hx-body); font-size: 28px; color: #d1d5d8; text-transform: none; letter-spacing: 0; }
.hx-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; max-width: 820px; transition: opacity 300ms; }
.hx-legend__i { display: flex; align-items: center; gap: 12px; font-family: var(--hx-body); font-size: 20px; color: #d1d5d8; text-transform: none; letter-spacing: 0; }
.hx-legend__bull { width: 30px; height: 30px; border-radius: 50%; background: var(--hx-gold); box-shadow: 0 0 16px rgba(255, 201, 60, .8); flex: none; }
.hx-revealing .hx-oche, .hx-revealing .hx-legend { opacity: 0; }
.hx-row { position: absolute; left: 72px; right: 72px; bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hx-row > div { flex: 0 1 316px; min-width: 0; }
.hx-seatcard { position: relative; height: 156px; border-radius: 22px; background: rgba(8, 22, 58, .88); border: 1px solid rgba(66, 155, 252, .2); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 300ms var(--dh-ease-out), box-shadow 300ms; }
.hx-seatcard.is-on { border: 2px solid var(--hx-blue); box-shadow: 0 0 0 6px rgba(66, 155, 252, .14), 0 0 70px rgba(1, 76, 253, .6); transform: translateY(-16px); }
.hx-seatcard.is-lead { border: 1.5px solid rgba(255, 201, 60, .55); background: linear-gradient(180deg, rgba(74, 58, 12, .55) 0%, rgba(8, 22, 58, .9) 70%); }
.hx-seatcard.is-lead .hx-av { box-shadow: 0 0 0 3px #00091f, 0 0 0 5px var(--hx-gold); }
.hx-seatcard.is-on.is-lead { border: 2px solid var(--hx-blue); }
.hx-seatcard.is-out { opacity: .4; }
.hx-seatcard__top { display: flex; align-items: center; gap: 14px; }
.hx-seatcard__top .hx-crown { width: 40px; left: 6px; top: -24px; }
.hx-seatcard__nm { flex: 1; min-width: 0; font-size: 26px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-seatcard__cards { display: flex; margin-right: 4px; }
.hx-seatcard__cards .hx-card:first-child { transform: rotate(-8deg); }
.hx-seatcard__cards .hx-card + .hx-card { transform: rotate(7deg); margin-left: -22px; }
.hx-seatcard__cards.is-up .hx-card + .hx-card { margin-left: -10px; }
.hx-seatcard__bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hx-seatcard__ch { font-size: 34px; color: #fff; white-space: nowrap; }
.hx-seatcard.is-lead .hx-seatcard__ch { color: var(--hx-gold); }
.hx-seatcard__ch small { font-size: 15px; color: var(--hx-grey); margin-left: 6px; }
.hx-row--n6 .hx-seatcard { padding: 16px 16px; }
.hx-row--n6 .hx-seatcard__ch { font-size: 28px; }
.hx-row--n6 .hx-seatcard__nm { font-size: 22px; }
.hx-row--n6 .hx-tag { font-size: 13px; padding: 6px 10px; }

/* The card reveal (frame TV-Reveal): stamp, flip at the hit, fly the trail with a spin, land with a burst */
.hx-reveal { position: absolute; inset: 0; }
.hx-reveal__trail { position: absolute; left: 0; top: 0; }
.hx-reveal__trail path { fill: none; stroke: var(--hx-blue); stroke-width: 4; stroke-dasharray: 4 14; stroke-linecap: round; opacity: .7; animation: hx-show 300ms linear both, hx-fade 300ms linear calc(var(--t) + 300ms) forwards; }
.hx-reveal--bull .hx-reveal__trail path { stroke: var(--hx-gold); }
.hx-reveal__hit { position: absolute; width: 80px; height: 80px; margin: -40px 0 0 -40px; animation: hx-hitstamp var(--t) linear both; }
@keyframes hx-hitstamp { 0% { transform: scale(2.4); opacity: 0; } 8% { transform: scale(1); opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
.hx-reveal__shock { position: absolute; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 3px solid #ff3333; opacity: 0; animation: hx-shock 700ms ease-out 100ms both; }
@keyframes hx-shock { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.hx-reveal__fly { position: absolute; width: 120px; height: 168px; perspective: 1100px; z-index: 2; animation: hx-fly var(--t) cubic-bezier(.4, 0, .2, 1) both; }
.hx-reveal__spin { position: relative; width: 120px; height: 168px; transform-style: preserve-3d; animation: hx-spin-known var(--t) ease-in-out both; }
.hx-reveal__face, .hx-reveal__back { position: absolute; left: 0; top: 0; width: 120px; height: 168px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hx-reveal__face { overflow: hidden; border-radius: 12px; background: var(--hx-paper); box-shadow: 0 0 0 4px var(--hx-blue), 0 0 50px var(--hx-blue), 0 20px 40px rgba(0, 0, 0, .6); }
.hx-reveal--bull .hx-reveal__face { box-shadow: 0 0 0 4px var(--hx-gold), 0 0 50px var(--hx-gold), 0 20px 40px rgba(0, 0, 0, .6); }
.hx-reveal__back { transform: rotateY(180deg); }
.hx-reveal__reel { position: absolute; left: 0; top: 0; width: 120px; transform: translateY(calc(var(--n) * -168px)); }
.hx-reveal__reel .hx-card { display: block; border-radius: 0; box-shadow: none; }
.hx-reveal--blind .hx-reveal__reel, .hx-reveal--bull .hx-reveal__reel { animation: hx-reel var(--t) both; }
@keyframes hx-reel { 0%, 14% { transform: translateY(0); } 62%, 100% { transform: translateY(calc(var(--n) * -168px)); } }
.hx-reveal--blind .hx-reveal__spin { animation: hx-spin-blind var(--t) cubic-bezier(.2, .6, .3, 1) both; }
.hx-reveal--bull .hx-reveal__spin { animation: hx-spin-bull var(--t) cubic-bezier(.2, .6, .3, 1) both; }
@keyframes hx-fly { 0% { transform: translate(var(--dx), var(--dy)) scale(0); } 8%, 30% { transform: translate(var(--dx), var(--dy)) scale(1.4); } 62% { transform: translate(0, 0) scale(1.35); } 68% { transform: translate(0, 0) scale(.88); } 74% { transform: translate(0, 0) scale(1.06); } 80%, 100% { transform: translate(0, 0) scale(1); } }
@keyframes hx-spin-known { 0%, 12% { transform: rotateY(180deg); } 26%, 100% { transform: rotateY(360deg); } }
@keyframes hx-spin-blind { 0%, 14% { transform: rotateY(180deg); } 62%, 100% { transform: rotateY(1800deg); } }
@keyframes hx-spin-bull { 0%, 14% { transform: rotateY(180deg); } 62%, 100% { transform: rotateY(2880deg); } }
.hx-reveal__burst { position: absolute; width: 120px; height: 168px; border-radius: 16px; border: 4px solid var(--hx-blue); box-shadow: 0 0 60px var(--hx-blue); opacity: 0; animation: hx-burst var(--t) ease-out both; }
.hx-reveal--bull .hx-reveal__burst { border-color: var(--hx-gold); box-shadow: 0 0 60px var(--hx-gold); }
@keyframes hx-burst { 0%, 66% { transform: scale(.6); opacity: 0; } 68% { transform: scale(1); opacity: 1; } 90%, 100% { transform: scale(2.1); opacity: 0; } }
.hx-reveal__head { position: absolute; left: 870px; top: 470px; max-width: 980px; display: flex; flex-direction: column; gap: 16px; animation: hx-revhead var(--t) both; }
.hx-reveal--known .hx-reveal__head .hx-eye, .hx-reveal--blind .hx-reveal__head .hx-eye { color: var(--hx-blue); }
.hx-reveal--bull .hx-reveal__head .hx-eye { color: var(--hx-gold); }
.hx-reveal__big { font-size: 96px; line-height: .95; color: #fff; }
.hx-reveal__line { font-family: var(--hx-body); font-size: 30px; color: #d1d5d8; text-transform: none; letter-spacing: 0; max-width: 760px; }
@keyframes hx-revhead { 0%, 62% { opacity: 0; transform: translateY(24px); } 72%, 100% { opacity: 1; transform: none; } }

/* ── Bull-off (frame TV-BullOff) ── */
.hx-bullhead { position: absolute; left: 0; right: 0; top: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.hx-bullhead__h { margin: 0; font-size: 96px; line-height: 1; color: #fff; font-weight: 400; }
.hx-bullhead__sub { font-family: var(--hx-body); font-size: 26px; color: var(--hx-grey); text-transform: none; letter-spacing: 0; }
.hx-stake { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 12px 30px 12px 16px; border-radius: 999px; background: rgba(255, 201, 60, .12); border: 1.5px solid rgba(255, 201, 60, .55); box-shadow: 0 0 50px rgba(255, 201, 60, .25); }
.hx-stake b { font-weight: 400; font-size: 44px; color: var(--hx-gold); }
.hx-bullboard { position: absolute; left: 630px; top: 400px; width: 660px; height: 660px; }
.hx-side { position: absolute; top: 330px; width: 420px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; transition: opacity 400ms; }
.hx-side--l { left: 150px; }
.hx-side--r { right: 150px; }
.hx-side .hx-av { box-shadow: 0 0 0 7px #00091f, 0 0 0 12px var(--hx-blue); }
.hx-side.is-up .hx-av, .hx-side.is-win .hx-av { box-shadow: 0 0 0 7px #00091f, 0 0 0 12px var(--hx-gold), 0 0 90px rgba(255, 201, 60, .5); }
.hx-side.is-lose { opacity: .45; }
.hx-side__nm { font-size: 52px; color: #fff; }
.hx-side__ch { font-size: 26px; color: #d1d5d8; }
.hx-side__mm { font-size: 64px; color: var(--hx-blue); }
.hx-side__mm--wait { color: rgba(142, 152, 160, .4); }
.hx-side__up { font-size: 30px; color: var(--hx-ink); background: var(--hx-gold); padding: 14px 26px; border-radius: 999px; animation: hx-next-gold 1.4s ease-in-out infinite; }
@keyframes hx-next-gold { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .5); } 50% { box-shadow: 0 0 0 12px rgba(255, 201, 60, 0); } }
[class*="hx-side--n"] { width: 360px; gap: 8px; }
[class*="hx-side--n"] .hx-side__nm { font-size: 40px; }
[class*="hx-side--n"] .hx-side__mm { font-size: 48px; }
[class*="hx-side--n"] .hx-side__up { font-size: 24px; padding: 10px 20px; }
.hx-side--n3-0, .hx-side--n4-0 { left: 120px; top: 320px; }
.hx-side--n3-1, .hx-side--n4-1 { right: 120px; top: 320px; }
.hx-side--n3-2, .hx-side--n4-2 { left: 120px; top: 700px; }
.hx-side--n4-3 { right: 120px; top: 700px; }
[class*="hx-side--n"] .hx-side__ch { font-size: 22px; }

/* ── Final (frame TV-Final) ── */
.hx-spot { position: absolute; left: 660px; top: -120px; width: 600px; height: 900px; background: radial-gradient(ellipse 50% 75% at 50% 35%, rgba(255, 201, 60, .28) 0%, rgba(255, 201, 60, 0) 70%); }
.hx-podium { position: absolute; left: 0; right: 0; top: 150px; display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.hx-pod { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: hx-in 600ms var(--dh-ease-out) both; }
.hx-pod--1 { animation-delay: 300ms; }
.hx-pod__nm { font-size: 38px; color: #fff; }
.hx-pod--1 .hx-pod__nm { font-size: 60px; color: var(--hx-gold); }
.hx-pod__ch { font-size: 30px; color: #d1d5d8; }
.hx-pod--1 .hx-pod__ch { font-size: 38px; color: #fff; }
.hx-pod__block { width: 300px; height: 220px; display: flex; align-items: flex-start; justify-content: center; padding-top: 20px; border-radius: 20px 20px 0 0; background: rgba(8, 22, 58, .9); border: 1px solid rgba(66, 155, 252, .25); border-bottom: none; font-size: 72px; color: #c0c8d2; }
.hx-pod--1 .hx-pod__block { width: 340px; height: 300px; font-size: 96px; color: var(--hx-gold); border-color: rgba(255, 201, 60, .5); background: rgba(74, 58, 12, .6); }
.hx-pod--3 .hx-pod__block { height: 160px; color: #c98a5a; }
.hx-pod--1 .hx-av { box-shadow: 0 0 0 8px #00091f, 0 0 0 14px var(--hx-gold), 0 0 120px rgba(255, 201, 60, .55); }
.hx-pod--1 .hx-av .hx-crown { width: 90px; left: 26%; top: -26%; transform: rotate(-8deg); }
.hx-pod--2 .hx-av { box-shadow: 0 0 0 6px #00091f, 0 0 0 10px #c0c8d2; }
.hx-pod--3 .hx-av { box-shadow: 0 0 0 6px #00091f, 0 0 0 10px #c98a5a; }
.hx-finalrow { position: absolute; left: 72px; right: 72px; bottom: 56px; display: flex; gap: 20px; align-items: stretch; }
.hx-stat { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 22px 28px; border-radius: 20px; background: rgba(255, 255, 255, .05); }
.hx-stat .hx-eye { font-size: 16px; }
.hx-stat b { font-weight: 400; font-size: 30px; color: #fff; }
.hx-stat > span:last-child { font-family: var(--hx-body); font-size: 19px; color: var(--hx-grey); text-transform: none; letter-spacing: 0; }
.hx-stat--rest { flex: none; width: 400px; justify-content: center; }
.hx-restrow { display: flex; align-items: center; gap: 14px; font-size: 24px; color: #fff; }
.hx-restrow__rk { width: 30px; font-size: 22px; color: var(--hx-grey); }
.hx-restrow__nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-restrow .neg { font-size: 20px; }

/* prefers-reduced-motion: every moment shows its end state, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .game--holdem *, .game--holdem *::before, .game--holdem *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition: none !important; }
  .hx-card--next, .hx-side__up,   .hx-chipfly, .hx-reveal, .hx-muckfly { display: none !important; }
  .game--holdem .dy-flick, .game--holdem .dy-caret, .game--holdem .dy-pop { animation: none !important; }
  .game--holdem .dy-flick:first-child { opacity: 1; }
}

/* Tie-break bull-off (Shanghai, Bermuda): the nav's status slot. */
.tie-bull {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  padding: 18px 24px;
  border-radius: 24px;
  background: rgba(11, 13, 17, .6);
  border: 1px solid rgba(245, 197, 66, .45);
  backdrop-filter: blur(16px);
  color: #fff;
}
.tie-bull__title { font-size: 28px; line-height: 1.1; text-transform: uppercase; letter-spacing: var(--dh-ls-micro); color: #f5c542; }
.tie-bull__sub { font-size: 20px; line-height: 1.3; opacity: .8; }
.tie-bull__darts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tie-bull__dart { display: flex; justify-content: space-between; gap: 24px; font-size: 22px; }
.tie-bull__dart.is-win b { color: #f5c542; }
.tie-bull__status { font-size: 22px; color: #f5c542; }
