[hidden] { display: none !important; }
:root {
  --bg: #100c24; --ink: #fffaf2; --muted: rgba(255, 250, 242, .65); --panel: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .15);
  --c0: #ff4f7b; --c1: #3fa9f5; --c2: #ffc93c; --c3: #2fd48a; --c4: #a66cff; --c5: #ff8c42;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body.player { background: var(--bg) radial-gradient(80% 50% at 50% -10%, color-mix(in srgb, var(--accent) 40%, transparent), transparent) no-repeat; color: var(--ink); font-family: var(--font); font-size: 17px; min-height: 100dvh; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top)); font-weight: 700; }
.brand { background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 14px; letter-spacing: .03em; }
#team { color: var(--muted); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding: 8px 16px 32px; max-width: 560px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(12px); } }
.centre { text-align: center; padding: 40px 22px; }
h1 { font-size: 30px; margin: 4px 0 16px; line-height: 1.05; }
h2 { font-size: 24px; margin: 8px 0 10px; line-height: 1.15; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); font-size: 13px; }
.muted { color: var(--muted); }
label { display: block; font-weight: 700; margin-bottom: 14px; font-size: 15px; }
input { display: block; width: 100%; margin-top: 6px; padding: 15px 16px; font: inherit; font-size: 19px; border-radius: 14px; border: 2px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--ink); outline: none; }
input:focus { border-color: var(--accent); }
input[name=code] { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }
.btn { appearance: none; border: 0; font: inherit; font-weight: 800; background: var(--accent); color: #fff; border-radius: 14px; padding: 13px 20px; cursor: pointer; }
.btn.big { width: 100%; font-size: 19px; padding: 16px; margin-top: 6px; }
.btn:disabled { opacity: .5; }
.err { color: #ff8fa8; font-weight: 700; min-height: 1em; margin: 6px 0; }

.qhead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tbar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tbar i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width .2s linear; }
.tbar i.urgent { background: #ff3b3b; }
.tleft { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.prompt { font-size: 22px; }
.qimg { width: 100%; max-height: 34vh; object-fit: contain; border-radius: 14px; margin: 4px 0 12px; background: rgba(0, 0, 0, .2); }
.choices { display: grid; gap: 10px; margin-top: 8px; }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; border: 0; border-radius: 16px; padding: 16px; font: inherit; font-size: 19px; font-weight: 800; color: #14102a; background: var(--oc); cursor: pointer; transition: transform .12s, opacity .2s, box-shadow .2s; min-height: 64px; }
.choice:active { transform: scale(.97); }
.c0 { --oc: var(--c0); } .c1 { --oc: var(--c1); } .c2 { --oc: var(--c2); } .c3 { --oc: var(--c3); } .c4 { --oc: var(--c4); } .c5 { --oc: var(--c5); }
.choices:has(.picked) .choice:not(.picked) { opacity: .4; }
.choice.picked { box-shadow: 0 0 0 4px #fff; }
.choice:disabled { cursor: default; }
.letter { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 16, 42, .18); }
.choice.picked .letter { background: #fff; }
.note { text-align: center; color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.textform { display: grid; gap: 8px; }
.saved { text-align: center; margin: 14px 0 0; }

.wait .pulse { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.7); opacity: .5; } }
.result .big-icon { width: 96px; height: 96px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; font-size: 52px; font-weight: 800; animation: popin .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes popin { from { transform: scale(.2); } }
.result.good .big-icon { background: #2fd48a; color: #08331f; }
.result.bad .big-icon { background: #ff4f6a; color: #3a0710; }
.result.none .big-icon { background: var(--line); }
.result.good { border-color: #2fd48a; }
.ans { font-size: 24px; font-weight: 800; margin: 2px 0 0; }
.plus { color: #2fd48a; font-weight: 800; }
.result .plus { font-size: 22px; margin: 0 0 6px; }
.place { font-size: 84px; font-weight: 800; line-height: 1; margin: 12px 0 4px; color: var(--accent); }
.score { font-size: 20px; }
.score b { font-size: 30px; }
#offline { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #ff3b3b; color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; display: none; }
body.offline #offline { display: block; }

.media-note { text-align: center; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px; font-weight: 700; margin: 4px 0 10px; }
.note.left { text-align: left; margin: 0 0 8px; }
.textform.multi input { margin-top: 0; font-size: 18px; padding: 12px 14px; }
.my-parts { text-align: left; display: inline-block; margin: 8px auto 0; padding-left: 22px; font-weight: 700; }
.my-parts.answers { font-size: 19px; }
.result.part .big-icon { background: #ffc93c; color: #3a2a00; font-size: 34px; }
.result .big-icon { font-size: 46px; }
.host-link { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.host-link a { color: var(--ink); }
