:root {
  --bg: #0c1020;
  --panel: rgba(22, 27, 48, .92);
  --panel2: rgba(34, 41, 71, .9);
  --text: #f7f8ff;
  --muted: #aab2d4;
  --accent: #ffcf40;
  --danger: #ff476f;
  --ok: #42d392;
  --line: rgba(255,255,255,.11);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; background: radial-gradient(circle at top, #222c58, var(--bg) 55%); color: var(--text); }
a { color: var(--accent); }
.container { width: min(1100px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 50px; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.28); padding: 22px; }
.auth-card { width: min(440px, 100%); }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -0.04em; }
.logo { font-weight: 900; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.row { display:flex; gap: 12px; align-items:center; flex-wrap:wrap; }
.stack { display:grid; gap:12px; }
.grid { display:grid; gap:18px; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
input, select, button { font: inherit; }
input, select { width:100%; border:1px solid var(--line); background:#11162b; color:var(--text); border-radius:12px; padding:12px 14px; outline:none; }
input:focus, select:focus { border-color: var(--accent); }
button { border:0; border-radius:12px; padding:12px 16px; font-weight:800; cursor:pointer; background:var(--accent); color:#141414; }
button.secondary { background:#30395f; color:var(--text); }
button.danger { background:var(--danger); color:white; }
button.ok { background:var(--ok); color:#08291b; }
button:disabled { opacity:.45; cursor:not-allowed; }
.topbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:22px; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:#2c3457; color:#dce1ff; font-size:.9rem; }
.room-list { display:grid; gap:10px; }
.room-item { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--panel2); }
.player-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.player-list li { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:11px; background:#171d35; }
.buzzer-wrap { display:grid; place-items:center; min-height:55vh; }
.buzzer { width:min(78vw,360px); aspect-ratio:1; border-radius:50%; font-size:clamp(2rem,9vw,4.2rem); color:white; background:radial-gradient(circle at 35% 30%, #ff7895, #e51545 58%, #8e0624); box-shadow:0 18px 0 #74051d, 0 25px 55px rgba(255,35,80,.35); transition:transform .08s, box-shadow .08s; border:8px solid rgba(255,255,255,.13); }
.buzzer:active:not(:disabled) { transform:translateY(12px); box-shadow:0 6px 0 #74051d,0 15px 35px rgba(255,35,80,.28); }
.buzzer:disabled { filter:grayscale(.55); }
.status-big { text-align:center; font-weight:900; font-size:clamp(1.35rem,5vw,2.4rem); margin:14px 0; }
.score { font-weight:900; color:var(--accent); }
.hidden { display:none !important; }
.notice { padding:11px 13px; border-radius:12px; background:#252d50; color:#e8ebff; }
.notice.error { background:#5a1830; }
.notice.ok { background:#134733; }
.table { width:100%; border-collapse:collapse; }
.table th,.table td { padding:10px; border-bottom:1px solid var(--line); text-align:left; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.solution { border:1px dashed rgba(255,207,64,.55); padding:15px; border-radius:14px; background:rgba(255,207,64,.06); }
.display-page { min-height:100vh; display:grid; place-items:center; text-align:center; padding:30px; }
.display-title { font-size:clamp(2.5rem,9vw,7rem); }
.display-sub { font-size:clamp(1.4rem,4vw,3rem); color:var(--accent); }
.countdown { font-size:clamp(4rem,18vw,12rem); font-weight:1000; }
@media(max-width:650px){ .container{width:min(100% - 18px,1100px); padding-top:16px}.card{padding:16px}.topbar{align-items:flex-start}.room-item{align-items:flex-start;flex-direction:column}.room-item button{width:100%} }
.kicker{color:var(--accent);font-weight:900;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem}.hero{max-width:760px;margin:0 auto}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}.pulse{animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.55}}.small{font-size:.85rem}.choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice label{border:1px solid var(--line);border-radius:14px;padding:14px;background:#151b33;cursor:pointer}.choice input{width:auto;margin-right:7px}.footer-note{margin-top:20px;color:var(--muted);font-size:.86rem}.danger-text{color:#ff8aa4}.ok-text{color:#79e7b5}
