:root {
  --bg: #06100a; --panel: #0f2016; --panel2: #152d1e; --line: #23472f;
  --text: #f1f8f3; --muted: #9dc1a9; --dim: #5f826b;
  --green: #3ee07a; --green-d: #1fae55; --gold: #f5c542; --red: #ff5a5f;
  --oa: #ff5a5f; --ob: #3b82f6; --oc: #f5b700; --od: #a855f7;
  --r: 18px;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 520px at 0% -10%, #143a23 0%, transparent 60%),
    radial-gradient(800px 480px at 110% 110%, #0f2c1b 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hide { display: none !important; }

/* brand mark */
.mark { display: inline-flex; align-items: center; gap: .55em; font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.mark .dot { width: .8em; height: .8em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .22em rgba(62,224,122,.18), 0 0 18px rgba(62,224,122,.8); }

/* shared bits */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 14px; padding: .95em 1.3em; font-weight: 800; font-size: 1rem;
  background: var(--green); color: #052611; transition: transform .08s ease, filter .15s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn.warn { background: #3a1517; color: #ffb3b5; border: 1px solid #6b2a2d; }
.btn.gold { background: var(--gold); color: #2b1d00; }
.btn.small { padding: .55em .9em; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)), var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .35em .75em; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.swatch { width: .75em; height: .75em; border-radius: 50%; display: inline-block; flex: none; }
input.field, select.field, textarea.field {
  width: 100%; background: #08160d; border: 1px solid var(--line); border-radius: 12px; padding: .8em .9em; outline: none;
}
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(62,224,122,.18); }
#offline { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 50; background: #3a1517; color: #ffd0d1; border: 1px solid #6b2a2d; padding: .5em 1em; border-radius: 999px; font-weight: 700; font-size: .85rem; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; z-index: 60; background: #0b1a10; border: 1px solid var(--line); padding: .8em 1.1em; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: #6b2a2d; color: #ffd0d1; }

/* answer option colours */
.oa { --oc-bg: var(--oa); } .ob { --oc-bg: var(--ob); } .oc { --oc-bg: var(--oc); } .od { --oc-bg: var(--od); }

/* ============================== PLAYER ============================== */
body.player .wrap { max-width: 520px; margin: 0 auto; padding: 14px 16px 40px; }
.ptop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 40px; }
.ptop .mark { font-size: .95rem; }
.ptop .me { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.join-hero { text-align: center; padding: 34px 6px 18px; }
.join-hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: .95; font-weight: 900; text-transform: uppercase; }
.join-hero h1 span { color: var(--green); }
.join-hero p { margin: 12px 0 0; color: var(--muted); }
.joinform { display: grid; gap: 12px; margin-top: 18px; }
.joinform input { font-size: 1.25rem; padding: 1em; text-align: center; font-weight: 700; }
.err-msg { color: #ffb3b5; font-weight: 600; text-align: center; min-height: 1.3em; font-size: .95rem; }
.center { text-align: center; }
.big-emoji { font-size: 3.2rem; line-height: 1; }
.waiting { text-align: center; padding: 26px 18px; }
.waiting h2 { font-size: 1.7rem; margin: 10px 0 6px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--green); margin: 18px auto 0; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,224,122,.6); } 100% { box-shadow: 0 0 0 22px rgba(62,224,122,0); } }

.teamcard { border-radius: 24px; padding: 26px 20px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.28), transparent 60%), var(--tc); box-shadow: 0 18px 50px -12px var(--tc); }
.teamcard .lbl { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; opacity: .85; }
.teamcard h2 { font-size: clamp(2rem, 10vw, 2.8rem); font-weight: 900; text-transform: uppercase; line-height: .95; margin: 8px 0 14px; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.teamcard .mates { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.teamcard .mates span { background: rgba(0,0,0,.22); padding: .4em .8em; border-radius: 999px; font-weight: 700; }
.reveal-pop { animation: pop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { 0% { transform: scale(.6) rotate(-4deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

.station-next { margin-top: 14px; text-align: center; }
.station-next .icon { font-size: 3rem; }
.station-next h2 { font-size: 2rem; text-transform: uppercase; font-weight: 900; }

/* question */
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.timebar { height: 10px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-bottom: 14px; }
.timebar i { display: block; height: 100%; width: calc(var(--frac, 1) * 100%); background: linear-gradient(90deg, var(--green-d), var(--green)); border-radius: 99px; }
.qtext { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 6vw, 1.7rem); line-height: 1.15; margin: 4px 0 6px; }
.qtext.emoji { font-size: clamp(2.6rem, 14vw, 3.6rem); letter-spacing: .08em; text-align: center; }
.qtext.anagram { font-size: clamp(1.9rem, 10vw, 2.6rem); letter-spacing: .14em; text-align: center; }
.hint { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 4px; }
.qimg { width: 100%; max-height: 32vh; object-fit: contain; border-radius: 14px; margin: 8px 0; background: #000; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.opt {
  position: relative; min-height: 112px; border: 0; border-radius: 18px; padding: 14px 12px 12px; text-align: left;
  background: var(--oc-bg); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); transition: transform .08s, opacity .2s, box-shadow .2s;
  font-weight: 800; font-size: 1.02rem; line-height: 1.15;
}
.opt .sh { font-size: 1.1rem; opacity: .9; }
.opt:active { transform: scale(.97); }
.opt.picked { box-shadow: inset 0 -5px 0 rgba(0,0,0,.2), 0 0 0 4px #fff, 0 0 26px rgba(255,255,255,.35); }
.opt.picked::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: .95rem; }
.opts.chosen .opt:not(.picked) { opacity: .62; }
.opts.locked .opt:not(.picked) { opacity: .35; }
.opts.revealed .opt { opacity: .28; }
.opts.revealed .opt.right { opacity: 1; box-shadow: 0 0 0 4px var(--green), 0 0 30px rgba(62,224,122,.6); }
.opts.revealed .opt.right::before { content: '✓ Correct'; position: absolute; bottom: 10px; right: 10px; background: var(--green); color: #052611; font-size: .72rem; padding: .25em .55em; border-radius: 99px; }
.mates-picks { display: flex; gap: 4px; flex-wrap: wrap; min-height: 24px; }
.mates-picks b { background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.7); border-radius: 99px; font-size: .72rem; padding: .15em .45em; }
.huddle { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }
.verdict { text-align: center; margin: 6px 0 14px; }
.verdict h2 { font-size: 2.3rem; font-weight: 900; text-transform: uppercase; }
.verdict.yes h2 { color: var(--green); } .verdict.no h2 { color: var(--red); }
.verdict p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }

/* mini league */
.mini { display: grid; gap: 8px; margin-top: 16px; }
.mini h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 2px; }
.mini .row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.mini .row.mine { border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc) inset; }
.mini .rk { font-family: var(--display); font-weight: 900; color: var(--muted); }
.mini .nm { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mini .pt { font-family: var(--display); font-weight: 900; font-size: 1.15rem; }

/* ============================== SCREEN (telly) ============================== */
body.screen { overflow: hidden; height: 100vh; }
body.screen #app { height: 100vh; display: flex; flex-direction: column; padding: 2.4vw 3vw; }
.s-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.5vw; color: var(--muted); }
.s-top .mark { color: var(--text); font-size: 1.6vw; }
.s-main { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.s-title { font-size: 6.4vw; font-weight: 900; text-transform: uppercase; line-height: .9; }
.s-title span { color: var(--green); }
.s-sub { font-size: 2vw; color: var(--muted); margin-top: 1vw; }
.s-join { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4vw; align-items: center; height: 100%; }
.s-join .s-title { font-size: 5.2vw; }
.qrbox { background: #fff; padding: 1.2vw; border-radius: 1.6vw; width: 18vw; height: 18vw; display: grid; place-items: center; margin-top: 2.4vw; box-shadow: 0 0 0 .5vw rgba(62,224,122,.35), 0 30px 80px -20px rgba(62,224,122,.5); }
.qrbox img, .qrbox canvas { width: 100% !important; height: auto !important; }
.joinurl { font-size: 1.7vw; font-weight: 800; margin-top: 1.4vw; color: var(--green); word-break: break-all; }
.namecloud { display: flex; flex-wrap: wrap; gap: .9vw; align-content: flex-start; }
.namecloud span { font-size: 2vw; font-weight: 800; padding: .5vw 1.2vw; border-radius: 999px; background: var(--panel2); border: 2px solid var(--line); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.count-big { font-family: var(--display); font-size: 2.2vw; font-weight: 900; margin-bottom: 1.4vw; }
.count-big b { color: var(--green); font-size: 3.4vw; }

.s-teams { display: grid; gap: 1.6vw; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.s-team { border-radius: 1.6vw; padding: 2vw 1.6vw; background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.25), transparent 60%), var(--tc); color: #fff; box-shadow: 0 2vw 4vw -1.5vw var(--tc); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.s-team h2 { font-size: 2.6vw; font-weight: 900; text-transform: uppercase; line-height: .95; }
.s-team ul { list-style: none; padding: 0; margin: 1.4vw 0 0; display: grid; gap: .6vw; }
.s-team li { font-size: 1.8vw; font-weight: 700; background: rgba(0,0,0,.2); padding: .5vw 1vw; border-radius: .8vw; }

.s-round { text-align: center; }
.s-round .rn { font-size: 2.2vw; font-weight: 800; letter-spacing: .3em; color: var(--green); text-transform: uppercase; }
.s-round h1 { font-size: 7.5vw; font-weight: 900; text-transform: uppercase; line-height: .92; margin: 1vw 0; animation: pop .7s cubic-bezier(.2,1.4,.4,1); }
.s-round p { font-size: 2.2vw; color: var(--muted); margin: 0; }
.s-round .meta { display: inline-flex; gap: 1.2vw; margin-top: 2.4vw; }
.s-round .meta span { font-size: 1.6vw; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); padding: .6vw 1.4vw; border-radius: 99px; }

.s-q { display: grid; grid-template-rows: auto 1fr auto; gap: 1.6vw; height: 100%; padding-top: 1.6vw; }
.ring.done { background: var(--green); }
.ring.done .n { color: var(--green); }
.s-qhead { display: flex; align-items: center; gap: 2vw; }
.s-qhead .info { flex: 1; }
.s-qhead .rt { font-size: 1.5vw; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.s-qtext { font-family: var(--display); font-weight: 800; font-size: 3.6vw; line-height: 1.1; margin-top: .4vw; }
.s-qtext.emoji { font-size: 7vw; letter-spacing: .1em; }
.s-qtext.anagram { font-size: 6vw; letter-spacing: .2em; }
.s-hint { font-size: 1.4vw; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.ring { --frac: 1; width: 9vw; height: 9vw; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--frac) * 360deg), var(--panel2) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: .8vw; border-radius: 50%; background: var(--bg); }
.ring .n { position: relative; font-family: var(--display); font-weight: 900; font-size: 3.6vw; }
.ring.low { background: conic-gradient(var(--red) calc(var(--frac) * 360deg), var(--panel2) 0); }
.ring.low .n { color: var(--red); animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }
.s-mid { min-height: 0; display: flex; gap: 2vw; align-items: center; justify-content: center; }
.s-mid img { max-height: 100%; max-width: 60%; border-radius: 1.2vw; object-fit: contain; }
.s-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2vw; }
.s-opt { position: relative; border-radius: 1.4vw; padding: 1.6vw 2vw; background: var(--oc-bg); color: #fff; font-weight: 800; font-size: 2.3vw; display: flex; align-items: center; gap: 1.4vw; min-height: 7.4vw; box-shadow: inset 0 -.5vw 0 rgba(0,0,0,.2); transition: opacity .35s, box-shadow .35s, transform .35s; overflow: hidden; }
.s-opt .sh { font-size: 2.2vw; opacity: .9; }
.s-opt .cnt { margin-left: auto; font-family: var(--display); font-size: 2.6vw; }
.s-opt .barfill { position: absolute; left: 0; bottom: 0; height: .7vw; background: rgba(255,255,255,.7); width: 0; transition: width .9s ease; }
.s-opts.revealed .s-opt { opacity: .28; }
.s-opts.revealed .s-opt.right { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 .45vw var(--green), 0 0 4vw rgba(62,224,122,.6); }
.s-foot { display: flex; align-items: center; gap: 2vw; font-size: 1.5vw; color: var(--muted); min-height: 3vw; }
.s-foot .teamdots { display: flex; gap: 1.2vw; }
.s-foot .td { display: flex; align-items: center; gap: .5vw; font-weight: 700; color: var(--text); }
.s-foot .td i { display: inline-block; width: 1vw; height: 1vw; border-radius: 50%; border: .2vw solid var(--c); }
.s-foot .td i.on { background: var(--c); }
.s-note { margin-left: auto; color: var(--gold); font-weight: 700; max-width: 55%; text-align: right; }

.s-board { display: grid; grid-template-columns: 1fr auto; gap: 3vw; height: 100%; align-items: center; }
.lg { width: 100%; border-collapse: separate; border-spacing: 0 .8vw; }
.lg th { font-size: 1.2vw; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 0 .8vw; text-align: center; }
.lg th:nth-child(2) { text-align: left; }
.lg td { background: var(--panel); padding: 1.1vw .8vw; font-size: 1.9vw; text-align: center; font-weight: 700; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lg td:first-child { border-left: .6vw solid var(--tc); border-radius: 1vw 0 0 1vw; font-family: var(--display); font-weight: 900; font-size: 2.4vw; width: 5vw; }
.lg td:last-child { border-radius: 0 1vw 1vw 0; border-right: 1px solid var(--line); font-family: var(--display); font-weight: 900; font-size: 3vw; color: var(--green); width: 8vw; }
.lg td.tn { text-align: left; font-size: 2.2vw; }
.lg td.tn small { display: block; font-size: 1.2vw; color: var(--muted); font-weight: 600; margin-top: .2vw; }
.lg tr.lead td { background: #1d2814; border-color: rgba(245,197,66,.45); }
.lg tr { animation: slidein .6s cubic-bezier(.2,1,.3,1) both; }
@keyframes slidein { from { transform: translateX(-4vw); opacity: 0; } to { transform: none; opacity: 1; } }
.brains { width: 24vw; }
.brains h3 { font-size: 1.4vw; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 1vw; }
.brains .b { display: flex; align-items: center; gap: 1vw; padding: .9vw 1.2vw; background: var(--panel); border: 1px solid var(--line); border-radius: 1vw; margin-bottom: .7vw; font-size: 1.6vw; font-weight: 700; }
.brains .b em { margin-left: auto; font-style: normal; font-family: var(--display); color: var(--gold); }

.s-rot { display: grid; gap: 1.2vw; }
.s-rot .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2vw; background: var(--panel); border: 1px solid var(--line); border-left: .7vw solid var(--tc); border-radius: 1.2vw; padding: 1.4vw 2vw; animation: slidein .6s both; }
.s-rot .tn { font-size: 2.6vw; font-weight: 900; font-family: var(--display); text-transform: uppercase; }
.s-rot .arrow { font-size: 2.4vw; color: var(--dim); }
.s-rot .st { font-size: 2.6vw; font-weight: 800; display: flex; align-items: center; gap: 1vw; }
.s-rot .st .ic { font-size: 3.4vw; }
.s-stlist { display: flex; gap: 1.2vw; flex-wrap: wrap; margin-top: 2vw; }
.s-stlist span { font-size: 1.4vw; font-weight: 700; padding: .6vw 1.2vw; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.s-stlist span.done { border-color: var(--green); color: var(--green); }

.s-karaoke { text-align: center; }
.s-karaoke .mic { font-size: 9vw; animation: beat 1.6s infinite; display: inline-block; }
.s-karaoke h1 { font-size: 6vw; font-weight: 900; text-transform: uppercase; }
.s-karaoke p { font-size: 2.2vw; color: var(--muted); margin: .6vw 0 3vw; }
.s-kteams { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1.6vw; }
.s-kteam { background: var(--panel); border: 1px solid var(--line); border-top: .7vw solid var(--tc); border-radius: 1.4vw; padding: 1.6vw; }
.s-kteam h3 { font-size: 2vw; text-transform: uppercase; }
.s-kteam .mics { font-size: 3vw; margin: 1vw 0; min-height: 3.6vw; }
.s-kteam .pts { font-family: var(--display); font-weight: 900; font-size: 3.2vw; color: var(--green); }

.s-final { text-align: center; position: relative; }
.s-final .trophy { font-size: 10vw; animation: pop 1s cubic-bezier(.2,1.4,.4,1); display: inline-block; filter: drop-shadow(0 0 3vw rgba(245,197,66,.6)); }
.s-final .lbl { font-size: 2vw; font-weight: 800; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.s-final h1 { font-size: 8vw; font-weight: 900; text-transform: uppercase; line-height: .9; margin: 1vw 0; color: var(--tc); text-shadow: 0 0 4vw var(--tc); }
.s-final .who { font-size: 2.6vw; font-weight: 800; }
.s-final .pts { font-size: 2vw; color: var(--muted); margin-top: .6vw; }
.s-final .others { display: flex; justify-content: center; gap: 2vw; margin-top: 3vw; }
.s-final .others div { background: var(--panel); border: 1px solid var(--line); border-radius: 1vw; padding: 1vw 1.8vw; font-size: 1.7vw; font-weight: 700; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.s-results { display: grid; gap: 1.2vw; }
.s-results .r { display: grid; grid-template-columns: 22vw 1fr 8vw 7vw; gap: 1.6vw; align-items: center; font-size: 2vw; font-weight: 800; }
.s-results .track { height: 3vw; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.s-results .track i { display: block; height: 100%; background: var(--tc); border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.2,1,.3,1); }
.s-results .plus { font-family: var(--display); color: var(--green); text-align: right; }

/* ============================== HOST ============================== */
body.host .wrap { max-width: 760px; margin: 0 auto; padding: 0 14px 90px; }
.hbar { position: sticky; top: 0; z-index: 20; background: rgba(6,16,10,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin: 0 -14px 14px; padding: 10px 14px; }
.hbar .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hbar .mark { font-size: .95rem; }
.scr { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; scrollbar-width: none; }
.scr::-webkit-scrollbar { display: none; }
.scr button { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: .5em .8em; font-weight: 700; font-size: .85rem; }
.scr button.on { background: var(--green); color: #052611; border-color: var(--green); }
.scr .lbl { flex: none; align-self: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-right: 2px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(7, 1fr); background: rgba(6,16,10,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabs button { border: 0; background: none; color: var(--muted); font-size: .62rem; font-weight: 700; padding: 6px 2px; border-radius: 10px; display: grid; gap: 2px; justify-items: center; }
.tabs button span { font-size: 1.25rem; }
.tabs button.on { color: var(--green); background: var(--panel); }
.sec { display: grid; gap: 12px; }
.sec h2 { font-size: 1.25rem; }
.sec h3 { font-size: 1rem; }
.rowx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rowx.between { justify-content: space-between; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--panel2); font-size: 1.2rem; font-weight: 800; }
.stepper b { min-width: 44px; text-align: center; font-family: var(--display); font-size: 1.2rem; }
.hteam { border-left: 6px solid var(--tc); }
.hteam .tname { font-family: var(--display); font-weight: 800; font-size: 1.1rem; background: none; border: 0; padding: 0; text-align: left; }
.prow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: 0; }
.prow .pn { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow select { width: auto; padding: .45em .5em; font-size: .85rem; border-radius: 9px; max-width: 46%; }
.xbtn { border: 0; background: #2a1213; color: #ffb3b5; width: 32px; height: 32px; border-radius: 9px; font-weight: 800; flex: none; }
.scoregrid { display: grid; gap: 8px; }
.scoregrid .sg { display: grid; grid-template-columns: 1fr 110px 54px; gap: 8px; align-items: center; }
.scoregrid .sg .tl { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.scoregrid input { text-align: center; padding: .6em; }
.scoregrid .pp { font-family: var(--display); font-weight: 900; text-align: center; color: var(--green); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; user-select: none; }
.toggle input { width: 44px; height: 26px; appearance: none; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; position: relative; cursor: pointer; transition: .2s; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .2s; }
.toggle input:checked { background: var(--green-d); border-color: var(--green); }
.toggle input:checked::after { left: 20px; background: #fff; }
.qctl .qbig { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.qctl .hopts { display: grid; gap: 6px; margin-top: 10px; }
.qctl .hopt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; }
.qctl .hopt .sh { width: 26px; height: 26px; border-radius: 7px; background: var(--oc-bg); display: grid; place-items: center; font-size: .8rem; color: #fff; flex: none; }
.qctl .hopt.right { border-color: var(--green); background: rgba(62,224,122,.12); }
.qctl .hopt .n { margin-left: auto; font-weight: 800; color: var(--muted); }
.statusline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.bigtime { font-family: var(--display); font-size: 1.6rem; font-weight: 900; color: var(--text); }
.rounds { display: grid; gap: 8px; }
.rounds .rd { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.rounds .rd.cur { border-color: var(--green); }
.rounds .rd .t { flex: 1; font-weight: 700; }
.rounds .rd .t small { display: block; color: var(--muted); font-weight: 500; }
.chip-done { color: var(--green); font-weight: 800; font-size: .8rem; }
.waitlist { font-size: .85rem; color: var(--muted); }
.hl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hl th, .hl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.hl th { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.hl td.tn { text-align: left; font-weight: 700; }
.hl td.tot { font-family: var(--display); font-weight: 900; color: var(--green); font-size: 1.05rem; }
.qe-round { border-left: 4px solid var(--green); }
.qe-q { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: grid; gap: 8px; }
.qe-q .opt-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; }
.qe-q .opt-row input[type=radio] { width: 22px; height: 22px; accent-color: var(--green); justify-self: center; }
.qe-q .thumb { max-width: 160px; max-height: 100px; border-radius: 8px; display: block; }
.pinpad { max-width: 340px; margin: 12vh auto 0; text-align: center; display: grid; gap: 14px; }
.pinpad input { font-size: 2rem; letter-spacing: .4em; text-align: center; font-weight: 800; }
.share { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.share input { font-size: .85rem; }
.wa { background: #25d366; color: #052611; }

/* ============================== v2 additions ============================== */
.ok { color: var(--green); } .bad { color: #ff8a8d; }
.chip-ok { font-size: .72rem; font-weight: 800; color: #052611; background: var(--green); border-radius: 99px; padding: .15em .55em; }

/* player: station scorecards */
.tstrip { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--tc); margin-bottom: 10px; }
.tstrip b { font-family: var(--display); text-transform: uppercase; }
.tstrip span { color: var(--muted); font-size: .85rem; }
.headto { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 12px; border-radius: 16px; background: linear-gradient(90deg, rgba(62,224,122,.16), rgba(62,224,122,.04)); border: 1px solid var(--green); margin-bottom: 10px; }
.headto .ic { font-size: 1.8rem; } .headto b { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: .55em .9em; font-weight: 700; font-size: .88rem; }
.chip.on { background: var(--green); color: #052611; border-color: var(--green); }
.sc .rule { font-size: .85rem; margin: .4em 0 .6em; }
.locked { background: #2a2410; border: 1px solid #6b5a1f; color: var(--gold); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.sclist { display: grid; gap: 6px; }
.scrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 10px 12px; }
.scrow.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.scrow .nm { font-weight: 700; } .scrow .nm small { color: var(--muted); font-weight: 500; }
.scrow .ent { display: flex; gap: 4px; }
.scrow .ent i { font-style: normal; font-size: .75rem; font-weight: 700; padding: .15em .45em; border-radius: 6px; background: #08160d; color: var(--muted); }
.scrow .ent i.miss { color: #ff8a8d; }
.scrow b { font-family: var(--display); min-width: 3.6em; text-align: right; }
.padcard { margin-top: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.slot { border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 8px; display: grid; gap: 2px; text-align: center; }
.slot small { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.slot b { font-family: var(--display); font-size: 1.05rem; }
.slot.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.readout { text-align: center; font-family: var(--display); font-weight: 900; font-size: 2.6rem; margin: 4px 0 10px; }
.readout small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; min-height: 54px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.key:active { background: var(--line); }
.key:disabled { opacity: .35; }
.key.miss { color: #ff8a8d; }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.mod { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: .65em; font-weight: 800; }
.mod.on { background: var(--gold); color: #2b1d00; border-color: var(--gold); }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.board .key { min-height: 48px; font-size: 1.1rem; }
.board3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.stepper.big button { width: 60px; height: 60px; font-size: 1.6rem; }
.stepper.big b { min-width: 80px; font-size: 2rem; }
.stepper.sm button { width: 34px; height: 34px; font-size: 1rem; }
.stepper.sm b { min-width: 40px; font-size: 1rem; }

/* player: typed answers */
#tform { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.tans { font-size: 1.2rem; font-weight: 700; padding: .85em .9em; }
.tstat { margin: 10px 2px; color: var(--muted); font-size: .9rem; }
.tstat b { color: var(--text); }
.mates-card { margin-top: 10px; padding: 12px 14px; }
.mates-card:empty { display: none; }
h3.sm { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.mrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-weight: 600; }
.mrow:first-of-type { border-top: 0; }
.answerbox { margin: 14px 0 8px; padding: 14px; border-radius: 16px; background: rgba(62,224,122,.12); border: 2px solid var(--green); text-align: center; }
.answerbox small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.answerbox b { font-family: var(--display); font-size: 1.6rem; }
.answerbox.sm { text-align: left; padding: 10px 12px; margin: 10px 0; }
.answerbox.sm b { font-size: 1.15rem; display: block; }
.answerbox.sm span { font-size: .8rem; }

/* host bits */
.hteamsc { border-left: 5px solid var(--tc); padding: 8px 0 4px 12px; margin-top: 10px; }
.kteam { border-left: 5px solid var(--tc); padding: 6px 0 6px 12px; margin-top: 10px; }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kchip { border: 1px solid var(--line); background: var(--panel2); border-radius: 999px; padding: .55em .9em; font-weight: 700; }
.kchip.on { background: var(--green); color: #052611; border-color: var(--green); }
.kchip:disabled { opacity: .35; text-decoration: line-through; }
.groups { display: grid; gap: 6px; }
.grp { display: grid; grid-template-columns: 1fr 40px 40px; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.grp.ok { border-color: rgba(62,224,122,.6); } .grp.bad { border-color: rgba(255,90,95,.4); }
.grp b { font-weight: 700; } .grp small { display: block; color: var(--muted); font-size: .78rem; }
.mk { height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-weight: 900; color: var(--muted); }
.mk.on[data-right="1"] { background: var(--green); color: #052611; border-color: var(--green); }
.mk.on[data-right="0"] { background: #5a1f22; color: #ffd0d1; border-color: #8a2e32; }
.tres { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .88rem; }
.tres b { color: var(--green); }
.tres small { color: var(--muted); }

/* telly bits */
.s-live { width: 100%; border-collapse: separate; border-spacing: 0 .5vw; }
.s-live th { font-size: 1.2vw; color: var(--muted); font-weight: 700; padding: 0 .6vw; }
.s-live td { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: .7vw; }
.s-live td.tn { text-align: left; border-left: .5vw solid var(--tc); border-radius: .8vw 0 0 .8vw; font-family: var(--display); font-size: 1.6vw; text-transform: uppercase; }
.s-live td:last-child { border-right: 1px solid var(--line); border-radius: 0 .8vw .8vw 0; }
.s-live td b { display: block; font-family: var(--display); font-size: 1.8vw; }
.s-live td small { color: var(--muted); font-size: 1vw; }
.s-live td.done b { color: var(--green); }
.s-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr)); gap: 1.2vw; margin-bottom: 1.6vw; }
.s-rules div { background: var(--panel); border: 1px solid var(--line); border-radius: 1.2vw; padding: 1.2vw 1.4vw; }
.s-rules .ic { font-size: 2.4vw; } .s-rules b { display: block; font-size: 1.7vw; margin-top: .3vw; }
.s-rules p { margin: .4vw 0 0; color: var(--muted); font-size: 1.15vw; line-height: 1.35; }
.s-typing { font-size: 2.6vw; font-weight: 800; color: var(--muted); border: .25vw dashed var(--line); border-radius: 1.6vw; padding: 2vw 4vw; animation: pulse 2s infinite; }
.s-ans { text-align: center; background: rgba(62,224,122,.12); border: .3vw solid var(--green); border-radius: 1.6vw; padding: 1.2vw; animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
.s-ans small { display: block; font-size: 1.3vw; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.s-ans b { font-family: var(--display); font-size: 4.4vw; line-height: 1.05; }
.s-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: .8vw; margin-top: 1.2vw; }
.s-groups span { font-size: 1.7vw; font-weight: 800; padding: .5vw 1.2vw; border-radius: 99px; background: var(--panel2); border: .2vw solid var(--line); }
.s-groups span.ok { border-color: var(--green); color: var(--green); }
.s-groups span.bad { border-color: #6b2a2d; color: #ff9fa2; text-decoration: line-through; text-decoration-thickness: .12vw; }
.s-groups em { font-style: normal; opacity: .7; }
.s-wait { margin-left: auto; color: var(--gold); font-weight: 700; }
.s-tres { display: flex; gap: 1vw; margin-top: 1vw; }
.s-tres span { flex: 1; display: flex; align-items: center; gap: .8vw; background: var(--panel); border: 1px solid var(--line); border-top: .45vw solid var(--tc); border-radius: 1vw; padding: .8vw 1.2vw; font-size: 1.5vw; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.s-tres em { font-style: normal; font-family: var(--display); font-size: 2.2vw; color: var(--dim); margin-left: auto; }
.s-tres em.up { color: var(--green); }
.s-tres small { color: var(--muted); font-size: 1.1vw; }
.s-karaoke { text-align: left; }
.s-karaoke .kh { display: flex; align-items: center; gap: 2vw; }
.s-karaoke .kh .mic { font-size: 6vw; }
.s-karaoke .kh h1 { font-size: 5vw; }
.s-karaoke .kh p { margin: .3vw 0 0; font-size: 1.6vw; }
.klast { margin: 1.4vw 0 1.8vw; font-size: 2vw; color: var(--muted); }
.klast b { color: var(--text); } .klast em { font-style: normal; color: var(--green); font-weight: 800; }
.s-kteam ul { list-style: none; padding: 0; margin: 1vw 0 0; display: grid; gap: .5vw; }
.s-kteam li { display: flex; justify-content: space-between; gap: 1vw; font-size: 1.5vw; font-weight: 700; padding: .4vw .8vw; border-radius: .7vw; background: rgba(255,255,255,.03); }
.s-kteam li.up { background: rgba(62,224,122,.1); }
.s-kteam li em { font-style: normal; font-size: 1vw; color: var(--green); margin-left: .6vw; text-transform: uppercase; letter-spacing: .08em; }
.s-kteam .pts { font-size: 3.4vw; }
.s-live td.nowat { text-align: left; font-weight: 800; font-size: 1.8vw; color: var(--gold); white-space: nowrap; }
.s-live td.nowat span { font-size: 2.4vw; margin-right: .6vw; vertical-align: middle; }
.s-live td.now { box-shadow: inset 0 0 0 .2vw var(--gold); }
.s-live tr { animation: slidein .6s cubic-bezier(.2,1,.3,1) both; }
.s-kteam .rowx { flex-wrap: nowrap; align-items: center; }
.s-kteam h3 { font-size: 1.6vw; line-height: 1.05; }
