.leaf-entry{display:flex;align-items:center;gap:clamp(20px,4vw,54px);margin:0 0 32px;padding:18px clamp(16px,3vw,40px);color:var(--ink);text-decoration:none;background:var(--paper);border:2px solid var(--ink);border-radius:40px 12px 40px 12px}
.entry-art{position:relative;display:grid;justify-items:center;align-items:center;flex:0 1 260px;min-width:0}.entry-copy{display:grid;gap:7px;flex:1}.entry-copy strong{font:600 clamp(24px,3.4vw,44px)/1.1 var(--display)}.entry-copy b{margin-top:7px;color:var(--action)}.entry-guide{height:112px;width:100%;object-fit:contain}.entry-word{font:64px/1.2 Andika;color:var(--ink)}.entry-word b{color:var(--action)}.sample-line{font:clamp(16px,2vw,22px) Andika;text-align:center}.mini-scene{position:relative;display:block;width:128px;height:105px}.mini-pan{position:absolute;width:112px;height:105px;object-fit:contain;left:8px}.mini-nut{position:absolute;width:39px;height:43px;object-fit:contain;top:42px;left:35px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.leaf-page{--blue:var(--action);--plum:var(--violet,var(--ink));--wash:color-mix(in srgb,var(--soft) 32%,#fff);--sky:var(--hero-field,#f4eedf);font:18px/1.45 Andika,sans-serif;color:var(--ink);background:var(--paper);min-height:100vh}
.leaf-head,.leaf-main{width:min(1100px,94%);margin:auto}.leaf-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid color-mix(in srgb,var(--ink) 28%,transparent);min-height:76px}.leaf-head img{display:block;width:clamp(125px,16vw,182px);height:auto}.leaf-head a,.finish a{color:var(--ink);display:inline-flex;align-items:center;min-height:56px;text-underline-offset:5px}.leaf-head a:first-child{padding:5px 0}
.leaf-title,.story-line,.tray,.switch-board,.print-board,.finish>div{display:flex;align-items:center}.leaf-title{justify-content:space-between;gap:16px;padding:20px 0 16px}.leaf-title h1,.finish h2{margin:0;font:600 clamp(27px,3.3vw,44px)/1.12 var(--display);color:var(--plum)}#progress{font-size:16px;white-space:nowrap}
.leaf-main #field{overflow:hidden;isolation:isolate;position:relative;border:2px solid var(--ink);border-radius:clamp(20px,3vw,42px) 12px clamp(20px,3vw,42px) 12px;background:#fffaf0}
.leaf-page button{touch-action:manipulation;font:inherit;color:var(--ink);cursor:pointer}.leaf-page button:disabled{cursor:default}.leaf-page :focus-visible,.leaf-entry:focus-visible{outline:4px solid var(--action);outline-offset:-4px}.leaf-page svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.story-line{padding:18px clamp(12px,3vw,42px);min-height:100px;justify-content:space-between;gap:12px}.story-line h2{font:400 clamp(27px,4.8vw,65px)/1.18 Andika;margin:0;letter-spacing:0}.story-line:has(small){flex-wrap:wrap}.story-line small{font-size:15px}.story-line small+h2{flex:1 1 75%}
.leaf-control{min-width:64px;min-height:64px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;background:white;border:2px solid var(--ink);border-radius:100px;font-weight:bold!important}.leaf-control[data-action=next],.leaf-control[data-action=show-pictures],.leaf-control[data-action=check-read],.leaf-control[data-action=close-help],.leaf-control[data-action=restart]{background:var(--blue);color:white;border-color:var(--blue)}.leaf-page .leaf-control:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.wood-scene{position:relative;height:clamp(230px,30vw,324px);background:linear-gradient(to bottom,var(--sky) 0 59%,#ecdfaa 59% 100%);isolation:isolate}.wood-scene:before{content:"";position:absolute;z-index:-1;inset:0;background:url(assets/images/woods.webp) left -36px bottom 14% / auto 102% no-repeat;opacity:.86;pointer-events:none}.wood-scene .guide{position:absolute;bottom:4%;left:3%;width:23%;height:67%;object-fit:contain}
.places{position:absolute;left:30%;right:2%;bottom:4%;height:81%;display:flex;align-items:flex-end;justify-content:space-evenly;gap:4%}.place{position:relative;display:grid;place-items:center;min-width:0;width:45%;height:100%;max-width:245px;border:3px dashed transparent;background:none;border-radius:45%}.place>img:first-child{width:100%;height:100%;object-fit:contain}.place.mat{height:80%}.place:not(:disabled){border-color:color-mix(in srgb,var(--ink) 55%,transparent);background:#fff7}.place:disabled{opacity:1}.placed{position:absolute;width:39%;height:49%;object-fit:contain;left:30%;bottom:32%;pointer-events:none}.pan .placed{width:34%;left:20%;bottom:21%}.placed-map,.placed-mop{width:54%;left:22%}
.tray{background:#fffaf0;padding:16px clamp(12px,3vw,38px);justify-content:space-between;gap:15px;min-height:108px}.instruction{margin:0}.objects,.letter-options,.picture-pair,.echo-objects{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,25px)}.piece,.picture-pick,.letter-options button,.cue-pic{background:white;border:2px solid var(--ink);border-radius:22px}.piece{width:100px;height:96px;padding:6px}.piece img,.picture-pick img{width:100%;height:100%;object-fit:contain}.piece[aria-pressed=true]{border:4px solid var(--action);background:var(--wash);transform:translateY(-3px)}
.welcome-stage,.switch-board,.print-board,.finish{position:relative;background:var(--sky);min-height:clamp(290px,37vh,420px)}.welcome-stage{display:grid;place-items:center}.start-mascot{margin:12px;border:none;background:none;position:relative}.guide.big{height:clamp(180px,29vh,300px);width:auto;object-fit:contain}.start-mascot>span,.revealed-picture>span{display:grid;place-items:center;position:absolute;background:var(--blue);color:white;width:66px;height:66px;bottom:4%;right:0;border:4px solid white;border-radius:50%}.start-mascot>span svg{fill:currentColor}
.switch-board,.print-board{justify-content:center;gap:clamp(15px,4vw,65px);padding:20px 4% 28px}.switch-board>.guide,.print-board>.guide{align-self:flex-end;width:23%;height:clamp(140px,22vw,250px);object-fit:contain}.switch-board>.guide{align-self:flex-start}.echo-objects,.picture-pair,.revealed-picture{flex:1;max-width:650px}.echo-objects img{min-width:0;width:39%;height:clamp(110px,16vw,175px);object-fit:contain}.echo-objects>svg{flex:none}.picture-pick{width:44%;max-width:220px;height:clamp(120px,16vw,185px);padding:12px}.revealed-picture{position:relative;max-width:270px}.revealed-picture>img{width:100%;height:190px;object-fit:contain}.revealed-picture>span{height:52px;width:52px}.switch-tray{justify-content:center;gap:clamp(24px,7vw,95px);border-top:1px solid color-mix(in srgb,var(--ink) 30%,transparent)}
.print-board{background:var(--wash)}.type-space{text-align:center;min-width:28%}.type-space p{margin:0 0 5px}.big-word{font:clamp(76px,11.5vw,142px)/1.2 Andika;letter-spacing:.03em;white-space:nowrap}.big-word span{border-bottom:6px solid var(--action);color:var(--action)}.cue-pic{width:clamp(90px,12vw,144px);position:relative;padding:6px}.cue-pic img{width:100%;height:94px;object-fit:contain}.cue-pic svg{background:white;position:absolute;right:4px;bottom:4px;border-radius:50%;padding:3px}.letter-options button{width:clamp(90px,11vw,136px);height:clamp(96px,11vw,122px);font:clamp(66px,7.5vw,92px)/1 Andika}.finish{display:grid;text-align:center;justify-items:center;align-content:center;gap:15px;padding:24px}.finish>div{gap:18px}.finish .guide.big{height:160px}
#status,#audio-error{padding:6px 4px;font-size:18px}#status:empty{padding:0}.leaf-main{padding-bottom:16px}.leaf-page button:active:not(:disabled){scale:.97}
@media(prefers-reduced-motion:no-preference){.guide{animation:leaf-breathe 4s ease-in-out infinite;transform-origin:center bottom}.switch-board>.guide{transform-origin:center top}.start-mascot .guide{animation-duration:3.4s}.speaking .guide{animation-duration:1.8s}.placed,.revealed-picture,.big-word{animation:leaf-land .32s ease-out}@keyframes leaf-breathe{50%{transform:rotate(1.4deg) translateY(-2px)}}@keyframes leaf-land{from{transform:translateY(-8px)}to{transform:translateY(0)}}}
@media(max-width:650px){.leaf-head{min-height:62px}.leaf-title{padding:14px 0}.leaf-title h1{max-width:70%}#progress{font-size:14px}.story-line{padding:15px 10px;min-height:95px}.story-line .leaf-control{min-width:52px;min-height:52px;padding:8px}.wood-scene{height:210px}.wood-scene:before{background-size:auto 78%;background-position:left -70px bottom 25%}.places{left:23%;right:1%;height:74%;bottom:8%}.wood-scene .guide{left:0;width:23%;bottom:12%}.tray{padding:12px;gap:8px;flex-wrap:wrap}.objects{gap:8px}.piece{width:78px;height:78px}.instruction{font-size:16px;flex:1;min-width:96px}.switch-board,.print-board{gap:8px;padding:16px 2%}.switch-board>.guide,.print-board>.guide{width:19%;height:116px}.echo-objects,.picture-pair{gap:6px}.echo-objects img{width:40%}.cue-pic{width:72px}.cue-pic img{height:68px}.letter-options{gap:12px}.finish>div{flex-wrap:wrap;justify-content:center}.leaf-entry{gap:10px;padding:12px}.entry-art{flex-basis:34%}.entry-guide{height:96px}.mini-scene{transform:scale(.82);margin:-10px}.entry-copy{font-size:16px}.sample-line{font-size:16px}.entry-word{font-size:48px}}
@media(orientation:landscape) and (max-height:650px){.leaf-head{min-height:55px}.leaf-head img{width:126px}.leaf-title{padding:6px 0}.leaf-title h1{font-size:30px}.wood-scene{height:clamp(145px,32vh,210px)}.story-line{min-height:66px;padding-block:5px}.story-line h2{font-size:36px}.tray{min-height:78px;padding-block:5px}.piece{height:70px;width:80px}.welcome-stage,.switch-board,.print-board{min-height:190px}.switch-board>.guide,.print-board>.guide{height:150px}}
.wood-scene .place>img:first-child{position:absolute;inset:0;min-height:0;max-height:100%;pointer-events:none}
.wood-scene .pan .placed{bottom:16%}
.wood-scene .example-hand{position:absolute;width:clamp(36px,5vw,63px);height:auto;bottom:5%;left:45%;fill:#fff7d8;stroke:#513019;stroke-width:3;pointer-events:none}
.leaf-page .story-line h2:focus{outline:none}
@media(prefers-reduced-motion:no-preference){.example-hand{animation:show-placement 3.4s ease-in-out infinite}.pan:has(.example-hand) .placed{animation:show-object 3.4s ease-in-out infinite}.try-again{animation:listen-once .55s ease-in-out}@keyframes show-placement{0%,18%{transform:translate(-110%,50%)}55%,80%{transform:translate(0,0)}90%,100%{opacity:0}}@keyframes show-object{0%,18%{transform:translate(-66%,32%)}55%,100%{transform:translate(0,0)}}@keyframes listen-once{45%{transform:rotate(-3deg)}}}
@media(orientation:portrait) and (min-width:700px){.wood-scene{height:clamp(300px,32vh,405px)}.switch-board,.print-board,.welcome-stage{min-height:clamp(360px,37vh,455px)}}
@media(orientation:landscape) and (max-height:450px){.leaf-head,.leaf-head a{min-height:42px}.leaf-head img{width:108px}.leaf-title{padding-block:3px}.leaf-title h1{font-size:26px}.story-line{min-height:56px}.story-line .leaf-control{min-height:48px;min-width:48px;padding:8px}.leaf-page .tray{min-height:68px}.piece{height:60px;width:75px}.leaf-main{padding-bottom:2px}}
@media(orientation:landscape) and (min-height:651px) and (max-height:760px){.wood-scene{height:min(30vw,38vh)}}
@media(orientation:landscape) and (max-height:450px){.leaf-page .print-board,.leaf-page .switch-board{min-height:150px;padding-block:6px}.print-board>.guide,.switch-board>.guide{height:124px}.big-word{font-size:78px}.letter-options button{height:74px;width:88px;font-size:60px}.leaf-page .switch-tray{padding-block:6px}}
.map-word { font:inherit; color:var(--action); background:none; border:0; padding:0 .025em; min-height:48px; cursor:pointer; text-decoration:underline dotted; text-underline-offset:.16em }
#map-help { width:min(31rem,92vw); max-height:92dvh; box-sizing:border-box; padding:clamp(20px,4vw,38px); color:var(--ink); background:var(--paper); border:2px solid var(--ink); border-radius:32px 12px; font-family:Andika,sans-serif }
#map-help::backdrop { background:rgb(23 42 46 / .55) }
#map-cue { margin:0; font:600 clamp(21px,3.4vw,32px)/1.25 var(--display); text-align:center }
.map-letters { display:flex; justify-content:center; gap:.22em; margin:.18em 0; font:clamp(66px,11vw,100px)/1.35 Andika; }
.map-letters span { border-bottom:4px solid transparent }
.map-letters .lit { color:var(--action); border-color:currentColor }
.joined .map-letters { gap:0 }
#map-tip { margin:12px 0 22px; font-size:17px; line-height:1.5 }
.map-actions { display:flex; flex-wrap:wrap; gap:10px }
.map-actions button { flex:auto; min-height:52px; font:inherit; border:2px solid var(--ink); border-radius:14px; color:var(--ink); background:transparent; cursor:pointer }
.map-actions #map-back { color:var(--paper); background:var(--ink) }
