/* =========================================================
   Wiens Nummer? — design system
   Art direction: "nachtclub-vinyl". Donker warm plum, één koraal-accent,
   iedere speler een eigen kleur. Type draagt het ontwerp.
   ========================================================= */

/* ---------- Tokens ---------- */
@property --ring { syntax: '<number>'; initial-value: 1; inherits: true; }

:root {
  color-scheme: dark;
  /* Kleur */
  --bg:        oklch(0.15 0.025 330);
  --bg-deep:   oklch(0.11 0.02 330);
  --surface:   oklch(0.20 0.03 330);
  --surface-2: oklch(0.25 0.035 330);
  --line:      oklch(0.95 0.02 330 / 0.09);
  --line-2:    oklch(0.95 0.02 330 / 0.16);
  --text:      oklch(0.96 0.012 80);
  --text-2:    oklch(0.80 0.02 330);
  --text-3:    oklch(0.64 0.025 330);
  --text-4:    oklch(0.48 0.025 330);
  --accent:    oklch(0.74 0.17 32);          /* koraal: actie */
  --accent-ink:oklch(0.20 0.05 32);
  --accent-soft: oklch(0.74 0.17 32 / 0.14);
  --ok:        oklch(0.82 0.16 150);
  --bad:       oklch(0.70 0.19 22);
  --warn:      oklch(0.85 0.14 85);

  /* Type */
  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --t-hero:  clamp(3.6rem, 19vw, 8rem);
  --t-h1:    clamp(2.25rem, 9vw, 3.6rem);
  --t-h2:    clamp(1.6rem, 6vw, 2.2rem);
  --t-h3:    1.125rem;
  --t-body:  1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  /* Ruimte */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --gutter: 16px;

  /* Vorm */
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Beweging */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.76, 0, 0.24, 1);
  --ease-back:cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-micro: 150ms; --d-sm: 250ms; --d-md: 400ms; --d-lg: 650ms;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100svh;
  background:
    radial-gradient(90% 55% at 85% -5%, oklch(0.42 0.14 20 / 0.35), transparent 60%),
    radial-gradient(80% 50% at -10% 105%, oklch(0.40 0.12 300 / 0.30), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 var(--t-body)/1.5 var(--f-body);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after { /* fijne korrel voor textuur */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--accent-ink); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; text-wrap: balance; }
.hero-title { font-size: var(--t-hero); line-height: .86; letter-spacing: -0.045em; font-weight: 800; font-variation-settings: 'wdth' 85; }
.hero-title em { font-style: normal; color: var(--accent); }
h1 { font-size: var(--t-h1); line-height: .95; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: var(--t-h3); letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 34ch; }
.muted { color: var(--text-3); }
.small { font-size: var(--t-small); }
.label {
  font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Shell ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  background: linear-gradient(var(--bg) 40%, transparent);
}
.brand { font: 800 1.125rem/1 var(--f-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 18%, var(--accent) 20% 100%); }
.badge { font: 500 .8125rem/1 var(--f-mono); letter-spacing: .18em; padding: 7px 10px 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text-2); }
.top-right { display: flex; align-items: center; gap: var(--s-2); }
.chip-btn.exit { min-height: 32px; padding: 6px 12px; color: var(--text-2); }
main { width: min(540px, 100%); margin: 0 auto; padding: 0 var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom)); }
.view { display: flex; flex-direction: column; gap: var(--s-4); }
.view > .stack-lg { display: flex; flex-direction: column; gap: var(--s-5); }

/* View Transitions tussen schermen */
::view-transition-old(root) { animation: vt-out var(--d-sm) var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in var(--d-md) var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Gestaffelde intrede */
.reveal-up > * { animation: up var(--d-lg) var(--ease-out) both; }
.reveal-up > *:nth-child(2) { animation-delay: 60ms; } .reveal-up > *:nth-child(3) { animation-delay: 120ms; }
.reveal-up > *:nth-child(4) { animation-delay: 180ms; } .reveal-up > *:nth-child(5) { animation-delay: 240ms; }
.reveal-up > *:nth-child(n+6) { animation-delay: 300ms; }
@keyframes up { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Formulieren ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
input, select {
  font: 500 1.0625rem/1.2 var(--f-body); color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; width: 100%; min-width: 0;
  transition: border-color var(--d-sm) var(--ease-out), background var(--d-sm) var(--ease-out);
}
input::placeholder { color: var(--text-4); }
input:focus, select:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
input.code-input { font: 700 2rem/1 var(--f-mono); letter-spacing: .4em; text-transform: uppercase; text-align: center; padding: 16px; }
select { width: auto; padding: 10px 34px 10px 14px; appearance: none;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9b8c9' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input-row { display: flex; gap: var(--s-2); }
.input-row input { flex: 1; }

/* ---------- Knoppen ---------- */
button, .btn {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font: 600 1.0625rem/1 var(--f-body); letter-spacing: -0.01em; color: var(--text);
  border: 0; border-radius: var(--r-pill); padding: 18px 22px; min-height: 52px; cursor: pointer;
  background: var(--surface-2);
  transition: transform var(--d-micro) var(--ease-out), background var(--d-sm) var(--ease-out), opacity var(--d-sm);
}
button:active:not(:disabled) { transform: scale(.97); }
button:focus-visible, a:focus-visible, summary:focus-visible, .upload:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .4; cursor: default; }
.primary {
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); text-align: left;
}
.primary::after { content: '→'; font-family: var(--f-mono); transition: transform var(--d-sm) var(--ease-out); }
@media (hover: hover) { .primary:hover:not(:disabled)::after { transform: translateX(4px); } .ghost:hover { background: var(--surface); } }
.ghost { background: transparent; border: 1px solid var(--line-2); }
.chip-btn { padding: 10px 14px; min-height: 40px; font-size: var(--t-small); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.text-btn { background: none; padding: 6px 0; min-height: 0; color: var(--accent); font-size: var(--t-small); font-weight: 600; border-radius: 4px; }
.actions { display: flex; flex-direction: column; gap: var(--s-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Meldingen ---------- */
.msg { min-height: 1.2em; font-size: var(--t-small); color: var(--text-2); }
.msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); } .msg.warn { color: var(--warn); }
.msg.bad:not(:empty), .msg.warn:not(:empty) { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border-left: 3px solid currentColor; color: var(--text); }

/* ---------- HOME ---------- */
#v-home { min-height: calc(100svh - 120px); justify-content: space-between; gap: var(--s-6); }
.hero { padding-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); }
.marquee { margin-inline: calc(var(--gutter) * -1); overflow: hidden; border-block: 1px solid var(--line); padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee span { display: inline-block; white-space: nowrap; font: 500 var(--t-label)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.steps li { border-top: 1px solid var(--line-2); padding-top: var(--s-2); font-size: var(--t-small); color: var(--text-2); line-height: 1.3; }
.steps b { display: block; font: 500 var(--t-label)/1 var(--f-mono); color: var(--accent); margin-bottom: 6px; letter-spacing: .08em; }
.home-form { display: flex; flex-direction: column; gap: var(--s-3); }
.err { color: var(--bad); font-size: var(--t-small); min-height: 1.2em; }

/* ---------- BRON ---------- */
.step-head { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-3); }
.help { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.help summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; justify-content: space-between; font-weight: 600; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: '+'; font-family: var(--f-mono); color: var(--accent); transition: transform var(--d-sm) var(--ease-out); }
.help[open] summary::after { transform: rotate(45deg); }
.help ol { margin: 0 0 var(--s-3); padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: var(--s-3); }
.help li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; color: var(--text-2); font-size: var(--t-small); }
.help li::before { content: '0' counter(s); font: 500 var(--t-label)/1.7 var(--f-mono); color: var(--accent); }
.help p { font-size: var(--t-small); padding-bottom: var(--s-3); }
.divider { display: flex; align-items: center; gap: var(--s-3); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.upload {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: var(--s-3); align-items: center;
  padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-2); cursor: pointer;
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .ico { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.upload strong { display: block; font-weight: 600; }
.loading { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.loading i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.loading i:nth-child(2) { animation-delay: .15s; } .loading i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- CONTROLEREN ---------- */
.playlist-card { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); }
.playlist-card img, .playlist-card .ph { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); }
.tracks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.tracks li {
  display: grid; grid-template-columns: 30px 1fr 36px; gap: 4px var(--s-2); align-items: start;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  animation: up var(--d-md) var(--ease-out) both;
}
.tracks li.extra { opacity: .45; }
.tracks li.extra .rank::after { content: 'res'; display: block; font-size: 9px; letter-spacing: .1em; color: var(--text-4); }
.tracks .rank { font: 600 1rem/2.4 var(--f-mono); color: var(--text-3); }
.tracks .fields { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tracks input { background: transparent; border: 0; border-radius: 6px; padding: 6px 8px; margin-left: -8px; font-size: 1.0625rem; }
.tracks input.t { font-weight: 600; }
.tracks input.a { color: var(--text-2); font-size: var(--t-small); padding-top: 2px; }
.tracks input:focus { background: var(--surface); }
.tracks .x { width: 36px; height: 36px; min-height: 0; padding: 0; background: none; color: var(--text-4); font-size: 18px; border-radius: 50%; }
.tracks .status { grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.tag { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-pill); background: var(--surface); color: var(--text-3); }
.tag.ok { color: var(--ok); background: oklch(0.82 0.16 150 / .1); }
.tag.warn { color: var(--warn); background: oklch(0.85 0.14 85 / .1); }
.sticky-cta { position: sticky; bottom: 0; padding: var(--s-4) 0 max(var(--s-4), env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); display: flex; flex-direction: column; gap: var(--s-2); }

/* ---------- LOBBY ---------- */
.code-hero { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); padding: var(--s-4) 0 var(--s-5); border-bottom: 1px solid var(--line); }
.bigcode { font: 800 clamp(3.25rem, 16vw, 5.5rem)/0.85 var(--f-display); letter-spacing: -0.02em; white-space: nowrap; }
.bigcode span { display: inline-block; animation: up var(--d-lg) var(--ease-back) both; }
.bigcode span:nth-child(2) { animation-delay: 60ms; } .bigcode span:nth-child(3) { animation-delay: 120ms; } .bigcode span:nth-child(4) { animation-delay: 180ms; color: var(--accent); }
.players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.player { position: relative; padding: var(--s-3); border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; gap: 6px; overflow: hidden; animation: up var(--d-md) var(--ease-back) both; }
.player::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--pc); }
.player .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .st { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.player .st.ok { color: var(--ok); }
.player .st .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.player.empty { background: transparent; border: 1px dashed var(--line); color: var(--text-4); font-size: var(--t-small); justify-content: center; min-height: 64px; animation: none; }
.player.empty::before { display: none; }
.settings { border-radius: var(--r-lg); background: var(--surface); padding: var(--s-2) var(--s-4); }
.settings .row { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.settings .row:last-child { border: 0; }
.speaker-note { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-small); color: var(--text-2); }
.speaker-note .ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* ---------- RONDE: de hoes ---------- */
.round-meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-2); }
.round-no { font: 600 1rem/1 var(--f-mono); letter-spacing: -0.02em; }
.round-no b { font-size: 2.25rem; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; }
.time-left { font: 600 1.25rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.time-left.low { color: var(--accent); }
.stage { position: relative; aspect-ratio: 1.45; margin: var(--s-2) 0; }
.sleeve {
  position: absolute; left: 0; top: 0; bottom: 0; aspect-ratio: 1; z-index: 2; border-radius: 6px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, oklch(1 0 0 / .03) 0 2px, transparent 2px 9px),
    linear-gradient(150deg, oklch(0.32 0.09 340), oklch(0.20 0.05 300));
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / .6), inset 0 0 0 1px oklch(1 0 0 / .06);
  display: grid; place-items: center;
}
.sleeve .q { font: 800 clamp(6rem, 34vw, 10rem)/1 var(--f-display); color: oklch(0.96 0.012 80 / .92); letter-spacing: -0.06em; transform: translateY(-4%); }
.sleeve .stamp { position: absolute; left: 12px; bottom: 12px; font: 500 .625rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: oklch(1 0 0 / .5); }
.disc { position: absolute; right: 0; top: 4%; bottom: 4%; aspect-ratio: 1; z-index: 1; }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 14%, var(--bg-deep) 14.5% 16%, transparent 16.5%),
    repeating-radial-gradient(circle, oklch(0.16 0.01 330) 0 1.5px, oklch(0.10 0.01 330) 1.5px 3px);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / .05);
  animation: spin 1.9s linear infinite; animation-play-state: paused;
}
.vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, oklch(1 0 0 / .08) 25%, transparent 32% 70%, oklch(1 0 0 / .06) 75%, transparent 82%); }
.ring { position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--accent) calc(var(--ring) * 360deg), oklch(1 0 0 / .06) 0);
  mask: radial-gradient(circle, transparent calc(70% - 4px), #000 calc(70% - 3px));
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); }
.stage.playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(1turn); } }
.stage-caption { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 40px; }

.vote-head { padding-top: var(--s-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.grid button {
  --pc: var(--accent);
  position: relative; min-height: 76px; padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-2); overflow: hidden;
  font: 700 1.1875rem/1.1 var(--f-display); letter-spacing: -0.02em;
  animation: up var(--d-md) var(--ease-out) both;
}
.grid button .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.grid button .you { font: 500 .625rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); position: absolute; top: 14px; right: 12px; }
.grid button::after { content: ''; position: absolute; inset: 0; background: var(--pc); opacity: 0; transition: opacity var(--d-sm) var(--ease-out); z-index: -1; }
.grid button.sel { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 22%, var(--surface)); transform: scale(1.02); transition: transform var(--d-md) var(--ease-back), background var(--d-sm); }
.grid button.sel .sw { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 35%, transparent); }
.grid.locked button:not(.sel) { opacity: .6; }
.voters { display: flex; gap: 6px; flex-wrap: wrap; }
.voters i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background var(--d-md) var(--ease-out), transform var(--d-md) var(--ease-back); }
.voters i.on { background: var(--pc); transform: scale(1.25); }

/* ---------- ONTHULLING ---------- */
.reveal-stage { position: relative; aspect-ratio: 1.45; }
.reveal-stage .cover {
  position: absolute; left: 0; top: 0; bottom: 0; aspect-ratio: 1; border-radius: 6px; object-fit: cover; z-index: 2;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / .6); background: var(--surface-2);
  animation: cover-in var(--d-lg) var(--ease-out) both;
}
.reveal-stage .sleeve { animation: sleeve-out var(--d-lg) var(--ease-io) both; z-index: 3; }
.reveal-stage .vinyl { animation: spin 6s linear infinite; animation-play-state: running; }
.reveal-stage .disc { animation: vinyl-out var(--d-lg) var(--ease-out) both; }
@keyframes sleeve-out { to { transform: translateX(-115%) rotate(-8deg); opacity: 0; } }
@keyframes cover-in { from { transform: scale(.92); opacity: 0; } }
@keyframes vinyl-out { from { right: 14%; } }
.answer { display: flex; flex-direction: column; gap: var(--s-2); }
.answer .t { font: 800 var(--t-h2)/1 var(--f-display); letter-spacing: -0.035em; overflow: hidden; }
.answer .t span, .answer .a span { display: inline-block; animation: line-up var(--d-lg) var(--ease-out) both; animation-delay: 250ms; }
.answer .a { color: var(--text-2); overflow: hidden; } .answer .a span { animation-delay: 330ms; }
@keyframes line-up { from { transform: translateY(110%); } }
.owner-card { border-radius: var(--r-lg); padding: var(--s-4); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-2); animation: up var(--d-lg) var(--ease-back) 450ms both; }
.owner-card .who { font: 800 var(--t-h1)/0.95 var(--f-display); letter-spacing: -0.04em; }
.owner-card .who span { color: var(--pc); }
.verdict { font: 700 1.125rem/1.2 var(--f-display); display: flex; align-items: center; gap: var(--s-2); }
.verdict.ok { color: var(--ok); } .verdict.bad { color: var(--text-2); }
.verdict .pts { font: 600 .875rem/1 var(--f-mono); padding: 6px 9px; border-radius: var(--r-pill); background: var(--ok); color: oklch(0.2 0.05 150); animation: pop var(--d-md) var(--ease-back) 700ms both; }
@keyframes pop { from { transform: scale(0); } }
.votes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.votes li { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-2); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.votes li .arrow { font-family: var(--f-mono); color: var(--text-4); }
.votes li .to { text-align: right; color: var(--text-3); }
.votes li.hit .to { color: var(--ok); }
.scores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scores li { display: grid; grid-template-columns: 28px 12px 1fr auto; gap: var(--s-2); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scores .pos { font: 500 .8125rem/1 var(--f-mono); color: var(--text-4); }
.scores .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.scores .pts { font: 700 1.125rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.scores li.me .nm { font-weight: 700; }

/* Feitjes bij de onthulling: plek in de Wrapped, keer geluisterd, playlist */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.facts li { display: grid; grid-template-columns: 10px 1fr; gap: var(--s-2); align-items: baseline; font-size: var(--t-small); color: var(--text-2); animation: up var(--d-md) var(--ease-out) 650ms both; }
.facts .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.facts b { color: var(--text); font-weight: 600; }

/* Extra vraag (raad de artiest of titel) */
.bonus { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); animation: up var(--d-md) var(--ease-out) 200ms both; }
.bonus .input-row .chip-btn { min-height: 52px; padding-inline: var(--s-4); }
.bonus-card { border-radius: var(--r-lg); padding: var(--s-4); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: var(--s-2); animation: up var(--d-lg) var(--ease-out) 550ms both; }
/* Antwoorden van iedereen bij de onthulling */
.said-list { list-style: none; margin: var(--s-1) 0 0; padding: var(--s-2) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.said-list li { display: grid; grid-template-columns: 10px auto 1fr; gap: var(--s-2); align-items: baseline; padding: 6px 0; font-size: var(--t-small); animation: up var(--d-md) var(--ease-out) both; }
.said-list .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.said-list .nm { color: var(--text-3); }
.said-list .said { text-align: right; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.said-list li.hit .said { color: var(--ok); }
.said-list li.none .said { color: var(--text-4); font-weight: 400; font-style: italic; }
.tracks .plays { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tracks .plays input { width: 6ch; margin: 0; padding: 6px; text-align: right; font: 600 1.0625rem/1 var(--f-mono); font-variant-numeric: tabular-nums; background: var(--surface); }

.stack { display: flex; flex-direction: column; gap: var(--s-4); }
#revBonus { display: flex; flex-direction: column; gap: var(--s-2); }
#revBonus:empty { display: none; }
.types-card { border-radius: var(--r-lg); background: var(--surface); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.types-card .seg { background: var(--bg); }
.seg.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg.seg-3 button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.seg.seg-3 button[aria-pressed="true"]::before { content: '✓ '; }
.seg.seg-3 button:disabled { opacity: 1; cursor: default; }

/* Tussenstand: stijgers en dalers */
.scores .move { margin-left: var(--s-2); font: 600 .75rem/1 var(--f-mono); letter-spacing: .04em; padding: 3px 6px; border-radius: var(--r-pill); vertical-align: 2px; animation: pop var(--d-md) var(--ease-back) 500ms both; }
.move.up { color: var(--ok); background: oklch(0.82 0.16 150 / .1); }
.move.down { color: var(--text-3); background: var(--surface); }
#stScores li { animation: up var(--d-md) var(--ease-out) both; }

/* ---------- EINDSTAND ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: var(--s-2); padding-top: var(--s-5); }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; min-width: 0; }
.podium .nm { font: 700 1rem/1.1 var(--f-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .block { width: 100%; border-radius: var(--r-md) var(--r-md) 4px 4px; background: color-mix(in srgb, var(--pc) 30%, var(--surface)); display: flex; justify-content: center; padding-top: var(--s-3);
  font: 800 1.75rem/1 var(--f-display); transform-origin: bottom; animation: grow var(--d-lg) var(--ease-back) both; }
.podium .p1 .block { height: 150px; animation-delay: 500ms; background: var(--accent); color: var(--accent-ink); }
.podium .p2 .block { height: 110px; animation-delay: 250ms; }
.podium .p3 .block { height: 80px; }
@keyframes grow { from { transform: scaleY(0); } }
.winner-line { font: 800 var(--t-h1)/0.95 var(--f-display); letter-spacing: -0.04em; }
.winner-line em { font-style: normal; color: var(--accent); }

/* ---------- Toegankelijkheid ---------- */
@media (prefers-reduced-motion: reduce) {
  .tt.playing .tt-vinyl, .tt.idle .tt-vinyl, .tt.playing .tt-head { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee span { animation: none; }
  .stage.playing .vinyl { animation: none; }
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

.sticky-cta:has(#btnNext.hidden) { position: static; background: none; padding-top: 0; }
.cover.fallback { background: linear-gradient(150deg, oklch(0.32 0.09 340), oklch(0.20 0.05 300)); }

/* =========================================================
   Draaitafel (gedeeld door telefoon en groot scherm)
   ========================================================= */
.tt { position: relative; width: 100%; aspect-ratio: 1.32; container-type: inline-size; }
.tt-plinth {
  position: absolute; inset: 0; border-radius: 4cqi;
  background:
    radial-gradient(120% 90% at 20% 0%, oklch(0.33 0.04 340 / .9), transparent 60%),
    linear-gradient(160deg, oklch(0.27 0.035 330), oklch(0.18 0.025 330));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .09), inset 0 -2px 0 oklch(0 0 0 / .3), 0 6cqi 12cqi -5cqi oklch(0 0 0 / .65);
}
.tt-platter {
  position: absolute; left: 5%; top: 50%; translate: 0 -50%; height: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.32 0.01 330) 0 69%, oklch(0.42 0.01 330) 70%, oklch(0.24 0.01 330) 72%);
  box-shadow: 0 1.5cqi 3cqi oklch(0 0 0 / .5);
}
.tt-platter::after { /* lichtreflectie die stilstaat terwijl de plaat draait */
  content: ''; position: absolute; inset: 3%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 35deg, transparent 0 9%, oklch(1 0 0 / .10) 14%, transparent 21% 59%, oklch(1 0 0 / .07) 64%, transparent 71%);
}
.tt-vinyl {
  position: absolute; inset: 3%; border-radius: 50%;
  background: repeating-radial-gradient(circle, oklch(0.17 0.01 330) 0 0.35cqi, oklch(0.11 0.01 330) 0.35cqi 0.7cqi);
  animation: spin 1.8s linear infinite paused;
}
.tt-grooves { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 36%, oklch(0 0 0 / .35) 37%, transparent 38%, transparent 62%, oklch(0 0 0 / .3) 63%, transparent 64%); }
.tt-label {
  position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--bg-deep) 0 6%, transparent 6.5% 34%, oklch(0 0 0 / .12) 35% 37%, transparent 38% 70%, oklch(1 0 0 / .12) 71% 72%, transparent 73%), var(--accent);
  background-size: cover; background-position: center;
  transition: transform var(--d-lg) var(--ease-back);
}
.tt-label.has-cover { transform: scale(1.06); }
.tt-spindle { position: absolute; left: 50%; top: 50%; width: 1.6cqi; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, oklch(0.95 0 0), oklch(0.55 0 0)); }
.tt-ring {
  position: absolute; inset: -2.6cqi; border-radius: 50%; opacity: 0; transition: opacity var(--d-md);
  background: conic-gradient(var(--accent) calc(var(--ring) * 360deg), oklch(1 0 0 / .07) 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.1cqi), #000 calc(100% - 1cqi));
          mask: radial-gradient(closest-side, transparent calc(100% - 1.1cqi), #000 calc(100% - 1cqi));
}
.tt.timed .tt-ring { opacity: 1; }
.tt-arm { position: absolute; right: 7%; top: 8%; width: 44%; height: 80%; transform-origin: 78% 9%; rotate: -24deg; transition: rotate 1.1s var(--ease-out); z-index: 2; pointer-events: none; }
.tt-base { position: absolute; left: 78%; top: 9%; width: 9cqi; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, oklch(0.9 0.005 80), oklch(0.5 0.01 80) 60%, oklch(0.3 0.01 80)); box-shadow: 0 1cqi 2cqi oklch(0 0 0 / .5); }
.tt-rod { position: absolute; left: 78%; top: 9%; width: 1.3cqi; height: 62%; translate: -50% 0; transform-origin: top center; rotate: 28deg; border-radius: 1cqi;
  background: linear-gradient(90deg, oklch(0.55 0.005 80), oklch(0.92 0.005 80), oklch(0.6 0.005 80)); box-shadow: 1cqi 1.5cqi 2cqi oklch(0 0 0 / .4); }
.tt-head { position: absolute; left: 50%; bottom: -3cqi; width: 4.5cqi; height: 6cqi; translate: -50% 0; border-radius: 0.8cqi; background: linear-gradient(oklch(0.3 0.01 330), oklch(0.18 0.01 330)); box-shadow: inset 0 0 0 0.3cqi oklch(0.74 0.17 32 / .9); }
.tt-led { position: absolute; left: 4%; bottom: 5%; width: 1.6cqi; aspect-ratio: 1; border-radius: 50%; background: oklch(0.4 0.02 330); transition: background var(--d-md), box-shadow var(--d-md); }
.tt-knob { position: absolute; right: 6%; bottom: 7%; width: 7cqi; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, oklch(0.3 0.01 330), oklch(0.45 0.01 330), oklch(0.3 0.01 330)); box-shadow: inset 0 0 0 0.5cqi oklch(0.2 0.01 330); }
.tt.playing .tt-arm { rotate: 0deg; }
.tt.playing .tt-vinyl { animation-play-state: running; }
.tt.playing .tt-led { background: var(--accent); box-shadow: 0 0 2cqi var(--accent); }
.tt.playing .tt-head { animation: needle 0.45s ease-in-out infinite alternate; }
@keyframes needle { to { translate: -50% 0.25cqi; } }
.tt.idle .tt-vinyl { animation-duration: 7s; animation-play-state: running; }

/* 3-2-1 */
.countdown { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity var(--d-sm); background: oklch(0.11 0.02 330 / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.countdown.on { opacity: 1; }
.countdown span { font: 800 clamp(10rem, 45vw, 34rem)/1 var(--f-display); letter-spacing: -0.06em; color: var(--accent); animation: cd 1s var(--ease-out) both; }
@keyframes cd { 0% { transform: scale(1.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(.85); opacity: .15; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* Groot-scherm-kaart in de lobby */
.screen-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.screen-card .url { font: 600 1rem/1.3 var(--f-mono); word-break: break-all; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); }
.seg button { min-height: 40px; padding: 10px; font-size: var(--t-small); background: transparent; }
.seg button[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.disclaimer { font-size: .75rem; color: var(--text-4); line-height: 1.4; }
