/* Crashmaker Live — Stake casino visual language: stepped navy surfaces, green only for actions and
   active states, compact bold type, 8 px tiles, near-invisible shadows, fast and clean motion.
   Figtree (OFL) embedded; no remote resource. */
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: block;
  src: url("./fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: block;
  src: url("./fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@property --fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --ring { syntax: "<number>"; inherits: true; initial-value: 100; }

:root {
  /* Stake surfaces (darkest to raised) */
  --g900: #0f212e;
  --g800: #1a2c38;
  --g700: #213743;
  --g600: #2f4553;
  --g500: #557086;
  --g400: #b1bad3;
  --g300: #d5dceb;
  --white: #ffffff;
  --green: #00e701;
  --green-hi: #1fff20;
  --on-green: #05290a;
  --blue: #1475e1;
  --red: #ed4163;
  --gold: #ffc800;
  --accent: #00e701;          /* current game accent (alerts only) */
  --r-sm: 4px;
  --r-md: 8px;
  --sh-1: 0 4px 6px -1px rgba(0, 0, 0, .2), 0 2px 4px -1px rgba(0, 0, 0, .12);
  --sh-float: 0 10px 28px -6px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100vw; height: 100vh; overflow: hidden; background: var(--g900); color: var(--white);
  font-family: "Figtree", system-ui, sans-serif; font-weight: 600; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Fixed 1920×1080 design, scaled to fill any window (fit.js); 1:1 in OBS. */
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; isolation: isolate; transform-origin: 0 0; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: inherit; font-weight: 800; font-size: .86em; color: var(--white); background: var(--g600); border-radius: var(--r-sm); padding: 2px 7px; line-height: 1.25; white-space: nowrap; }
b { font-weight: 800; }

/* Skeleton: shimmer until the image (or QR) is ready. Transform-only, composited. */
.skel { position: relative; overflow: hidden; background: var(--g700); }
.skel::before { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.4s linear infinite; }
.skel.ready::before { display: none; }
.skel img { opacity: 0; transition: opacity var(--t-med) var(--ease-out); }
.skel.ready img { opacity: 1; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Stake wordmark: vector traced from Pierre's file, white, clear space kept by the margin. */
.stake-mark { display: inline-block; vertical-align: middle; height: 1em; aspect-ratio: 336 / 167.12; margin: 0 .12em;
  background: url("/brand/stake-logo-white.svg") center / contain no-repeat; translate: 0 -.08em; }

/* Games */
#games iframe { position: absolute; inset: 0; width: 1920px; height: 1080px; border: 0; background: var(--g900); }
#games iframe.preload { visibility: hidden; pointer-events: none; }

/* ── Panels on top of the game ───────────────────────────────────────────── */
.panel { background: rgba(26, 44, 56, .97); border-radius: var(--r-md); box-shadow: var(--sh-float); }
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* Live bar (top right) */
#livebar { position: absolute; top: 16px; right: 24px; width: 420px; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); background: var(--g700);
  font-size: 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.lb-game { font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.lb-next { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 10px; border-radius: var(--r-sm); background: var(--g900); }
.lb-next-label { font-size: 15px; color: var(--g400); }
.lb-next-label:empty { display: none; }
.thumb { width: 24px; height: 32px; border-radius: 3px; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#countdown { font-size: 21px; font-weight: 800; min-width: 58px; text-align: right; }

/* Host card: compact presence, expands with the answer, synced to the voice */
#host { position: absolute; top: 82px; right: 24px; width: 420px; padding: 10px 12px; }
.host-row { display: flex; align-items: center; gap: 12px; height: 46px; }
.host-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--g600); transition: box-shadow var(--t-med); }
.host-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 50%; display: block; transform: scale(1.35); transform-origin: 50% 20%; }
#host[data-state="speaking"] .host-avatar { box-shadow: 0 0 0 2px var(--green), 0 0 0 6px rgba(0, 231, 1, .18); }
.host-meta { flex: 1; min-width: 0; }
.host-status { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.host-queue { font-size: 16px; color: var(--g400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.host-queue b { color: var(--white); font-weight: 700; }
.host-clock { font-size: 15px; color: var(--g500); align-self: flex-start; padding-top: 3px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; }
.eq i { width: 2.5px; height: 14px; transform: scaleY(.3); border-radius: 1px; background: var(--g500); transform-origin: bottom; }
.eq i:nth-child(2) { transform: scaleY(.55); } .eq i:nth-child(3) { transform: scaleY(.4); } .eq i:nth-child(4) { transform: scaleY(.25); }
#host[data-state="speaking"] .eq i { background: var(--green); animation: eq .9s ease-in-out infinite; }
#host[data-state="speaking"] .eq i:nth-child(2) { animation-delay: -.35s; }
#host[data-state="speaking"] .eq i:nth-child(3) { animation-delay: -.6s; }
#host[data-state="speaking"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
#host[data-state="speaking"] .host-queue, #host[data-state="cue"] .host-queue { color: var(--g300); }
.host-queue .reply { color: var(--green); font-weight: 800; }
.host-queue .q { color: var(--g400); font-style: normal; }
.host-queue .muted-line { color: var(--g400); }

/* Left rail */
#rail { position: absolute; left: 24px; top: 268px; width: 340px; height: 636px; display: flex; flex-direction: column; gap: 10px; }
#strip { display: grid; grid-template-columns: 132px 1fr; gap: 10px; height: 74px; flex: none; }
.cell { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: var(--r-md); background: rgba(26, 44, 56, .97); box-shadow: var(--sh-float); overflow: hidden; }
.cell .ic { color: var(--g400); }
.cell-body { min-width: 0; }
.cell-label { font-size: 14px; color: var(--g400); font-weight: 700; white-space: nowrap; }
.cell-value { font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cell-bh[data-state="soon"] .ic, #cell-bh[data-state="live"] .ic { color: var(--green); }
#cell-bh[data-state="live"] { box-shadow: var(--sh-float), inset 0 0 0 2px var(--green); }
.bh-dots { position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: flex; gap: 4px; }
.bh-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--g600); }
.bh-dots i.done { background: var(--green); }
#cell-rec .cell-body { width: 100%; }
#cell-rec .cell-label { display: flex; align-items: center; gap: 5px; font-size: 13px; overflow: hidden; }
#cell-rec .cell-label .ic { width: 15px; height: 15px; color: var(--gold); }
#cell-rec .cell-label span { overflow: hidden; text-overflow: ellipsis; }
#cell-rec .cell-value { font-size: 21px; line-height: 1.15; }
#cell-rec .cell-value small { font-size: 14px; color: var(--g300); font-weight: 700; margin-left: 6px; }
.rec-sub { font-size: 13px; color: var(--g400); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cell-rec[data-state="empty"] .cell-value { font-size: 16px; color: var(--g300); }
#cell-bh .cell-label { font-size: 13px; }
#cell-bh { padding: 0 10px; gap: 7px; }

#ctx { flex: 1; min-height: 0; position: relative; overflow: hidden; padding: 14px 16px; }
.card { position: absolute; inset: 14px 16px; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; height: 34px; flex: none; }
.card-head .ic { color: var(--g400); }
.card-head > span:not(.timer):not(.pill):not(.tabs) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { margin-top: auto; font-size: 15px; color: var(--g400); display: flex; align-items: center; white-space: nowrap; }
.card-foot b { color: var(--white); }
.pill { font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-sm); background: var(--g700); color: var(--g300); text-transform: uppercase; letter-spacing: .03em; }
.pill.on { background: var(--green); color: var(--on-green); }

.cmds { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cmds li { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); background: var(--g700); font-size: 16px; color: var(--g300); }
.cmds li span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vote */
.timer { position: relative; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 3.2; }
.ring circle { stroke: var(--g600); }
.ring .ring-fg { stroke: var(--green); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--ring)); stroke-linecap: round; }
.timer b { font-size: 14px; }
.opts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; height: 60px; border-radius: var(--r-sm); background: var(--g700); overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.opt .bar { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v, 0)); background: var(--g600); transition: transform 420ms var(--ease-out); }
.opt.lead .bar { background: rgba(0, 231, 1, .22); }
.opt > :not(.bar) { position: relative; }
.opts:has(> .opt:nth-child(2):last-child) .opt { height: 80px; }
.opts:has(> .opt:nth-child(2):last-child) .o-label { font-size: 21px; }
.opt .o-thumb { width: 33px; height: 44px; border-radius: 3px; object-fit: cover; flex: none; }
.opt .o-label { flex: 1; font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .o-pct { font-size: 21px; font-weight: 800; min-width: 52px; text-align: right; }
.opt.lead .o-pct { color: var(--green); }
.opt.win { box-shadow: inset 0 0 0 2px var(--green); }
.opt.lose { opacity: .55; transition: opacity var(--t-med); }

/* Prediction */
.pred-q { font-size: 19px; line-height: 1.3; margin: 8px 0 10px; color: var(--g300); text-wrap: balance; }
.pred-q b { color: var(--white); }
.pred-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pred-side { background: var(--g700); border-radius: var(--r-sm); padding: 10px 12px; }
.ps-top { display: flex; align-items: center; justify-content: space-between; font-size: 24px; }
.pred-side.yes .ps-top b { color: var(--green); }
.pred-side.no .ps-top b { color: var(--g300); }
.pred-side.no { text-align: right; }
.ps-sub { font-size: 14px; line-height: 1.35; color: var(--g400); margin-top: 4px; white-space: nowrap; }
.ps-sub b { color: var(--white); font-size: 16px; }
.pred-bar { height: 8px; border-radius: 4px; background: var(--g600); margin: 12px 0 10px; overflow: hidden; }
.pred-bar i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(var(--y, .5)); transition: transform 420ms var(--ease-out); border-radius: 4px; }
#card-pred[data-state="locked"] .pred-side { opacity: .85; }
#card-pred[data-state="won-yes"] .pred-side.no, #card-pred[data-state="won-no"] .pred-side.yes { opacity: .45; }
#card-pred[data-state="won-yes"] .pred-side.yes, #card-pred[data-state="won-no"] .pred-side.no { box-shadow: inset 0 0 0 2px var(--green); }

/* Board / Hall of Fame */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--g900); }
.tab { font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 3px; color: var(--g400); transition: background var(--t-fast), color var(--t-fast); }
.tab.on { background: var(--g600); color: var(--white); }
.board, .hof { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; position: relative; }
.board li, .hof li { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: var(--r-sm); background: var(--g700); font-size: 17px; }
.board .rk { width: 22px; font-weight: 800; color: var(--g400); text-align: center; }
.board li:nth-child(1) .rk { color: var(--gold); }
.board .nm { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .pt { font-weight: 800; }
.board .pt small { color: var(--g400); font-weight: 700; font-size: 13px; margin-left: 3px; }
.hof li { height: 56px; }
.hof .h-k { flex: 1; min-width: 0; }
.hof .h-label { font-size: 13px; color: var(--g400); font-weight: 700; }
.hof .h-who { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hof .h-mult { font-size: 24px; font-weight: 800; }
.empty { display: grid; place-items: center; height: 100%; color: var(--g400); font-size: 16px; text-align: center; }

/* Magic gauge */
#gauge { height: 92px; flex: none; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.g-head { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; }
.g-head span { flex: 1; }
.g-head .ic { color: var(--green); }
.g-head b { font-size: 19px; }
.g-track { position: relative; height: 12px; border-radius: 6px; background: var(--g900); overflow: hidden; }
.g-fill { position: absolute; inset: 0; border-radius: 6px; clip-path: inset(0 calc(100% - var(--fill)) 0 0 round 6px);
  background: linear-gradient(90deg, #00b301, var(--green) 60%, var(--green-hi)); transition: --fill 600ms var(--ease-out); }
.g-fill::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; left: -80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(440px); } }
.g-foot { font-size: 15px; color: var(--g400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-foot b { color: var(--white); }
#gauge[data-state="cool"] .g-fill { background: var(--g600); }
#gauge[data-state="cool"] .g-fill::after { display: none; }
#gauge[data-state="cool"] .g-head .ic { color: var(--g500); }
#gauge[data-state="full"] { box-shadow: var(--sh-float), inset 0 0 0 2px var(--green); }

/* Stake card */
#stake { height: 150px; flex: none; display: flex; gap: 14px; align-items: center; padding: 12px; }
.qr-box { width: 126px; height: 126px; flex: none; border-radius: var(--r-sm); background: #fff; padding: 7px; }
.qr-box.skel { background: var(--g700); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.st-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-only { display: flex; align-items: center; gap: 2px; font-size: 15px; color: var(--g400); white-space: nowrap; }
.st-only .stake-mark { font-size: 30px; margin-left: 6px; }
.st-game { font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-url { font-size: 15px; font-weight: 800; color: var(--green); white-space: nowrap; }
.st-legal { font-size: 14px; color: var(--g400); display: flex; align-items: center; margin-top: 2px; }
.age { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; border-radius: 3px; font-size: 11.5px; font-weight: 900; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--g400); margin-right: 7px; }
#demo-tag { position: absolute; left: 24px; top: 914px; font-size: 13px; color: var(--g400); font-weight: 700; background: rgba(15, 33, 46, .85); padding: 4px 8px; border-radius: var(--r-sm); }

/* Toasts (top centre) */
#toasts { position: absolute; left: 50%; top: 14px; width: 760px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.toast { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px 0 10px; border-radius: var(--r-md); background: rgba(26, 44, 56, .98); box-shadow: var(--sh-float); font-size: 21px; white-space: nowrap; max-width: 760px; }
.toast .t-ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--g700); color: var(--white); flex: none; }
.toast .t-ic .ic { width: 20px; height: 20px; }
.toast .t-ic.accent { background: var(--accent); color: #fff; }
.toast .t-ic.green { background: var(--green); color: var(--on-green); }
.toast b { color: var(--white); }
.toast .muted { color: var(--g400); }
.toast .mult { color: var(--green); font-weight: 800; }
.toast .t-thumb { width: 27px; height: 36px; border-radius: 3px; object-fit: cover; flex: none; }

/* Moment (big top-centre card): gauge full, Bonus Hour, record, prediction result */
#moment { position: absolute; left: 50%; top: 14px; width: 720px; translate: -50% 0; padding: 18px 28px 20px; border-radius: var(--r-md);
  background: rgba(26, 44, 56, .98); box-shadow: var(--sh-float), inset 0 0 0 2px var(--green); text-align: center; overflow: hidden; }
#moment::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(0, 231, 1, .14), transparent 70%); pointer-events: none; }
.m-kicker { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.m-title { position: relative; font-size: 44px; font-weight: 900; line-height: 1.08; margin-top: 4px; letter-spacing: -.01em; }
.m-sub { position: relative; font-size: 19px; color: var(--g300); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sub b { color: var(--white); }

#fx { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 6; }

/* ── Transformation ─────────────────────────────────────────────────────── */
#morph { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: var(--g900); }
#morph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 55% at 50% 48%, color-mix(in srgb, var(--morph-accent, #213743) 30%, #1a2c38), var(--g900) 72%); }
.morph-tiles { position: relative; width: 390px; height: 520px; }
.morph-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .7); }
.morph-cap { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; }
.mc-kicker { font-size: 20px; font-weight: 800; color: var(--g400); text-transform: uppercase; letter-spacing: .08em; }
.mc-name { font-size: 64px; font-weight: 900; margin-top: 4px; letter-spacing: -.01em; }

/* ── Lobby ─────────────────────────────────────────────────────────────── */
#lobby { position: absolute; inset: 0; z-index: 5; background: var(--g800); display: flex; flex-direction: column; }
.lb-head { height: 88px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; background: var(--g900); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); position: relative; z-index: 1; }
.lb-brand { display: flex; align-items: center; gap: 16px; }
.cm-logo { height: 44px; display: block; }
.lb-sig { font-size: 14px; font-weight: 700; color: var(--g400); padding: 5px 0 5px 16px; border-left: 1px solid var(--g600); letter-spacing: .02em; }
.lb-only { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--g400); }
.lb-only .stake-mark { font-size: 40px; }

.lb-main { display: grid; grid-template-columns: 1236px 1fr; gap: 24px; padding: 28px 56px 0; }
#featured { position: relative; height: 556px; border-radius: var(--r-md); overflow: hidden; background: var(--g700); view-transition-name: featured; }
.ft-media { position: absolute; inset: 0; }
.ft-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 33, 46, .96) 0%, rgba(15, 33, 46, .82) 34%, rgba(15, 33, 46, 0) 66%); }
.ft-body { position: absolute; left: 48px; bottom: 44px; width: 620px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: var(--g700); }
.badge.next .live-dot { background: var(--g400); }
.badge.next .live-dot::after { display: none; }
#featured-name { font-size: 80px; font-weight: 900; line-height: 1; margin: 18px 0 12px; letter-spacing: -.02em; }
.ft-sub { font-size: 22px; font-weight: 600; color: var(--g400); margin: 0 0 30px; display: flex; align-items: center; }
.ft-sub .stake-mark { font-size: 34px; margin-left: 10px; }
.ft-row { display: flex; align-items: center; gap: 28px; }
.btn-green { display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border-radius: var(--r-sm); background: var(--green); color: var(--on-green); font-size: 20px; font-weight: 800; box-shadow: var(--sh-1); }
.btn-green b { font-weight: 900; margin: 0 .25em; }
.ft-count { display: flex; align-items: baseline; gap: 10px; font-size: 19px; color: var(--g400); }
.ft-count b { color: var(--white); font-size: 28px; }

#schedule { background: var(--g900); border-radius: var(--r-md); padding: 22px 20px 18px; display: flex; flex-direction: column; height: 556px; }
#schedule h2, .lb-row h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; margin: 0 0 16px; }
#schedule h2 .ic, .lb-row h2 .ic { color: var(--g400); }
#schedule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
#schedule-list li { display: flex; align-items: center; gap: 14px; height: 100px; padding: 0 12px; border-radius: var(--r-md); background: var(--g800); }
#schedule-list li.first { background: var(--g700); box-shadow: inset 3px 0 0 var(--green); }
#schedule-list .thumb { width: 60px; height: 80px; border-radius: var(--r-sm); }
#schedule-list .nm { font-weight: 800; font-size: 20px; }
#schedule-list .tm { font-size: 15px; color: var(--g400); font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
#schedule-list li.first .tm { color: var(--green); font-weight: 800; }
.sch-note { font-size: 13px; color: var(--g400); display: flex; align-items: center; margin-top: 12px; }

.lb-row { padding: 26px 56px 0; }
#lobby-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 16px; }
.tile { position: relative; container-type: inline-size; }
.tile .art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t-med) var(--ease-out); }
.tile .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .t-name { font-size: 16px; font-weight: 800; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-meta { font-size: 13px; font-weight: 700; color: var(--g400); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.tile .t-meta .live-dot { width: 7px; height: 7px; }
.tile.current .art { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--green), var(--sh-1); }
.tile.current .t-meta { color: var(--green); }
.tile.off .art img { filter: grayscale(.6) brightness(.5); }
.tile .lock { position: absolute; inset: 0; display: grid; place-items: center; color: var(--g300); }
.tile .lock .ic { width: 34px; height: 34px; }
@container (max-width: 150px) { .tile .t-name { font-size: 15px; } }

/* View Transitions: only named elements move; the game underneath keeps rendering (root not captured). */
:root { view-transition-name: none; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
::view-transition-old(lobby), ::view-transition-new(lobby) { animation-duration: 380ms; }
#lobby { view-transition-name: lobby; }
#ctx { view-transition-name: ctx; }
::view-transition-old(ctx) { animation: vt-out 200ms var(--ease-out) both; }
::view-transition-new(ctx) { animation: vt-in 320ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

.m-kicker .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.m-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); transform-origin: left; }

/* AI transparency notice: permanent, discreet, readable (under the host card; bottom right on lobby / transformation). */
#ai-note { position: absolute; z-index: 7; top: 162px; right: 24px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px;
  border-radius: var(--r-sm); background: rgba(15, 33, 46, .9); color: var(--g400); font-size: 15px; font-weight: 700; white-space: nowrap; pointer-events: none; }
#ai-note .ic { width: 16px; height: 16px; stroke-width: 2; color: var(--g400); }
#stage:has(#lobby:not([hidden])) #ai-note, #stage:has(#morph:not([hidden])) #ai-note { top: auto; bottom: 26px; right: 56px; }

/* Per-game records: lobby tile badge and featured line */
.tile .rec { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-sm);
  background: rgba(15, 33, 46, .88); font-size: 13px; font-weight: 800; color: var(--white); }
.tile .rec .ic { width: 13px; height: 13px; color: var(--gold); stroke-width: 2.2; }
.ft-rec { display: flex; align-items: center; gap: 8px; font-size: 19px; color: var(--g400); margin: -14px 0 26px; min-height: 26px; }
.ft-rec .ic { width: 20px; height: 20px; color: var(--gold); }
.ft-rec b { color: var(--white); font-size: 22px; }
.ft-rec:empty { display: none; }

/* Per-game records: lobby tile badge and featured line */
.tile .rec { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-sm);
  background: rgba(15, 33, 46, .88); font-size: 13px; font-weight: 800; color: var(--white); }
.tile .rec .ic { width: 13px; height: 13px; color: var(--gold); stroke-width: 2.2; }
.ft-rec { display: flex; align-items: center; gap: 8px; font-size: 19px; color: var(--g400); margin: -14px 0 26px; min-height: 26px; }
.ft-rec .ic { width: 20px; height: 20px; color: var(--gold); }
.ft-rec b { color: var(--white); font-size: 22px; }
.ft-rec:empty { display: none; }

/* Per-game records: lobby tile badge and featured line */
.tile .rec { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-sm);
  background: rgba(15, 33, 46, .88); font-size: 13px; font-weight: 800; color: var(--white); }
.tile .rec .ic { width: 13px; height: 13px; color: var(--gold); stroke-width: 2.2; }
.ft-rec { display: flex; align-items: center; gap: 8px; font-size: 19px; color: var(--g400); margin: -14px 0 26px; min-height: 26px; }
.ft-rec .ic { width: 20px; height: 20px; color: var(--gold); }
.ft-rec b { color: var(--white); font-size: 22px; }
.ft-rec:empty { display: none; }
