:root{color-scheme:dark;--ink:#081e27;--cream:#fff2d7;--muted:#b9d1c6;--mint:#9de1c5;--gold:#ffd67c;--coral:#ff705a;--focus:#fff0aa;font-family:ui-rounded,'Avenir Next','Trebuchet MS',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 29%,#164737 0,#0d302b 37%,#081e27 76%);color:var(--cream);min-height:100svh}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:5px}button,a,summary{touch-action:manipulation}button[hidden],[hidden]{display:none!important}.topbar{max-width:1200px;margin:auto;padding:20px 26px 8px;display:flex;align-items:center;justify-content:space-between}.back{display:flex;gap:10px;align-items:center;color:var(--cream);font-weight:800;font-size:18px;min-height:48px;text-decoration:none;padding:0 10px;border-radius:14px}.back>span:first-child{font-size:27px}.tools{display:flex;gap:10px}.tool{width:48px;height:48px;background:#153c3a;border:1px solid #5c8a72;border-radius:16px;display:grid;place-items:center;box-shadow:0 5px 14px #001b2270}.tool:hover{background:#24554a}.tool svg{width:25px;height:25px;fill:none;stroke:var(--cream);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}#help svg{fill:var(--cream);stroke:none}.sound-waves{display:none}#sound[aria-pressed=true] .sound-waves{display:block}#sound[aria-pressed=true] .sound-slash{display:none}main{width:min(100% - 32px,1040px);margin:auto}.heading{text-align:center;margin:4px 0 24px}.eyebrow{font-size:10px;letter-spacing:.22em;font-weight:800;color:var(--mint);margin:8px 0}.heading h1{font-size:clamp(32px,4.6vw,54px);line-height:1.08;letter-spacing:-.04em;margin:0 0 10px;text-shadow:0 4px 15px #001c2180}.intro{font-size:17px;color:#d5e2cc;margin:0}.woodland{touch-action:manipulation;position:relative;isolation:isolate;border-radius:36px;background:radial-gradient(ellipse at 80% 34%,#416c3b70,transparent 39%),linear-gradient(#0b2e31 8%,#183f30 50%,#3e5431 78%,#625337);border:1px solid #557560;box-shadow:inset 0 1px 0 #bed6a22e,0 30px 70px #00171d90;overflow:hidden;padding:26px 24px 0}.forest-depth{position:absolute;inset:0 0 24%;z-index:-2;overflow:hidden}.forest-depth i{position:absolute;top:-50px;bottom:10%;width:30px;border-radius:50%;background:linear-gradient(90deg,#091f28,#2b4e3c);opacity:.7;transform:rotate(5deg)}.forest-depth i:nth-child(1){left:4%;width:48px}.forest-depth i:nth-child(2){left:22%;transform:rotate(-3deg)}.forest-depth i:nth-child(3){left:39%;opacity:.28;width:55px}.forest-depth i:nth-child(4){left:58%;transform:rotate(-5deg);opacity:.3}.forest-depth i:nth-child(5){left:77%;width:45px}.forest-depth i:nth-child(6){left:94%;transform:rotate(-4deg)}.canopy{position:absolute;inset:-45px -15px auto;height:140px;z-index:-1;opacity:.85;background:radial-gradient(ellipse 100px 60px at 8% 10%,#36704b 98%,transparent),radial-gradient(ellipse 125px 75px at 28% 15%,#214e3d 98%,transparent),radial-gradient(ellipse 110px 60px at 50% 0%,#376444 98%,transparent),radial-gradient(ellipse 140px 70px at 77% 5%,#214e3d 98%,transparent),radial-gradient(ellipse 130px 75px at 98% 25%,#315a3c 98%,transparent)}.fireflies{position:absolute;inset:0 0 30%;z-index:-1;pointer-events:none}.fireflies i{position:absolute;width:4px;height:4px;left:30%;top:20%;background:#f7da87;border-radius:50%;box-shadow:0 0 12px 3px #e4c66670;animation:firefly 4s ease-in-out infinite alternate}.fireflies i:nth-child(2){left:61%;top:47%;animation-delay:-2s}.fireflies i:nth-child(3){left:92%;top:15%;animation-delay:-1s}.fireflies i:nth-child(4){left:3%;top:55%;animation-delay:-3s}.fireflies i:nth-child(5){left:47%;top:4%;animation-delay:-2.6s}.habitats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:end;position:relative}.habitat{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:end;width:100%;height:305px;border-radius:30px;background:transparent;padding:0 0 8px;transition:filter .2s,background .2s}.habitat-art{width:100%;height:calc(100% - 40px);display:flex;align-items:end;justify-content:center}.habitat-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 10px #071f24a0)}.habitat-label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border-radius:30px;background:#0a2b2bdb;box-shadow:0 2px 1px #638d4744;color:#e4e6c9;font-size:15px;font-weight:800;line-height:1.1}.habitat-label svg{height:18px;width:18px;fill:none;stroke:#bcd7a3;stroke-width:1.8;flex-shrink:0}.woodland[data-stage=match] .habitat{background:radial-gradient(ellipse at 50% 60%,#f5d88809,transparent 68%)}.habitat:not(:disabled):hover{filter:brightness(1.12);background:#d1e5a70b}.habitat:not(:disabled):active{transform:translateY(2px)}.habitat.matched{filter:drop-shadow(0 0 13px #ffd47555)}.habitat.matched .habitat-label{background:#44694c;color:#fff2c5;box-shadow:0 0 0 2px #c4d79299}.habitat.try-again .habitat-label{box-shadow:0 0 0 2px #edc68a}.resident{position:absolute;width:43%;height:44%;left:28.5%;top:30%;display:block;pointer-events:none;animation:arrive .5s cubic-bezier(.2,.8,.2,1)}.resident img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px #071f2470)}.burrow .resident{top:43%;height:35%}.pond .resident{top:41%;height:37%}.guide-row{position:relative;display:flex;align-items:center;gap:14px;min-height:96px;margin:8px 4px 0;padding:10px 12px 10px 96px;border-radius:22px;background:#0a2a2adb;border:1px solid #6b8b6460;box-shadow:0 5px 14px #092b2170}.glee{position:absolute;width:84px;height:auto;left:4px;bottom:5px;filter:drop-shadow(0 6px 5px #001d2660)}.instruction-wrap{flex:1;min-width:0}.instruction-wrap h2{font-size:24px;letter-spacing:-.025em;line-height:1.15;margin:0 0 5px;font-weight:850}.instruction-wrap p{font-size:15px;line-height:1.35;color:#c4d6bd;margin:0}.again{border-radius:14px;min-height:48px;padding:10px 15px;background:#ffcf78;color:#343629;display:flex;gap:8px;align-items:center;font-size:15px;font-weight:850;box-shadow:0 4px 0 #795c2d}.again:hover{background:#ffdfa0}.again:active{transform:translateY(2px);box-shadow:0 2px 0 #795c2d}.again>span:first-child{font-size:25px;line-height:1}.animal-tray{display:flex;justify-content:center;gap:22px;position:relative;isolation:isolate;padding:14px 30px 17px;margin:16px -24px 0;border-top:3px solid #bd9862;background:repeating-linear-gradient(1deg,transparent 0 18px,#3a241a18 19px 21px),radial-gradient(ellipse at 50% 0,#d7ad77,#987248 68%,#684b33);box-shadow:inset 0 7px 12px #51372177,0 -6px 25px #001d1c30}.animal{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:end;width:142px;min-height:142px;padding:4px 8px 11px;border-radius:24px;background:radial-gradient(ellipse at 50% 50%,#a77c45,#684d2e 74%);box-shadow:inset 0 3px 8px #322318aa,0 2px 0 #f7d29a80;color:#fff0cc;font-weight:850;font-size:17px;transition:background .2s,box-shadow .2s}.animal img{width:106px;height:106px;max-width:100%;filter:drop-shadow(0 5px 5px #39271966);transition:transform .25s}.animal:hover img{transform:translateY(-3px)}.animal:active img{transform:translateY(0) scale(.97)}.animal[aria-pressed=true]{background:radial-gradient(ellipse,#bad39f,#65844c);box-shadow:inset 0 0 0 3px #f5dfa7,0 0 22px #fbe1a34d;color:#fff6d7}.selection-mark{position:absolute;top:9px;right:11px;color:#fff3b1;font-size:20px;opacity:0}.animal[aria-pressed=true] .selection-mark{opacity:1}.animal:disabled{opacity:.85}.demo-target{outline:3px dashed #ffe9a5!important;outline-offset:3px!important;filter:drop-shadow(0 0 14px #ffe9a54d)}.demo-pointer{position:absolute;width:38px;height:46px;left:0;top:0;pointer-events:none;filter:drop-shadow(0 3px 3px #001c26);transition:transform .55s cubic-bezier(.2,.7,.2,1);z-index:3}.demo-pointer svg{width:100%;fill:#fff7e1;stroke:#bb9568;stroke-width:2}.demo-banner{display:flex;gap:16px;align-items:center;justify-content:center;margin:16px 0 -4px;min-height:48px;color:#c9dfbf;font-size:14px}.demo-banner button{display:flex;gap:14px;align-items:center;background:#244d43;border:1px solid #72916d;border-radius:14px;padding:12px 16px;min-height:46px;font-weight:800}.demo-banner button:hover{background:#326557}footer{max-width:900px;margin:24px auto 20px;padding:0 22px;text-align:center;font-size:12px;color:#a3bdae}.footer-line{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;line-height:1.5}footer details{max-width:680px;margin:4px auto 0;line-height:1.55}footer summary{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:44px;min-width:100px;color:#c3d4be;text-decoration:underline;text-underline-offset:4px}footer details p{text-align:start;font-size:13px;padding:0 10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{text-align:center;margin:20px}img{user-select:none;-webkit-user-drag:none}.woodland,.tool,.demo-banner button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}:is(.woodland,.tool,.demo-banner button) :is(input,textarea,select,[contenteditable]:not([contenteditable=false])),:is(.woodland,.tool,.demo-banner button) [contenteditable]:not([contenteditable=false]) *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;-webkit-user-drag:auto}
@keyframes firefly{from{opacity:.2;transform:translate(0,0)}to{opacity:.9;transform:translate(6px,-10px)}}@keyframes arrive{from{opacity:0;transform:translateY(25px) scale(.8)}to{opacity:1;transform:none}}
@media(max-width:620px){.topbar{padding:10px 14px 4px}.back{font-size:16px;padding:0 4px;gap:8px}.tools{gap:8px}.tool{width:46px;height:46px;border-radius:15px}main{width:calc(100% - 20px)}.heading{margin:10px 0 19px}.eyebrow{font-size:8px;margin:7px 0 8px}.heading h1{font-size:34px;margin-bottom:8px}.intro{font-size:14px}.woodland{padding:14px 7px 0;border-radius:26px}.habitats{gap:0}.habitat{height:223px;padding:0 0 5px;border-radius:18px}.habitat-art{height:calc(100% - 45px);width:112%}.habitat-label{min-height:43px;padding:7px 5px;gap:4px;font-size:12px;border-radius:14px;max-width:96%;text-align:center}.habitat-label svg{width:13px;height:15px}.guide-row{gap:8px;margin:9px 3px 0;padding:12px 10px 13px 66px;min-height:90px;border-radius:18px;flex-wrap:wrap}.glee{width:62px;left:0;bottom:12px}.instruction-wrap{flex-basis:100%}.instruction-wrap h2{font-size:19px;margin-bottom:5px}.instruction-wrap p{font-size:13px;line-height:1.35}.again{min-height:44px;justify-content:center;font-size:13px;padding:7px 12px}.again>span:first-child{font-size:22px}.animal-tray{gap:10px;padding:13px 12px 14px;margin:14px -7px 0}.animal{min-width:0;width:calc((100% - 20px)/3);min-height:112px;border-radius:18px;font-size:14px;padding:4px 5px 9px}.animal img{width:82px;height:82px}.selection-mark{font-size:15px;top:8px;right:8px}.canopy{height:110px}.resident{width:50%;left:25%;top:31%;height:40%}.burrow .resident{top:43%;height:34%}.pond .resident{top:42%;height:34%}.demo-banner{font-size:12px;gap:8px;justify-content:space-between;margin:12px 3px -5px}.demo-banner button{font-size:12px;gap:8px;min-height:44px;padding:9px 12px}.demo-pointer{width:31px;height:38px}footer{font-size:10px;margin:20px auto 10px;padding:0 14px}.footer-line{gap:5px 8px}footer details p{font-size:12px}}
@media(max-width:350px){.heading h1{font-size:30px}.heading{margin-bottom:15px}.habitat{height:205px}.habitat-label{font-size:11px;gap:3px}.guide-row{padding-left:58px}.glee{width:55px}.instruction-wrap h2{font-size:17px}.instruction-wrap p{font-size:12px}.animal-tray{gap:8px;padding-inline:10px}.animal{min-height:102px}.animal img{width:74px;height:74px}.selection-mark{right:6px;top:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.fireflies i{opacity:.5}.habitat.matched{filter:drop-shadow(0 0 12px #ffe39b99)}}
/* Keep each resident on the illustrated hollow ledge or grassy entrance. */
.tree .resident{top:24%;height:35%}
@media(max-width:620px){.tree .resident{top:18.3%;height:40%}.burrow .resident{top:35.5%;height:34%}}
/* The sound choice stays visible before any audio is activated. */
.sound-tool{width:auto;min-width:120px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:800;white-space:nowrap}.sound-tool svg{flex:0 0 23px;width:23px;height:23px}.sound-hint{margin:9px 0 0;color:#a9c7b7;font-size:12px;line-height:1.4}
@media(max-width:620px){.sound-tool{width:auto;min-width:112px;padding:0 10px;gap:6px;font-size:12px}.sound-tool svg{flex-basis:21px;width:21px;height:21px}.sound-hint{font-size:11px;margin-top:8px}}
