:root{color-scheme:light;--ink:#163124;--cream:#fff6df;--yellow:#ffcc42;--orange:#ffa544;--green:#1b613e;--outline:3px solid var(--ink)}
*{box-sizing:border-box}html{min-height:100%;background:#1b613e}body{margin:0;min-height:100dvh;font:16px/1.5 system-ui,-apple-system,sans-serif;color:var(--cream);background-color:#1b613e;background-image:repeating-linear-gradient(135deg,transparent 0 24px,#ffffff04 24px 48px),radial-gradient(ellipse at 20% 0,#449c55,transparent 70%);isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 85% 30%,#ffcc4212 0,transparent 40%);animation:ambient 14s ease-in-out infinite alternate}
@keyframes ambient{to{transform:translateY(6%);opacity:.3}}
header{max-width:1200px;margin:auto;padding:20px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:10px;font-weight:800;letter-spacing:.1em}
header a{color:var(--cream);text-decoration:none;min-height:44px;display:flex;align-items:center;font-size:13px;letter-spacing:0}header>span{opacity:.85}.live-badge{display:flex;align-items:center;gap:8px}.live-badge i{width:8px;height:8px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 5px #ffcc4214}
main{max-width:1120px;margin:auto;padding:20px 30px 32px}h1,h2,h3,p{margin-top:0}button,input,select{font:inherit}button{min-height:54px;border:var(--outline);border-radius:16px;padding:14px 22px;background:var(--yellow);color:var(--ink);font-weight:900;cursor:pointer;box-shadow:0 5px 0 var(--ink);transition:transform .16s,box-shadow .16s,background .16s}button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 0 var(--ink)}button:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}button:disabled{cursor:default}button:disabled:not(.answer){opacity:.55;box-shadow:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #f669b4;outline-offset:5px}.hidden,[hidden]{display:none!important}
.app-intro{display:grid;grid-template-columns:230px 1fr;gap:38px;align-items:center;max-width:880px;margin:0 auto 40px}.app-intro img{width:100%;height:auto;border-radius:28px;transform:rotate(-5deg);filter:drop-shadow(0 10px 0 #103c2966)}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.14em}.app-intro h1,.stage-heading h2{font-size:clamp(48px,7vw,80px);font-weight:1000;font-style:italic;line-height:1;letter-spacing:-.055em;margin:12px 0;color:var(--yellow);text-shadow:3px 4px 0 var(--ink)}.intro-sub{font-size:24px;font-weight:850;margin-bottom:12px}.app-intro p:not(.intro-sub){font-size:14px;max-width:560px}.app-intro #availability{font-size:11px;font-weight:700;background:#103f2a70;border:1px solid #ffffff30;border-radius:12px;padding:10px 14px;margin-bottom:0}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.setup-card{color:var(--ink);padding:30px;background:var(--cream);border:var(--outline);border-radius:26px;box-shadow:0 8px 0 #103324;position:relative}.setup-card::after{content:"";position:absolute;top:25px;right:24px;width:14px;height:14px;border:3px solid var(--ink);border-radius:50%;background:var(--yellow)}.join-card::after{background:#f365aa}.card-kicker{font-weight:900;font-size:10px;letter-spacing:.13em;display:block;margin-bottom:12px}.setup-card h2{font-size:30px;font-weight:950;letter-spacing:-.045em;margin-bottom:10px;line-height:1.1}.setup-card>p{font-size:13px;max-width:330px;margin-bottom:24px;color:#445548}.setup-card label{display:block;font-size:12px;font-weight:850;margin-bottom:6px}input,select{width:100%;background:#fffdf4;border:2px solid #6e7a63;border-radius:12px;padding:12px 14px;color:var(--ink);min-height:50px;margin:0 0 20px;font-size:16px}input::placeholder{color:#667565}#code{letter-spacing:.18em;font-weight:900;text-transform:uppercase}#create,#join{width:100%;display:flex;align-items:center;justify-content:space-between}#join{background:#f7a9cb}#error:empty{display:none}#error{background:#fff0ef;color:#8d2630;border:2px solid #8d2630;border-radius:14px;padding:14px;margin-top:24px}.privacy-note{font-size:11px;line-height:1.8;max-width:770px;margin:26px auto 0;color:#e4edda;text-align:center}
body.in-game .app-intro{display:none}.stage-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}.stage-heading h2{font-size:clamp(44px,6vw,72px);margin:12px 0 20px}.stage-heading h2 span{color:#ff9b51}.stage-heading img{width:124px;height:124px;border-radius:23px;transform:rotate(5deg);filter:drop-shadow(4px 6px 0 #10332488)}.round-label{display:inline-block;background:var(--cream);color:var(--ink);padding:6px 12px;border:2px solid var(--ink);border-radius:30px;font-size:11px;font-weight:950;letter-spacing:.06em}.round-dots{display:flex;gap:7px;flex-wrap:wrap}.round-dot{width:13px;height:13px;background:#ffffff30;border:2px solid var(--ink);border-radius:50%;display:block}.round-dot.done{background:#89e4a2}.round-dot.active{background:var(--yellow);box-shadow:0 0 0 4px #ffcc4220;transform:scale(1.16)}
.room-strip{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 12px;font-size:12px;font-weight:800}.room-strip p{margin:0}#status{font:850 13px/1.4 ui-monospace,monospace;letter-spacing:.04em}#identity{margin-left:auto;color:#e0ecd7}#timer{min-width:76px;text-align:center;background:var(--cream);color:var(--ink);border:2px solid var(--ink);border-radius:30px;padding:6px 12px;font-variant-numeric:tabular-nums;font-weight:950}.urgent{background:#ffd1d5!important;color:#8b1e2b!important}.bar{height:6px;background:#103f2b;border-radius:20px;overflow:hidden;margin-bottom:20px}.bar span{display:block;height:100%;background:var(--yellow);transition:width .4s}
.question-card{background:var(--cream);color:var(--ink);border:var(--outline);border-radius:26px;padding:clamp(22px,4vw,44px);box-shadow:0 9px 0 var(--ink);position:relative}#received{font-size:11px;font-weight:850;color:#566447;text-transform:uppercase;letter-spacing:.04em;margin-bottom:16px}#question{font-size:clamp(25px,3.5vw,43px);line-height:1.16;font-weight:950;letter-spacing:-.035em;max-width:880px;margin:0 0 28px}
.answer{display:flex;align-items:center;gap:13px;text-align:left;background:#fffdf4;border:var(--outline);border-radius:40px;color:var(--ink);box-shadow:0 4px 0 var(--ink);padding:10px 16px 10px 10px;font-size:16px;min-height:66px;overflow-wrap:anywhere}.answer-letter{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;color:var(--ink);background:#fb7cb8;border:2px solid var(--ink);border-radius:50%;font-size:18px;font-weight:950}.answer:nth-child(2) .answer-letter{background:#6ad7ee}.answer:nth-child(3) .answer-letter{background:#68d38a}.answer:nth-child(4) .answer-letter{background:#ffb45c}.answer-label{flex:1}.answer-mark{font-size:20px}.answer:disabled{opacity:1}.answer:disabled:not(.correct):not(.wrong){background:#eee9d8}.answer.correct{background:#c4f2cb;border-color:#195e37;box-shadow:0 4px 0 #195e37}.answer.correct .answer-mark{color:#125b2d}.answer.wrong{background:#ffd9db;border-color:#9c3544;box-shadow:0 4px 0 #9c3544}.answer.wrong .answer-mark{color:#9c3544}
#feedback{font-size:13px;font-weight:650;line-height:1.7;margin:24px 0 0}#feedback:empty{display:none}#controls{display:flex;justify-content:flex-end;gap:12px;margin:25px 0 16px}#controls:empty{display:none}#controls button{border-radius:40px;min-width:200px}.scoreboard{display:grid;grid-template-columns:240px 1fr;gap:26px;margin-top:28px;padding:24px;border:2px solid #ffffff35;border-radius:24px;background:#113e2b70}.scoreboard h3{font-size:26px;letter-spacing:-.04em;margin:8px 0 0;font-weight:900}.scoreboard .eyebrow{color:#e6d793}#scores{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0;margin:0}#scores li{display:flex;align-items:center;gap:10px;background:#fff6df;color:var(--ink);padding:11px 12px;border-radius:12px;min-width:0;font-size:13px}#scores li>span:nth-child(2){flex:1;overflow-wrap:anywhere}#scores strong{white-space:nowrap;font-size:12px}.score-rank{font-weight:950;color:#688158}#scores li:first-child .score-rank{background:var(--yellow);color:var(--ink);border-radius:6px;padding:2px 5px}.good-answer .question-card{box-shadow:0 9px 0 var(--ink),0 0 0 7px #a4ef7433}.good-answer #feedback{color:#135b32}
#connection:empty{display:none}#connection{padding:12px;background:#fff0ef;color:#86212f;border-radius:12px}#leave{display:block;background:transparent;border:1px solid #ffffff55;color:var(--cream);box-shadow:none;min-height:44px;margin:28px auto;font-size:12px}.coming-soon{text-align:center;font-size:10px;letter-spacing:.08em;margin:28px 0 0;opacity:.8}.coming-soon span{font-style:italic;letter-spacing:0;font-size:13px;margin-left:6px}
.round-enter .question-card{animation:question-in .35s cubic-bezier(.2,.7,.3,1)}.round-enter[data-phase="reveal"] .correct{animation:correct-pop .4s}.round-enter[data-phase="finished"] .scoreboard{animation:correct-pop .5s}
@keyframes question-in{from{opacity:.3;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}@keyframes correct-pop{50%{transform:scale(1.025)}}
#quiz-splash{position:fixed;inset:0;z-index:100;display:grid;place-items:center;text-align:center;background:#1b613e;transition:opacity .3s}#quiz-splash img{width:min(52vw,230px);height:auto;border-radius:30px;transform:rotate(-4deg)}#quiz-splash h2{font-size:28px;font-weight:950;margin:28px 0 8px}#quiz-splash p{font-size:13px}.is-ready{opacity:0;pointer-events:none}.splash-loader{width:30px;height:30px;border:3px solid #ffffff35;border-top-color:var(--yellow);border-radius:50%;margin:24px auto;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1400px){body.in-game main{max-width:1280px}.question-card{padding:42px 48px}.answer{font-size:20px;min-height:74px}}
@media(max-width:700px){header{padding:12px 18px}header>span:not(.live-badge){display:none}.live-badge{font-size:8px}main{padding:12px 16px 30px}.app-intro{grid-template-columns:110px 1fr;gap:20px;margin:8px 0 28px;align-items:start}.app-intro img{margin-top:15px;border-radius:18px}.app-intro h1{font-size:42px;margin:10px 0}.app-intro .eyebrow{font-size:8px;letter-spacing:.06em}.intro-sub{font-size:19px}.app-intro p:not(.intro-sub){font-size:12px}.app-intro #availability{margin-left:-130px;margin-top:20px;max-width:none}.setup-grid{grid-template-columns:1fr;gap:24px}.setup-card{padding:24px}.setup-card h2{font-size:28px}.stage-heading{gap:14px;margin-bottom:18px}.stage-heading img{width:86px;height:86px;border-radius:17px}.stage-heading h2{font-size:43px;margin:12px 0 16px}.round-label{font-size:9px}.round-dot{width:11px;height:11px}.round-dots{gap:6px}.room-strip{gap:10px}#status{font-size:11px}#identity{font-size:11px}#timer{padding:4px 9px;font-size:12px;min-width:66px}.question-card{padding:22px 18px;border-radius:21px}#question{font-size:27px;margin-bottom:22px}#answers{grid-template-columns:1fr;gap:13px}.answer{min-height:60px;font-size:15px}.answer-letter{flex-basis:33px;width:33px;height:33px;font-size:16px}.scoreboard{grid-template-columns:1fr;gap:18px;padding:20px}.scoreboard h3{font-size:24px}#scores{grid-template-columns:1fr}#controls button{width:100%;font-size:14px}.privacy-note{font-size:10px;text-align:left}#feedback{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}button:hover:not(:disabled){transform:none}}
