@font-face { font-family: Unbounded; src: url("/assets/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Outfit; src: url("/assets/Outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg0: #12052E; --bg1: #2B0F6B; --surface: #231055; --raised: #341A7C; --ink: #0B0E2E;
  --text: #FFFFFF; --muted: #CFC5F7; --faint: #9A8FD0; --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.07);
  --amber: #FFC233; --amber-deep: #E08600; --coral: #FF6A4D; --coral-deep: #D23A2E;
  --aqua: #3DE8D6; --aqua-deep: #0FA39C; --green: #3DDC84; --green-deep: #16934D;
  --red: #FF5A5F; --red-deep: #C42B3A;
  --violet: #9B7BFF; --violet-deep: #5E3FD6; --pink: #FF5FA2; --pink-deep: #C92A73; --blue: #4DA3FF; --blue-deep: #2361C9;
  --display: Unbounded, "Arial Black", system-ui, sans-serif;
  --body: Outfit, -apple-system, system-ui, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  --r: 24px;
}
html:lang(hi), html:lang(ja), html:lang(ko) { --display: var(--body); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg0); color: var(--text);
  font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Stage: purple radial glow and slow light rays, like the landing page. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 110% 70% at 50% -5%, #5B2BD6 0%, var(--bg1) 40%, var(--bg0) 82%); }
.bg::before { content: ""; position: absolute; left: -50%; right: -50%; top: -60%; height: 180%;
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, 0.05) 0 5deg, transparent 5deg 12deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 60%);
  animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(1100px, 100%); margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 4px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 0 rgba(11, 14, 46, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.word { font: 900 18px/1 Unbounded, "Arial Black", sans-serif; letter-spacing: -0.03em; white-space: nowrap; }
.word b { color: var(--amber); font-weight: 900; }
.word b::after { content: "!"; color: var(--coral); }
.lang { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px 0 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); cursor: pointer; }
.lang:focus-within { outline: 2px solid var(--aqua); outline-offset: 2px; }
.lang .globe { font-size: 16px; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: 0; padding: 0 18px 0 2px;
  font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; max-width: 130px; }
.lang::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.lang option { background: var(--surface); color: var(--text); }

/* Reconnecting pill */
.net { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(28, 12, 70, 0.92); border: 1px solid rgba(255, 194, 51, 0.5); color: var(--amber); font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 30px rgba(5, 2, 20, 0.5); animation: drop 0.25s ease-out; }
.net::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: turn 0.8s linear infinite; }
@keyframes drop { from { transform: translate(-50%, 16px); opacity: 0; } }

/* Layout */
main { width: min(560px, 100%); margin: 0 auto; padding: 8px 16px max(32px, env(safe-area-inset-bottom)); }
body.wide main { width: min(880px, 100%); }
.screen { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.screen.center { align-items: center; text-align: center; }
.screen.center > .card { align-self: stretch; text-align: left; }
.enter { animation: rise 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.center { text-align: center; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.title { font: 800 clamp(24px, 6.4vw, 34px)/1.15 var(--display); overflow-wrap: anywhere; text-wrap: balance; }
.title.big { font-size: clamp(28px, 8vw, 42px); text-shadow: 0 5px 0 rgba(11, 14, 46, 0.4); }
h2 { font: 800 20px/1.25 var(--display); }
h3 { font: 800 17px/1.25 var(--display); }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; max-width: 30em; }
.label { color: var(--faint); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.kicker { font: 800 13px/1.3 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); overflow-wrap: anywhere; }
.hero-emoji { font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 0 rgba(11, 14, 46, 0.35)); margin-top: 12px; }
.hero-emoji.small { font-size: 44px; margin: 0; }
.bounce { animation: bounce 1s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes bounce { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } }

/* Cards */
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(5, 2, 20, 0.35); }
.card > * + * { margin-top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; padding: 14px 22px;
  border: 0; border-radius: 18px; background: var(--amber); color: #1C1300; font: 800 18px/1.15 var(--body); text-decoration: none;
  box-shadow: 0 5px 0 var(--amber-deep), 0 12px 24px rgba(224, 134, 0, 0.25); transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--amber-deep); }
.btn:disabled { background: #4A3A86; color: #B9AEE8; box-shadow: 0 5px 0 #2E2160; cursor: default; }
.btn.busy:disabled { background: var(--amber); color: #1C1300; box-shadow: 0 5px 0 var(--amber-deep); opacity: 0.75; }
.btn.busy { opacity: 0.8; }
.btn.huge { min-height: 68px; font-size: 22px; max-width: 420px; }
.btn.small { width: auto; min-height: 46px; padding: 10px 18px; font-size: 16px; border-radius: 14px; box-shadow: 0 4px 0 var(--amber-deep); }
.btn:focus-visible, .link:focus-visible, .opt:focus-visible, .av:focus-visible, .name:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.pulse { position: relative; }
.pulse:not(:disabled)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: ring 2.2s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); } 50% { box-shadow: 0 0 30px 2px rgba(255, 194, 51, 0.5); } }
.link { align-self: center; background: none; border: 0; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(207, 197, 247, 0.4); }

/* Spinner */
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--aqua); animation: turn 0.8s linear infinite; margin: 18px auto; }
.spinner.big { width: 56px; height: 56px; border-width: 5px; border-top-color: var(--amber); }
@keyframes turn { to { transform: rotate(360deg); } }
.boot { padding-top: 22vh; }

/* Code entry */
.code-screen { padding-top: 4vh; }
.code-form { display: flex; flex-direction: column; gap: 14px; }
.code-wrap { position: relative; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes span { display: grid; place-items: center; aspect-ratio: 0.82; max-height: 72px; border-radius: 14px;
  background: rgba(11, 14, 46, 0.55); border: 2px solid var(--line); font: 800 clamp(24px, 7.5vw, 34px)/1 var(--display); color: var(--text);
  transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.code-boxes span.filled { background: rgba(61, 232, 214, 0.12); border-color: rgba(61, 232, 214, 0.5); animation: popin 0.18s ease-out; }
.code-wrap:focus-within .code-boxes span.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 194, 51, 0.25); }
.code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; caret-color: transparent; color: transparent; background: transparent; }
@keyframes popin { from { transform: scale(0.8); } }
.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.hint { color: var(--faint); font-size: 15px; text-align: center; }
.hint.bad { color: var(--coral); font-weight: 700; }

/* Quiz info */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font: 800 12px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.tag.live { background: rgba(255, 90, 95, 0.18); color: #FF9A9D; border: 1px solid rgba(255, 90, 95, 0.4); }
.tag.self { background: rgba(61, 232, 214, 0.14); color: var(--aqua); border: 1px solid rgba(61, 232, 214, 0.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 1.6s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.info .title { font-size: clamp(24px, 6.6vw, 32px); }
.by { color: var(--muted); font-weight: 600; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: rgba(11, 14, 46, 0.45); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.facts .ic { font-size: 15px; }
.note { color: var(--amber); font-weight: 700; }
.info.compact .facts li { font-size: 14px; }

/* Who are you */
.form h2 { margin-bottom: 4px; }
.nick-row { display: flex; gap: 12px; align-items: flex-end; }
.me-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 38px;
  background: linear-gradient(145deg, var(--violet), var(--violet-deep)); box-shadow: 0 5px 0 rgba(11, 14, 46, 0.45); }
.field-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.count { color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.count.over { color: var(--coral); }
.field { width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: rgba(11, 14, 46, 0.55);
  font-size: 18px; font-weight: 600; outline: none; transition: border-color 0.15s; }
.field::placeholder { color: var(--faint); font-weight: 400; }
.field:focus { border-color: var(--aqua); }
.field[aria-invalid="true"] { border-color: var(--coral); }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.av { aspect-ratio: 1; min-height: 44px; border-radius: 16px; border: 2px solid transparent; background: rgba(11, 14, 46, 0.45);
  font-size: clamp(24px, 7vw, 32px); line-height: 1; display: grid; place-items: center; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.av:active { transform: scale(0.92); }
.av.on { border-color: var(--amber); background: rgba(255, 194, 51, 0.16); transform: scale(1.06); }
.roster { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; margin-top: 8px; overscroll-behavior: contain; }
.name { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left; border-radius: 14px;
  border: 2px solid var(--line); background: rgba(11, 14, 46, 0.45); font-weight: 600; font-size: 17px; }
.name .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; }
.name.on { border-color: var(--aqua); background: rgba(61, 232, 214, 0.12); }
.name.on .tick { border-color: var(--aqua); background: var(--aqua); }
.name.on .tick::after { content: "✓"; color: var(--ink); font-size: 13px; font-weight: 900; }
.empty { padding: 12px; text-align: center; }
.err { color: var(--coral); font-weight: 700; min-height: 1.5em; }
.err:empty { min-height: 0; margin: 0; }

/* Playing: HUD */
.hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.progress { font: 800 18px/1 var(--display); }
.progress span { color: var(--faint); font-size: 15px; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(11, 14, 46, 0.55);
  border: 1.5px solid rgba(255, 194, 51, 0.6); color: var(--amber); font: 800 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.av-sm { font-size: 22px; line-height: 1; }
.steps { display: flex; gap: 4px; margin-top: -6px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.steps i.done { background: var(--aqua); }
.steps i.now { background: var(--amber); }

/* Timer */
.timer { display: flex; align-items: center; gap: 10px; }
.timer .track { flex: 1; height: 12px; border-radius: 999px; background: rgba(11, 14, 46, 0.6); overflow: hidden; border: 1px solid var(--line); }
.timer .fill { height: 100%; width: 100%; transform-origin: left center; background: linear-gradient(90deg, var(--aqua), var(--green)); border-radius: inherit; }
.timer .secs { flex: none; min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 14, 46, 0.6);
  border: 2px solid var(--aqua); font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.timer.low .fill { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.timer.low .secs { border-color: var(--coral); color: var(--coral); animation: throb 1s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.12); } }

/* Question */
.prompt { padding: 22px 20px; text-align: center; }
.prompt .q { font: 700 clamp(20px, 5.6vw, 28px)/1.3 var(--body); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.prompt .q.long { font-size: clamp(17px, 4.6vw, 22px); }
.prompt .q.xlong { font-size: clamp(16px, 4.2vw, 20px); line-height: 1.35; }
.prompt.small { padding: 14px 18px; }
.prompt.small .q { font-size: clamp(16px, 4.4vw, 20px); color: var(--muted); }
.options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.opt { --c: var(--violet); --d: var(--violet-deep); position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px;
  padding: 12px 16px 12px 12px; border: 0; border-radius: 18px; background: var(--c); color: #fff; text-align: left;
  font: 700 18px/1.25 var(--body); box-shadow: 0 5px 0 var(--d); transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s, filter 0.2s; overflow: hidden; }
.opt.o1 { --c: var(--blue); --d: var(--blue-deep); }
.opt.o2 { --c: var(--amber); --d: var(--amber-deep); color: #1C1300; }
.opt.o3 { --c: var(--pink); --d: var(--pink-deep); }
.opt .letter { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(11, 14, 46, 0.28); font: 800 16px/1 var(--display); color: #fff; }
.opt .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; position: relative; }
button.opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--d); }
.options.locked .opt { cursor: default; }
.options.locked .opt:not(.picked) { opacity: 0.35; filter: saturate(0.5); }
.opt.picked { transform: translateY(2px); box-shadow: 0 3px 0 var(--d), 0 0 0 4px #fff; }
.status { text-align: center; font: 800 18px/1.4 var(--display); min-height: 1.4em; }
.status .muted { font: 600 15px/1.4 var(--body); }

/* Reveal */
.verdict { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; animation: popin 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.verdict .em { font-size: 40px; line-height: 1; }
.verdict .word { font: 900 clamp(26px, 7.5vw, 36px)/1.1 var(--display); text-shadow: 0 4px 0 rgba(11, 14, 46, 0.4); }
.verdict.ok .word { color: var(--green); }
.verdict.bad .word { color: #FF8A8D; }
.pop { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--amber); color: #1C1300; font: 900 20px/1 var(--display);
  box-shadow: 0 4px 0 var(--amber-deep); animation: pts 0.7s cubic-bezier(0.3, 1.8, 0.5, 1) 0.15s both; }
@keyframes pts { from { transform: scale(0) rotate(-12deg); opacity: 0; } }
.options.reveal .opt { box-shadow: none; min-height: 56px; }
.options.reveal .opt.dim { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.options.reveal .opt.dim .letter { background: rgba(255, 255, 255, 0.08); color: var(--faint); }
.options.reveal .opt.ok { background: var(--green); color: #05301A; box-shadow: 0 4px 0 var(--green-deep), 0 0 24px rgba(61, 220, 132, 0.35); }
.options.reveal .opt.bad { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); }
.options.reveal .opt.ok .letter, .options.reveal .opt.bad .letter { background: rgba(255, 255, 255, 0.85); color: inherit; font-size: 20px; }
.options.reveal .opt.ok .letter { color: var(--green-deep); }
.options.reveal .opt.bad .letter { color: var(--red-deep); }
.opt .share { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: rgba(255, 255, 255, 0.1); transition: width 0.6s ease-out; }
.opt.ok .share, .opt.bad .share { background: rgba(255, 255, 255, 0.18); }
.opt .you { flex: none; font-size: 22px; position: relative; }
.opt .n { flex: none; min-width: 34px; padding: 4px 8px; border-radius: 10px; background: rgba(11, 14, 46, 0.35); text-align: center; font: 800 15px/1 var(--display); position: relative; color: #fff; }
.why { border-color: rgba(61, 232, 214, 0.3); background: linear-gradient(135deg, rgba(61, 232, 214, 0.1), rgba(155, 123, 255, 0.1)); }
.why p:last-child { font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.wait { text-align: center; font-weight: 600; padding: 8px 0; }

/* Lobby */
.lobby { padding-top: 3vh; }
.bubble { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 42px; font-size: 76px; line-height: 1;
  background: linear-gradient(145deg, var(--violet), var(--violet-deep)); box-shadow: 0 8px 0 rgba(11, 14, 46, 0.45), 0 0 60px rgba(155, 123, 255, 0.5);
  animation: bob 3s ease-in-out infinite; margin-top: 8px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.my-name { font: 800 20px/1.2 var(--display); overflow-wrap: anywhere; }
.ellipsis { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.ellipsis i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.ellipsis i:nth-child(2) { animation-delay: 0.2s; }
.ellipsis i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 14, 46, 0.5); border: 1px solid var(--line); font-weight: 700; }
.chip.live { color: var(--green); border-color: rgba(61, 220, 132, 0.4); }
.chip.ok { color: var(--green); border-color: rgba(61, 220, 132, 0.4); }
.chip.gold { color: var(--amber); border-color: rgba(255, 194, 51, 0.5); }

/* Intro */
.screen.intro > .card { text-align: center; }
.intro .tags { justify-content: center; }
.rules { color: var(--muted); font-weight: 600; }
.me-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }

/* Leaderboard */
.rank-line { text-align: center; font: 800 20px/1.2 var(--display); color: var(--amber); }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.board .row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); animation: rise 0.35s both; }
.board .row:nth-child(2) { animation-delay: 0.04s; } .board .row:nth-child(3) { animation-delay: 0.08s; } .board .row:nth-child(4) { animation-delay: 0.12s; }
.board .row:nth-child(5) { animation-delay: 0.16s; } .board .row:nth-child(n+6) { animation-delay: 0.2s; }
.board .rk { flex: none; width: 30px; text-align: center; font: 800 16px/1 var(--display); color: var(--faint); }
.board .p1 .rk, .board .p2 .rk, .board .p3 .rk { font-size: 22px; }
.board .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.board .nm em { font-style: normal; color: var(--amber); font-weight: 600; }
.board .sc { flex: none; font: 800 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.board .row.me { background: rgba(255, 194, 51, 0.16); border: 2px solid var(--amber); }
.board .gap { text-align: center; color: var(--faint); line-height: 1; }

/* Done */
.done { padding-top: 0; }
.score-card { text-align: center !important; }
.score-card .label { justify-content: center; }
.big-score { font: 900 clamp(52px, 16vw, 76px)/1 var(--display); color: var(--amber); text-shadow: 0 6px 0 var(--amber-deep), 0 0 40px rgba(255, 194, 51, 0.35); font-variant-numeric: tabular-nums; }
.played .big-score { font-size: clamp(44px, 13vw, 60px); }
.played .label { justify-content: center; }
.cta { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left; border-color: rgba(61, 232, 214, 0.35);
  background: linear-gradient(135deg, rgba(61, 232, 214, 0.12), rgba(155, 123, 255, 0.12)); }
.cta > * + * { margin-top: 0; }
.cta img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 4px 0 rgba(11, 14, 46, 0.45); }
.cta p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cta .btn { grid-column: 1 / -1; width: 100%; background: var(--aqua); color: #04302C; box-shadow: 0 4px 0 var(--aqua-deep); }
.cta .btn:active { box-shadow: 0 1px 0 var(--aqua-deep); }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; opacity: 0.95; animation: fall 3s cubic-bezier(0.25, 0.4, 0.6, 1) forwards; }
.confetti i.round { width: 10px; height: 10px; border-radius: 50%; }
@keyframes fall { to { transform: translate(var(--dx, 0), 105vh) rotate(var(--r, 360deg)); opacity: 0.85; } }

/* Laptops and tablets */
@media (min-width: 720px) {
  main { padding-top: 20px; }
  .top { padding-top: 18px; }
  .word { font-size: 21px; }
  .brand img { width: 40px; height: 40px; }
  .card { padding: 26px; }
  body.wide .options { grid-template-columns: 1fr 1fr; gap: 14px; }
  body.wide .opt { min-height: 88px; font-size: 20px; }
  body.wide .options.reveal .opt { min-height: 72px; }
  .prompt { padding: 32px 28px; }
  .prompt .q { font-size: 30px; }
  .prompt .q.long { font-size: 24px; }
  .prompt .q.xlong { font-size: 22px; }
  .roster { max-height: 340px; }
}
@media (max-width: 370px) {
  .word { font-size: 16px; }
  .lang select { max-width: 96px; font-size: 14px; }
  .card { padding: 16px; }
  .code-boxes { gap: 6px; }
  .avatars { gap: 6px; }
  .opt { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
