/* ============ Raad de Plaat ============ */
:root {
  --bg: #1c1430;
  --bg-glow: #2c1f4d;
  --surface: #281d42;
  --surface-2: #322659;
  --text: #f4eeff;
  --text-dim: #b3a6d6;
  --amber: #ffb13d;
  --amber-deep: #e08900;
  --vinyl: #14101a;
  --t1: #ff4f7b;
  --t2: #3ec5ff;
  --t3: #7be882;
  --t4: #ffc63d;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-glow) 0%, var(--bg) 55%) fixed var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.45;
}

h1, h2, .round-counter, .vinyl-label, .btn.primary {
  font-family: "Unbounded", "Outfit", sans-serif;
}

/* ---------- screens ---------- */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 480px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  min-height: 100dvh;
}
.screen.active { display: flex; }

/* ---------- setup ---------- */
.logo { text-align: center; }
.logo h1 {
  font-size: clamp(2.1rem, 9vw, 2.9rem);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: linear-gradient(160deg, #ffd58a 20%, var(--amber) 55%, #ff7a4f 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-disc {
  width: 74px; height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--amber) 0 22%, transparent 22.5%),
    radial-gradient(circle, #0d0a12 22% 26%, transparent 26.5%),
    repeating-radial-gradient(circle, #0d0a12 0 2px, #1d1626 2px 4px);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  animation: spin 6s linear infinite;
}
.tagline { color: var(--text-dim); margin-top: 12px; font-size: .95rem; }

.setup-block { width: 100%; }
.setup-block h2 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.team-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.team-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.team-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.team-row input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text);
  font: 600 1rem "Outfit", sans-serif;
}
.team-row .remove {
  background: none; border: none; color: var(--text-dim);
  font-size: 1.2rem; cursor: pointer; padding: 2px 6px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 2px solid var(--surface-2);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 16px;
  font: 600 .95rem "Outfit", sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.pill.on {
  border-color: var(--amber);
  color: var(--bg);
  background: var(--amber);
}

/* ---------- knoppen ---------- */
.btn {
  border: none; cursor: pointer;
  border-radius: 999px;
  font: 600 1rem "Outfit", sans-serif;
  padding: 12px 22px;
  color: var(--text);
  background: var(--surface-2);
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.96); }
.btn.primary {
  background: linear-gradient(160deg, #ffc866, var(--amber) 60%, var(--amber-deep));
  color: #241300;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(255,177,61,.35);
}
.btn.big { width: 100%; padding: 16px 22px; font-size: 1.05rem; }
.btn.ghost { background: none; border: 2px solid var(--surface-2); color: var(--text-dim); }
.btn.small { padding: 8px 16px; font-size: .9rem; align-self: flex-start; }
.fineprint { color: var(--text-dim); font-size: .8rem; text-align: center; }

/* ---------- ronde ---------- */
.round-top { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.scoreboard { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.score-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-weight: 600; font-size: .92rem;
}
.score-chip .dot { width: 14px; height: 14px; border-radius: 50%; }
.score-chip .pts { font-weight: 700; }
.round-counter {
  text-align: center;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
}

.hints { min-height: 40px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hint-chip {
  background: var(--surface-2);
  border: 1px solid rgba(255,177,61,.5);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .92rem;
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
}
.hint-chip b { color: var(--amber); font-family: "Unbounded", sans-serif; }

/* ---------- de plaat (buzzer) ---------- */
.stage { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: 1; justify-content: center; }

.vinyl {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  border: none; background: none; padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.vinyl:active .vinyl-disc { transform: scale(.94); }

.ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: rgba(255,255,255,.08); }
.ring-progress {
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .25s linear;
}

.vinyl-disc {
  position: absolute; inset: 4px;
  border-radius: 50%;
  background:
    conic-gradient(from 120deg, rgba(255,255,255,.10) 0 8%, transparent 12% 48%, rgba(255,255,255,.07) 52% 58%, transparent 62%),
    repeating-radial-gradient(circle, #0d0a12 0 2.5px, #1c1524 2.5px 5px);
  background-color: var(--vinyl);
  box-shadow: 0 18px 60px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.vinyl.playing .vinyl-disc { animation: spin 2.2s linear infinite; }
.vinyl.stopped .vinyl-disc { animation: none; }

.vinyl-label {
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd58a, var(--amber) 55%, var(--amber-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.25);
}
.vinyl-label::after {
  content: ""; position: absolute;
  width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: var(--vinyl);
}
.vinyl-label span {
  font-size: clamp(.8rem, 4vw, 1.05rem);
  font-weight: 900;
  color: #241300;
  text-align: center;
  line-height: 1.15;
  letter-spacing: .02em;
  z-index: 1;
}

.stage-status { color: var(--text-dim); font-size: .95rem; min-height: 1.4em; text-align: center; }

/* ---------- wie drukte ---------- */
.prompt-title { font-size: clamp(1.4rem, 6vw, 1.9rem); text-align: center; margin-top: 8vh; }
.claim-teams { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 10px; }
.claim-btn {
  border: none; cursor: pointer;
  border-radius: var(--radius);
  padding: 22px;
  font: 700 1.15rem "Outfit", sans-serif;
  color: #1a1024;
  transition: transform .1s;
}
.claim-btn:active { transform: scale(.97); }

/* ---------- antwoord ---------- */
.team-badge {
  margin-top: 6vh;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  color: #1a1024;
}
.answer-checklist {
  list-style: none;
  display: flex; gap: 10px;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.answer-checklist li {
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 999px;
}

/* ---------- reveal ---------- */
.reveal-card {
  width: 100%;
  background: var(--surface);
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  animation: pop .4s cubic-bezier(.2,1.5,.4,1);
}
.reveal-art {
  width: min(52vw, 220px);
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
  margin-bottom: 14px;
  background: var(--surface-2);
}
.reveal-card h2 { font-size: 1.25rem; line-height: 1.25; }
.reveal-card p { color: var(--text-dim); font-size: 1.05rem; margin-top: 4px; }
.reveal-year {
  font-family: "Unbounded", sans-serif;
  font-size: 1.6rem !important;
  font-weight: 700;
  color: var(--amber) !important;
  margin-top: 10px !important;
}

.score-panel { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.score-for { color: var(--text-dim); text-align: center; font-size: .95rem; }
.score-for span { color: var(--text); font-weight: 700; }
.score-toggles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.toggle {
  border: 2px solid var(--surface-2);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 .95rem "Outfit", sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.toggle em { font-style: normal; color: var(--text-dim); margin-left: 4px; }
.toggle.on { background: var(--amber); border-color: var(--amber); color: #241300; }
.toggle.on em { color: #5c3c00; }
.round-points {
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--amber);
}

/* ---------- einde ---------- */
.final-scores { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.final-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
}
.final-row.winner {
  background: linear-gradient(160deg, #ffc866, var(--amber) 60%, var(--amber-deep));
  color: #241300;
  font-weight: 800;
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(255,177,61,.35);
}
.final-row .dot { width: 16px; height: 16px; border-radius: 50%; }
.final-row .pts { margin-left: auto; font-family: "Unbounded", sans-serif; }

/* ---------- tijdlijn-modus ---------- */
.mode-desc { color: var(--text-dim); font-size: .85rem; margin-top: 10px; line-height: 1.5; }
.small-title { margin-top: 2vh; }
.place-hint { color: var(--text-dim); font-size: .9rem; }

.timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-bottom: 20px;
}
.tl-slot {
  border: 2px dashed rgba(255,177,61,.45);
  background: rgba(255,177,61,.06);
  color: var(--amber);
  border-radius: 12px;
  padding: 10px;
  font: 600 .9rem "Outfit", sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.tl-slot:hover, .tl-slot:active { background: rgba(255,177,61,.18); border-style: solid; }
.tl-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border-radius: 14px;
  padding: 8px 14px 8px 8px;
}
.tl-card img, .tl-noart {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.tl-noart {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 1.3rem;
}
.tl-year {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--amber);
  flex: none;
  min-width: 3.2em;
}
.tl-info { font-size: .85rem; line-height: 1.3; min-width: 0; }
.tl-info em { color: var(--text-dim); font-style: normal; }

.place-banner {
  width: 100%;
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
}
.place-banner.good { background: rgba(123,232,130,.15); color: var(--t3); border: 1px solid rgba(123,232,130,.5); }
.place-banner.bad { background: rgba(255,79,123,.14); color: var(--t1); border: 1px solid rgba(255,79,123,.5); }
.place-banner.neutral { background: var(--surface); color: var(--text-dim); }

.score-chip .tok { color: var(--amber); font-size: .82rem; margin-left: 2px; }
.answer-note { color: var(--text-dim); font-size: .9rem; text-align: center; }
#btn-save { border-color: var(--amber); color: var(--amber); align-self: center; }

/* ---------- animaties ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl.playing .vinyl-disc, .logo-disc { animation: none; }
  .hint-chip, .reveal-card { animation: none; }
}
