*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0e779a;overscroll-behavior:none}body{touch-action:none}#garden{position:relative;width:100%;height:100svh;overflow:hidden;isolation:isolate}.backdrop{position:absolute;width:100%;height:100%;object-fit:cover;transform:scale(1.065);pointer-events:none;user-select:none}#scene{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;outline:none;cursor:none;opacity:0;transition:opacity 1.4s}#scene[data-ready=true]{opacity:1}body.keyboard #scene:focus-visible{outline:1px solid #f7e3a2;outline-offset:-6px}#cursor{position:fixed;top:0;left:0;width:44px;height:44px;z-index:4;pointer-events:none;opacity:0;will-change:transform;transition:opacity .3s}#cursor svg{width:100%;height:100%;overflow:visible;fill:none;stroke:#e9e3c9;stroke-width:1.1}#cursor circle{fill:#f7e7bd1c}#cursor path{opacity:.7}body.pointer #cursor{opacity:.8}body.drawing #cursor{opacity:.95}body.drawing #cursor svg{scale:.7;transition:scale .3s}#gesture{position:absolute;bottom:21%;left:52%;width:40px;height:58px;pointer-events:none;color:#ffefc7;opacity:0;animation:invite 3.8s 2.5s infinite;transition:opacity .5s}#gesture svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.15}body.interacted #gesture{display:none}#reset{position:absolute;right:max(23px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:38px;height:38px;border:1px solid #f5e6c072;border-radius:50%;background:#0a536b33;color:#f4e7c2;display:grid;place-items:center;opacity:.55;cursor:pointer;transition:opacity .25s,background .25s;z-index:5}#reset:hover,#reset:focus-visible{opacity:1;background:#0a536b99}#reset svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.4;fill:none}#reset:focus-visible{outline:1px solid #fff4cd;outline-offset:4px}#loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;transition:opacity .5s}#loading i{width:22px;height:22px;border:1px solid #fff0c74a;border-top-color:#fff0c7;border-radius:50%;animation:spin 1.3s linear infinite}body.ready #loading{opacity:0}body.ready .backdrop{visibility:hidden}body.fallback #scene{opacity:0}body.fallback .backdrop{visibility:visible}body.fallback #loading{display:none}@keyframes spin{to{rotate:360deg}}@keyframes invite{0%,12%{opacity:0;translate:0 9px}35%,58%{opacity:.55}82%,100%{opacity:0;translate:0 -13px}}@media(pointer:coarse){#cursor{display:none}#scene{cursor:default}#reset{right:18px;bottom:18px;width:35px;height:35px}}@media(prefers-reduced-motion:reduce){#gesture{animation:none;opacity:.45}#scene{transition:none}}
/* Hand-inked chapter sign and quiet, discoverable forest cues. */
#garden{overflow:clip}
button{font-family:Arial,'Microsoft YaHei',sans-serif;-webkit-tap-highlight-color:transparent}
.chapter-sign{position:absolute;z-index:8;top:max(20px,env(safe-area-inset-top));left:50%;translate:-50% 0;width:160px;height:62px;padding:0;border:0;background:none;color:#f5ead0;cursor:pointer;opacity:0;transition:opacity .6s,filter .25s,transform .25s;filter:drop-shadow(0 3px 2px #092f4333)}
.chapter-sign:before{content:'';position:absolute;left:50%;height:30px;bottom:calc(100% - 9px);border-left:1px solid #133d48aa}
.chapter-sign svg{width:100%;height:100%;overflow:visible}.sign-paper{fill:#c8d1bc;stroke:#143a49;stroke-width:1.6}.sign-fill{fill:#275773;stroke:#102f44;stroke-width:1.4}.sign-ink,.sign-leaf{fill:none;stroke:#294e59;stroke-width:1.2}.sign-leaf{fill:#72a29b}
.chapter-sign span{position:absolute;inset:21px 0 auto;text-align:center;font-size:13px;font-weight:700;letter-spacing:2px;line-height:24px}
body.ready .chapter-sign{opacity:.93}.chapter-sign:hover{filter:drop-shadow(0 5px 5px #102e4966);transform:translateY(-2px)}.chapter-sign:focus-visible{outline:1px solid #f4e4b8;outline-offset:5px;border-radius:18px}.chapter-sign:disabled{cursor:wait;opacity:.35}
#lake-hotspots{position:absolute;inset:0;pointer-events:none;z-index:6}#lake-hotspots[hidden],#sound[hidden],#reset[hidden],#scene-back[hidden],#scene-switch[hidden]{display:none}
#scene-back{position:absolute;left:max(22px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));z-index:8;width:60px;height:52px;padding:5px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;opacity:.74;transition:opacity .25s,transform .25s}
#scene-back svg{width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round}.back-ink{stroke:#112f3b;stroke-width:4.5}.back-light{stroke:#f2e5c5;stroke-width:1.6}
#scene-back:hover{opacity:1;transform:translateX(-3px)}#scene-back:focus-visible{opacity:1;outline:1px solid #f2e5c5;outline-offset:3px}#scene-back:disabled{cursor:default;opacity:.35}
.hotspot{position:absolute;left:0;top:0;translate:-50% -50%;width:62px;height:62px;padding:0;border:0;background:none;color:#f7ebc8;pointer-events:auto;cursor:pointer;filter:drop-shadow(0 2px 3px #0b354a55);will-change:transform}
.hotspot-ring{position:absolute;inset:7px;display:grid;place-items:center;border:1px solid #f5e9c9bd;border-radius:49% 53% 47% 51%;background:#123d5530;transition:background .3s,scale .3s;box-shadow:inset 0 0 16px #bde1db10}.hotspot-ring:after{content:'';position:absolute;inset:-7px;border:1px solid #f5e9c952;border-radius:52% 48% 51% 49%;animation:forest-call 3.7s infinite}.hotspot:nth-child(2) .hotspot-ring:after{animation-delay:1.1s}.hotspot:nth-child(3) .hotspot-ring:after{animation-delay:2.2s}.hotspot svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.hotspot-label{position:absolute;top:65px;left:50%;translate:-50% 0;white-space:nowrap;font-size:14px;letter-spacing:1.5px;line-height:1.6;padding:2px 8px;color:#f7ebd0;text-shadow:0 1px 4px #092e48;background:#113b4a2e;border-radius:12px;opacity:.78;transition:opacity .2s}
.hotspot:hover .hotspot-ring,.hotspot:focus-visible .hotspot-ring{background:#f8e8be2b;scale:1.12}.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label{opacity:1}.hotspot:focus-visible{outline:none}.hotspot.activated .hotspot-ring{animation:cue-burst .65s ease-out}.hotspot.activated .hotspot-label{opacity:.35}
#sound{position:absolute;right:max(23px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:38px;height:38px;border:1px solid #f5e6c072;border-radius:50%;background:#0a536b33;color:#f4e7c2;display:grid;place-items:center;opacity:.7;cursor:pointer;z-index:8}#sound svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round}#sound:hover,#sound:focus-visible{opacity:1;background:#0a536b99}#sound:focus-visible{outline:1px solid #f4e4b8;outline-offset:4px}.mute-slash{display:none}#sound[aria-pressed=true] .mute-slash{display:block}
#scene-curtain{position:absolute;inset:0;z-index:7;background:#092e48;opacity:0;pointer-events:none;transition:opacity .45s ease}body.changing #scene-curtain{opacity:1;pointer-events:auto}body.changing #lake-hotspots{visibility:hidden}body:not([data-scene=garden]) #gesture{display:none}body:not([data-scene=garden]) #cursor path{opacity:0}body:not([data-scene=garden]) #cursor{width:30px;height:30px;margin:7px}
body[data-scene=cavern].pointer #cursor{opacity:.35}body[data-scene=cavern] #cursor circle{fill:none}
@keyframes forest-call{0%,100%{scale:.9;opacity:.2}55%{scale:1.22;opacity:.7}}@keyframes cue-burst{from{scale:1.1;background:#fff1cf66}to{scale:1;background:#123d5530}}
@media(max-width:640px){.chapter-sign{width:140px;height:54px;top:14px}.chapter-sign span{top:17px;font-size:12px}.hotspot{width:54px;height:54px}.hotspot-ring{inset:5px}.hotspot-label{font-size:13px;top:57px;letter-spacing:.8px}}
@media(prefers-reduced-motion:reduce){.hotspot-ring:after{animation:none}.chapter-sign,#scene-curtain,#scene-back{transition:none}}
/* Narrative copy stays quiet enough to leave the illustration as the scene. */
body[data-phase=loading],body[data-phase=intro]{background:#192436}
body:not([data-phase=playing]) #scene-switch,body:not([data-phase=playing]) #scene-back,body:not([data-phase=playing]) #reset,body:not([data-phase=playing]) #lake-hotspots,body:not([data-phase=playing]) #gesture,body:not([data-phase=playing]) #cursor,body:not([data-phase=playing]) #chapter-caption,body:not([data-phase=playing]) #flower-guide{visibility:hidden;pointer-events:none}
body[data-phase=loading] #garden,body[data-phase=intro] #garden{visibility:hidden}
body[data-phase=journey] .backdrop{visibility:visible}
body[data-phase=loading] #sound{display:none}
#sound{position:fixed;z-index:120}
#reset{right:max(75px,calc(env(safe-area-inset-right) + 55px))}
#chapter-caption{position:absolute;left:50%;top:13%;translate:-50% 12px;width:max-content;max-width:80%;z-index:6;margin:0;text-align:center;color:#f2e6cb;font-family:Georgia,'Songti SC','SimSun',serif;font-size:clamp(18px,1.55vw,25px);line-height:1.7;letter-spacing:.2em;text-shadow:0 2px 12px #051626,0 0 4px #051626;opacity:0;pointer-events:none;transition:opacity 1.2s,translate 1.6s}
#chapter-caption.visible{opacity:.96;translate:-50% 0}
#flower-guide{position:absolute;left:50%;bottom:12%;translate:-50% 0;z-index:6;display:flex;align-items:center;gap:16px;padding:15px 24px;color:#f4e7ca;border:1px solid #c6c5ad45;background:linear-gradient(110deg,#123b51bd,#173d4e85);border-radius:2px;pointer-events:none;opacity:1;transition:opacity .65s,transform .65s;box-shadow:0 8px 35px #10304515}
#flower-guide[hidden]{display:none}#flower-guide p{margin:0;font-family:Georgia,'Songti SC','SimSun',serif;font-size:16px;line-height:1.9;letter-spacing:.13em;white-space:nowrap}#flower-guide p span{opacity:.72;font-size:14px}#flower-guide svg{width:25px;height:46px;fill:none;stroke:currentColor;stroke-width:1.1;animation:guide-pull 2.8s ease-in-out infinite}#flower-guide.complete{opacity:0;transform:translateY(8px)}body.needs-guide #gesture{display:none}
@keyframes guide-pull{0%,100%{translate:0 5px;opacity:.3}55%{translate:0 -5px;opacity:1}}
@media(max-width:600px){#chapter-caption{top:12%;font-size:18px;letter-spacing:.13em}#flower-guide{padding:11px 16px;gap:10px;bottom:14%}#flower-guide p{font-size:14px}#flower-guide p span{font-size:13px}#reset{right:66px}}
@media(prefers-reduced-motion:reduce){#flower-guide svg{animation:none}#chapter-caption{transition:opacity .2s}#flower-guide{transition:opacity .2s}}
