.scene-wrap{display:block;overflow:visible;background:#e6eddc}.scene-label{position:relative;left:auto;top:auto;padding:19px 22px 0}.scene-interact{display:none}.scene-wrap #scene{height:290px;transition:filter .5s,transform .5s,opacity .4s;position:relative}.scene-wrap #scene svg{height:100%;max-height:none}.activity-area{padding:0 20px 18px;position:relative}.activity-bar{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:1.5px}.activity-progress{margin-left:auto;font-size:14px;letter-spacing:0}.activity-help{background:#fffef3;border:1px solid #b9c8aa;border-radius:50%;width:43px;height:43px;font-size:18px}.activity-instruction{font-size:15px;line-height:1.55;margin:9px 0 12px;font-weight:600}.activity-meter{height:5px;background:#cbd7bd;border-radius:5px;overflow:hidden}.activity-meter>span{display:block;height:100%;background:#5e803f;transition:width .3s}.activity-board{position:relative}.activity-targets{display:flex;justify-content:center;align-items:center;gap:12px;min-height:15px}.act-target{background:#ffffffa6;border:2px dashed #829b65;border-radius:16px;margin:14px 0 8px;padding:15px 20px;min-height:100px;width:100%;display:flex;align-items:center;justify-content:center;gap:20px;font-size:15px}.act-target>span{font-size:37px}.activity-tray{display:flex;justify-content:center;gap:10px;margin-top:12px;flex-wrap:wrap}.act-token{position:relative;border:2px solid #d3dbc8;background:#fffdf4;border-radius:14px;min-height:102px;min-width:85px;flex:1;padding:10px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:12px;touch-action:none;user-select:none}.token-art{font-size:37px;display:block;position:relative}.token-art svg{width:94px;height:78px}.act-token.chosen{border-color:#628845;box-shadow:0 0 0 3px #92b27666}.act-token.dragging{z-index:30;box-shadow:0 12px 25px #32482940;transition:none;pointer-events:auto}.act-token.used{opacity:.35;background:#cbd9bc}.activity-status{font-size:13px;line-height:1.6;min-height:40px;margin:13px 0 0;color:#4a6138}.activity-restart{padding:13px 18px;border-radius:10px;border:1px solid #879d72;background:#faffee;font-size:13px}.activity-won{background:#dceacd;border-radius:0 0 16px 16px}.activity-won .activity-meter>span{background:#507d32}.activity-effects{position:absolute;bottom:100%;height:260px;width:100%;pointer-events:none;z-index:1}.act-marker{position:absolute;font-size:24px;animation:actArrive .5s ease-out}.hatch-targets{margin:20px 0 0}.hatch-targets .act-token{min-height:133px}.hatch-targets .token-art{font-size:58px}.hatch-targets .hatched{opacity:1!important;background:#f4fbe9;border-color:#85a363}.crack{position:absolute;left:30%;top:15%;font-size:43px;color:#765840}.broken-shell{position:absolute;bottom:-5px;left:20%;color:#c8bda4;font-size:30px}.activity-area.raining:before{content:'💧　💧　💧　💧';position:absolute;bottom:100%;left:15%;font-size:30px;z-index:2;animation:actRain 1.5s linear infinite;pointer-events:none}.scene-wrap:has(.sunny){background:#f4e6b1}#scene.act-small>svg{transform:scale(var(--growth,.72));transform-origin:50% 65%;transition:transform .6s}#scene.act-pop>svg{animation:actPop .6s ease-out!important}#scene.fly-to-flower>svg{transform:translate(45px,-28px) scale(.83);transition:transform 1.2s}#scene.ready-to-hatch .egg-rock{animation:rock .8s infinite!important}.scene-wrap:has(.wings-open) .wing{animation:flutter .65s infinite!important}.album-slots{display:flex;gap:10px;width:100%;margin-top:15px}.album-slot{flex:1;background:#fffdf3;border:2px dashed #9fb28a;border-radius:10px;min-height:105px;display:grid;place-items:center;font-size:25px;color:#889977}.album-slot svg{width:95px;height:90px}.grown-tree{position:absolute;font-size:140px;bottom:0;left:50%;transform:translateX(-50%);animation:actArrive .8s ease-out}.aphid{display:inline-block;position:relative;width:25px;height:33px;background:#819c47;border-radius:48%;box-shadow:inset -5px -3px #617836}.aphid:before{content:'';position:absolute;top:-6px;left:7px;width:12px;height:12px;border-radius:50%;background:#617836}.aphid:after{content:'≡';position:absolute;left:-9px;top:-7px;font-size:45px;color:#526b31;transform:rotate(90deg)}.act-shake{animation:actShake .3s}.scene-wrap .discovery{display:none}.activity-area button:disabled{cursor:default}.activity-area button:hover:not(:disabled){transform:none}.activity-tray .act-token:hover:not(:disabled){background:#f1f8e6}@keyframes actPop{50%{filter:brightness(1.12)}}@keyframes actArrive{from{opacity:0;translate:0 -20px}to{opacity:1;translate:0 0}}@keyframes actRain{from{translate:0 -190px;opacity:.2}50%{opacity:1}to{translate:0 0;opacity:0}}@keyframes actShake{25%{translate:-4px 0}75%{translate:4px 0}}@media(max-width:650px){.scene-wrap #scene{height:215px}.activity-area{padding:0 13px 15px}.activity-instruction{font-size:14px}.act-token{min-width:65px;font-size:11px;padding:10px 5px;min-height:94px}.token-art{font-size:31px}.activity-tray{gap:7px}.act-target{min-height:92px;padding:12px;font-size:13px}.token-art svg{width:76px;height:65px}.album-slot svg{width:65px;height:76px}.hatch-targets .act-token{min-height:120px}.activity-effects{height:205px}.grown-tree{font-size:110px}.lesson-grid{gap:15px}}
.scene-wrap{background:#f2f3e8}.scene-wrap #scene{height:340px;background:#f7f7ef;border-radius:16px;margin:8px 12px;width:calc(100% - 24px)}.scene-wrap #scene>svg{width:100%;height:100%;max-height:none}.touch-model{cursor:pointer}.raster-flutter{transform-box:fill-box;transform-origin:center;animation:rasterFlutter 2.3s ease-in-out infinite}.scene-wrap:has(.wings-open) .raster-flutter{animation-duration:.7s}.paused #scene .raster-art{animation-play-state:paused!important}.scene-wrap:has(.wings-open) #scene .raster-art{animation-play-state:running!important}.activity-targets .token-art svg{min-height:76px}.activity-effects .act-marker{filter:drop-shadow(0 3px 2px #283b2220)}@keyframes rasterFlutter{50%{transform:scaleX(.82) translateY(-5px)}}@media(max-width:650px){.scene-wrap #scene{height:265px;margin:8px;width:calc(100% - 16px)}}

#scene>.character-scene{animation:characterReveal .45s ease-out}@keyframes characterReveal{from{opacity:.35}to{opacity:1}}
.paused #scene>.character-scene{animation-play-state:running!important}

/* The shell uses a clip in the original image coordinates, never the outer SVG bounds. */
.snail-full,.snail-shell{transition:opacity .35s ease}.snail-shell{opacity:0}#scene.snail-hidden .snail-full{opacity:0}#scene.snail-hidden .snail-shell{opacity:1}#scene.snail-hidden .raster-art{animation:none!important}

#scene.kneading>svg{animation:knead .55s ease-in-out!important}#scene.jumping>svg{animation:jump .6s ease-in-out!important}@keyframes knead{50%{transform:scale(1.08,.9)}}@keyframes jump{50%{transform:translateY(-35px)}}
.reduced #scene.kneading>svg,.reduced #scene.jumping>svg{animation:none!important}
