/* Kwistig: gedeelde stijl (start, telefoon, tv, quizmaster, editor) */
:root {
  --bg: #120c08; --bg2: #2b1a10; --card: rgba(255,255,255,.06); --card2: rgba(255,255,255,.1); --line: rgba(255,255,255,.13);
  --text: #fff7ec; --muted: #cdb9a3; --accent: #f4a63a; --accent2: #ffe2a8; --good: #3ddc84; --bad: #ff5d5d; --ink: #1d1206;
  --radius: 20px; --shadow: 0 14px 40px rgba(0,0,0,.45); --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
  --accent-rgb: 244,166,58; --accent2-rgb: 255,226,168; --bg-rgb: 18,12,8; --bg2-rgb: 43,26,16; --good-rgb: 61,220,132; --accent-d: #aa7428;
}
/* thema's: alleen kleuren; deeltjes zitten in common.js */
html[data-theme="sinterklaas"] { --bg: #14070a; --bg2: #3a0d16; --accent: #f2c14e; --accent2: #ff6b74; --muted: #d6b4b0; --ink: #2a0b00; --accent-rgb: 242,193,78; --accent-d: #a98736; --accent2-rgb: 255,107,116; --bg-rgb: 20,7,10; --bg2-rgb: 58,13,22; }
html[data-theme="halloween"] { --bg: #0b0710; --bg2: #24112e; --accent: #ff7a1a; --accent2: #9dff6b; --muted: #bfaecb; --ink: #1a0800; --accent-rgb: 255,122,26; --accent-d: #b25512; --accent2-rgb: 157,255,107; --bg-rgb: 11,7,16; --bg2-rgb: 36,17,46; }
html[data-theme="verjaardag"] { --bg: #0d0a1f; --bg2: #2a1650; --accent: #ff5fa8; --accent2: #52e0ff; --muted: #c4b8e6; --ink: #2b0019; --accent-rgb: 255,95,168; --accent-d: #b24275; --accent2-rgb: 82,224,255; --bg-rgb: 13,10,31; --bg2-rgb: 42,22,80; }
html[data-theme="kerst"] { --bg: #06120b; --bg2: #11301d; --accent: #f5cd5b; --accent2: #ff5a5f; --muted: #b6c9ba; --ink: #2a1c00; --accent-rgb: 245,205,91; --accent-d: #ab8f3f; --accent2-rgb: 255,90,95; --bg-rgb: 6,18,11; --bg2-rgb: 17,48,29; }
html[data-theme="oudnieuw"] { --bg: #05070f; --bg2: #141b3a; --accent: #f6d27a; --accent2: #c8d3ff; --muted: #aab3d6; --ink: #241900; --accent-rgb: 246,210,122; --accent-d: #ac9355; --accent2-rgb: 200,211,255; --bg-rgb: 5,7,15; --bg2-rgb: 20,27,58; }
html[data-theme="koningsdag"] { --bg: #07111f; --bg2: #102a4f; --accent: #ff8a1f; --accent2: #ffffff; --muted: #b3c3dc; --ink: #2a1200; --accent-rgb: 255,138,31; --accent-d: #b26015; --accent2-rgb: 255,255,255; --bg-rgb: 7,17,31; --bg2-rgb: 16,42,79; }
html[data-theme="carnaval"] { --bg: #0f0716; --bg2: #3a1150; --accent: #ffd23f; --accent2: #3ddc84; --muted: #d2bde0; --ink: #2a1f00; --accent-rgb: 255,210,63; --accent-d: #b2932c; --accent2-rgb: 61,220,132; --bg-rgb: 15,7,22; --bg2-rgb: 58,17,80; }
html[data-theme="pasen"] { --bg: #0a1416; --bg2: #18403f; --accent: #ffe066; --accent2: #ffa8d5; --muted: #b8d3cf; --ink: #2b2300; --accent-rgb: 255,224,102; --accent-d: #b29c47; --accent2-rgb: 255,168,213; --bg-rgb: 10,20,22; --bg2-rgb: 24,64,63; }
html[data-theme="zomer"] { --bg: #041420; --bg2: #08405e; --accent: #ffd23f; --accent2: #ff7f6b; --muted: #a9cde0; --ink: #2a2000; --accent-rgb: 255,210,63; --accent-d: #b2932c; --accent2-rgb: 255,127,107; --bg-rgb: 4,20,32; --bg2-rgb: 8,64,94; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body { font: 17px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
/* achtergrond vast achter de pagina (ook op iOS, dat geen background-attachment: fixed kent) */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1100px 700px at 85% -10%, rgba(var(--accent-rgb), 0.28), transparent 60%),
              radial-gradient(900px 600px at -10% 110%, rgba(var(--accent2-rgb), 0.16), transparent 60%),
              linear-gradient(180deg, var(--bg2), var(--bg)); transition: background .6s; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.01em; line-height: 1.12; }
a { color: var(--accent2); }
button { font: inherit; color: inherit; }

.btn { appearance: none; border: 0; cursor: pointer; font-weight: 800; white-space: nowrap; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-d)); padding: 13px 22px; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35); transition: transform .1s, filter .1s; text-decoration: none; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn.big { padding: 18px 26px; font-size: 1.2rem; border-radius: 18px; }
.btn.danger { background: linear-gradient(135deg, #ff5d5d, #b52a2a); color: #fff; box-shadow: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.muted { color: var(--muted); } .center { text-align: center; } .small { font-size: .85rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input, select, textarea { font: inherit; color: var(--text); background: rgba(0,0,0,.32); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(var(--accent-rgb), 0.75); outline-offset: 1px; }
label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: .92rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85em; white-space: nowrap; }
.chip:empty { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
.logo .mark { width: 2em; height: auto; flex: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.logo .wm { white-space: nowrap; }
.logo .dot { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: #ff5a1f; margin-left: .06em; align-self: flex-end; margin-bottom: .32em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bg2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); z-index: 80; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }
.offline { position: fixed; top: 0; left: 0; right: 0; background: #b4232c; color: #fff; text-align: center; padding: 6px; font-weight: 700; z-index: 90; display: none; }
body.disconnected .offline { display: block; }
.kversion { position: fixed; left: 8px; bottom: 2px; z-index: 80; font-size: 10px; color: rgba(255,255,255,.28); pointer-events: none; font-variant-numeric: tabular-nums; }
.fxcanvas { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100vw; height: 100vh; }
/* team-bolletje met emoji en kleur */
.tdot { display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: rgba(var(--tc-rgb, 136,136,136), 0.3); border: 2px solid var(--tc, #888); flex: none; font-size: 1em; }
/* zwevende themadeeltjes */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
#particles span { position: absolute; top: -60px; opacity: .22; animation: fall linear forwards; filter: saturate(.8); }
@keyframes fall { to { transform: translate(var(--drift, 0), 112vh) rotate(200deg); } }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* geen inzoomen bij twee keer snel tikken (reacties, knoppen) */
html, body, button, a, input, .btn { touch-action: manipulation; }
/* het definitieve logo (licht, voor donkere achtergronden): overal dezelfde afbeelding */
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo picture { display: block; line-height: 0; }
.logo .merk { display: block; width: clamp(118px, 32vw, 170px); height: auto; }
.logo-sub { font-weight: 700; font-size: .95rem; color: inherit; opacity: .8; padding-left: .7rem; border-left: 1px solid currentColor; line-height: 1.2; }
