/* SPDX-License-Identifier: Apache-2.0 */
:root {
  --bg: #07080d;
  --bg2: #0e1018;
  --panel: #12141f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f7;
  --muted: #9aa0b8;
  --gold: #ffc400;
  --purple: #8b5cf6;
  --pyth: #e6dafe;
  --live: #22e584;
  --sim: #ffb020;
  --danger: #ff4d6d;
  --radius: 14px;
  --display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 196, 0, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.45;
}
[hidden] { display: none !important; }
a { color: var(--pyth); }
code, .mono { font-family: var(--mono); font-size: 0.82em; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px clamp(14px, 3vw, 32px);
  background: rgba(7, 8, 13, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { font-size: 28px; color: var(--gold); text-shadow: 0 0 18px rgba(255, 196, 0, 0.6); }
.brand-name { font-family: var(--display); font-size: 30px; letter-spacing: 2px; line-height: 1; }
.brand-name span { color: var(--gold); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.badge-idle { color: var(--muted); }
.badge-live { color: #062; background: var(--live); box-shadow: 0 0 16px rgba(34, 229, 132, 0.45); }
.badge-live::before { content: "● "; animation: blink 1.2s infinite; }
.badge-sim { color: #1a1000; background: var(--sim); }
.badge-score { color: #fff; background: var(--purple); }
.badge-sim { background: repeating-linear-gradient(135deg, var(--sim) 0 10px, #ffc757 10px 20px); }
@keyframes blink { 50% { opacity: 0.2; } }

main { padding: clamp(12px, 2.5vw, 28px); max-width: 1500px; margin: 0 auto; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2vw, 22px); }
.section-title { font-family: var(--display); font-size: 30px; letter-spacing: 1.5px; margin: 0 0 12px; font-weight: 400; }
.section-title.sm { font-size: 22px; margin-bottom: 8px; }
.mini-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 14px 0 6px; }
.help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ---------- buttons & inputs ---------- */
.btn { font: inherit; font-weight: 700; border-radius: 10px; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer; color: var(--text); background: rgba(255,255,255,0.05); transition: transform .12s, background .2s, box-shadow .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,0.1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--gold), #ff8a00); color: #140d00; border: 0; box-shadow: 0 6px 24px rgba(255, 170, 0, 0.3); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffd640, #ff9a1a); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-xl { font-size: 18px; padding: 14px 22px; font-family: var(--display); letter-spacing: 1.5px; font-weight: 400; font-size: 24px; }
input, select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input[type="range"] { padding: 0; accent-color: var(--gold); }
label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
output { color: var(--gold); font-weight: 700; }

/* ---------- setup ---------- */
.setup { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 0.92; margin: 6px 0 16px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), #ff7a00 50%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--gold); margin: 0; font-weight: 800; }
.lede { color: #c9cde0; font-size: 16px; max-width: 60ch; }
.setup-form { display: flex; flex-direction: column; gap: 14px; }
.field { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; }
.field legend { padding: 0 6px; font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.row { display: flex; flex-direction: column; gap: 6px; }
.row label { flex-direction: row; }
.row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 12px; cursor: pointer; color: var(--text); font: inherit; }
.choice[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255,196,0,0.18); }
.choice strong { display: block; font-size: 15px; }
.choice span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.choice .chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.chip { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.06); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- seeding ---------- */
.seeding { margin-top: 16px; }
.commit-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.commit-steps li { display: grid; grid-template-columns: 290px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); opacity: 0.35; transition: opacity .4s; }
.commit-steps li.on { opacity: 1; border-color: rgba(139, 92, 246, 0.5); }
.commit-steps li.ok code::after { content: "  ✓ verified"; color: var(--live); font-weight: 700; }
.step-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--pyth); }
.seed-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.seed-list li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); animation: pop .45s both; }
@keyframes pop { from { transform: scale(.6) translateY(12px); opacity: 0; } }

/* ---------- token badge ---------- */
.tok { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 10px; color: #0b0b0b; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25); }
.tok.lg { width: 64px; height: 64px; font-size: 16px; }
.seed { font-family: var(--display); font-size: 18px; color: var(--muted); min-width: 20px; }

/* ---------- arena ---------- */
.arena { margin-bottom: 18px; border-radius: 18px; padding: clamp(12px, 2vw, 22px); background: linear-gradient(180deg, #151829, #0b0d16); border: 1px solid rgba(139, 92, 246, 0.25); box-shadow: 0 20px 60px rgba(0,0,0,0.5); position: relative; overflow: hidden; }
.arena.ot { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,196,0,.25), 0 20px 60px rgba(0,0,0,.5); }
.arena.sd { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(255,77,109,.35), 0 20px 60px rgba(0,0,0,.5); }
.arena { scroll-margin-top: 80px; }
.scorebug { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-round { font-family: var(--display); font-size: 22px; letter-spacing: 1.5px; background: var(--purple); color: #fff; padding: 2px 12px; border-radius: 6px; }
.sb-title { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; flex: 1; }
.sb-phase { font-weight: 800; letter-spacing: 1.5px; font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.phase-live { background: var(--live); color: #032; }
.phase-ot { background: var(--gold); color: #1a1000; animation: blink .8s infinite; }
.phase-sd { background: var(--danger); color: #fff; animation: blink .5s infinite; }
.phase-final { background: #fff; color: #000; }
.sb-clock { font-family: var(--display); font-size: 40px; line-height: 1; min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.fighters { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.fighter { --c: #fff; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%), var(--bg2); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: transform .3s, box-shadow .3s; }
.fighter.right { grid-template-columns: 1fr auto; text-align: right; background: linear-gradient(270deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%), var(--bg2); }
.fighter.right .tok { order: 2; }
.fighter.leading { box-shadow: 0 0 0 2px var(--c), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-2px); }
.fighter.winner { box-shadow: 0 0 0 3px var(--gold), 0 0 40px rgba(255,196,0,.45); }
.fighter.loser { opacity: 0.45; filter: grayscale(.6); }
.f-name { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); letter-spacing: 1px; line-height: 1; }
.f-sub { font-size: 12px; color: var(--muted); }
.f-pct { font-family: var(--display); font-size: clamp(30px, 4.5vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.f-pct.up { color: var(--live); }
.f-pct.down { color: var(--danger); }
.f-price { font-family: var(--mono); font-size: 13px; color: #cfd3e6; }
.shield { margin-top: 6px; height: 8px; border-radius: 6px; background: rgba(255,255,255,0.07); overflow: hidden; }
.shield > i { display: block; height: 100%; background: linear-gradient(90deg, var(--pyth), var(--purple)); border-radius: 6px; transition: width .3s; }
.fighter.right .shield > i { margin-left: auto; }
.shield-l { font-size: 11px; color: var(--muted); margin-top: 3px; }
.versus { display: grid; place-items: center; align-content: center; gap: 6px; min-width: 110px; }
.vs { font-family: var(--display); font-size: 46px; color: var(--gold); text-shadow: 0 0 24px rgba(255,196,0,.5); }
.ref-call { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: center; max-width: 140px; }
.chart-wrap { margin-top: 14px; height: clamp(220px, 32vw, 340px); background: rgba(0,0,0,0.25); border-radius: 12px; border: 1px solid var(--line); }
.chart-wrap canvas, .replay-chart canvas { width: 100%; height: 100%; display: block; }
.ref-meter { margin-top: 12px; }
.rm-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.rm-label strong { color: var(--text); font-family: var(--mono); }
.rm-bar { position: relative; height: 12px; border-radius: 8px; background: rgba(255,255,255,0.06); overflow: hidden; }
.rm-band { position: absolute; inset: 0 auto 0 0; background: rgba(230, 218, 254, 0.25); border-right: 2px solid var(--pyth); transition: width .3s; }
.rm-gap { position: absolute; top: 3px; bottom: 3px; left: 0; background: var(--gold); border-radius: 6px; transition: width .3s; }
.sd-box, .champ-box { margin-top: 14px; padding: 16px; border-radius: 12px; background: rgba(255, 77, 109, 0.08); border: 1px solid rgba(255,77,109,.4); }
.champ-box { background: rgba(255,196,0,.08); border-color: rgba(255,196,0,.5); text-align: center; }
.champ-box h3 { font-family: var(--display); font-size: clamp(40px, 7vw, 80px); margin: 6px 0; font-weight: 400; letter-spacing: 2px; color: var(--gold); }
.coin { width: 90px; height: 90px; border-radius: 50%; margin: 6px auto; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: #000; background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold) 55%, #b07a00); animation: flip 0.35s linear infinite; }
.coin.stop { animation: none; }
@keyframes flip { 50% { transform: rotateY(90deg); } }
.sd-grid { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 10px; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); word-break: break-all; }

/* ---------- layout grid ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.grid > .bracket-panel:only-child { grid-column: 1 / -1; }
.side { display: grid; gap: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.src-line { font-size: 12px; color: var(--muted); }

/* ---------- bracket ---------- */
.bracket-scroll { overflow-x: auto; padding-bottom: 6px; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 18px; min-width: 720px; }
.round { display: flex; flex-direction: column; }
.round h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 0 0 8px; text-align: center; }
.round-body { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 10px; }
.bm { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.bm.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(255,196,0,.3); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px var(--gold), 0 0 6px rgba(255,196,0,.2); } }
.bm .tag { margin-left: auto; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px; letter-spacing: .5px; }
.tag.ot { background: var(--gold); color: #000; }
.tag.sd { background: var(--danger); color: #fff; }
.slot { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; min-height: 38px; }
.slot + .slot { border-top: 1px solid var(--line); }
.slot .tok { width: 22px; height: 22px; font-size: 7px; }
.slot .seed { font-size: 14px; min-width: 16px; }
.slot .nm { font-weight: 700; flex: 1; }
.slot .pc { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.slot.win { background: linear-gradient(90deg, rgba(255,196,0,.18), transparent); }
.slot.win .nm::after { content: " ▸"; color: var(--gold); }
.slot.lose { opacity: .4; }
.slot.empty .nm { color: var(--muted); font-weight: 400; }
button.slot { cursor: pointer; }
button.slot:hover:not(:disabled) { background: rgba(255,255,255,.06); }
button.slot:disabled { cursor: default; }
.slot.picked { background: linear-gradient(90deg, rgba(139,92,246,.35), transparent); box-shadow: inset 3px 0 0 var(--purple); }
.mypick { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: rgba(139,92,246,.3); color: var(--pyth); }
.mypick.ok { background: rgba(34,229,132,.25); color: var(--live); }
.mypick.bad { background: rgba(255,77,109,.2); color: var(--danger); text-decoration: line-through; }
.pick-bar { border: 1px dashed rgba(139,92,246,.5); background: rgba(139,92,246,.07); padding: 12px; border-radius: 12px; margin-bottom: 14px; }
.pick-help { margin: 0 0 10px; font-size: 14px; }
.pick-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.name-label { min-width: 160px; }
.pick-count { font-weight: 800; color: var(--pyth); padding: 8px 4px; }

/* ---------- side ---------- */
.my-pick { font-size: 14px; }
.my-pick .big { font-family: var(--display); font-size: 40px; color: var(--gold); line-height: 1; }
.leaderboard { margin: 0; padding-left: 20px; font-size: 13px; }
.leaderboard li { padding: 3px 0; }
.leaderboard li span { float: right; font-family: var(--mono); color: var(--gold); }
.prize .big { font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1; }
.prize small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.vault, .ent-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.vault button { width: 100%; text-align: left; font: inherit; font-size: 12px; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.vault button:hover { border-color: var(--gold); }
.ent-log li { font-size: 11px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.ent-log b { color: var(--pyth); }

/* ---------- banner ---------- */
.banner { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; z-index: 60; opacity: 0; }
.banner.show { animation: banner 1.9s ease-out both; }
.banner span { font-family: var(--display); font-size: clamp(64px, 14vw, 200px); letter-spacing: 6px; line-height: .9; color: #fff; text-shadow: 0 0 40px currentColor; transform: skewX(-8deg); display: block; }
.banner small { display: block; font-weight: 800; letter-spacing: 3px; font-size: clamp(12px, 2vw, 18px); color: #fff; margin-top: 8px; text-transform: uppercase; }
.banner.ot span { color: var(--gold); }
.banner.sd span { color: var(--danger); }
.banner.win span { color: var(--live); }
.banner.champ span { color: var(--gold); }
.banner::before { content: ""; position: absolute; inset: 35% -10%; background: linear-gradient(90deg, transparent, rgba(0,0,0,.85) 20%, rgba(0,0,0,.85) 80%, transparent); transform: skewY(-3deg); z-index: -1; }
@keyframes banner {
  0% { opacity: 0; transform: scale(1.4); }
  12% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(.96); }
}

/* ---------- replay dialog ---------- */
.replay { width: min(860px, 94vw); max-height: 92vh; padding: 0; border: 1px solid rgba(255,196,0,.5); border-radius: 18px; background: #0d0f19; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.replay::backdrop { background: rgba(3, 4, 8, 0.75); backdrop-filter: blur(3px); }
.replay-inner { padding: 18px 20px; }
.replay-head { display: flex; align-items: center; gap: 12px; }
.replay-head h2 { margin: 0; flex: 1; font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 1px; }
.replay-tag { background: var(--danger); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: 1.5px; padding: 4px 8px; border-radius: 4px; }
.verdict { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }
.verdict strong { color: var(--gold); }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th, .rtable td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.rtable th:first-child, .rtable td:first-child { text-align: left; }
.rtable th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.rtable td.mono { font-family: var(--mono); font-size: 12px; }
.replay-chart { height: 220px; margin-top: 12px; background: rgba(0,0,0,.25); border-radius: 12px; border: 1px solid var(--line); }
.replay-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.replay-proof { margin-top: 10px; font-size: 12px; }
.proof-row { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 6px; background: var(--bg2); }
.src-pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; }
.src-pill.live { background: var(--live); color: #032; }
.src-pill.sim { background: var(--sim); color: #1a1000; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.foot { max-width: 1500px; margin: 10px auto 30px; padding: 0 clamp(12px, 2.5vw, 28px); color: var(--muted); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .setup { grid-template-columns: 1fr; }
  .commit-steps li { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { position: static; }
  .brand-name { font-size: 24px; }
  .fighters { grid-template-columns: 1fr; }
  .fighter.right { grid-template-columns: auto 1fr; text-align: left; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%), var(--bg2); }
  .fighter.right .tok { order: 0; }
  .fighter.right .shield > i { margin-left: 0; }
  .versus { grid-auto-flow: column; min-width: 0; }
  .vs { font-size: 30px; }
  .sb-clock { font-size: 30px; }
  .kv { grid-template-columns: 1fr; }
  .rtable { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .banner.show { animation: none; opacity: 1; }
}
.bm-pick { display: flex; align-items: center; gap: 6px; font-size: 10px; padding: 3px 9px; border-top: 1px solid var(--line); color: var(--muted); min-height: 22px; }
