*{box-sizing:border-box} :root{font-family:Georgia,'Times New Roman',serif;color:#2b4336;background:#8bcafb;font-synthesis:none}body{margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,#viewport:focus-visible{outline:3px solid #c17b33;outline-offset:4px}button{border:0}button:disabled{opacity:.55;cursor:wait}#game{position:relative;height:100vh;height:100dvh;min-height:360px;overflow:hidden}#viewport{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x;cursor:grab}#viewport:active{cursor:grabbing}#viewport::-webkit-scrollbar{display:none}#world{position:relative;height:100%;width:617.045455vh;width:617.045455dvh;min-width:100vw;background:#7cbfdc}.scenery{position:absolute;inset:0;overflow:hidden;pointer-events:none}.scenery img{position:absolute;left:0;top:var(--panorama-top,-52.840909%);width:100%;height:var(--panorama-height,205.681818%);max-width:none;object-fit:fill;pointer-events:none;user-select:none}header{position:absolute;left:max(30px,env(safe-area-inset-left));right:max(30px,env(safe-area-inset-right));top:max(28px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.brand{padding:18px 24px;background:#faf7e9e8;border:1px solid #fff9;border-radius:4px 24px 24px 24px;box-shadow:0 8px 40px #31483c0c}header button{pointer-events:auto}.eyebrow,.version,.small,.row,#soundWord,.stats,.navigation,.pill,.primary,.text-button,.privacy,.setting,.slider-label,.muted,.animal-name,.tier-count,.collection small,#message{font-family:Arial,sans-serif}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.version{font-size:9px;letter-spacing:2.2px;opacity:.6}h1{font-size:30px;font-weight:normal;margin:8px 0}h1 span{font-size:22px;margin-left:12px;color:#a78c4f}h2{font-size:34px;font-weight:normal;margin:10px 0 18px}.round{width:48px;height:48px;border-radius:50%;background:#faf7e9ed;box-shadow:0 3px 20px #1d382217;border:1px solid #fff9;font-size:25px;display:inline-flex;align-items:center;justify-content:center}.glass{background:#faf7e9ed;border:1px solid #ffffffa8;box-shadow:0 15px 55px #1e3c2820;backdrop-filter:blur(14px)}.hud{position:absolute;top:180px;left:30px;width:255px;pointer-events:none}.hud .glass{border-radius:17px;padding:17px}.row{display:flex;justify-content:space-between;gap:8px;align-items:center}.row .eyebrow{font-size:8px;letter-spacing:1.3px}#soundWord{font-size:8px;letter-spacing:1px}.meter{position:relative;height:6px;background:#dddcca;border-radius:12px;margin:15px 0 8px;overflow:visible}#meterFill{height:100%;width:0;background:#6f9c72;border-radius:12px;transition:width .15s}#thresholdMarker{position:absolute;top:-3px;height:12px;width:2px;background:#977e4e;left:40%}.small{font-size:11px;line-height:1.6}.stats{display:flex;gap:22px;justify-content:space-between;margin-top:10px;font-size:11px}.stats b{font-size:17px;font-weight:normal}.stats:has(> [hidden]):has(> [hidden]+[hidden]){display:none}#message{position:absolute;bottom:115px;left:50%;transform:translateX(-50%);text-align:center;max-width:90%;width:max-content;background:#f7f3e5e8;padding:10px 18px;border-radius:30px;font-size:12px;pointer-events:none}footer{position:absolute;bottom:max(25px,env(safe-area-inset-bottom));left:30px;right:30px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}footer>*{pointer-events:auto}.navigation{display:flex;align-items:center;gap:14px;font-size:9px;letter-spacing:1.8px}.navigation .round{width:40px;height:40px;font-size:20px}.collection{position:absolute;left:50%;transform:translateX(-50%);width:76px;height:76px;flex-direction:column;gap:2px;background:#f8f3df}.collection span{font-size:35px;line-height:35px}.collection small{font-size:8px;letter-spacing:1.3px}.pill{border:1px solid #d9decd;background:#faf7e9;padding:13px 20px;border-radius:30px;font-size:12px}.intro{position:absolute;width:min(410px,calc(100% - 32px));top:50%;left:50%;transform:translate(-50%,-43%);padding:33px 35px;border-radius:26px}.intro h2{font-size:54px;line-height:1.04;margin:22px 0}.intro p{font-size:15px;line-height:1.65}.primary{background:#344e3c;color:#fff9e8;width:100%;padding:17px 20px;border-radius:12px;font-size:13px;display:flex;justify-content:space-between;margin-top:23px}.text-button{background:none;font-size:11px;width:100%;padding:17px 0 0}.intro .privacy{font-size:10px;opacity:.65;margin:20px 0 0}.intro #error{font-family:Arial,sans-serif;font-size:12px;color:#925039;margin:12px 0 0}#error:empty{display:none}dialog{border:1px solid #fff9;color:#2b4336}dialog::backdrop{background:#193d302b;backdrop-filter:blur(2px)}.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(450px,100%);max-width:100%;height:100dvh;max-height:100dvh;background:#f8f5e9;padding:28px;overflow:auto}.drawer-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.drawer-head h2{margin-bottom:8px}.close{width:36px;height:36px;box-shadow:none}.muted{color:#778072;font-size:12px;line-height:1.6}.tier-title{display:flex;justify-content:space-between;align-items:center;margin:30px 0 12px;font-size:18px}.tier-title img{height:38px;width:47px;object-fit:contain}.tier-count{font-size:10px;color:#8b9184}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.card{height:100px;border:1px solid #e5e7da;background:#fffdf5;border-radius:13px;text-align:center;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:6px}.card svg{height:65px;width:100%;flex-shrink:0}.card.locked svg{filter:grayscale(1);opacity:.22}.animal-name{font-size:9px;line-height:1.2}.settings{border-radius:24px;width:min(440px,calc(100% - 24px));padding:27px;max-height:90dvh;overflow:auto}.setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e1e3d7;font-size:13px}.setting input{width:19px;height:19px;accent-color:#47694c}.slider-label{display:flex;justify-content:space-between;margin:22px 0 9px;font-size:12px}input[type=range]{width:100%;accent-color:#557959;min-height:24px}#calibrate{margin-top:16px}#animals{position:absolute;inset:0;pointer-events:none}.animal{position:absolute;will-change:transform;transform-origin:center bottom;filter:drop-shadow(0 5px 2px #1e3b2522)}.animal svg{display:block;width:100%;height:100%}.animal.water{filter:none;opacity:.82}.animal.water:after{content:'';position:absolute;inset:15% 0 0;background:linear-gradient(transparent,#69b9d655);border-radius:50%;pointer-events:none}.animal .leg,.animal [data-leg]{transform-box:view-box;animation:stride .65s ease-in-out infinite alternate}.animal .l1,.animal .l2{animation-delay:-.65s}.animal .tail{transform-origin:80px 95px;animation:sway 2.4s ease-in-out infinite alternate}.animal.idle .leg,.animal.idle [data-leg]{animation-play-state:paused}.animal.fleeing .leg{animation-duration:.2s}.reduced .animal *{animation:none!important}.animal.water .body{animation:swim 2s ease-in-out infinite alternate}.animal [data-leg]{animation:none}.animal [data-body]{transform-origin:center}.animal{transition:opacity .5s}@keyframes stride{from{rotate:-12deg}to{rotate:12deg}}@keyframes sway{from{rotate:-7deg}to{rotate:7deg}}@keyframes swim{to{translate:0 4px}}[hidden]{display:none!important}@media(max-width:700px){header{left:16px;right:16px;top:16px}.brand{padding:12px 15px}h1{font-size:23px}.eyebrow{font-size:8px;letter-spacing:1.3px}.version{font-size:8px}.hud{left:16px;top:145px;width:210px}.hud .glass{padding:12px}footer{left:16px;right:16px;bottom:20px}.navigation{gap:5px}.navigation span{display:none}.pill{padding:12px 15px;font-size:10px}.collection{width:64px;height:64px}#message{bottom:99px;font-size:10px}.intro{padding:26px}.intro h2{font-size:43px}.intro p{font-size:13px}.drawer{padding:22px}}@media(max-height:590px){header{top:10px}.brand{padding:10px 16px}h1{font-size:22px;margin:5px 0}.hud{top:117px;width:210px}.intro{top:48%;transform:translate(-50%,-50%);padding:20px;width:360px}.intro h2{font-size:32px;margin:12px 0}.intro h2 br{display:none}.intro p{font-size:12px;margin:10px 0}.intro .primary{padding:12px;margin-top:12px}.intro .privacy{margin-top:12px}.text-button{padding-top:12px}footer{bottom:12px}#message{bottom:91px}.collection{width:60px;height:60px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.water-surface{z-index:200;pointer-events:none;opacity:.23;clip-path:var(--water-clip)}

#viewport{overscroll-behavior-x:contain}footer button:disabled{opacity:.4;cursor:default}.scenery img{display:block}

/* V1.3: joint motion is controlled by the shared animation rig. */
#viewport{z-index:0}header,.hud,#message,footer{z-index:5}.intro{z-index:6}.animal .leg,.animal [data-leg],.animal .tail,.animal.water .body{animation:none}.animal{transition:none}.animal.airborne{filter:none}.animal.airborne:after{display:none}.animal svg{overflow:visible}

/* V1.3.1: each articulated part rotates around its own local anchor. */
.animal [data-anim],.animal [data-body],.card [data-anim],.card [data-body]{transform-origin:0 0;transform-box:view-box}
.motion-notice{pointer-events:auto;margin-top:10px;padding:10px 12px;border-radius:12px;background:#faf7e9;color:#344e3c;font:12px Arial,sans-serif;line-height:1.4;box-shadow:0 3px 15px #1d382217}

/* V1.3.3: keep entering sprites from extending the scrollable world. */
#animals{overflow:hidden}
.autoscroll{position:absolute;z-index:5;top:max(28px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;border-radius:16px;padding:10px 14px;width:270px;font:14px Arial,sans-serif}
.auto-toggle{display:flex;align-items:center;gap:7px;white-space:nowrap;min-height:32px;cursor:pointer}.auto-toggle input{width:18px;height:18px;margin:0;accent-color:#47694c}
.auto-speed{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px;font-size:12px}.auto-speed span{display:flex;justify-content:space-between}.auto-speed input{margin:0;min-width:0;min-height:24px}
@media(max-width:1040px){.autoscroll{top:158px}.hud{top:224px}}
@media(max-width:700px){.autoscroll{top:124px;width:260px;padding:7px 12px}.hud{top:186px}}
@media(max-height:590px){.autoscroll{top:108px;padding:6px 12px}.hud{top:168px}}
@media(max-height:590px) and (min-width:900px){.autoscroll{top:12px}.hud{top:117px}}
@media(max-width:380px){h1{font-size:20px}.autoscroll{width:250px;max-width:calc(100% - 28px)}}

/* V1.5.1: deliberate reset, separate from pausing. */
.reset-section{font:14px/1.5 Arial,sans-serif;border-top:1px solid #d7dfce;margin-top:22px;padding-top:12px}.reset-section h3{font:22px Georgia,serif;margin:10px 0}.reset-section .muted{font-size:14px}.reset-section .pill{font-size:14px;min-height:44px}.reset-actions{display:flex;gap:10px;flex-wrap:wrap}#resetProgress,#confirmReset{color:#874735;border-color:#b98b78;background:#fff5ed}#resetConfirm{padding:12px 0}
