/* ============================================================
   VERJAARDAGSQUIZ  •  Julie & Lex  —  Modern Edition
   ============================================================ */

/* ── Animated CSS custom property for spinning borders ── */
@property --card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── 1. Design Tokens ── */
:root {
  --bg:         #060112;
  --bg2:        #0e0228;
  --surface:    rgba(255,255,255,0.055);
  --surface-hi: rgba(255,255,255,0.10);
  --border:     rgba(255,255,255,0.10);
  --border-hi:  rgba(255,255,255,0.22);
  --text:       #f0e6ff;
  --muted:      rgba(200,178,255,0.52);
  --gold:       #ffd859;
  --pink:       #ff5fa0;
  --purple:     #7b6cff;
  --green:      #00dba8;
  --red:        #ff5c7c;
  --font:       'Nunito', system-ui, sans-serif;
  --radius-lg:  24px;
  --radius-md:  16px;
  --radius-sm:  10px;
  --trans:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 3. Base ── */
html { height: 100%; }

body {
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 4. Aurora background blobs ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 650px 420px at 12% 18%,  rgba(123,108,255,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 520px 360px at 85% 72%,  rgba(255,95,160,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 800px 550px at 55% 100%, rgba(30,8,80,0.55)    0%, transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   {
    background:
      radial-gradient(ellipse 650px 420px at 12% 18%,  rgba(123,108,255,0.28) 0%, transparent 70%),
      radial-gradient(ellipse 520px 360px at 85% 72%,  rgba(255,95,160,0.22)  0%, transparent 70%),
      radial-gradient(ellipse 800px 550px at 55% 100%, rgba(30,8,80,0.55)     0%, transparent 70%);
  }
  33%  {
    background:
      radial-gradient(ellipse 700px 500px at 70% 8%,   rgba(255,95,160,0.26)  0%, transparent 70%),
      radial-gradient(ellipse 500px 400px at 15% 85%,  rgba(123,108,255,0.24) 0%, transparent 70%),
      radial-gradient(ellipse 600px 500px at 85% 45%,  rgba(0,219,168,0.14)   0%, transparent 70%);
  }
  66%  {
    background:
      radial-gradient(ellipse 600px 450px at 90% 55%,  rgba(0,219,168,0.20)   0%, transparent 70%),
      radial-gradient(ellipse 500px 350px at 35% 25%,  rgba(255,216,89,0.12)  0%, transparent 70%),
      radial-gradient(ellipse 700px 600px at 50% 90%,  rgba(123,108,255,0.30) 0%, transparent 70%);
  }
  100% {
    background:
      radial-gradient(ellipse 650px 420px at 42% 78%,  rgba(255,95,160,0.24)  0%, transparent 70%),
      radial-gradient(ellipse 520px 360px at 72% 15%,  rgba(123,108,255,0.20) 0%, transparent 70%),
      radial-gradient(ellipse 700px 500px at 8%  42%,  rgba(0,219,168,0.16)   0%, transparent 70%);
  }
}

/* ── 5. Star field ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 7%  14%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 22% 62%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 48% 8%,  rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 67% 88%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 83% 31%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 13% 79%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 38% 95%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 91% 58%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 29% 44%, rgba(255,248,200,0.9), transparent),
    radial-gradient(1.5px 1.5px at 61% 22%, rgba(255,248,200,0.9), transparent),
    radial-gradient(2px 2px at 78% 12%, rgba(255,216,89,1), transparent),
    radial-gradient(2px 2px at 4%  50%, rgba(255,216,89,1), transparent),
    radial-gradient(1px 1px at 52% 53%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 36% 72%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 94% 86%, rgba(255,255,255,0.7), transparent);
  animation: starPulse 6s ease-in-out infinite alternate;
}
@keyframes starPulse {
  from { opacity: 0.45; }
  to   { opacity: 0.85; }
}

/* ── 6. Confetti Canvas ── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ── 7. Background animations layer ── */
#bg-animations {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* ── 8. App wrapper ── */
#app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 9. Screens ── */
.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 24px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen.active {
  display: flex;
  animation: screenIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}


/* ╔══════════════════════════════════════╗
   ║  WELKOM SCHERM                        ║
   ╚══════════════════════════════════════╝ */

.welcome-content {
  text-align: center;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Animated crown */
.crown-anim {
  font-size: 5rem;
  display: inline-block;
  animation: crownFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(255,216,89,0.75));
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(6deg); }
}

/* Shimmer title */
.welcome-title {
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.12;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;

  background: linear-gradient(
    90deg,
    #ffd859 0%,
    #ff5fa0 20%,
    #ffffff 38%,
    #c4b5fd 50%,
    #ff5fa0 65%,
    #ffd859 80%,
    #ff5fa0 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  from { background-position: 250% center; }
  to   { background-position: -250% center; }
}

.spin-emoji {
  display: inline-block;
  -webkit-text-fill-color: initial;
  animation: spinSlow 6s linear infinite;
  font-size: 0.85em;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* Person duo cards */
.birthday-duo {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 32px;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Colored glow */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 16px 40px rgba(0,0,0,0.35),
    0 0 60px -10px rgba(123,108,255,0.3);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.person-card:first-of-type {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 16px 40px rgba(0,0,0,0.35),
    0 0 60px -10px rgba(255,95,160,0.35);
}
.person-card:hover { transform: scale(1.07) rotate(-1.5deg); }

.person-emoji { font-size: 3rem; }
.person-name  {
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.duo-amp {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(255,216,89,0.7),
    0 0 50px rgba(255,216,89,0.3);
  animation: ampPulse 2.5s ease-in-out infinite;
}
@keyframes ampPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255,216,89,0.7), 0 0 50px rgba(255,216,89,0.3); }
  50%       { text-shadow: 0 0 30px rgba(255,216,89,1),   0 0 70px rgba(255,216,89,0.5); }
}

.welcome-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  border-radius: 50px;
  transition: all var(--trans);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

/* Shine sweep on all buttons */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-15deg);
  transition: none;
}
.btn:hover::after {
  animation: btnShine 0.7s ease-out forwards;
}
@keyframes btnShine {
  to { left: 140%; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  color: #fff;
  padding: 15px 40px;
  font-size: 1.15rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 8px 32px rgba(123,108,255,0.5),
    0 0 60px -10px rgba(255,95,160,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15),
    0 16px 44px rgba(123,108,255,0.65),
    0 0 80px -5px rgba(255,95,160,0.55);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 28px;
  font-size: 1rem;
  backdrop-filter: blur(14px);
}
.btn-secondary:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-xl  { padding: 18px 52px; font-size: 1.3rem; }
.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }

/* Heartbeat pulse */
.pulse {
  animation: heartPulse 2.6s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.1),
      0 8px 32px rgba(123,108,255,0.5),
      0 0 60px -10px rgba(255,95,160,0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.15),
      0 8px 50px rgba(123,108,255,0.75),
      0 0 80px -5px rgba(255,95,160,0.65);
    transform: scale(1.025);
  }
}

.mt-20 { margin-top: 20px; }
.mt-10 { margin-top: 10px; }

.themes-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-danger-ghost {
  color: rgba(255, 92, 124, 0.55);
}
.btn-danger-ghost:hover {
  color: var(--red);
}


/* ╔══════════════════════════════════════╗
   ║  THEMA-SELECTIE SCHERM               ║
   ╚══════════════════════════════════════╝ */

.themes-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1020px;
  padding: 10px 0 44px;
}

.themes-header {
  text-align: center;
  margin-bottom: 40px;
}
.themes-header h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Player scoreboard */
.player-scoreboard {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 40px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 12px 40px rgba(0,0,0,0.3);
}

.player-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
}

.ps-emoji { font-size: 2.2rem; line-height: 1; }
.ps-name  { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.ps-score {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: 2px 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.ps-score.bump { transform: scale(1.35); }
.ps-unit  { font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.juul-card .ps-score {
  color: var(--pink);
  text-shadow: 0 0 24px rgba(255,95,160,0.55);
}
.lex-card .ps-score {
  color: var(--purple);
  text-shadow: 0 0 24px rgba(123,108,255,0.55);
}

.ps-vs {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,216,89,0.5);
  flex-shrink: 0;
}

/* Player badge on question screen */
.player-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 0 16px -4px currentColor;
}
.player-badge.hidden { display: none; }

/* Theme cards grid */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 12px;
}

/* Spinning gradient border card */
.theme-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;

  /* Baseline border via box-shadow (avoids pseudo-element z-issues) */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    0 12px 36px rgba(0,0,0,0.3);
}

/* Spinning conic border (on hover) */
.theme-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  background: conic-gradient(
    from var(--card-angle),
    var(--card-color, var(--purple)) 0deg,
    transparent          80deg,
    var(--card-color2, var(--pink)) 180deg,
    transparent          260deg,
    var(--card-color, var(--purple)) 360deg
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  --card-angle: 0deg;
  animation: spinBorder 3.5s linear infinite;
}
.theme-card:hover::before { opacity: 1; }

@keyframes spinBorder { to { --card-angle: 360deg; } }

/* Inner colour overlay (subtle tint on hover) */
.theme-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--card-gradient, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.theme-card:hover::after { opacity: 0.12; }

.theme-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.16),
    0 24px 56px rgba(0,0,0,0.42),
    0 0 48px -8px var(--card-color, rgba(123,108,255,0.5));
}

.theme-card.done {
  box-shadow:
    inset 0 0 0 1px rgba(255,216,89,0.25),
    0 12px 36px rgba(0,0,0,0.3),
    0 0 36px -10px rgba(255,216,89,0.3);
}

.theme-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(20%);
}
.theme-card.locked:hover {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 12px 36px rgba(0,0,0,0.3);
}
.theme-card.locked::before { display: none; }

.tc-emoji {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.tc-name    { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.tc-desc    { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; line-height: 1.45; }

.tc-count {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.tc-soon {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.tc-score {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255,216,89,0.4);
}
.tc-check {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.3rem;
}


/* ╔══════════════════════════════════════╗
   ║  VRAAG SCHERM                         ║
   ╚══════════════════════════════════════╝ */

.question-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 740px;
  padding-top: 12px;
}

/* Top bar */
.q-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
  gap: 8px;
}

.theme-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 0 20px -4px currentColor;
}

.score-badge {
  background: rgba(255,216,89,0.10);
  border: 1px solid rgba(255,216,89,0.22);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255,216,89,0.4);
}

/* Progress bar */
.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
}
.progress-track {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 4px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(123,108,255,0.5);
}
.q-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* Question box */
.question-box {
  width: 100%;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.question-box.fading {
  opacity: 0;
  transform: translateY(14px);
}

.q-emoji { font-size: 3.2rem; margin-bottom: 14px; }
.q-text  {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.48;
  margin-bottom: 32px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Answer buttons */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ans-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  backdrop-filter: blur(14px);
  line-height: 1.35;
  position: relative;
  overflow: hidden;

  /* Left accent line */
  border-left: 3px solid transparent;
}

.ans-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.ans-btn:hover:not(:disabled) {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  border-left-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 1px rgba(123,108,255,0.25);
}
.ans-btn:hover:not(:disabled)::before { opacity: 1; }
.ans-btn:active:not(:disabled) { transform: translateY(0); }

.ans-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

/* Correct state */
.ans-btn.correct {
  background: rgba(0,219,168,0.14);
  border-color: var(--green);
  border-left-color: var(--green);
  box-shadow: 0 0 28px -6px rgba(0,219,168,0.5);
  animation: correctPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ans-btn.correct .ans-letter {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

/* Wrong state */
.ans-btn.wrong {
  background: rgba(255,92,124,0.12);
  border-color: var(--red);
  border-left-color: var(--red);
}
.ans-btn.wrong .ans-letter {
  background: var(--red);
  border-color: var(--red);
}

@keyframes correctPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Feedback toast */
.feedback-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 500px;
  background: rgba(10,2,30,0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 200;
  animation: toastUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.feedback-toast.hidden { display: none; }

.feedback-toast.fb-correct {
  border-color: rgba(0,219,168,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px -8px rgba(0,219,168,0.35);
}
.feedback-toast.fb-wrong {
  border-color: rgba(255,92,124,0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px -8px rgba(255,92,124,0.3);
}

@keyframes toastUp {
  from { transform: translateX(-50%) translateY(28px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.fb-icon    { font-size: 2.2rem; flex-shrink: 0; }
.fb-body    { display: flex; flex-direction: column; gap: 4px; }
.fb-headline { font-size: 1rem; font-weight: 800; color: #fff; }
.fb-explain  { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }


/* ╔══════════════════════════════════════╗
   ║  RESULTATEN SCHERM                    ║
   ╚══════════════════════════════════════╝ */

.results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 500px;
  text-align: center;
  padding: 24px 16px 48px;
}

.r-trophy {
  font-size: 7rem;
  display: inline-block;
  animation: trophyIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 0 28px rgba(255,216,89,0.6));
}
@keyframes trophyIn {
  from { transform: scale(0) rotate(-25deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.r-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.r-score-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 56px;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 60px -12px rgba(255,216,89,0.25);
}
.r-pts {
  display: block;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow:
    0 0 24px rgba(255,216,89,0.6),
    0 0 60px rgba(255,216,89,0.25);
  line-height: 1;
}
.r-max {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.r-msg {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
}

.r-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ╔══════════════════════════════════════╗
   ║  BALLON ANIMATIES                     ║
   ╚══════════════════════════════════════╝ */

.balloon {
  position: absolute;
  bottom: -160px;
  pointer-events: none;
  animation: balloonRise linear forwards;
  will-change: transform;
}

@keyframes balloonRise {
  0%   { transform: translateY(0) rotate(0deg)   translateX(0);     opacity: 0; }
  7%   { opacity: 0.9; }
  25%  { transform: translateY(-26vh) rotate(5deg)  translateX(14px); }
  50%  { transform: translateY(-54vh) rotate(-5deg) translateX(-14px); }
  75%  { transform: translateY(-80vh) rotate(4deg)  translateX(10px); }
  93%  { opacity: 0.9; }
  100% { transform: translateY(-118vh) rotate(0deg) translateX(var(--drift,0px)); opacity: 0; }
}


/* ╔══════════════════════════════════════╗
   ║  3D TAART ANIMATIES                   ║
   ╚══════════════════════════════════════╝ */

.cake-fly {
  position: absolute;
  pointer-events: none;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  will-change: transform;
}
.cake-fly.from-left  { left: -210px;  animation-name: cakeFlyLeft; }
.cake-fly.from-right { right: -210px; animation-name: cakeFlyRight; }

@keyframes cakeFlyLeft {
  0%   { transform: translateX(0)                   translateY(0px)   rotate(-9deg); opacity: 0; }
  5%   { opacity: 1; }
  35%  { transform: translateX(28vw)                translateY(-32px) rotate(4deg); }
  65%  { transform: translateX(62vw)                translateY(-12px) rotate(-3deg); }
  95%  { opacity: 1; }
  100% { transform: translateX(calc(100vw + 420px)) translateY(14px)  rotate(-7deg); opacity: 0; }
}
@keyframes cakeFlyRight {
  0%   { transform: translateX(0)                    translateY(0px)   rotate(9deg);  opacity: 0; }
  5%   { opacity: 1; }
  35%  { transform: translateX(-28vw)                translateY(-32px) rotate(-4deg); }
  65%  { transform: translateX(-62vw)                translateY(-12px) rotate(3deg); }
  95%  { opacity: 1; }
  100% { transform: translateX(calc(-100vw - 420px)) translateY(14px)  rotate(7deg);  opacity: 0; }
}

/* ── 3D cake structure ── */
.cake-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.55));
}

.candles-row {
  display: flex;
  gap: 9px;
  margin-bottom: -2px;
  position: relative;
  z-index: 3;
}
.candle {
  width: 6px;
  height: 16px;
  background: linear-gradient(to right, #fff 20%, #eee 50%, #fff 80%);
  border-radius: 3px;
  position: relative;
  box-shadow: 0 0 5px rgba(255,255,255,0.5);
}
.flame {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 12px;
  background: radial-gradient(ellipse at bottom,
    #fff 8%, #ffd700 35%, #ff8c00 65%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  animation: flicker 0.28s ease-in-out infinite alternate;
}
@keyframes flicker {
  from { transform: translateX(-50%) scaleX(1)    scaleY(1)    rotate(-3deg); opacity: 0.88; }
  to   { transform: translateX(-50%) scaleX(1.12) scaleY(1.18) rotate(3deg);  opacity: 1; }
}

.cake-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.tier-cap  {
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.tier-body {
  margin-top: -3px;
  position: relative;
  z-index: 0;
}
.cake-frost {
  height: 8px;
  border-radius: 4px;
  margin-top: -4px;
  margin-bottom: -4px;
  position: relative;
  z-index: 2;
}
.cake-plate {
  width: 90px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.sprinkle {
  position: absolute;
  width: 7px;
  height: 3px;
  border-radius: 2px;
}


/* ── Foto bij vraag ── */
.q-image-wrap        { margin-bottom: 14px; }
.q-image-wrap.hidden { display: none; }
.q-image {
  max-width: 100%;
  max-height: 240px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  border: 1px solid var(--border);
}

/* ╔══════════════════════════════════════╗
   ║  RAD VAN FORTUIN SCHERM              ║
   ╚══════════════════════════════════════╝ */

.wheel-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 500px;
  padding: 10px 0 40px;
}

.wheel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wheel-instructions {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 420px;
}

.wheel-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-pointer {
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 14px rgba(255,216,89,0.8), 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: -6px;
  position: relative;
  z-index: 2;
  animation: pointerPulse 1.5s ease-in-out infinite;
}
@keyframes pointerPulse {
  0%,100% { text-shadow: 0 0 14px rgba(255,216,89,0.8), 0 2px 6px rgba(0,0,0,0.5); }
  50%      { text-shadow: 0 0 26px rgba(255,216,89,1),   0 2px 6px rgba(0,0,0,0.5); }
}

#wheel-canvas {
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.12),
    0 16px 60px rgba(0,0,0,0.55),
    0 0 80px -10px rgba(123,108,255,0.4);
  cursor: pointer;
  max-width: min(360px, 88vw);
  max-height: min(360px, 88vw);
  width: 100%;
  height: auto;
}

.wheel-result {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  text-align: center;
  padding: 16px 32px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,216,89,0.5);
  box-shadow: 0 0 40px -8px rgba(255,216,89,0.3);
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.wheel-result.hidden { display: none; }

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.wheel-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 1em;
  width: 100%;
}
.wheel-history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* ╔══════════════════════════════════════╗
   ║  MUZIEKRONDE SCHERM                   ║
   ╚══════════════════════════════════════╝ */

.music-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  padding: 10px 0 40px;
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.music-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.music-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--trans);
}
.music-tab-btn:hover  { color: #fff; border-color: var(--border-hi); }
.music-tab-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(123,108,255,0.4);
}

.music-round-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.music-round-title {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.music-round-instructions {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.music-host-area {
  margin-top: 20px;
  text-align: left;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,216,89,0.2);
  border-radius: 14px;
  padding: 16px 20px;
  animation: screenIn 0.3s ease-out;
}
.music-host-area.hidden { display: none; }

.music-host-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.music-song-list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.music-song-list li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.music-song-list li strong {
  color: #fff;
  font-weight: 700;
}

.music-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.mt-10 { margin-top: 10px; }

/* ── Music toggle button ── */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.music-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.12);
}
.music-btn.muted { opacity: 0.45; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .birthday-duo   { gap: 10px; }
  .person-card    { padding: 14px 20px; }
  .answers-grid   { grid-template-columns: 1fr; }
  .themes-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .r-score-box    { padding: 20px 32px; }
  .r-actions      { flex-direction: column; }
  .q-topbar       { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .themes-grid { grid-template-columns: 1fr; }
}
