/* Singsation — NEON JUKEBOX skin. Gritty hand-bent neon sign, not too perfect. */
@font-face { font-family: "Monoton"; src: url(/fonts/monoton.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Orbitron"; src: url(/fonts/orbitron.ttf) format("truetype"); font-weight: 400 900; font-display: swap; }
h2, h3, .btn, .seg-toggle button.on, .theme-word, .players li .sc, .hit-title, .hp-word, .wrong-big { font-weight: 800; }
@font-face { font-family: "RubikGlitch"; src: url(/fonts/rubikglitch.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Chakra"; src: url(/fonts/chakra700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #08060f;
  --cyan: #19e3ff;
  --mag: #ff2fd0;
  --purple: #a24bff;
  --lime: #b6ff3a;
  --ink: #f4f1ff;
  --muted: #9a92c0;
  --panel: rgba(15, 11, 32, 0.72);
  --line: #2b2358;
  --f-name: "Monoton", system-ui, sans-serif;
  --f-disp: "Orbitron", system-ui, sans-serif;
  --f-glit: "RubikGlitch", system-ui, monospace;
  --f-body: "Chakra", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: var(--f-body); color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -10%, #2a1150 0%, #120a2a 42%, transparent 66%),
    radial-gradient(90% 60% at 110% 110%, #3a0b4e 0%, transparent 55%),
    #08060f;
  background-attachment: fixed; min-height: 100dvh;
}
/* film grain / grime */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { max-width: 540px; margin: 0 auto; padding: 20px 16px calc(30px + env(safe-area-inset-bottom)); position: relative; z-index: 1;
  /* de nieuw-nummer-golf (scale 1.6) mag nooit een scrollbalk veroorzaken */
  min-height: 100dvh; overflow: hidden; overflow: clip; }

h2, h3 { font-family: var(--f-disp); font-weight: 400; letter-spacing: 0.5px; }
h2 { font-size: 20px; color: #fff; } h3 { font-size: 15px; color: var(--cyan); text-shadow: 0 0 10px #19e3ff66; }
.muted { color: var(--muted); } .center { text-align: center; }

/* ---- neon sign logo (slightly crooked + buzzing) ---- */
.brand { text-align: center; margin: 16px 0 12px; }
/* PartyTura sign: board hanging on two wires, a bit crooked */
.logo { position: relative; display: inline-block; padding: 16px 22px 12px; margin-top: 38px; transform: rotate(-2.2deg);
  border: 2px solid #ffffff22; border-radius: 6px; background: #0b071a99; animation: buzz 5.5s infinite steps(1); }
.logo::before, .logo::after { content: ""; position: absolute; top: -40px; width: 2px; height: 40px; background: linear-gradient(#0000, #6a628f); }
.logo::before { left: 18%; } .logo::after { right: 18%; transform: rotate(4deg); }
.logo-word { display: block; font-family: var(--f-name); font-size: clamp(30px, 10vw, 54px); line-height: 1; letter-spacing: 1px; white-space: nowrap; color: #fff; }
.lw-p { text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan), 0 0 28px var(--cyan), 0 0 50px var(--purple); }
.lw-t { text-shadow: 0 0 4px #fff, 0 0 12px var(--mag), 0 0 28px var(--mag), 0 0 50px #ff2fd066; }
.lw-dead { animation: dead 3.7s infinite steps(1); }
@keyframes dead { 0%,60%,100% { opacity: 1; } 61% { opacity: .15; text-shadow: none; } 63% { opacity: 1; } 64% { opacity: .2; text-shadow: none; } 66% { opacity: 1; } }
.logo-sub { display: block; text-align: right; font-family: var(--f-glit); font-size: 11px; letter-spacing: 3px; color: var(--lime); text-shadow: 0 0 8px #b6ff3a99; margin-top: 6px; }
@keyframes buzz { 0%,97%,100% { opacity: 1; } 97.5% { opacity: 0.55; } 98.2% { opacity: 1; } 98.7% { opacity: 0.6; } }
/* small header version: no wires, no subtitle */
.brand.small .logo { margin-top: 4px; padding: 8px 14px 7px; }
.brand.small .logo::before, .brand.small .logo::after, .brand.small .logo-sub { display: none; }
.brand.small .logo-word { font-size: clamp(22px, 7vw, 30px); }
.tag { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 22em; margin-inline: auto; }

/* ---- panels: dark glass, neon edge, barely rounded ---- */
.card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 8px; padding: 18px; margin: 14px 0;
  box-shadow: 0 0 0 1px #0ff1, 0 14px 30px rgba(0,0,0,.5), inset 0 0 36px rgba(120,60,255,.10); }
.card.center { text-align: center; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-glit); font-size: 13px; letter-spacing: 1px;
  color: var(--cyan); text-transform: uppercase; text-shadow: 0 0 10px #19e3ff88; }
.kicker .ic { width: 16px; height: 16px; color: var(--mag); }

label.field { display: block; margin: 12px 0; }
label.field > span { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px 3px; letter-spacing: 0.5px; }
input, select {
  width: 100%; padding: 14px 15px; border-radius: 7px; border: 1.5px solid var(--line);
  background: #0b0820; color: #fff; font-size: 17px; font-family: var(--f-body);
}
input::placeholder { color: #5a5490; }
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px #19e3ff33, 0 0 16px #19e3ff55; }
#code-input { text-transform: uppercase; letter-spacing: 10px; text-align: center; font-size: 24px; color: var(--cyan); }

/* ---- buttons: neon-outlined, hard press ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 15px 18px; border: 2px solid var(--mag); border-radius: 7px; cursor: pointer; margin-top: 12px;
  font-family: var(--f-disp); font-weight: 400; font-size: 18px; letter-spacing: 0.5px; color: #fff;
  background: #16081f; box-shadow: 0 0 14px #ff2fd088, inset 0 0 18px #ff2fd033, 0 5px 0 #4a0b3c;
  transition: transform .05s, box-shadow .05s; text-shadow: 0 0 8px #ff2fd0aa; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 10px #ff2fd088, 0 0 0 #4a0b3c; }
.btn.secondary { border-color: var(--cyan); color: #fff; background: #08131f;
  box-shadow: 0 0 14px #19e3ff66, inset 0 0 18px #19e3ff22, 0 5px 0 #0a3a4a; text-shadow: 0 0 8px #19e3ffaa; }
.btn.secondary:active { box-shadow: 0 0 10px #19e3ff66, 0 0 0 #0a3a4a; }
.btn[disabled] { opacity: 0.5; box-shadow: none; cursor: not-allowed; }
.btn .ic { width: 20px; height: 20px; }

.seg-toggle { display: flex; gap: 8px; }
.seg-toggle button { flex: 1; padding: 12px 6px; border-radius: 7px; border: 1.5px solid var(--line);
  background: #0b0820; color: var(--muted); font-family: var(--f-body); font-weight: 700; font-size: 14px; cursor: pointer; }
.seg-toggle button.on { color: #fff; border-color: var(--cyan); box-shadow: 0 0 14px #19e3ff55, inset 0 0 14px #19e3ff22; text-shadow: 0 0 8px #19e3ff; }

.ic { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* ---- lobby / QR (QR is the hero, no big room code) ---- */
.qr-box { display: flex; justify-content: center; margin: 14px 0 8px; }
.qr-box > div { background: #fff; padding: 12px; border-radius: 6px; line-height: 0;
  box-shadow: 0 0 22px #19e3ff66, 0 0 0 2px var(--cyan); }
.qr-box img, .qr-box canvas { display: block; width: 190px; height: 190px; }
.qr-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.code-small { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.code-small b { font-family: var(--f-name); font-size: 18px; color: var(--cyan); letter-spacing: 3px; text-shadow: 0 0 10px #19e3ff88; }
.code-big { font-family: var(--f-name); font-size: clamp(40px, 15vw, 64px); letter-spacing: 6px; color: var(--cyan);
  text-align: center; margin-top: 4px; text-shadow: 0 0 8px #19e3ff, 0 0 24px #19e3ff88; }

/* ---- players / scoreboard ---- */
.players { list-style: none; padding: 0; margin: 10px 0 0; }
.players li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px;
  background: #0b0820; border: 1px solid #1d1842; margin-bottom: 8px; }
.players li .rank { width: 20px; text-align: center; font-family: var(--f-body); color: var(--mag); font-size: 15px; }
.players li .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); flex: none; }
.players li .dot.off { background: #555; box-shadow: none; }
.players li .nm { flex: 1; font-weight: 700; display: flex; align-items: center; gap: 6px; letter-spacing: 0.5px; }
.players li .nm .ic { width: 14px; height: 14px; color: var(--muted); }
.players li .sc { font-family: var(--f-body); font-size: 20px; min-width: 36px; text-align: right; color: #fff; }
.players li.me { border-color: var(--cyan); box-shadow: inset 0 0 18px #19e3ff1f; }
.players li.lead .sc { color: var(--cyan); text-shadow: 0 0 10px #19e3ff; }

.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #0b0820;
  border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pill .ic { width: 15px; height: 15px; color: var(--mag); }

/* ---- theme reveal (neon sign on glass) ---- */
.theme-reveal { text-align: center; padding: 8px 0 2px; }
.theme-reveal .kicker { justify-content: center; }
.theme-word { font-family: var(--f-disp); color: #fff; font-size: clamp(40px, 13vw, 66px); line-height: 1.04;
  margin: 10px 0 6px;
  text-shadow: 0 0 6px #fff, 0 0 16px var(--mag), 0 0 34px var(--mag), 0 0 60px var(--purple); animation: buzz 7s infinite steps(1); }
.theme-word.txt::before, .theme-word.txt::after { content: "\201C"; color: var(--cyan); }
.theme-word.txt::after { content: "\201D"; }
.theme-explain { font-size: 16px; color: #cfe6ff; margin: 6px auto 0; max-width: 20em; }
.theme-explain b { color: var(--cyan); text-shadow: 0 0 10px #19e3ff88; }
.rules { max-width: 262px; margin: 14px auto 0; border: 1.5px solid #3a3470; border-radius: 10px; background: #0d0a1e; padding: 11px 16px 13px; box-shadow: inset 0 0 24px rgba(120, 60, 255, .12); }
.rules-hdr { font-family: var(--f-glit); color: #8a84b5; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 9px; }
.rules-ln { display: flex; align-items: center; gap: 12px; text-align: left; }
.rules-div { border-top: 1px solid #2b2358; margin: 7px 0; }
.rtag { font-family: var(--f-disp); font-weight: 800; font-size: 22px; min-width: 46px; text-align: center; }
.rtag.good { color: var(--lime); text-shadow: 0 0 10px #b6ff3a66; }
.rtag.bad { color: var(--mag); text-shadow: 0 0 10px #ff2fd066; }
.rules-d { color: #d7d2e8; font-size: 14px; }

.bar { height: 9px; background: #0b0820; border: 1px solid #1d1842; border-radius: 999px; overflow: hidden; margin: 16px 0 10px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--mag)); transition: width .2s linear; }
.hostnow { min-height: 20px; font-size: 13px; }

/* ---- buzzer: worn glowing arcade button ---- */
.buzz-wrap { display: flex; flex-direction: column; align-items: center; margin: 18px 0 6px; }
.buzzer { position: relative; width: min(74vw, 272px); aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--mag); cursor: pointer;
  background: radial-gradient(circle at 40% 32%, #4a1440 0%, #160a22 72%);
  box-shadow: 0 0 22px var(--mag), 0 0 52px #ff2fd088, inset 0 0 40px #ff2fd044, inset 0 -8px 20px rgba(0,0,0,.5);
  animation: breathe 1.7s ease-in-out infinite; }
.buzzer::before, .buzzer::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--mag);
  opacity: .55; pointer-events: none; animation: pulsering 1.7s ease-out infinite; }
.buzzer::after { animation-delay: .85s; }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 22px var(--mag), 0 0 52px #ff2fd088, inset 0 0 40px #ff2fd044, inset 0 -8px 20px rgba(0,0,0,.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 32px var(--mag), 0 0 72px var(--mag), inset 0 0 50px #ff2fd066, inset 0 -8px 20px rgba(0,0,0,.5); } }
@keyframes pulsering { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }
.buzzer:active { transform: scale(0.95); animation: none; }
/* HIT in neon letters (logo font) inside the buzzer; flashes lime while pressed */
.buzzer { display: grid; place-items: center; padding: 0; color: #fff; }
.buzz-hit { font-family: var(--f-name); font-size: clamp(64px, 22vw, 86px); line-height: .9; letter-spacing: 3px; color: #fff; pointer-events: none;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--mag), 0 0 30px var(--mag); }
.buzzer:active:not([disabled]) .buzz-hit { text-shadow: 0 0 6px #fff, 0 0 18px var(--lime), 0 0 40px var(--lime); }
.buzzer[disabled] { border-color: #40405a; filter: grayscale(0.7) brightness(0.55); box-shadow: inset 0 0 26px #0008; animation: none; }
.buzzer[disabled]::before, .buzzer[disabled]::after { display: none; }
.buzz-hint { color: var(--muted); margin-top: 18px; text-align: center; min-height: 20px; font-size: 13.5px; letter-spacing: 0.5px; }

.controls-row { display: flex; gap: 10px; } .controls-row .btn { margin-top: 0; }
.ic.flip { transform: scaleX(-1); }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 13px 20px; border-radius: 7px;
  font-family: var(--f-disp); font-size: 17px; z-index: 50; display: flex; align-items: center; gap: 8px; border: 2px solid; background: #0b0820; }
.toast .ic { width: 20px; height: 20px; }
.toast.good { color: var(--lime); border-color: var(--lime); box-shadow: 0 0 18px #b6ff3a66; }
.toast.bad { color: var(--mag); border-color: var(--mag); box-shadow: 0 0 18px #ff2fd066; }
.toast.neutral { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px #19e3ff66; }

/* ---- hit overlay ---- */
.hit-ov { position: fixed; inset: 0; background: rgba(5,3,12,.82); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 60; }
.hit-card { background: var(--panel); border: 2px solid var(--lime); border-radius: 8px; padding: 26px 22px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 0 30px #b6ff3a55, inset 0 0 40px #b6ff3a11; }
.hit-badge { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid var(--lime); color: var(--lime);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px #b6ff3a66; }
.hit-badge .ic { width: 32px; height: 32px; }
.hit-title { font-family: var(--f-disp); font-size: 32px; color: var(--lime); text-shadow: 0 0 14px #b6ff3a88; }
.hit-pts { font-size: 18px; margin: 4px 0 16px; } .hit-pts b { color: var(--cyan); }
.hit-song, .hit-lyric { background: #0b0820; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 3px; }
.hv-k { font-family: var(--f-glit); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.hv-song { font-size: 19px; font-weight: 700; } .hv-by { font-size: 14px; color: var(--muted); }
.hv-word { font-family: var(--f-disp); font-size: 28px; color: var(--cyan); letter-spacing: 1px; text-shadow: 0 0 12px #19e3ff88; }
.hit-card .hit-close { margin-top: 14px; }

/* ---- reveal / end ---- */
.feed { list-style: none; padding: 0; margin: 10px 0 0; max-height: 200px; overflow: auto; }
.feed li { padding: 8px 11px; border-radius: 6px; margin-bottom: 6px; font-size: 14px; background: #0b0820; border-left: 3px solid var(--mag); display: flex; align-items: center; gap: 8px; }
.feed li .ic { width: 16px; height: 16px; color: var(--mag); flex: none; } .feed li b { font-weight: 700; }
.reveal-list { list-style: none; padding: 0; margin: 10px 0 0; }
.reveal-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; margin-bottom: 7px; background: #0b0820; border: 1px solid #1d1842; }
.reveal-list li .ic { width: 20px; height: 20px; flex: none; }
.reveal-list li.good { border-color: var(--lime); } .reveal-list li.good .ic { color: var(--lime); }
.reveal-list li.bad { border-color: #3a2350; } .reveal-list li.bad .ic { color: var(--mag); }
.reveal-list li .t { flex: 1; font-size: 14px; } .reveal-list li .w { font-size: 12px; color: var(--cyan); font-weight: 700; white-space: nowrap; }

.err { border: 1.5px solid var(--mag); background: #1a0820; padding: 11px; border-radius: 6px; text-align: center; margin: 10px 0; font-size: 14px; color: #ffd0ef; }
.winner-name { font-family: var(--f-name); font-size: 38px; color: var(--cyan); margin: 10px 0 2px; text-shadow: 0 0 10px #19e3ff, 0 0 30px #19e3ff88; }
.footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }

/* sound-wave background */
/* big PartyTura "P" watermark behind the play screen (empty neon tube, crooked, see-through); sits under the sound waves */
#wm-p { position: fixed; left: 50%; top: 54%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 0; pointer-events: none; display: none;
  font-family: var(--f-name); font-size: min(112vw, 66vh); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--purple);
  opacity: .26; filter: drop-shadow(0 0 10px var(--purple)); }
#waves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }

/* home: two big choices */
.home-choice { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.btn.big { padding: 26px 18px; font-size: 22px; }
.back { background: none; border: none; color: var(--muted); font-family: var(--f-body); font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 2px; margin: 2px 0; }
.btn-stop { display: block; width: auto; margin: 16px auto 0; background: none; border: 1px solid #4a2a4a; color: var(--muted); font-family: var(--f-body); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 7px; cursor: pointer; }
.btn-stop:active { color: var(--coral); border-color: var(--coral); }
.back:active { color: var(--cyan); }

/* compact rewind */
.rew { flex: 0 0 auto !important; width: auto; min-width: 84px; padding: 15px 12px; font-size: 15px; }

/* hit panel (replaces buzzer after a correct press) */
.buzz-wrap, .hit-panel { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hit-panel { text-align: center; padding: 16px 8px; }
.hp-title { font-family: var(--f-disp); font-size: clamp(26px, 8vw, 38px); color: var(--lime); text-shadow: 0 0 18px #b6ff3a88; line-height: 1.05; }
.hp-song { margin-top: 12px; font-weight: 700; color: #fff; font-size: 18px; }
.hp-by { color: var(--muted); font-weight: 400; }
.hp-lyric { margin-top: 14px; font-size: 20px; color: #cfe6ff; line-height: 1.4; max-width: 18em; }
.hp-lyric b { color: var(--cyan); text-shadow: 0 0 12px #19e3ff88; }
.hp-word { margin-top: 14px; font-family: var(--f-disp); font-size: 36px; color: var(--cyan); text-shadow: 0 0 16px #19e3ff88; }

/* wrong flash overlay (everyone) */
.wrong-ov { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 60; background: rgba(45,2,24,.5); }
.wrong-card { text-align: center; animation: wpop .22s ease; }
@keyframes wpop { from { transform: scale(.7); opacity: 0; } }
.wrong-big { font-family: var(--f-disp); font-size: clamp(54px, 17vw, 96px); color: var(--mag); text-shadow: 0 0 26px var(--mag), 0 0 60px #ff2fd088; }
.wrong-sub { font-size: 20px; color: #ffd0ef; margin-top: 6px; letter-spacing: 0.5px; }

/* tiny neutral flash */
.flash { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 12px 18px; border: 2px solid var(--cyan); border-radius: 7px; background: #0b0820; color: var(--cyan); z-index: 50; font-family: var(--f-disp); }

/* theme intro animation */
.intro { min-height: 74vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.intro-kicker { font-family: var(--f-glit); color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; font-size: 14px; text-shadow: 0 0 10px #19e3ff88; opacity: 0; animation: introK .6s ease .2s forwards; }
.intro-word { font-size: clamp(48px, 17vw, 96px); margin: 12px 0; opacity: 0; transform: scale(.55); animation: introW 1s cubic-bezier(.2,1.3,.35,1) .5s forwards; }
.intro-explain { font-size: 18px; max-width: 18em; opacity: 0; transform: translateY(12px); animation: introE .7s ease 2.5s forwards; }
@keyframes introK { to { opacity: 1; } }
@keyframes introW { 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes introE { to { opacity: 1; transform: translateY(0); } }

/* ===== v2 (2026-11-19): spelvormen, muziekkeuze, stand-ladder ===== */
.rules.speed { max-width: 300px; }
.rules.speed .rtag { font-size: 16px; min-width: 66px; }

/* lobby: spelvorm */
.mode-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mode-opt { text-align: left; padding: 12px 14px; border-radius: 7px; border: 1.5px solid var(--line); background: #0b0820; color: var(--muted);
  font-family: var(--f-body); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.mode-opt b { color: #d7d2e8; font-size: 16px; letter-spacing: .5px; }
.mode-opt span { font-size: 13px; line-height: 1.35; }
.mode-opt.on { border-color: var(--cyan); box-shadow: 0 0 14px #19e3ff44, inset 0 0 14px #19e3ff1a; }
.mode-opt.on b { color: #fff; text-shadow: 0 0 8px #19e3ff; }

/* lobby: muziek */
.music-head { display: flex; align-items: center; justify-content: space-between; }
.music-head h3 { margin: 0; }
.link-btn { background: none; border: 1px solid var(--line); color: var(--cyan); font-family: var(--f-body); font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.music-sum { margin-top: 8px; color: var(--muted); font-size: 14px; }
.music-sum b { color: #fff; font-size: 16px; }
.set-lbl { margin: 16px 0 7px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8a84b5; font-family: var(--f-glit); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #0b0820; color: var(--muted);
  font-family: var(--f-body); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip.on { color: #fff; border-color: var(--mag); box-shadow: 0 0 12px #ff2fd055, inset 0 0 10px #ff2fd022; text-shadow: 0 0 8px #ff2fd0; }
.pick-toggle { display: block; width: 100%; text-align: left; margin-top: 16px; padding: 10px 0; background: none; border: 0; border-top: 1px solid #1d1842;
  color: #d7d2e8; font-family: var(--f-body); font-weight: 700; font-size: 14px; cursor: pointer; }
.pick-toggle .muted { font-weight: 400; }
.pick-actions { display: flex; gap: 8px; margin: 4px 0 8px; }
.pick-actions button { background: none; border: 1px solid var(--line); color: var(--muted); font-family: var(--f-body); font-size: 12px; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.pick-list li label { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #16123a; cursor: pointer; }
.pick-list input { width: 18px; height: 18px; accent-color: var(--cyan); flex: none; }
.pk-t { flex: 1; color: #e8e4f8; font-size: 14px; }
.pk-l { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

/* stand-ladder: max 4 rijen, rijen schuiven langs elkaar */
.ladder { position: relative; width: min(100%, 330px); margin: 14px auto 6px; }
.lrow { position: absolute; left: 0; right: 0; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 6px; background: #0b0820; border: 1px solid #1d1842; transition: top .75s cubic-bezier(.5, -0.25, .3, 1.35), box-shadow .3s; }
.lrow .rank { width: 22px; text-align: center; color: var(--mag); font-family: var(--f-body); font-size: 15px; }
.lrow .nm { flex: 1; text-align: left; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lrow .sc { font-family: var(--f-body); font-size: 20px; min-width: 32px; text-align: right; color: #fff; }
.lrow .dl { font-family: var(--f-disp); font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.lrow .dl.show { opacity: 1; transform: none; }
.lrow.plus .dl { color: var(--lime); text-shadow: 0 0 8px #b6ff3a88; }
.lrow.min .dl { color: var(--mag); text-shadow: 0 0 8px #ff2fd088; }
.lrow.focus { border-color: var(--cyan); box-shadow: 0 0 16px #19e3ff44, inset 0 0 16px #19e3ff1f; z-index: 2; }
.lrow.focus .nm { color: #fff; }
.lrow.bump .sc { animation: bump .5s ease-out; }
.lrow.plus.bump .sc { color: var(--lime); text-shadow: 0 0 10px var(--lime); }
.lrow.min.bump .sc { color: var(--mag); }
.lrow.rise { z-index: 3; box-shadow: 0 0 22px #b6ff3a66, inset 0 0 16px #b6ff3a22; border-color: var(--lime); }
.lrow.sink { opacity: .75; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.6); } 100% { transform: scale(1); } }
.hp-kick { font-family: var(--f-disp); font-size: clamp(20px, 6vw, 28px); color: var(--lime); text-shadow: 0 0 16px #b6ff3a88; }
.hit-panel .hp-song { margin-top: 8px; }
.hit-panel .hp-lyric { font-size: 17px; margin-top: 8px; }
.hit-panel .hp-word { font-size: 28px; margin-top: 8px; }

/* Iedereen scoort: klok + ingedrukt + uitslag-sheet */
.clock { width: min(80vw, 290px); margin-top: 16px; text-align: center; }
.clock-bar { height: 10px; border-radius: 999px; background: #0b0820; border: 1px solid #1d1842; overflow: hidden; }
.clock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mag), var(--cyan)); box-shadow: 0 0 10px #19e3ff88; transition: width .1s linear; }
.clock-pts { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.clock-pts b { font-family: var(--f-disp); font-size: 24px; color: #fff; text-shadow: 0 0 10px var(--cyan); vertical-align: -3px; margin-right: 4px; }
.locked-panel { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lp-big { font-family: var(--f-name); font-size: clamp(34px, 11vw, 52px); color: #fff; text-shadow: 0 0 8px #fff, 0 0 22px var(--cyan); }
.lp-pts { margin-top: 12px; font-size: 18px; color: #d7d2e8; }
.lp-pts b { font-family: var(--f-disp); font-size: 30px; color: var(--cyan); text-shadow: 0 0 12px #19e3ff; }
.lp-sub { margin-top: 10px; color: var(--muted); font-size: 13.5px; max-width: 18em; }
.result-sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 460px); z-index: 60; pointer-events: none;
  background: rgba(10, 7, 26, .96); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 14px 16px 18px;
  box-shadow: 0 -10px 40px #000a; text-align: center; animation: sheetIn .35s ease-out; }
.result-sheet.good { border-color: var(--lime); }
.result-sheet.bad { border-color: var(--mag); }
.result-sheet.out { animation: sheetOut .4s ease-in forwards; }
.rs-head { font-family: var(--f-disp); font-size: 24px; color: #fff; }
.result-sheet.good .rs-head { color: var(--lime); text-shadow: 0 0 14px #b6ff3a88; }
.result-sheet.bad .rs-head { color: var(--mag); text-shadow: 0 0 14px #ff2fd088; }
.rs-head small { font-family: var(--f-body); font-size: 13px; color: var(--muted); text-shadow: none; }
.rs-song { margin-top: 4px; color: #e8e4f8; font-weight: 700; font-size: 15px; }
.rs-by { color: var(--muted); font-weight: 400; }
.rs-tag { font-size: 11px; color: var(--mag); border: 1px solid var(--mag); border-radius: 4px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
.result-sheet .ladder { margin-top: 10px; }
@keyframes sheetIn { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes sheetOut { to { transform: translate(-50%, 100%); opacity: 0; } }
.reveal-list .w .neg { color: var(--mag); }

/* ===== v3 (2026-11-19): klok 5→0 als neon-ring rond de HIT-knop ===== */
.buzz-holder { position: relative; display: grid; place-items: center; }
.ck-cap { margin-top: 16px; color: var(--muted); font-size: 13.5px; text-align: center; min-height: 20px; letter-spacing: .4px; }
.ck-cap b { color: var(--lime); font-family: var(--f-disp); font-size: 18px; text-shadow: 0 0 10px #b6ff3a88; }
.buzz-wrap.speed[data-pts="5"], .buzz-wrap.speed[data-pts="4"] { --ck: var(--lime); }
.buzz-wrap.speed[data-pts="3"] { --ck: var(--cyan); }
.buzz-wrap.speed[data-pts="2"], .buzz-wrap.speed[data-pts="1"] { --ck: var(--mag); }
.buzz-wrap.speed.is-bonus { --ck: #ffd23a; }
.ck-num.tick { animation: ckTick .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ckTick { 0% { transform: scale(1.45); filter: brightness(2.2); } 100% { transform: scale(1); filter: none; } }

/* B — RING: vijf neon-boogjes rond de knop die één voor één doven */
.ck-ringsvg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); pointer-events: none; overflow: visible; }
.ck-arc { fill: none; stroke: #2a2450; stroke-width: 3.4; stroke-linecap: butt; transition: stroke .25s, filter .25s, opacity .4s; }
.ck-arc.lit { stroke: var(--ck); filter: drop-shadow(0 0 2.5px var(--ck)) drop-shadow(0 0 6px var(--ck)); }
.ck-ring .buzzer::before, .ck-ring .buzzer::after { display: none; }
.ck-badge { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: #0b0820;
  border: 2px solid var(--ck); color: #fff; font-family: var(--f-disp); font-size: 22px; box-shadow: 0 0 14px var(--ck); text-shadow: 0 0 8px var(--ck); white-space: nowrap; }
.ck-badge .ck-num { display: inline-block; }
.ck-badge.bonus { font-size: 16px; padding: 5px 14px; }

/* uitslag in de knop-plek (Iedereen scoort) */
.hit-panel.sp.good .hp-kick { color: var(--lime); }
.hit-panel.sp.bad .hp-kick { color: var(--mag); text-shadow: 0 0 16px #ff2fd088; }
.hit-panel.sp.neutral .hp-kick { color: #fff; text-shadow: 0 0 14px #19e3ff88; }
.hp-kick small { font-family: var(--f-body); font-size: 13px; color: var(--muted); text-shadow: none; display: block; margin-top: 2px; }
.hp-tag { margin-top: 10px; display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mag); border: 1px solid var(--mag); border-radius: 4px; padding: 2px 8px; }
.buzz-wrap.ck-ring { padding: 46px 0 22px; }

/* ===== v4 (2026-11-19): compacter speelscherm ===== */
/* thema-woord past altijd: --len = langste woord (in tekens) */
.theme-word { --fit: calc(min(90vw, 440px) / var(--len, 6) / 0.86); }
.theme-reveal .theme-word { font-size: min(clamp(40px, 13vw, 66px), var(--fit)); }
.intro .theme-word.intro-word { font-size: min(clamp(48px, 17vw, 96px), var(--fit)); }
/* spelregels als één korte regel */
.rule-line { margin: 10px auto 0; font-size: 14px; color: #d7d2e8; letter-spacing: .3px; }
.rule-line b { font-family: var(--f-disp); font-weight: 800; }
.rule-line b.g { color: var(--lime); text-shadow: 0 0 8px #b6ff3a66; }
.rule-line b.b { color: var(--mag); text-shadow: 0 0 8px #ff2fd066; }
.theme-reveal .theme-explain { font-size: 15px; }
/* Start de muziek: direct onder het thema, dus altijd in beeld */
.btn.start-music { margin: 14px 0 4px; }
/* fout gedrukt: eigen paneel */
.hp-wait { margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* ===== v5 (2026-11-19): race-fase — ring goud, loopt weer op, alleen voor de eerste ===== */
.buzz-wrap.speed.is-race { --ck: #ffd23a; }
.ck-cap.race { color: #ffe9a3; }
.ck-cap.race b { color: #ffd23a; font-family: var(--f-body); font-size: inherit; text-shadow: 0 0 8px #ffd23a88; }
.is-race .ck-badge { animation: racePulse 1.2s ease-in-out infinite; }
@keyframes racePulse { 50% { box-shadow: 0 0 26px #ffd23a; } }

/* ===== v6: startschermen — de naam is de hoofdzaak ===== */
.field.big > span { font-family: var(--f-disp); font-size: 22px; color: #fff; text-transform: none; letter-spacing: .3px; margin: 12px 0 10px; display: block;
  text-shadow: 0 0 10px #19e3ff55; }
.field.big input { font-size: 20px; padding: 16px 14px; }

/* ===== v7: flits bij een nieuw nummer ===== */
/* --ns-t = negatieve vertraging, zodat een tussentijdse render de animatie niet opnieuw start */
.new-song .buzz-holder { animation: nsFlash .8s ease-out var(--ns-t) both; }
.new-song .buzz-holder::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 5px solid #fff; pointer-events: none;
  box-shadow: 0 0 30px #fff, 0 0 60px var(--cyan); animation: nsWave 1.1s cubic-bezier(.2, .7, .3, 1) var(--ns-t) both; }
.new-song .buzz-holder::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--cyan); pointer-events: none;
  animation: nsWave 1.3s cubic-bezier(.2, .7, .3, 1) calc(var(--ns-t) + 180ms) both; }
@keyframes nsFlash { 0% { filter: brightness(2.6) saturate(.4); transform: scale(.94); } 60% { transform: scale(1.03); } 100% { filter: none; transform: none; } }
@keyframes nsWave { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.ns-label { margin-top: 16px; min-height: 20px; font-family: var(--f-disp); font-size: 20px; letter-spacing: 1px; color: #fff; text-align: center;
  text-shadow: 0 0 10px #fff, 0 0 22px var(--cyan); animation: nsLabel 1.5s ease-out var(--ns-t) both; }
@keyframes nsLabel { 0% { opacity: 0; transform: scale(1.4); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.site-foot { margin-top: 48px; text-align: center; color: var(--muted); opacity: 0.6; font-size: 12px; letter-spacing: 0.5px; }
