:root {
  --green: #58CC02; --green-d: #46A302; --green-l: #D7FFB8; --green-ink: #3A8A00;
  --blue: #1CB0F6; --blue-d: #1899D6; --blue-l: #DDF4FF; --blue-ink: #1482BA;
  --orange: #FF9600; --orange-d: #E08600; --orange-l: #FFF0D9; --orange-ink: #C26F00;
  --red: #FF4B4B; --red-d: #EA2B2B; --red-l: #FFDFE0;
  --purple: #CE82FF; --purple-d: #A568CC; --purple-l: #F4E6FF;
  --yellow: #FFC800; --yellow-d: #E5A800;
  --pink: #FF4B8B; --pink-l: #FFE1EC;
  --yellow-l: #FFF5CC;
  --teal: #1CC7B1; --teal-d: #14A390; --teal-l: #D4F7F2; --teal-ink: #0E7F70;
  --indigo: #7B83FF; --indigo-d: #5E66E0; --indigo-l: #E6E8FF;
  --coral: #FF7A59; --coral-d: #E5603F; --coral-l: #FFE6DE;
  --ink: #3C3C3C; --ink-2: #4B4B4B; --muted: #777; --line: #E5E5E5; --line-d: #CECECE;
  --bg: #FFFFFF; --bg-2: #F7F7F7;
  --radius: 16px;
  --font: ui-rounded, "Nunito", "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease-out: cubic-bezier(.2, .9, .3, 1.2);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 700;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
input { font: inherit; -webkit-user-select: text; user-select: text; }
.app { max-width: 680px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 3D-knoppen ---------- */
.btn {
  --c: var(--green); --cd: var(--green-d); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: var(--radius);
  background: var(--c); color: var(--fg); font-weight: 900; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--cd); transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 var(--cd); }
.btn:disabled { --c: var(--line); --cd: var(--line-d); --fg: #AFAFAF; cursor: default; }
.btn-block { width: 100%; }
.btn-xl { min-height: 68px; font-size: 21px; border-radius: 20px; }
.btn-blue { --c: var(--blue); --cd: var(--blue-d); }
.btn-orange { --c: var(--orange); --cd: var(--orange-d); }
.btn-purple { --c: var(--purple); --cd: var(--purple-d); }
.btn-ghost { --c: #fff; --cd: var(--line); --fg: var(--blue); border: 2px solid var(--line); }
.btn-ghost:active:not(:disabled) { box-shadow: 0 0 0 var(--line); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #AFAFAF; font-size: 26px; }
.icon-btn:active { background: var(--bg-2); }

/* ---------- koppelen ---------- */
.pair { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.pair h1 { font-size: 30px; font-weight: 900; margin: 0; }
.pair p { color: var(--muted); margin: 0; max-width: 360px; }
.code-input {
  width: min(340px, 100%); text-align: center; font-size: 34px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase;
  padding: 14px 12px 14px 22px; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; outline: none; color: var(--ink); background: var(--bg-2);
}
.code-input:focus { border-color: var(--blue); background: #fff; }
.err { color: var(--red-d); min-height: 22px; }

/* ---------- home ---------- */
.topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; font-weight: 900; font-size: 18px; }
.stat .ico { font-size: 22px; line-height: 1; }
.stat.streak { color: var(--orange); }
.stat.streak.off { color: #AFAFAF; filter: grayscale(1); }
.stat.xp { color: var(--blue); }
.spacer { flex: 1; }
.hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin: 8px 0 0; }
.bubble {
  position: relative; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; font-size: 18px; line-height: 1.35;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; top: 50%; width: 18px; height: 18px; background: #fff;
  border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateY(-50%) rotate(45deg); border-radius: 0 0 0 5px;
}
.ring-wrap { display: flex; flex-direction: column; align-items: center; margin: 14px 0 18px; }
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--green); transition: stroke-dashoffset .7s var(--ease-out); filter: drop-shadow(0 3px 0 var(--green-d)); }
.ring.full .fill { stroke: var(--yellow); filter: drop-shadow(0 3px 0 var(--yellow-d)); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring-label b { display: block; font-size: 40px; font-weight: 900; color: var(--ink); }
.ring-label small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.ring-caption { margin-top: 10px; color: var(--muted); font-size: 16px; }
.ring.pop { animation: pop .45s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

.section-title { font-size: 20px; font-weight: 900; margin: 26px 0 12px; }
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.domain {
  --c: var(--blue); --cl: var(--blue-l); --cd: var(--blue-d);
  text-align: left; padding: 14px; border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line);
  display: flex; flex-direction: column; gap: 8px; transition: transform .08s, box-shadow .08s;
}
.domain:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.domain .em { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--cl); box-shadow: inset 0 -4px 0 rgba(0,0,0,.07); }
.domain .nm { font-size: 18px; font-weight: 900; }
.domain .lv { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.domain .lv i { display: block; height: 100%; background: var(--c); border-radius: 99px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.domain .sub { font-size: 13px; color: var(--muted); }
.domain.green { --c: var(--green); --cl: var(--green-l); }
.domain.purple { --c: var(--purple); --cl: var(--purple-l); }
.domain.orange { --c: var(--orange); --cl: var(--orange-l); }
.domain.pink { --c: var(--pink); --cl: var(--pink-l); }
.domains .domain:last-child:nth-child(odd) { grid-column: 1 / -1; }
.extra-chip { align-self: center; margin: -6px auto 12px; width: fit-content; padding: 6px 14px; border-radius: 99px; background: var(--yellow-l); color: var(--orange-ink); font-weight: 900; }
.passage { border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--bg-2); font-size: 19px; line-height: 1.6; color: var(--ink-2); max-height: 42vh; overflow-y: auto; }
.tok.ref { background: var(--yellow-l); border-color: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); cursor: default; }
.skills-list { margin-top: 12px; display: grid; gap: 8px; }
.skills-list[hidden] { display: none; }
.skill-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; }
.skill-row .nm { flex: 1; font-size: 15px; }
.skill-row .nm small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow-d); }
.link-btn { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; padding: 12px 0; }

/* ---------- les ---------- */
.lesson { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lesson-top { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.combo { font-weight: 900; color: var(--orange); font-size: 17px; display: inline-flex; align-items: center; gap: 4px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.combo.on { opacity: 1; transform: scale(1); }
.mode-tag { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 10px; background: var(--purple-l); color: var(--purple-d); }
.mode-tag.herhaling { background: var(--orange-l); color: var(--orange-ink); }
.mode-tag.terug { background: var(--blue-l); color: var(--blue-ink); }
.lesson-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 18px; animation: slideIn .35s var(--ease-out); }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.instruction { font-size: 24px; font-weight: 900; margin: 6px 0 0; line-height: 1.2; }
.prompt { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; }
.prompt .bubble { font-size: 21px; line-height: 1.5; }
.prompt.no-pip { grid-template-columns: 1fr; }
.prompt.no-pip .bubble::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px; border-radius: 99px; background: var(--blue-l); color: var(--blue-ink); font-size: 15px; font-weight: 800; }
.gap {
  display: inline-block; min-width: 72px; padding: 0 6px; margin: 0 2px; border-bottom: 3px solid var(--line-d); color: var(--blue-ink);
  text-align: center; transition: border-color .15s; min-height: 1.3em; vertical-align: baseline;
}
.gap.filled { border-color: var(--blue); }
.gap.part { min-width: 36px; }
.hl { background: var(--yellow); background: linear-gradient(transparent 55%, #FFE780 55%); padding: 0 2px; }

.options { display: grid; gap: 12px; }
.options.grid2 { grid-template-columns: 1fr 1fr; }
.opt {
  min-height: 60px; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line);
  background: #fff; font-size: 20px; font-weight: 800; color: var(--ink-2); text-align: center; line-height: 1.25;
  transition: transform .08s, box-shadow .08s, border-color .12s, background .12s;
}
.options.stack .opt { text-align: left; font-size: 18px; }
.opt:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.opt.sel { border-color: var(--blue); background: var(--blue-l); color: var(--blue-ink); box-shadow: 0 4px 0 var(--blue); }
.opt.good { border-color: var(--green); background: var(--green-l); color: var(--green-ink); box-shadow: 0 4px 0 var(--green); }
.opt.bad { border-color: var(--red); background: var(--red-l); color: var(--red-d); box-shadow: 0 4px 0 var(--red); animation: shake .4s; }
.opt.gone { opacity: .35; pointer-events: none; transform: scale(.96); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

.answer-input {
  width: 100%; font-size: 26px; font-weight: 800; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--line); border-bottom-width: 5px;
  background: var(--bg-2); color: var(--ink); outline: none; text-align: center;
}
.answer-input:focus { border-color: var(--blue); background: #fff; }
.speak-row { display: flex; gap: 12px; justify-content: center; }
.speak-btn { width: 96px; height: 96px; border-radius: 26px; font-size: 44px; }
.speak-btn.slow { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; align-self: flex-end; }

.tokens { display: flex; flex-wrap: wrap; gap: 10px 8px; font-size: 22px; line-height: 1.2; }
.tok {
  padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); background: #fff; font-weight: 800; color: var(--ink-2);
  transition: transform .08s, box-shadow .08s, background .12s, border-color .12s;
}
.tok:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.tok.sel { background: var(--blue-l); border-color: var(--blue); color: var(--blue-ink); box-shadow: 0 4px 0 var(--blue); }
.tok.hint { text-decoration: underline dotted var(--purple-d) 3px; text-underline-offset: 6px; }
.tok.good { background: var(--green-l); border-color: var(--green); color: var(--green-ink); box-shadow: 0 4px 0 var(--green); }
.tok.bad { background: var(--red-l); border-color: var(--red); color: var(--red-d); box-shadow: 0 4px 0 var(--red); animation: shake .4s; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match .col { display: grid; gap: 12px; }
.match .opt { font-size: 18px; min-height: 58px; }

.lesson-foot { position: sticky; bottom: 0; padding: 12px 0 0; background: linear-gradient(transparent, #fff 18%); }

/* ---------- feedback sheet ---------- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; transform: translateY(105%); transition: transform .35s var(--ease-out);
  padding: 18px 16px calc(var(--safe-b) + 18px);
}
.sheet.show { transform: none; }
.sheet .in { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sheet.good { background: var(--green-l); color: var(--green-ink); }
.sheet.bad { background: var(--orange-l); color: var(--orange-ink); }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 26px; font-weight: 900; flex: 1; }
.sheet .xp-pop { font-weight: 900; color: var(--blue); animation: rise .9s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
.sheet .answer-line { font-size: 18px; color: var(--ink-2); }
.sheet .answer-line b { color: var(--ink); }
.sheet .expl { font-size: 17px; line-height: 1.45; color: var(--ink-2); font-weight: 700; }
.sheet .expl b { color: var(--ink); }
.sheet .ai { background: rgba(255,255,255,.7); border-radius: 14px; padding: 10px 12px; font-size: 16px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.sheet .ai .who { font-weight: 900; color: var(--green-ink); white-space: nowrap; }
.sheet .note { font-size: 14px; opacity: .85; }
.dots-loading::after { content: "…"; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.2em; } }
.mini-pip { width: 56px; height: 56px; flex: none; }

/* ---------- tip / level up / klaar / slot ---------- */
.tip-card { border: 2px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 4px 0 var(--line); background: #fff; }
.tip-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.tip-card .lvl { color: var(--purple-d); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.tip-card p { font-size: 18px; line-height: 1.5; margin: 8px 0; color: var(--ink-2); }
.tip-card .ex { background: var(--blue-l); color: var(--blue-ink); border-radius: 12px; padding: 10px 12px; font-size: 17px; margin-top: 10px; }
/* ---------- extra uitleg ---------- */
.foot-stack { display: flex; flex-direction: column; gap: 12px; }
.step-dots { display: flex; gap: 6px; align-items: center; }
.step-dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease-out), background .2s; }
.step-dots i.done { background: var(--green); }
.step-dots i.on { width: 28px; background: var(--blue); }
.speak-mini { color: var(--blue); font-size: 24px; }
.uitleg-title { color: var(--purple-d); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.lesson-body.uitleg { gap: 16px; }
.uitleg-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 18px;
  border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--line); margin-top: 10px;
}
.uitleg-card.solo { align-items: center; padding: 20px; border-style: dashed; box-shadow: none; }
.uitleg-icon {
  position: absolute; top: -20px; left: 16px; width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px;
  border-radius: 14px; background: var(--yellow-l); box-shadow: 0 3px 0 var(--yellow); animation: iconPop .5s var(--ease-out) both;
}
.uitleg-icon.big { position: static; width: 72px; height: 72px; font-size: 42px; border-radius: 22px; }
.uitleg-line {
  font-size: 22px; line-height: 1.4; padding: 10px 14px; border-radius: 14px; background: var(--blue-l); color: var(--ink);
  opacity: 0; animation: lineIn .45s var(--ease-out) var(--d, 0s) both;
}
.uitleg-line b, .uitleg-why b {
  color: var(--ink); border-radius: 4px; padding: 0 1px;
  background: linear-gradient(transparent 55%, var(--yellow) 55%) no-repeat 0 0 / 0% 100%; animation: marker .5s ease-out calc(var(--d, 0s) + .4s) forwards;
}
.uitleg-q { font-size: 21px; line-height: 1.5; }
.uitleg-q .gap { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--line-d); text-align: center; }
.uitleg-q .gap.filled { border-color: var(--green); color: var(--green-ink); }
.uitleg-why { font-size: 19px; line-height: 1.45; padding: 14px 16px; border-radius: 16px; animation: rise .4s ease-out both; }
.uitleg-why.good { background: var(--green-l); color: var(--green-ink); }
.uitleg-why.bad { background: var(--orange-l); color: var(--orange-ink); }
@keyframes iconPop { 0% { transform: scale(.3) rotate(-20deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes marker { to { background-size: 100% 100%; } }

/* ---------- onboarding ---------- */
.onb { flex: 1; display: flex; flex-direction: column; }
.onb-body.mid { justify-content: center; padding-bottom: 12vh; }
.onb-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 8px 0 18px; animation: slideIn .35s var(--ease-out); }
.onb-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.onb-hero .bubble { font-size: 22px; font-weight: 900; }
.onb-text { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.onb-small { font-size: 15px; color: var(--muted); margin: 0; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chips .chip { margin: 0; font-size: 17px; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picks.one { grid-template-columns: 1fr; }
.pick { position: relative; }
.pick.neutral { --c: var(--muted); --cl: var(--bg-2); }
.pick .check {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center;
  border: 2px solid var(--line); color: transparent; font-size: 16px; font-weight: 900; transition: background .15s, border-color .15s, transform .2s var(--ease-out);
}
.pick.sel { border-color: var(--c); background: var(--cl); box-shadow: 0 4px 0 var(--c); }
.pick.sel .check { background: var(--c); border-color: var(--c); color: #fff; transform: scale(1.1); }
.pick .sub { font-size: 14px; }
.picks.one .pick { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding-right: 50px; }
.picks.one .pick .em { grid-row: span 2; }
.domain { position: relative; }
.wish-badge { position: absolute; top: 10px; right: 10px; font-size: 18px; }
.home-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; }

.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(255,255,255,.96); animation: fade .25s; padding: 24px 16px; }
@keyframes fade { from { opacity: 0; } }
.overlay .box { width: min(440px, 100%); }
.big-title { font-size: 32px; font-weight: 900; margin: 0; line-height: 1.1; }
.big-title.purple { color: var(--purple-d); }
.big-title.gold { color: var(--yellow-d); }
.stars { display: flex; gap: 6px; justify-content: center; font-size: 34px; }
.stars span { filter: grayscale(1) opacity(.3); transition: filter .3s; }
.stars span.on { filter: none; animation: pop .5s var(--ease-out) both; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.stat-card { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat-card .t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #fff; padding: 5px; font-weight: 900; }
.stat-card .v { font-size: 24px; font-weight: 900; padding: 10px 4px; }
.stat-card.y .t { background: var(--yellow); } .stat-card.y .v { color: var(--yellow-d); }
.stat-card.g .t { background: var(--green); } .stat-card.g .v { color: var(--green-ink); }
.stat-card.b .t { background: var(--blue); } .stat-card.b .v { color: var(--blue-ink); }
.week { display: flex; gap: 8px; justify-content: center; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.week i { width: 34px; height: 34px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-style: normal; font-size: 18px; }
.week i.on { background: var(--orange); box-shadow: inset 0 -3px 0 var(--orange-d); }
.week i.today { outline: 3px solid var(--blue); outline-offset: 2px; }
.locked .countdown { font-size: 18px; color: var(--muted); }
.locked .countdown b { color: var(--ink); }

.toast {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 14px); transform: translate(-50%, -150%); z-index: 60;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; font-size: 16px; transition: transform .3s var(--ease-out); max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

/* ---------- viering: ring vol ---------- */
.celebrate { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow: hidden auto; display: flex; padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); }
.cel-col { width: min(440px, 100%); margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cel-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .7s var(--ease-out); }
.celebrate[data-phase="burst"] .cel-hero { transform: translateY(var(--dy, 0)) scale(1.25); }
.cel-stage { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.cel-pip { position: relative; z-index: 1; transition: transform .7s var(--ease-out); }
.celebrate[data-phase="burst"] .cel-pip { animation: celPipIn .6s var(--ease-out) both; }
.celebrate:not([data-phase="burst"]) .cel-pip { transform: scale(.8); }

/* groene schuine band met snelheidsstrepen achter Pip */
.cel-banner {
  position: absolute; left: 50%; top: 50%; width: 170vw; max-width: 1400px; height: 190px; overflow: hidden;
  background: var(--green); transform: translate(-50%, -50%) rotate(-9deg);
  clip-path: inset(0 100% 0 0); animation: celBannerIn .38s cubic-bezier(.3, .8, .3, 1) .05s forwards;
  transition: clip-path .4s cubic-bezier(.6, 0, .4, 1), opacity .4s;
}
.celebrate:not([data-phase="burst"]) .cel-banner { animation: none; clip-path: inset(0 0 0 100%); opacity: .6; }
.cel-banner i { position: absolute; left: 0; height: 22px; border-radius: 99px; background: var(--green-l); opacity: .55; animation: celStreak .7s linear infinite; }
.cel-banner i:nth-child(1) { top: 14%; width: 46%; animation-delay: -.1s; }
.cel-banner i:nth-child(2) { top: 34%; width: 28%; height: 14px; animation-delay: -.45s; animation-duration: .55s; }
.cel-banner i:nth-child(3) { top: 52%; width: 60%; animation-delay: -.3s; }
.cel-banner i:nth-child(4) { top: 72%; width: 34%; height: 14px; animation-delay: -.6s; animation-duration: .6s; }
.cel-banner i:nth-child(5) { top: 86%; width: 50%; height: 10px; animation-delay: -.2s; }

/* glinsters rond Pip na het landen */
.cel-sparks { position: absolute; inset: -10px; pointer-events: none; }
.spark { position: absolute; width: 18px; height: 18px; background: var(--green); opacity: 0; transform: scale(0);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.celebrate[data-phase="settle"] .spark { animation: celSpark 1.1s ease-out 2 both; }
.spark.s0 { left: 6%; top: 30%; } .spark.s1 { left: 84%; top: 18%; width: 14px; height: 14px; animation-delay: .15s !important; }
.spark.s2 { left: 88%; top: 64%; animation-delay: .3s !important; } .spark.s3 { left: 14%; top: 76%; width: 12px; height: 12px; animation-delay: .45s !important; }
.spark.s4 { left: 46%; top: -4%; width: 12px; height: 12px; background: var(--yellow); animation-delay: .2s !important; }
.spark.s5 { left: 0; top: 56%; width: 10px; height: 10px; background: var(--yellow); animation-delay: .6s !important; }
.spark.s6 { left: 76%; top: 90%; width: 10px; height: 10px; animation-delay: .5s !important; }

.cel-title { position: relative; margin: 0; font-size: 38px; font-weight: 900; line-height: 1.1; color: var(--yellow-d); letter-spacing: .01em; }
.cel-title .w { white-space: nowrap; display: inline-block; }
.cel-title .l { display: inline-block; animation: celLetter .5s var(--ease-out) both; }
.cel-title .dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: celSpark 1.4s ease-out .7s infinite both; }
.cel-title .d1 { left: -14px; top: 60%; } .cel-title .d2 { right: -16px; top: 6%; animation-delay: 1s; } .cel-title .d3 { right: 6%; bottom: -10px; width: 6px; height: 6px; animation-delay: 1.2s; }

.cel-sub { margin: 0; max-width: 360px; color: var(--muted); font-size: 18px; line-height: 1.4; transition: opacity .4s .25s, transform .5s var(--ease-out) .25s; }
.celebrate[data-phase="burst"] .cel-sub { opacity: 0; transform: translateY(10px); }

.cel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 6px; }
.cel-card { --c: var(--green); --cd: var(--green-d); --ink-c: var(--green-ink);
  position: relative; border: 3px solid var(--c); border-radius: 18px; background: var(--c); opacity: 0; transform: scale(.4); }
.cel-card.in { opacity: 1; transform: none; animation: celCard .5s var(--ease-out); }
.cel-card .t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #fff; padding: 4px 4px 5px; font-weight: 900; }
.cel-card .v { display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border-radius: 14px; padding: 12px 4px; font-size: 24px; font-weight: 900; color: var(--ink-c); }
.cel-card .v .ico { font-size: 20px; line-height: 1; }
.cel-card .v b { font-variant-numeric: tabular-nums; }
.cel-card.done .v b { animation: pop .35s var(--ease-out); display: inline-block; }
.cel-card.g { --c: var(--green); --ink-c: var(--green-ink); }
.cel-card.o { --c: var(--orange); --ink-c: var(--orange-ink); }
.cel-card.b { --c: var(--blue); --ink-c: var(--blue-ink); }
.cel-card .burst { position: absolute; inset: 0; pointer-events: none; }
.cel-card .burst i { position: absolute; width: 10px; height: 10px; background: var(--c); opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.cel-card.done .burst i { animation: celBurst .6s ease-out both; }
.cel-card .burst i:nth-child(1) { left: -6px; top: -6px; --bx: -14px; --by: -14px; }
.cel-card .burst i:nth-child(2) { right: -6px; top: -6px; --bx: 14px; --by: -14px; }
.cel-card .burst i:nth-child(3) { right: -6px; bottom: -6px; --bx: 14px; --by: 14px; }
.cel-card .burst i:nth-child(4) { left: -6px; bottom: -6px; --bx: -14px; --by: 14px; }

.cel-foot { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; transition: opacity .35s, transform .45s var(--ease-out); }
.celebrate:not([data-phase="final"]) .cel-foot { opacity: 0; transform: translateY(24px); pointer-events: none; }
.celebrate[data-phase="final"] .cel-card { opacity: 1; transform: none; }

@keyframes celBannerIn { to { clip-path: inset(0 0 0 0); } }
@keyframes celStreak { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes celPipIn { 0% { transform: scale(.2) rotate(-18deg); opacity: 0; } 55% { transform: scale(1.12) rotate(5deg); opacity: 1; } 80% { transform: scale(.96) rotate(-2deg); } 100% { transform: none; } }
@keyframes celLetter { 0% { opacity: 0; transform: translateY(18px) scale(.4); } 70% { opacity: 1; transform: translateY(-4px) scale(1.15); } 100% { transform: none; } }
@keyframes celSpark { 0% { opacity: 0; transform: scale(0) rotate(0); } 35% { opacity: 1; transform: scale(1.15) rotate(30deg); } 100% { opacity: 0; transform: scale(.3) rotate(80deg); } }
@keyframes celCard { 0% { transform: scale(.4); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes celBurst { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.1); } }

/* ---------- Pip animaties ---------- */
.pip { display: block; overflow: visible; }
.pip .pip-bob { transform-origin: 100px 186px; animation: bob 2.6s ease-in-out infinite; }
.pip .pip-eyes { transform-origin: 100px 68px; animation: blink 5s infinite; }
.pip--sleep .pip-eyes { animation: none; }
.pip--sleep .pip-bob { animation: breathe 3.6s ease-in-out infinite; }
.pip--cheer .pip-bob, .pip--happy .pip-bob { animation: hop .7s var(--ease-out) 2; }
.pip--oops .pip-bob { animation: wobble .6s ease-in-out 1; }
.pip .pip-sparkles path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.2s ease-in-out infinite; }
.pip .pip-sparkles path:nth-child(2) { animation-delay: .3s; } .pip .pip-sparkles path:nth-child(3) { animation-delay: .6s; }
.pip .pip-zzz text { animation: zzz 2.4s ease-in-out infinite; }
.pip .pip-zzz text:nth-child(2) { animation-delay: .4s; } .pip .pip-zzz text:nth-child(3) { animation-delay: .8s; }
@keyframes bob { 0%,100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(1.01, .99); } }
@keyframes breathe { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes hop { 0% { transform: translateY(0) scale(1.05, .92); } 40% { transform: translateY(-22px) scale(.95, 1.06); } 70% { transform: translateY(0) scale(1.06, .93); } 100% { transform: none; } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes twinkle { 0%,100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -10px); } }

@media (min-width: 700px) {
  .instruction { font-size: 28px; }
  .prompt { grid-template-columns: 130px 1fr; }
  .prompt .bubble { font-size: 24px; }
  .opt { font-size: 22px; min-height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- rekenen: vakken op het beginscherm ---------- */
.domain.teal { --c: var(--teal); --cl: var(--teal-l); }
.domain.yellow { --c: var(--yellow); --cl: var(--yellow-l); }
.domain.indigo { --c: var(--indigo); --cl: var(--indigo-l); }
.domain.coral { --c: var(--coral); --cl: var(--coral-l); }
.start-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.vak-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.vak-head .section-title { margin: 0; }
.vak-btn {
  --c: var(--blue); --cd: var(--blue-d);
  padding: 8px 14px; border-radius: 12px; font-weight: 900; font-size: 14px; color: #fff; background: var(--c); box-shadow: 0 3px 0 var(--cd);
  transition: transform .08s, box-shadow .08s; white-space: nowrap;
}
.vak-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--cd); }
.vak-btn.teal { --c: var(--teal); --cd: var(--teal-d); }
.pick-vak { grid-column: 1 / -1; font-weight: 900; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }

/* ---------- rekenen: plaatjes ---------- */
.vis { margin: 0; display: flex; justify-content: center; padding: 12px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.vis-svg { width: 100%; max-width: 420px; height: auto; max-height: 34vh; overflow: visible; }
.vis-clock .vis-svg, .vis-shape .vis-svg, .vis-angle .vis-svg, .vis-compass .vis-svg, .vis-thermo .vis-svg { max-width: 220px; }
.vis-fracshape .vis-svg, .vis-hundred .vis-svg { max-width: 240px; }
.vis-row { display: flex; gap: 14px; align-items: center; justify-content: center; width: 100%; }
.vis-row .vis-svg { max-width: 48%; }
.v-text { fill: var(--ink-2); font-family: var(--font); }
.v-text-in { fill: #fff; font-family: var(--font); paint-order: stroke; stroke: rgba(0,0,0,.18); stroke-width: 2px; }
.v-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.v-grid { stroke: var(--line); stroke-width: 1; }
.v-axis { stroke: var(--ink-2); stroke-width: 2; }
.v-bar { fill: var(--teal); }
.v-pline { fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linejoin: round; }
.v-dot { fill: #fff; stroke: var(--coral); stroke-width: 3; }
.v-slice { stroke: #fff; stroke-width: 2; }
.v-face { fill: #fff; stroke: var(--ink-2); stroke-width: 3; }
.v-tick { stroke: var(--line-d); stroke-width: 1.5; }
.v-tick-big { stroke: var(--ink-2); stroke-width: 2.5; }
.v-hand-h { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.v-hand-m { stroke: var(--blue); stroke-width: 4.5; stroke-linecap: round; }
.v-pin { fill: var(--ink); }
.v-on { fill: var(--yellow); stroke: var(--yellow-d); stroke-width: 2; }
.v-off { fill: #fff; stroke: var(--line-d); stroke-width: 2; }
.v-shape { fill: var(--teal-l); stroke: var(--teal-ink); stroke-width: 3; stroke-linejoin: round; }
.v-shape.top { fill: #E9FBF8; }
.v-shape.side { fill: #B9EEE6; }
.v-mark, .v-arc { fill: none; stroke: var(--coral); stroke-width: 2.5; }
.v-ray { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
.v-cell { fill: #fff; stroke: var(--line-d); stroke-width: 1.5; }
.v-cube-top { fill: #FFE780; stroke: var(--ink-2); stroke-width: 1.2; }
.v-cube-left { fill: var(--yellow); stroke: var(--ink-2); stroke-width: 1.2; }
.v-cube-right { fill: var(--yellow-d); stroke: var(--ink-2); stroke-width: 1.2; }
.v-arrow { fill: var(--coral); }
.v-arrow.alt { fill: var(--blue); }
.v-thermo { fill: var(--red); }
.v-stick { fill: none; stroke: #B5651D; stroke-width: 4; stroke-linecap: round; }
.v-needle { fill: var(--red); }
.v-needle2 { fill: var(--line-d); }
.v-money { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.v-coin {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 2px 0 rgba(0,0,0,.1); border: 3px solid rgba(0,0,0,.08);
}
.v-coin small { font-size: 11px; display: block; }
.v-coin.gold { background: radial-gradient(circle at 35% 30%, #FFF1B0, #E9C14A); color: #6B5410; }
.v-coin.brass { background: radial-gradient(circle at 35% 30%, #FFF3C9, #D9B85C); color: #6B5410; width: 52px; height: 52px; }
.v-coin.copper { background: radial-gradient(circle at 35% 30%, #F6C7A5, #C9814E); color: #5A2E10; width: 46px; height: 46px; }
.v-note { padding: 14px 18px; border-radius: 10px; font-weight: 900; font-size: 18px; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.v-note.n5 { background: #9AA5B1; } .v-note.n10 { background: #E26D5A; } .v-note.n20 { background: #4A90D9; } .v-note.n50 { background: #F2A33A; }
.v-table-wrap { width: 100%; overflow-x: auto; }
.v-table { border-collapse: separate; border-spacing: 0; margin: 0 auto; font-size: 18px; }
.v-table th, .v-table td { padding: 10px 14px; border: 2px solid var(--line); text-align: center; min-width: 54px; }
.v-table th { background: var(--bg-2); font-weight: 900; }
.v-table td.v-q { background: var(--yellow-l); color: var(--orange-ink); font-weight: 900; font-size: 22px; }

/* ---------- breuken ---------- */
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 2px; font-size: .9em; }
.frac .fn { border-bottom: 2px solid currentColor; padding: 0 3px; }
.frac .fd { padding: 0 3px; }
.frac-w { margin-right: 2px; }
.opt .frac { font-size: 1em; }

/* ---------- cijfertoetsenbord ---------- */
.kp-display {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 76px; padding: 10px 16px;
  border: 2px solid var(--blue); border-bottom-width: 5px; border-radius: 18px; background: #fff; font-size: 34px; font-weight: 900;
}
.kp-display.good { border-color: var(--green); background: var(--green-l); }
.kp-display.bad { border-color: var(--orange); background: var(--orange-l); }
.kp-val { min-width: 1ch; letter-spacing: .02em; }
.kp-val:empty::after { content: "?"; color: var(--line-d); }
.kp-pre, .kp-unit { color: var(--muted); font-size: 24px; }
.kp-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: -8px; }
.kp-frac { display: inline-flex; align-items: center; gap: 8px; }
.frac.big { font-size: 1em; gap: 4px; }
.kp-box { min-width: 52px; height: 46px; border-radius: 10px; border: 2px dashed var(--line-d); font-size: 28px; font-weight: 900; padding: 0 6px; background: var(--bg-2); }
.kp-box.on { border: 2px solid var(--blue); background: var(--blue-l); }
.frac.big .kp-box.fn, .frac.big .kp-box.fd { border-bottom: 2px dashed var(--line-d); padding: 0 6px; }
.frac.big .kp-box.on { border: 2px solid var(--blue); }
.kp-bar { display: block; align-self: stretch; height: 4px; border-radius: 2px; background: var(--ink-2); margin: 3px 0; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad.has-neg { grid-template-columns: repeat(3, 1fr); }
.key {
  min-height: 58px; border-radius: 16px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); background: #fff;
  font-size: 26px; font-weight: 900; color: var(--ink-2); transition: transform .06s, box-shadow .06s;
}
.key:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.key.alt { background: var(--bg-2); color: var(--blue-ink); }
.keypad.done { opacity: .45; pointer-events: none; }
@media (min-height: 860px) { .key { min-height: 66px; } }

/* ---------- op volgorde zetten ---------- */
.order-slots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; padding: 12px; border: 2px dashed var(--line-d); border-radius: 18px; }
.order-slots .lt { color: var(--muted); font-weight: 900; font-size: 18px; }
.slot { min-width: 58px; min-height: 50px; border-radius: 12px; background: var(--bg-2); border: 2px solid var(--line); font-size: 18px; font-weight: 900; color: var(--ink); padding: 4px 6px; }
.slot.filled { background: var(--blue-l); border-color: var(--blue); color: var(--blue-ink); animation: pop .3s var(--ease-out); }
.order-slots.good { border-color: var(--green); background: var(--green-l); }
.order-slots.bad { border-color: var(--orange); background: var(--orange-l); }
.order-pool { justify-content: center; }
.order-pool .tok { font-size: 22px; min-width: 70px; }
.order-pool .tok.used { opacity: .25; transform: scale(.92); pointer-events: none; }

/* =====================================================================
   Groep 3-4 ("jong"): groot, rond, weinig tekst. Pip praat; plaatjes lichten op als hij ze noemt.
   ===================================================================== */
.emoji, .k-emoji .jopt .ot, .k-claps .jopt .ot, .v-pic, .o-it, .v-pat, .v-scene span, .pc-it, .pc-lab, .sticker, .cel-sticker .st, .jans-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font); }

/* Pip praat: hij wipt mee en het luidsprekertje pulseert */
.pip.talking .pip-bob { animation: talk .32s ease-in-out infinite alternate; }
@keyframes talk { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-5px) scale(1.03, .97); } }
.jpip { position: relative; padding: 0; border-radius: 50%; }
.jpip .jsay, .jtap { position: absolute; right: -4px; bottom: 2px; font-size: 22px; background: #fff; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; box-shadow: 0 2px 0 var(--line); border: 2px solid var(--line); }
.jtap { position: static; display: inline-grid; width: 30px; height: 30px; font-size: 16px; margin-left: 4px; vertical-align: middle; }
.jpip:has(.pip.talking) .jsay { animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.18); } }
.jpip-big { padding: 0; border-radius: 50%; }
.jprompt { grid-template-columns: 84px 1fr; }
.jprompt .bubble { font-size: 22px; font-weight: 900; }
.jnotts { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 6px; }

.jbody { gap: 14px; }
.jstage { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.jbig { text-align: center; font-weight: 900; color: var(--ink); letter-spacing: .02em; line-height: 1.15; padding: 10px 12px; border-radius: 22px; background: var(--bg-2); border: 2px solid var(--line); }
.jbig.letter { font-size: 110px; line-height: 1; padding: 6px; }
.jbig.word { font-size: 64px; letter-spacing: .05em; }
.jbig.zin { font-size: 30px; letter-spacing: .01em; }
.jbig .gap { min-width: 1.6em; }
.jpassage { font-size: 24px; line-height: 1.6; color: var(--ink); max-height: none; }
.glyph { font-size: 1.4em; }
.klankblok { display: inline-block; min-width: 1.6em; text-align: center; padding: 2px 6px; margin: 0 2px; border: 2px solid currentColor; border-radius: 8px; font-weight: 900; }
.klankblok.on { background: var(--yellow-l); color: var(--orange-ink); }

/* keuzes: grote tegels */
.joptions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.joptions.n2 { grid-template-columns: 1fr 1fr; }
.joptions.n4 { grid-template-columns: 1fr 1fr; }
.joptions.k-word.n3, .joptions.k-word.n4 { grid-template-columns: 1fr; }
.jopt { min-height: 96px; display: grid; place-items: center; padding: 8px; border-radius: 22px; transition: transform .08s, box-shadow .08s, border-color .12s, background .12s, scale .2s; }
.k-emoji .jopt .ot { font-size: 64px; line-height: 1; }
.k-claps .jopt .ot { font-size: 34px; letter-spacing: -.05em; }
.k-letter .jopt .ot { font-size: 64px; font-weight: 900; line-height: 1; }
.k-word .jopt .ot { font-size: 34px; font-weight: 900; letter-spacing: .04em; }
.k-num .jopt .ot { font-size: 46px; font-weight: 900; }
.k-visual .jopt { padding: 10px; min-height: 120px; }
.jopt.speaking { border-color: var(--yellow); background: var(--yellow-l); box-shadow: 0 4px 0 var(--yellow-d); scale: 1.05; }
.opt-vis { display: flex; justify-content: center; align-items: center; width: 100%; pointer-events: none; }
.opt-vis .vis-svg { max-height: 150px; max-width: 100%; }
.opt-vis .v-money { gap: 4px; }
.opt-vis .v-coin { transform: scale(.85); }

/* flitsen */
.jflash { min-height: 120px; display: grid; place-items: center; border-radius: 22px; border: 3px dashed var(--line-d); background: var(--bg-2); }
.jflash span { font-size: 64px; font-weight: 900; letter-spacing: .05em; opacity: 0; }
.jflash.on span { opacity: 1; animation: flashIn .2s ease-out; }
.jflash.gone span { opacity: 0; transition: opacity .15s; }
.jflash.gone::after { content: "❓"; font-size: 48px; position: absolute; }
.jflash { position: relative; }
@keyframes flashIn { from { transform: scale(.7); } to { transform: none; } }
.jagain { align-self: center; }

/* woorden bouwen */
.build { display: flex; flex-direction: column; gap: 22px; align-items: center; margin-top: 4px; }
.bslots { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.bgroup { display: flex; gap: 8px; }
.bslot { width: 66px; height: 78px; border-radius: 16px; border: 3px dashed var(--line-d); background: #fff; font-size: 40px; font-weight: 900; color: var(--ink); }
.bslot.next { border-color: var(--blue); background: var(--blue-l); }
.bslot.filled { border-style: solid; border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); animation: pop .3s var(--ease-out); }
.bslots.good .bslot { border-color: var(--green); background: var(--green-l); box-shadow: 0 4px 0 var(--green); color: var(--green-ink); }
.bslots.bad .bslot { border-color: var(--red); background: var(--red-l); box-shadow: 0 4px 0 var(--red); animation: shake .4s; }
.btiles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btile { min-width: 66px; height: 70px; padding: 0 12px; border-radius: 16px; border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); background: #fff; font-size: 38px; font-weight: 900; color: var(--ink-2); transition: transform .08s, box-shadow .08s, opacity .15s; }
.btile:active { transform: translateY(5px); box-shadow: 0 0 0 var(--line); }
.btile.used { opacity: .2; pointer-events: none; }

.jcheck { font-size: 40px; }
.key.ghost { visibility: hidden; }
.mode-tag.jtag { font-size: 20px; padding: 3px 8px; }

/* feedback */
.jsheet h2 { font-size: 30px; }
.janswer { font-size: 26px; font-weight: 900; color: var(--ink); }
.jans-emoji { font-size: 56px; line-height: 1; vertical-align: middle; }
.jnext { font-size: 34px; position: relative; overflow: hidden; }
.jnext.auto::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.55); animation: autoBar 3.2s linear forwards; }
@keyframes autoBar { from { width: 0; } to { width: 100%; } }

/* home */
.jhero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-top: 4px; }
.jhero .bubble { font-size: 21px; font-weight: 900; cursor: pointer; }
.jstart { font-size: 26px; }
.jstick { color: var(--purple-d); }
.jring .ring-label small { font-size: 16px; }
.jdomains { grid-template-columns: 1fr 1fr; }
.jdomain { align-items: center; text-align: center; padding: 16px 10px; }
.jdomain .em { width: 64px; height: 64px; font-size: 38px; border-radius: 18px; }
.jdomain .nm { font-size: 19px; }
.jstars { display: flex; gap: 2px; font-size: 18px; color: var(--line-d); }
.jstars i { font-style: normal; }
.jstars i.on { color: var(--yellow); text-shadow: 0 2px 0 var(--yellow-d); }
.onb-demo { font-size: 44px; text-align: center; letter-spacing: .1em; }

/* stickerboek */
.album { display: flex; flex-direction: column; gap: 12px; }
.album-title { font-size: 26px; font-weight: 900; margin: 0; }
.album-count { text-align: center; font-size: 20px; color: var(--muted); }
.album-count b { font-size: 34px; color: var(--purple-d); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.sticker { aspect-ratio: 1; border-radius: 20px; border: 2px dashed var(--line-d); background: var(--bg-2); font-size: 28px; font-weight: 900; color: var(--line-d); display: grid; place-items: center; }
.sticker.on { border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, #fff, var(--yellow-l)); font-size: 42px; box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--yellow) inset; color: inherit; }
.sticker.wiggle { animation: wiggle .5s; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }
.album-hint { text-align: center; color: var(--muted); }
.cel-sticker { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: scale(.3) rotate(-20deg); transition: opacity .3s, transform .6s var(--ease-out); }
.cel-sticker.in { opacity: 1; transform: none; }
.cel-sticker .st { font-size: 96px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(0,0,0,.08)); }
.cel-sticker .lab { font-weight: 900; color: var(--purple-d); font-size: 20px; }

/* ---------- plaatjes voor groep 3-4 ---------- */
.vis.small { padding: 6px; }
.v-pics { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.v-pic { font-size: 72px; line-height: 1; cursor: pointer; }
.v-pics.one .v-pic { font-size: 96px; }
.v-pics.big .v-pic { font-size: 110px; }
.v-pics.row .v-pic { font-size: 58px; }
.v-pic-sep { font-size: 36px; color: var(--line-d); }
.v-hands { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); padding: 4px 8px 0; }
.vis-pics { flex-direction: column; }
.v-objects { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.o-group { display: inline-flex; flex-direction: column; gap: 6px; align-items: center; }
.o-group.boxed { border: 2px dashed var(--line-d); border-radius: 16px; padding: 6px 8px; }
.o-row { display: flex; gap: 4px; }
.o-group.pairs .o-row { margin-right: 6px; }
.o-it { font-size: 40px; line-height: 1.05; display: inline-block; position: relative; }
.v-objects.small .o-it { font-size: 26px; }
.v-objects.scatter .o-it { font-size: 48px; margin: 4px; }
.o-it.x { opacity: .45; }
.o-it.x::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 5px; background: var(--red); border-radius: 3px; transform: rotate(-35deg); }
.o-op { font-size: 40px; font-weight: 900; color: var(--muted); }
.o-op.split { color: var(--line-d); }
.o-people { text-align: center; font-size: 40px; letter-spacing: .2em; margin-top: 4px; }
.vis-objects { flex-direction: column; align-items: center; }
.v-dice { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.v-dice .vis-svg { width: 84px; }
.v-dice.grow .vis-svg { width: 64px; }
.v-die { fill: #fff; stroke: var(--ink-2); stroke-width: 3; }
.v-pip { fill: var(--ink); }
.v-die-wrap.q { width: 64px; height: 64px; border: 3px dashed var(--line-d); border-radius: 14px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: var(--muted); }
.v-dots { font-size: 18px; letter-spacing: 2px; max-width: 90px; display: inline-block; text-align: center; }
.v-wire { stroke: var(--line-d); stroke-width: 3; }
.v-bead-r { fill: var(--red); stroke: var(--red-d); stroke-width: 2; }
.v-bead-w { fill: #fff; stroke: var(--line-d); stroke-width: 2; }
.v-bead-ghost { fill: none; stroke: var(--line-d); stroke-width: 2; stroke-dasharray: 4 4; }
.v-cube { fill: var(--teal-l); stroke: var(--teal-ink); stroke-width: 1.5; }
.v-cube.one { fill: var(--yellow-l); stroke: var(--yellow-d); }
.v-cube.dim { fill: #fff; stroke: var(--line); }
.v-split { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.v-split.top { fill: var(--blue-l); }
.v-split.q { stroke-dasharray: 6 5; stroke: var(--orange); fill: var(--orange-l); }
.v-branch { stroke: var(--blue); stroke-width: 4; fill: none; stroke-linecap: round; }
.vis-split { flex-direction: column; align-items: center; }
.vis-split .vis-svg { max-width: 300px; }
.v-split-pics { display: flex; gap: 18px; justify-content: center; font-size: 34px; }
.v-split-pics .hid { opacity: .8; }
.v-pattern { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.v-pat { font-size: 44px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; }
.v-pat.q { border: 3px dashed var(--orange); border-radius: 14px; font-size: 32px; font-weight: 900; color: var(--orange-ink); background: var(--orange-l); }
.v-scene { position: relative; width: 150px; height: 130px; margin: 0 auto; }
.v-scene span { position: absolute; line-height: 1; }
.v-scene .ref { font-size: 72px; left: 38px; top: 40px; }
.v-scene .obj { font-size: 34px; }
.v-scene.pos-op .obj { left: 56px; top: 8px; }
.v-scene.pos-onder .obj { left: 56px; top: 96px; }
.v-scene.pos-onder .ref { top: 22px; }
.v-scene.pos-naast .obj { left: 112px; top: 74px; }
.v-pencil { stroke: rgba(0,0,0,.25); stroke-width: 1.5; }
.v-pencil-tip { fill: #F5D7A8; stroke: rgba(0,0,0,.25); stroke-width: 1.5; }
.v-lead { fill: var(--ink-2); }
.v-block { stroke: rgba(0,0,0,.2); stroke-width: 1.5; }
.v-ruler { fill: #FFF7D6; stroke: var(--yellow-d); stroke-width: 2; }
.v-guide { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 3; }
.v-mirror { stroke: var(--blue); stroke-width: 5; stroke-dasharray: 8 6; }
.v-digital { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 64px; font-weight: 800; letter-spacing: .06em; color: #7CFF6B; background: #1E2A1A; border-radius: 16px; padding: 8px 24px; box-shadow: inset 0 0 0 4px #33452C; }
.v-digital .colon { animation: blinkColon 1s steps(1) infinite; }
@keyframes blinkColon { 50% { opacity: .2; } }
.v-picchart { display: grid; gap: 8px; width: 100%; }
.pc-row { display: flex; align-items: center; gap: 10px; }
.pc-lab { font-size: 34px; width: 46px; text-align: center; border-right: 3px solid var(--line-d); padding-right: 6px; }
.pc-bar { display: flex; gap: 4px; flex-wrap: wrap; }
.pc-it { font-size: 28px; width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 8px; }
.vis-money .v-money { justify-content: center; }
.opt-vis.vis-money .v-money, .opt-vis .v-money { justify-content: center; flex-wrap: wrap; }

@media (max-width: 380px) {
  .k-emoji .jopt .ot, .k-letter .jopt .ot { font-size: 52px; }
  .jbig.word { font-size: 52px; }
  .bslot { width: 54px; height: 66px; font-size: 32px; }
  .btile { min-width: 56px; height: 60px; font-size: 32px; }
}
.joptions[hidden], .jagain[hidden] { display: none; }
body.jong .tip-card .ex { font-size: 26px; text-align: center; padding: 14px; }
body.jong .tip-card h2 { font-size: 26px; }
.joptions.k-word.n4 { grid-template-columns: 1fr 1fr; }
.joptions.k-word.n4 .jopt .ot, .joptions.k-word.n3 .jopt .ot { font-size: 26px; }
.jlesson .vis-clock .vis-svg { max-width: 190px; }
.jlesson .jopt { min-height: 84px; }
/* ronde 2: uit de visuele controle */
.v-tag { font-size: 26px; font-weight: 900; background: var(--yellow); color: var(--ink); padding: 4px 12px; border-radius: 12px; box-shadow: 0 3px 0 var(--yellow-d); transform: rotate(-4deg); }
.v-dots { display: flex; flex-wrap: wrap; gap: 4px; width: 84px; min-height: 64px; align-content: center; justify-content: center; padding: 6px; border: 3px solid var(--ink-2); border-radius: 14px; background: #fff; }
.v-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.joptions.vk-stick { grid-template-columns: 1fr !important; }
.joptions.vk-stick .jopt { min-height: 64px; justify-items: start; }
.opt-vis.vis-stick { justify-content: flex-start; }
.opt-vis.vis-stick .vis-svg { max-width: 300px; }
.v-scene { width: 130px; height: 132px; }
.v-scene .ref { font-size: 60px; left: 35px; top: 38px; }
.v-scene .obj { font-size: 30px; }
.v-scene.pos-op .obj { left: 50px; top: 6px; }
.v-scene.pos-onder .ref { top: 24px; }
.v-scene.pos-onder .obj { left: 50px; top: 96px; }
.v-scene.pos-naast .obj { left: 98px; top: 64px; }
.pc-bar { flex-wrap: nowrap; }
.pc-it { font-size: 22px; width: 28px; height: 28px; }
.jlesson .vis-grid .vis-svg { max-width: 240px; }
.jlesson .vis-mab .vis-svg { max-height: 200px; }
/* plaatsing met flexbox: werkt voor elke emoji-breedte */
.v-scene { position: static; width: auto; height: 132px; display: flex; align-items: center; justify-content: center; }
.v-scene span { position: static; }
.v-scene .ref, .v-scene.pos-onder .ref { font-size: 60px; top: auto; left: auto; }
.v-scene .obj, .v-scene.pos-op .obj, .v-scene.pos-onder .obj, .v-scene.pos-naast .obj { font-size: 30px; top: auto; left: auto; }
.v-scene.pos-op { flex-direction: column-reverse; justify-content: flex-end; }
.v-scene.pos-op .obj { margin-bottom: -10px; z-index: 1; }
.v-scene.pos-onder { flex-direction: column; justify-content: flex-start; }
.v-scene.pos-onder .obj { margin-top: 4px; }
.v-scene.pos-naast { flex-direction: row; align-items: flex-end; padding-bottom: 30px; gap: 2px; }

/* =====================================================================
   Pip: feestposes
   ===================================================================== */
.pip--dance .pip-bob { animation: pipDance .5s ease-in-out infinite alternate; }
.pip--flex .pip-bob { animation: pipFlex .45s ease-in-out infinite alternate; }
.pip--jump .pip-bob { animation: pipJump .9s var(--ease-out) infinite; }
.pip--cool .pip-bob { animation: pipNod 1.3s ease-in-out infinite; }
.pip--silly .pip-bob { animation: pipSilly .34s ease-in-out infinite alternate; }
.pip--love .pip-bob { animation: pipLove .55s ease-in-out infinite alternate; }
.pip--butt .pip-bob { animation: pipTwerk .2s ease-in-out infinite alternate; }
.pip--butt .pip-cheeks { transform-box: fill-box; transform-origin: 50% 0; animation: pipCheeks .2s ease-in-out infinite alternate; }
.pip .pip-notes text, .pip .pip-hearts path { transform-box: fill-box; transform-origin: center; animation: pipFloat 1.4s ease-in-out infinite; }
.pip .pip-notes text:nth-child(2), .pip .pip-hearts path:nth-child(2) { animation-delay: .35s; }
.pip .pip-notes text:nth-child(3), .pip .pip-hearts path:nth-child(3) { animation-delay: .7s; }
.pip .pip-wiggle path { animation: pipLines .4s ease-in-out infinite alternate; }
.pip .pip-wiggle path:nth-child(even) { animation-delay: .2s; }
@keyframes pipDance { from { transform: rotate(-9deg) translateY(0); } to { transform: rotate(9deg) translateY(-8px); } }
@keyframes pipFlex { from { transform: scale(1); } to { transform: scale(1.07, .96); } }
@keyframes pipJump { 0%, 100% { transform: translateY(0) scale(1.08, .9); } 40% { transform: translateY(-34px) scale(.95, 1.06); } 70% { transform: translateY(-6px); } }
@keyframes pipNod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg) translateY(-3px); } 60% { transform: rotate(2deg); } }
@keyframes pipSilly { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes pipLove { from { transform: scale(1); } to { transform: scale(1.07) translateY(-4px); } }
@keyframes pipTwerk { from { transform: rotate(-7deg) translateX(-4px); } to { transform: rotate(7deg) translateX(4px); } }
@keyframes pipCheeks { from { transform: translateY(0) scaleY(1); } to { transform: translateY(2px) scaleY(1.04); } }
@keyframes pipFloat { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-8px) rotate(8deg); opacity: .6; } }
@keyframes pipLines { from { opacity: .2; } to { opacity: 1; } }
.hero-pip, .cel-pip { padding: 0; border-radius: 50%; }
.top-ico { font-size: 22px; color: var(--ink); width: 40px; }
.jpip.nudge { animation: nudge .5s ease-in-out; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: rotate(-8deg) scale(1.08); } 75% { transform: rotate(8deg) scale(1.08); } }

/* ring vol: ring knalt even */
.ring.burst { animation: ringBurst .9s var(--ease-out); }
.ring.burst .fill { stroke: var(--yellow); filter: drop-shadow(0 0 6px var(--yellow)); }
@keyframes ringBurst { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } 100% { transform: none; } }

/* =====================================================================
   Eerst luisteren / niet doorklikken / rustig aan
   ===================================================================== */
.jlocked .joptions, .jlocked .btiles, .jlocked #keypad, .jlocked .order-pool, .jlocked .speak-box, .jlocked .trace-wrap, .jlocked .jcheck { opacity: .5; filter: saturate(.6); transition: opacity .3s; }
.jlocked .jprompt .jsay { animation: pulse .6s ease-in-out infinite alternate; }
.junlocked .joptions, .junlocked .btiles, .junlocked .speak-box, .junlocked .trace-wrap { animation: unlockIn .35s var(--ease-out); }
@keyframes unlockIn { from { opacity: .5; transform: scale(.97); } to { opacity: 1; transform: none; } }
.jnext.wait { --c: #FFB547; --cd: var(--orange-d); position: relative; overflow: hidden; }
.jnext.wait::before { content: "👂"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; animation: pulse .6s ease-in-out infinite alternate; }
.jnext.wait::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 40%; background: rgba(255,255,255,.6); animation: listenBar 1.2s ease-in-out infinite; }
.jnext.ready { animation: pop .35s var(--ease-out); }
.btn.nope { animation: shake .4s; }
@keyframes listenBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.sheet .btn.wait { position: relative; overflow: hidden; }
.sheet .btn.wait::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(0,0,0,.08); transform-origin: left; animation: waitFill var(--wait, 3s) linear forwards; }
@keyframes waitFill { from { transform: scaleX(1); } to { transform: scaleX(0); } }
#check.calm { position: relative; overflow: hidden; }
#check.calm::after { content: "even lezen…"; position: absolute; inset: 0; display: grid; place-items: center; background: var(--line); color: #999; font-size: 15px; letter-spacing: .04em; }
.calm { flex: 1; justify-content: center; gap: 14px; text-align: center; padding: 10px 6px; }
.calm-pip { position: relative; }
.calm-ear { position: absolute; right: -6px; top: 40px; font-size: 44px; animation: pulse .7s ease-in-out infinite alternate; }
.calm-text { font-size: 20px; line-height: 1.4; margin: 0; max-width: 420px; }
.calm-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.calm-steps span { background: var(--blue-l); color: var(--blue-ink); border-radius: 999px; padding: 8px 14px; font-weight: 900; }
.calm .btn { max-width: 380px; }

/* =====================================================================
   Kladblaadje
   ===================================================================== */
.klad-btn { font-size: 22px; color: var(--ink); position: relative; }
.klad-btn.has-ink::after { content: ""; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.klad { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #FFFDF5; transform: translateY(100%); transition: transform .28s var(--ease-out); padding-top: var(--safe-t); }
.klad.show { transform: none; }
.klad-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 2px solid var(--line); background: #fff; flex-wrap: wrap; }
.klad-title { font-size: 18px; }
.klad-tool { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; border: 2px solid var(--line); background: #fff; }
.klad-tool i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.klad-tool.on { border-color: var(--blue); background: var(--blue-l); }
.klad-done { min-height: 42px; padding: 0 16px; font-size: 15px; }
.klad-peek { max-height: 30vh; overflow: auto; padding: 8px 14px; border-bottom: 2px dashed var(--line-d); background: #fff; pointer-events: none; font-size: 15px; }
.klad-peek .lesson-body { padding: 0; gap: 8px; animation: none; }
.klad-peek .instruction { font-size: 18px; margin: 0; }
.klad-peek .options, .klad-peek .joptions, .klad-peek #keypad, .klad-peek .keypad, .klad-peek .kp-hint { display: none; }
.klad-peek .bubble { font-size: 16px; padding: 8px 12px; }
.klad-peek .pip { width: 48px; height: 48px; }
.klad-paper { flex: 1; position: relative; background-color: #FFFDF5;
  background-image: linear-gradient(#E3ECF7 1px, transparent 1px), linear-gradient(90deg, #E3ECF7 1px, transparent 1px); background-size: 24px 24px; }
.klad-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

/* =====================================================================
   Uitleg op een andere manier / voordoen
   ===================================================================== */
.again-chip { align-self: flex-start; background: var(--purple-l); color: var(--purple-d); border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: 14px; }
.demo-tag { background: var(--purple-l); color: var(--purple-d); }
.demo .instruction.demo-q { font-size: 20px; }
.demo-text { font-size: 20px; line-height: 1.5; background: var(--bg-2); border-radius: 16px; padding: 12px 14px; }
.demo-stage { display: flex; flex-direction: column; gap: 10px; }
.demo-answer { cursor: pointer; }
.demo-answer .demo-opt { pointer-events: none; }
.demo-answer .is-answer { transition: background .3s, border-color .3s, transform .3s; }
.demo-answer.revealed .is-answer { border-color: var(--green) !important; background: var(--green-l) !important; box-shadow: 0 4px 0 var(--green-d) !important; animation: demoPick .5s var(--ease-out); }
.demo-answer.revealed .demo-opt:not(.is-answer) { opacity: .45; }
.demo-answer .kp-display.is-answer:not(:is(.revealed *)) .kp-val, .demo-answer .bslots:not(:is(.revealed *)) .bslot { color: transparent; }
.demo-answer:not(.revealed) .kp-display .kp-val::before { content: "?"; color: var(--muted); }
.demo-answer:not(.revealed) .order-slots .slot, .demo-answer:not(.revealed) .demo-pairs div { filter: blur(6px); }
.demo-answer:not(.revealed)::after { content: "Pip denkt na…"; display: block; text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; }
.demo-pairs { display: flex; flex-direction: column; gap: 8px; }
.demo-pairs div { border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 18px; text-align: center; }
.demo-why { background: var(--green-l); border-radius: 16px; padding: 12px 14px; font-size: 18px; line-height: 1.4; animation: lineIn .4s ease-out; }
.demo-why b { color: var(--green-ink); }
.demo-gap { color: var(--green-ink); }
@keyframes demoPick { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: none; } }

/* =====================================================================
   Luisteren, hardop lezen, schrijven
   ===================================================================== */
.listen-card { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; border: 2px solid var(--blue); background: var(--blue-l); border-radius: 18px; padding: 12px; }
.listen-card .ear { font-size: 40px; }
.listen-card .lc-t b { display: block; font-size: 18px; }
.listen-card .lc-t small { color: var(--blue-ink); font-size: 14px; }
.listen-card .speak-btn, .listen-card .speak-btn.slow { width: 52px; height: 52px; min-height: 52px; padding: 0; font-size: 24px; border-radius: 16px; align-self: center; }
.jlisten { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-radius: 22px; background: var(--blue-l); border: 3px solid var(--blue); color: var(--blue-ink); font-size: 22px; font-weight: 900; }
.jlisten .ear { font-size: 56px; }
.jlocked .jlisten .ear { animation: pulse .6s ease-in-out infinite alternate; }
.speak-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.mic { width: 132px; height: 132px; border-radius: 50%; background: var(--red); box-shadow: 0 7px 0 var(--red-d); display: grid; place-items: center; font-size: 60px; transition: transform .1s; }
.mic:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--red-d); }
.mic.on { animation: micOn .9s ease-in-out infinite; }
@keyframes micOn { 0%, 100% { box-shadow: 0 7px 0 var(--red-d), 0 0 0 0 rgba(255,75,75,.45); } 50% { box-shadow: 0 7px 0 var(--red-d), 0 0 0 22px rgba(255,75,75,0); } }
.heard { min-height: 38px; font-size: 26px; font-weight: 900; color: var(--ink); text-align: center; }
.heard.miss { color: var(--orange-ink); }
.mic-tries { display: flex; gap: 8px; }
.mic-tries i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.mic-tries i.used { background: var(--orange); }
.trace-wrap { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 24px; border: 3px solid var(--line); background: #fff; overflow: hidden; }
.trace-wrap.word { width: 100%; aspect-ratio: 2.2; }
.trace-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-pad { touch-action: none; }
.trace-clear { position: absolute; right: 6px; top: 6px; background: var(--bg-2); color: var(--ink); font-size: 22px; z-index: 1; }

/* =====================================================================
   Schatkist
   ===================================================================== */
.chest-banner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 16px 8px 8px; margin: 6px 0; border-radius: 20px; text-align: left;
  background: linear-gradient(135deg, #FFF3C4, #FFE08A); border: 3px solid var(--yellow); box-shadow: 0 5px 0 var(--yellow-d); animation: bannerBob 1.6s ease-in-out infinite; }
.chest-banner span { display: flex; flex-direction: column; }
.chest-banner b { font-size: 19px; }
.chest-banner small { color: var(--orange-ink); font-size: 14px; }
.chest-banner .chest-svg { animation: chestIdle 1.2s ease-in-out infinite; }
@keyframes bannerBob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.btn-chest { --c: var(--yellow); --cd: var(--yellow-d); --fg: #6B4A00; }
.btn-chest .mini-chest { display: inline-flex; animation: chestIdle 1s ease-in-out infinite; }

@keyframes chestIdle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg) translateY(-3px); } }
.reward-sticker { width: 150px; height: 150px; border-radius: 34px; display: grid; place-items: center; font-size: 96px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff, #FFF5CC); border: 6px solid #fff; box-shadow: 0 8px 0 rgba(0,0,0,.25), 0 0 40px rgba(255,255,255,.6);
  animation: rewardRise .9s var(--ease-out) both; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.reward-sticker.zeldzaam { border-color: var(--yellow); background: radial-gradient(circle at 35% 30%, #FFFBEA, #FFD95A); box-shadow: 0 8px 0 var(--yellow-d), 0 0 50px rgba(255,200,0,.8); }
.reward-sticker.holo, .sticker.holo { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #FF4B8B, #FFC800, #58CC02, #1CB0F6, #CE82FF, #FF4B8B) border-box; background-size: 100% 100%, 300% 300%; animation-name: rewardRise, holoBorder; animation-duration: .9s, 3s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease-out), linear; }
.reward-sticker.holo::after, .sticker.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 20%, rgba(255,0,170,.55) 35%, rgba(0,255,255,.55) 45%, rgba(255,255,0,.55) 55%, transparent 70%); background-size: 250% 250%; animation: holoShine 2.4s linear infinite; }
.reward-sticker span { position: relative; z-index: 1; }
.reward-note { white-space: nowrap; background: rgba(255,255,255,.9); color: var(--purple-d); border-radius: 999px; padding: 6px 14px; font-weight: 900; animation: lineIn .4s .6s both; }
@keyframes rewardRise { 0% { transform: translateY(140px) scale(.2) rotate(-20deg); opacity: 0; } 60% { transform: translateY(-14px) scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes holoShine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes holoBorder { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 300% 50%; } }

/* stickerboek: zeldzaam en holo */
.album-sub { font-size: 20px; margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; }
.album-sub small { color: var(--muted); font-size: 15px; }
.holo-chip { display: inline-block; font-size: 15px; padding: 3px 10px; border-radius: 999px; color: #fff; background: linear-gradient(120deg, #FF4B8B, #CE82FF, #1CB0F6); vertical-align: middle; }
.sticker { position: relative; overflow: hidden; }
.sticker span { position: relative; z-index: 1; }
.sticker.rare { border-color: var(--yellow-d); }
.sticker.rare.on { background: radial-gradient(circle at 35% 30%, #FFFBEA, #FFD95A); box-shadow: 0 4px 0 var(--yellow-d), 0 0 0 2px var(--yellow) inset; }
.sticker.rare.on::before { content: "⭐"; position: absolute; right: 2px; top: 0; font-size: 14px; z-index: 2; }
.sticker.holo { border-width: 3px; border-style: solid; animation: holoBorder 3s linear infinite; }
.sticker.fresh { animation: wiggle .5s 3; outline: 3px solid var(--purple); outline-offset: 2px; }

/* =====================================================================
   Mijn pad
   ===================================================================== */
.padview, .doelview { display: flex; flex-direction: column; gap: 12px; }
.pad-hero { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.pad-hero .bubble { font-size: 16px; }
.pad-total { display: flex; align-items: center; gap: 10px; }
.pad-total b { font-size: 20px; color: var(--green-ink); }
.bar-track { flex: 1; height: 16px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--green); border-radius: 99px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.pad-domain { --c: var(--blue); --cl: var(--blue-l); border: 2px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pad-domain.green { --c: var(--green); --cl: var(--green-l); } .pad-domain.purple { --c: var(--purple); --cl: var(--purple-l); }
.pad-domain.orange { --c: var(--orange); --cl: var(--orange-l); } .pad-domain.pink { --c: var(--pink); --cl: var(--pink-l); }
.pad-domain.teal { --c: var(--teal); --cl: var(--teal-l); } .pad-domain.yellow { --c: var(--yellow); --cl: var(--yellow-l); }
.pad-domain.indigo { --c: var(--indigo); --cl: var(--indigo-l); } .pad-domain.coral { --c: var(--coral); --cl: var(--coral-l); }
.pad-dh { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.pad-dh .em { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--cl); font-size: 20px; }
.pad-skill { display: flex; flex-direction: column; gap: 6px; }
.pad-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pad-name small { color: var(--muted); font-size: 13px; }
.pad-path { display: flex; align-items: center; }
.pline { flex: 1; height: 5px; background: var(--line); min-width: 8px; }
.pnode { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; background: var(--bg-2); border: 3px solid var(--line); color: #BBB; }
.pnode.done { background: var(--c); border-color: var(--c); box-shadow: 0 3px 0 rgba(0,0,0,.15); font-size: 18px; }
.pnode.done + .pline, .pline:has(+ .pnode.done), .pline:has(+ .pnode.now) { background: var(--c); }
.pnode.now { width: 52px; height: 52px; background: #fff; border-color: transparent; color: var(--ink); font-size: 20px; }
.pnode.todo span { font-size: 15px; filter: grayscale(1); opacity: .6; }
.pn-ring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); transform: rotate(-90deg); }
.pn-ring circle { fill: none; stroke-width: 5; }
.pn-ring .t { stroke: var(--line); }
.pn-ring .f { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .8s; }
.pnode span { position: relative; }

/* =====================================================================
   Mijn doel
   ===================================================================== */
.doelview .ring-wrap { margin: 4px 0 6px; }
.doelview .countdown { text-align: center; font-size: 18px; color: var(--muted); }
.doelview .countdown b { color: var(--ink); }
.goal-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 20px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); background: #fff; }
.goal-pick:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.goal-pick .em { font-size: 38px; }
.goal-pick .nm { font-size: 18px; }
.goal-pick .v { color: var(--muted); font-size: 14px; }
.goal-pick.sel { border-color: var(--blue); background: var(--blue-l); box-shadow: 0 4px 0 var(--blue-d); }
.goal-pick .check { position: absolute; right: 8px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; }
.goal-pick:disabled { cursor: default; }
.goal-pick:disabled:not(.sel) { opacity: .55; }
.goal-hint { text-align: center; color: var(--muted); margin: 0; }
@media (max-width: 420px) {
  .klad-title { display: none; }
  .klad-bar { gap: 4px; flex-wrap: nowrap; }
  .klad-tool { width: 38px; height: 38px; font-size: 18px; }
  .klad-done { padding: 0 12px; }
}

/* =====================================================================
   Schatkist openen (Duolingo-stijl): tikken → kleurgolf → open → wit → stuiteren
   ===================================================================== */
.chest-scene { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: var(--scene, #fff); color: var(--ink, #C26F00); transition: color .25s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); --spring: cubic-bezier(.34, 1.56, .64, 1); }
.cs-wave { position: absolute; inset: 0; clip-path: circle(0 at var(--x, 50%) var(--y, 45%)); pointer-events: none; }
.cs-wave.go { animation: csWave .48s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes csWave { to { clip-path: circle(150vmax at var(--x, 50%) var(--y, 45%)); } }
.cs-ring { position: absolute; left: var(--x, 50%); top: var(--y, 45%); width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.85); opacity: 0; pointer-events: none; }
.cs-ring.go { animation: csRing .55s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes csRing { 0% { opacity: 1; transform: scale(.4); border-width: 26px; } 100% { opacity: 0; transform: scale(14); border-width: 2px; } }
.cs-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.cs-label { font-size: 22px; font-weight: 900; letter-spacing: .1em; }
.cs-label.swap { animation: csSwap .45s var(--spring); }
@keyframes csSwap { 0% { opacity: 0; transform: translateY(10px) scale(.85); } 100% { opacity: 1; transform: none; } }
.cs-stage { position: relative; width: 280px; height: 270px; display: grid; place-items: center; }
.cs-sparks i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; color: var(--spark, #FFD84D);
  transform: translate(var(--x), var(--y)) scale(0); animation: csTwinkle 2.2s ease-in-out var(--d) infinite; }
.cs-sparks i svg { width: 100%; height: 100%; display: block; }
@keyframes csTwinkle { 0%, 100% { transform: translate(var(--x), var(--y)) scale(0) rotate(0); } 25% { transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(45deg); } 50% { transform: translate(var(--x), var(--y)) scale(0) rotate(90deg); } }
.chest { position: relative; z-index: 2; padding: 0; transform-origin: 50% 92%; animation: csInvite 2s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.chest .chest-svg { display: block; overflow: visible; }
.cs-shadow { position: absolute; bottom: 24px; width: 170px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.12); z-index: 1; }
.chest-scene:not(.light) .cs-shadow { background: rgba(0,0,0,.16); }
/* uitnodigend wiebelen elke 2 seconden (zoals Duolingo), en ongeduldig huppen als hij open mag */
@keyframes csInvite { 0%, 55%, 100% { transform: none; } 61% { transform: translateY(-8px) rotate(-7deg); } 68% { transform: translateY(-4px) rotate(6deg); }
  75% { transform: translateY(-2px) rotate(-4deg); } 82% { transform: rotate(2deg); } 90% { transform: none; } }
.chest-scene.ready .chest { animation: csEager 1.05s var(--spring) infinite; }
@keyframes csEager { 0%, 100% { transform: none; } 15% { transform: scale(1.08, .9); } 35% { transform: translateY(-16px) scale(.95, 1.06) rotate(-4deg); } 55% { transform: scale(1.04, .96) rotate(3deg); } 70% { transform: none; } }
/* tik: squish + veer terug */
.chest.squish { animation: csSquish .42s linear; }
@keyframes csSquish { 0% { transform: none; } 18% { transform: scale(1.16, .8); } 36% { transform: scale(.9, 1.12) translateY(-10px); } 54% { transform: scale(1.05, .95); } 72% { transform: scale(.98, 1.02); } 100% { transform: none; } }
.chest.upgraded { animation: csUpgraded .6s var(--spring); }
@keyframes csUpgraded { 0% { transform: scale(.55) rotate(-10deg); filter: brightness(2.2); } 60% { transform: scale(1.12) rotate(3deg); filter: brightness(1.1); } 100% { transform: none; filter: none; } }
.chest.opening { animation: csOpen 1.2s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes csOpen { 0% { transform: scale(1.1, .82); } 14% { transform: scale(.9, 1.2) translateY(-14px); } 30% { transform: scale(1.06, .96); } 45% { transform: scale(1.04); } 100% { transform: scale(1.28) translateY(-6px); } }
/* witte zwiep rond de kist */
.cs-orbit { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); z-index: 3; pointer-events: none; overflow: visible; }
.cs-orbit .arc { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 26 74; stroke-dashoffset: 0; opacity: 0;
  animation: csArc .55s cubic-bezier(.25, .8, .3, 1) var(--delay, 0ms) forwards; }
.chest-scene.light .cs-orbit .arc { stroke: #FFD84D; }
@keyframes csArc { 0% { stroke-dashoffset: 30; opacity: 1; stroke-width: 9; } 75% { opacity: 1; } 100% { stroke-dashoffset: -110; opacity: 0; stroke-width: 3; } }
/* tik-stipjes met pijltjes */
.cs-dots { display: flex; gap: 14px; transition: opacity .3s, transform .3s; }
.cs-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 18%, transparent); color: color-mix(in srgb, var(--ink) 70%, transparent); transition: background .2s, color .2s, transform .2s; }
.chest-scene.light .cs-dot { background: #FCE3C4; color: #E5A15E; }
.cs-dot svg { width: 20px; height: 20px; }
.cs-dot.now { background: var(--ink); color: var(--bg); animation: csDotBob 1s ease-in-out infinite; }
.chest-scene.light .cs-dot.now { background: #C26F00; color: #fff; }
.cs-dot.done { background: color-mix(in srgb, #000 22%, var(--bg)); color: transparent; transform: scale(.85); }
.chest-scene.light .cs-dot.done { background: #E5A15E; }
@keyframes csDotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chest-scene.ready .cs-dots { opacity: 0; transform: scale(.6); }
.cs-caption { margin: 0; font-size: 19px; font-weight: 900; text-align: center; min-height: 1.3em; }
.chest-scene.light .cs-caption { color: var(--ink-2); }
.cs-caption.swap { animation: csSwap .35s var(--spring); }
.chest-scene.ready .cs-caption { animation: csPulse 1.2s ease-in-out infinite; }
@keyframes csPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* open: lichtbundel en fonkels */
.cs-cone { position: absolute; left: 50%; top: -70px; width: 320px; height: 190px; margin-left: -160px; opacity: 0; z-index: 1; pointer-events: none; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255,255,255,.85), rgba(255,255,255,0)); clip-path: polygon(32% 100%, 68% 100%, 100% 0, 0 0); transition: opacity .4s; }
.chest-scene.is-open .cs-cone { opacity: 1; animation: csCone 1.6s ease-in-out infinite alternate; }
@keyframes csCone { from { transform: scaleX(.92); } to { transform: scaleX(1.08); } }
.chest-scene.is-open .cs-sparks i { color: #fff; }
.cs-burst i { position: absolute; left: 50%; top: 45%; width: 20px; height: 20px; margin: -10px; z-index: 4; opacity: 0;
  animation: csBurst 1.3s cubic-bezier(.15, .7, .3, 1) var(--d) forwards; }
.cs-burst i svg { width: 100%; height: 100%; display: block; }
@keyframes csBurst { 0% { opacity: 1; transform: translate(0, 0) scale(.2); } 35% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(var(--s)); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) - 70px)) scale(calc(var(--s) * .4)) rotate(90deg); } }
/* wit van boven naar beneden */
.cs-white { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(#fff 70%, rgba(255,255,255,0)); transform: translateY(-130%); }
.cs-white.go { animation: csWhite .42s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes csWhite { to { transform: translateY(0); background: #fff; } }
.chest-scene.revealing { --scene: #fff; background: #fff; }
.chest-scene.revealing .cs-white { display: none; }
/* teller rechtsboven */
.cs-counter { position: absolute; z-index: 7; right: 16px; top: calc(var(--safe-t) + 14px); font-size: 20px; font-weight: 900; color: var(--blue-ink); background: var(--blue-l);
  border-radius: 999px; padding: 6px 14px; animation: csSwap .4s var(--spring); }
.cs-counter.bump { animation: csBump .45s var(--spring); }
@keyframes csBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); background: #fff3c4; } 100% { transform: scale(1); } }
/* beloning */
.cs-reveal { position: relative; z-index: 5; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-title { margin: 0; font-size: 30px; font-weight: 900; color: var(--blue); min-height: 1.2em; opacity: 0; text-align: center; }
.cs-title.in { animation: csSwap .5s var(--spring) forwards; }
.cs-drop { position: relative; width: 100%; height: 300px; }
.cs-drop-shadow { position: absolute; left: 50%; bottom: 14px; width: 190px; height: 26px; margin-left: -95px; border-radius: 50%; background: rgba(0,0,0,.1); animation: csShadow .9s ease-out both; }
@keyframes csShadow { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.cs-drop .reward-sticker.phys { position: absolute; left: 0; top: 0; width: 132px; height: 132px; font-size: 84px; animation: none; transform-origin: 50% 100%; will-change: transform; }
.cs-drop .reward-sticker.phys.holo { animation: holoBorder 3s linear infinite; }
.cs-bit { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform; background: var(--c);
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%); box-shadow: inset -4px -4px 0 rgba(0,0,0,.15); }
.cs-note { margin: 0; color: var(--muted); font-size: 18px; text-align: center; opacity: 0; transition: opacity .4s; }
.cs-note.in { opacity: 1; }
.cs-note b { color: var(--blue-ink); }
.cs-foot { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; opacity: 0; transform: translateY(20px); transition: opacity .35s, transform .45s var(--spring); }
.cs-foot.in { opacity: 1; transform: none; }
.cs-reveal[hidden], .cs-body[hidden], .cs-counter[hidden] { display: none; }
