:root {
  --bg: #0f1220; --card: #1b1f35; --fg: #eef0f8; --muted: #9aa0bd;
  --accent: #6c8cff; --good: #3cb44b; --bad: #e6194B; --line: #2c3252;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.5;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 20px; }
h1 { font-size: 1.4rem; } h2 { font-size: 1.1rem; }
.muted { color: var(--muted); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin: 14px 0;
}
.quote { font-size: 1.35rem; font-weight: 600; }
.code { font-size: 3rem; letter-spacing: .3rem; font-weight: 800; text-align: center; }
button {
  background: var(--accent); color: white; border: 0; border-radius: 10px;
  padding: 12px 16px; font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%;
}
button.secondary { background: #333a5c; }
button:disabled { opacity: .5; cursor: default; }
input, select {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #12162a; color: var(--fg); font-size: 1rem;
}
label { display: block; margin: 10px 0 4px; }
.slider-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
input[type=range] { width: 100%; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.players li { padding: 6px 0; border-bottom: 1px solid var(--line); list-style: none; }
ul { padding-left: 0; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
a { color: var(--accent); }
.bar { height: 10px; background: #2c3252; border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.big { font-size: 2rem; font-weight: 800; }

/* Game-Feel */
.hud { display:flex; justify-content:space-between; font-weight:800; margin-bottom:8px; color:var(--fg); }
.hud .streak { color:var(--accent); }
.timerbar { height:6px; background:#2c3252; border-radius:4px; overflow:hidden; margin:6px 0 14px; }
.timerbar > span { display:block; height:100%; background:var(--accent); width:100%; }
.guessgrid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pop { font-size:1.6rem; font-weight:800; }
.ok { color:var(--good); } .no { color:var(--bad); }
.suspense { font-size:2rem; letter-spacing:.3rem; text-align:center; color:var(--muted); padding:10px 0; }
