:root{--bg: #1b1440;--bg-2: #261c57;--card: #ffffff;--text: #1d1d2b;--text-on-dark: #ffffff;--muted: #5b5b70;--primary: #5b2ee0;--primary-dark: #4321b3;--danger: #b3123a;--ok: #1d7a12;--red: #c8102e;--blue: #0f5bb5;--yellow: #a06f00;--green: #1f6f0a;--radius: 12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(160deg,var(--bg),var(--bg-2))}h1,h2,h3{margin:.4em 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mono{font-family:ui-monospace,SF Mono,Menlo,monospace}.muted{color:var(--muted)}.center-page .muted,.page .muted,.player-page .muted,.projector-page .muted{color:#c9c1ee}.card .muted{color:var(--muted)}.center{text-align:center}.error{color:var(--danger);font-weight:600}.ok-text{color:var(--ok);font-weight:600}.center-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;color:var(--text-on-dark)}.page{max-width:1100px;margin:0 auto;padding:16px;color:var(--text-on-dark)}.page section{margin:24px 0}.page-header,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.logo{font-size:2.6rem;font-weight:900;letter-spacing:-.02em;color:var(--text-on-dark)}.logo.small{font-size:1.4rem}.card{background:var(--card);color:var(--text);border-radius:var(--radius);padding:20px;box-shadow:0 6px 24px #00000040;margin-bottom:16px}.card.narrow{width:100%;max-width:420px;display:flex;flex-direction:column;gap:12px}.row{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.page a,.center-page a{color:#d9ccff}.card a{color:var(--primary)}label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.95rem}label.check{flex-direction:row;align-items:center;font-weight:500}input,select,textarea{font:inherit;padding:10px 12px;border:2px solid #c9c4dd;border-radius:8px;min-height:48px;background:#fff;color:var(--text)}textarea{min-height:72px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #ffbf47;outline-offset:1px}.big-input{font-size:1.6rem;text-align:center;font-weight:700}button,.button{font:inherit;font-weight:700;border:none;border-radius:8px;padding:10px 18px;min-height:48px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--primary);color:#fff}.primary:hover:not(:disabled){background:var(--primary-dark)}.secondary{background:#ece8fb;color:var(--primary-dark)}.small{min-height:36px;padding:6px 12px;font-size:.9rem}.big{font-size:1.2rem;min-height:56px}.link{background:none;color:inherit;text-decoration:underline;padding:4px 6px;min-height:36px;font-weight:600}.page .link{color:#d9ccff}.card .link{color:var(--primary)}.link.danger,.card .link.danger{color:#ff8fa6}.card .link.danger{color:var(--danger)}.small-link{color:#cfc6f5!important}.tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;background:#ece8fb;color:var(--primary-dark);font-size:.75rem;font-weight:700;vertical-align:middle}.table{width:100%;border-collapse:collapse;background:var(--card);color:var(--text);border-radius:var(--radius);overflow:hidden}.table th,.table td{padding:8px 12px;border-bottom:1px solid #ece8fb;text-align:left}.table td.actions{justify-content:flex-end}.table tr.kicked{opacity:.5}.big-code{font-size:1.6rem;font-weight:800;letter-spacing:.15em}.banner{position:fixed;top:0;left:0;right:0;z-index:10;background:#ffbf47;color:#1d1d2b;text-align:center;font-weight:700;padding:8px}.countdown{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:56px;border-radius:50%;background:var(--primary);color:#fff;font-size:1.5rem;font-weight:900}.countdown-large{min-width:110px;height:110px;font-size:3rem}.countdown-low,.opt-red{background:var(--red)}.opt-blue{background:var(--blue)}.opt-yellow{background:var(--yellow)}.opt-green{background:var(--green)}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.answer-grid.n2{grid-template-columns:1fr}.answer-btn,.answer-tile{color:#fff;min-height:110px;border-radius:var(--radius);display:flex;align-items:center;gap:10px;padding:12px 16px;font-size:1.15rem;text-align:left;justify-content:flex-start}.answer-btn.chosen{outline:5px solid #fff;outline-offset:-5px}.answer-btn.dim{opacity:.35}.answer-btn:disabled{cursor:default;opacity:1}.answer-btn.dim:disabled{opacity:.3}.shape{font-size:1.6rem}.answer-letter{font-weight:900;font-size:1.1rem}.answer-text{font-weight:700}.player-page{max-width:640px;margin:0 auto;padding:56px 16px 24px;color:var(--text-on-dark);display:flex;flex-direction:column;gap:14px}.player-header{display:flex;justify-content:space-between;font-weight:800;font-size:1.1rem}.q-top{display:flex;align-items:center;justify-content:space-between}.prompt{font-size:1.4rem;text-align:center}.result{text-align:center;font-size:1.6rem;font-weight:900;padding:14px;border-radius:var(--radius)}.result.ok{background:var(--ok)}.result.bad{background:var(--danger)}.rules{font-size:.9rem;text-align:left;background:#f4f2fc;border-radius:8px;padding:8px 12px}.winner-code{background:#fff6d6;border:3px dashed var(--yellow);border-radius:var(--radius);padding:12px}.winner-code strong{font-size:2.6rem;letter-spacing:.25em;font-family:ui-monospace,Menlo,monospace}.reveal{display:flex;flex-direction:column;gap:8px;width:100%}.reveal-row{display:grid;grid-template-columns:64px 1fr 2fr 48px;align-items:center;gap:8px;background:#fffffff2;color:var(--text);border-radius:8px;padding:6px}.reveal-row.wrong{opacity:.6}.reveal-row.correct{box-shadow:0 0 0 3px var(--ok)}.reveal-label{color:#fff;border-radius:6px;padding:6px;text-align:center;font-weight:800}.reveal-bar-wrap{background:#ece8fb;border-radius:6px;height:22px}.reveal-bar{height:100%;border-radius:6px;min-width:4px}.reveal-count{font-weight:800;text-align:right}.leaderboard{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px;width:100%}.leaderboard li{display:grid;grid-template-columns:40px 1fr auto;gap:8px;padding:8px 12px;border-radius:8px;background:#f4f2fc;color:var(--text);font-weight:700}.leaderboard li.me{background:#ffe9a8}.leaderboard-large li{font-size:1.8rem;padding:14px 20px}.host-game .control{display:flex;flex-direction:column;gap:12px}.phase-line{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-weight:700}.phase-badge{background:var(--primary);color:#fff;padding:4px 10px;border-radius:6px}.host-opts li.correct{font-weight:800;color:var(--ok)}.editor .card label{margin-bottom:8px}.editor-opts{display:flex;flex-direction:column;gap:8px;margin:8px 0}.editor-opt{display:grid;grid-template-columns:44px 1fr auto auto;gap:8px;align-items:center}.editor-chip{color:#fff;border-radius:8px;height:44px;display:flex;align-items:center;justify-content:center}.projector-page{min-height:100vh;padding:24px 40px;color:var(--text-on-dark);display:flex;flex-direction:column;gap:20px}.proj-title{font-weight:800;opacity:.7}.lobby{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:24px 40px;align-items:center}.join-box{font-size:2rem}.pin{font-size:7rem;font-weight:900;letter-spacing:.08em;font-family:ui-monospace,Menlo,monospace}.qr{background:#fff;padding:12px;border-radius:var(--radius)}.player-count{font-size:2.4rem;font-weight:900}.name-chips{grid-column:1 / -1;list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;max-height:30vh;overflow:hidden}.name-chips li{background:#ffffff26;border-radius:999px;padding:6px 16px;font-size:1.4rem;font-weight:700}.host-lobby{display:flex;gap:24px;align-items:center;margin-top:16px}.host-lobby h3{margin-top:0}.host-lobby a{word-break:break-all}.proj-top{display:flex;justify-content:space-between;align-items:center;font-size:1.8rem;font-weight:800}.proj-prompt{font-size:3rem;text-align:center}.answer-grid.projector .answer-tile{min-height:150px;font-size:2rem}.locked{font-size:2rem;color:#ffbf47}.big-title{font-size:4rem;text-align:center}.podium{display:flex;justify-content:center;align-items:flex-end;gap:24px}.podium-step{width:260px;background:#fff;color:var(--text);border-radius:var(--radius) var(--radius) 0 0;text-align:center;padding:16px}.podium-step.rank-1{min-height:320px;order:2;background:#ffe9a8}.podium-step.rank-2{min-height:240px;order:1}.podium-step.rank-3{min-height:180px;order:3}.podium-name{font-size:2rem;font-weight:900}.podium-score{font-size:1.4rem}.podium-rank{font-size:4rem;font-weight:900}.join-small{text-align:center;opacity:.6}@media (max-width: 640px){.logo{font-size:2rem}.lobby{grid-template-columns:1fr}.host-lobby{flex-direction:column;align-items:flex-start}.pin{font-size:3.5rem}.reveal-row{grid-template-columns:52px 1fr 1fr 32px}.table td.actions{justify-content:flex-start}}
