/* ============================================================
   Aprende Papiamentu - stijl  (css/style.css)  v0.14.1
   Created by DieOuwe · www.dieouwe.nl
   v0.4.0: nieuwe, strakkere opmaak met design-tokens (kleuren, ronding, schaduw),
           kaarten met voortgangsbalk, ronde knoppen, eigen plaatjes (.pic), installeer-uitleg.
   Aanpassen? Pas eerst de variabelen in :root aan.
   ============================================================ */

:root {
  /* merk */
  --ink: #3a2b1f;
  --muted: #6d4c41;
  --line: rgba(58, 43, 31, .12);
  --bg: #fffaf3;
  --card: #ffffff;
  --brand: #d81b60;
  --brand-dark: #ad1457;
  --pink: #ff4081;
  --pink-dark: #c2185b;
  --sun: #ffc933;
  --good: #2fa84f;
  --good-bg: #d9f6df;
  --bad: #e5484d;
  --bad-bg: #ffdfe0;

  /* vorm */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow-1: 0 1px 2px rgba(58, 43, 31, .06), 0 6px 18px rgba(58, 43, 31, .07);
  --shadow-2: 0 2px 4px rgba(58, 43, 31, .06), 0 14px 34px rgba(58, 43, 31, .12);
  --dash: #ff80ab;
  --sky: #42a5f5;
  --font: "Comic Sans MS", "Comic Sans", "Baloo 2", ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* kleuren per categorie (data-color) */
  --tint: #f1ecff;
  --edge: #6c4cf5;
}
[data-color="pink"]   { --tint: #ffe4ee; --edge: #ff4f8b; }
[data-color="green"]  { --tint: #e0f6d9; --edge: #3fae4f; }
[data-color="yellow"] { --tint: #fff2c0; --edge: #f0b400; }
[data-color="purple"] { --tint: #ece4ff; --edge: #7a5cff; }
[data-color="red"]    { --tint: #ffe2de; --edge: #ef5a4f; }
[data-color="blue"]   { --tint: #dcefff; --edge: #2f93ee; }
[data-color="orange"] { --tint: #ffe8cf; --edge: #ff8a1f; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -5%, #ffd9e6 0, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #dcecff 0, transparent 60%),
    radial-gradient(700px 500px at 50% 110%, #e6f9dc 0, transparent 60%);
  background-attachment: fixed;
}

button { font-family: inherit; color: inherit; touch-action: manipulation; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 4px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.noscript { text-align: center; padding: 20px; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- bovenbalk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1000px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; text-decoration: none; color: inherit; border-radius: 12px; }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-logo { transition: transform .2s; }
.brand-logo { font-size: 1.7rem; line-height: 1; }
.brand-name { font-size: 1.05rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand-name b { color: var(--pink); font-weight: 800; }

.stars-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff6d6; border: 2px solid var(--sun); border-radius: 999px;
  padding: 5px 14px; min-height: 44px;
}
.stars-bar .star-icon { font-size: 1.3rem; }
.stars-bar .count { font-size: 1.25rem; font-weight: 800; color: #b26a00; min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.stars-bar .label { font-size: .85rem; color: #a07a2b; font-weight: 600; }
.stars-bar.pulse { animation: pulseStar .5s ease-out; }
@keyframes pulseStar { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }

.top-btn {
  min-width: 44px; min-height: 44px; border-radius: 999px;
  background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-1);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 1.2rem; transition: transform .15s, border-color .15s;
}
.top-btn:hover { transform: translateY(-1px); border-color: var(--brand); }
.top-btn:active { transform: scale(.94); }
.install-btn { padding: 0 14px; font-weight: 700; font-size: .95rem; color: var(--brand); border-color: rgba(255, 64, 129, .35); }
.install-btn .lbl { display: none; }

/* ---------- schermen ---------- */
.screen { display: none; padding: 18px 0 50px; }
.screen.active { display: block; animation: fadeIn .35s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.hero { text-align: center; padding: 14px 0 6px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.5px; color: var(--pink); }
.hero p { margin-top: 6px; color: var(--muted); font-size: 1.05rem; font-weight: 500; }

/* eilandkeuze: segmentbalk */
.dialect-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px;
  width: fit-content; max-width: 100%; margin: 16px auto 22px; padding: 5px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-1);
}
.dialect-bar[hidden] { display: none; }
.dialect-btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: 1rem; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.dialect-btn:hover { color: var(--brand); }
.dialect-btn.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255, 64, 129, .35); }

/* ---------- menu ---------- */
.menu-section { margin-bottom: 26px; }
.menu-section > h3 { font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 4px 12px; }
.menu-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.menu-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

.menu-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 14px 16px; box-shadow: var(--shadow-1);
  transition: transform .18s, box-shadow .18s;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.menu-card:active { transform: scale(.98); }
.menu-card .big-icon {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--tint); font-size: 2.5rem; margin-bottom: 6px;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--edge);
}
.menu-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.menu-card .sub { font-size: .88rem; color: var(--muted); font-weight: 500; }
.menu-card .cat-count { font-size: .8rem; font-weight: 700; color: var(--edge); margin-top: 4px; }
.menu-card .meter { margin-top: 6px; }

/* voortgangsbalk */
.meter { width: 100%; height: 8px; border-radius: 999px; background: rgba(58, 43, 31, .08); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--edge); transition: width .4s ease; }

/* grote actiekaarten: quiz en badges */
.menu-card.action {
  flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 18px 18px;
  color: #fff; border: 0; min-height: 96px;
}
.menu-card.action[data-color="blue"]   { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.menu-card.action[data-color="orange"] { background: linear-gradient(135deg, #ff9a3c, #ff5f6d); }
.menu-card.action .big-icon { width: 58px; height: 58px; font-size: 1.9rem; margin: 0; flex: none; background: rgba(255, 255, 255, .22); box-shadow: none; }
.menu-card.action .txt { display: flex; flex-direction: column; min-width: 0; }
.menu-card.action h2 { color: #fff; font-size: 1.25rem; }
.menu-card.action .sub { color: rgba(255, 255, 255, .85); }
.menu-card.action .cat-count { color: #fff; margin-top: 2px; }

/* ---------- koppen van schermen ---------- */
.screen-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back-btn {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: 1rem; font-weight: 700; color: var(--brand);
  background: #fff; border: 2px solid rgba(255, 64, 129, .3); box-shadow: var(--shadow-1); transition: transform .15s;
}
.back-btn:hover { transform: translateX(-2px); }
.learn-title { font-size: 1.25rem; font-weight: 800; color: var(--ink); }

/* ---------- plaatjes: emoji of eigen afbeelding ---------- */
.pic { --pic: 7rem; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--pic) * 1.2); height: calc(var(--pic) * 1.2); line-height: 1; }
.pic-emoji { font-size: var(--pic); }
.pic-img img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-sm); animation: fadeIn .3s ease-out; }
.big-emoji { font-size: 5rem; line-height: 1.1; display: block; }

/* ---------- leerscherm ---------- */
.learn-card {
  position: relative; max-width: 520px; margin: 0 auto; text-align: center; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 0 22px 26px; box-shadow: var(--shadow-2);
}
.learn-card::before { content: ""; display: block; height: 0; }
.learn-card .stage {
  margin: 0 -22px 18px; padding: 26px 0 20px; background: var(--tint);
  display: flex; justify-content: center;
}
.learn-card .stage .pic { --pic: 8.5rem;  }
@keyframes bounceEmoji { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.learn-card.slide { animation: cardIn .3s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.learn-card .pap-word { font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 800; color: var(--pink); letter-spacing: -.5px; line-height: 1.1; }
.learn-card .phonetic {
  display: inline-block; margin-top: 10px; padding: 5px 16px; border-radius: 999px;
  background: #fff0f5; color: var(--pink-dark); font-weight: 700; font-size: 1.05rem;
}
.learn-card .nl-word { margin-top: 12px; font-size: 1.3rem; font-weight: 600; color: var(--brand); }
.result-card .stage { padding: 24px 0 14px; }

.audio-note { text-align: center; min-height: 26px; margin-top: 12px; font-size: .92rem; color: var(--muted); }

.nav-card { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px auto 0; }
.round-btn {
  width: 60px; height: 60px; border-radius: 50%; font-size: 1.3rem; font-weight: 800; color: var(--brand);
  background: #fff; border: 2px solid rgba(255, 64, 129, .3); box-shadow: var(--shadow-1); transition: transform .15s, background .15s;
}
.round-btn:hover { background: #fff0f5; transform: translateY(-2px); }
.round-btn:active { transform: scale(.94); }
.speak-btn, .nav-card .big-btn {
  min-height: 60px; padding: 0 30px; border-radius: 999px; font-size: 1.2rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff7a59); box-shadow: 0 8px 20px rgba(255, 79, 139, .35); transition: transform .15s;
}
.speak-btn:hover, .nav-card .big-btn:hover { transform: translateY(-2px); }
.speak-btn:active, .nav-card .big-btn:active { transform: scale(.96); }
.nav-card .big-btn.alt { background: linear-gradient(135deg, #42a5f5, #1e88e5); box-shadow: 0 8px 20px rgba(255, 64, 129, .35); }

/* voortgang: gesegmenteerde balk */
.progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 520px; margin: 22px auto 0; }
.progress .dot { flex: 1 1 0; min-width: 14px; height: 8px; border-radius: 999px; background: rgba(58, 43, 31, .10); }
.progress .dot.seen { background: #8fd88f; }
.progress .dot.now { background: var(--brand); transform: scaleY(1.5); }
.progress-text { width: 100%; text-align: center; font-weight: 700; color: var(--muted); margin-top: 6px; font-size: .95rem; }

/* ---------- quiz ---------- */
.quiz-top { display: flex; justify-content: space-between; align-items: center; max-width: 640px; margin: 0 auto 8px; font-weight: 800; color: var(--muted); }
#qStreak { color: #e8710a; background: #fff1e0; padding: 3px 12px; border-radius: 999px; font-size: .95rem; }
#qStreak:empty { display: none; }
.quiz-meter { max-width: 640px; margin: 0 auto 18px; --edge: var(--brand); }

.question {
  max-width: 640px; margin: 0 auto 18px; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 16px 18px; box-shadow: var(--shadow-1);
  font-size: clamp(1.15rem, 4vw, 1.5rem); font-weight: 800; color: var(--brand);
}
.question .pic { --pic: 8rem; margin-top: 8px;  }
.listen-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 1.15rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--pink), #ff7a59); box-shadow: 0 8px 20px rgba(255, 79, 139, .35);
}
.listen-btn:active { transform: scale(.96); }

.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 640px; margin: 0 auto; }
.option {
  display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 14px 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  font-size: 1.4rem; font-weight: 800; color: var(--ink); transition: transform .15s, border-color .15s, background .2s;
}
.option .pic { --pic: 4.2rem; }
.option.emoji-opt { min-height: 130px; }
.option:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--brand); }
.option:active:not(:disabled) { transform: scale(.97); }
.option:disabled { cursor: default; }
.option.correct { background: var(--good-bg); border-color: var(--good); animation: correctPop .55s ease-out; }
.option.wrong { background: var(--bad-bg); border-color: var(--bad); animation: wrongShake .45s ease-in-out; }
@keyframes correctPop { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes wrongShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.feedback { text-align: center; font-size: 1.35rem; margin-top: 18px; min-height: 36px; font-weight: 800; color: var(--pink); }
.quiz-next { text-align: center; margin-top: 10px; min-height: 60px; }
.quiz-next button {
  min-height: 56px; padding: 0 38px; border-radius: 999px; font-size: 1.15rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #42a5f5, #1e88e5); box-shadow: 0 8px 20px rgba(255, 64, 129, .35);
}
.quiz-next button:active { transform: scale(.96); }

/* leerkaartje na een antwoord: "wat is dit?" */
.option.done { cursor: pointer; }
.option.done:hover { transform: translateY(-2px); }
.option.bekeken { box-shadow: 0 0 0 3px var(--brand), var(--shadow-1); }
.leerkaart {
  display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 14px auto 0; padding: 12px 16px;
  background: #fff; border: 2px solid var(--brand); border-radius: var(--r-md); box-shadow: var(--shadow-1); text-align: left;
  animation: fadeIn .3s ease-out;
}
.leerkaart .pic { --pic: 3.4rem; flex: none; }
.lk-tekst { flex: 1; min-width: 0; }
.lk-pap { font-size: 1.5rem; font-weight: 800; color: var(--pink); line-height: 1.15; }
.lk-uitspraak { font-size: .95rem; font-weight: 700; color: var(--pink-dark); }
.lk-nl { font-size: 1.1rem; font-weight: 700; color: var(--brand); }
.lk-knop { flex: none; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; background: linear-gradient(135deg, var(--pink), #ff7a59); box-shadow: 0 6px 16px rgba(255, 79, 139, .35); }
.lk-knop:active { transform: scale(.94); }

/* ---------- badges ---------- */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.badge-card { background: rgba(255, 255, 255, .6); border: 2px dashed rgba(58, 43, 31, .15); border-radius: var(--r-md); padding: 18px 10px; text-align: center; }
.badge-card.earned { background: #fff; border: 2px solid var(--sun); box-shadow: var(--shadow-1); }
.badge-big { font-size: 2.6rem; }
.badge-card:not(.earned) .badge-big { filter: grayscale(1); opacity: .5; }
.badge-naam { font-weight: 800; margin-top: 4px; color: var(--pink); }
.badge-card:not(.earned) .badge-naam { color: var(--muted); }
.badge-uitleg { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- popup, confetti, uitleg-overlay ---------- */
.badge-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); background: #fff; border: 4px solid var(--sun);
  border-radius: 30px; padding: 28px 38px; text-align: center; z-index: 1000; box-shadow: 0 24px 60px rgba(58, 43, 31, .3);
  animation: badgeIn .4s ease-out forwards; max-width: 90vw; pointer-events: none;
}
@keyframes badgeIn {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0); }
  70% { transform: translate(-50%, -50%) scale(1.03) rotate(0); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.badge-popup .badge-icon { font-size: 4.6rem; display: block; }
.badge-popup h3 { color: var(--pink); margin: 8px 0; font-size: 1.5rem; font-weight: 800; }
.badge-popup p { color: var(--brand); font-weight: 700; }

.confetti { position: fixed; width: 11px; height: 15px; pointer-events: none; z-index: 999; animation: confetti-fall 1.4s ease-out forwards; }
@keyframes confetti-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0; } }

.overlay { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(58, 43, 31, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet { width: min(480px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 24px 22px 20px; box-shadow: var(--shadow-2); animation: fadeIn .25s ease-out; }
.sheet h2 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.sheet p, .sheet li { color: var(--ink); line-height: 1.5; font-size: 1rem; }
.sheet ol, .sheet ul { margin: 8px 0 8px 22px; }
.sheet .warn { background: #fff4d6; border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; font-size: .95rem; }
.sheet-close { display: block; margin: 16px auto 0; min-height: 48px; padding: 0 32px; border-radius: 999px; font-size: 1.05rem; font-weight: 800; color: #fff; background: var(--brand); }

/* ---------- voet ---------- */
footer { text-align: center; padding: 8px 20px 36px; color: var(--muted); }
footer .foot-main { font-weight: 800; color: var(--brand); font-size: 1rem; }
footer .credit { margin-top: 6px; font-size: .78rem; }
footer a { color: inherit; }

/* ---------- breder scherm ---------- */
@media (min-width: 640px) {
  .install-btn .lbl { display: inline; }
  .options { gap: 18px; }
  .option { min-height: 104px; }
  .option .pic { --pic: 5rem; }
  .option.emoji-opt { min-height: 150px; }
}
@media (min-width: 900px) {
  .menu-actions { gap: 18px; }
  .menu-cats { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}

/* ---------- smalle telefoon ---------- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .topbar-inner { padding: 6px 10px; gap: 8px; }
  .brand-name { display: none; }
  .stars-bar { padding: 4px 12px; gap: 6px; }
  .dialect-bar { flex-wrap: nowrap; width: 100%; gap: 2px; padding: 4px; }
  .dialect-btn { flex: 1 1 0; padding: 8px 6px; font-size: .92rem; white-space: nowrap; }
  .menu-cats .menu-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .menu-card.action { flex-direction: column; text-align: center; align-items: center; gap: 6px; padding: 16px 10px; }
  .learn-card .stage .pic { --pic: 7rem; }
  .question .pic { --pic: 6.6rem; }
  .option .pic { --pic: 3.8rem; }
  .option.emoji-opt { min-height: 112px; }
  .round-btn { width: 54px; height: 54px; }
  .speak-btn { padding: 0 22px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ============================================================
   v0.6.0 MERKSTIJL - dezelfde vrolijke look als de hoofdpagina
   (lucht, Comic Sans, stippelranden, roze/gele koppen) maar RUSTIG:
   zon en wolken staan (bijna) stil, geen stuiterende plaatjes.
   Alles is pure CSS, werkt dus ook offline en onder de strikte CSP.
   ============================================================ */
body {
  background-color: #b3e5fc;
  background-image: linear-gradient(180deg, #87ceeb 0%, #b3e5fc 45%, #fff8b0 100%);
  background-attachment: fixed;
}
/* zon: stilstaand, rechtsboven achter de inhoud */
body::before {
  content: ""; position: fixed; top: 74px; right: 26px; width: 84px; height: 84px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, #fff176 0%, #ffd54f 60%, #ffb300 100%); box-shadow: 0 0 46px 14px rgba(255, 213, 79, .55);
}
/* wolk: een enkele, heel langzame */
body::after {
  content: ""; position: fixed; top: 96px; left: -220px; width: 110px; height: 36px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: #fff; opacity: .85; animation: wolkDrift 160s linear infinite;
  box-shadow: 34px -16px 0 8px #fff, 70px -4px 0 2px #fff;
}
@keyframes wolkDrift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 440px)); } }
.container, footer { position: relative; z-index: 1; }

.topbar { background: rgba(255, 255, 255, .78); border-bottom: 3px dashed var(--dash); }
.brand-name { font-weight: 700; }
.top-btn { border: 3px dashed var(--dash); }
.stars-bar { border: 3px dashed var(--sun); }

.hero h1 { color: var(--pink); text-shadow: 3px 3px 0 #fff176, 6px 6px 0 rgba(255, 64, 129, .22); letter-spacing: 0; }
.hero p { color: var(--ink); font-weight: 700; }
.menu-section > h3 { color: var(--ink); text-shadow: 1px 1px 0 #fff; }

.menu-card, .learn-card, .question, .leerkaart, .sheet, .badge-card.earned {
  border: 4px dashed var(--dash); background: rgba(255, 255, 255, .92);
}
.menu-card { border-radius: 30px; }
.learn-card { border-radius: 34px; }
.learn-card .stage { border-bottom: 3px dashed var(--dash); }
.menu-card.action { border: 4px dashed #fff; }
.option { border: 3px dashed var(--dash); }
.option.correct { border: 3px solid var(--good); }
.option.wrong { border: 3px solid var(--bad); }
.dialect-bar { border: 3px dashed var(--dash); }
.back-btn { border: 3px dashed var(--dash); color: var(--brand); }
.round-btn { border: 3px dashed var(--dash); color: var(--brand); }
.learn-card .nl-word, .question { color: var(--brand); }
.learn-title { color: var(--pink); text-shadow: 2px 2px 0 #fff176; font-size: 1.4rem; }
.badge-popup { border: 5px dashed var(--sun); }
.overlay { background: rgba(58, 43, 31, .45); }
footer { background: rgba(255, 255, 255, .7); border-top: 3px dashed var(--dash); padding-top: 14px; }
footer .foot-main { color: var(--pink); }

@media (max-width: 480px) {
  body::before { width: 62px; height: 62px; right: 10px; top: 64px; }
  .menu-card, .learn-card, .question, .leerkaart, .sheet { border-width: 3px; }
}

/* ============================================================
   v0.7.0 poppetje na een antwoord + geluidjes-paneel
   ============================================================ */
.mascot {
  position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 80px; height: 80px; z-index: 900;
  pointer-events: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(58, 43, 31, .25));
}
.mascot.toon { animation: mascotIn .35s ease-out both; }
@keyframes mascotIn { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .mascot { width: 64px; height: 64px; left: 8px; } }

.sfx-rij { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.sfx-rij input[type="checkbox"] { width: 28px; height: 28px; accent-color: var(--pink); flex: none; }
.sfx-vol input[type="range"] { flex: 1; min-width: 0; height: 36px; accent-color: var(--pink); }
.sfx-vol input[type="range"]:disabled { opacity: .4; }
.sfx-tip { font-size: .88rem !important; color: var(--muted) !important; }

/* ============================================================
   v0.8.0 KINDERLOOK - gekleurde, "dikke" kaarten zoals de eerste versie,
   samen met de nieuwe lucht, zon, wolk en stippellijnen.
   Dikke gekleurde rand + harde schaduw = kaarten die je wilt aanraken.
   ============================================================ */
:root { --purple: #7a5cff; --stoot: 0 7px 0 rgba(58, 43, 31, .16); --stoot-s: 0 4px 0 rgba(58, 43, 31, .16); }

body {
  background-color: #dff1fb;
  background-image: linear-gradient(180deg, #bfe6fb 0%, #e6f5fb 30%, #fff4d2 68%, #e6f8d8 100%);
}

/* grote titel met bloemetjes */
.hero { padding: 18px 0 4px; }
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 800; line-height: 1.15; color: #ff4f8b;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(255, 79, 139, .28);
}
.hero p { font-size: 1.15rem; color: var(--purple); font-weight: 700; margin-top: 10px; }
.hero p b { color: var(--pink); }

/* eiland-keuze: paarse bolletjes */
.dialect-bar { background: none; border: 0; box-shadow: none; gap: 10px; padding: 0; }
.dialect-btn {
  background: #fff; color: var(--purple); border: 3px solid var(--purple); box-shadow: var(--stoot-s);
  font-weight: 800; min-height: 46px;
}
.dialect-btn:hover { color: var(--purple); transform: translateY(-1px); }
.dialect-btn.on { background: var(--purple); color: #fff; box-shadow: var(--stoot-s); }

/* sterren: witte pil met gele rand */
.stars-bar { background: #fff; border: 4px solid #ffd54a; box-shadow: var(--stoot-s); }
.stars-bar .count { color: var(--pink); font-size: 1.4rem; }

/* menukaarten: pastel met dikke gekleurde rand en harde schaduw */
.menu-section > h3 { color: var(--purple); font-size: .95rem; letter-spacing: .08em; }
.menu-card {
  background: var(--tint); border: 5px solid var(--edge); border-radius: 30px; box-shadow: var(--stoot);
  padding: 22px 12px 16px;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: 0 9px 0 rgba(58, 43, 31, .16); }
.menu-card:active { transform: translateY(4px); box-shadow: 0 3px 0 rgba(58, 43, 31, .16); }
.menu-card .big-icon { width: auto; height: auto; background: none; box-shadow: none; font-size: 3.6rem; line-height: 1.1; border-radius: 0; margin-bottom: 8px; }
.menu-card h2 { font-size: 1.35rem; font-weight: 800; }
.menu-card .sub { font-style: italic; color: #7d6b66; }
.menu-card .cat-count { color: var(--purple); font-size: .9rem; }
.menu-card .meter { height: 10px; background: rgba(255, 255, 255, .75); border: 2px solid rgba(58, 43, 31, .10); }
.menu-card .meter > i { background: var(--edge); }
/* quiz en badges: ook pastelkaarten */
.menu-card.action { color: var(--ink); min-height: 96px; border: 5px solid var(--edge); }
.menu-card.action[data-color="blue"]   { background: #dcefff; --edge: #5aaaf5; }
.menu-card.action[data-color="orange"] { background: #ffe8cf; --edge: #ff9d3d; }
.menu-card.action .big-icon { width: auto; height: auto; font-size: 2.8rem; background: none; }
.menu-card.action h2 { color: var(--ink); }
.menu-card.action .sub { color: #7d6b66; }
.menu-card.action .cat-count { color: var(--purple); }

/* knoppen */
.back-btn, .round-btn { background: #fff; border: 3px solid var(--purple); color: var(--purple); box-shadow: var(--stoot-s); }
.round-btn:hover { background: #f4f0ff; }
.top-btn { background: #fff; border: 3px solid var(--purple); box-shadow: var(--stoot-s); }
.top-btn:hover { border-color: var(--pink); }
.speak-btn, .nav-card .big-btn, .listen-btn { border: 3px solid #fff; box-shadow: 0 6px 0 #d93570; }
.speak-btn:active, .nav-card .big-btn:active, .listen-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #d93570; }
.quiz-next button { background: #5aaaf5; border: 3px solid #fff; box-shadow: 0 6px 0 #2f7fd0; }
.quiz-next button:active { transform: translateY(4px); box-shadow: 0 2px 0 #2f7fd0; }
.nav-card .big-btn.alt { background: #5aaaf5; box-shadow: 0 6px 0 #2f7fd0; }

/* leerkaart en quiz */
.learn-card { border: 6px solid var(--edge); box-shadow: var(--stoot); background: #fff; }
.learn-card .stage { border-bottom: 4px solid var(--edge); }
.learn-card .nl-word { color: var(--purple); }
.learn-card .phonetic { background: #fff; border: 3px solid var(--dash); }
.question { border: 5px solid #5aaaf5; box-shadow: var(--stoot); background: #fff; color: var(--purple); }
.option { background: #fff; border: 4px solid #cbbcff; box-shadow: var(--stoot-s); }
.option:hover:not(:disabled) { border-color: var(--purple); }
.option.correct { border: 4px solid var(--good); }
.option.wrong { border: 4px solid var(--bad); }
.leerkaart { border: 4px solid var(--purple); box-shadow: var(--stoot-s); background: #fff; }
.lk-nl { color: var(--purple); }
.badge-card.earned { border: 5px solid var(--sun); box-shadow: var(--stoot-s); }
.progress .dot { height: 10px; }
.progress .dot.now { background: var(--purple); }
.sheet { border: 5px solid var(--edge, var(--dash)); }
.sheet-close { background: var(--purple); box-shadow: 0 5px 0 #5a3fd6; }

@media (max-width: 480px) {
  .menu-card { border-width: 4px; }
  .menu-card .big-icon { font-size: 3.1rem; }
  .menu-card.action { flex-direction: column; }
  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
}

/* v0.9.0 meisje bovenaan het startscherm */
.hero-meisje { display: block; margin: 0 auto -4px; width: 150px; height: auto; filter: drop-shadow(0 6px 8px rgba(58, 43, 31, .2)); pointer-events: none; }
@media (max-width: 480px) { .hero-meisje { width: 120px; } }

/* v0.11.0 poppetje voor de tekst bij goed/fout */
.feedback { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fb-img { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 4px rgba(58, 43, 31, .25)); animation: mascotIn .3s ease-out both; }
.fb-tekst { min-width: 0; }

/* v0.14.1 geluidspaneel: uitleg over systeemstemmen */
details.sfx-tip { margin-top: 8px; }
details.sfx-tip summary { cursor: pointer; font-weight: 700; color: var(--pink-dark); min-height: 32px; }
details.sfx-tip ul { margin: 6px 0 0 18px; }
