:root{font-family:ui-rounded,Avenir Next,Avenir,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#224454;background:#d8edf0;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #224454;--deep: #143d51;--sky: #c4e8ee;--sun: #f7c977;--mint: #a8d9be;--paper: #fff9ec;--edge: #d2b886}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#app{width:100%;height:100%;min-height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none}button{font:inherit;color:inherit}button:focus-visible{outline:4px solid #f5a84d;outline-offset:3px}#game-shell{position:relative;width:100%;height:100%;min-height:100dvh;overflow:hidden;isolation:isolate;background:#bfe5ea}#game-container{position:absolute;inset:0;touch-action:none}#game-container canvas{display:block;width:100%;height:100%;touch-action:none}#ui-root{position:absolute;inset:0;pointer-events:none}.screen{position:absolute;inset:0;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));pointer-events:auto}.screen[hidden],.panel[hidden]{display:none}.nest-panel,.dialog-panel{background:linear-gradient(155deg,#fffcf0f7,#faefd6f7);border:2px solid rgba(198,166,111,.78);border-radius:30px;box-shadow:0 18px 50px #20505e3d,inset 0 2px #fff}.nest-panel{width:min(860px,100%);padding:clamp(18px,4vw,36px);text-align:center;background:linear-gradient(155deg,#fffcf0cc,#faefd6d1);backdrop-filter:blur(2px)}.brand{margin:0;color:var(--deep);font-size:clamp(28px,5vw,48px);line-height:1;letter-spacing:-.04em;font-weight:900}.subtitle{margin:9px 0 22px;color:#50707b;font-size:clamp(14px,2vw,18px);font-weight:700}.intro-launch{width:min(460px,100%);min-height:72px;display:flex;align-items:center;gap:14px;margin:0 auto 18px;padding:10px 18px;text-align:left;border:0;border-radius:22px;color:#fffaf0;background:linear-gradient(120deg,#438d7b,#69aa83);box-shadow:0 5px #397563,0 10px 20px #2d68592e;cursor:pointer}.intro-launch>svg:first-child{width:44px;height:44px;flex:0 0 44px}.intro-launch>svg:last-child{width:27px;height:27px;margin-left:auto}.intro-launch span{display:flex;flex-direction:column}.intro-launch strong{font-size:20px}.intro-launch small{font-size:13px;color:#e7f4e9;font-weight:700}.intro-launch:active{transform:translateY(3px);box-shadow:0 2px #397563}.choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.choice,.secondary-choice,.icon-button,.control-button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.choice{position:relative;overflow:hidden;min-height:148px;padding:12px 10px;border-radius:24px;background:#fffdf7;box-shadow:0 5px #d7c39d,0 8px 18px #3658591a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transition:transform .16s ease,box-shadow .16s ease}.choice:hover{transform:translateY(-3px);box-shadow:0 8px #d7c39d,0 12px 22px #36585921}.choice:disabled{opacity:.48;cursor:default;filter:saturate(.55)}.choice:disabled:hover{transform:none;box-shadow:0 5px #d7c39d,0 8px 18px #3658591a}.choice:active{transform:translateY(2px);box-shadow:0 2px #d7c39d}.choice .symbol{width:66px;height:66px;display:grid;place-items:center;border-radius:50%;background:#e4f1e7;color:#32755f}.choice:nth-child(2) .symbol{background:#f7e3bd;color:#a76938}.choice:nth-child(3) .symbol{background:#e2edf5;color:#527d9b}.choice:nth-child(4) .symbol{background:#e9e2f3;color:#756397}.choice svg,.secondary-choice svg,.icon-button svg,.control-button svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}.choice strong{font-size:clamp(15px,2.2vw,19px);line-height:1.1}.choice small{font-size:12px;color:#67808a;font-weight:700}.choice-copy{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;z-index:1}.choice small{line-height:1.25;text-align:center}.nest-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}.secondary-choice{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:9px 17px;border-radius:18px;background:#f4e5c7;font-weight:900;box-shadow:inset 0 1px #fff}.secondary-choice svg{width:25px;height:25px}.secondary-choice:hover{background:#efdab1}.quiet-adult{position:absolute;z-index:4;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));min-width:52px;min-height:52px;display:grid;place-items:center;border-radius:50%;background:#fff9ecd6;border:1px solid rgba(112,131,131,.3)}.quiet-adult svg{width:25px;height:25px}.status-pill{position:absolute;left:max(14px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));padding:8px 12px;border-radius:20px;background:#fff9eccc;color:#50707b;font-size:12px;font-weight:800}.game-hud{position:absolute;inset:0;display:flex;justify-content:space-between;align-items:flex-start;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));pointer-events:none}.hud-left,.hud-right{display:flex;gap:10px;min-width:0;pointer-events:auto}.hud-left{flex:1 1 auto}.hud-right{flex:0 0 auto}.icon-button{display:grid;place-items:center;min-width:64px;min-height:64px;padding:9px;border-radius:19px;background:#fffaede6;box-shadow:0 4px #9d855c6b}.icon-button svg{width:26px;height:26px}.mission-chip{align-self:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(40vw,300px);padding:10px 17px;border-radius:22px;background:#fffaedd1;color:#315b69;font-weight:900;box-shadow:0 3px 12px #1c444d1f}.lesson-card{position:absolute;left:50%;top:max(83px,calc(env(safe-area-inset-top) + 68px));transform:translate(-50%);min-height:52px;max-width:min(80vw,360px);display:flex;align-items:center;justify-content:center;gap:10px;padding:9px 17px;border-radius:20px;color:#315b69;background:#fffaede8;box-shadow:0 4px 18px #1f495326;font-weight:900;text-align:center}.lesson-card svg{width:30px;height:30px;flex:0 0 30px}.adult-status{margin:14px 0 2px!important;padding:10px 12px;border-radius:14px;background:#e0ede099;font-size:14px}.update-ready{width:100%;margin-top:7px;background:#dbeee3}.control-button{position:absolute;isolation:isolate;right:max(26px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:clamp(92px,13vw,142px);height:clamp(92px,13vw,142px);border-radius:48% 52%;display:grid;place-items:center;color:#fff9ec;background:radial-gradient(circle at 36% 28%,#ffe29b,#e99c55 72%);border:4px solid rgba(255,250,234,.92);box-shadow:0 8px #a0603a6b,0 12px 28px #31555b33;pointer-events:auto;touch-action:none}.control-button:before{content:"";position:absolute;inset:-9px;z-index:-1;border-radius:50%;background:conic-gradient(from -90deg,#fff8d0 var(--charge-fill, 0%),rgba(255,250,237,.32) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));transition:background .14s linear}.control-button svg{width:55%;height:55%;filter:drop-shadow(0 2px 2px rgba(105,67,39,.25))}.control-button[aria-pressed=true]{transform:translateY(5px) scale(.97);box-shadow:0 3px #a0603a6b}.control-button.charge-ready:before{background:conic-gradient(from -90deg,#fff8d0 100%,#fffaed52 0);animation:feather-ready-glow 2.6s ease-in-out infinite}@keyframes feather-ready-glow{0%,to{filter:drop-shadow(0 0 1px rgba(255,245,180,.2));opacity:.88}50%{filter:drop-shadow(0 0 7px rgba(255,245,180,.8));opacity:1}}.control-caption{position:absolute;bottom:max(8px,env(safe-area-inset-bottom));right:calc(max(26px,env(safe-area-inset-right)) + 4px);color:#fffdf5;font-size:12px;font-weight:900;text-shadow:0 1px 4px #355769}.hud-badge{padding:11px 14px;border-radius:18px;background:#fffaede0;font-weight:900;color:#315b69}.discovery-badge{display:flex;align-items:center;gap:7px}.discovery-badge>svg{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:#bf8837;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.discovery-badge{min-width:0;padding:10px}.discovery-count{min-width:1ch;text-align:center}.progress-pulse{animation:discovery-count-pulse .42s ease-out}@keyframes discovery-count-pulse{0%{transform:scale(1)}45%{transform:scale(1.1);background:#fff0c6}to{transform:scale(1)}}.pause-layer{z-index:15;pointer-events:none;background:#183c4840;backdrop-filter:blur(3px)}.dialog-panel{width:min(560px,100%);max-height:min(88dvh,720px);overflow:auto;padding:clamp(20px,4vw,34px)}#modal-host{position:absolute;z-index:15;inset:0;pointer-events:none}#modal-host .dialog-panel{pointer-events:auto}.dialog-panel h2{margin:0 0 8px;font-size:clamp(24px,4vw,34px);color:var(--deep)}.dialog-panel p{color:#58717a;margin:0 0 20px;font-weight:700;line-height:1.4}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:17px}.dialog-actions .secondary-choice{flex:1 1 135px}.setting-row,.album-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid rgba(169,143,99,.28);font-weight:800}.setting-row input{width:25px;height:25px;accent-color:#39856c}.album-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.postcard{min-height:120px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;border-radius:18px;color:#315b69;background:linear-gradient(155deg,#d1ebeb,#b5d9d1 52%,#e8d5a9);font-weight:900;box-shadow:inset 0 0 0 1px #ffffffa6}.postcard img{position:absolute;width:0;height:0}.postcard{position:relative;overflow:hidden}.postcard img{inset:0;width:100%;height:100%;object-fit:cover}.postcard>span{position:relative;z-index:1;padding:5px 8px;width:fit-content;border-radius:9px;background:#fffaedc7}.postcard .postmark{align-self:flex-end;font-size:20px}.postcard.locked:after{content:"";position:absolute;inset:0;background:#ece6d670}.badge-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.earned-badge,.quiet-badge{min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:17px;text-align:center;font-size:12px;font-weight:900}.earned-badge{color:#397763;background:#e1f0dd}.quiet-badge{color:#9e9e8e;background:#eae5d599;border:1px dashed #b9b29f}.badge-row svg{width:26px;height:26px}.postcard.locked{filter:saturate(.45);opacity:.67}.completion-panel{text-align:center}.earned-postcard{position:relative;width:min(300px,100%);height:142px;margin:-5px auto 12px;overflow:hidden;border-radius:18px;box-shadow:0 5px 16px #20505e29}.earned-postcard img{width:100%;height:100%;display:block;object-fit:cover}.earned-postcard span{position:absolute;left:9px;right:9px;bottom:9px;display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;border-radius:12px;background:#fffaedeb;color:#315b69;font-weight:900}.earned-postcard svg{width:20px;height:20px;color:#bf8837}.session-tally{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:12px 0}.session-tally span{min-height:50px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:14px;background:#f2ead6;color:#315b69}.session-tally svg{width:22px;height:22px;fill:none;stroke:#548774;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.session-tally b{font-size:16px}.replay-primary{background:linear-gradient(120deg,#438d7b,#69aa83);color:#fffaf0;box-shadow:0 4px #397563}.postcard .postmark{align-self:flex-end;font-size:26px}.trail-options{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.trail-choice{min-width:132px;min-height:106px;padding:12px;border-radius:20px;border:3px solid transparent;background:#f9f3e4;cursor:pointer;font-weight:900}.trail-choice[aria-pressed=true]{border-color:#69a98b}.trail-swatch{display:block;width:82px;height:12px;margin:8px auto 0;border-radius:20px;background:linear-gradient(90deg,#fff,#d5f0ef)}.trail-choice[data-trail=sunshine] .trail-swatch{background:linear-gradient(90deg,#f4bb57,#fff3a2)}.trail-choice[data-trail=rainbow] .trail-swatch{background:linear-gradient(90deg,#f27886,#f4c661,#7dccbd,#84aef0,#c29be2)}.rotate-card{display:none;position:absolute;z-index:12;top:14px;left:50%;transform:translate(-50%);padding:9px 14px;border-radius:20px;background:#fffaede6;color:#315b69;font-weight:900;pointer-events:auto;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:calc(100% - 28px);white-space:nowrap;font-size:clamp(12px,3.6vw,15px)}.rotate-card svg{width:22px;vertical-align:middle;margin-right:6px}.rotate-card button{border:0;background:none;color:inherit;font:inherit;cursor:pointer}.toast{position:absolute;left:50%;top:max(20px,env(safe-area-inset-top));transform:translate(-50%);padding:11px 18px;color:#fffdf5;background:#22535ce6;border-radius:22px;font-weight:900;box-shadow:0 5px 15px #15333d38}.collection-toast{display:flex;align-items:center;gap:9px;min-height:52px;width:max-content;max-width:calc(100vw - 28px);animation:cue-pop .18s ease-out}.collection-toast svg{width:28px;height:28px;flex:0 0 28px;fill:none;stroke:#ffe8a8;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@keyframes cue-pop{0%{opacity:.4;transform:translate(-50%,-6px) scale(.96)}to{opacity:1;transform:translate(-50%) scale(1)}}@media(max-width:700px){.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nest-panel{border-radius:24px}.choice{min-height:105px;flex-direction:row;justify-content:flex-start;text-align:left;padding:9px 12px;border-radius:18px}.choice-copy{align-items:flex-start}.choice .symbol{flex:0 0 54px;width:54px;height:54px}.choice .symbol svg{width:30px;height:30px}.choice small{display:none}.nest-actions{margin-top:14px}.intro-launch{margin-bottom:12px;min-height:64px}.intro-launch strong{font-size:17px}.secondary-choice{min-height:48px;padding:8px 12px}.status-pill{max-width:calc(100vw - 28px);font-size:11px}}@media(orientation:portrait){.rotate-card{display:flex}.game-hud{padding-top:max(55px,calc(env(safe-area-inset-top) + 44px))}.control-button{right:max(14px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:64px;height:64px;border-width:3px}.control-caption{right:max(14px,env(safe-area-inset-right));bottom:max(5px,env(safe-area-inset-bottom));font-size:10px}}html[data-reduced-motion=true] *,html[data-reduced-motion=true] *:before,html[data-reduced-motion=true] *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.loading-overlay{position:absolute;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:linear-gradient(160deg,#c6e8ebf7,#e8efddf7);pointer-events:auto}.loading-panel{width:min(420px,100%);display:flex;flex-direction:column;align-items:center;gap:12px;padding:30px;border-radius:28px;background:var(--paper);box-shadow:0 14px 40px #20505e33;text-align:center}.loading-bird{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#e3f0df;color:#397763}.loading-bird svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.loading-panel strong{color:var(--deep);font-size:22px}.loading-panel>span:not(.loading-bird){color:#58717a;font-size:15px;font-weight:700}.loading-track{width:100%;height:12px;overflow:hidden;border-radius:10px;background:#dce9e2}.loading-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#76b899,#e9bd69);transition:width .15s ease}.load-error .loading-panel{border:2px solid #d89567}.load-error .loading-panel strong{color:#8c4f38}.load-retry{min-width:160px;min-height:64px;margin-top:4px}.tutorial-gesture{position:absolute;z-index:1;width:76px;height:92px;display:grid;place-items:center;color:#fffdf2;filter:drop-shadow(0 2px 4px rgba(22,62,74,.65));pointer-events:none}.tutorial-gesture.drag-up{left:clamp(24px,10vw,120px);bottom:22%}.tutorial-gesture.tap-feather{right:max(52px,calc(env(safe-area-inset-right) + 52px));bottom:max(78px,calc(env(safe-area-inset-bottom) + 78px))}.tutorial-gesture .hand{width:46px;height:46px;fill:#fffaedf0;stroke:#315b69;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.gesture-arrow{position:absolute;width:40px;height:40px;opacity:.95}.gesture-arrow svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.tutorial-gesture.drag-up .gesture-arrow{top:0}.tutorial-gesture.drag-up .hand{position:absolute;bottom:0;animation:hand-drag-up 1.6s ease-in-out infinite}.tutorial-gesture.tap-feather .gesture-arrow{display:none}.tutorial-gesture.tap-feather .hand{animation:hand-tap 1.2s ease-in-out infinite}.static-gesture{left:50%!important;right:auto!important;bottom:17%!important;transform:translate(-50%);width:64px;height:64px;border-radius:50%;color:#173f51;background:#fffaedeb;filter:none}.static-gesture.tap-feather{left:auto!important;right:max(52px,calc(env(safe-area-inset-right) + 52px))!important;bottom:max(78px,calc(env(safe-area-inset-bottom) + 78px))!important;transform:none}.static-gesture .hand{display:none}.static-gesture .gesture-arrow{display:grid;place-items:center;position:static;width:42px;height:42px}.static-gesture.tap-feather .gesture-arrow{display:block;transform:rotate(135deg)}@keyframes hand-drag-up{0%,to{transform:translateY(14px)}50%{transform:translateY(-10px)}}@keyframes hand-tap{0%,to{transform:translateY(0) scale(1)}45%{transform:translateY(8px) scale(.9)}}.mission-goals{position:absolute;left:50%;top:max(74px,calc(env(safe-area-inset-top) + 64px));transform:translate(-50%);display:flex;align-items:center;gap:11px;min-height:48px;padding:7px 13px;border-radius:20px;color:#315b69;background:#fffaede8;box-shadow:0 4px 18px #1f495326;pointer-events:none}.package-goal{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#98754b;background:#f1e4c8}.package-goal.complete{color:#397763;background:#dceedd}.package-goal svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ring-cluster{display:flex;align-items:center;gap:3px;min-width:54px;color:#71848a}.ring-cluster svg{width:35px;height:35px;overflow:visible}.ring-cluster circle{fill:none;stroke-width:3}.ring-cluster .ring-track{stroke:#d5ded7}.ring-cluster .ring-fill{stroke:#d9a444;stroke-linecap:round;transform:rotate(-90deg);transform-origin:20px 20px;transition:stroke-dashoffset .22s ease}.ring-cluster.complete .ring-fill{stroke:#62a581}.ring-cluster .ring-center{fill:#f4cf79;stroke:none}.ring-cluster small{font-size:11px;font-weight:900;white-space:nowrap}.basket-goal{position:relative;width:112px;height:38px;display:flex;align-items:center}.basket-goal>svg{position:relative;z-index:1;width:37px;height:37px;fill:none;stroke:#527d9b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.basket-meter{position:absolute;left:21px;right:0;bottom:4px;height:17px;overflow:hidden;border-radius:5px 8px 8px 5px;background:#dce9e8}.basket-meter i{display:block;height:100%;border-radius:inherit;background:#78b99c;transition:width .2s ease}.basket-count{font-size:13px;font-weight:900;white-space:nowrap}.secondary-choice{min-height:64px}.quiet-adult{min-width:64px;min-height:64px}.trail-choice{min-height:112px}.trail-choice[data-trail=golden-sunshine] .trail-swatch{background:linear-gradient(90deg,#f4bb57,#fff3a2)}.trail-choice[data-trail=rainbow-mist] .trail-swatch{background:linear-gradient(90deg,#f27886,#f4c661,#7dccbd,#84aef0,#c29be2)}.trail-swatch.soft-white{background:linear-gradient(90deg,#fff,#d5f0ef)}@media(max-width:700px){.secondary-choice{min-height:64px}.quiet-adult{min-width:64px;min-height:64px}.nest-panel{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow:auto}.choice{min-height:104px}.nest-actions{flex-wrap:wrap}.nest-actions .secondary-choice{flex:1 1 145px}.tutorial-gesture.drag-up{left:14px;bottom:24%}.tutorial-gesture.tap-feather{right:15px;bottom:17%}.lesson-card{top:max(108px,calc(env(safe-area-inset-top) + 92px));max-width:min(70vw,320px)}.mission-goals{top:max(166px,calc(env(safe-area-inset-top) + 148px))}.dialog-panel{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);padding:20px;border-radius:24px}.dialog-actions{flex-direction:column}.dialog-actions .secondary-choice{width:100%;flex:0 0 auto}.badge-row{grid-template-columns:1fr}.earned-badge,.quiet-badge{min-height:54px;flex-direction:row}.trail-choice{min-width:120px;flex:1 1 120px}.rotate-card{min-height:64px}.rotate-card button{min-height:64px;padding:0 8px}}@media(max-width:420px){.choice{min-height:116px;flex-direction:column;justify-content:center;gap:3px;padding:7px 8px;text-align:center}.choice .symbol{flex:0 0 44px;width:44px;height:44px}.choice .symbol svg{width:27px;height:27px}.choice-copy{align-items:center;text-align:center}.choice strong{font-size:15px}}@media(orientation:portrait)and (max-width:700px){.game-hud{padding-top:max(112px,calc(env(safe-area-inset-top) + 100px))}.lesson-card{top:max(188px,calc(env(safe-area-inset-top) + 172px))}.mission-goals{top:max(248px,calc(env(safe-area-inset-top) + 232px))}.tutorial-gesture.drag-up{bottom:20%}.tutorial-gesture.tap-feather{right:12px;bottom:19%}.portrait-continued .game-hud{padding-top:max(14px,env(safe-area-inset-top))}.portrait-continued .lesson-card{top:max(108px,calc(env(safe-area-inset-top) + 92px))}.portrait-continued .mission-goals{top:max(188px,calc(env(safe-area-inset-top) + 168px))}}@media(orientation:portrait)and (max-width:700px)and (max-height:720px){.nest-panel{padding-top:max(74px,calc(env(safe-area-inset-top) + 62px))}}@media(orientation:portrait)and (min-width:701px){.choice{min-height:160px}.choice .symbol{width:58px;height:58px}.choice-copy{gap:3px}.game-hud{padding-top:max(94px,calc(env(safe-area-inset-top) + 80px))}.lesson-card{top:max(188px,calc(env(safe-area-inset-top) + 172px))}.mission-goals{top:max(248px,calc(env(safe-area-inset-top) + 232px))}.portrait-continued .game-hud{padding-top:max(14px,env(safe-area-inset-top))}.portrait-continued .lesson-card{top:max(108px,calc(env(safe-area-inset-top) + 92px))}.portrait-continued .mission-goals{top:max(188px,calc(env(safe-area-inset-top) + 168px))}}@media(orientation:landscape)and (max-height:500px){.choice{min-height:160px;padding-bottom:42px}.choice .symbol{width:58px;height:58px}.choice-copy{gap:3px}.nest-panel,.dialog-panel{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow-y:auto;overscroll-behavior:contain}}html[data-reduced-motion=true] .tutorial-gesture .hand{animation:none!important}html[data-reduced-motion=true] .control-button.charge-ready:before{animation:none!important}.expansion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 4px}.expansion-card{min-height:96px;display:flex;align-items:center;gap:12px;padding:14px 16px;border:2px solid rgba(255,255,255,.8);border-radius:22px;text-align:left;cursor:pointer;color:#315b69;box-shadow:0 5px #375d5b21,0 10px 22px #2b51571f}.battle-card{background:linear-gradient(125deg,#fff3cf,#f6c9a1)}.home-card{background:linear-gradient(125deg,#e9f1d8,#b9ded0)}.expansion-illustration{flex:0 0 54px;height:54px;display:grid;place-items:center;border-radius:17px;background:#ffffffad;font-size:31px}.expansion-illustration svg{width:32px;height:32px;color:#548774}.expansion-card span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px}.expansion-card strong{font-size:19px;color:#254c59}.expansion-card small{color:#58717a;line-height:1.25;font-size:12px;font-weight:700}.expansion-card>b{font-size:25px}#activity-host{position:absolute;z-index:8;inset:0;pointer-events:none}#activity-host.nest-activity{pointer-events:auto}.battle-hud{position:absolute;inset:0;pointer-events:none}.battle-top{position:absolute;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));display:flex;flex-direction:column;gap:5px;pointer-events:none}.battle-nav{display:flex;align-items:center;justify-content:space-between;min-height:46px;pointer-events:auto}.battle-nav strong{padding:7px 14px;border-radius:15px;color:#315b69;background:#fffaede6;font-size:clamp(15px,2.6vw,22px)}.battle-health-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.battle-health{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 9px;border-radius:14px;background:#fffaede6;box-shadow:0 2px 8px #1e48521f}.health-label{color:#315b69;font-size:clamp(9px,1.6vw,12px);font-weight:900;white-space:nowrap}.battle-health>span:last-child{color:#e84f66;font-size:clamp(11px,2.2vw,18px);font-weight:1000;line-height:1;white-space:nowrap;letter-spacing:0}.battle-swoop{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));width:86px;height:86px;border:4px solid #fff8dc;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#fff;background:conic-gradient(#ffe7a2 var(--charge-fill,0%),#e2a05e 0);box-shadow:0 5px #a86c4e;cursor:pointer;pointer-events:auto;touch-action:manipulation}.battle-swoop svg{width:35px;height:35px}.battle-swoop span{font-size:8px;font-weight:1000}.battle-swoop.charge-ready{background:linear-gradient(145deg,#f6bd4e,#e58d51);animation:feather-ready-glow 1.8s ease-in-out infinite}.battle-tell{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(58vw,480px);text-align:center;color:#315b69;font-weight:900;text-shadow:0 1px white;pointer-events:none}.rival-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rival-choice{min-height:110px;display:flex;align-items:center;gap:10px;padding:10px;border:2px solid #e5d8bc;border-radius:18px;color:#315b69;background:#fbf5e7;text-align:left;cursor:pointer}.rival-choice img{width:76px;height:72px;object-fit:contain;flex:0 0 76px}.rival-choice span{display:flex;flex-direction:column;gap:3px}.rival-choice strong{font-size:16px}.rival-choice small{font-size:11px;line-height:1.25}.rival-choice .rival-fact{color:#70807e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.expansion-grid{gap:8px}.expansion-card{min-height:84px;padding:9px;gap:8px}.expansion-illustration{flex-basis:42px;height:42px;font-size:25px}.expansion-card strong{font-size:15px}.expansion-card small{font-size:10px}.rival-list{grid-template-columns:1fr;max-height:52dvh;overflow:auto}.rival-choice{min-height:88px}.battle-nav{min-height:40px}.battle-nav .icon-button{width:44px;height:44px;min-width:44px}.battle-health{padding:5px 6px;flex-direction:column;align-items:center;gap:2px}.battle-health>span:last-child{font-size:15px}.health-label{font-size:9px}.battle-tell{bottom:max(115px,calc(env(safe-area-inset-bottom) + 105px));width:70vw;font-size:13px}}.nest-activity{--nest-ink:#294552;--nest-muted:#58717a;--nest-coral:#df896c;--nest-gold:#e5b75d;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:100%;min-height:100dvh;overflow:hidden;color:var(--nest-ink);font-family:inherit;background:#edf3e8}.nest-activity *{box-sizing:border-box}.nest-topbar{position:relative;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:68px;padding:8px clamp(12px,3vw,36px);background:#ffffffde;border-bottom:1px solid rgba(55,86,91,.12)}.nest-nav{justify-self:start;min-width:84px;min-height:52px;padding:8px 16px;border:0;border-radius:18px;background:#e7f1ec;color:#345a60;font-size:16px;font-weight:700;cursor:pointer}.nest-nav span{font-size:24px;vertical-align:-2px}.nest-brand{text-align:center;line-height:1}.nest-brand span{display:block;font-size:15px;font-weight:900;letter-spacing:.19em}.nest-brand small{display:block;margin-top:5px;color:var(--nest-muted);font-size:12px}.nest-step{justify-self:end;display:grid;place-items:center;width:49px;height:39px;border-radius:15px;background:#fff0ce;color:#765e31;font-size:13px;font-weight:900}.nest-play{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.72fr);align-items:center;gap:clamp(14px,3vw,46px);width:min(1220px,100%);min-height:0;flex:1;margin:0 auto;padding:clamp(12px,2.2vw,30px) clamp(14px,4vw,52px)}.nest-story{min-width:0}.nest-scene{position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:3/2;max-height:min(67vh,660px);margin:auto;border:5px solid rgba(255,255,255,.9);border-radius:28px;overflow:hidden;background:#57b9d3;box-shadow:0 20px 45px #3d4d4533,0 4px #ffffffa6 inset}.nest-cliff-art{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill;user-select:none;pointer-events:none}.nest-target{position:absolute;z-index:4;left:var(--tx);top:var(--ty);display:grid;place-items:center;width:clamp(60px,8vw,76px);height:clamp(60px,8vw,76px);padding:0;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%);cursor:pointer;-webkit-tap-highlight-color:transparent}.nest-target:focus-visible,.chick-hit:focus-visible{outline:4px solid #fff;outline-offset:3px}.target-ripple{position:absolute;inset:5px;border:3px solid rgba(255,255,255,.96);border-radius:50%;background:#fff2c340;box-shadow:0 0 0 5px #f4c5605c,0 0 24px #ffee9dd9;animation:nest-pulse 1.9s ease-out infinite}.target-dot{position:relative;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#fff8df;color:#805d36;font-size:21px;font-weight:900;box-shadow:0 3px 10px #493c2b44}.lay-target{left:62%;top:78%}.warm-target .target-dot{background:#fff4bd;color:#b97934}.hatch-target{width:60px;height:60px}.nest-bird{position:absolute;z-index:2;left:var(--tx);top:var(--ty);width:var(--bird-w);height:auto;aspect-ratio:var(--bird-aspect);background-image:url(/assets/falcon-atlas-v1.png);background-size:var(--bird-sheet-w) var(--bird-sheet-h);background-position:var(--bird-x) var(--bird-y);background-repeat:no-repeat;transform:translate(var(--bird-anchor-x),var(--bird-anchor-y));filter:drop-shadow(0 2px 2px #4c40354a);pointer-events:none;animation:perch-breath 3.2s ease-in-out infinite}.nest-bird-landing{animation:falcon-arrive 1.15s cubic-bezier(.2,.8,.2,1) both}.nest-perch-glow{position:absolute;left:22%;top:67%;z-index:1;width:17%;height:4%;transform:translate(-50%,-50%);border-radius:50%;background:#ffe291;opacity:0;filter:blur(12px);pointer-events:none;animation:perch-glow .9s ease-out .45s both}.nest-life{position:absolute;z-index:3;left:var(--tx);top:var(--ty);width:14%;height:auto;aspect-ratio:1;transform:translate(-50%,-86%);background-image:url(/assets/nest-life-atlas-v1.png);background-repeat:no-repeat;background-size:300% 200%;background-position:var(--frame-x,0%) var(--frame-y,0%);pointer-events:none;filter:drop-shadow(0 3px 2px #57463155)}.nest-life[data-pose=hidden]{display:none}.nest-life[data-pose=egg]{--frame-x:0%;--frame-y:0%}.nest-life[data-pose=cracked]{--frame-x:50%;--frame-y:0%;animation:egg-wiggle .62s ease-in-out infinite alternate}.nest-life[data-pose=open]{--frame-x:100%;--frame-y:0%}.nest-life[data-pose=rest]{--frame-x:0%;--frame-y:100%;animation:chick-bob 2.8s ease-in-out infinite}.nest-life[data-pose=chirp]{--frame-x:50%;--frame-y:100%;animation:chick-pop .45s cubic-bezier(.2,.8,.3,1) both,chick-bob 2.8s ease-in-out .5s infinite}.nest-life[data-pose=stretch]{--frame-x:100%;--frame-y:100%;animation:wing-stretch .9s ease-in-out both}.nest-caption{position:absolute;z-index:5;left:50%;bottom:3%;transform:translate(-50%);width:max-content;max-width:86%;padding:7px 13px;border-radius:20px;background:#fffae7e0;color:#665541;font-size:clamp(10px,1.2vw,13px);font-weight:750;text-align:center;pointer-events:none}.chick-hit{position:absolute;z-index:5;left:var(--tx);top:var(--ty);width:68px;height:68px;transform:translate(-50%,-65%);border:0;border-radius:50%;background:transparent;cursor:pointer}.nest-instructions{align-self:center;width:min(100%,380px);padding:clamp(12px,2vw,24px) 0}.nest-kicker{color:#a8664d;font-size:12px;font-weight:900;letter-spacing:.18em}.nest-instructions h1{margin:8px 0 9px;font-size:clamp(25px,3.4vw,40px);line-height:1.06;letter-spacing:-.035em}.nest-prompt{margin:0;color:#405e65;font-size:clamp(16px,1.6vw,19px);line-height:1.42;font-weight:650}.nest-fact{margin:13px 0 18px;color:#667d7c;font-size:14px;line-height:1.45}.nest-progress{display:flex;align-items:center;gap:14px;padding-top:13px;border-top:1px solid rgba(52,86,87,.16)}.progress-label{color:#6d807b;font-size:10px;font-weight:900;letter-spacing:.14em}.progress-dots{display:flex;gap:8px}.progress-dots i{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e2e6d9;color:#78867c;font-size:12px;font-style:normal;font-weight:800}.progress-dots i.done{background:#e6b75d;color:#fff}.nest-celebration{position:absolute;z-index:5;inset:8% 10% 32%;display:flex;align-items:flex-start;justify-content:space-between;color:#fff2a9;text-shadow:0 2px 7px #71563799;font-size:clamp(20px,5vw,38px);pointer-events:none}.nest-celebration span{animation:celebrate-twinkle 1.4s ease-in-out infinite alternate}.nest-celebration span:nth-child(2n){margin-top:15%;animation-delay:.45s}.nest-celebration span:nth-child(3){margin-top:4%;animation-delay:.8s}.nest-celebration span:nth-child(4){margin-top:21%;animation-delay:.2s}.nest-pause-shade{position:absolute;z-index:8;inset:0;display:grid;place-items:center;background:#1f39416e;backdrop-filter:blur(4px)}.nest-pause-card{display:grid;justify-items:center;width:min(340px,88vw);padding:30px 24px;border-radius:28px;background:#fffdf3;box-shadow:0 18px 50px #182e3566}.nest-pause-card>span{font-size:42px}.nest-pause-card h2{margin:5px 0 18px;font-size:25px}.nest-pause-card button{min-height:64px;padding:12px 30px;border:0;border-radius:21px;background:#e8a071;color:#fff;font-size:18px;font-weight:700;cursor:pointer}.nest-activity.is-paused *{animation-play-state:paused!important}.nest-activity.reduced-motion *,.nest-activity.reduced-motion *:before,.nest-activity.reduced-motion *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}.nest-activity button{font-family:inherit}.nest-activity button:active .target-dot{transform:scale(.88)}.nest-activity[data-reaction=scrape] .nest-scene{animation:scrape-jolt .32s ease-out}.nest-activity[data-reaction=lay] .nest-life:not([data-pose=hidden]){animation:egg-arrive .48s cubic-bezier(.2,.8,.3,1)}.nest-activity[data-reaction=warm] .nest-life[data-pose=egg]{filter:drop-shadow(0 0 12px #ffd96d)}.nest-activity[data-reaction=warm] .nest-bird{animation:falcon-warm .45s ease-in-out 2}.nest-activity[data-reaction=hatch] .nest-life[data-pose=rest]{animation:chick-pop .55s cubic-bezier(.2,.8,.3,1) both}.nest-prompt{max-width:38ch}@keyframes nest-pulse{0%{transform:scale(.72);opacity:.9}85%,to{transform:scale(1.22);opacity:.2}}@keyframes falcon-arrive{0%{opacity:0;transform:translate(var(--bird-anchor-x),calc(var(--bird-anchor-y) - 4px)) scale(.9)}68%{opacity:1;transform:translate(var(--bird-anchor-x),calc(var(--bird-anchor-y) + 2px)) scale(1.025)}to{opacity:1;transform:translate(var(--bird-anchor-x),var(--bird-anchor-y)) scale(1)}}@keyframes perch-breath{0%,to{margin-top:0}50%{margin-top:-2px}}@keyframes falcon-warm{0%,to{margin-top:0}50%{margin-top:-6px}}@keyframes perch-glow{0%{opacity:0;scale:.4}35%{opacity:.75;scale:1.2}to{opacity:0;scale:1.6}}@keyframes egg-wiggle{0%{rotate:-3deg}to{rotate:3deg}}@keyframes egg-arrive{0%{transform:translate(-50%,-80%) scale(.55);opacity:0}to{transform:translate(-50%,-80%) scale(1);opacity:1}}@keyframes chick-pop{0%{opacity:0;translate:0 12px;scale:.7}to{opacity:1;translate:0 0;scale:1}}@keyframes chick-bob{0%,to{translate:0 0}50%{translate:0 -3px}}@keyframes wing-stretch{0%,to{scale:1}35%,65%{scale:1.12 1.04}}@keyframes scrape-jolt{0%{translate:0 0}40%{translate:0 -2px}to{translate:0 0}}@keyframes celebrate-twinkle{0%{opacity:.42;transform:scale(.75) rotate(-12deg)}to{opacity:1;transform:scale(1.16) rotate(12deg)}}@media(max-width:760px){.nest-topbar{min-height:57px;padding:5px 10px}.nest-nav{min-height:46px;padding:6px 11px}.nest-play{grid-template-columns:minmax(0,1.1fr) minmax(205px,.82fr);gap:15px;padding:12px}.nest-scene{max-height:65vh;border-width:4px;border-radius:23px}.nest-instructions h1{font-size:clamp(23px,4vw,32px)}.nest-fact{font-size:12px;margin:9px 0 13px}}@media(max-width:560px){.nest-play{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:4px;padding:8px 12px 12px}.nest-scene{width:min(100%,540px);max-height:48vh;aspect-ratio:3/2}.nest-instructions{width:min(100%,540px);padding:4px 4px 0}.nest-kicker{font-size:10px}.nest-instructions h1{margin:4px 0;font-size:24px}.nest-prompt{font-size:15px}.nest-fact{margin:5px 0 8px;font-size:11px}.nest-progress{padding-top:7px}.nest-caption{bottom:3%;font-size:10px}.nest-target{width:60px;height:60px}.nest-life{width:14%;height:auto;aspect-ratio:1}.chick-hit{width:68px;height:68px}}@media(max-height:500px)and (orientation:landscape){.nest-topbar{min-height:48px;padding-block:3px}.nest-play{grid-template-columns:minmax(0,1.25fr) minmax(230px,.76fr);gap:20px;padding:8px 22px}.nest-scene{width:min(100%,calc(150dvh - 112.5px));max-height:none;aspect-ratio:3/2}.nest-instructions{padding:5px}.nest-instructions h1{font-size:clamp(21px,4.6vh,30px);margin:4px 0}.nest-prompt{font-size:14px}.nest-fact{margin:5px 0 7px;font-size:11px}}.nest-scrape-feedback{position:absolute;z-index:2;left:var(--tx);top:var(--ty);width:30px;height:14px;transform:translate(-50%,-50%);border-radius:50%;background:linear-gradient(170deg,transparent 34%,rgba(255,246,215,.8) 36% 44%,transparent 47%),linear-gradient(8deg,transparent 44%,rgba(255,255,255,.82) 46% 53%,transparent 56%);opacity:.85;pointer-events:none}.nest-restart{display:block;width:100%;min-height:58px;margin-top:18px;padding:12px 18px;border:0;border-radius:20px;background:#df896c;color:#fff;font-size:17px;font-weight:850;box-shadow:0 4px #b96950;cursor:pointer}.nest-restart:hover{background:#cf775b}.nest-restart:focus-visible{outline:4px solid #e5b75d;outline-offset:4px}
