/* El Concursito: a TV game-show stage (velvet curtains, spotlights, marquee bulbs) on casino felt. Always night. */
:root {
  color-scheme: dark;
  --bg0: #12081f; --bg1: #2a1245; --ink: #fff6e6; --muted: #cbb8e0; --line: rgba(255,255,255,.14);
  --gold: #f6c453; --gold-d: #b4831c; --gold-l: #ffe08a; --coral: #ff5a3c; --green: #1f9a55; --red: #c8203a;
  --felt: #17905a; --felt-d: #0b5134; --wood: #6b3d16; --card: #fff; --card-ink: #1b1030;
  --spring: cubic-bezier(.3,.7,.4,1.6);
  --f-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 16px/1.45 var(--f-body); -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, #4a1f6e 0%, #241038 48%, var(--bg0) 100%) fixed, var(--bg0);
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
#app { max-width: 1120px; margin: 0 auto; padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 3px; border-radius: 12px; }
svg { display: block; }

/* ---------- top bar */
.top { display: flex; align-items: center; gap: 8px; min-height: 52px; padding-top: env(safe-area-inset-top, 0px); }
.back { text-decoration: none; font: 700 14px var(--f-body); padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.08); white-space: nowrap; }
.back:hover { background: rgba(255,255,255,.16); }
.brand { font: 800 18px var(--f-display); color: var(--gold); letter-spacing: -.01em; white-space: nowrap; }
.grow { flex: 1; }
.code-chip { background: var(--gold); color: #2a1405; font: 700 13px var(--f-body); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.code-chip b { font: 800 15px var(--f-display); letter-spacing: .08em; }
.icon { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.icon svg { width: 20px; height: 20px; }
.icon:hover { background: rgba(255,255,255,.16); }
@media (max-width: 520px) { .brand { display: none; } }

/* ---------- buttons + fields */
.btn { font: 800 15px/1.1 var(--f-display); border: 0; border-radius: 14px; padding: 12px 14px; min-height: 48px; cursor: pointer; color: var(--card-ink); background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .12s, filter .12s; }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn:disabled { opacity: .42; cursor: default; }
.btn.gold { background: linear-gradient(var(--gold-l), var(--gold) 55%, #d9a032); color: #2a1405; }
.btn.ghost { background: rgba(255,255,255,.1); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.btn.allin { background: linear-gradient(#ff8a5c, var(--coral)); color: #fff; }
.btn.big { display: block; margin: 18px auto 0; font-size: 21px; padding: 16px 30px; }
.btn.sm { min-height: 36px; padding: 8px 12px; font-size: 13px; margin-top: 8px; }
.fld { display: block; }
.fld span { display: block; font: 700 12px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.fld input { font: 700 18px var(--f-body); padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.22); background: rgba(0,0,0,.28); color: var(--ink); width: 190px; max-width: 100%; }
.fld input:focus { border-color: var(--gold); outline: none; }
.fld input::placeholder { color: rgba(255,255,255,.35); }

/* ---------- logo + intro */
.logo { font: 800 clamp(48px, 13vw, 88px)/.92 var(--f-display); letter-spacing: -.035em; margin: 0; background: linear-gradient(#fff6c8, var(--gold) 46%, #c4841c 54%, var(--gold-l)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #7a1626) drop-shadow(0 0 22px rgba(246,196,83,.35)); }
.logo small { display: block; font-size: .3em; letter-spacing: .4em; text-transform: uppercase; margin-bottom: .2em; padding-left: .4em; }
.logo.sm { font-size: clamp(38px, 9vw, 56px); text-align: center; margin: 6px 0 14px; }
.marquee { position: relative; text-align: center; padding: 30px 18px 24px; margin: 6px 0 18px; border-radius: 26px; background: radial-gradient(ellipse at 50% 0%, #6a2a9c, var(--bg1) 72%); box-shadow: 0 0 0 3px var(--gold), 0 0 60px rgba(246,196,83,.22); overflow: hidden; }
.bulbs, .qcard::before { position: absolute; inset: 7px; border-radius: 20px; border: 5px dotted #ffe9a8; opacity: .85; pointer-events: none; animation: blink 1.1s steps(2) infinite; }
.tag { margin: 12px auto 0; max-width: 34ch; color: #f3e6ff; font: 500 16px/1.4 var(--f-body); }
.tito-intro { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 18px; }
.tito-intro .bubble { max-width: 30ch; }
.whoami { display: flex; align-items: flex-end; justify-content: center; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.whoami .charlink { flex-basis: 100%; text-align: center; padding: 0; }
.me-av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--gold); flex: none; }
.me-av svg { width: 100%; height: 100%; }
.charlink { color: var(--gold); font: 700 14px var(--f-body); padding-bottom: 12px; }
.modes { display: grid; gap: 12px; }
.mode { text-align: left; padding: 16px 18px; border-radius: 18px; border: 0; cursor: pointer; color: var(--card-ink); box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: transform .2s var(--spring); }
.mode b { display: block; font: 800 22px/1.1 var(--f-display); letter-spacing: -.01em; }
.mode span { display: block; font: 500 14px/1.35 var(--f-body); color: #4f3f63; margin-top: 3px; }
.mode:hover { transform: translateY(-3px) rotate(-.4deg); }
.mode:active { transform: translateY(2px); }
.m-solo { background: linear-gradient(135deg, var(--gold-l), var(--gold)); }
.m-host { background: linear-gradient(135deg, #b4f5d6, #3ccf8e); }
.m-tv { background: linear-gradient(135deg, #ffd1e2, #ff6fa8); }
.join { display: flex; gap: 10px; align-items: flex-end; justify-content: center; flex-wrap: wrap; margin: 20px 0 8px; }
.join input { width: 130px; text-transform: uppercase; letter-spacing: .28em; font: 800 22px var(--f-display); text-align: center; padding-left: 18px; }
.fine { text-align: center; font: 500 13px var(--f-body); color: var(--muted); margin: 14px 0 0; }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- the stage */
.stage {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 30px; border-radius: 22px; min-height: 100px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 90% at 50% 125%, rgba(246,196,83,.3), transparent 62%), linear-gradient(#2d1253, #1a0b30);
  box-shadow: inset 0 0 0 2px rgba(246,196,83,.4), 0 14px 30px rgba(0,0,0,.35);
}
.stage::before, .stage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 2; background: repeating-linear-gradient(90deg, #7a1626 0 6px, #b52a40 6px 11px, #8e1b2e 11px 16px); box-shadow: 0 0 14px rgba(0,0,0,.6); }
.stage::before { left: 0; border-radius: 0 0 18px 0; }
.stage::after { right: 0; border-radius: 0 0 0 18px; }
.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beams i { position: absolute; top: -30px; width: 46%; height: 260%; left: calc(var(--x, 10%) - 23%); transform-origin: 50% 0; background: conic-gradient(from 180deg at 50% 0%, transparent 0 166deg, rgba(255,240,200,.16) 173deg 187deg, transparent 194deg); animation: sweep 7s ease-in-out infinite alternate; }
.beams i:nth-child(1) { --x: 18%; }
.beams i:nth-child(2) { --x: 50%; animation-duration: 9s; animation-delay: -3s; }
.beams i:nth-child(3) { --x: 82%; animation-duration: 8s; animation-direction: alternate-reverse; }
.host { grid-column: 1 / 3; display: flex; align-items: center; gap: 12px; min-width: 0; }
.tito { position: relative; width: 64px; height: 64px; flex: none; animation: bob 3s ease-in-out infinite; }
.tito-face { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(246,196,83,.5); }
.tito-face svg { width: 100%; height: 100%; }
.tito .mic { position: absolute; right: -9px; bottom: -8px; width: 19px; transform: rotate(20deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.tito.big { width: 110px; height: 110px; }
.tito.big .mic { width: 30px; right: -14px; bottom: -12px; }
.bubble { position: relative; margin: 0; background: #fff; color: var(--card-ink); border-radius: 14px; padding: 7px 10px; font: 700 13px/1.25 var(--f-body); min-width: 0; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.bubble::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: #fff; }
.bank { position: relative; display: flex; align-items: flex-end; gap: 1px; padding: 8px 9px 20px; border-radius: 16px; background: radial-gradient(ellipse at 50% 30%, var(--felt), var(--felt-d) 80%); box-shadow: inset 0 0 0 3px var(--wood), inset 0 6px 14px rgba(0,0,0,.4); }
.bank small { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 800 9px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.bank .stk { --s: 17px; }
.bank { padding: 6px 6px 17px; }
.bank small { font-size: 7.5px; }

/* chip stacks: top-view chips squashed into a side-view pile */
.stk { --s: 26px; position: relative; display: inline-block; width: var(--s); height: calc(var(--s) * .5 + var(--n) * var(--s) * .17); flex: none; }
.stk i { position: absolute; left: 0; bottom: calc(var(--k) * var(--s) * .17); width: var(--s); height: var(--s); transform: scaleY(.5); transform-origin: 50% 100%; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
.stk i svg { width: 100%; height: 100%; }
.stk em { position: absolute; top: -18px; left: 50%; translate: -50% 0; font: 800 11px var(--f-body); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; }
.stk-empty { color: rgba(255,255,255,.75); font: 600 13px/1.3 var(--f-body); align-self: center; }

/* ---------- round banner */
.banner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0; }
.banner > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 99px; font: 700 13px var(--f-body); white-space: nowrap; }
.rnd { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); font-family: var(--f-display) !important; font-weight: 800 !important; }
.rnd small { opacity: .7; }
.catb { background: var(--cc); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.diff { background: rgba(255,255,255,.1); }
.diff, .diffbig { color: var(--ink); }
.diff small, .diffbig small { color: rgba(255,255,255,.25); font-size: inherit; }
.sp { background: linear-gradient(90deg, #ff6fa8, var(--gold), #ff6fa8); background-size: 200% 100%; color: #2a0d1e; font-weight: 800 !important; animation: shimmer 2.4s linear infinite; }

/* ---------- podiums */
.pods { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px 8px; margin: 6px 0 0; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding-top: 6px; width: 100%; max-width: 170px; justify-self: center; }
.pav { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg1), 0 0 0 5px rgba(246,196,83,.7); background: var(--bg1); }
.pav > svg { width: 100%; height: 100%; border-radius: 50%; }
.pav > span { display: grid; place-items: center; width: 100%; height: 100%; font: 800 20px var(--f-display); color: var(--muted); }
.pod.me .pav { box-shadow: 0 0 0 3px var(--bg1), 0 0 0 5px var(--coral), 0 0 18px rgba(255,90,60,.6); }
.pod.empty { opacity: .55; }
.pod.empty .pav { box-shadow: 0 0 0 2px rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.pbase { width: 100%; margin-top: -12px; padding: 15px 4px 6px; border-radius: 10px 10px 6px 6px; background: linear-gradient(#41196e, #23103e); border-top: 3px solid var(--gold); box-shadow: 0 6px 12px rgba(0,0,0,.3); }
.pname { display: block; font: 700 12px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pname small { font-weight: 600; color: var(--muted); }
.pchips { display: inline-flex; align-items: center; gap: 4px; font: 800 14px var(--f-display); color: #ffe08a; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(246,196,83,.55); }
.pchips .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff inset, 0 0 0 1px var(--red); }
.pod.empty .pchips { font: 600 10px var(--f-body); color: var(--muted); text-shadow: none; }
.pbet { display: block; font: 700 11px var(--f-body); color: var(--muted); }
.pbet.allin { color: #ff9a6c; }
.badge { position: absolute; z-index: 3; top: 0; right: 0; font: 800 10px/1 var(--f-body); padding: 4px 6px; border-radius: 99px; background: #4a3a5e; color: #fff; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.badge.ok { background: var(--green); }
.badge.bad { background: var(--red); }
.badge.off { background: #2c2236; color: var(--muted); }
.badge.wait { animation: blink 1.2s ease-in-out infinite; }
.pdelta { position: absolute; z-index: 4; top: 20px; left: 50%; translate: -50% 0; font: 800 15px var(--f-display); padding: 2px 8px; border-radius: 99px; color: #fff; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.pdelta.up { background: var(--green); }
.pdelta.down { background: var(--red); }
.ptags { margin-top: 3px; }
.ptag { display: inline-block; font: 700 10px var(--f-body); color: var(--gold); background: rgba(246,196,83,.16); border-radius: 99px; padding: 1px 6px; margin: 1px; }
.crown { position: absolute; z-index: 2; top: -15px; left: 50%; translate: -50% 0; color: var(--gold); font-size: 18px; line-height: 1; text-shadow: 0 2px 0 #7a1626; }

/* ---------- main area */
.main { margin-top: 14px; }
.kicker { text-align: center; text-transform: uppercase; letter-spacing: .12em; font: 800 12px var(--f-display); color: var(--gold); margin: 0 0 8px; }
.count { text-align: center; font: 600 13px var(--f-body); color: var(--muted); margin: 10px 0 0; }
.spdesc { text-align: center; font: 600 14px/1.35 var(--f-body); color: #ffd1e2; margin: 0 auto 10px; max-width: 46ch; }
.panel { max-width: 560px; margin: 14px auto; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { font: 800 24px var(--f-display); margin: 0 0 4px; color: var(--gold); }
.panel p { margin: 0; }
.netwarn { background: var(--red); color: #fff; text-align: center; padding: 6px 10px; border-radius: 10px; font: 700 14px var(--f-body); margin: 0 0 8px; }

/* category reveal */
.catshow { text-align: center; }
.reel { height: 64px; max-width: 520px; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 4px var(--gold), 0 0 44px rgba(246,196,83,.45); }
.reel ul { list-style: none; margin: 0; padding: 0; transform: translateY(calc(var(--steps) * -64px)); }
.fresh .reel ul { animation: reel 1.9s cubic-bezier(.15,.65,.2,1.02) both; }
.reel li { height: 64px; line-height: 64px; font: 800 clamp(20px, 6vw, 30px)/64px var(--f-display); color: var(--cc, #1b1030); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.diffbig { font: 700 16px var(--f-body); margin: 14px 0 0; }
.spcard { max-width: 520px; margin: 14px auto 0; padding: 12px 16px; border-radius: 18px; background: linear-gradient(135deg, #ff6fa8, var(--gold)); color: #2a0d1e; box-shadow: 0 8px 24px rgba(255,111,168,.35); }
.spcard b { display: block; font: 800 24px/1.1 var(--f-display); }
.spcard span { display: block; font: 600 14px/1.35 var(--f-body); margin-top: 4px; }
.fresh .spcard { animation: stamp .6s var(--spring) 1.7s both; }

/* betting */
.betbox, .bet-tv { max-width: 560px; margin: 0 auto; }
.bet-tv { text-align: center; }
.bigcat { display: inline-block; margin: 4px 0 0; padding: 4px 22px; border-radius: 18px; background: #fff; color: var(--cc); font: 800 clamp(30px, 8vw, 64px)/1.15 var(--f-display); box-shadow: 0 0 0 4px var(--gold); }
.felt {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 132px; padding: 14px 30px 10px;
  border-radius: 999px / 70px; background: radial-gradient(ellipse at 50% 35%, var(--felt), var(--felt-d) 75%);
  box-shadow: 0 0 0 7px var(--wood), 0 0 0 9px #3b1d0a, inset 0 0 0 2px rgba(255,255,255,.16), inset 0 12px 30px rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45);
}
.felt::before { content: "EL CONCURSITO · PAGA LA BANCA"; position: absolute; left: 0; right: 0; top: 6px; text-align: center; font: 800 9px var(--f-body); letter-spacing: .22em; color: rgba(255,255,255,.28); }
.betstack { display: flex; align-items: flex-end; justify-content: center; gap: 6px; min-height: 76px; padding-top: 14px; }
.betstack .stk { --s: 40px; }
.betnum { text-align: right; }
.betnum small { display: block; font: 700 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.betnum b { display: block; font: 800 36px/1 var(--f-display); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.allin-tag { display: inline-block; margin-top: 4px; font: 800 11px var(--f-body); font-style: normal; color: #fff; background: var(--coral); border-radius: 99px; padding: 2px 8px; }
.betinfo { grid-column: 1 / -1; text-align: center; font: 600 12px var(--f-body); color: rgba(255,255,255,.85); }
.tray { display: flex; justify-content: center; gap: 12px; margin: 22px 0 12px; padding: 10px; border-radius: 18px; background: linear-gradient(#5a2f12, #3b1d0a); box-shadow: inset 0 4px 10px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.08); }
.tchip { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; filter: drop-shadow(0 5px 0 rgba(0,0,0,.5)); transition: transform .15s var(--spring), filter .15s; }
.tchip svg { width: 100%; height: 100%; }
.tchip:hover:not(:disabled) { transform: translateY(-4px) rotate(-8deg); }
.tchip:active:not(:disabled) { transform: translateY(3px) scale(.94); filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.tchip:disabled { opacity: .3; cursor: default; }
.bacts { display: grid; grid-template-columns: 1fr 1fr 1fr 1.35fr; gap: 8px; }
.bacts .btn { padding-inline: 6px; }
.betbox.locked .felt { opacity: .95; }

/* timer */
.cd { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; }
.qcard .cd { margin: 0 4px 4px; }
.cd-bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.cd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ccf8e, var(--gold)); transform-origin: 0 50%; transition: transform .25s linear; }
.cd-n { font: 800 20px var(--f-display); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.cd.hurry .cd-bar i { background: var(--coral); }
.cd.hurry .cd-n { color: #ff8a6c; animation: beat 1s ease-in-out infinite; }

/* question card */
.qcard { position: relative; max-width: 780px; margin: 0 auto; padding: 18px 16px 16px; border-radius: 24px; background: linear-gradient(#2f1459, #1b0b33); box-shadow: 0 0 0 3px var(--gold), 0 22px 50px rgba(0,0,0,.45); }
.qcard::before { content: ""; inset: 5px; border-radius: 20px; border-width: 4px; opacity: .55; }
.qtext { position: relative; font: 800 clamp(19px, 4.8vw, 30px)/1.2 var(--f-display); letter-spacing: -.01em; text-align: center; margin: 10px 8px 16px; text-wrap: balance; }
.opts { position: relative; display: grid; gap: 10px; }
.opt { --oc: #c8203a; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 12px; text-align: left; border: 0; border-radius: 14px; color: #fff; font: 700 16px/1.25 var(--f-body); background: linear-gradient(color-mix(in srgb, var(--oc) 82%, #fff), var(--oc)); box-shadow: 0 4px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .15s var(--spring), opacity .2s, box-shadow .2s; }
.o1 { --oc: #2563c9; }
.o2 { --oc: #b07a08; }
.o3 { --oc: #128a52; }
button.opt { cursor: pointer; }
button.opt:hover { transform: translateY(-2px); filter: brightness(1.08); }
button.opt:active { transform: translateY(2px); }
.L { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--oc); display: grid; place-items: center; font: 800 16px var(--f-display); }
.t { flex: 1; min-width: 0; }
.opt.sel { box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255,255,255,.45); transform: scale(1.02); }
.opt.dim { opacity: .42; filter: saturate(.55); }
.opt.ok { opacity: 1; filter: none; box-shadow: 0 0 0 4px #a6ffd6, 0 0 34px rgba(60,207,142,.75); }
.opt.ok .L { background: #a6ffd6; color: #0b5134; }
.opt.ok .L::after { content: "✓"; }
.opt.ok .L { font-size: 0; }
.opt.ok .L::after { font-size: 18px; }
.opt.bad { opacity: .9; filter: none; box-shadow: 0 0 0 3px #ffb1b1; }
.fresh .opt.ok { animation: okpulse .8s ease-in-out .3s 2; }
.fresh .qcard:not(.rev) .opt { animation: rise-in .35s var(--spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.fresh .qcard:not(.rev) .o1 { --d: 90; }
.fresh .qcard:not(.rev) .o2 { --d: 180; }
.fresh .qcard:not(.rev) .o3 { --d: 270; }
.who { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; margin-left: auto; max-width: 45%; }
.who i { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff; }
.who i svg { width: 100%; height: 100%; }
.myres { max-width: 560px; margin: 14px auto 0; text-align: center; padding: 10px 14px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.myres.win { background: linear-gradient(#25b062, #137a42); }
.myres.lose { background: linear-gradient(#b02a42, #7a1626); }
.myres b { display: block; font: 800 24px/1.1 var(--f-display); }
.myres span { font: 700 16px var(--f-body); }
.myres small { display: block; font: 600 13px var(--f-body); margin-top: 2px; }
.fresh .myres { animation: stamp .5s var(--spring) .5s both; }
.curio { max-width: 680px; margin: 14px auto 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); border-left: 4px solid var(--gold); font: 500 15px/1.45 var(--f-body); }
.curio b { color: var(--gold); }
.fresh .curio { animation: rise-in .5s ease 1.4s both; }

/* leaderboard */
.boardbox { max-width: 640px; margin: 0 auto; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 8px 12px; margin-bottom: 6px; border-radius: 14px; background: rgba(255,255,255,.07); }
.board li.me { box-shadow: inset 0 0 0 2px var(--coral); }
.board li:first-child { background: linear-gradient(90deg, rgba(246,196,83,.25), rgba(255,255,255,.07)); }
.rk { grid-row: 1 / 3; font: 800 20px var(--f-display); color: var(--gold); text-align: center; }
.bav { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.bav svg { width: 100%; height: 100%; }
.bn { grid-column: 3; grid-row: 1; font: 700 15px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc { grid-column: 4; grid-row: 1; font: 800 16px var(--f-display); color: var(--gold-l); font-variant-numeric: tabular-nums; }
.bar { grid-column: 3 / 5; grid-row: 2; height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--gold), #ff9a3c); border-radius: 99px; }
.fresh .board li { animation: slide-in .45s ease both; animation-delay: calc(var(--k) * 90ms); }
.fresh .bar i { animation: grow 1s ease both; animation-delay: calc(var(--k) * 90ms + 200ms); }

/* the end */
.overbox { text-align: center; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 30px 0 14px; }
.step { display: flex; flex-direction: column; align-items: center; width: 31%; max-width: 170px; }
.sav { position: relative; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 4px var(--gold); margin-bottom: 6px; }
.sav svg { width: 100%; height: 100%; border-radius: 50%; }
.p1 .sav { width: 88px; height: 88px; }
.sav .crown { top: -24px; font-size: 28px; }
.step b { font: 800 16px var(--f-display); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .sc { font: 700 13px var(--f-body); color: var(--gold-l); margin-bottom: 6px; }
.blk { width: 100%; display: grid; place-items: center; border-radius: 12px 12px 0 0; background: linear-gradient(var(--gold-l), var(--gold-d)); color: #3b2a14; font: 800 34px var(--f-display); transform-origin: 50% 100%; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.p1 .blk { height: 120px; }
.p2 .blk { height: 86px; }
.p3 .blk { height: 62px; }
.fresh .blk { animation: grow-up .8s var(--spring) both; }
.fresh .p1 .blk { animation-delay: .5s; }
.fresh .p3 .blk { animation-delay: .25s; }
.stats { font: 500 15px var(--f-body); color: var(--muted); margin: 0 0 14px; }
.stats b { color: var(--ink); }
.overbtns { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.overbtns .btn { min-width: 140px; }

/* lobby */
.codebox { max-width: 520px; margin: 14px auto; padding: 16px; text-align: center; border-radius: 20px; background: #fff; color: var(--card-ink); box-shadow: 0 0 0 4px var(--gold), 0 14px 30px rgba(0,0,0,.35); }
.codebox > span { display: block; font: 700 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #6b5a80; }
.code { display: block; font: 800 64px/1 var(--f-display); letter-spacing: .14em; padding-left: .14em; color: var(--card-ink); margin: 4px 0 6px; }
.codebox small { display: block; font: 500 14px/1.35 var(--f-body); color: #4f3f63; }
.live { display: block; margin-top: 6px; font: 700 13px var(--f-body); color: var(--green); }
.live.wait { color: var(--gold-d); }
.codebox .btn.ghost { color: var(--card-ink); background: #f4effa; box-shadow: inset 0 0 0 2px #d9cfe6; }
.cfg .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font: 700 15px var(--f-body); }
.seg { display: flex; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.seg button { border: 0; background: none; padding: 9px 16px; font: 800 15px var(--f-display); cursor: pointer; }
.seg button.on { background: var(--gold); color: #2a1405; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); font: 800 20px var(--f-display); cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { font: 800 22px var(--f-display); min-width: 2ch; text-align: center; }
.hint { font: 500 13px/1.4 var(--f-body); color: var(--muted); margin: 6px 0 0 !important; }
.tvcode { text-align: center; color: var(--muted); margin: 18px 0 0; font: 600 16px var(--f-body); }
.tvcode b { color: var(--gold); }

/* flying chips, confetti, toast */
.fly { position: fixed; left: 0; top: 0; width: 28px; height: 28px; z-index: 60; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.fly svg { width: 100%; height: 100%; }
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: fall var(--t) cubic-bezier(.2,.6,.4,1) var(--d) forwards; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; max-width: calc(100vw - 32px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: #fff; color: var(--card-ink); padding: 10px 16px; border-radius: 12px; font: 700 15px var(--f-body); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .2s, transform .25s var(--spring); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* entrances, only when the phase changes (render adds .fresh) */
.fresh .bubble { animation: say .4s var(--spring) both; }
.fresh .main > * { animation: rise-in .4s ease both; }
.fresh .pdelta { animation: pop .55s var(--spring) 1.1s both; }

/* ---------- lobby: the mode picker */
.cfg .row.col { flex-direction: column; align-items: stretch; }
.seg.modes4 { display: grid; grid-template-columns: 1fr 1fr; }
.seg.modes4 button { padding: 11px 8px; font-size: 14px; line-height: 1.15; }
.seg.modes4 button + button { box-shadow: inset 1px 0 0 rgba(255,255,255,.1); }
.cfg .hint b { color: var(--gold-l); }
@media (min-width: 560px) { .seg.modes4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- the race sign (category reveal for races and twisters) */
.racesign { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 4px var(--gold), 0 0 44px rgba(246,196,83,.45); }
.racesign b { font: 800 clamp(24px, 7vw, 40px)/1.1 var(--f-display); color: #e8452c; letter-spacing: -.02em; }
.racesign.tw b { color: #0f9b8e; }
.flagc { width: 30px; height: 30px; flex: none; border-radius: 4px; background: repeating-conic-gradient(#1b1030 0 25%, #fff 0 50%) 0 0 / 10px 10px; box-shadow: 0 0 0 2px #1b1030; transform: rotate(-8deg); }
.flagc + b + .flagc { transform: rotate(8deg); }
.fresh .racesign { animation: stamp .6s var(--spring) both; }
.fresh .flagc { animation: wave 1s ease-in-out 3; }

/* ---------- the track */
.race { position: relative; max-width: 900px; margin: 0 auto; }
/* no entrance animation here: a filling transform animation would trap the fixed typing box and countdown inside */
.fresh .main > .race { animation: none; }
.rhead { display: none; align-items: center; gap: 10px; margin-bottom: 8px; }
.tito.mini { width: 44px; height: 44px; }
.tito.mini .mic { width: 14px; right: -6px; bottom: -5px; }
.rinfo { margin-bottom: 8px; }
.track { position: relative; display: grid; gap: 6px; padding: 12px 12px 12px 10px; border-radius: 20px; background: radial-gradient(ellipse 90% 120% at 50% 120%, rgba(246,196,83,.18), transparent 60%), linear-gradient(#24103f, #140a26); box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(0,0,0,.45); }
.track::before { content: ""; position: absolute; inset: 5px; border-radius: 16px; border: 4px dotted #ffe9a8; opacity: .55; pointer-events: none; animation: blink 1.1s steps(2) infinite; }
.lane { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; align-items: center; gap: 6px; }
.lname { font: 700 12px/1.1 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.lane.me .lname { color: var(--coral); }
.lstat { font: 800 12px var(--f-display); color: var(--gold-l); font-variant-numeric: tabular-nums; white-space: nowrap; }
.road {
  position: relative; height: 40px; border-radius: 9px; border-left: 4px solid var(--lc);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 12px, transparent 12px 26px) 0 50% / 100% 2px no-repeat, linear-gradient(#433b52, #2b2536 55%, #251f2f);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), inset 0 -3px 0 rgba(0,0,0,.35);
}
.lane.me .road { box-shadow: inset 0 0 0 2px var(--coral), inset 0 -3px 0 rgba(0,0,0,.35); }
.lane.out { opacity: .4; }
.finish { position: absolute; right: 0; top: 0; bottom: 0; width: 12px; border-radius: 0 9px 9px 0; background: repeating-conic-gradient(#fff 0 25%, #1b1030 0 50%) 0 0 / 6px 6px; }
.car { position: absolute; z-index: 1; bottom: 2px; left: calc(var(--p, 0) * (100% - 66px)); width: 56px; height: 36px; transition: left .35s linear; }
.kart { position: absolute; left: 0; bottom: 0; width: 56px; height: 26px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.kart .speedl { opacity: 0; }
.ph-race .lane:not(.done):not(.out) .speedl { animation: flick .3s steps(2) infinite; }
.drv { position: absolute; left: 18px; bottom: 13px; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--bg1); box-shadow: 0 0 0 2px #12081f; }
.drv svg { width: 100%; height: 100%; }
.medal { position: absolute; top: -4px; right: -10px; min-width: 22px; padding: 2px 5px; border-radius: 99px; background: var(--gold); color: #2a1405; font: 800 11px/1.1 var(--f-display); text-align: center; box-shadow: 0 2px 0 #7a1626; }
.medal:empty { display: none; }
.lane.done .medal { animation: pop .5s var(--spring) both; }
.lane.oops .car { filter: drop-shadow(0 0 6px rgba(255,70,70,.95)); }
.lane.shake .car { animation: shake .35s ease-in-out; }

/* ---------- the typing box */
.typebox { position: relative; margin: 12px 0 0; padding: 12px; border-radius: 18px; background: #fff; color: var(--card-ink); box-shadow: 0 0 0 3px var(--gold), 0 14px 30px rgba(0,0,0,.4); }
.typebox.tv { background: linear-gradient(#2f1459, #1b0b33); color: var(--ink); }
.rph { font: 700 19px/1.45 var(--f-body); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 2.9em; margin: 0 0 10px; }
.rph.big { font-size: clamp(22px, 3vw, 40px); text-align: center; margin: 4px 6px; }
.rph .ok { color: #1f9a55; }
.rph span:empty { display: none; }
.rph .bad { background: #ffb1b1; color: #9b0c22; border-radius: 3px; box-shadow: 0 0 0 1px #c8203a; }
.rph .cur { box-shadow: inset 0 -3px 0 var(--gold-d); background: rgba(246,196,83,.25); border-radius: 2px; }
.rwait { color: #6b5a80; font: 600 16px var(--f-body); }
.typebox.tv .rwait { color: var(--muted); }
#rin { display: block; width: 100%; font: 700 18px var(--f-body); padding: 11px 12px; border-radius: 12px; border: 2px solid #d9cfe6; background: #f7f3fc; color: var(--card-ink); }
#rin:focus { outline: none; border-color: var(--gold-d); box-shadow: 0 0 0 3px rgba(246,196,83,.45); }
#rin.bad { border-color: #c8203a; background: #fff0f2; }
#rin[readonly] { border-color: #1f9a55; background: #eafaf1; }
#rin::placeholder { color: #9a8bb0; }
.rstat { margin: 8px 0 0; font: 700 13px var(--f-body); color: #4f3f63; text-align: center; font-variant-numeric: tabular-nums; }
.twfrom { margin: -4px 0 8px; font: 600 12px var(--f-body); color: #6b5a80; text-align: center; }
.typebox.tv .twfrom { color: var(--muted); }
.cdbig { display: none; position: fixed; inset: 0; z-index: 50; place-items: center; pointer-events: none; font: 800 min(40vw, 260px)/1 var(--f-display); color: var(--gold-l); text-shadow: 0 8px 0 #7a1626, 0 0 60px rgba(246,196,83,.6); }
.cdbig.on { display: grid; animation: cdpulse 1s ease-out infinite; }
.cdbig.go { color: #a6ffd6; text-shadow: 0 8px 0 #0b5134, 0 0 60px rgba(60,207,142,.7); font-size: min(26vw, 200px); animation: stamp .5s var(--spring) both; }
.twbox .cdbig { position: static; display: none; font-size: 120px; margin: 8px 0; }
.twbox .cdbig.on { display: block; }

/* phones: during the race the track takes the stage, and the box rides above the keyboard */
@media (max-width: 759px) {
  .show.racing > .stage, .show.racing > .banner { display: none; }
  .rhead { display: flex; }
  .rhead .bubble { font-size: 12px; }
  body.kbopen .racing .race { padding-bottom: 210px; }
  body.kbopen .racing .typebox:not(.tv) { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(var(--kb, 0px) + 6px); margin: 0; }
  body.kbopen .racing .rph { font-size: 17px; min-height: 0; margin-bottom: 6px; }
  body.kbopen .racing .rstat { display: none; }
}

/* ---------- race results */
.rres { max-width: 680px; margin: 0 auto; }
.rres .myres { margin: 0 auto 14px; }
.myres.even { background: linear-gradient(#5b4a74, #3b2d52); }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 8px 12px; margin-bottom: 6px; border-radius: 14px; background: rgba(255,255,255,.07); }
.rlist li:first-child:not(.dnf) { background: linear-gradient(90deg, rgba(246,196,83,.28), rgba(255,255,255,.07)); }
.rlist li.me { box-shadow: inset 0 0 0 2px var(--coral); }
.rlist li.dnf { opacity: .7; }
.rlist .rt { grid-column: 3; grid-row: 2; font: 600 12px var(--f-body); color: var(--muted); }
.rlist .rt em { font-style: normal; color: var(--gold); }
.rlist .bn { grid-row: 1; }
.rp { grid-column: 4; grid-row: 1 / 3; text-align: right; font: 800 18px/1.05 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.rp small { display: block; font: 700 11px var(--f-body); color: var(--muted); }
.rp.up { color: #6ff0b0; }
.rp.down { color: #ff8a8a; }
.fresh .rlist li { animation: slide-in .45s ease both; animation-delay: calc(var(--k) * 110ms + 300ms); }

/* ---------- trabalenguas en voz alta */
.twbox { position: relative; overflow: hidden; max-width: 780px; margin: 0 auto; padding: 16px; border-radius: 24px; text-align: center; background: linear-gradient(#123f45, #0b2427); box-shadow: 0 0 0 3px #3fd6c4, 0 22px 50px rgba(0,0,0,.45); }
.twbox .kicker { color: #8ff0e2; }
.twtxt { font: 800 clamp(22px, 5.4vw, 36px)/1.25 var(--f-display); letter-spacing: -.01em; margin: 10px 6px 10px; text-wrap: balance; }
.twtxt.sm { font-size: clamp(17px, 4vw, 24px); color: #d7fffa; }
.twtxt.wait { font: 700 18px/1.35 var(--f-body); color: #d7fffa; }
.twbox .twfrom { color: #8fbdb7; }
.vacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.mic-btn { display: inline-flex; align-items: center; gap: 8px; }
.mic-btn .mic { width: 14px; }
.mic-btn.on { box-shadow: inset 0 0 0 2px #ff6fa8, 0 0 18px rgba(255,111,168,.6); animation: blink 1.2s ease-in-out infinite; }
.heard { min-height: 1.4em; margin: 10px 0 0; font: 600 14px/1.4 var(--f-body); color: #bfeee8; font-style: italic; }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.vbtn { border: 0; border-radius: 18px; padding: 18px 8px; cursor: pointer; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.4); transition: transform .15s var(--spring); }
.vbtn b { display: block; font: 800 clamp(20px, 6vw, 30px)/1.1 var(--f-display); }
.vbtn small { display: block; margin-top: 2px; font: 700 11px var(--f-body); opacity: .8; }
.vbtn.si { background: linear-gradient(#3ccf8e, #137a42); }
.vbtn.no { background: linear-gradient(#ff6a6a, #a3172d); }
.vbtn:hover { transform: translateY(-2px); }
.vbtn:active { transform: translateY(3px); }
.voted { margin: 14px 0 0; font: 700 17px var(--f-body); }
.voted b { color: var(--gold-l); }
.verdict { display: inline-block; padding: 10px 26px 12px; border-radius: 18px; transform: rotate(-3deg); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.verdict b { display: block; font: 800 clamp(34px, 10vw, 64px)/1 var(--f-display); letter-spacing: -.02em; }
.verdict span { display: block; font: 700 15px var(--f-body); margin-top: 4px; }
.verdict.si { background: linear-gradient(#3ccf8e, #137a42); }
.verdict.no { background: linear-gradient(#ff6a6a, #a3172d); }
.fresh .verdict { animation: stamp .6s var(--spring) .3s both; }
.twbox.rev + .myres { margin-top: 14px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.side { border: 0; border-radius: 14px; padding: 12px 8px; font: 800 16px var(--f-display); cursor: pointer; color: var(--ink); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.side.si.on { background: linear-gradient(#3ccf8e, #137a42); box-shadow: 0 0 0 3px #a6ffd6; }
.side.no.on { background: linear-gradient(#ff6a6a, #a3172d); box-shadow: 0 0 0 3px #ffb1b1; }
.side-tag { display: inline-block; margin-top: 4px; font: 800 11px var(--f-body); font-style: normal; color: #fff; border-radius: 99px; padding: 2px 8px; }
.side-tag.si { background: var(--green); }
.side-tag.no { background: var(--red); }
.k-tw .catb { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

/* ---------- wider screens */
@media (min-width: 760px) {
  .stage { padding: 16px 84px; min-height: 124px; }
  .stage::before, .stage::after { width: 64px; }
  .tito { width: 84px; height: 84px; }
  .tito .mic { width: 24px; }
  .bubble { font-size: 17px; padding: 10px 16px; }
  .bank { padding: 8px 9px 20px; }
  .bank small { font-size: 9px; }
  .bank .stk { --s: 30px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .pav { width: 64px; height: 64px; }
  .pname { font-size: 14px; }
  .pchips { font-size: 16px; }
  .tchip { width: 76px; height: 76px; }
}

/* ---------- pantalla (the TV) */
body.tv #app { max-width: 1680px; }
body.tv .stage { min-height: 160px; }
body.tv .tito { width: 120px; height: 120px; }
body.tv .tito .mic { width: 34px; right: -14px; }
body.tv .bubble { font-size: clamp(18px, 1.7vw, 26px); }
body.tv .banner > span { font-size: 18px; padding: 6px 16px; }
body.tv .qcard { max-width: 1280px; padding: 26px 26px 22px; }
body.tv .qtext { font-size: clamp(28px, 3.4vw, 54px); }
body.tv .opt { font-size: clamp(18px, 1.8vw, 28px); min-height: 80px; }
body.tv .L { width: 46px; height: 46px; font-size: 22px; }
body.tv .pav { width: 86px; height: 86px; }
body.tv .pod { max-width: 220px; }
body.tv .pname { font-size: 17px; }
body.tv .pchips { font-size: 22px; }
body.tv .curio, body.tv .count { font-size: 20px; }
body.tv .boardbox { max-width: 900px; }
body.tv .bn, body.tv .bc { font-size: 22px; }
body.tv .tvlobby .code { font-size: 120px; }
body.tv .race { max-width: 1500px; }
body.tv .track { gap: 10px; padding: 18px; }
body.tv .lane { grid-template-columns: 160px minmax(0, 1fr) 110px; gap: 14px; }
body.tv .lname { font-size: 22px; }
body.tv .lstat { font-size: 24px; }
body.tv .road { height: 66px; border-left-width: 8px; }
body.tv .finish { width: 22px; background-size: 11px 11px; }
body.tv .car { width: 96px; height: 62px; left: calc(var(--p, 0) * (100% - 116px)); }
body.tv .kart { width: 96px; height: 45px; }
body.tv .drv { left: 31px; bottom: 22px; width: 40px; height: 40px; box-shadow: 0 0 0 3px #12081f; }
body.tv .medal { font-size: 18px; min-width: 36px; top: -8px; right: -18px; }
body.tv .typebox.tv { padding: 20px 26px; }
body.tv .rinfo { font-size: 18px; }
body.tv .twtxt { font-size: clamp(32px, 3.6vw, 60px); }
body.tv .twbox { max-width: 1280px; padding: 26px; }
body.tv .rlist .bn, body.tv .rp { font-size: 22px; }
body.tv .rlist .rt { font-size: 16px; }

/* ---------- keyframes */
@keyframes blink { 50% { opacity: .35; } }
@keyframes sweep { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes reel { from { transform: translateY(0); } }
@keyframes stamp { from { transform: scale(1.6) rotate(-4deg); opacity: 0; } }
@keyframes say { from { transform: scale(.6); opacity: 0; } }
@keyframes rise-in { from { transform: translateY(14px); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-24px); opacity: 0; } }
@keyframes grow { from { width: 0; } }
@keyframes grow-up { from { transform: scaleY(0); } }
@keyframes okpulse { 50% { transform: scale(1.035); } }
@keyframes beat { 50% { transform: scale(1.25); } }
@keyframes pop { from { transform: translateY(10px) scale(.3); opacity: 0; } }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
@keyframes wave { 50% { transform: rotate(10deg) skewY(-6deg); } }
@keyframes flick { 50% { opacity: .9; transform: translateX(-3px); } }
@keyframes shake { 20%, 60% { transform: translateX(-3px) rotate(-3deg); } 40%, 80% { transform: translateX(3px) rotate(3deg); } }
@keyframes cdpulse { from { transform: scale(1.35); opacity: .2; } 30% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
