/* cockfight.fun — FIGHT NIGHT poster meets cartoon. Warm near-black glass over the 3D pit; RED and BLUE corners, GOLD money.
 * Rule: nothing moves when content changes. Fixed slots, fixed row heights, tabular numbers everywhere a number ticks. */
:root {
  --ink: #fff4ec;
  --ink-2: rgba(255, 236, 224, 0.76);
  --ink-3: rgba(255, 224, 206, 0.52);
  --ink-4: rgba(255, 218, 196, 0.32);
  --red: #ff3b3b;
  --red-2: #ff8a7a;
  --red-d: #a8101c;
  --red-glow: rgba(255, 59, 59, 0.45);
  --blue: #2f8cff;
  --blue-2: #8cc4ff;
  --blue-d: #0d47a8;
  --blue-glow: rgba(47, 140, 255, 0.45);
  --gold: #ffc83d;
  --gold-2: #ffe08a;
  --gold-3: #fff3c9;
  --gold-d: #b87a0a;
  --win: #6ee79a;
  --loss: #ff6b5a;
  --fair: #5fe0b0;
  --glass: rgba(22, 12, 9, 0.58);
  --glass-strong: rgba(19, 10, 8, 0.9);
  --line: rgba(255, 186, 150, 0.13);
  --line-2: rgba(255, 186, 150, 0.22);
  --hi: rgba(255, 255, 255, 0.07);
  --r: 16px;
  --r-sm: 11px;
  --gut: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.28);
  --display: 'Unbounded', system-ui, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top: 12px;
  --tb-h: 58px;
  --lw: 296px;
  --rw: 344px;
  --bet-h: 212px;
}
/* --below lives on body so it resolves against body's own --top (the test-mode strip raises it there) */
body { --below: calc(var(--top) + var(--tb-h) + 12px); }
body.testmode-on { --top: 40px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c0706; color: var(--ink); font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { font-feature-settings: 'tnum' 1, 'cv11' 1; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.gold { color: var(--gold-2); }
.red { color: var(--red-2); }
.blue { color: var(--blue-2); }
.pos { color: var(--win); }
.neg { color: var(--loss); }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid rgba(255, 200, 61, 0.7); outline-offset: 2px; border-radius: 8px; }

#stage { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; display: block; outline: none; touch-action: none; }
#stage { opacity: 0; transition: opacity .9s var(--ease); } #stage.on { opacity: 1; }

/* ───────────── static arena backdrop (behind the canvas; the whole show when WebGL is off) */
.arena-bg { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none;
  background: radial-gradient(900px 520px at 50% 58%, rgba(255, 150, 60, 0.18), transparent 70%), radial-gradient(1400px 900px at 50% 120%, #3a1608 0%, #160a06 55%, #0c0706 100%); }
.arena-bg .spot { position: absolute; left: 50%; top: -20%; width: 70vw; height: 110vh; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 42%, rgba(255, 220, 160, 0.10) 50%, transparent 58%); filter: blur(8px); }
.arena-bg .ring { position: absolute; left: 50%; top: 64%; width: min(900px, 92vw); height: min(260px, 26vw); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 120, 60, 0.35), rgba(90, 40, 16, 0.45) 70%, transparent 71%); box-shadow: 0 0 0 6px rgba(255, 200, 140, 0.06), 0 0 120px rgba(255, 120, 40, 0.18); }
.arena-bg .haze { position: absolute; inset: 0; background: radial-gradient(600px 300px at 30% 70%, rgba(255, 59, 59, 0.10), transparent 70%), radial-gradient(600px 300px at 70% 70%, rgba(47, 140, 255, 0.10), transparent 70%); }
.no-world #stage { display: none; }

/* ───────────── glass */
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow), inset 0 1px 0 var(--hi); }
.glass-strong { background: var(--glass-strong); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--hi); }
.eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; white-space: nowrap; }

/* buttons */
.btn { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-weight: 700; font-size: 12.5px; letter-spacing: .01em; color: #221300;
  background: linear-gradient(180deg, #ffe08a, #ffc83d 55%, #f0a51a); box-shadow: 0 4px 16px rgba(255, 180, 40, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(120, 60, 0, 0.35); transition: transform .15s, filter .2s, opacity .2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; filter: grayscale(.4); transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 10px; }
.btn.wide { width: 100%; height: 42px; font-size: 13.5px; }
.btn.ghost { color: var(--ink-2); background: rgba(255, 220, 190, 0.06); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { color: var(--ink); background: rgba(255, 220, 190, 0.1); }
.btn.busy { pointer-events: none; opacity: .75; }
.btn.busy::after { content: ''; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--ink-2); transition: background .2s, color .2s, transform .15s; }
.icon-btn:hover { background: rgba(255, 220, 190, 0.08); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.on { color: var(--gold-2); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn.ghost { visibility: hidden; }
.icon-btn.close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255, 220, 190, 0.05); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); transition: background .2s, color .2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg button svg { width: 15px; height: 15px; }
.seg button:hover { color: var(--ink); background: rgba(255, 220, 190, 0.06); }
.seg button.on { color: #221300; background: linear-gradient(180deg, #ffe08a, #ffc83d); box-shadow: 0 2px 10px rgba(255, 180, 40, 0.35); }

/* ───────────── loader */
#loader { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(1100px 700px at 50% 58%, #3a1608 0%, #120806 62%, #0a0605 100%); transition: opacity .9s var(--ease), visibility .9s; }
#loader.out { opacity: 0; visibility: hidden; }
.ld-logo { width: 150px; height: 150px; display: block; animation: ld-glow 2.2s ease-in-out infinite; }
@keyframes ld-glow { 0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 90, 40, .35)); transform: scale(1) rotate(-2deg); } 50% { filter: drop-shadow(0 0 32px rgba(255, 170, 40, .7)); transform: scale(1.04) rotate(2deg); } }
.ld-word { font-family: var(--display); font-weight: 900; letter-spacing: .26em; font-size: 28px; padding-left: .26em; margin-top: 4px; background: linear-gradient(180deg, #fff6e0 10%, #ffc83d 55%, #ff5a2a 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-tag { font-size: 11px; letter-spacing: .3em; color: var(--ink-3); font-weight: 700; padding-left: .3em; }
.ld-bar { width: 240px; height: 3px; border-radius: 3px; background: rgba(255, 190, 150, 0.12); overflow: hidden; margin-top: 10px; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); box-shadow: 0 0 12px var(--gold); transition: width .4s var(--ease); }
.ld-step { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; height: 16px; }

/* ───────────── test mode strip */
.testmode { position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11.5px; font-weight: 700; color: #1d1200;
  background: repeating-linear-gradient(-45deg, #ffc83d 0 14px, #ffb21a 14px 28px); box-shadow: 0 4px 20px rgba(0, 0, 0, .4); letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.testmode b { font-family: var(--display); font-weight: 900; letter-spacing: .14em; padding: 2px 8px; border-radius: 6px; background: #1d1200; color: var(--gold); font-size: 11px; }

/* ───────────── HUD layout */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: 0; transition: opacity 1s var(--ease); }
.hud.on { opacity: 1; }
.hud > * { pointer-events: auto; }
.hud .topbar, .hud .fh { pointer-events: none; }
.hud .topbar > *, .hud .fh > * { pointer-events: auto; }

.topbar { position: absolute; left: var(--gut); right: var(--gut); top: var(--top); height: var(--tb-h); display: flex; align-items: stretch; gap: 12px; }
.tb-brand { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 10px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; display: block; filter: drop-shadow(0 2px 10px rgba(255, 70, 40, .45)); }
.brand-word { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .14em; background: linear-gradient(180deg, #fff6e0 10%, #ffc83d 55%, #ff6a2a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.tick { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 5px; border-radius: 999px; background: rgba(255, 200, 61, 0.1); border: 1px solid rgba(255, 200, 61, 0.28); color: var(--gold-2); font-size: 11.5px; transition: background .2s; max-width: 210px; }
.tick b { height: 20px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #ffc83d); color: #221300; font-family: var(--display); font-weight: 900; font-size: 10px; letter-spacing: .06em; }
.tick .mono { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick svg { width: 13px; height: 13px; color: var(--ink-3); }
.tick:hover { background: rgba(255, 200, 61, 0.16); }
.tick:not(.live) svg { display: none; }
.viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.viewers i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s infinite; }
.viewers b { color: var(--ink); font-weight: 800; min-width: 2.2ch; text-align: right; }
@keyframes blink { 50% { opacity: .35; } }

.tb-stats { flex: 1 1 auto; min-width: 0; max-width: 648px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; }
.stat { position: relative; display: grid; align-content: center; gap: 2px; padding: 0 12px; min-width: 0; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.stat .v { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .v.gold { color: var(--gold-2); }
.stat .v.fire { color: #ffae6a; }
.stat .s { font-size: 10.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .k { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stat .k .ext { display: none; width: 9px; height: 9px; flex: none; opacity: .7; }
a.stat.link { cursor: pointer; border-radius: 10px; transition: background .2s; }
a.stat.link:hover { background: rgba(255, 174, 106, .07); }
a.stat.link .k .ext { display: block; }
.bump { animation: bump .55s var(--ease); }
@keyframes bump { 30% { color: var(--gold-3); text-shadow: 0 0 18px rgba(255, 200, 61, .85); } }

.tb-ctl { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.tb-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.help-btn { width: auto; padding: 0 10px; gap: 7px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.acct { display: flex; align-items: center; }
.acct-in { display: flex; align-items: center; gap: 6px; }
.bal { height: 40px; display: grid; align-content: center; justify-items: end; padding: 0 12px; border-radius: 11px; background: rgba(255, 200, 61, 0.08); border: 1px solid rgba(255, 200, 61, 0.24); transition: background .2s; min-width: 118px; }
.bal:hover { background: rgba(255, 200, 61, 0.14); }
.bal-k { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.bal-v { display: inline-flex; align-items: baseline; gap: 4px; }
.bal-v b { font-size: 15px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.bal-v small { font-size: 10px; color: var(--ink-3); font-weight: 700; }
.me-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; transition: background .2s; }
.me-btn:hover { background: rgba(255, 220, 190, 0.08); }
.acct-menu { position: absolute; right: var(--gut); top: calc(var(--top) + var(--tb-h) + 8px); width: 240px; padding: 8px; display: grid; gap: 2px; z-index: 30; animation: sheet-in .25s var(--ease); }
.am-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.am-head b { display: block; font-size: 14px; }
.am-head small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.acct-menu > button { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.acct-menu > button:hover { background: rgba(255, 220, 190, 0.07); color: var(--ink); }
.acct-menu > button svg { width: 16px; height: 16px; color: var(--ink-3); }

/* generated bettor avatars */
.uav { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  background: linear-gradient(135deg, hsl(var(--h1) 78% 58%), hsl(var(--h2) 70% 34%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .2); flex: none; }
.uav.p1 { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .10) 0 3px, transparent 3px 8px), linear-gradient(135deg, hsl(var(--h1) 78% 58%), hsl(var(--h2) 70% 34%)); }
.uav.p2 { background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), transparent 45%), linear-gradient(135deg, hsl(var(--h1) 78% 58%), hsl(var(--h2) 70% 34%)); }
.uav.sm { width: 28px; height: 28px; font-size: 10.5px; border-radius: 9px; }

/* ───────────── the fight header (hero) */
.fh { position: absolute; top: var(--below); left: calc(var(--gut) + var(--lw) + 14px); right: calc(var(--gut) + var(--rw) + 14px); display: flex; flex-direction: column; align-items: center; }
.fh-card { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); grid-template-rows: 62px 22px; column-gap: 12px; row-gap: 10px; padding: 12px 14px; overflow: hidden; }
.fh-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 59, 59, .16), transparent 34%, transparent 66%, rgba(47, 140, 255, .16)); }
.fh-card::after { content: ''; position: absolute; left: 50%; top: -40%; width: 1px; height: 180%; background: linear-gradient(180deg, transparent, rgba(255, 200, 61, .35), transparent); transform: rotate(14deg); pointer-events: none; }
.fh.bell .fh-card { animation: bell-flash .7s var(--ease); }
@keyframes bell-flash { 20% { box-shadow: 0 0 0 2px rgba(255, 200, 61, .7), 0 0 60px rgba(255, 200, 61, .45), var(--shadow); } }
.fh-side { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; transition: filter .6s, opacity .6s; }
.fh-side.blue { justify-content: flex-end; text-align: right; }
.fh-crest { width: 62px; height: 62px; flex: none; position: relative; border-radius: 16px; transition: transform .2s; }
.fh-crest img { width: 62px; height: 62px; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.fh-crest:hover { transform: translateY(-2px) scale(1.03); }
.fh-side.red .fh-crest::before, .fh-side.blue .fh-crest::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; opacity: .55; filter: blur(10px); z-index: -1; }
.fh-side.red .fh-crest::before { background: radial-gradient(closest-side, var(--red), transparent); }
.fh-side.blue .fh-crest::before { background: radial-gradient(closest-side, var(--blue), transparent); }
.flip { transform: scaleX(-1); }
.fh-id { min-width: 0; display: grid; gap: 3px; }
.fh-corner { font-size: 9.5px; letter-spacing: .22em; font-weight: 800; }
.fh-side.red .fh-corner { color: var(--red-2); }
.fh-side.blue .fh-corner { color: var(--blue-2); }
.fh-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; color: #fff; }
.fh-side.blue .fh-name { justify-content: flex-end; }
.fh-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fh-side.red .fh-name span { text-shadow: 0 0 18px rgba(255, 59, 59, .55); }
.fh-side.blue .fh-name span { text-shadow: 0 0 18px rgba(47, 140, 255, .55); }
.fh-name .crown { width: 16px; height: 16px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 200, 61, .8)); display: none; }
.fh-side.champ .fh-name .crown { display: block; }
.fh-meta { display: flex; align-items: center; gap: 6px; height: 20px; }
.fh-side.blue .fh-meta { justify-content: flex-end; }
.lv { height: 19px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--gold-2); background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .28); font-variant-numeric: tabular-nums; min-width: 44px; }
.rec { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 42px; }
.fh-side.red .rec { text-align: left; } .fh-side.blue .rec { text-align: right; }
.stk { height: 19px; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #ffb27a; background: rgba(255, 120, 40, .12); border: 1px solid rgba(255, 120, 40, .3); visibility: hidden; min-width: 44px; justify-content: center; }
.stk svg { width: 11px; height: 11px; }
.stk.on { visibility: visible; }
.stk.hot { color: #fff1c4; background: linear-gradient(180deg, rgba(255, 120, 40, .5), rgba(255, 59, 59, .35)); box-shadow: 0 0 14px rgba(255, 120, 40, .45); }
.fh-mid { display: grid; justify-items: center; align-content: center; gap: 3px; }
.fh-no { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fh-vs { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: .02em; background: linear-gradient(180deg, #fff6e0 5%, #ffc83d 55%, #ff7a1a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(255, 150, 30, .35)); }
.fh-vs.red { background-image: linear-gradient(180deg, #fff 5%, #ff8a7a 50%, #ff3b3b 100%); }
.fh-vs.blue { background-image: linear-gradient(180deg, #fff 5%, #8cc4ff 50%, #2f8cff 100%); }
.fair { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--fair); background: rgba(95, 224, 176, .08); border: 1px solid rgba(95, 224, 176, .25); transition: background .2s; white-space: nowrap; }
.fair svg { width: 12px; height: 12px; }
.fair:hover { background: rgba(95, 224, 176, .16); }
.fh-side.won .fh-crest img { filter: drop-shadow(0 0 16px rgba(255, 200, 61, .85)) drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.fh-side.lost { filter: grayscale(.75) brightness(.7); }

/* HP bars: anchored at the centre, the damage eats from the outside in; a pale ghost trails behind */
.hp { position: relative; height: 22px; border-radius: 8px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55); }
.hp i { position: absolute; top: 2px; bottom: 2px; left: 2px; right: 2px; border-radius: 6px; }
.hp.red i { transform-origin: 100% 50%; }
.hp.blue i { transform-origin: 0% 50%; }
.hp .hp-ghost { background: linear-gradient(180deg, #fff6d6, #ffd98a); opacity: .9; transition: transform .75s cubic-bezier(.3, .6, .3, 1) .35s; }
.hp .hp-fill { transition: transform .16s ease-out; overflow: hidden; }
.hp.red .hp-fill { background: linear-gradient(180deg, #ff9c8c, #ff3b3b 48%, #a8101c); box-shadow: 0 0 16px var(--red-glow); }
.hp.blue .hp-fill { background: linear-gradient(180deg, #a6d2ff, #2f8cff 48%, #0d47a8); box-shadow: 0 0 16px var(--blue-glow); }
.hp .hp-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: sheen 2.8s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.hp .hp-flash { background: #fff; opacity: 0; left: 0; right: 0; top: 0; bottom: 0; border-radius: 0; }
.hp.reset i { transition: none !important; }
.hp.hit { animation: shake .38s; }
.hp.hit .hp-flash { animation: flash .38s; }
.hp.crit { animation: shake-big .56s; }
.hp.crit .hp-flash { animation: flash .56s; }
.hp.low .hp-fill { animation: low 0.8s ease-in-out infinite; }
.hp.ko { border-color: rgba(255, 59, 59, .4); }
@keyframes shake { 20% { transform: translate(-3px, 1px); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, 0); } 80% { transform: translate(1px, 0); } }
@keyframes shake-big { 10% { transform: translate(-6px, 2px) rotate(-.6deg); } 25% { transform: translate(6px, -2px) rotate(.6deg); } 40% { transform: translate(-5px, 1px); } 55% { transform: translate(4px, -1px); } 70% { transform: translate(-2px, 0); } }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }
@keyframes low { 50% { filter: brightness(1.5) saturate(1.3); } }
.hp-v { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-variant-numeric: tabular-nums; z-index: 2; min-width: 3ch; }
.hp.red .hp-v { left: 9px; }
.hp.blue .hp-v { right: 9px; }
.hp-mid { display: grid; place-items: center; }
.round { font-size: 13px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.round.live { color: #fff; text-shadow: 0 0 12px rgba(255, 200, 61, .6); }

/* phase line */
.phase { margin-top: 8px; width: 310px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: rgba(16, 8, 6, .72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); white-space: nowrap; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.ph-k { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; color: var(--ink-2); }
.ph-v { font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: left; }
.ph-v:empty { display: none; }
.phase.open .ph-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 61, .18); animation: blink 1.6s infinite; }
.phase.open .ph-v { color: var(--gold-2); }
.phase.urgent { border-color: rgba(255, 59, 59, .55); animation: urgent 1s ease-in-out infinite; }
.phase.urgent .ph-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 59, .25); }
.phase.urgent .ph-v { color: #ff9c8c; }
@keyframes urgent { 50% { box-shadow: 0 0 26px rgba(255, 59, 59, .45), 0 8px 24px rgba(0, 0, 0, .35); } }
.phase.closing .ph-dot, .phase.intro .ph-dot { background: var(--gold); }
.phase.intro .ph-k { color: var(--gold-2); }
.phase.fight .ph-dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1s infinite; }
.phase.decided { border-color: rgba(255, 200, 61, .6); box-shadow: 0 0 30px rgba(255, 200, 61, .35); }
.phase.decided .ph-k { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: .1em; color: var(--gold-2); }
.phase.result .ph-dot { background: var(--blue-2); }

/* ───────────── tale of the tape */
.tape-panel { position: absolute; left: var(--gut); top: var(--below); width: var(--lw); max-height: calc(100vh - var(--below) - var(--gut)); display: flex; flex-direction: column; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.ph-title { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.ph-title svg { width: 15px; height: 15px; color: var(--gold); }
.tape { padding: 12px 14px 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 190, 150, .2) transparent; }
.tp-heads { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 4px; }
.tp-h { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; padding: 6px 2px; border-radius: 12px; transition: background .2s; }
.tp-h:hover { background: rgba(255, 220, 190, .05); }
.tp-h img { width: 58px; height: 58px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
.tp-h b { font-family: var(--display); font-weight: 900; font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-h.red b { color: #ffd3cc; } .tp-h.blue b { color: #d3e7ff; }
.tp-h small { font-size: 10.5px; color: var(--ink-3); }
.tp-vs { font-family: var(--display); font-weight: 900; font-size: 12px; color: var(--gold); text-align: center; }
.tp-rows { margin-top: 12px; display: grid; gap: 8px; }
.tp-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 62px minmax(0, 1fr) 24px; align-items: center; gap: 6px; height: 18px; cursor: help; }
.tv { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tv.red { text-align: left; } .tv.blue { text-align: right; }
.tv.up { color: #fff; }
.tv.red.up { text-shadow: 0 0 10px var(--red-glow); } .tv.blue.up { text-shadow: 0 0 10px var(--blue-glow); }
.tb { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; display: flex; }
.tb.red { justify-content: flex-end; }
.tb i { display: block; height: 100%; border-radius: 99px; }
.tb.red i { background: linear-gradient(270deg, #ff9c8c, var(--red) 55%, var(--red-d)); box-shadow: 0 0 10px var(--red-glow); }
.tb.blue i { background: linear-gradient(90deg, #a6d2ff, var(--blue) 55%, var(--blue-d)); box-shadow: 0 0 10px var(--blue-glow); }
.tk { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: center; white-space: nowrap; }
.tp-meta { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; }
.tm-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; height: 24px; font-size: 12px; font-weight: 600; }
.tm-row .tv { font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-row .tv.up { color: #fff; }
.stk-mini { font-size: 10.5px; font-weight: 800; color: #ffb27a; }
.stk-mini.hot { color: #fff1c4; text-shadow: 0 0 10px rgba(255, 120, 40, .7); }
.tp-odds { margin-top: 12px; padding: 10px 12px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); cursor: help; }
.to-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.to-head span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.to-head small { font-size: 10px; color: var(--ink-4); }
.to-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 8px; gap: 2px; }
.to-bar .r { background: linear-gradient(90deg, var(--red-d), var(--red)); box-shadow: 0 0 10px var(--red-glow); }
.to-bar .b { background: linear-gradient(90deg, var(--blue), var(--blue-d)); box-shadow: 0 0 10px var(--blue-glow); }
.to-nums { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.to-nums span { color: var(--ink-4); font-size: 12px; }

/* ───────────── bet slip */
.bet { position: absolute; bottom: var(--gut); left: calc(var(--gut) + var(--lw) + 14px); right: calc(var(--gut) + var(--rw) + 14px); max-width: 640px; margin: 0 auto; height: var(--bet-h);
  display: grid; grid-template-rows: 90px 16px 42px 16px; gap: 10px; padding: 12px; }
.bet.celebrate { animation: celebrate 1.2s var(--ease); }
@keyframes celebrate { 20% { box-shadow: 0 0 0 2px rgba(255, 200, 61, .8), 0 0 70px rgba(255, 200, 61, .5), var(--shadow); } }
.bet-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.side { position: relative; display: grid; grid-template-rows: 18px 30px 16px 14px; align-content: center; row-gap: 1px; padding: 0 14px; border-radius: 13px; text-align: left; overflow: hidden; border: 1px solid; transition: transform .15s, box-shadow .25s, filter .4s, opacity .3s; }
.side::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 10px, transparent 10px 22px); pointer-events: none; }
.side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.side:not(:disabled):hover::after { animation: side-sheen .9s var(--ease); }
@keyframes side-sheen { to { transform: translateX(120%); } }
.side.red { background: linear-gradient(135deg, rgba(255, 59, 59, .30), rgba(130, 12, 20, .30) 58%, rgba(40, 6, 8, .4)); border-color: rgba(255, 100, 90, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 26px rgba(255, 40, 40, .14); }
.side.blue { background: linear-gradient(225deg, rgba(47, 140, 255, .30), rgba(12, 50, 130, .30) 58%, rgba(6, 14, 40, .4)); border-color: rgba(90, 160, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 26px rgba(40, 120, 255, .14); }
.side.blue { text-align: right; }
.side:not(:disabled):hover { transform: translateY(-2px); }
.side.red:not(:disabled):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 34px rgba(255, 40, 40, .32), 0 0 0 1px rgba(255, 120, 110, .6); }
.side.blue:not(:disabled):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 34px rgba(40, 120, 255, .32), 0 0 0 1px rgba(120, 180, 255, .6); }
.side:not(:disabled):active { transform: translateY(1px); }
.sd-row { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.side.blue .sd-row { justify-content: flex-end; flex-direction: row-reverse; }
.sd-tag { font-family: var(--display); font-weight: 900; font-size: 10.5px; letter-spacing: .18em; flex: none; }
.side.red .sd-tag { color: var(--red-2); } .side.blue .sd-tag { color: var(--blue-2); }
.sd-name { font-size: 12px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sd-won { display: none; height: 16px; padding: 0 6px; border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .12em; color: #221300; background: linear-gradient(180deg, #ffe08a, #ffc83d); align-items: center; flex: none; }
.sd-mult { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 30px; color: #fff; font-variant-numeric: tabular-nums; }
.side.red .sd-mult { text-shadow: 0 0 20px rgba(255, 59, 59, .55); } .side.blue .sd-mult { text-shadow: 0 0 20px rgba(47, 140, 255, .55); }
.sd-foot { font-size: 11.5px; color: var(--ink-3); gap: 10px; }
.side.blue .sd-foot { flex-direction: row; justify-content: flex-end; }
.sd-pool b { color: var(--gold-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.sd-n { font-variant-numeric: tabular-nums; }
.sd-cta { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.side.red .sd-cta { color: #ffb5aa; } .side.blue .sd-cta { color: #b5d8ff; }
.side.won { box-shadow: 0 0 0 2px var(--gold), 0 0 36px rgba(255, 200, 61, .4), inset 0 1px 0 rgba(255, 255, 255, .2) !important; }
.side.won .sd-won { display: inline-flex; }
.side.won .sd-cta { color: var(--gold-2); }
.side.lost { filter: grayscale(.8) brightness(.62); }
.side.dim { opacity: .82; }
.side.busy { pointer-events: none; }
.side.busy .sd-mult { opacity: .5; }
.side.placed { animation: placed .7s var(--ease); }
@keyframes placed { 30% { box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(255, 200, 61, .55); transform: scale(1.015); } }
.split { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-l { color: var(--red-2); } .sp-r { color: var(--blue-2); text-align: right; }
.sp-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--blue-d)); overflow: hidden; box-shadow: 0 0 12px rgba(47, 140, 255, .25); }
.sp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, var(--red-d), var(--red)); transition: width .7s var(--ease); box-shadow: 2px 0 0 rgba(255, 255, 255, .85), 0 0 12px var(--red-glow); }
.bet-act { position: relative; }
.ba { position: absolute; inset: 0; display: none; align-items: center; gap: 8px; }
.bet[data-state="open"] .ba-open, .bet[data-state="signin"] .ba-signin, .bet[data-state="closed"] .ba-closed, .bet[data-state="result"] .ba-result, .bet[data-state="prelaunch"] .ba-pre { display: flex; }
.amtbox { position: relative; flex: none; display: flex; align-items: center; gap: 6px; width: 158px; height: 42px; padding: 0 10px 0 12px; border-radius: 11px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.amtbox:focus-within { border-color: rgba(255, 200, 61, .6); box-shadow: 0 0 0 3px rgba(255, 200, 61, .12); }
.amtbox input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.amtbox input::placeholder { color: var(--ink-4); }
.amtbox span { font-size: 11px; font-weight: 800; color: var(--gold-2); letter-spacing: .06em; }
.amtbox.shake { animation: shake .38s; border-color: rgba(255, 107, 90, .6); }
.chips { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 5px; }
.chips button { height: 34px; border-radius: 9px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); background: rgba(255, 220, 190, .06); border: 1px solid var(--line); transition: background .2s, color .2s, transform .12s; }
.chips button:hover { color: var(--ink); background: rgba(255, 220, 190, .12); }
.chips button:active { transform: translateY(1px); }
.chips button.on { color: #221300; background: linear-gradient(180deg, #ffe08a, #ffc83d); border-color: transparent; box-shadow: 0 2px 10px rgba(255, 180, 40, .35); }
.chips button[data-amt="max"] { letter-spacing: .06em; }
.ba-signin .btn.wide { height: 42px; }
.ba-closed { justify-content: center; border-radius: 11px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.ba-closed span { overflow: hidden; text-overflow: ellipsis; }
.ba-closed svg { width: 15px; height: 15px; color: var(--ink-3); }
/* before $COCK launches: the fights run, the pool waits */
.ba-pre { justify-content: center; gap: 9px; border-radius: 11px; padding: 0 14px; white-space: nowrap; overflow: hidden; font-size: 13px; font-weight: 800; letter-spacing: .01em; color: var(--gold-2);
  background: linear-gradient(90deg, rgba(255, 200, 61, .05), rgba(255, 200, 61, .14) 50%, rgba(255, 200, 61, .05)); border: 1px solid rgba(255, 200, 61, .34); box-shadow: 0 0 26px rgba(255, 170, 40, .12) inset; }
.ba-pre span { overflow: hidden; text-overflow: ellipsis; }
.ba-pre svg { width: 16px; height: 16px; flex: none; color: #ffae6a; filter: drop-shadow(0 0 6px rgba(255, 140, 60, .6)); }
.bet[data-state="prelaunch"] .side { filter: saturate(.75); }
.bet[data-state="prelaunch"] .bf-k, .bet[data-state="prelaunch"] .bf-v { display: none; }
.bet[data-state="prelaunch"] .bf-hint { margin: 0 auto; }
.ba-result { display: none; border-radius: 11px; padding: 0 14px; gap: 10px; white-space: nowrap; overflow: hidden; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .28); }
.ba-result svg { width: 20px; height: 20px; }
.br-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.br-v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.br-s { margin-left: auto; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.ba-result.win { border-color: rgba(255, 200, 61, .6); background: linear-gradient(90deg, rgba(255, 200, 61, .22), rgba(255, 120, 40, .08)); box-shadow: 0 0 30px rgba(255, 200, 61, .25) inset; }
.ba-result.win svg, .ba-result.win .br-v { color: var(--gold-2); text-shadow: 0 0 16px rgba(255, 200, 61, .6); }
.ba-result.loss .br-v { color: var(--loss); }
.ba-result.loss svg { color: var(--ink-3); }
.ba-result.refund .br-v, .ba-result.even .br-v { color: var(--ink); }
.ba-result.pop { animation: placed .8s var(--ease); }
.bet-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.bf-k { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-4); flex: none; }
.bf-v { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.bf-hint { margin-left: auto; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.bf-hint.bad { color: var(--loss); font-weight: 700; }

/* ───────────── right rail */
.rail { position: absolute; right: var(--gut); top: var(--below); bottom: var(--gut); width: var(--rw); display: flex; flex-direction: column; overflow: hidden; }
.tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { flex: 1 1 0; min-width: 0; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); transition: background .2s, color .2s; white-space: nowrap; }
.tabs button:hover { color: var(--ink); background: rgba(255, 220, 190, .06); }
.tabs button.on { color: #221300; background: linear-gradient(180deg, #ffe08a, #ffc83d); box-shadow: 0 2px 10px rgba(255, 180, 40, .3); }
.tabs .t-tape { display: none; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.4s infinite; }
.tabs button.on .live-dot { background: #b3121e; box-shadow: none; }
.pane { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 190, 150, .2) transparent; }
.pane-tools { padding: 10px 12px 6px; display: flex; justify-content: center; }
.pane-tools .seg { width: 100%; }
.pane-tools .seg button { flex: 1; }
.feed { position: relative; }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.empty.sm { padding: 14px 10px; font-size: 12px; }
.more { display: block; width: calc(100% - 24px); margin: 10px 12px 14px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: rgba(255, 220, 190, .05); border: 1px solid var(--line); }
.more:hover { background: rgba(255, 220, 190, .1); color: var(--ink); }

.row, .res, .st, .hr { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 0 12px; border-bottom: 1px solid rgba(255, 190, 150, .05); }
.row { height: 56px; }
.res { height: 58px; grid-template-columns: 46px minmax(0, 1fr) auto; }
.st { height: 54px; grid-template-columns: 22px 34px minmax(0, 1fr) auto; }
.hr { height: 52px; }
.click { cursor: pointer; transition: background .2s; }
.click:hover { background: rgba(255, 210, 170, .05); }
.av { width: 34px; height: 34px; display: grid; place-items: center; }
.av img, img.crest { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.tx { min-width: 0; }
.l1 { font-size: 12.8px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1 b { color: var(--ink); font-weight: 700; }
.l1 b.red { color: #ffc2b9; } .l1 b.blue { color: #c2dcff; }
.l2 { font-size: 11px; color: var(--ink-4); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l2.quote { font-style: italic; color: var(--ink-2); font-size: 12px; }
.amt { font-size: 12.5px; font-weight: 800; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt small { display: block; font-size: 10px; color: var(--ink-4); font-weight: 600; margin-top: 2px; }
.amt.gold { color: var(--gold-2); } .amt.pos { color: var(--win); } .amt.neg { color: var(--loss); } .amt.dim { color: var(--ink-3); }
.amt svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.sd { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 900; letter-spacing: .08em; line-height: 16px; }
.sd.red { color: #fff; background: rgba(255, 59, 59, .55); } .sd.blue { color: #fff; background: rgba(47, 140, 255, .55); }
.row.k-bet.red::before, .row.k-bet.blue::before, .row.k-talk::before, .res::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.row.k-bet.red::before, .row.k-talk.red::before, .res.red::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.row.k-bet.blue::before, .row.k-talk.blue::before, .res.blue::before { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.row.k-talk .tt { width: 11px; height: 11px; color: var(--gold); vertical-align: -1px; margin: 0 2px; }
.row.k-talk .ago, .row .ago { color: var(--ink-4); font-weight: 500; }
.row.k-card { height: 36px; grid-template-columns: 1fr; background: linear-gradient(90deg, rgba(255, 59, 59, .08), rgba(255, 200, 61, .06), rgba(47, 140, 255, .08)); }
.row.k-card.lock { background: rgba(0, 0, 0, .18); }
.dv { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; min-width: 0; }
.dv b { color: var(--gold-2); }
.dv i { font-style: normal; color: var(--ink-4); }
.dv .red, .dv .blue { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dv svg { width: 12px; height: 12px; }
.row.k-result { background: linear-gradient(90deg, rgba(255, 200, 61, .07), transparent 70%); }
.row.k-level .amt { font-size: 11px; }
.row.in { animation: row-in .5s var(--ease); }
.row.in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 200, 61, .16), transparent 70%); animation: wash 1.4s ease-out forwards; pointer-events: none; }
.row.in.red::after { background: linear-gradient(90deg, rgba(255, 59, 59, .2), transparent 70%); }
.row.in.blue::after { background: linear-gradient(90deg, rgba(47, 140, 255, .2), transparent 70%); }
@keyframes row-in { from { transform: translateY(-12px); opacity: 0; } }
@keyframes wash { to { opacity: 0; } }
.res-av { position: relative; width: 46px; height: 34px; }
.res-av img { position: absolute; top: 0; width: 30px; height: 30px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .5)) grayscale(.6) brightness(.7); }
.res-av img.r { left: 0; } .res-av img.b { right: 0; top: 4px; }
.res-av img.w { filter: drop-shadow(0 0 8px rgba(255, 200, 61, .6)); z-index: 1; }
.rk { font-size: 11px; font-weight: 800; color: var(--ink-4); text-align: center; font-variant-numeric: tabular-nums; }
.rk.top { color: var(--gold-2); }
.st .crown { width: 13px; height: 13px; color: var(--gold); margin-left: 5px; vertical-align: -2px; }
.st.champ { background: linear-gradient(90deg, rgba(255, 200, 61, .1), transparent 70%); }
.now { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 900; letter-spacing: .08em; line-height: 15px; text-transform: uppercase; vertical-align: 1px; }
.now.red { background: rgba(255, 59, 59, .5); color: #fff; } .now.blue { background: rgba(47, 140, 255, .5); color: #fff; }
.hi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 220, 190, .06); border: 1px solid var(--line); color: var(--ink-3); }
.hi svg { width: 15px; height: 15px; }
.hi.pos { color: var(--win); } .hi.neg { color: var(--loss); } .hi.gold { color: var(--gold-2); }
.hi.red { color: var(--red-2); border-color: rgba(255, 59, 59, .35); } .hi.blue { color: var(--blue-2); border-color: rgba(47, 140, 255, .35); }
.wl { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 12px; }
.wl.w { color: #221300; background: linear-gradient(180deg, #ffe08a, #ffc83d); }
.wl.l { color: var(--ink-3); background: rgba(255, 220, 190, .06); border: 1px solid var(--line); }
.state { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 16px; background: rgba(255, 200, 61, .14); color: var(--gold-2); }
.state.sent { background: rgba(110, 231, 154, .14); color: var(--win); } .state.failed { background: rgba(255, 107, 90, .14); color: var(--loss); }
.mine { padding-bottom: 12px; }
.mine-sum { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mine-sum > div { padding: 9px 12px; display: grid; gap: 3px; }
.mine-sum > div + div { border-left: 1px solid var(--line); }
.mine-sum b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 12px 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.cta-box { margin: 24px 16px; padding: 22px 18px; text-align: center; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(0, 0, 0, .15); display: grid; justify-items: center; gap: 8px; }
.cta-box svg { width: 28px; height: 28px; color: var(--gold); }
.cta-box b { font-family: var(--display); font-size: 14px; }
.cta-box p { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ───────────── world-anchored layers */
.bubbles, .pops { position: fixed; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.pops { z-index: 9; }
.bubble { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .35s; }
.bb { position: relative; max-width: 250px; padding: 8px 13px 10px; border-radius: 14px; background: #fffaf2; color: #1c0e08; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 12.8px; font-weight: 600; line-height: 1.35; transform-origin: var(--tail, 50%) 100%; }
.bb::after { content: ''; position: absolute; left: calc(var(--tail, 50%) - 9px); bottom: -9px; border: 9px solid transparent; border-top-color: #fffaf2; border-bottom: 0; }
.bubble.red .bb { border-top: 3px solid var(--red); } .bubble.blue .bb { border-top: 3px solid var(--blue); }
.bb-name { display: block; font-family: var(--display); font-weight: 900; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble.red .bb-name { color: #d11a1a; } .bubble.blue .bb-name { color: #1a64d1; }
.bb-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bubble.in .bb { animation: bub-in .4s var(--ease); }
.bubble.out { opacity: 0; }
@keyframes bub-in { from { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.05); } }
.pop { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; opacity: 0; }
.pop.bet { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; background: rgba(16, 8, 6, .62); border: 1px solid rgba(255, 200, 61, .4); color: var(--gold-2); backdrop-filter: blur(4px); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.pop.bet.red { border-color: rgba(255, 90, 80, .6); box-shadow: 0 0 16px rgba(255, 59, 59, .3); }
.pop.bet.blue { border-color: rgba(90, 160, 255, .6); box-shadow: 0 0 16px rgba(47, 140, 255, .3); }
.pop.bet.big { font-size: 15px; padding: 5px 13px; }
.pop.bet.mine { font-size: 16px; padding: 6px 14px; color: #221300; background: linear-gradient(180deg, #ffe08a, #ffc83d); border-color: #fff3c9; box-shadow: 0 0 30px rgba(255, 200, 61, .6); text-shadow: none; }
.pop.cbt { font-family: var(--display); font-weight: 900; font-size: 19px; color: #fff; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(40, 8, 0, .9), 0 0 18px rgba(0, 0, 0, .5); }
.pop.cbt.crit { font-size: 26px; color: #ffe08a; text-shadow: 0 3px 0 #6a1500, 0 0 26px rgba(255, 120, 20, .8); }
.pop.cbt.dodge { font-size: 14px; color: #cfe7ff; }
.pop.cbt.block { font-size: 14px; color: #e6ddd4; }
.pop.cbt.wind { font-size: 15px; color: var(--win); text-shadow: 0 2px 0 #06301a, 0 0 18px rgba(110, 231, 154, .7); }
.pop.cbt.stun { font-size: 12px; color: var(--gold-2); }
.pop.cbt.taunt { font-size: 13px; color: #ffd0ff; }

.slam { position: fixed; inset: 0; z-index: 19; display: grid; place-items: center; pointer-events: none; }
.slam span { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(64px, 11vw, 176px); letter-spacing: .02em; line-height: 1; transform: rotate(-4deg); opacity: 0;
  background: linear-gradient(180deg, #fff 8%, #ffe08a 40%, #ffb21a 65%, #ff5a1a 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 7px 0 rgba(50, 10, 0, .9)) drop-shadow(0 0 40px rgba(255, 140, 0, .55)); }
.slam.fight span { font-size: clamp(48px, 8vw, 120px); background-image: linear-gradient(180deg, #fff 10%, #ffe08a 55%, #ffb21a 95%); }
.slam.red span { background-image: linear-gradient(180deg, #fff 8%, #ffc2b9 38%, #ff3b3b 72%, #a8101c 98%); filter: drop-shadow(0 7px 0 rgba(60, 0, 0, .9)) drop-shadow(0 0 44px rgba(255, 59, 59, .6)); }
.slam.blue span { background-image: linear-gradient(180deg, #fff 8%, #c2dcff 38%, #2f8cff 72%, #0d47a8 98%); filter: drop-shadow(0 7px 0 rgba(0, 10, 50, .9)) drop-shadow(0 0 44px rgba(47, 140, 255, .6)); }
.slam.dec span { font-size: clamp(44px, 7.5vw, 112px); }
.slam.go span { animation: slam 1.3s var(--ease) forwards; }
@keyframes slam { 0% { transform: scale(2.3) rotate(-8deg); opacity: 0; } 14% { transform: scale(.94) rotate(-4deg); opacity: 1; } 22% { transform: scale(1.04) rotate(-4deg); } 30%, 76% { transform: scale(1) rotate(-4deg); opacity: 1; } 100% { transform: scale(1.1) rotate(-4deg); opacity: 0; } }

.banner { position: fixed; left: 50%; top: 24vh; transform: translateX(-50%); z-index: 20; text-align: center; pointer-events: none; width: min(900px, calc(100vw - 32px)); }
.banner.show { animation: banner var(--dur, 5s) var(--ease) forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 18px) scale(.97); } 9% { opacity: 1; transform: translate(-50%, 0) scale(1); } 86% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.b-eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.b-title { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 5vw, 66px); letter-spacing: .03em; text-transform: uppercase; margin-top: 8px; line-height: 1.05;
  background: linear-gradient(180deg, #fff7df 15%, #ffc83d 55%, #e0700a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 150, 20, .45)) drop-shadow(0 3px 0 rgba(40, 10, 0, .8)); }
.banner.red .b-title { background-image: linear-gradient(180deg, #fff 12%, #ffc2b9 45%, #ff3b3b 90%); filter: drop-shadow(0 6px 30px rgba(255, 59, 59, .45)) drop-shadow(0 3px 0 rgba(50, 0, 0, .8)); }
.banner.blue .b-title { background-image: linear-gradient(180deg, #fff 12%, #c2dcff 45%, #2f8cff 90%); filter: drop-shadow(0 6px 30px rgba(47, 140, 255, .45)) drop-shadow(0 3px 0 rgba(0, 10, 50, .8)); }
.banner.next .b-title { font-size: clamp(22px, 3.4vw, 44px); }
.b-sub { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-shadow: 0 2px 12px rgba(0, 0, 0, .85); }

.confetti { position: fixed; inset: 0; z-index: 21; pointer-events: none; overflow: hidden; }
.confetti .coin { position: absolute; top: -30px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd34d 40%, #c98a14 80%); box-shadow: 0 0 10px rgba(255, 200, 61, .6), inset 0 -2px 0 rgba(120, 60, 0, .4); animation: coin-fall 2s cubic-bezier(.3, .1, .6, 1) forwards; }
.confetti .coin.big { width: 24px; height: 24px; }
@keyframes coin-fall { 0% { transform: translate(0, 0) rotate(0) scaleX(1); opacity: 1; } 50% { transform: translate(calc(var(--rx) * .6), 55vh) rotate(calc(var(--rot) * .5)) scaleX(.3); } 100% { transform: translate(var(--rx), 112vh) rotate(var(--rot)) scaleX(1); opacity: .9; } }

.tip { position: fixed; z-index: 45; pointer-events: none; max-width: 280px; padding: 8px 11px; border-radius: 10px; background: rgba(16, 8, 6, .94); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.toasts { position: fixed; left: 50%; bottom: calc(var(--bet-h) + var(--gut) + 14px); transform: translateX(-50%); z-index: 44; display: grid; justify-items: center; gap: 8px; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
.toast { display: flex; align-items: center; gap: 9px; max-width: 100%; padding: 10px 14px; border-radius: 12px; background: rgba(16, 8, 6, .94); border: 1px solid var(--line-2); font-size: 12.8px; font-weight: 600; box-shadow: var(--shadow); animation: toast-in .35s var(--ease); transition: opacity .35s, transform .35s; }
.toast svg { width: 16px; height: 16px; color: var(--ink-3); }
.toast.good { border-color: rgba(110, 231, 154, .4); } .toast.good svg { color: var(--win); }
.toast.bad { border-color: rgba(255, 107, 90, .45); } .toast.bad svg { color: var(--loss); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.offline { position: fixed; left: 50%; top: calc(var(--below) - 6px); transform: translateX(-50%); z-index: 43; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(60, 10, 8, .9); border: 1px solid rgba(255, 107, 90, .5); color: #ffd0c8; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
.offline i { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); animation: blink 1s infinite; }

/* ───────────── modals */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--gut); background: rgba(8, 4, 2, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(560px, 100%); max-height: calc(100vh - 2 * var(--gut)); overflow-y: auto; padding: 26px 26px 22px; animation: sheet-in .35s var(--ease); scrollbar-width: thin; scrollbar-color: rgba(255, 190, 150, .2) transparent; }
@keyframes sheet-in { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.sheet h2 { font-family: var(--display); font-weight: 900; font-size: 22px; margin: 6px 0 12px; letter-spacing: .01em; }
.fine { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.fine a, .check a, .body a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(255, 200, 61, .4); }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field > span:first-child { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.field input { height: 42px; padding: 0 12px; border-radius: 11px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); outline: none; font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; min-width: 0; }
.field input:focus { border-color: rgba(255, 200, 61, .6); box-shadow: 0 0 0 3px rgba(255, 200, 61, .12); }
.field input.mono { font-size: 12.5px; }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row .amtbox { flex: 1; width: auto; }
.field-row .btn { flex: none; height: 42px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .3); transition: background .2s, border-color .2s; }
.check .box svg { width: 13px; height: 13px; color: #221300; opacity: 0; }
.check input:checked + .box { background: linear-gradient(180deg, #ffe08a, #ffc83d); border-color: transparent; }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid rgba(255, 200, 61, .7); outline-offset: 2px; }
.form-err { min-height: 18px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--loss); }
.auth { width: min(420px, 100%); text-align: left; }
.auth-logo { width: 64px; height: 64px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 4px 16px rgba(255, 70, 40, .45)); }
.auth h2 { text-align: center; }
.auth-seg { display: flex; width: 100%; margin-bottom: 4px; }
.auth-seg button { flex: 1; height: 32px; }
.auth .btn.wide { margin-top: 4px; }

.wallet { width: min(600px, 100%); }
.w-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-right: 40px; }
.w-bal { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.w-bal b { font-size: 32px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; letter-spacing: -.01em; text-shadow: 0 0 24px rgba(255, 200, 61, .35); }
.w-bal small { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.w-stats { display: flex; gap: 16px; }
.w-stats > div { display: grid; gap: 2px; text-align: right; }
.w-stats b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.w-seg { display: flex; width: 100%; margin: 16px 0 6px; }
.w-seg button { flex: 1; height: 34px; }
.w-pane { min-height: 280px; }
.dep { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 14px; }
.qr { width: 196px; height: 196px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 4px rgba(255, 200, 61, .25); }
.qr svg { width: 100%; height: 100%; display: block; }
.dep-info { min-width: 0; }
.addr { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 6px 6px 12px; border-radius: 11px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); min-width: 0; }
.addr .mono { flex: 1; min-width: 0; font-size: 12px; color: var(--ink); word-break: break-all; line-height: 1.45; }
.addr .mono.dim { color: var(--ink-4); }
.addr.big .mono { font-size: 13px; }
.dep-copy { margin: 12px 0 8px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.dep-watch { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(110, 231, 154, .08); border: 1px solid rgba(110, 231, 154, .25); color: var(--win); font-size: 11.5px; font-weight: 700; }
.dep-ca { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 4px 4px 10px; border-radius: 10px; background: rgba(255, 200, 61, .07); border: 1px solid rgba(255, 200, 61, .24); font-size: 12px; color: var(--ink-2); min-width: 0; }
.dep-ca[hidden] { display: none; }
.dc-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-t b { color: var(--gold-2); }
.dc-t .mono { font-size: 11.5px; color: var(--ink); }
.dep-off { display: grid; justify-items: center; text-align: center; gap: 10px; margin-top: 16px; padding: 30px 22px 28px; border-radius: 16px; border: 1px dashed rgba(255, 200, 61, .32);
  background: radial-gradient(420px 160px at 50% 0%, rgba(255, 200, 61, .12), transparent 70%), rgba(0, 0, 0, .18); }
.dep-off[hidden] { display: none; }
.do-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #ffe08a, #ffc83d); box-shadow: 0 0 0 5px rgba(255, 200, 61, .14), 0 10px 30px rgba(255, 170, 40, .35); }
.do-ico svg { width: 26px; height: 26px; color: #3a2200; }
.dep-off b { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.dep-off p { margin: 0; max-width: 400px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.dep-watch i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 8px var(--win); animation: blink 1.2s infinite; }
.lock-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .3); color: var(--gold-2); font-size: 12.5px; font-weight: 600; }
.lock-note svg { width: 15px; height: 15px; }
.wallet .list, .rooster .list, .fight .list { margin: 0 -12px; }

.rooster { width: min(620px, 100%); }
.r-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding-right: 36px; }
.r-crest { position: relative; width: 112px; height: 112px; }
.r-crest img { position: relative; width: 112px; height: 112px; z-index: 1; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.r-crest::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, var(--acc, #ffc83d), transparent); opacity: .45; filter: blur(8px); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .22; transform: scale(.92); } }
.r-title { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.r-title.champ { color: var(--gold); text-shadow: 0 0 12px rgba(255, 200, 61, .6); }
.rooster h2 { font-size: 26px; margin: 4px 0 6px; text-transform: uppercase; }
.r-persona { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.r-persona b { color: var(--gold-2); }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--ink-3); background: rgba(255, 220, 190, .05); border: 1px solid var(--line); text-transform: capitalize; }
.r-level { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 18px; }
.r-lv { font-family: var(--display); font-weight: 900; font-size: 14px; color: var(--gold-2); }
.xp { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .22); overflow: hidden; }
.xp i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #b87a0a, #ffc83d 70%, #fff3c9); box-shadow: 0 0 14px rgba(255, 200, 61, .6); transition: width .8s var(--ease); overflow: hidden; }
.xp i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transform: translateX(-100%); animation: sheen 2.4s ease-in-out infinite; }
.r-xpt { font-size: 11.5px; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.r-grid, .f-pools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.r-grid > div, .f-pools > div { padding: 9px 11px; display: grid; gap: 3px; min-width: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.r-grid b, .f-pools b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-grid b.gold, .f-pools b.gold { color: var(--gold-2); } .r-grid b.hot { color: #ffb27a; }
.f-pools b.red { color: var(--red-2); } .f-pools b.blue { color: var(--blue-2); }
.r-stats { display: grid; gap: 9px; margin-top: 16px; }
.rs { display: grid; grid-template-columns: 76px 1fr 30px; align-items: center; gap: 10px; cursor: help; }
.rs .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rs .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b87a0a, #ffc83d 70%, #fff3c9); box-shadow: 0 0 10px rgba(255, 200, 61, .45); }
.rs b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.fight { width: min(700px, 100%); }
.fight h2 { font-size: 20px; padding-right: 30px; }
.f-vs { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: stretch; gap: 8px; margin-top: 6px; }
.fv { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); cursor: pointer; transition: background .2s; min-width: 0; }
.fv:hover { background: rgba(255, 220, 190, .05); }
.fv.red { border-color: rgba(255, 90, 80, .35); } .fv.blue { border-color: rgba(90, 160, 255, .35); }
.fv.won { box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255, 200, 61, .25); }
.fv.lost { opacity: .7; }
.fv img { width: 54px; height: 54px; grid-row: span 2; }
.fv-id { min-width: 0; display: grid; gap: 2px; }
.fv-c { font-size: 9.5px; font-weight: 900; letter-spacing: .16em; }
.fv.red .fv-c { color: var(--red-2); } .fv.blue .fv-c { color: var(--blue-2); } .fv.won .fv-c { color: var(--gold-2); }
.fv-id b { font-family: var(--display); font-weight: 900; font-size: 13px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-id small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.fs { display: grid; justify-items: center; gap: 1px; padding: 5px 0; border-radius: 8px; background: rgba(255, 220, 190, .04); }
.fs span { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.fs b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fv-vs { display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 13px; color: var(--gold); }
.f-pools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fair-box { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px solid rgba(95, 224, 176, .28); background: linear-gradient(160deg, rgba(95, 224, 176, .07), rgba(0, 0, 0, .15)); }
.fair-head { display: flex; align-items: center; gap: 8px; color: var(--fair); font-size: 13px; }
.fair-head b { font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
.fair-copy { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.kv { display: grid; gap: 4px; margin-top: 10px; }
.kv > span:first-child { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.fair-box .btn.wide { margin-top: 14px; background: linear-gradient(180deg, #9ff2d0, #5fe0b0 55%, #2fb886); box-shadow: 0 4px 16px rgba(95, 224, 176, .25), inset 0 1px 0 rgba(255, 255, 255, .55); color: #04241a; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 11px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); animation: row-in .4s var(--ease) backwards; }
.checks li:nth-child(2) { animation-delay: .12s; } .checks li:nth-child(3) { animation-delay: .24s; }
.checks li > svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; }
.checks li.ok > svg { color: #04241a; background: var(--fair); box-shadow: 0 0 14px rgba(95, 224, 176, .55); }
.checks li.bad > svg { color: #fff; background: var(--loss); }
.checks li.wait > svg { color: var(--ink-3); }
.checks b { display: block; font-size: 13px; }
.checks li.ok b { color: var(--fair); }
.checks span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; word-break: break-all; }
.checks.allok { filter: drop-shadow(0 0 20px rgba(95, 224, 176, .15)); }

.help { width: min(760px, 100%); padding: 30px 32px 26px; }
.help h2 { font-size: 28px; }
.lede { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 14px; background: rgba(255, 220, 190, .035); border: 1px solid var(--line); }
.si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 59, 59, .25), rgba(47, 140, 255, .12)); color: #fff; border: 1px solid var(--line-2); }
.si.gold { background: linear-gradient(160deg, rgba(255, 200, 61, .3), rgba(255, 200, 61, .06)); color: var(--gold-2); border-color: rgba(255, 200, 61, .3); }
.si svg { width: 20px; height: 20px; }
.steps h3 { margin: 2px 0 4px; font-size: 14.5px; font-weight: 700; }
.steps p, .body { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.h3 { margin: 24px 0 10px; font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.rake-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; }
.rk.burn, .dot.burn { background: linear-gradient(90deg, #ff5a1a, #ffae6a); }
.rk.hold, .dot.hold { background: linear-gradient(90deg, #b87a0a, #ffc83d); }
.rk.own, .dot.own { background: linear-gradient(90deg, #7a3cff, #b98cff); }
.rk.jack, .dot.jack { background: linear-gradient(90deg, #1f9e6e, #5fe0b0); }
.rake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rake-grid > div { display: grid; grid-template-columns: 10px auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.rake-grid .dot { width: 10px; height: 10px; border-radius: 3px; }
.rake-grid b { font-weight: 800; font-size: 14px; }
.rake-grid span:not(.dot) { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.rake-grid em { grid-column: 2 / -1; font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold-2); margin-top: 4px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.h-pre { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.45; color: var(--gold-2); background: rgba(255, 200, 61, .08); border: 1px solid rgba(255, 200, 61, .3); }
.h-pre[hidden] { display: none; }
.h-pre svg { width: 16px; height: 16px; flex: none; color: #ffae6a; }
.rk-log { display: inline-flex; align-items: center; gap: 4px; color: #ffae6a; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 174, 106, .4); }
.rk-log svg { width: 10px; height: 10px; }
.rk-log[hidden] { display: none; }
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rm { position: relative; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); min-width: 0; }
.rm-k { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-3); }
.rm-k svg { width: 12px; height: 12px; }
.rm b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 900; font-size: 12.5px; }
.rm p { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.rm.now { border-color: rgba(255, 200, 61, .5); background: linear-gradient(160deg, rgba(255, 200, 61, .14), rgba(255, 59, 59, .06)); box-shadow: 0 0 24px rgba(255, 200, 61, .12); }
.rm.now .rm-k { color: var(--gold-2); }
.rm.lock { opacity: .72; }
.rm.lock::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 8px, transparent 8px 16px); pointer-events: none; }
.phase-note { margin: 16px 0 0; padding: 10px 12px; border-radius: 11px; background: rgba(255, 200, 61, .08); border: 1px solid rgba(255, 200, 61, .25); color: var(--gold-2); font-size: 12.5px; }
.h-ca { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 12px; border-radius: 11px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.h-ca .mono { flex: 1; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────────── narrower screens */
/* the top bar gives up words before numbers: labels → CA text → wordmark → stat sub-lines → one stat → all stats */
@media (max-width: 1680px) {
  .help-btn { width: 34px; padding: 0; justify-content: center; }
  .help-btn span, .cam button span, .tb-brand .viewers span { display: none; }
  .cam button { padding: 0 8px; }
}
@media (max-width: 1520px) {
  .tick .mono { display: none; }
  .tick { padding-right: 5px; }
  .tick.live svg { display: none; }
  .acct-in .btn.ghost span { display: none; }
  .acct-in .btn.ghost { width: 34px; padding: 0; }
}
@media (max-width: 1440px) { :root { --lw: 280px; --rw: 330px; } }
@media (max-width: 1180px) {
  :root { --lw: 0px; --rw: 320px; }
  .tape-panel { display: none; }
  .fh, .bet { left: var(--gut); }
  .tabs .t-tape { display: inline-flex; }
  .brand-word { display: none; }
  .stat .s { display: none; }
  .stat .v { font-size: 15px; }
  .tb-stats { max-width: 440px; }
}
@media (max-width: 1040px) {
  .stat:first-child { display: none; }
  .tb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-in .btn span { display: none; }
  .acct-in .btn { width: 34px; padding: 0; }
}
@media (max-width: 940px) { .tb-stats { display: none; } .topbar { justify-content: space-between; } }

/* phones: the arena on top, the fight header over it, the bet slip pinned to the bottom, the rail as tabs in between */
@media (max-width: 820px) {
  :root { --gut: 8px; --top: 6px; --tb-h: 46px; --canvas-h: 45vh; --strip-h: 40px; --bet-h: 176px; }
  body { --below: calc(var(--top) + var(--tb-h) + 6px); }
  body.testmode-on { --top: 32px; }
  .testmode { height: 24px; font-size: 10.5px; }
  .testmode span { overflow: hidden; text-overflow: ellipsis; }
  #stage, .arena-bg { height: var(--canvas-h); }
  .topbar { gap: 6px; }
  .tb-brand { padding: 0 8px 0 6px; gap: 8px; border-radius: 13px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-word { display: inline; font-size: 13px; letter-spacing: .1em; }
  .viewers { display: none; }
  .tick { height: 26px; }
  .tb-ctl { padding: 0 4px; gap: 2px; border-radius: 13px; }
  .tb-ctl .cam, .tb-sep { display: none; }
  .icon-btn { width: 32px; height: 32px; }
  .btn { height: 32px; padding: 0 10px; font-size: 12px; }
  .acct-in { gap: 4px; }
  .acct-in .btn.ghost { display: none; }
  .bal { height: 34px; min-width: 0; padding: 0 9px; }
  .bal-k { display: none; }
  .bal-v b { font-size: 13px; }
  .me-btn { width: 32px; height: 32px; }
  .tb-stats { display: grid; position: fixed; left: 0; right: 0; top: var(--canvas-h); height: var(--strip-h); max-width: none; margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 11; }
  .stat:first-child { display: grid; }
  .stat { padding: 0 6px 0 8px; gap: 0; }
  .stat .k { font-size: 8px; letter-spacing: .04em; }
  .stat .v { font-size: 13px; }
  .stat .s { display: none; }
  .stat + .stat::before { top: 9px; bottom: 9px; }
  .fh { left: var(--gut); right: var(--gut); top: var(--below); }
  .fh-card { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); grid-template-rows: 36px 12px; column-gap: 6px; row-gap: 7px; padding: 8px 9px; border-radius: 13px; }
  .fh-crest, .fh-crest img { width: 36px; height: 36px; }
  .fh-side { gap: 7px; }
  .fh-corner, .fh-meta .stk { display: none; }
  .fh-name { font-size: 11.5px; }
  .fh-meta { height: 15px; gap: 4px; }
  .lv { height: 15px; min-width: 0; font-size: 8.5px; padding: 0 4px; }
  .rec { font-size: 10.5px; min-width: 0; }
  .fh-no { font-size: 8px; letter-spacing: .1em; }
  .fh-vs { font-size: 17px; }
  .fair { padding: 0 5px; height: 17px; }
  .fair span { display: none; }
  .hp { height: 12px; border-radius: 5px; }
  .hp i { top: 1px; bottom: 1px; left: 1px; right: 1px; border-radius: 4px; }
  .hp-v { font-size: 8.5px; }
  .hp.red .hp-v { left: 5px; } .hp.blue .hp-v { right: 5px; }
  .round { font-size: 10.5px; }
  .phase { width: 236px; height: 26px; margin-top: 5px; gap: 8px; padding: 0 12px; }
  .ph-k { font-size: 9.5px; letter-spacing: .12em; }
  .ph-v { font-size: 13px; }
  .phase.decided .ph-k { font-size: 12px; }
  .rail { left: 0; right: 0; width: auto; top: calc(var(--canvas-h) + var(--strip-h)); bottom: calc(var(--bet-h) + env(safe-area-inset-bottom, 0px)); border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .tabs { padding: 5px; }
  .tabs button { font-size: 10px; letter-spacing: .04em; height: 30px; gap: 4px; }
  .bet { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; height: calc(var(--bet-h) + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; border-bottom: 0; padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
    grid-template-rows: 66px 12px 38px 14px; gap: 7px; z-index: 12; }
  .bet-sides { gap: 8px; }
  .side { grid-template-rows: 15px 26px 14px; padding: 0 10px; border-radius: 11px; }
  .sd-cta { display: none; }
  .sd-tag { font-size: 9px; letter-spacing: .12em; }
  .sd-name { font-size: 10.5px; }
  .sd-mult { font-size: 21px; line-height: 26px; }
  .sd-foot { font-size: 10px; gap: 6px; }
  .split { grid-template-columns: 30px 1fr 30px; font-size: 10px; gap: 6px; }
  .sp-bar { height: 6px; }
  .amtbox { width: 130px; height: 38px; padding: 0 8px; gap: 4px; }
  .amtbox input { font-size: 14px; }
  .amtbox span { font-size: 10px; }
  .chips { gap: 4px; }
  .chips button { height: 32px; font-size: 11px; border-radius: 8px; }
  .ba-signin .btn.wide, .ba-closed, .ba-result { height: 38px; }
  .ba-closed { font-size: 11.5px; }
  .ba-pre { height: 38px; font-size: 11.5px; gap: 7px; padding: 0 10px; }
  .br-v { font-size: 16px; }
  .br-s { display: none; }
  .bet-foot { font-size: 10.5px; gap: 6px; }
  .bf-k { display: none; }
  .row { height: 52px; }
  .toasts { bottom: calc(var(--bet-h) + 10px); }
  .offline { top: calc(var(--canvas-h) + var(--strip-h) + 8px); }
  .banner { top: 15vh; }
  .b-title { font-size: clamp(22px, 7.5vw, 34px); }
  .b-sub { font-size: 12px; }
  .b-eyebrow { font-size: 10px; letter-spacing: .2em; }
  .slam span { font-size: clamp(48px, 17vw, 90px); }
  .slam { place-items: start center; padding-top: 16vh; }
  .modal { padding: 0; place-items: end center; }
  .sheet { width: 100% !important; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .help { padding: 22px 16px; }
  .dep { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dep-info { width: 100%; }
  .qr { width: 176px; height: 176px; }
  .w-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .w-stats > div { text-align: left; }
  .r-head { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .r-crest, .r-crest img { width: 84px; height: 84px; }
  .rooster h2 { font-size: 20px; }
  .r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-vs { grid-template-columns: 1fr; }
  .fv-vs { display: none; }
  .f-pools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rake-grid { grid-template-columns: 1fr; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-menu { right: var(--gut); }
}
@media (max-width: 560px) { .brand-word { display: none; } }
@media (max-width: 420px) {
  .chips[data-n="6"] button:first-child { display: none; }
  .chips[data-n="6"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 820px) and (max-height: 700px) { :root { --canvas-h: 40vh; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confetti { display: none; }
}

/* ───────────── plain pages (terms) */
html.page, body.page { overflow: auto; height: auto; min-height: 100%; }
body.page .arena-bg { position: fixed; }
.doc { position: relative; z-index: 1; width: min(820px, 100%); margin: 0 auto; padding: 28px var(--gut) 60px; }
.doc-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px 4px; }
.doc-brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 10px rgba(255, 70, 40, .45)); }
.doc-sheet { width: 100%; max-height: none; overflow: visible; padding: 32px 34px 30px; animation: none; }
.doc-sheet h1 { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4vw, 34px); margin: 8px 0 12px; letter-spacing: .01em; }
.doc-sheet h2 { font-size: 15px; margin: 26px 0 8px; letter-spacing: .02em; }
.doc-sheet p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.doc-sheet p a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(255, 200, 61, .4); }
.doc-sheet .rg { padding: 12px 14px; border-radius: 12px; background: rgba(95, 224, 176, .07); border: 1px solid rgba(95, 224, 176, .25); color: var(--ink); }
.doc-sheet .btn { margin-top: 20px; }
@media (max-width: 820px) { .doc-sheet { padding: 22px 16px; border-radius: 18px; } .page .arena-bg { height: 100vh; } }

/* ───────────── launch kit header bits: CA slot (kit ids), X button, title fights */
.ca-slot { display: inline-flex; }
.tick #t-ca-copy { display: inline-grid; place-items: center; font-style: normal; }
.tick:not(.live) #t-ca-copy, .tick:not(.live) .mono { display: none; }
.tick:not(.live) { padding-right: 5px; }
.xbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--ink-1, #f3ece4); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); transition: background .2s, transform .2s; }
.xbtn svg { width: 13px; height: 13px; }
.xbtn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.xbtn[hidden] { display: none; }
.fh.title .fh-no { color: var(--gold-2); text-shadow: 0 0 12px rgba(255, 200, 61, .55); }
.fh.title .fh-card { box-shadow: 0 0 0 1px rgba(255, 200, 61, .45), 0 0 38px rgba(255, 200, 61, .18), var(--shadow, 0 20px 60px rgba(0, 0, 0, .5)); }
.fh.title .fh-card::after { background: linear-gradient(180deg, transparent, rgba(255, 200, 61, .7), transparent); }
img[data-kit] { border-radius: 50%; object-fit: cover; }
