/* Milevaland – stijl
   Zacht roze en lila, dikke "stickerachtige" randen en knoppen die je echt kunt indrukken. */

:root {
  --cream: #fff7fa;
  --paper: #ffffff;
  --pink-50: #ffeef5;
  --pink-100: #ffdce9;
  --pink-200: #fbc0d8;
  --pink-400: #ef8cb8;
  --pink-600: #d65a95;
  --lila-50: #f4eefe;
  --lila-100: #e6dafc;
  --lila-200: #cfbcf5;
  --lila-400: #a688e6;
  --lila-600: #7a5ac4;
  --plum: #4b3366;
  --plum-soft: #7b6491;
  --mint: #c7eedd;
  --mint-600: #3f9e78;
  --butter: #ffe59b;
  --gold: #f6c24a;
  --coral: #ff9f8f;

  --line: 3px solid var(--plum);
  --radius: 26px;
  --radius-sm: 16px;
  --press: 0 6px 0 var(--plum);
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-read: "Andika", "Comic Sans MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font-head);
  color: var(--plum);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 18%, var(--pink-100) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 8%, var(--lila-100) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 60%, var(--pink-100) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 80%, var(--lila-100) 0 2px, transparent 3px);
  background-size: 340px 340px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* golvende heuvels onderaan */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C150 20 300 110 480 60 S800 10 960 60 1150 90 1200 50 V120 H0Z' fill='%23e6dafc'/%3E%3Cpath d='M0 95 C200 60 380 120 600 85 S960 55 1200 90 V120 H0Z' fill='%23ffdce9'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none;
}

button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 4px dashed var(--lila-600); outline-offset: 4px; }

.app {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px 150px;
  min-height: 100%;
}

/* ---------- kop ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .5px;
  text-decoration: none;
  color: var(--plum);
  display: inline-flex;
  align-items: baseline;
}
.logo span:nth-child(odd) { color: var(--pink-600); }
.logo span:nth-child(even) { color: var(--lila-600); }
.logo small { font-size: 34px; color: var(--plum); }
.topbar .spacer { flex: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0 4px 0 var(--plum);
  text-decoration: none;
  color: inherit;
}
.pill .star-ic { width: 26px; height: 26px; }

.icon-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: var(--line);
  background: var(--paper);
  box-shadow: 0 5px 0 var(--plum);
  display: inline-grid;
  place-items: center;
  flex: none;
  transition: transform .08s, box-shadow .08s;
}
.icon-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--plum); }
.icon-btn svg { width: 30px; height: 30px; }

.crumbs {
  font-size: 18px;
  color: var(--plum-soft);
  margin: 6px 0 0;
}
.crumbs b { color: var(--plum); }

h1.title {
  font-size: clamp(30px, 5vw, 44px);
  margin: 8px 0 4px;
  line-height: 1.1;
}
.lead { font-size: 21px; color: var(--plum-soft); margin: 0 0 22px; }

/* ---------- startscherm ---------- */
.hello {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
}
.hello .unicorn { width: 100%; max-width: 280px; }
.bubble {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: 28px;
  padding: 18px 24px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  box-shadow: 0 6px 0 var(--lila-200);
}
.bubble::before {
  content: "";
  position: absolute;
  left: -19px; top: 50%;
  width: 30px; height: 30px;
  background: var(--paper);
  border-left: var(--line);
  border-bottom: var(--line);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 0 0 0 8px;
}
.bubble .say {
  margin-left: 6px;
  vertical-align: middle;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--plum);
  background: var(--lila-50);
  display: inline-grid; place-items: center;
}
.bubble .say svg { width: 22px; height: 22px; }

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.next-sticker {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 10px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--plum);
  font-size: 18px; font-weight: 600;
  text-decoration: none; color: inherit;
}
.next-sticker .mini { font-size: 30px; filter: grayscale(1) opacity(.45); }
.meter {
  width: 120px; height: 16px;
  border-radius: 999px;
  border: 2px solid var(--plum);
  background: var(--pink-50);
  overflow: hidden;
}
.meter i {
  display: block; height: 100%;
  background: repeating-linear-gradient(-45deg, var(--pink-400) 0 8px, var(--pink-200) 8px 16px);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.3,1.4,.5,1);
}

/* ---------- kaarten ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding: 22px 22px 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--press);
  text-decoration: none;
  color: inherit;
  transition: transform .1s, box-shadow .1s;
  min-height: 150px;
}
.card:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: 0 8px 0 var(--plum); }
.card:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--plum); }
.card.pink { background: var(--pink-50); }
.card.lila { background: var(--lila-50); }
.card .ic {
  width: 74px; height: 74px;
  border-radius: 22px;
  border: var(--line);
  display: grid; place-items: center;
  font-size: 40px;
  background: var(--paper);
}
.card.pink .ic { background: var(--pink-200); }
.card.lila .ic { background: var(--lila-200); }
.card h2, .card h3 { margin: 4px 0 0; font-size: 30px; line-height: 1.1; }
.card h3 { font-size: 25px; }
.card p { margin: 0; font-size: 18px; color: var(--plum-soft); }
.card .stars-line { display: flex; gap: 4px; align-items: center; margin-top: auto; font-size: 16px; color: var(--plum-soft); }
.card .stars-line .star-ic { width: 26px; height: 26px; }
.card .lvl { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.card .lvl span { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; color: var(--plum-soft); }
.card .lvl .star-ic { width: 20px; height: 20px; }

.card.soon {
  opacity: .6;
  box-shadow: 0 6px 0 var(--lila-200);
  border-style: dashed;
  cursor: default;
}
.card.soon:hover, .card.soon:active { transform: none; box-shadow: 0 6px 0 var(--lila-200); }
.tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 14px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--butter); border: 2px solid var(--plum);
}

.subject-card { min-height: 230px; padding: 26px; }
.subject-card .ic { width: 96px; height: 96px; font-size: 54px; border-radius: 28px; }
.subject-card h2 { font-size: 38px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 68px;
  padding: 12px 30px;
  border: var(--line);
  border-radius: 999px;
  background: var(--pink-400);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  text-shadow: 0 2px 0 rgba(75,51,102,.35);
  box-shadow: var(--press);
  transition: transform .08s, box-shadow .08s;
  text-decoration: none;
}
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--plum); }
.btn.lila { background: var(--lila-400); }
.btn.white { background: var(--paper); color: var(--plum); text-shadow: none; }
.btn.small { min-height: 52px; font-size: 20px; padding: 8px 22px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* ---------- niveau kiezen ---------- */
.start {
  display: grid;
  grid-template-columns: minmax(160px, 250px) 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}
.levels { display: grid; gap: 16px; margin-top: 22px; }
.level-btn {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--press);
  font-size: 26px; font-weight: 600;
  text-align: left;
  transition: transform .08s, box-shadow .08s;
}
.level-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--plum); }
.level-btn .num {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  border: var(--line);
  background: var(--lila-200);
  font-size: 30px;
  flex: none;
}
.level-btn:nth-child(2) .num { background: var(--pink-200); }
.level-btn:nth-child(3) .num { background: var(--butter); }
.level-btn .sub { display: block; font-size: 18px; font-weight: 500; color: var(--plum-soft); }
.level-btn .got { margin-left: auto; display: flex; gap: 2px; }
.level-btn .got .star-ic { width: 26px; height: 26px; }

/* ---------- oefenscherm ---------- */
.play-top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.pearls { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: center; }
.pearls i {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--plum);
  background: var(--paper);
  transition: background .3s, transform .3s;
}
.pearls i.now { transform: scale(1.25); background: var(--butter); }
.pearls i.ok { background: var(--pink-400); }
.pearls i.meh { background: var(--lila-200); }
.timer {
  font-size: 26px; font-weight: 700;
  padding: 6px 18px; border-radius: 999px;
  border: var(--line); background: var(--butter);
  min-width: 96px; text-align: center;
}
.timer.low { background: var(--coral); animation: pulse .6s infinite alternate; }

.stage {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: 34px;
  box-shadow: 0 8px 0 var(--lila-200);
  padding: 30px 24px 34px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
.stage .q { font-size: 26px; font-weight: 500; margin: 0; color: var(--plum-soft); }

.coach {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 14px;
  min-height: 140px;
}
.coach .unicorn { width: 150px; flex: none; }
.coach .bubble { font-size: 24px; margin-bottom: 30px; flex: 1; max-width: 640px; }
.coach .bubble:empty { visibility: hidden; }
.coach .bubble.good { background: #fff6fb; box-shadow: 0 6px 0 var(--pink-200); }
.coach .bubble.hint { background: #fffbea; box-shadow: 0 6px 0 var(--butter); }

/* plaatjes en woorden */
.pic { font-size: 110px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(75,51,102,.12)); }
.word {
  font-family: var(--font-read);
  font-size: clamp(56px, 10vw, 92px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
}
.sentence {
  font-family: var(--font-read);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.35;
  max-width: 760px;
}
.listen-btn {
  width: 86px; height: 86px; border-radius: 50%;
  border: var(--line);
  background: var(--lila-200);
  box-shadow: 0 6px 0 var(--plum);
  display: grid; place-items: center;
  transition: transform .08s, box-shadow .08s;
}
.listen-btn svg { width: 44px; height: 44px; }
.listen-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--plum); }
.listen-btn.playing { animation: wiggle .5s infinite; }

.choices { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.choice {
  min-width: 150px; min-height: 130px;
  padding: 14px 22px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--press);
  display: grid; place-items: center;
  transition: transform .1s, box-shadow .1s, background .2s;
}
.choice:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--plum); }
.choice.pic-choice { font-size: 84px; width: 170px; height: 160px; }
.choice.word-choice { font-family: var(--font-read); font-size: 48px; font-weight: 700; }
.choice.klank-choice { font-family: var(--font-read); font-size: 60px; font-weight: 700; min-width: 130px; }
.choice.num-choice { font-size: 52px; font-weight: 700; min-width: 120px; min-height: 110px; }
.choice.pair-choice { font-size: 40px; font-weight: 700; min-width: 190px; }
.choice.yes { background: var(--mint); font-size: 30px; font-weight: 700; min-width: 200px; gap: 4px; }
.choice.no { background: var(--pink-100); font-size: 30px; font-weight: 700; min-width: 200px; gap: 4px; }
.choice.yes span, .choice.no span { font-size: 64px; line-height: 1; }
.choice.wrong { background: var(--lila-100); animation: shake .4s; opacity: .55; }
.choice.right { background: var(--mint); animation: pop .4s; }
.choice[disabled] { pointer-events: none; }

/* hakken */
.chop {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-read);
  font-size: clamp(64px, 11vw, 100px);
  font-weight: 700;
  user-select: none;
}
.chop .letter {
  padding: 4px 2px;
  transition: color .2s;
}
.chop .letter.g0 { color: var(--plum); }
.chop .letter.g1 { color: var(--pink-600); }
.chop .gap {
  width: 40px; height: 120px;
  margin: 0 -8px;
  border: none; background: none;
  display: grid; place-items: center;
  padding: 0;
  position: relative;
  z-index: 1;
  transition: width .2s, margin .2s;
}
.chop .gap.cut, .chop .gap.should { width: 64px; margin: 0 4px; }
.chop .gap::after {
  content: "";
  width: 5px; height: 18px;
  border-radius: 6px;
  background: var(--lila-200);
  opacity: .8;
  transition: all .15s;
}
.chop .gap:hover::after { background: var(--lila-400); }
.chop .gap.cut::after {
  height: 100px;
  background: var(--pink-600);
  box-shadow: 0 0 0 4px var(--pink-100);
}
.chop .gap.should::after { background: var(--gold); height: 100px; animation: pulse .5s 4 alternate; }

.tiles { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.tile {
  font-family: var(--font-read);
  font-size: 64px; font-weight: 700;
  min-width: 96px; height: 110px;
  padding: 0 18px;
  border: var(--line);
  border-radius: 22px;
  background: var(--lila-50);
  box-shadow: 0 6px 0 var(--plum);
  display: grid; place-items: center;
}
.tile:nth-child(even) { background: var(--pink-50); }
.tile.lit { background: var(--butter); transform: translateY(-6px); transition: transform .15s; }

.flash-box {
  min-height: 160px;
  min-width: 70%;
  display: grid; place-items: center;
  border: 3px dashed var(--lila-200);
  border-radius: 26px;
  background: var(--lila-50);
}
.flash-box .word { animation: pop .25s; }
.flash-speed { font-size: 18px; color: var(--plum-soft); }
.flash-speed b { color: var(--pink-600); }

/* splitsen */
.split-house { width: min(340px, 90%); }
.split-house .roof-num {
  font-size: 72px; font-weight: 700;
}
.house {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(330px, 88%);
  margin: 0 auto;
}
.house .roof {
  grid-column: 1 / 3;
  position: relative;
  height: 130px;
}
.house .roof svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.house .roof b {
  position: absolute; left: 0; right: 0; bottom: 14px;
  font-size: 66px; text-align: center;
}
.house .room {
  height: 118px;
  border: var(--line);
  border-top: none;
  display: grid; place-items: center;
  font-size: 66px; font-weight: 700;
  background: var(--paper);
}
.house .room:first-of-type { border-right-width: 1.5px; }
.house .room + .room { border-left-width: 1.5px; }
.house .room.ask {
  background: var(--butter);
  color: var(--pink-600);
}
.house .room.ask.filled { background: var(--mint); color: var(--plum); }
.house .room.ask.oops { background: var(--lila-100); animation: shake .4s; }
.house .foot { grid-column: 1 / 3; height: 10px; background: var(--plum); border-radius: 0 0 8px 8px; }

.numpad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 560px;
}
.numpad.small { grid-template-columns: repeat(6, 1fr); }
.numpad button {
  height: 78px;
  border: var(--line);
  border-radius: 20px;
  background: var(--lila-50);
  box-shadow: 0 5px 0 var(--plum);
  font-size: 40px; font-weight: 700;
  transition: transform .08s, box-shadow .08s;
}
.numpad button:nth-child(even) { background: var(--pink-50); }
.numpad button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--plum); }

.dots {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 360px;
}
.dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--plum);
  background: var(--paper);
}
.dot.on { background: var(--pink-400); }
.dot.rest { background: var(--lila-200); }
.dot.pop { animation: pop .35s both; }

.sky {
  position: relative;
  display: flex; gap: 18px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  padding: 16px;
}
.sky .group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 280px; }
.sky .sky-star { width: 50px; height: 50px; }
.cloud-wrap { position: relative; min-width: 200px; min-height: 120px; display: grid; place-items: center; }
.cloud-wrap .cloud {
  position: absolute; inset: -14px -20px;
  transition: transform .9s cubic-bezier(.5,-.3,.6,1.4), opacity .9s;
  z-index: 2;
}
.cloud-wrap .cloud svg { width: 100%; height: 100%; }
.cloud-wrap.open .cloud { transform: translate(140px, -120px) rotate(10deg); opacity: 0; }
.total-badge {
  font-size: 30px; font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--butter);
  border: var(--line);
}

/* ---------- resultaat ---------- */
.result { text-align: center; padding-top: 10px; }
.result .unicorn { width: 210px; margin: 0 auto; }
.big-stars { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.big-stars .star-ic { width: 90px; height: 90px; }
.big-stars .star-ic.earn { animation: starIn .6s cubic-bezier(.3,1.6,.5,1) both; }
.result h1 { font-size: 46px; margin: 8px 0; }
.result p { font-size: 24px; color: var(--plum-soft); margin: 6px 0; }

.sticker-reveal {
  display: inline-flex; align-items: center; gap: 18px;
  margin: 18px auto 0;
  padding: 14px 26px 14px 16px;
  background: var(--butter);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--press);
  font-size: 24px; font-weight: 600;
  animation: pop .6s .9s both;
}
.sticker-reveal .st { font-size: 60px; animation: spin 1s 1.1s both; }

/* ---------- stickerboek ---------- */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 18px;
  padding: 26px;
  background: var(--paper);
  border: var(--line);
  border-radius: 34px;
  box-shadow: 0 8px 0 var(--lila-200);
  background-image: radial-gradient(var(--pink-100) 1.5px, transparent 2px);
  background-size: 22px 22px;
}
.sticker {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 60px;
  background: var(--paper);
  border: 3px dashed var(--lila-200);
  position: relative;
}
.sticker.have {
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--plum), 0 6px 0 3px var(--plum);
  transform: rotate(var(--r, -4deg));
}
.sticker.have:nth-child(3n) { background: var(--pink-50); }
.sticker.have:nth-child(3n+1) { background: var(--lila-50); }
.sticker.have:nth-child(3n+2) { background: #fff9e6; }
.sticker.locked { font-size: 34px; color: var(--lila-200); font-weight: 700; }
.sticker small {
  position: absolute; bottom: -26px; left: 0; right: 0;
  font-size: 15px; text-align: center; color: var(--plum-soft);
  white-space: nowrap;
}
.album .sticker { margin-bottom: 20px; }

/* ---------- eenhoorn ---------- */
.unicorn { display: block; overflow: visible; }
.unicorn .whole { transform-origin: 50% 90%; animation: bob 3.2s ease-in-out infinite; }
.unicorn .eye-happy, .unicorn .eye-closed { display: none; }
.unicorn.happy .eye-open, .unicorn.cheer .eye-open { display: none; }
.unicorn.happy .eye-happy, .unicorn.cheer .eye-happy { display: inline; }
.unicorn.cheer .whole { animation: hop .55s ease-in-out 2; }
.unicorn.think .whole { animation: tilt 1.6s ease-in-out infinite; }
.unicorn.oops .whole { animation: nod .7s ease-in-out 1; }
.unicorn .sparkles { opacity: 0; }
.unicorn.cheer .sparkles { animation: sparkle 1s ease-out 1; }
.unicorn .blink { animation: blink 4.5s infinite; transform-origin: 50% 50%; transform-box: fill-box; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i {
  position: absolute; top: -20px;
  width: 14px; height: 20px;
  border-radius: 4px;
  animation: fall linear forwards;
}

/* ---------- ouderlink ---------- */
.parent-link {
  position: fixed; right: 16px; bottom: 14px;
  font-size: 15px; color: var(--plum-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 2px solid var(--lila-200);
  display: inline-flex; gap: 6px; align-items: center;
}
.parent-link svg { width: 16px; height: 16px; }

.sound-toggle.off { opacity: .5; }

/* ---------- animaties ---------- */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hop { 0%,100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-26px) rotate(-4deg); } }
@keyframes tilt { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
@keyframes nod { 0%,100% { transform: rotate(0); } 30% { transform: rotate(4deg); } 60% { transform: rotate(-3deg); } }
@keyframes sparkle { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes spin { from { transform: rotate(-200deg) scale(.3); } to { transform: rotate(0) scale(1); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.fade-in { animation: fadeUp .35s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- kleine schermen ---------- */
@media (max-width: 700px) {
  .app { padding: 12px 12px 140px; }
  .logo, .logo small { font-size: 27px; }
  .hello, .start { grid-template-columns: 1fr; justify-items: center; }
  .hello .unicorn, .start .unicorn { max-width: 190px; }
  .bubble { font-size: 22px; }
  .bubble::before { left: 50%; top: -19px; transform: translateX(-50%) rotate(135deg); }
  .coach .unicorn { width: 100px; }
  .coach .bubble { font-size: 20px; }
  .coach .bubble::before { left: -19px; top: 50%; transform: translateY(-50%) rotate(45deg); }
  .numpad { grid-template-columns: repeat(4, 1fr); }
  .choice.pic-choice { width: 130px; height: 130px; font-size: 64px; }
  .pill { font-size: 17px; padding: 6px 12px; }
  .icon-btn { width: 52px; height: 52px; }
}
