/* Fonts (bundled, SIL Open Font License): Figtree for the UI, Andika for everything the child reads
   (designed for beginning readers: single-storey a and g, clear I/l/1). */
@font-face{font-family:'Figtree';src:url(assets/fonts/figtree.woff2) format('woff2');font-weight:300 900;font-display:swap}
@font-face{font-family:'Andika';src:url(assets/fonts/andika-400.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Andika';src:url(assets/fonts/andika-700.woff2) format('woff2');font-weight:700 900;font-display:swap}
:root{font-family:'Figtree',ui-rounded,'Avenir Next',system-ui,sans-serif;color:#2f2b40;background:#f8f7fb;font-synthesis:none;--purple:#7660a9;--ink:#514763}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:transparent}
button{font:inherit;font-weight:750;cursor:pointer;border:0;background:#fff;color:inherit;min-height:48px;min-width:48px;padding:12px 18px;border-radius:17px;box-shadow:0 3px 0 #0000000c;touch-action:manipulation}
button:focus-visible{outline:3px solid #6247aa;outline-offset:4px}button:disabled{opacity:.4;cursor:default}
.primary{background:var(--purple);color:#fff}.big{font-size:24px;padding:16px 30px;border-radius:22px}
h1{font-size:clamp(28px,4vw,42px);margin:8px 0 16px;letter-spacing:-1px}h2{margin:4px 0 10px}
[hidden]{display:none!important}

/* Top bar: map, garden and chest are always one tap away */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 20px;background:#faf3e5ee;backdrop-filter:blur(6px)}
.spacer{flex:1}.nav{font-size:20px;background:#fff}.nav.has-new{background:#f4ce5e;animation:wiggle 1.6s infinite}
.wallet{background:#fff;border-radius:20px;padding:10px 16px;font-weight:800;font-size:20px}
.chest-btn{position:relative;display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:22px}
.chest-btn.ready{background:#f4ce5e;box-shadow:0 0 0 4px #f4ce5e66,0 0 24px #f4ce5e;animation:wiggle 1.6s infinite}
.slots{display:flex;gap:2px;align-items:center}.coin{display:inline-block;width:20px;height:20px;border-radius:50%;background:#e8e0ee;box-shadow:inset 0 -2px 0 #0001;vertical-align:middle}.coin.on{background:radial-gradient(circle at 35% 35%,#fff3b0,#f4c430 45%,#d99a0b);box-shadow:inset 0 0 0 2px #c98a0a}.slots b{font-size:14px;margin-left:4px}
.slots.big{justify-content:center;margin:6px 0 18px}.slots.big .coin{width:38px;height:38px;margin:0 2px}
.coin-pop{position:absolute;right:10px;top:40px;font-size:22px;font-weight:900;color:#b98a12;animation:rise 1.3s ease-out forwards;pointer-events:none}
body[data-screen=start] .top,body[data-screen=story] .top{visibility:hidden}

/* Vonk speaks everything from here */
#vonk-bar{position:sticky;top:68px;z-index:4;display:flex;align-items:center;gap:12px;max-width:1120px;margin:4px auto 10px;padding:10px 16px;background:#f3eefb;border-radius:26px;box-shadow:0 6px 20px #715a8518}
body[data-screen=start] #vonk-bar,body[data-screen=story] #vonk-bar{top:10px;margin-top:12px}
.vonk{position:relative;display:inline-block;background:none;box-shadow:none;padding:0;line-height:1}
.vonk .acc{position:absolute;left:50%;transform:translateX(-50%);font-size:.55em;pointer-events:none}.vonk .acc.head{top:-.38em}.vonk .acc.eyes{top:.22em;font-size:.5em}
#vonk{font-size:64px;min-width:76px}
.talking #vonk .fox{display:inline-block;animation:talk .35s ease-in-out infinite alternate}
.bubble{flex:1;position:relative;background:#fff;border-radius:20px;padding:12px 18px;min-height:56px;display:flex;align-items:center}
.bubble:before{content:'';position:absolute;left:-10px;top:50%;margin-top:-10px;border:10px solid transparent;border-right-color:#fff;border-left:0}
#bubble-text{margin:0;font-size:clamp(18px,2.4vw,24px);font-weight:800}
.round{border-radius:50%;font-size:24px;padding:10px}
main{max-width:1120px;margin:auto;padding:0 20px 30px}
.screen{display:none}
body[data-screen=tracks] #screen-tracks,body[data-screen=activity] #screen-activity,body[data-screen=start] #screen-start,body[data-screen=story] #screen-story,body[data-screen=map] #screen-map,body[data-screen=skills] #screen-skills,body[data-screen=friends] #screen-friends,body[data-screen=kaart] #screen-kaart,body[data-screen=album] #screen-album,body[data-screen=storybook] #screen-storybook,body[data-screen=paint] #screen-paint,body[data-screen=garden] #screen-garden{display:block}

/* Start and story */
#screen-start{text-align:center;padding-top:20px}.start-art{position:relative;display:inline-block}.huge{font-size:140px}
.grey-cloud{position:absolute;right:-70px;top:-10px;font-size:70px;filter:grayscale(1) brightness(.6);animation:float 3s ease-in-out infinite}
.tagline{font-size:22px;font-weight:700;color:#e0752d;margin:-12px 0 6px}
.sub{font-size:20px;color:#756a89;margin:0 0 24px}
#screen-story{text-align:center}
.story-art{font-size:clamp(80px,14vw,170px);min-height:min(46vh,380px);max-width:820px;margin:0 auto;border-radius:34px;display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(#cbe8fb 0 62%,#bfe5b4 62%);box-shadow:0 10px 30px #715a8522;animation:pop .5s ease-out}
.story-art.grey{background:linear-gradient(#dcdbe0 0 62%,#c9c8cd 62%);filter:grayscale(1) brightness(.75)}.story-art.wobble{animation:pop .5s ease-out,wobble 2s ease-in-out .5s infinite}
.dots{display:flex;gap:8px;justify-content:center;margin:10px 0 20px}.dots i{width:14px;height:14px;border-radius:50%;background:#e2d8ee;font-style:normal}.dots i.on{background:var(--purple)}
.row{display:flex;gap:16px;justify-content:center;align-items:center}

/* Path: Duolingo-style winding road */
.path-list{max-width:560px;margin:0 auto}
.unit{margin:0 0 26px;padding-bottom:10px}
.unit-head{display:flex;align-items:center;gap:14px;padding:14px 20px;border-radius:24px;background:var(--tint);color:#fff;box-shadow:0 5px 0 #0002;margin-bottom:18px}
.unit-head small{display:block;font-size:13px;opacity:.9;font-weight:700}.unit-head b{font-size:24px}.unit-icon{font-size:40px}.unit-friend{margin-left:auto;font-size:34px;background:#fff4;border-radius:50%;width:54px;height:54px;display:grid;place-items:center}
.unit-locked .unit-head{filter:grayscale(.8);opacity:.7}
.chapter{display:block;width:100%;margin:6px 0 22px;padding:16px 20px 14px;border-radius:28px;text-align:center;background:linear-gradient(135deg,#fff8e6,#ffeccc);border:3px dashed #e8a33d;color:#3d3352;box-shadow:0 5px 0 #0001}
.chapter small{display:block;font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#b9772a}.chapter b{display:block;font-size:30px;line-height:1.15}
.chapter-goal{display:block;font-size:16px;font-weight:600;margin:6px auto 8px;max-width:520px;color:#5d5270}
.chapter-friends{display:flex;justify-content:center;gap:8px}.chapter-friends span{width:46px;height:46px;display:grid;place-items:center;font-size:28px;background:#fff;border-radius:50%}.chapter-friends img{width:40px;height:40px;object-fit:contain}
.chapter-friends .silhouette img{filter:brightness(0) opacity(.25)}.chapter.locked{filter:grayscale(.7);opacity:.7}
.node-row{position:relative;display:flex;justify-content:center;transform:translateX(var(--x,0));margin:10px 0}
.node{width:84px;height:84px;border-radius:50%;font-size:36px;padding:0;background:var(--tint);color:#fff;box-shadow:0 7px 0 #0003;position:relative}
.node.done{background:#f4c430;color:#fff;font-size:40px}
.node.locked{background:#e3dde9;color:#a9a0b5;box-shadow:0 7px 0 #cfc6d8;font-size:26px}
.node.open{opacity:.9}
.node.next{width:104px;height:104px;font-size:48px;box-shadow:0 8px 0 #0003,0 0 0 8px #fff,0 0 0 13px var(--tint);animation:breathe 1.6s ease-in-out infinite}
.node.friend{background:#fff;color:inherit;border:4px dashed #cfc6d8;box-shadow:none;font-size:40px}.node.friend.saved{border:4px solid #f4c430;background:#fff8e1}
.node-row .here{position:absolute;left:calc(50% - 150px);top:50%;transform:translateY(-50%);font-size:58px;animation:point 1.4s ease-in-out infinite}
.start-tag{position:absolute;top:-30px;left:50%;transform:translateX(-50%);background:#fff;color:var(--purple);font-weight:900;padding:4px 12px;border-radius:12px;box-shadow:0 3px 0 #0001;font-size:14px;letter-spacing:1px}
.map-extras{display:flex;gap:14px;justify-content:center;margin-top:20px;flex-wrap:wrap}.story-card{font-size:20px;background:#f3eefb}
/* Painting */
.paint-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.steps{display:flex;gap:8px;align-items:center}.steps i{width:18px;height:18px;border-radius:50%;background:#e2d8ee;font-style:normal}.steps i.on{background:#75b98a}.steps i.now{background:#f4ce5e;animation:breathe 1.2s infinite}
.steps i.star{background:none;width:auto;height:auto;color:#e2d8ee;font-size:24px}.steps i.star.on{color:#e9b429}
.canvas{background:#fcfdf8;padding:8px 22px;border-radius:26px 26px 0 0;box-shadow:0 9px 30px #715a8520}
.canvas svg{display:block;width:100%;max-height:48vh;min-height:220px;touch-action:pan-x pan-y}
.paint-region{cursor:pointer;transition:fill .2s;transform-box:fill-box;transform-origin:center}.paint-region:focus-visible{outline:none;stroke:#9b61dd;stroke-width:7}
.paint-region.bounce{animation:pop .35s}.paint-region.hint{animation:glow 1s ease-in-out infinite}
.toolbar{background:#fff;border-radius:0 0 26px 26px;padding:14px 22px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
#palette,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.swatch{padding:0;border:4px solid #fff;width:50px;height:50px;border-radius:50%;box-shadow:0 0 0 1px #ddd}.swatch[aria-pressed=true]{box-shadow:0 0 0 3px var(--ink);transform:scale(1.1)}
.swatch span{color:#fff;text-shadow:0 1px 4px #000;font-size:24px}.swatch.hint{animation:breathe 1s infinite;box-shadow:0 0 0 4px #f4ce5e}
#finish{font-size:20px}#finish.pulse{background:#75b98a}

/* Garden */
#garden-scene{position:relative;aspect-ratio:16/9;max-height:62vh;margin:0 auto;border-radius:26px;overflow:hidden;touch-action:none;--colour:0}
#garden-scene>svg{position:absolute;inset:0;width:100%;height:100%}
#garden-scene .sky{filter:saturate(calc(.15 + var(--colour)*.85))}
[data-restore]{filter:grayscale(1) opacity(.55);transition:filter 1.5s}[data-restore].restored{filter:none}
[data-restore].just{animation:shine 2.5s}
.sky-rainbow{opacity:0;transition:opacity 2s}.all-done .sky-rainbow{opacity:.85}
.cloud{animation:drift 8s ease-in-out infinite alternate}.all-done .cloud ellipse,.all-done .cloud circle:not([r="4"]){fill:#fff}
#garden-scene.placing{cursor:copy;outline:5px dashed var(--purple);outline-offset:-5px}#garden-scene.tidying .placed{animation:shake .4s infinite}
.placed{position:absolute;transform:translate(-50%,-50%);font-size:clamp(34px,6vw,58px);background:none;box-shadow:none;padding:0;animation:float 3s ease-in-out infinite}
.placed.st-butterfly,.placed.st-bird,.placed.st-ladybug{animation:flutter 2.4s ease-in-out infinite}.placed.st-snail{animation:crawl 6s ease-in-out infinite alternate}
.placed.bounce{animation:hop .5s}
.garden-tools{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:14px}
#tray{display:flex;gap:10px;flex-wrap:wrap}#tray button{font-size:34px;background:#f3eefb}#tray button[aria-pressed=true]{background:var(--purple);box-shadow:0 0 0 3px var(--ink)}
.empty{font-size:22px;margin:0 10px}#basket[aria-pressed=true]{background:#f4ce5e}#seek{font-size:20px}#seek.active{background:#e9b429}

/* Dialogs */
dialog{border:0;border-radius:28px;padding:30px;max-width:min(520px,92vw);text-align:center;color:#3f3d52;box-shadow:0 20px 90px #40325140}
dialog::backdrop{background:#38304770;backdrop-filter:blur(5px)}
.big-icon{font-size:70px;display:block}.cel-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;padding:0 44px}
#reward-options{display:flex;gap:12px;justify-content:center;margin:20px 0}
#reward-options button{display:flex;flex-direction:column;align-items:center;background:#f3eefb;padding:14px}#reward-options span{font-size:52px}#reward-options small{font-size:14px}
#save-status{text-align:center;font-size:13px;color:#986142}

.pulse{animation:breathe 1.3s ease-in-out infinite}.bounce{animation:hop .5s}.wiggle{animation:wiggle 1.6s infinite}
@keyframes wiggle{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-6deg)}90%{transform:rotate(6deg)}}
@keyframes breathe{50%{transform:scale(1.06)}}
@keyframes hop{40%{transform:translate(-50%,-50%) translateY(-18px) scale(1.15)}}
#vonk.bounce,.chest-btn.bounce,.wallet.bounce{animation:jump .5s}
@keyframes jump{40%{transform:translateY(-12px) scale(1.1)}}
@keyframes talk{to{transform:translateY(-4px) rotate(-4deg)}}
@keyframes pop{0%{transform:scale(.6);opacity:.3}70%{transform:scale(1.08)}}
@keyframes rise{to{transform:translateY(-50px);opacity:0}}
@keyframes point{50%{transform:translateY(10px)}}
@keyframes float{50%{transform:translate(-50%,-50%) translateY(-8px)}}
.grey-cloud{animation-name:bob}@keyframes bob{50%{transform:translateY(-8px)}}
@keyframes flutter{25%{transform:translate(-50%,-50%) translate(8px,-10px) rotate(8deg)}75%{transform:translate(-50%,-50%) translate(-8px,-4px) rotate(-8deg)}}
@keyframes crawl{to{transform:translate(-50%,-50%) translateX(30px)}}
@keyframes shake{25%{transform:translate(-50%,-50%) rotate(-8deg)}75%{transform:translate(-50%,-50%) rotate(8deg)}}
@keyframes wobble{50%{transform:scale(1.1,.9)}}
@keyframes glow{50%{stroke:#f4a100;stroke-width:9}}
@keyframes shine{0%{filter:grayscale(1)}50%{filter:brightness(1.4) drop-shadow(0 0 20px #fff6)}100%{filter:none}}
@keyframes drift{to{transform:translateX(60px)}}
@media(max-width:700px){.top{padding:8px 10px;gap:6px}.nav span{display:none}#vonk-bar{top:62px;margin:4px 10px 10px;padding:8px}#vonk{font-size:46px;min-width:54px}main{padding:0 10px 24px}.canvas{padding:0}.toolbar{padding:12px}.swatch{width:42px;height:42px;min-width:42px;min-height:42px}.path{display:none}.big{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.tools{display:flex;gap:8px;flex-wrap:wrap;padding:10px 22px;background:#fff;border-top:1px solid #f1ecf6}.tools button{font-size:26px;padding:6px 12px;background:#f7f3fb}.tools button[aria-pressed=true]{background:var(--purple);box-shadow:0 0 0 3px var(--ink)}
.canvas{border-radius:26px 26px 0 0}.canvas.decorating svg{cursor:crosshair}
.sparkle{animation:twinkle 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}@keyframes twinkle{50%{opacity:.35;transform:scale(.8)}}
.friend-home{position:absolute;transform:translate(-50%,-50%);font-size:clamp(50px,8.5vw,90px);background:none;box-shadow:none;padding:0;display:grid;justify-items:center}
.friend-home .friend-art,.friend-home>.spr{position:relative;z-index:1}
.friend-home{animation:float 2.8s ease-in-out infinite}.friend-home.just{animation:hop .6s 3}.friend-home.dragging{animation:none}/* friend and home move as one */
/* A friend's own spot: painted home when there is one, else a soft patch in the area colour; the name tag says who it is. */
.friend-home .home-patch{position:absolute;left:50%;bottom:.5em;width:1.7em;height:.55em;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--tint) 75%,#fff),color-mix(in srgb,var(--tint) 35%,transparent) 70%,transparent);box-shadow:0 0 0 3px #fff8}
.friend-home .home-art{position:absolute;left:50%;bottom:.15em;width:1.9em;height:auto;transform:translateX(-50%)}
.friend-home .tag{position:relative;z-index:1;margin-top:-.15em;font-size:13px;font-weight:800;background:#fffe;border-radius:999px;padding:1px 9px;box-shadow:0 1px 3px #0003;white-space:nowrap}
#friends{position:absolute;inset:0;z-index:2;pointer-events:none}#friends .friend-home{pointer-events:auto}
.book-card.just{animation:hop .6s 3;box-shadow:0 0 0 4px #f2c14e,var(--lift)}
#play-on{margin-left:auto;animation:breathe 1.6s ease-in-out infinite}
.swatch-big{display:block;width:56px;height:56px;border-radius:50%;box-shadow:inset 0 0 0 3px #fff8}
.dev-reset{position:fixed;right:10px;bottom:10px;font-size:13px;padding:6px 10px;min-height:0;opacity:.6;background:#fff}

/* Phase A: tips, coins, friends, garden tabs, drag, scrolling strips */
.strip,#palette,.tools{flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);padding-inline:10px}
.strip::-webkit-scrollbar,#palette::-webkit-scrollbar,.tools::-webkit-scrollbar{display:none}
.toolbar{flex-wrap:nowrap}#palette{flex:1;min-width:0;padding-block:6px}.swatch,.tools button,#tray button{flex:none}
.silhouette{filter:grayscale(1) brightness(.35) opacity(.45)}
.node.friend{position:relative;width:92px;height:92px;background:radial-gradient(circle at 35% 30%,#fff,#e8f3ff 60%,#cfe3fa);border:3px solid #bcd6ee}
.node.friend.saved{background:#fff8e1;border:4px solid #f4c430}.node .check{position:absolute;right:-4px;bottom:-4px;font-style:normal;font-size:18px;background:#75b98a;color:#fff;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}
.friend-row{flex-direction:column;align-items:center}.friend-tag{margin-top:6px;font-weight:800;font-size:15px;color:#6a5d80;background:#fff;padding:4px 12px;border-radius:12px;box-shadow:0 2px 0 #0001}
.extra-tag{display:flex;align-items:center;gap:6px;margin:14px auto 0;width:max-content;font-weight:900;font-size:15px;color:#b07a00;background:#fff7d6;padding:4px 14px;border-radius:12px;box-shadow:0 2px 0 #0001}.extra-tag .ico{width:18px;height:18px}
.cel-coins{display:flex;justify-content:center;gap:8px;min-height:10px;margin:6px 0}.cel-coins .coin{width:44px;height:44px;opacity:0;animation:coinIn .45s ease-out forwards}
@keyframes coinIn{0%{opacity:0;transform:translateY(-30px) scale(.4)}70%{opacity:1;transform:translateY(4px) scale(1.15)}100%{opacity:1;transform:none}}
.rescue{position:relative;display:inline-block;animation:hop .6s .9s 2}.bubble-pop{position:absolute;inset:-18px;font-size:1.6em;animation:burst .8s .6s forwards}
@keyframes burst{to{transform:scale(1.8);opacity:0}}
.friends-bar{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap;margin:0 0 10px}.friends-bar button{font-size:28px;padding:4px 8px;min-height:44px;background:#fff}.fb-count{font-weight:900;color:#6a5d80;margin-right:6px}
.garden-vonk{position:absolute;left:-2%;bottom:-8%;font-size:clamp(150px,26vw,250px);z-index:2;filter:drop-shadow(0 6px 10px #0003)}
.placed{font-size:calc(clamp(34px,6vw,58px)*var(--s,1))}.placed.selected{outline:3px dashed var(--purple);outline-offset:4px;border-radius:12px;animation:none}.placed.dragging{animation:none;opacity:.85;z-index:3}
.sticker-tools{position:absolute;z-index:4;transform:translate(-50%,calc(-100% - 46px));display:flex;gap:4px;background:#fff;border-radius:16px;padding:4px;box-shadow:0 6px 18px #0003}.sticker-tools button{font-size:20px;min-width:44px;min-height:44px;padding:4px}
.tray-tabs{display:flex;gap:8px;justify-content:center;margin-top:12px}.tray-tabs button{font-size:18px;background:#f3eefb}.tray-tabs button[aria-selected=true]{background:var(--purple);color:#fff}
.swatch-mini{display:block;width:34px;height:34px;border-radius:50%}
#tip{background:#fff6d6}
@media(max-width:700px){.tray-tabs span{display:none}.garden-vonk{font-size:80px}}

/* One Vonk at a time: the bar fox hides where a big Vonk is on screen */
body[data-screen=start] #vonk,body[data-screen=story] #vonk,body[data-screen=garden] #vonk{display:none}
.vonk-svg{display:block;width:1em;height:1.03em;overflow:visible}
.vonk .fox{display:inline-block;line-height:0}
.vonk .acc.head{top:-.26em}.vonk .acc.eyes{top:.2em;font-size:.44em}
.vonk-svg .eyes{transform-box:fill-box;transform-origin:center;animation:blink 4.5s infinite}
@keyframes blink{0%,94%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
.vonk-svg .mouth-open{opacity:0}
.talking .vonk-svg .mouth-open{animation:mouth .22s ease-in-out infinite alternate}.talking .vonk-svg .mouth{opacity:0}
@keyframes mouth{from{opacity:1;transform:scaleY(.4)}to{opacity:1;transform:scaleY(1)}}
.vonk-svg .mouth-open{transform-box:fill-box;transform-origin:center top}
.vonk-svg .spark{transform-box:fill-box;transform-origin:center;animation:twinkle 1.8s ease-in-out infinite}
.vonk-svg .tail{transform-box:fill-box;transform-origin:10% 90%;animation:wag 3s ease-in-out infinite}
@keyframes wag{50%{transform:rotate(-6deg)}}
.talking #vonk .fox,.talking .garden-vonk .fox,.talking #start-vonk .fox{animation:talk .35s ease-in-out infinite alternate}
.story-art .vonk{font-size:1.1em}
.node-row .here{left:calc(50% - 120px);font-size:50px;animation:nudge 1s ease-in-out infinite}@keyframes nudge{50%{transform:translate(10px,-50%)}}
button.vonk.huge{font-size:170px}

/* Chest meter: a bar that fills towards the chest, visually different from coins */
.chest-meter{display:inline-flex;align-items:center;gap:6px}
.chest-meter .meter{position:relative;width:86px;height:16px;border-radius:9px;background:#ece5f3;box-shadow:inset 0 2px 3px #0002;overflow:hidden}
.chest-meter .fill{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#ffd76a,#f4a930);border-radius:9px;transition:width .35s ease-out}
.chest-meter .lock{font-size:16px}
.chest-meter.big{justify-content:center;margin:8px 0 18px}.chest-meter.big .chest-icon{font-size:48px}.chest-meter.big .meter{width:190px;height:26px;border-radius:14px}.chest-meter.big .lock{font-size:26px}
.chest-btn.ready .fill{animation:shimmer 1.2s ease-in-out infinite}@keyframes shimmer{50%{filter:brightness(1.25)}}
.cel-coins .coin.spent{animation:coinIn .45s ease-out forwards,toChest .5s ease-in .2s forwards}
@keyframes toChest{to{transform:translateY(60px) scale(.3);opacity:0}}

/* Eraser sits with the other actions and looks different */
.eraser{background:#ffe3ec}.eraser[aria-pressed=true]{background:#f39cc3;box-shadow:0 0 0 3px #c2527f}

/* Parent and dev controls */
.parents-btn{position:fixed;left:10px;bottom:10px;font-size:16px;min-height:0;padding:6px 10px;opacity:.55;background:#fff}
.dev-tools{position:fixed;right:10px;bottom:10px;display:flex;gap:6px}.dev-tools button{font-size:13px;min-height:0;padding:6px 10px;opacity:.7}
.dev-reset{position:static}
.gate-q{font-size:34px;font-weight:900}.setting{display:flex;gap:12px;align-items:center;text-align:left;font-size:18px;margin:14px 0}.setting input{width:26px;height:26px}

.no-scarf .scarf{display:none}

/* Tracks */
.center{text-align:center}
.doors{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;margin-top:20px}
.track-tabs{display:flex;gap:8px;justify-content:center;margin:0 0 16px;position:sticky;top:150px;z-index:3}
.track-tabs button{font-size:18px;background:#fff}.track-tabs button[aria-selected=true]{background:var(--purple);color:#fff}

/* Activities */
.act-body{display:flex;flex-direction:column;gap:14px;align-items:center}
.act-body .canvas{width:100%;border-radius:26px}
.act-body .paint-region,.act-body [data-region]{cursor:pointer}
[data-region].hint,.hint{animation:glow 1s ease-in-out infinite}
button.hint{box-shadow:0 0 0 5px #f4ce5e;animation:breathe 1s infinite}
.word-card{background:#fff;border-radius:24px;padding:16px 34px;font-size:clamp(34px,6vw,56px);font-weight:900;letter-spacing:1px;box-shadow:0 6px 0 #0001;cursor:pointer}
.word-card.big{font-size:clamp(52px,10vw,96px);padding:20px 50px}
.hear{font-size:.45em;vertical-align:middle;opacity:.6}
.pic-card{font-size:clamp(90px,16vw,150px);background:#fff;border-radius:30px;padding:10px 40px;box-shadow:0 6px 0 #0001}
.choices{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.choices .pic{font-size:clamp(60px,10vw,90px);padding:14px 22px;border-radius:26px}
.choices .word{font-size:clamp(30px,5vw,44px);padding:14px 30px;border-radius:22px;min-width:140px}
.nope{animation:shake .4s;opacity:.45}
.yes-no{display:flex;gap:20px}.yn{font-size:30px;padding:18px 36px;border-radius:24px}.yn.yes{background:#dff3e3}.yn.no{background:#fde2e2}
.stamp-choice{display:flex;gap:12px}.stamp-choice button{font-size:40px;padding:8px 18px}.stamp-choice button[aria-pressed=true]{background:var(--purple);box-shadow:0 0 0 3px var(--ink)}
.wrong-stamp{animation:fade .7s forwards}@keyframes fade{to{opacity:0}}
.memory{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;width:min(640px,100%)}
.card{aspect-ratio:1;border-radius:20px;font-size:clamp(26px,5vw,40px);background:var(--purple);color:#fff;position:relative;padding:0}
.card .face{display:none}.card.up{background:#fff;color:inherit}.card.up .face{display:block}.card.up .back{display:none}
.card.pic.up .face{font-size:1.6em}.card.done{background:#e7f5e3;box-shadow:0 0 0 3px #75b98a}
.read-card{background:#fff;border-radius:22px;padding:14px 22px;margin:0 0 12px;font-size:clamp(24px,3.4vw,34px);font-weight:900;text-align:center;box-shadow:0 5px 0 #0001;cursor:pointer}
.read-card .dot{display:inline-block;width:1.25em;height:1.1em;border-radius:58% 42% 55% 45%/50% 60% 40% 50%;background:var(--c);vertical-align:-.2em;margin-right:.45em;box-shadow:inset 0 -4px 0 #0002,0 0 0 3px #fff,0 0 0 5px #0003}
.read-card .tinted{color:var(--c);-webkit-text-stroke:5px #3a2a2a;paint-order:stroke fill;letter-spacing:.02em}
.parents{width:min(720px,94vw);max-width:none;text-align:left}.parents-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}.parents-top .tray-tabs{margin:0;flex:1;justify-content:flex-start}
.lang{font-size:14px;min-height:36px;padding:6px 12px;background:#f3eefb}
.about{max-height:60vh;overflow:auto;font-size:15px;line-height:1.5}.about h3{margin:16px 0 4px}.about ul{padding-left:20px}.about .note{font-size:13px;color:#756a89}.refs li{font-size:13px;margin:4px 0}
.parents #settings-close{margin-top:14px;float:right}

/* iPad/iPhone safe areas: keep buttons clear of the status bar, notch and home indicator */
.top{padding-top:max(10px,env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
#vonk-bar{top:calc(68px + env(safe-area-inset-top))}
body[data-screen=start] #vonk-bar,body[data-screen=story] #vonk-bar{top:calc(10px + env(safe-area-inset-top));margin-top:calc(12px + env(safe-area-inset-top))}
.track-tabs{top:calc(150px + env(safe-area-inset-top))}
.parents-btn{bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left))}
.dev-tools{bottom:max(10px,env(safe-area-inset-bottom))}
main{padding-bottom:calc(30px + env(safe-area-inset-bottom))}

/* Coins that look like coins: gold, a raised rim and an embossed star */
.coin{position:relative;display:inline-block;font-size:12px;width:1.7em;height:1.7em;border-radius:50%;vertical-align:middle;font-style:normal;background:#e8e0ee}
.coin.on{background:radial-gradient(circle at 34% 28%,#fff8d2 0 10%,#ffdb57 34%,#f0b429 68%,#c98407);box-shadow:inset 0 0 0 .12em #b87808,inset 0 0 0 .22em #ffe07a,inset 0 0 0 .3em #d9990f,0 .1em 0 #9a6206}
.coin.on::after{content:'★';position:absolute;inset:0;display:grid;place-items:center;font-size:.95em;color:#c98407;text-shadow:0 1px 0 #fff3b0}
.cel-coins .coin{font-size:26px;width:1.7em;height:1.7em}
.coin-pop .coin{font-size:14px}
.story-art .coin{font-size:.45em;margin:0 .05em}

#garden-scene>svg.zone-lees{display:none}#garden-scene[data-zone=lees]>svg.zone-lees{display:block}#garden-scene[data-zone=lees]>svg.zone-tuin{display:none}
.zone-tabs{margin:0 0 8px}

/* Bigger drawings: use the height the screen has left */
.canvas svg{max-height:calc(100vh - 330px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:260px}
.canvas{padding:4px 10px}
#screen-paint .paint-head h2,#screen-activity .paint-head h2{font-size:18px;margin:0 0 6px}

/* Garden: wardrobe on Vonk, a label on the tray, drag ghost */
.dress-badge{position:absolute;left:clamp(90px,17vw,170px);bottom:clamp(120px,21vw,200px);z-index:3;font-size:30px;background:#fff;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;box-shadow:0 4px 10px #0002;animation:breathe 1.4s infinite;pointer-events:none}
.wardrobe{position:absolute;left:2%;bottom:calc(clamp(150px,26vw,250px) * .9);z-index:4;background:#fff;border-radius:22px;padding:10px 12px;box-shadow:0 10px 30px #0003;max-width:70%}
.wardrobe b{display:block;font-size:15px;margin:0 0 6px;color:#6a5d80}
#wardrobe-items{display:flex;gap:8px;flex-wrap:wrap}#wardrobe-items button{font-size:32px;padding:6px 10px;background:#f3eefb}#wardrobe-items button[aria-pressed=true]{background:var(--purple);box-shadow:0 0 0 3px var(--ink)}
.tray-label{font-size:30px}
.drag-ghost{position:fixed;z-index:50;transform:translate(-50%,-50%) scale(1.3);font-size:48px;pointer-events:none;filter:drop-shadow(0 8px 10px #0004)}

/* Onboarding and parent profile */
#setup .q{font-weight:800;margin:14px 0 6px}#setup .note{font-size:14px;color:#756a89}
.profile-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}.profile-row span{flex-basis:100%;font-weight:800;font-size:15px}
.profile-row button{font-size:17px;background:#f3eefb}.profile-row button[aria-pressed=true]{background:var(--purple);color:#fff}
.who{text-align:center}.who-list{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:10px}
.who-list button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 14px;background:#f3eefb;border-radius:22px;min-width:130px;font-size:20px;font-weight:800}
.who-list .avatar{width:96px;height:96px;object-fit:contain}
.who-add{color:var(--purple)}.who-add .plus{width:96px;height:96px;display:grid;place-items:center;font-size:64px;font-weight:900;border:3px dashed #cbbfe3;border-radius:50%;box-sizing:border-box}
.who-name{display:block;margin:10px auto;width:min(320px,80vw);font:inherit;font-size:26px;font-weight:800;text-align:center;padding:10px 14px;border:3px solid #e3dcf0;border-radius:16px}
.who-avatars{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:8px 0 14px}.who-avatars button{padding:6px;background:#f3eefb;border-radius:18px;min-height:0}
.who-avatars button[aria-pressed=true]{background:var(--purple)}.who-avatars .avatar{width:64px;height:64px;object-fit:contain;display:block}
.child-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border-radius:16px;margin:6px 0}.child-row.on{background:#f3eefb}
.child-avatar{padding:2px;background:#fff;border-radius:14px;min-height:0}.child-avatar .avatar{width:52px;height:52px;object-fit:contain;display:block}
.child-name{flex:1;min-width:120px;font:inherit;font-size:18px;padding:8px 10px;border:2px solid #e3dcf0;border-radius:12px}
.child-tag{font-weight:800;color:var(--purple);padding:0 6px}.child-row button:not(.child-avatar){font-size:15px}
#setup-start{margin-top:10px;float:right}
.door{position:relative}
.wardrobe{left:calc(clamp(150px,26vw,250px) * .8);bottom:8%;max-width:60%}
.wardrobe::before{content:'';position:absolute;left:-10px;bottom:24px;border:10px solid transparent;border-right-color:#fff;border-left:0}

/* ── Layout without page scrolling: drawing left, tools in a column on the right ── */
:root{--chrome:calc(178px + env(safe-area-inset-top) + env(safe-area-inset-bottom))}
/* Paint and activities are sized to fit the screen; if something still does not fit (small windows), the page scrolls instead of cutting it off. */
body[data-screen=paint],body[data-screen=activity]{height:100dvh;overflow-y:auto}
body[data-screen=paint] #screen-paint{display:flex;gap:12px;height:calc(100dvh - var(--chrome))}
.paint-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
#art{flex:1;min-height:0;container-type:size;display:grid;place-items:center;padding:6px;border-radius:26px}
#art .vector-pic,#art .vector-pic svg,.act-scene .vector-pic,.act-scene .vector-pic svg{width:100%;height:100%;max-height:none;min-height:0}
.raster-pic{position:relative;width:min(100cqw,calc(100cqh * var(--ratio)));aspect-ratio:var(--ratio);touch-action:none}
.raster-pic>*{position:absolute;inset:0;width:100%;height:100%}
.raster-pic .lines,.raster-pic .hints,.raster-pic svg{pointer-events:none}
.raster-pic.mirror canvas,.raster-pic.mirror .lines{transform:scaleX(-1)}
.raster-pic .hints{opacity:0}.raster-pic .hints.on{animation:hintPulse 1s ease-in-out infinite}
@keyframes hintPulse{50%{opacity:.75}}

#art.decorating{cursor:crosshair}
.side{width:196px;flex:none;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:22px;padding:10px;box-shadow:0 6px 20px #715a8515}
.side #finish{width:100%;font-size:19px}
.side .actions,.side .modes,.side .sizes{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px}
.side .palette,.side .tools{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px;overflow:visible;-webkit-mask-image:none;mask-image:none;padding:0;background:none;border:0}
.side button{min-width:0;padding:8px 0;font-size:22px}
.side .swatch{width:48px;height:48px;justify-self:center;padding:0}
.modes button[aria-pressed=true],.sizes button[aria-pressed=true]{background:var(--purple);box-shadow:0 0 0 3px var(--ink)}
.modes button.locked{opacity:.35}
.sizes i{display:block;margin:auto;width:var(--d);height:var(--d);border-radius:50%;background:currentColor}
.sizes button[aria-pressed=true] i{background:#fff}
body[data-screen=activity] #screen-activity{display:flex;flex-direction:column;height:calc(100dvh - var(--chrome))}
.act-body{flex:1;min-height:0}
.act-scene{flex:1;min-height:0;width:100%;container-type:size;display:grid;place-items:center}
@media(max-width:700px){body[data-screen=paint] #screen-paint{flex-direction:column}.side{width:auto;flex-direction:row;flex-wrap:wrap;max-height:34vh}}

/* ── Painted Vonk and Grijsje ── */
.vonk .fox img{display:block;height:1.25em;width:auto}
.talking #vonk .fox,.talking .garden-vonk .fox,.talking #start-vonk .fox{animation:none}
.talking #vonk,.talking .garden-vonk,.talking #start-vonk{animation:talk .35s ease-in-out infinite alternate}
#vonk{font-size:54px;min-width:0}
.vonk .acc{left:43%;transform:translateX(-50%)}.vonk .acc.head{top:-.28em;font-size:.5em}.vonk .acc.eyes{top:.3em;font-size:.4em}
.garden-vonk{font-size:clamp(120px,19vw,200px);left:1%;bottom:-2%}
.story-art .vonk{font-size:.95em}.grijs{height:1.1em;width:auto;vertical-align:middle}
.cel-vonk{font-size:70px;vertical-align:middle;margin-right:10px}
.grey-cloud{width:110px;height:auto;filter:none;right:-110px}
#garden-scene .zone-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(calc(.75 + var(--colour) * .25)) brightness(calc(.97 + var(--colour) * .03));transition:filter 1.5s}
#garden-scene .zone-lees{display:none}#garden-scene[data-zone=lees] .zone-lees{display:block}#garden-scene[data-zone=lees] .zone-tuin{display:none}
.grijsje{position:absolute;top:3%;left:42%;width:17%;animation:drift 8s ease-in-out infinite alternate;pointer-events:none}
.dress-badge{left:clamp(80px,13vw,140px);bottom:clamp(130px,21vw,220px)}
.wardrobe{left:calc(clamp(120px,19vw,200px) * .85)}

body[data-screen=paint] main,body[data-screen=activity] main,body[data-screen=garden] main{padding-bottom:0}
body[data-screen=paint] #save-status,body[data-screen=activity] #save-status{position:fixed;bottom:0;left:0;right:0;margin:0}
body[data-screen=paint] #screen-paint,body[data-screen=activity] #screen-activity{height:calc(100dvh - var(--chrome) - 8px - env(safe-area-inset-bottom))}
.side .sizes[hidden]{display:none!important}
.side .palette{flex:none}
.side #palette,.side #tools{flex:none;align-content:start}

.focus-card{display:flex;gap:18px;justify-content:center}.focus-card span{font-size:clamp(60px,11vw,110px);font-weight:900;color:var(--purple);background:#fff;border-radius:26px;padding:6px 30px;box-shadow:0 6px 0 #0001}
.examples .example{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 22px;border-radius:24px}
.example .pic{font-size:56px}.example .word{font-size:34px;font-weight:800}.example b{color:var(--purple);text-decoration:underline;text-decoration-thickness:4px}
.example{position:relative}.example.heard:after{content:'✓';position:absolute;top:6px;right:10px;font-size:16px;font-weight:900;color:#75b98a}
.example.saying{animation:jump .5s}
[data-next].ready{animation:readyPulse 1.1s ease-in-out infinite}@keyframes readyPulse{50%{transform:scale(1.07)}}
.info-btn{display:block;margin:18px auto 0;font-size:17px;background:#fff;opacity:.85}

/* Painted icons */
.ico{width:1.3em;height:1.3em;object-fit:contain;vertical-align:middle;pointer-events:none;-webkit-user-drag:none}
.ico.big{width:84px;height:84px}
.round .ico{width:30px;height:30px}
.side button .ico{width:32px;height:32px}
.node .ico{width:46px;height:46px}.node.next .ico{width:58px;height:58px}.node.locked .ico{width:32px;height:32px;opacity:.6}
.chest-meter .chest-icon .ico{width:30px;height:30px}.chest-meter .lock .ico{width:20px;height:20px}
.chest-meter.big .chest-icon .ico{width:60px;height:60px}.chest-meter.big .lock .ico{width:32px;height:32px}
.stamp-choice .ico{width:46px;height:46px}.yn .ico{width:40px;height:40px}.tools .ico{width:32px;height:32px}
.parents-btn .ico{width:26px;height:26px}.tray-label .ico{width:40px;height:40px}.wallet .ico{width:26px;height:26px}
.coin.on{background:url(assets/icons/coin.png) center/contain no-repeat;box-shadow:none}.coin.on::after{content:none}

/* Painted sprites (friends, stickers, clothes, stamps, word pictures) sized like the emoji they replace */
.spr{width:1.15em;height:1.15em;object-fit:contain;vertical-align:middle;pointer-events:none;-webkit-user-drag:none}
.vonk .acc .spr{width:1.25em;height:1.25em}.vonk .acc.eyes .spr{width:1.5em;height:1.1em}
.choices .pic .spr,.pic-card .spr{width:1.1em;height:1.1em}.card .face .spr{width:1.3em;height:1.3em}
.drag-ghost .spr{width:1em;height:1em}
.spr.badge{width:1.4em;height:1.4em}.unit-icon .spr.badge{width:58px;height:58px}.paint-head .spr.badge{width:30px;height:30px}.spr.cel-badge{width:80px;height:80px}
.memory.hoor .card .back .ico{width:1.2em;height:1.2em}.memory.hoor .card.done .face img{width:100%;height:100%;object-fit:contain;border-radius:16px}
.memory.hoor .card.done{background:#fff;overflow:hidden}

.word-card,.choices .word,.card.word,.example .word,.focus-card span{font-family:'Andika','Figtree',system-ui,sans-serif}
.choices.vonk-doet .pic{padding:8px}.choices.vonk-doet img{width:clamp(110px,20vw,190px);height:clamp(110px,20vw,190px);object-fit:contain}

/* 2026 look: a soft, slowly drifting colour aurora behind everything, frosted glass panels on top. */
:root{--glass:rgba(255,255,255,.72);--glass-strong:rgba(255,255,255,.88);--line:rgba(40,30,70,.10);--lift:0 10px 30px rgba(40,30,70,.08),0 1px 2px rgba(40,30,70,.06)}
.aurora{position:fixed;inset:0;z-index:-1;overflow:hidden;background:#f8f7fb;pointer-events:none}
.aurora i{position:absolute;width:60vmax;height:60vmax;border-radius:50%;filter:blur(110px);opacity:.34;animation:drift 38s ease-in-out infinite alternate;will-change:transform}
.aurora i:nth-child(1){background:#6ba6e2;left:-18vmax;top:-20vmax}
.aurora i:nth-child(2){background:#f4ce5e;left:38vw;top:-24vmax;animation-delay:-9s}
.aurora i:nth-child(3){background:#f39cc3;right:-20vmax;top:18vh;animation-delay:-18s}
.aurora i:nth-child(4){background:#75b98a;left:-10vmax;bottom:-28vmax;animation-delay:-27s}
@keyframes drift{to{transform:translate(6vmax,4vmax) scale(1.12)}}
@media(prefers-reduced-motion:reduce){.aurora i{animation:none}}
button{background:var(--glass-strong);border:1px solid var(--line);box-shadow:0 2px 8px rgba(40,30,70,.06)}
.primary{background:#2f2b40;color:#fff;border-color:transparent;box-shadow:0 6px 18px rgba(47,43,64,.25)}
.top,#vonk-bar,.toolbar,.tools,.word-card,.pic-card,.read-card,.wardrobe{background:var(--glass);border:1px solid var(--line);box-shadow:var(--lift);-webkit-backdrop-filter:blur(22px) saturate(1.2);backdrop-filter:blur(22px) saturate(1.2)}
.top{border-width:0 0 1px}
.bubble{background:var(--glass-strong);border:1px solid var(--line);box-shadow:none}.bubble:before{display:none}
.nav,.wallet,.track-tabs button,.info-btn{background:var(--glass-strong)}
h1{letter-spacing:-.03em;font-weight:850}
.vonk,button.vonk,.garden-vonk,.node,.card,.swatch,.act-scene button{border:0}.vonk,button.vonk{background:none;box-shadow:none}

#garden-scene{max-height:min(62vh,calc(100dvh - var(--chrome) - 235px));min-height:220px}
.sticker-tools .done-btn{background:#2f2b40;color:#fff}
/* Garden drags on iPad: a vertical drag out of the tray and any drag of a placed treasure belong to the game, not to scrolling. */
#tray button{touch-action:pan-x}#garden-scene .placed{touch-action:none}
/* ── Immersive garden: no text bar (Vonk still speaks), the garden as big as the screen allows, tools in a column on the right ── */
body[data-screen=garden] #vonk-bar{display:none}
body[data-screen=garden] main{max-width:none;padding:8px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
body[data-screen=garden] #screen-garden{display:flex;gap:12px;height:calc(100dvh - 94px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}@media(min-width:701px){body[data-screen=garden]{overflow:hidden}}
.garden-main{flex:1;min-width:0;min-height:0;container-type:size;display:grid;place-items:center}
#garden-scene,body[data-screen=garden] #garden-scene{width:min(100cqw,calc(100cqh * 16 / 9));max-height:none;min-height:0;margin:0}
.garden-side{width:212px;flex:none;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain;background:var(--glass-strong,#fff);border:1px solid var(--line,#0000);border-radius:22px;padding:10px}
.garden-side .zone-tabs{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}.garden-side .zone-tabs button{padding:8px 4px;font-size:15px;min-width:0}
.garden-side .friends-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:0}.garden-side .friends-bar button{font-size:22px;padding:2px;min-height:40px;min-width:0}.garden-side .fb-count{grid-column:1/-1;text-align:center;margin:0}
.garden-side #tray{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;flex:1;align-content:start;min-height:60px}.garden-side #tray button{min-width:0;padding:6px 0;font-size:34px}.garden-side #tray .empty{grid-column:1/-1;text-align:center}
.garden-side #tray button{touch-action:none}/* the column scrolls, the tray buttons drag */
.garden-side #seek,.garden-side #play-on{width:100%;font-size:17px;white-space:nowrap;padding-inline:6px}
@media(max-width:700px){body[data-screen=garden] #screen-garden{flex-direction:column;height:auto}.garden-main{container-type:inline-size}#garden-scene,body[data-screen=garden] #garden-scene{width:100%}.garden-side{width:auto;overflow:visible}.garden-side .friends-bar{grid-template-columns:repeat(7,1fr)}.garden-side #tray{grid-template-columns:repeat(auto-fill,minmax(56px,1fr))}}
/* The speech bar shows the game icon instead of a tiny full-body Vonk. */
#vonk .app-icon{display:block;width:58px;height:58px;border-radius:16px;box-shadow:0 3px 10px #0002}
@media(max-width:700px){#vonk .app-icon{width:44px;height:44px;border-radius:12px}}
/* Story beats on the intro film's stills: the painting fills the card. */
.story-art.still{padding:0;overflow:hidden;background:#2f2b40;aspect-ratio:16/9;min-height:0;width:min(100%,calc((100dvh - var(--chrome) - 90px) * 16 / 9));max-width:1100px}
.story-art.still img{width:100%;height:100%;object-fit:cover;display:block}
/* Verhaal = the intro film, with a big language switch above it (the story matters, so English is one tap away). */
.story-film,.film-lang{display:none}
body.film .story-film{display:block;position:relative;margin:0 auto;aspect-ratio:16/9;width:min(100%,calc((100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));max-width:1400px;border-radius:28px;overflow:hidden;background:#2f2b40;box-shadow:0 10px 30px #715a8533}
body.film .story-film video{width:100%;height:100%;display:block;object-fit:cover}
body.film .film-lang{display:inline-flex;gap:6px;padding:6px;margin:0 auto 12px;border-radius:999px;background:#ffffffb8;backdrop-filter:blur(10px);box-shadow:0 4px 14px #715a8522}
.film-lang button{font-size:20px;padding:10px 20px;border-radius:999px;background:transparent;box-shadow:none;border:0}
.film-lang button[aria-pressed=true]{background:#2f2b40;color:#fff}
body.film #story-art,body.film #story-dots,body.film[data-screen=story] #vonk-bar{display:none}
body.film[data-screen=story] #screen-story{padding-top:12px}
.film-play{position:absolute;inset:0;margin:auto;width:112px;height:112px;border-radius:50%;background:#ffffffd9;box-shadow:0 6px 24px #0004;display:flex;align-items:center;justify-content:center;border:0}
.film-play .ico{width:52px;height:52px;margin-left:8px}
.story-film.playing .film-play{display:none}
.film-bar{position:absolute;left:0;right:0;bottom:0;height:6px;background:#fff3}.film-bar i{display:block;height:100%;width:0;background:#ffd84a}
body.film #screen-story .row{margin-top:12px}
body.film:not(.film-done) #story-next{display:none}
/* Phase V3: Tel mee, Lees het getal, Tegenstellingen, Zinnen bouwen */
.tel-tray{position:relative;width:min(520px,92vw);aspect-ratio:4/3;background:var(--glass);border:1px solid var(--line);border-radius:28px;box-shadow:var(--lift)}
.tel-item{position:absolute;left:calc(var(--c)*25% + 12.5%);top:calc(var(--r)*33.3% + 16.6%);transform:translate(-50%,-50%) rotate(calc(var(--j)*40deg));font-size:clamp(44px,8vw,70px);cursor:pointer;line-height:1}
.tel-item .spr{width:1.1em;height:1.1em}
.tel-item.counted::after{content:attr(data-n);position:absolute;right:-.2em;top:-.2em;font:800 .36em/1.5em Figtree,sans-serif;width:1.5em;height:1.5em;border-radius:50%;background:var(--purple,#8a5cc2);color:#fff;text-align:center}
.tel-tray.small{width:clamp(150px,28vw,240px);border:0;box-shadow:none;background:none}
.tel-tray.small .tel-item{font-size:clamp(24px,4.2vw,38px);cursor:inherit}
.choices.groups .pic{padding:6px}
.choices .digit{font-size:clamp(40px,7vw,64px);min-width:110px;font-weight:900}
.tg{display:inline-flex;align-items:center;justify-content:center;width:1.3em;height:1.3em;vertical-align:middle}.tg.tg .spr{width:1.3em;height:1.3em}
.choices.tegen .pic{font-size:clamp(90px,17vw,160px);padding:14px 22px}
.pic-card.zin{padding:10px 24px}.zin-pic{width:clamp(120px,22vw,200px);height:clamp(120px,22vw,200px);object-fit:contain;display:block}
.zin-line{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:10px 0}
.zin-line .slot{min-width:90px;min-height:1.4em;border-bottom:4px dashed var(--line,#0003);font:800 clamp(28px,5vw,42px)/1.3 'Andika','Figtree',sans-serif;text-align:center;padding:0 6px}
.zin-line .slot.filled{border-bottom-style:solid;border-color:#75b98a}
.choices.tiles .tile.used{visibility:hidden}
/* Start screen: a warm, playful Spelen button (Vonk's orange to pink) and a soft parents button */
#start{background:linear-gradient(135deg,#f7954d,#ec6a8c);color:#fff;font-size:28px;padding:18px 44px;border-radius:999px;box-shadow:0 8px 22px rgba(239,127,154,.35),inset 0 -3px 0 rgba(0,0,0,.08);text-shadow:0 1px 2px rgba(120,50,40,.25)}
#start .ico{background:#fff;border-radius:50%;padding:3px;box-sizing:content-box}
.info-btn{border-radius:999px;padding:8px 18px;font-size:16px;font-weight:700;color:var(--ink);opacity:1}
.info-btn .ico{width:22px;height:22px}
.map-top{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;margin-bottom:16px;position:sticky;top:calc(150px + env(safe-area-inset-top));z-index:3}.map-top .track-tabs{margin:0;position:static}.map-top .story-card{font-size:17px;padding:10px 18px;border-radius:999px;background:var(--glass-strong,#fff)}

/* Path: the current node (bigger, with a ring and the START tag) needs room below the unit header and its neighbours. */
.node-row:has(.node.next){margin:34px 0 18px}
.node .done-star{position:absolute;right:-6px;top:-6px;width:34px;height:34px;display:grid;place-items:center;background:#fff;border-radius:50%;box-shadow:0 2px 0 #0002}
.node .done-star .ico{width:26px;height:26px}
.skills{display:grid;gap:12px;max-width:720px;margin:0 auto;padding:0 16px 40px}
.skill{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"i n b" "i bar c";align-items:center;gap:6px 14px;text-align:left;background:var(--glass);border:1px solid var(--line);box-shadow:var(--lift);border-radius:22px;padding:12px 18px;font:inherit;color:inherit;cursor:pointer}
.skill .ico{grid-area:i;width:44px;height:44px}.skill b{grid-area:n;font-size:20px}.skill b small{display:block;font-size:13px;font-weight:600;opacity:.6}
.skill .bar{grid-area:bar;height:16px;border-radius:9px;background:#0001;overflow:hidden}.skill .bar i{display:block;height:100%;min-width:4px;border-radius:9px;background:linear-gradient(90deg,#7fc8a9,#f2c14e,#ef8f6f)}
.skill .count{grid-area:c;font-weight:900;font-size:20px;text-align:right}.skill .badges{grid-area:b;font-size:22px;letter-spacing:2px;color:#0002}.skill .badges .on{color:#f2b630;text-shadow:0 2px 0 #c98a1a55}

/* Vriendenboek: every friend of both tracks; rescued ones in colour with their word, the rest as silhouettes. */
.book{max-width:900px;margin:0 auto;padding:0 16px 40px}.book h2{display:flex;align-items:center;gap:10px;margin:18px 4px 10px}.book h2 small{font-size:18px;color:#6a5d80}
.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.book-card{display:grid;justify-items:center;gap:4px;padding:12px 8px 10px;border-radius:22px;background:var(--glass);border:1px solid var(--line);box-shadow:var(--lift);font:inherit;color:inherit;cursor:pointer;border-top:6px solid var(--tint)}
.book-card .pic{font-size:64px;line-height:1;height:84px;display:grid;place-items:center}.book-card .pic .spr{width:84px;height:84px;object-fit:contain}
.book-card b{font-size:19px}.book-card small{font-size:13px;opacity:.65;display:flex;align-items:center;gap:4px;text-align:center}.book-card small .badge{width:20px;height:20px}
.book-card.missing{background:#0000000a;box-shadow:none}.book-card.missing b{opacity:.45}
#book-btn{width:100%}

/* No pinch zoom: a hand resting on the iPad zoomed the page in and a child can't get back. Scrolling still works. */
html,body{touch-action:pan-x pan-y}

/* Vormen: trace the dots (they light up), then the shape fills; or tap one of three shapes. */
.trace{width:min(78vw,52vh,440px);margin:0 auto;touch-action:none}.trace svg{display:block;width:100%;touch-action:none;background:var(--glass);border-radius:28px;box-shadow:var(--lift)}
.trace .dot{fill:#fff;stroke:#3f3d52;stroke-width:2.5;transition:fill .15s,r .15s}.trace .dot.lit{fill:#f2b630;r:7}.trace .dot.hint{animation:hintPulse 1s ease-in-out infinite;fill:#f4ce5e}
.trace .trace-fill{opacity:0;transition:opacity .6s}.trace.done .trace-fill{opacity:1}.trace.done .dot{opacity:0;transition:opacity .4s}
.choices.shapes .shape-pick{padding:14px}.shape-pick .shape{width:min(26vw,170px);height:auto;display:block}

/* Ballonnen: balloons drift up in four lanes and come round again; a hint slows them down. */
.sky{--skyH:min(62vh,560px);position:relative;width:min(100%,760px);height:var(--skyH);margin:0 auto;overflow:hidden;border-radius:28px;background:linear-gradient(#cfe6fb,#eef6ff)}
.balloon{border:0!important;outline:0;background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;min-height:0;min-width:0;border-radius:0;position:absolute;left:calc(4% + var(--i) * 24%);bottom:-46%;width:21%;background:none;box-shadow:none;padding:0;display:grid;justify-items:center;animation:balloonRise 11s linear infinite;animation-delay:calc(var(--d) * -1)}
.sky.slow .balloon{animation-duration:22s}
.balloon .ball{width:100%;aspect-ratio:.85;border-radius:50% 50% 48% 48%;background:radial-gradient(circle at 32% 28%,#fff9,transparent 32%),hsl(var(--hue) 70% 72%);display:grid;place-items:center;box-shadow:inset -8px -10px 0 #0001,0 4px 8px #0002}
.balloon img{width:72%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:50%;padding:6%}
.balloon .string{display:block;width:2px;height:60px;background:#0004}
.balloon.nope .ball{animation:balloonNope .5s}.balloon.popped{animation:balloonPop .35s forwards}.balloon.hint .ball{box-shadow:0 0 0 6px #f4ce5e}
@keyframes balloonRise{from{transform:translateY(0)}to{transform:translateY(calc(-1 * var(--skyH) - 100%))}}
@keyframes balloonPop{to{transform:scale(1.5);opacity:0}}@keyframes balloonNope{25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}
/* Wat is weg? */
.weg-cards{margin-top:12px}.weg-card img{width:min(22vw,130px);aspect-ratio:1;object-fit:contain}.weg-cloud{transition:opacity .5s}.weg-cloud.gone{opacity:0}
/* Zoek in het donker: everything dark except a torch circle around the finger. */
.act-scene.dark{position:relative;--x:50%;--y:50%}
.act-scene.dark .torch{position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at var(--x) var(--y),transparent 0 90px,#0b0b22ee 145px);transition:opacity .6s}
.act-scene.dark.dim .torch{opacity:.55}

/* Reading balloons carry words; Woord bouwen uses the Zinnen-bouwen tiles. */
.sky.short{--skyH:min(48vh,440px);margin-top:10px}.balloon .bword{font-size:clamp(18px,3vw,30px);background:#fff;border-radius:12px;padding:2px 8px}
.word-line .slot{min-width:1.6em;font-size:clamp(28px,5vw,44px)}
/* Press and hold names things: no iPad text selection or picture menu on a long press. */
#screen-activity,#screen-paint{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

/* Vonks week: seven day cards in a row (two rows on a phone); times of day as four big cards. */
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;width:min(100%,980px);margin:4vh auto 0}
.day{display:grid;justify-items:center;gap:4px;padding:10px 4px;font-size:clamp(40px,8vw,96px);border-radius:18px;background:hsl(calc(var(--i) * 50) 70% 92%)}
.day b{font-size:16px;width:26px;height:26px;border-radius:50%;background:#fff;display:grid;place-items:center}.day small{font-size:15px;font-weight:800}.day .spr{width:1.2em;height:1.2em}
@media(max-width:700px){.week{grid-template-columns:repeat(4,minmax(0,1fr))}}
.time-card{font-size:clamp(56px,10vw,96px)}

.pic-row{display:flex;gap:14px;justify-content:center;margin:10px 0}.pic-row .pic{font-size:72px}.zin-pic.word-pic{font-size:96px;display:block;text-align:center}

/* Selected sticker: only a small round bin above it (pinch or mouse wheel to resize, tap elsewhere to deselect). */
.sticker-tools{padding:3px;border-radius:50%}.sticker-tools button{min-width:44px;min-height:44px;padding:6px;border-radius:50%}.sticker-tools .ico{width:28px;height:28px}
/* Main buttons look like the start button (warm, bright); one that can't be used yet is plainly grey. The button that is
   the next step pulses and gets a bouncing pointing hand, so a child who can't read still sees where to go. */
.primary,#confirm-yes,#settings-close{background:linear-gradient(135deg,#f7954d,#ec6a8c);color:#fff;border-color:transparent;box-shadow:0 6px 18px rgba(239,127,154,.35),inset 0 -3px 0 rgba(0,0,0,.08);text-shadow:0 1px 2px rgba(120,50,40,.25)}
.primary .ico{background:#fff;border-radius:50%;padding:2px;box-sizing:content-box}
.primary:disabled{background:#e4dfea;color:#9a93a8;box-shadow:none;text-shadow:none}.primary:disabled .ico{opacity:.5}
.primary.pulse:not(:disabled),.primary.ready{position:relative;overflow:visible}
.primary.pulse:not(:disabled)::after,[data-next].ready::after{content:'👈';position:absolute;right:-1.6em;top:50%;font-size:30px;line-height:1;transform:translateY(-50%);animation:pointAt .9s ease-in-out infinite;pointer-events:none;text-shadow:none}
@keyframes pointAt{50%{transform:translate(-8px,-50%)}}
@media(prefers-reduced-motion:reduce){.primary.pulse::after,[data-next].ready::after{animation:none}}

.choices .pic.feel .spr{width:min(26vw,220px);height:min(26vw,220px)}
.node .ico.game-ico{width:74%;height:74%}/* painted game icons fill the circle */

/* Kleurland map: area cards (until the painted map exists; then hotspots on it). */
.kaart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:960px;margin:0 auto;padding:0 16px 30px}
.kaart.painted{display:block;position:relative;aspect-ratio:16/9;padding:0;border-radius:24px;overflow:hidden;box-shadow:var(--lift)}.kaart.painted>img{width:100%;height:100%;object-fit:cover;display:block}
.area{position:relative;display:grid;gap:6px;padding:8px;border-radius:22px;background:var(--glass);border:1px solid var(--line);box-shadow:var(--lift);font:inherit;color:inherit;cursor:pointer}
.area .pic{aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#e7e2ee;display:grid;place-items:center;font-size:56px}.area .pic img{width:100%;height:100%;object-fit:cover}
.area b{font-size:18px}.area.locked .pic{filter:grayscale(1) opacity(.55)}.area .lock{position:absolute;top:14px;right:14px;background:#fff;border-radius:999px;padding:4px 10px;font-weight:800;box-shadow:0 2px 6px #0002}
.kaart.painted .area{position:absolute;transform:translate(-50%,-50%);background:#fffd;padding:6px 12px;display:flex;align-items:center;gap:6px}.kaart.painted .area .pic{display:none}
.zone-head{display:flex;align-items:center;gap:8px;margin:0 0 8px}.zone-head b{font-size:18px}.kaart-btn{padding:8px 12px;min-height:44px}
@media(max-width:700px){.kaart{grid-template-columns:repeat(2,minmax(0,1fr))}}
.friends-bar button.here{box-shadow:0 0 0 3px #f2c14e}
.kaart:not(.painted) .area{left:auto!important;top:auto!important}
.kaart.painted .area .lock{position:static;box-shadow:none;padding:0 0 0 2px;background:none}.kaart.painted .area.locked{opacity:.85}.kaart.painted{max-width:min(960px,150vh)}

/* Vriendenboek: the way on is always in view (pinned at the bottom); a grey friend shows "Ga erheen". */
.book{padding-bottom:110px}
.book-actions{position:sticky;bottom:0;display:flex;gap:12px;justify-content:center;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg,#faf3e5) 35%)}
.book-card .go{display:none;align-items:center;gap:4px;margin-top:4px;padding:6px 12px;border-radius:999px;background:linear-gradient(135deg,#f7954d,#ec6a8c);color:#fff;font-weight:800;font-size:15px}
.book-card .go .ico{width:20px;height:20px;background:#fff;border-radius:50%}
.book-card.missing:focus .go,.book-card.missing.tapped .go{display:inline-flex;animation:readyPulse 1.1s ease-in-out infinite}

/* Vonks verhalenboek: one page at a time, the sentence under the picture. */
.sb{display:flex;align-items:center;justify-content:center;gap:10px;max-width:1000px;margin:0 auto;padding:0 12px}
.sb-page{flex:1;min-width:0;max-width:820px;margin:0;background:#fffaf0;border-radius:22px;padding:12px;box-shadow:0 6px 0 #0001,0 10px 30px #0002}
.sb-art{position:relative;width:100%;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:#f1e9da}
.sb-art>img{display:block;width:100%;height:100%;object-fit:cover}.sb-art img.veiled{filter:grayscale(1) blur(6px) opacity(.6)}
.sb-page.locked .sb-art img{filter:grayscale(1) blur(14px) opacity(.45)}
.sb-page figcaption{display:flex;align-items:center;justify-content:center;gap:14px;min-height:64px;padding:10px 6px 2px;font-size:clamp(22px,3.4vw,34px);font-weight:800;color:#3d3352;text-align:center}
.sb-page.locked figcaption span{color:#9a8fae}
#sb-say{flex:none;width:52px;height:52px;border-radius:50%;padding:0;display:grid;place-items:center}#sb-say .ico{width:30px;height:30px}
.sb-page.locked #sb-say,.sb-page.locked #sb-en{visibility:hidden}
.sb-words{display:flex;flex-direction:column;gap:4px;min-width:0}.sb-page.listen figcaption{font-size:clamp(18px,2.6vw,27px)}
#sb-en-text{display:none;font-size:.62em;font-weight:700;color:#6f6585;font-style:italic}.sb-page.show-en #sb-en-text{display:block}
.sb-en{flex:none;height:52px;border-radius:999px;padding:0 12px 0 10px;display:flex;align-items:center;gap:4px;background:#eaf1ff;border:2px solid #b9cdf3}.sb-en .flag{font-size:28px;line-height:1}.sb-en .en-word{font-size:17px;font-weight:800;color:#2f4f8f}
.sb-tabs{position:static;margin:0 0 12px}
.sb-arrow{flex:none;width:56px;height:56px;border-radius:50%;padding:0;font-size:40px;line-height:1;font-weight:900}
.sb-arrow:disabled{opacity:.3}
.sb-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px auto;max-width:600px;padding:0 16px}
.sb-dots i{width:12px;height:12px;border-radius:50%;background:#d9d0e6}.sb-dots i.got{background:#e8a33d}.sb-dots i.now{outline:3px solid var(--purple);outline-offset:1px}
@media (max-width:600px){.sb{gap:4px;padding:0 4px}.sb-arrow{width:40px;height:40px;font-size:30px}}
.sb-page{max-width:min(820px,calc((100dvh - 470px)*4/3 + 24px))}
#screen-storybook .book-actions{position:static;background:none}

/* Letter path */
.abc{font-family:'Andika',system-ui,sans-serif;font-weight:700;letter-spacing:-.02em}.track-tabs .abc{font-size:17px;color:#d9775b}.track-tabs [aria-selected=true] .abc{color:#fff}
.lsvg{display:block;fill:none;stroke:currentColor;stroke-width:22;stroke-linecap:round;stroke-linejoin:round}
.letter-zie{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap;margin:6px 0 18px}
.letter-big{width:min(230px,40vw);aspect-ratio:160/245;height:auto;padding:16px;border-radius:30px;background:#fff;color:#3d3352;box-shadow:0 6px 0 #0001}.letter-big .lsvg{width:100%;height:100%}
.letter-zie .examples{margin:0}.letter-zie .example .word b{color:#d9775b}
.letter-zie .saying{animation:hop .5s}
.sky.letters .ball{display:grid;place-items:center;color:#3d3352}.sky.letters .ball .lsvg{width:48%;height:72%;stroke-width:20}
.memory .card .face .lsvg{width:44%;height:78%;color:#3d3352}.memory .card.done .face{display:flex;align-items:center;justify-content:center;gap:4px}.memory .card.done .face .lsvg{width:30%;height:60%}.memory .card.done .face .pic{font-size:34px}.memory .card.done .face .pic img{width:52px;height:52px;object-fit:contain}
.trace.letter-trace{width:min(80vw,calc(64vh*170/245),420px)}
.letter-trace .guide{fill:none;stroke:#ebe5f3;stroke-width:26;stroke-linecap:round;stroke-linejoin:round;transition:stroke .6s}
.letter-trace.done .guide{stroke:var(--c)}
.letter-trace .start circle{fill:#4caf6a;stroke:#fff;stroke-width:3}.letter-trace .start text{fill:#fff;font-size:13px;font-weight:900;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.letter-trace .start{pointer-events:none}.letter-trace.done .start{opacity:0;transition:opacity .4s}
.letter-zie .example{padding:16px 26px}.letter-zie .example .pic{font-size:96px;line-height:1}.letter-zie .example .pic img{width:min(140px,26vw);height:min(140px,26vw);object-fit:contain}.letter-zie .example .word{font-size:46px}
.letter-trace .next-ring{fill:none;stroke:#4caf6a;stroke-width:5;pointer-events:none;animation:ringPulse 1.1s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes ringPulse{50%{stroke-width:8;opacity:.7}}.letter-trace .next-ring.nudge{animation:ringNudge .5s 2}@keyframes ringNudge{50%{transform:scale(1.8)}}
.letter-trace .stroke-no{fill:#b7aec6;font-size:16px;font-weight:900;text-anchor:middle;dominant-baseline:central;pointer-events:none}.letter-trace .stroke-no.now{fill:#4caf6a}.letter-trace.done .stroke-no{opacity:0}
.letter-trace.oops svg{animation:balloonNope .4s}
.sky.hold .balloon{animation-play-state:paused}
.sky.letters .balloon{animation-duration:14s}.sky.letters.slow .balloon{animation-duration:24s}

/* Story pages */
.sb-title{text-align:center;margin:-4px 0 8px;font-size:clamp(18px,2.6vw,26px);font-weight:800;color:#b9772a;min-height:1.2em}
.sb-pagedots{display:flex;justify-content:center;gap:6px;margin-top:8px}.sb-pagedots i{width:22px;height:5px;border-radius:3px;background:#e4dcef}.sb-pagedots i.on{background:var(--purple)}
.sb-standin{position:relative;height:100%;display:grid;place-items:center}.sb-standin .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(3px) saturate(.8) brightness(1.05)}
.sb-standin .sb-friend-art{position:relative;width:46%;filter:drop-shadow(0 8px 14px #0003);animation:popIn .6s cubic-bezier(.3,1.6,.5,1) both}
.sb-fact{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4%;background:radial-gradient(circle at 50% 60%,#fff7d6,#ffe6b8 70%)}
.sb-fact b{font-size:clamp(26px,4.6vw,52px);color:#b9772a}.sb-fact .sb-friend-art{width:44%}
@keyframes popIn{from{transform:scale(.3);opacity:0}}
.friend-row .friend-story{min-height:0;padding:8px 16px;border-radius:999px;font-size:17px;font-weight:800;margin-top:8px;background:#fff3d6;color:#8a5a14;box-shadow:0 3px 0 #e8a33d66}
.sb-art .spr{height:auto;max-height:none}.sb-friend .bubble-pop{z-index:1}
#sb-page figcaption{font-size:clamp(17px,2.3vw,25px);min-height:0}.sb-letters .lsvg{height:62%}
.sb-art img.own{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Mijn woordenboek: word cards bought with coins (4 coins, 3 cards); tap a card to hear the word. */
.album-top{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:4px 16px 6px}.album-count{font-weight:800;color:#6a5d80;font-size:18px}
#album-price .coin{width:22px;height:22px;margin-left:2px}
.album .book-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
.album .book-card .pic img{width:84px;height:84px;object-fit:contain;border-radius:12px}
.album .book-card.missing .pic{font-size:40px;color:#0003}
#album-btn{width:100%}
#screen-album .book-actions{position:static;background:none;justify-content:center;display:flex;margin-bottom:20px}
/* Garden moods: night, snow, autumn and a rainbow day, for every area (bought in the chest). */
.mood-btn{position:absolute;left:12px;top:12px;z-index:5;font-size:26px;width:54px;height:54px;min-width:0;padding:0;border-radius:50%;background:var(--glass);box-shadow:var(--lift)}
.mood-fx{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.mood-fx i{position:absolute;top:-8%;font-style:normal;animation:mood-fall linear infinite;opacity:.9}
#garden-scene[data-mood=night] .zone-bg{filter:brightness(.55) saturate(.8) hue-rotate(10deg)}
#garden-scene[data-mood=night] .mood-fx{background:linear-gradient(#1b2350aa,#1b235022 60%,#0000)}
#garden-scene[data-mood=night] .mood-fx i{animation:mood-twinkle 2.4s ease-in-out infinite;top:auto}
#garden-scene[data-mood=snow] .zone-bg{filter:brightness(1.08) saturate(.7)}
#garden-scene[data-mood=snow] .mood-fx{background:linear-gradient(#fff0 55%,#ffffffb0)}
#garden-scene[data-mood=autumn] .zone-bg{filter:sepia(.35) saturate(1.35) hue-rotate(-12deg)}
#garden-scene[data-mood=rainbow] .mood-fx::before{content:'';position:absolute;left:10%;right:10%;top:6%;aspect-ratio:2/1;border-radius:50% 50% 0 0/100% 100% 0 0;
  background:radial-gradient(circle at 50% 100%,#0000 52%,#9b7fd4cc 53%,#6ba6e2cc 57%,#75b98acc 61%,#f4ce5ecc 65%,#efa461cc 69%,#ee686acc 73%,#0000 74%)}
@keyframes mood-fall{from{transform:translateY(0) rotate(0)}to{transform:translateY(120vh) rotate(360deg)}}
@keyframes mood-twinkle{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
@media (prefers-reduced-motion:reduce){.mood-fx i{animation:none}}
/* Resize handle at the selected garden sticker's corner (drag it; mouse or finger). */
.size-handle{position:absolute;z-index:5;width:34px;height:34px;min-width:0;min-height:0;padding:0;box-sizing:border-box;aspect-ratio:1;border-radius:50%;transform:translate(-40%,-40%);
  background:#fff radial-gradient(circle,var(--purple) 0 6px,#0000 7px);border:3px solid var(--purple);box-shadow:0 3px 8px #0003;cursor:nwse-resize;touch-action:none}
/* Vonk's things, placed per item and pose (src/wear.js). */
.vonk .acc.fit{font-size:1em;transform:translate(-50%,-50%);line-height:0}
.vonk .acc.fit .spr{width:100%;height:auto;display:block}
.vonk .acc.fit.full{transform:none}

/* Track choice: light cards with a tinted picture well (2026-10-09). */
#screen-tracks h1{font-size:clamp(28px,4vw,40px);letter-spacing:-.02em;margin:28px 0 6px}
.doors{display:flex;gap:28px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.door{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:min(290px,86vw);padding:18px 18px 26px;border-radius:28px;background:#fff;color:#2f2b40;
  box-shadow:0 1px 2px #2f2b4010,0 12px 32px -12px #2f2b4030;font-size:24px;transition:transform .2s,box-shadow .2s}
.door:hover,.door:focus-visible{transform:translateY(-4px);box-shadow:0 1px 2px #2f2b4010,0 20px 40px -14px #2f2b4045}
.door:active{transform:scale(.98)}
.door-icon{display:grid;place-items:center;width:100%;height:170px;border-radius:20px;background:var(--wash);margin-bottom:10px}
.door-icon .ico{width:110px;height:110px}.door-icon .abc{font-size:72px;line-height:1;color:var(--tint)}
.door b{font-weight:800;letter-spacing:-.01em}.door small{font-size:15px;font-weight:600;color:#7a7290}
.door.suggested{box-shadow:0 0 0 4px var(--tint),0 20px 40px -14px #2f2b4045;animation:breathe 2.4s infinite}
.door.suggested::after{content:'';position:absolute;top:-14px;right:-14px;width:44px;height:44px;border-radius:50%;background:#fff url(assets/icons/star.png) center/30px no-repeat;box-shadow:0 4px 12px #2f2b4030}
.who-btn{display:flex;align-items:center;gap:6px;padding-top:4px;padding-bottom:4px}.who-btn .avatar{width:36px;height:36px;object-fit:contain}

/* Parent dashboard (Voortgang). */
#pane-progress h4{margin:14px 0 6px;font-size:15px;color:#6a6280;font-weight:700}
.prog-kids{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}.prog-kids button{display:flex;align-items:center;gap:6px;font-size:16px;background:#f3eefb;padding:4px 12px 4px 6px;min-height:0}
.prog-kids button[aria-pressed=true]{background:var(--purple);color:#fff}.prog-kids .avatar{width:32px;height:32px;object-fit:contain}
.prog-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.prog-card{background:#faf8fd;border:1px solid #ece6f5;border-radius:18px;padding:4px 16px 14px}.prog-card .hero{font-size:34px;font-weight:800;margin:0;letter-spacing:-.02em}.prog-card .hero small{font-size:15px;color:#6a6280}
.bars{display:flex;align-items:flex-end;gap:6px;height:110px;margin-top:8px}
.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:3px}
.bar-col i{display:block;width:70%;max-width:26px;background:#b7a6dc;border-radius:4px 4px 0 0}.bar-col.today i{background:var(--purple)}
.bar-col:hover i{background:var(--purple)}
.bar-val{font-size:12px;color:#6a6280;min-height:14px}.bar-day{font-size:12px;color:#6a6280;border-top:1px solid #e3dcf0;align-self:stretch;text-align:center;padding-top:3px}
.prog-track{display:grid;grid-template-columns:80px 1fr auto;align-items:center;gap:8px;font-size:14px;margin:6px 0}.prog-track .meter{display:block;height:8px;border-radius:5px;background:#ece5f3;overflow:hidden}.prog-track .fill{display:block;height:100%;background:var(--purple);border-radius:5px}
.tricky{display:flex;flex-wrap:wrap;gap:8px}.tricky-word{background:#fff4e8;border:1px solid #f6dcc0;border-radius:12px;padding:6px 10px;font-size:16px}
.tricky-word small,.gloss{color:#7a7290;font-weight:500}
.all-words{margin-top:12px}.all-words summary{cursor:pointer;font-weight:700;color:var(--purple)}
.all-words table{width:100%;border-collapse:collapse;margin-top:8px;font-size:15px}.all-words th{text-align:left;color:#6a6280;font-weight:600;border-bottom:1px solid #e3dcf0;padding:4px 6px}
.all-words td{padding:5px 6px;border-bottom:1px solid #f1edf7}.all-words td:nth-child(n+3){font-variant-numeric:tabular-nums}
