:root {
  --blue: #060ce9; --navy: #0a1a6b; --deep: #050b3d; --gold: #ffcc00; --ink: #fff;
  --good: #2ecc71; --bad: #ff4d4d; --muted: #9fb0ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--deep); color: var(--ink);
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background: radial-gradient(ellipse at top, #0f1f9a 0%, var(--deep) 70%) fixed; }
h1, h2, h3 { margin: 0 0 .4em; letter-spacing: .02em; }
.title { font-family: Impact, 'Arial Black', sans-serif; color: var(--gold); text-transform: uppercase;
  text-shadow: 3px 3px 0 #000; letter-spacing: .06em; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: .7em 1.1em; font-weight: 700;
  background: var(--gold); color: #000; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ink); border: 2px solid var(--muted); }
button.good { background: var(--good); } button.bad { background: var(--bad); color: #fff; }
input[type=text], input[type=password], input[type=number] { font: inherit; width: 100%; padding: .8em; border-radius: 10px;
  border: 2px solid var(--muted); background: #fff; color: #000; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* player page */
.player { max-width: 480px; margin: 0 auto; padding: 16px; min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; }
.player header { display: flex; justify-content: space-between; align-items: baseline; }
.card { background: rgba(255,255,255,.08); border-radius: 16px; padding: 16px; }
.bigmsg { font-size: 1.6rem; font-weight: 800; text-align: center; padding: 28px 8px; }
.score { font-family: Impact, sans-serif; font-size: 2.2rem; color: var(--gold); }
.buzz { width: 100%; aspect-ratio: 1; max-height: 56dvh; border-radius: 50%; font-size: 3.4rem; font-weight: 900;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #c0121a 70%); color: #fff; border: 8px solid #fff;
  box-shadow: 0 10px 0 #7d0b11; letter-spacing: .08em; touch-action: manipulation; }
.buzz:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 4px 0 #7d0b11; }
.buzz:disabled { background: radial-gradient(circle at 35% 30%, #777, #444 70%); box-shadow: 0 10px 0 #222; opacity: 1; }
.buzz.won { background: radial-gradient(circle at 35% 30%, #5ef08f, #12853f 70%); box-shadow: 0 10px 0 #0a4d24; }
.drawpad { width: 100%; background: #fff; border-radius: 12px; touch-action: none; border: 3px solid var(--gold); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.timer { font-family: Impact, sans-serif; font-size: 3rem; text-align: center; color: var(--gold); }
.status { min-height: 1.6em; text-align: center; font-weight: 700; font-size: 1.2rem; }

/* host board (used in Task 5) */
.host { padding: 14px; max-width: 1400px; margin: 0 auto; }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat { background: var(--blue); border: 2px solid #000; text-align: center; font-weight: 800; text-transform: uppercase;
  padding: 12px 6px; display: flex; align-items: center; justify-content: center; min-height: 76px; font-size: clamp(.8rem, 1.6vw, 1.3rem); }
.tile { background: var(--blue); color: var(--gold); border: 2px solid #000; font-family: Impact, sans-serif;
  font-size: clamp(1.6rem, 4vw, 3.4rem); text-shadow: 3px 3px 0 #000; padding: 22px 0; border-radius: 4px; }
.tile.used { visibility: hidden; }
.cluebox { background: var(--blue); border: 4px solid #000; padding: 6vh 6vw; text-align: center; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1.3; text-shadow: 2px 2px 0 #000; border-radius: 8px; }
.scoreboard { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 14px; min-width: 120px; text-align: center; }
.pill.picker { outline: 3px solid var(--gold); } .pill.buzzed { background: var(--good); color: #000; }
.pill .n { font-weight: 700; } .pill .s { font-family: Impact, sans-serif; font-size: 1.6rem; }
.pill .s.neg { color: var(--bad); }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hostbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
