:root {
  --yellow: #FFD93D;
  --orange: #FF6B35;
  --pink: #FF3FA4;
  --purple: #7B2FBE;
  --blue: #1A73E8;
  --cyan: #00C9FF;
  --green: #06D6A0;
  --dark: #1A1040;
  --light: #FFF8F0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--dark);
  color: white;
  overflow-x: clip; /* clip ipv hidden: voorkomt dat iOS vertical scroll blokkeert */
  cursor: none;
}
.pagina { padding: 110px 20px 40px; min-height: calc(100vh - 130px); position: relative; z-index: 2; }
.container { max-width: 1120px; margin: 0 auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.cursor {
  width: 28px; height: 28px; background: var(--yellow); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star {
  position: absolute; background: white; border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: rgba(26, 16, 64, 0.88);
  backdrop-filter: blur(12px); border-bottom: 2px solid rgba(255,255,255,0.08);
}
.logo {
  font-family: 'Fredoka One', cursive; font-size: 2rem; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo span { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.84); font-weight: 800; font-size: 0.93rem;
  padding: 8px 14px; border-radius: 18px; text-decoration: none;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: white; text-decoration: none; }
.btn-nav {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white !important; border-radius: 24px !important; padding: 10px 20px !important;
  box-shadow: 0 4px 18px rgba(255,63,164,0.35);
}

.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.topbar h1 { font-family: 'Fredoka One', cursive; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.top-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top-links span {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; padding: 7px 12px; font-size: .88rem;
}

.card {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.25);
}
.auth-card { max-width: 520px; margin: 10px auto 0; }
.auth-card h1, .card h2, .card h3 { font-family: 'Fredoka One', cursive; }
.subtekst { color: rgba(255,255,255,0.72); margin-top: 6px; }
.sectie-titel { font-family: 'Fredoka One', cursive; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }

.mascot-intro { text-align: center; margin-bottom: 10px; }
.mascot-intro img { max-width: 210px; width: 100%; height: auto; filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35)); }
.mascot-inline { display: flex; align-items: center; gap: 10px; }
.mascot-inline img { width: 56px; height: 56px; object-fit: contain; }
.mascot-hero {
  display: grid; grid-template-columns: minmax(180px, 250px) 1fr;
  gap: 14px; align-items: center; margin-bottom: 10px;
}
.mascot-hero img { width: 100%; max-width: 240px; height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.stat p { font-size: 20px; font-weight: 900; margin-top: 6px; }

label { display: block; margin-top: 10px; font-weight: 800; color: rgba(255,255,255,.95); }
input, select, button {
  font-family: 'Nunito', sans-serif; font-size: 16px; border-radius: 14px; padding: 11px 12px;
}
input, select {
  width: 100%; max-width: 290px; border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: #fff;
}
input::placeholder { color: rgba(255,255,255,0.6); }
input:focus-visible, select:focus-visible {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,201,255,0.2);
}
input:focus:not(:focus-visible), select:focus:not(:focus-visible) {
  outline: none; box-shadow: none;
}
option { color: #111; }

.btn {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white; border: none; font-weight: 900; cursor: pointer;
  padding: 11px 16px; transition: transform .16s, box-shadow .16s;
  box-shadow: 0 8px 24px rgba(255,107,53,0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,107,53,0.45); text-decoration: none; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.ghost {
  background: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,0.18); }
.btn.secondary { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #062537; }
.btn.accent { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #2a1d00; }

.alert, .paywall {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-weight: 800;
  background: rgba(255,217,61,0.16); border: 1px solid rgba(255,217,61,0.58);
}
.alert.info { background: rgba(0,201,255,0.14); border-color: rgba(0,201,255,0.5); }
.alert.success { background: rgba(6,214,160,0.16); border-color: rgba(6,214,160,0.58); }
.alert.error { background: rgba(255,100,100,0.18); border-color: rgba(255,100,100,0.62); color: #ffdede; }

.question-area { margin-top: 16px; }
.question-card .answer-btn {
  display: block; width: 100%; margin: 8px 0; text-align: left;
  background: rgba(255,255,255,0.12); color: #fff; font-weight: 800;
  border: 2px solid rgba(255,255,255,0.2);
}
.question-card .answer-btn:hover { background: rgba(0,201,255,0.18); border-color: rgba(0,201,255,0.45); }

.ok { color: #7dff9d; font-weight: 900; }
.error { color: #ff9a9a; font-weight: 900; }

.avatar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.avatar-item {
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 16px; padding: 12px; text-align: center;
}
.emoji { font-size: 42px; }

.kleur-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kleur-blok { border-radius: 12px; padding: 12px; color: #fff; font-weight: 800; min-height: 70px; }
.kleur-primair { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.kleur-secundair { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.kleur-accent { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #3d2500; }
.kleur-fout { background: #d9365d; }
.kleur-ok { background: #12b981; }

footer {
  background: rgba(0,0,0,0.38);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 34px 20px;
  text-align: center;
  font-size: .9rem;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  position: relative; z-index: 1;
}

.hidden { display: none; }

.hero {
  position: relative;
  min-height: 76vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 30px 20px 50px;
  overflow: hidden;
  z-index: 1;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.3;
  animation: blobFloat var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 8px 20px;
  font-size: 0.85rem; font-weight: 900; letter-spacing: 1px;
  color: var(--cyan); margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.5);opacity:.6;} }
.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 .line1 { color: white; }
.hero h1 .line2 {
  display: block;
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 1.12rem; color: rgba(255,255,255,0.76);
  max-width: 700px; margin: 0 auto 36px; line-height: 1.65; font-weight: 700;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white; border: none; border-radius: 50px;
  padding: 16px 34px; font-size: 1.1rem; font-weight: 900;
  font-family: 'Nunito', sans-serif; cursor: pointer;
  box-shadow: 0 8px 30px rgba(255,107,53,0.5);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 40px rgba(255,107,53,0.7); text-decoration: none; }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px; padding: 14px 32px; font-size: 1.1rem; font-weight: 800;
  font-family: 'Nunito', sans-serif; text-decoration: none; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); border-color: white; transform: translateY(-2px); text-decoration: none; }
.float-char {
  position: absolute; font-size: 3.5rem;
  animation: floatChar var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); z-index: 2; user-select: none;
}
@keyframes floatChar {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 10deg)); }
}
.subjects-band {
  position: relative; z-index: 1; background: var(--yellow); padding: 14px 0; overflow: hidden;
  border-top: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
}
.subjects-track { display: flex; gap: 40px; width: max-content; animation: scrollTrack 20s linear infinite; }
.subjects-track span {
  font-family: 'Fredoka One', cursive; font-size: 1.03rem; color: var(--dark);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.subjects-track span::after { content: '★'; color: var(--orange); }
@keyframes scrollTrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-vakken, .section-how, .section-chars, .section-cta { position: relative; z-index: 1; }
.section-vakken { padding: 70px 20px; max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: rgba(255,255,255,0.66);
  font-size: 1.05rem; font-weight: 700; margin-bottom: 42px;
}
.vakken-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px;
}
.vak-card {
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 30px 20px; text-align: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  position: relative; overflow: hidden;
}
.vak-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--card-gradient); opacity: 0; border-radius: 22px; transition: opacity .3s;
}
.vak-card:hover::before { opacity: .15; }
.vak-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--card-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--card-color);
}
.vak-icon { font-size: 3.4rem; margin-bottom: 14px; display: block; }
.vak-name { font-family: 'Fredoka One', cursive; font-size: 1.24rem; margin-bottom: 6px; }
.vak-desc { font-size: .86rem; color: rgba(255,255,255,.62); font-weight: 700; }
.vak-level { margin-top: 14px; display: flex; gap: 4px; justify-content: center; }
.lvl-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.lvl-dot.active { background: var(--card-color); box-shadow: 0 0 8px var(--card-color); }

.stats-bar {
  background: linear-gradient(135deg, var(--purple), #3D1A78);
  padding: 50px 20px; position: relative; z-index: 1;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; text-align: center;
}
.stat-num {
  font-family: 'Fredoka One', cursive; font-size: 3.1rem;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-weight: 800; color: rgba(255,255,255,0.75); font-size: .92rem; margin-top: 4px; }

.section-how { padding: 80px 20px; background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px;
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--step-a), var(--step-b));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka One', cursive; font-size: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3); margin-bottom: 20px;
}
.step h3 { font-family: 'Fredoka One', cursive; font-size: 1.28rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: rgba(255,255,255,.65); font-weight: 700; line-height: 1.5; }

.section-chars { padding: 80px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.chars-grid { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 50px; }
.char-card {
  width: 160px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 24px 16px; transition: transform .3s, border-color .2s;
}
.char-card:hover { transform: translateY(-12px) rotate(-3deg); border-color: var(--char-color); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.char-emoji { font-size: 4rem; display: block; margin-bottom: 12px; }
.char-name { font-family: 'Fredoka One', cursive; font-size: 1.06rem; margin-bottom: 4px; }
.char-role { font-size: .78rem; color: rgba(255,255,255,.58); font-weight: 700; }

.section-cta { padding: 90px 20px; text-align: center; position: relative; z-index: 1; }
.cta-inner {
  max-width: 760px; margin: 0 auto;
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.12);
  border-radius: 40px; padding: 56px 34px; position: relative;
}
.cta-inner::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple), var(--cyan));
  border-radius: 42px; z-index: -1; animation: ctaBorder 4s linear infinite; background-size: 300% 300%;
}
@keyframes ctaBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-emoji { font-size: 4.6rem; display: block; margin-bottom: 20px; }
.cta-inner h2 { font-family: 'Fredoka One', cursive; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.74); font-weight: 700; margin-bottom: 36px; font-size: 1.05rem; line-height: 1.6; }
.btn-cta {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark); border: none; border-radius: 50px; padding: 18px 48px;
  font-size: 1.15rem; font-weight: 900; font-family: 'Nunito', sans-serif;
  box-shadow: 0 8px 30px rgba(255,217,61,0.5); display: inline-block;
}
.btn-cta:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 50px rgba(255,217,61,0.7); text-decoration: none; }

.xp-bar-wrap {
  background: rgba(255,255,255,0.1); border-radius: 50px; height: 10px; margin-top: 10px; overflow: hidden;
}
.xp-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--green), var(--cyan)); animation: xpFill 2s ease 1s both; }
@keyframes xpFill { from { width: 0; } to { width: var(--xp, 70%); } }

@media (max-width: 760px) {
  nav { padding: 12px 16px; }
  .logo { font-size: 1.65rem; }
  .hide-mobile { display: none; }
  .pagina { padding-top: 95px; }
  .float-char { font-size: 2.5rem; }
  .mascot-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mascot-hero img {
    margin: 0 auto;
    max-width: 180px;
  }
  .btn, input, select { width: 100%; max-width: none; }
}
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ── Admin impersonation switches (parent dashboard) ── */
.admin-switches {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px;
}
.admin-switches-title { font-size: 0.85rem; color: rgba(255,255,255,.7); font-weight: 700; }
.admin-switch-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 6px 0; border-top: 1px dashed rgba(255,255,255,.12);
}
.admin-switch-item:first-of-type { border-top: 0; }
.admin-switch-label { font-size: 0.86rem; color: rgba(255,255,255,.8); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,.22); transition: .2s; border-radius: 999px;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; transition: .2s; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch input:checked + .slider { background: var(--cyan); }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* ─────────────────────────────────────────────────
   TOEGANKELIJKHEID — prefers-reduced-motion
   Schakelt animaties en transities uit voor gebruikers
   die dat in hun OS hebben aangezet (epilepsie, ADHD,
   bewegingsgevoeligheid).
───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }
}

/* ─────────────────────────────────────────────────
   TOEGANKELIJKHEID — Focus-stijlen voor toetsenbord
   Zichtbare focus-ring voor iedereen die met Tab
   navigeert (WCAG 2.1 criterium 2.4.7).
───────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid #fde047;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Verberg focus-ring bij muisgebruik (alleen toetsenbord) */
:focus:not(:focus-visible) {
  outline: none;
}

/* ─────────────────────────────────────────────────
   TOUCH-APPARATEN — voorkom dat :hover-effecten
   blijven hangen na aantikken op mobiel
───────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Alle hover-transforms resetten op touch */
  *:hover {
    transform: none !important;
  }
  /* Hover-achtergronden op knoppen resetten */
  button:hover,
  a:hover,
  [class*="card"]:hover,
  [class*="btn"]:hover,
  [class*="pill"]:hover,
  [class*="item"]:hover {
    background-color: unset;
    box-shadow: unset;
    border-color: unset;
  }
}
