/* =========================================================
   Woordwijs – stijl
   Kleuren en lettertypes staan bovenaan als variabelen.
   ========================================================= */

/* Lettertypes: zelf gehost (Fontsource 5.3.0, latin), licentie in fonts/OFL-*.txt */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-600.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-800.woff2') format('woff2'); }

:root {
  --navy: #1B2350;
  --blue: #2A3BB7;
  --blue-soft: #EEF1FF;
  --yellow: #FFC93C;
  --yellow-dark: #D9A21A;
  --yellow-soft: #FFF1C9;
  --green: #137A4B;
  --green-soft: #DDF5E8;
  --red: #B83A1E;
  --red-dark: #8E2A14;
  --red-soft: #FFE3DC;
  --text: #1B2350;
  --text-2: #444D78;
  --muted: #5A6390;
  --line: #E3E7F3;
  --line-2: #D5DAEE;
  --bg: #F4F6FC;
  --card: #FFFFFF;
  --field: #F8F9FE;
  --radius: 22px;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(27, 35, 80, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 14px; }
.section { padding: 48px 0; }
.section-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.logo:hover { color: var(--text); }
.logo-tiles { display: inline-flex; gap: 3px; }
.logo-tiles span { width: 32px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.logo-tiles span:first-child { background: var(--yellow); color: var(--navy); }
.logo-tiles span:last-child { background: var(--blue); color: #fff; }
.logo-sm { font-size: 19px; }
.logo-sm .logo-tiles span { width: 24px; height: 28px; font-size: 16px; border-radius: 7px; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.main-nav a:hover { background: var(--bg); }
.main-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--card); align-items: center; justify-content: center; color: var(--text); }
.settings-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--field); font-weight: 800; font-size: 14px; }
.settings-chip:hover { border-color: var(--blue); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; margin: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px; border-radius: 14px; }
  .settings-chip { order: 2; }
}
@media (max-width: 520px) {
  .settings-chip { width: 100%; order: 4; }
  .logo { font-size: 21px; }
}

/* ---------- melding: woorden aangevuld ---------- */
.notice-bar { flex: none; background: var(--yellow-soft); border-bottom: 2px solid var(--yellow-dark); color: var(--navy); }
.notice-inner { display: flex; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.notice-text { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 16px; }
.notice-close { flex: none; margin-left: 12px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 2px solid transparent; border-radius: 12px; background: transparent; color: var(--navy); font-size: 28px; line-height: 1; }
.notice-close:hover { background: var(--yellow); border-color: var(--yellow-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; font-size: 15px; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 2px solid transparent; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .08s ease; }
.btn:active { transform: translateY(2px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #2230A0; color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 var(--yellow-dark); }
.btn-yellow:hover { color: var(--navy); background: #FFD25A; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: #283170; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--text); }
/* kleine "Wijzigen"-knop op de oefenpagina, wel 44px hoog (aanraakdoel) */
.btn-wijzig { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- kaarten & formulieren ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; }
.card-shadow { box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-weight: 800; font-size: 15px; }
.select, .input { height: 52px; border-radius: 14px; border: 2px solid var(--line-2); padding: 0 14px; font-weight: 700; font-size: 16px; background: var(--field); width: 100%; }
.pick-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pick { height: 52px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--field); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.pick.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 14px; border-radius: 14px; background: var(--card); font-weight: 800; }
.chip-yellow { background: var(--yellow-soft); color: #6B4A00; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }

/* ---------- modal ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: rgba(27, 35, 80, 0.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--card); border-radius: 26px; padding: 26px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 18px; }
.modal-card h2 { font-size: 26px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 520px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { border-radius: 26px 26px 0 0; padding-bottom: 34px; }
  .modal-actions .btn { flex: 1; }
}

/* ---------- kinderslot ---------- */
/* keuzes die op slot zitten: wel goed leesbaar, niet te klikken */
.pick:disabled { cursor: default; opacity: 1; color: var(--muted); }
.pick.is-on:disabled { color: #fff; }
.select:disabled { opacity: 1; color: var(--text); -webkit-text-fill-color: var(--text); background: var(--bg); cursor: default; }
.lock-note { padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); color: #6B4A00; font-weight: 700; }
.lock-box .lock-note { margin-bottom: 10px; }

/* pincode-venster (geen flex-gap/inset: ook voor iOS 12) */
.pin-card { align-items: stretch; text-align: center; max-width: 380px; gap: 0; }
.pin-card > * + * { margin-top: 14px; }
.pin-uitleg { color: var(--text-2); font-weight: 700; }
.pin-dots { display: flex; justify-content: center; margin: 4px 0; }
.pin-dots span { width: 20px; height: 20px; margin: 0 9px; border-radius: 50%; border: 3px solid var(--navy); background: transparent; transition: background .1s ease; }
.pin-dots span.is-vol { background: var(--navy); }
.pin-msg { min-height: 24px; font-weight: 800; color: var(--red-dark); }
.pin-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.pin-key { min-height: 60px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--field); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; padding: 0; }
.pin-key:hover { border-color: var(--blue); }
.pin-key:active { background: var(--blue-soft); }
.pin-key:disabled { opacity: .45; cursor: default; border-color: var(--line-2); }
.pin-key-wis { background: var(--card); }
.pin-card .modal-actions { justify-content: center; }
.pin-card .modal-actions .btn { width: 100%; }

/* ---------- ouderpagina ---------- */
.ouders-page { padding-top: 44px; max-width: 780px; }
.ouders-page h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 14px; }
.ouders-intro { color: var(--text-2); font-size: 18px; margin-bottom: 22px; }
.ouders-sectie { margin-bottom: 22px; }
.ouders-sectie h2 { font-size: 26px; margin-bottom: 10px; }
.ouders-sectie > p { color: var(--text-2); margin-bottom: 14px; }
.ouders-form .field { gap: 0; margin-bottom: 16px; }
.ouders-form .label { margin-bottom: 6px; }
.input-pin { max-width: 220px; font-size: 22px; letter-spacing: 6px; }
.input-pin:focus { border-color: var(--blue); }
.melding { border-radius: 14px; font-weight: 800; }
.melding:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.melding:not(:empty) { padding: 12px 16px; margin-bottom: 16px; }
.melding-ok { background: var(--green-soft); color: #0F5E3A; }
.melding-fout { background: var(--red-soft); color: var(--red-dark); }
.melding-wacht { background: var(--yellow-soft); color: #6B4A00; }
.knoppen { display: flex; flex-wrap: wrap; margin: 0 -12px -12px 0; }
.knoppen .btn { margin: 0 12px 12px 0; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.bevestig { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--yellow-soft); }
.bevestig p { color: #6B4A00; font-weight: 800; margin-bottom: 14px; }

/* ---------- home ---------- */
.hero { padding: 56px 0 28px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 44px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--yellow-soft); color: #6B4A00; font-weight: 800; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 19px; color: var(--text-2); max-width: 520px; }
.setup-card { display: flex; flex-direction: column; gap: 18px; }
.setup-card h2 { font-size: 24px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.tile { text-decoration: none; color: var(--text); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); color: var(--text); }
.tile-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.tile h3 { font-size: 25px; }
.tile p { color: var(--text-2); }
.tile .more { margin-top: auto; font-weight: 800; }
.tile-blue { background: #E6F0FF; } .tile-blue .tile-icon { background: var(--blue); color: #fff; } .tile-blue .more { color: var(--blue); }
.tile-yellow { background: var(--yellow-soft); } .tile-yellow .tile-icon { background: var(--navy); color: var(--yellow); } .tile-yellow .more { color: #6B4A00; }
.tile-green { background: var(--green-soft); } .tile-green .tile-icon { background: var(--green); color: #fff; } .tile-green .more { color: var(--green); }
.tile-red { background: var(--red-soft); } .tile-red .tile-icon { background: var(--red); color: #fff; } .tile-red .more { color: var(--red); }

.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px; }
.usp-num { font-family: var(--font-display); font-weight: 700; font-size: 42px; color: var(--blue); }
.usp h3 { font-size: 23px; margin: 6px 0 8px; }
.usp p { color: var(--text-2); }

.games-band { background: var(--navy); color: #fff; padding: 64px 0; }
.games-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 26px; }
.games-head p { color: #C9CFF0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #4A5390; background: transparent; color: #fff; font-weight: 800; font-size: 15px; }
.filter.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.light .filter { border-color: var(--line-2); color: var(--text); background: var(--card); }
.light .filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.game-card { text-decoration: none; color: var(--text); background: var(--card); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease; }
.game-card:hover { transform: translateY(-3px); color: var(--text); }
.game-art { height: 124px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; flex-wrap: wrap; }
.game-art span { width: 34px; height: 40px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; box-shadow: 0 3px 0 rgba(27, 35, 80, .25); }
.game-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-body h3 { font-size: 21px; }
.game-body p { color: var(--text-2); font-size: 15px; }

.teacher { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 30px; align-items: center; padding: 36px; }
.teacher h2 { font-size: clamp(28px, 4vw, 36px); }
.teacher p { color: var(--text-2); font-size: 17px; }

/* ---------- oefenpagina's ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(28px, 4vw, 36px); }
.layout-side { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; padding-top: 32px; }
.layout-side > .main-col { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.layout-side > .side-col { flex: 1 1 270px; display: flex; flex-direction: column; gap: 16px; }
.progress { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.exercise { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 40px 24px; }
.exercise .hint { font-weight: 800; color: var(--muted); }
.big-input { width: 100%; max-width: 520px; height: 80px; border-radius: 20px; border: 3px solid #C9D0EE; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 6vw, 40px); background: var(--field); }
.big-input:focus { border-color: var(--blue); outline: none; }
.letter-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.letter-tiles span { width: clamp(38px, 9vw, 62px); height: clamp(48px, 11vw, 74px); border-radius: 14px; background: var(--yellow-soft); box-shadow: 0 5px 0 #F0D27A; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 6vw, 42px); }
.result-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.result-ok { background: var(--green-soft); color: var(--green); }
.result-bad { background: var(--red-soft); color: var(--red); }
.result-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; }
.history { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-bad { background: var(--red-soft); color: var(--red); }
.mode-list { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.mode-list .label-sm, .label-sm { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; padding: 6px 10px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: none; background: transparent; }
.mode strong { font-size: 16px; }
.mode span { font-size: 13px; color: var(--muted); }
.mode.is-on { background: var(--blue-soft); }
.speak-btn { width: 124px; height: 124px; border-radius: 50%; border: none; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 0 var(--yellow-dark), 0 0 0 14px var(--yellow-soft); }
.speak-btn:disabled { opacity: .5; cursor: default; }
.speak-btn-klein { width: 52px; height: 52px; min-width: 44px; min-height: 44px; flex: 0 0 auto; box-shadow: 0 4px 0 var(--yellow-dark); }
.speak-btn-klein svg { width: 26px; height: 26px; }
.voorlees-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--card); color: var(--text); font-weight: 800; font-size: 15px; }
.voorlees-toggle svg { flex: 0 0 auto; margin-right: 8px; }
.voorlees-toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.result-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--field); font-weight: 700; }
.result-list li.ok { background: var(--green-soft); color: var(--green); }
.result-list li.bad { background: var(--red-soft); color: var(--red-dark); }
.result-list li.now { background: var(--blue-soft); }
.result-list .n { width: 24px; color: var(--muted); font-weight: 800; }
.result-list .st { margin-left: auto; font-size: 13px; font-weight: 800; }
.sentence { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.45; max-width: 680px; }
.blank { display: inline-block; min-width: 140px; border-bottom: 4px dashed #C9D0EE; color: var(--green); }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 560px; }
.choice { height: 72px; border-radius: 18px; border: 3px solid var(--line-2); background: var(--field); font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 4vw, 26px); }
.choice.is-right { background: var(--green-soft); border-color: var(--green); color: #0F5E3A; }
.choice.is-wrong { background: var(--red-soft); border-color: var(--red); color: var(--red-dark); }
.feedback { width: 100%; max-width: 620px; padding: 16px 18px; border-radius: 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.feedback.ok { background: var(--green-soft); color: #0F5E3A; }
.feedback.bad { background: var(--red-soft); color: var(--red-dark); }
.steps { background: var(--navy); color: #fff; }
.steps ol { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 12px; color: #E4E8FA; counter-increment: s; }
.steps li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dots { display: flex; gap: 6px; }
.dots span { flex: 1; height: 10px; border-radius: 999px; background: var(--line-2); }
.dots .ok { background: var(--green); } .dots .bad { background: var(--red); } .dots .now { background: var(--blue); }

/* ---------- spellen ---------- */
.game-page { padding-top: 26px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 18px; }
.game-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.game-top h1 { font-size: clamp(28px, 4vw, 34px); }
.back-link { font-weight: 800; text-decoration: none; padding: 10px 14px; border-radius: 999px; background: var(--blue-soft); }
.hud { display: flex; flex-wrap: wrap; gap: 8px; }
/* voorlezen in spellen en Oefenen: schakelaar naast de hud / teller (marges i.p.v. flex-gap voor iOS 12) */
.game-tools, .page-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin: -4px; }
.game-tools > *, .page-tools > * { margin: 4px; }
/* woord even laten zien als er niet voorgelezen wordt (kikkersprong); ligt over de woordkaart */
.word-wrap { position: relative; }
.toon-kort { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; margin: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--yellow-soft); border: 3px solid var(--yellow-dark); color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 6vw, 40px); letter-spacing: .04em; pointer-events: none; }
.toon-kort[hidden] { display: none; }
.word-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; }
.word-card .label-inline { font-weight: 800; color: var(--muted); margin-right: 6px; }
.word-card .push { margin-left: auto; }
.slot { width: clamp(34px, 7vw, 44px); height: clamp(42px, 8.5vw, 52px); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 4.5vw, 27px); background: var(--bg); border: 2px dashed #C9D0EE; }
.slot.is-filled { background: var(--green-soft); color: var(--green); border: none; }
.slot.is-current { background: var(--yellow-soft); border: 3px solid var(--yellow); }
.stage { position: relative; border-radius: 28px; overflow: hidden; }
.msg { text-align: center; font-weight: 800; font-size: 18px; min-height: 27px; color: #0F5E3A; }
.msg.bad { color: var(--red-dark); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.how .card { padding: 18px; }
.how strong { display: block; margin-bottom: 4px; }
.how span { color: var(--text-2); }
.overlay { position: absolute; inset: 0; z-index: 10; background: rgba(27, 35, 80, 0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.overlay-card { background: var(--card); color: var(--text); border-radius: 26px; padding: 30px 26px; max-width: 440px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.overlay-card h2 { font-size: 32px; font-weight: 700; }
.overlay-card p { color: var(--text-2); font-size: 17px; }
.overlay-card .btn { width: 100%; margin-top: 6px; }
@media (max-width: 600px) {
  .overlay { align-items: flex-end; padding: 0; }
  .overlay-card { border-radius: 26px 26px 0 0; max-width: none; padding-bottom: 30px; }
}

/* kikkersprong */
.pond { background: #BFE6EC; min-height: 440px; padding: 64px 20px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.flowers { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pond-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; }
.frog-wrap { display: flex; flex-direction: column; align-items: center; }
.frog { transition: transform .25s ease; }
.frog.jump { transform: translateY(-26px); }
.frog.oops { transform: translateX(-8px) rotate(-6deg); }
.stone { width: 140px; height: 32px; border-radius: 50%; background: #9AA4B5; margin-top: -16px; }
.pads { display: grid; grid-template-columns: repeat(3, minmax(0, 132px)); gap: 18px; }
.pad { height: 112px; border: none; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; background: #6FBF7E; box-shadow: inset 0 -8px 0 #4F9E5F; display: flex; align-items: center; justify-content: center; }
.pad:nth-child(1) { transform: rotate(-6deg); } .pad:nth-child(3) { transform: rotate(6deg); }
.pad span, .gate, .letter-btn { font-family: var(--font-display); font-weight: 700; }
.pad span { width: 62px; height: 62px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 38px; box-shadow: 0 4px 0 rgba(27, 35, 80, .2); }
@media (max-width: 520px) { .pads { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 10px; } .pad { height: 100px; } .pad span { width: 52px; height: 52px; font-size: 32px; } .pond-row { flex-direction: column-reverse; gap: 22px; } }

/* kikkersprong: blaadjes met een klankstuk (2–5 tekens) */
.pad-stuk span { width: auto; min-width: 62px; max-width: 100%; padding: 0 10px; white-space: nowrap; font-size: 32px; }
.pad-len4 span { font-size: 26px; padding: 0 8px; }
.pad-len5 span { font-size: 22px; padding: 0 6px; }
@media (max-width: 520px) { .pad-stuk span { min-width: 52px; font-size: 26px; padding: 0 8px; } .pad-len4 span { font-size: 21px; padding: 0 6px; } .pad-len5 span { font-size: 18px; padding: 0 5px; } }

/* letterrace */
.track-wrap { background: #6FBF7E; padding: 18px; }
.track { position: relative; background: #3B4266; border-radius: 18px; padding: 8px 0; }
.finish { position: absolute; top: 0; bottom: 0; right: 6%; width: 16px; background: repeating-conic-gradient(#fff 0 25%, var(--navy) 0 50%) 0 0 / 16px 16px; }
.lane { position: relative; height: 66px; border-bottom: 3px dashed #6A7299; }
.lane:last-child { border-bottom: none; }
.lane-name { position: absolute; left: 10px; bottom: 4px; font-weight: 800; font-size: 12px; color: #C9CFF0; }
.car { position: absolute; top: 10px; left: 0; transition: left .12s linear; width: clamp(56px, 9vw, 86px); }
.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 520px; margin: 0 auto; }
.gate { height: 92px; border-radius: 20px; border: 4px solid var(--navy); background: var(--yellow); color: var(--navy); font-size: 44px; box-shadow: 0 6px 0 var(--navy); }
/* letterrace: knoppen met een klankstuk (2–5 tekens) */
.gate-stuk { padding: 0 4px; white-space: nowrap; font-size: 38px; }
.gate-len4 { font-size: 32px; }
.gate-len5 { font-size: 27px; }
@media (max-width: 520px) { .gate-stuk { font-size: 32px; } .gate-len4 { font-size: 26px; } .gate-len5 { font-size: 22px; } }

/* spinnenregen */
.web { background: #2B2F5C; height: clamp(420px, 60vh, 520px); border-top: 6px solid #4A5390; }
.spider { position: absolute; width: 23%; display: flex; flex-direction: column; align-items: center; transition: top .1s linear; }
.spider::before { content: ''; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 700px; background: #8A93C7; }
.spider-word { margin-top: 4px; padding: 5px 10px; border-radius: 10px; background: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 2.6vw, 22px); max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.spider-word.match { background: var(--yellow); }
.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #6FBF7E; }
.type-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ballonnenjacht */
.sky { background: #CFE8FF; height: clamp(440px, 62vh, 520px); }
.cloud { position: absolute; border-radius: 999px; background: #fff; opacity: .75; }
.balloon { position: absolute; width: clamp(62px, 9vw, 84px); padding: 0; border: none; background: transparent; }
.balloon svg { width: 100%; height: auto; display: block; }
.balloon b { position: absolute; top: 16%; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); color: var(--navy); }
/* ballonnenjacht: ballonnen met een klankstuk (2–5 tekens) */
.balloon-stuk b { white-space: nowrap; letter-spacing: -.02em; top: 19%; font-size: clamp(24px, 3.4vw, 32px); }
.balloon-len4 b { top: 22%; font-size: clamp(20px, 2.7vw, 26px); }
.balloon-len5 b { top: 23%; font-size: clamp(18px, 2.3vw, 22px); }

/* woordslang */
.snake-wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.board { position: relative; flex: 1 1 520px; max-width: 680px; background: #DDF0D8; border-radius: 22px; padding: 10px; }
.board:focus-visible { outline: 3px solid var(--blue); }
.grid { display: grid; gap: 3px; }
.cell { aspect-ratio: 1; border-radius: 7px; background: #CDE8C6; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 2.6vw, 24px); }
.cell.head { background: var(--green); box-shadow: inset 0 0 0 3px #0F5E3A; }
.cell.body { background: #4FB06A; }
.cell.letter { background: #fff; box-shadow: 0 2px 0 #B8D8B0; }
/* woordslang: een hapje met een klankstuk (2–5 tekens) in één vak, kleinere tekst */
.cell-stuk { white-space: nowrap; overflow: hidden; letter-spacing: -.04em; font-size: clamp(12px, 3.4vw, 19px); }
.cell-len4 { font-size: clamp(11px, 3vw, 15px); }
.cell-len5 { font-size: clamp(10px, 2.7vw, 13px); }
.dpad { display: grid; grid-template-columns: repeat(3, 68px); grid-template-rows: repeat(3, 64px); gap: 8px; }
.dpad button { border-radius: 16px; border: none; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.dpad .mid { border-radius: 16px; background: var(--line); }

/* letterdoolhof */
.maze-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.maze-col { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.maze { position: relative; width: 100%; max-width: 540px; background: #FFE89A; border-radius: 26px; padding: 14px; }
.maze-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.maze-cell { aspect-ratio: 1; border-radius: 14px; border: none; background: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5vw, 36px); box-shadow: 0 3px 0 rgba(27, 35, 80, .18); }
.maze-cell.sel { background: var(--blue); color: #fff; }
.current-word { min-width: 200px; padding: 12px 18px; border-radius: 14px; background: var(--card); font-family: var(--font-display); font-weight: 600; font-size: 26px; text-align: center; letter-spacing: 2px; }
.word-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.word-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--field); font-weight: 800; font-size: 18px; }
.word-list li.found { color: var(--muted); text-decoration: line-through; }
.word-list .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); }

/* pinguïnrij */
.ice { background: #D8ECFA; padding: 26px 18px; display: flex; flex-direction: column; gap: 24px; }
.answer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 72px; }
.answer { width: clamp(44px, 9vw, 60px); height: clamp(54px, 10vw, 70px); border-radius: 14px; border: none; background: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5vw, 36px); box-shadow: 0 4px 0 rgba(27, 35, 80, .2); }
.answer.empty { background: transparent; border: 3px dashed #9FB7D6; box-shadow: none; cursor: default; }
.answer.right { background: var(--green-soft); color: #0F5E3A; }
.floe { background: #fff; border-radius: 22px; padding: 18px 10px 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 150px; align-items: flex-end; }
.penguin { position: relative; width: clamp(66px, 11vw, 86px); padding: 0; border: none; background: transparent; transition: opacity .2s, transform .2s; }
.penguin svg { width: 100%; height: auto; display: block; }
.penguin b { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font-family: var(--font-display); font-size: clamp(24px, 4vw, 32px); color: var(--navy); }
.penguin.used { opacity: .18; transform: translateY(8px); cursor: default; }

/* schatgrot */
.cave-layout { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.depth { flex: 0 0 90px; background: #3A2E2A; border-radius: 22px; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.depth span { width: 52px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: #2F2521; color: #9C8578; }
.depth .passed { background: #6B5348; color: #F3E3C7; }
.depth .here { background: var(--yellow); color: var(--navy); }
.depth .goal { color: var(--yellow); }
.cave { flex: 1 1 520px; min-width: 0; min-height: 460px; background: #4A3B35; color: #F3E3C7; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.cave-glow { position: absolute; width: min(520px, 90%); aspect-ratio: 1; border-radius: 50%; background: #6B5348; opacity: .55; }
.cave-inner { position: relative; width: 100%; max-width: 540px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cave .word-show { padding: 16px 28px; border-radius: 20px; background: var(--yellow-soft); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 7vw, 50px); overflow-wrap: anywhere; }
.cave .big-input { border-color: #C9A86A; background: #FFF8EA; color: var(--navy); }
.cave .btn-outline { background: transparent; border-color: #C9A86A; color: #F3E3C7; }
.bar { width: 70%; max-width: 320px; height: 10px; border-radius: 999px; background: #6B5348; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }
.bat { position: absolute; z-index: 5; padding: 6px; border: none; background: transparent; }
@media (max-width: 600px) {
  .cave-layout { flex-direction: column; }
  .depth { flex-direction: row; flex: 0 0 auto; }
  .depth span { flex: 1; width: auto; height: 30px; }
}
