:root {
  --void: #05070b;
  --panel: #08111f;
  --panel-2: #0d1728;
  --line: rgba(111, 232, 255, .22);
  --cyan: #00e5ff;
  --red: #e84b5f;
  --gold: #ffcb57;
  --green: #20c978;
  --white: #edf4fb;
  --muted: #95a6ba;
  --ink: #07101e;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(232,75,95,.16), transparent 26rem),
    radial-gradient(circle at 78% 18%, rgba(0,229,255,.16), transparent 28rem),
    linear-gradient(180deg, #05070b 0%, #08111f 55%, #040609 100%);
  color: var(--white);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(237,244,251,.58) 0 1px, transparent 1.5px);
  background-size: 124px 124px;
  opacity: .14;
}
button, input, select { font: inherit; }
button:disabled { cursor: default; opacity: .58; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1080px, 100%); min-height: 100vh; margin: auto; position: relative; }
header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, .84);
  backdrop-filter: blur(16px);
}
.brand {
  color: var(--white);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 950;
  letter-spacing: .12em;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .06em;
}
main { padding: clamp(18px, 5vw, 46px); }
.view { display: none; }
.view.active { display: block; }
.hidden { display: none !important; }
.row, .controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.controls { justify-content: space-between; margin-top: 20px; }
.btn {
  border: 1px solid rgba(237,244,251,.12);
  border-radius: 12px;
  padding: 12px 17px;
  color: var(--white);
  background: #122238;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0,0,0,.18);
}
.btn:hover { border-color: rgba(0,229,255,.45); }
.btn.gold { background: var(--gold); color: #111823; }
.btn.green { background: var(--green); color: #07140d; }
.btn.red { background: var(--red); }
.btn.light { background: rgba(237,244,251,.08); color: var(--white); }
.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 36px 0;
}
.hero-picture {
  width: min(100%, 760px);
  aspect-ratio: 16 / 8;
  margin: 0 auto 24px;
  border: 1px solid rgba(0,229,255,.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, transparent 28%, rgba(5,7,11,.78) 100%),
    url("/assets/stars-stripes-signal.svg") center / cover no-repeat;
  box-shadow: 0 28px 80px rgba(0,0,0,.3), 0 0 46px rgba(0,229,255,.12);
}
.hero h1 {
  margin: .16em 0;
  font-size: clamp(2.5rem, 9vw, 5.8rem);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero p {
  max-width: 720px;
  margin: 18px auto 24px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}
.badge {
  display: inline-block;
  width: max-content;
  margin: 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255,203,87,.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,203,87,.08);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card, .reveal, .player, .question {
  border: 1px solid var(--line);
  background: rgba(8, 17, 31, .76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 70px rgba(0,0,0,.28);
}
.card {
  border-radius: 18px;
  padding: clamp(18px, 4vw, 28px);
}
.center { text-align: center; }
input, select {
  min-width: min(100%, 220px);
  padding: 13px 14px;
  border: 1px solid rgba(237,244,251,.18);
  border-radius: 12px;
  color: var(--white);
  background: rgba(5,7,11,.72);
}
.room-code {
  margin: .15em 0;
  color: var(--cyan);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 950;
  letter-spacing: .14em;
  text-shadow: 0 0 26px rgba(0,229,255,.28);
}
.status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--cyan);
  font-weight: 850;
}
.question {
  min-height: 130px;
  margin: 24px 0;
  padding: clamp(18px, 4vw, 28px);
  border-radius: 16px;
  font-size: clamp(1.45rem, 5vw, 2.55rem);
  font-weight: 900;
  line-height: 1.2;
}
.progress, .timer-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(237,244,251,.1);
}
.progress { height: 10px; }
.progress span { display: block; height: 100%; background: var(--gold); }
.timer-row { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.timer { width: 76px; color: var(--red); font-size: 2.4rem; font-weight: 950; }
.timer-track { height: 14px; flex: 1; }
.timer-track span { display: block; height: 100%; background: var(--red); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.answer {
  min-height: 74px;
  border: 0;
  border-radius: 16px;
  color: white;
  font-size: 1.3rem;
  font-weight: 950;
  cursor: pointer;
}
.answer.true { background: var(--green); }
.answer.false { background: var(--red); }
.correct { outline: 5px solid rgba(32,201,120,.7); }
.wrong { outline: 5px solid rgba(232,75,95,.7); }
.reveal {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
}
.reveal.show { display: block; }
.verdict { color: var(--gold); font-size: 1.8rem; font-weight: 950; }
.explanation { color: var(--muted); line-height: 1.55; }
.player-list { display: grid; gap: 8px; margin-top: 14px; }
.player {
  border-radius: 10px;
  padding: 11px 13px;
  text-align: left;
}
@media (max-width: 680px) {
  header { align-items: flex-start; }
  main { padding: 16px; }
  .hero { padding: 18px 0; }
  .hero-picture { aspect-ratio: 16 / 9; margin-bottom: 18px; border-radius: 14px; }
  .answers { grid-template-columns: 1fr; }
  .question { min-height: 160px; }
  .controls .btn, .row .btn { flex: 1 1 150px; }
  .card .row { display: grid; }
}
