* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background: radial-gradient(circle at top, #3a0d12 0%, #120507 60%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  text-align: center;
}
h1 { margin: 0 0 8px; letter-spacing: 0.04em; }
.gold { color: #f2c14e; }
.muted { color: #b9a9ab; }
.hidden { display: none !important; }
main { width: 100%; max-width: 900px; }

input, button { font: inherit; }
input {
  width: 100%; max-width: 320px; padding: 14px; border-radius: 10px; border: 2px solid #f2c14e;
  background: #1d0a0d; color: inherit; text-align: center; font-size: 1.2rem;
}
button {
  cursor: pointer; border: 0; border-radius: 10px; padding: 14px 24px; font-weight: 700; font-size: 1.1rem;
  background: #f2c14e; color: #1a0a0c;
}
button:disabled { opacity: 0.5; cursor: default; }
button.ghost { background: transparent; color: #b9a9ab; border: 1px solid #5a3a3f; font-weight: 400; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.error { color: #ff8a8a; min-height: 1.5em; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 90px; padding: 14px; border-radius: 12px;
  color: #fff; text-align: left; font-size: 1.1rem; font-weight: 600;
}
.choice .letter { font-size: 1.6rem; font-weight: 800; opacity: 0.85; }
.c0 { background: #c62828; }
.c1 { background: #1565c0; }
.c2 { background: #b8860b; }
.c3 { background: #2e7d32; }
.choice:disabled { opacity: 1; }
.choice.dim { opacity: 0.25; }
.choice.right { outline: 4px solid #fff; }
.choice.picked { outline: 4px solid #f2c14e; }

.question { font-size: clamp(1.3rem, 4vw, 2.4rem); font-weight: 700; margin: 12px 0; }
.timer { font-size: 3rem; font-weight: 800; color: #f2c14e; }
.big { font-size: 2.2rem; font-weight: 800; margin: 8px 0; }

.board { list-style: none; padding: 0; margin: 16px auto; max-width: 520px; text-align: left; }
.board li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 8px; background: #ffffff10; margin-bottom: 6px; font-size: 1.2rem; }
.board li.offline { opacity: 0.5; }
.board .gain { color: #8fe28f; font-size: 0.9em; margin-left: 8px; }

.joinurl { font-size: clamp(1.4rem, 5vw, 3rem); font-weight: 800; color: #f2c14e; word-break: break-all; }
.names { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.names span { background: #ffffff18; padding: 8px 14px; border-radius: 20px; font-size: 1.2rem; }

.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 24px 0; }
.podium div { width: 140px; border-radius: 10px 10px 0 0; padding: 12px 6px; font-weight: 700; background: #ffffff18; }
.podium .p1 { height: 220px; background: #b8860b; }
.podium .p2 { height: 170px; background: #8a8a8a; }
.podium .p3 { height: 130px; background: #8d5524; }

.controls { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
