:root{--ink:#263f34;--muted:#7c897b;--green:#285d47;--light:#eef2e6;--paper:#faf9f2;--line:#e4e8dd;--gold:#e5bd63;--shadow:0 12px 40px #344e3410;font-family:ui-rounded,'Avenir Next','Segoe UI',sans-serif;color:var(--ink);font-size:15px;background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #e7ae4b;outline-offset:4px}button{border:0}a{color:var(--green)}button svg{pointer-events:none}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.035em}h1{font-size:clamp(26px,2.7vw,38px);line-height:1.2;font-weight:750}h2{font-size:24px}h3{font-size:18px}p{line-height:1.65}.icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:800;color:#8c9a84}.subtext{color:var(--muted);font-size:13px}.pill{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:30px;font-size:11px;font-weight:700;background:var(--light)}.pill .icon{width:14px;height:14px}.pill.gold{background:#f7edcf;color:#997c35}.pill.soft{background:#f2eee2;color:#9c8862}.rail{position:fixed;inset:0 auto 0 0;width:92px;background:#eef1e7;border-right:1px solid #e0e5d8;display:flex;align-items:center;flex-direction:column;z-index:10;padding:26px 12px 20px}.brand{text-decoration:none;display:block}.brand-mark{width:48px;height:48px;border-radius:17px;background:var(--green);color:#f7e6b7;font-family:Georgia,serif;font-size:43px;font-weight:bold;line-height:40px;display:block;text-align:center;position:relative;transform:rotate(-5deg)}.brand-mark>span{position:absolute;font-family:inherit;font-size:18px;right:8px;top:-4px}#nav{margin-top:48px;display:grid;gap:13px;width:100%}.nav-button{background:transparent;min-height:64px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border-radius:17px;color:#88927e;font-size:10px;font-weight:750;transition:background .2s,color .2s}.nav-button .icon{width:23px;height:23px}.nav-button.active{color:var(--green);background:#dce6d5}.nav-button:hover{background:#e2e9da}.rail-parent{margin-top:auto;background:transparent;padding:12px;color:#87917e}.app-shell{margin-left:92px;padding:0 36px;max-width:1900px}.topbar{height:99px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.wordmark{font-size:12px;letter-spacing:2.1px;font-weight:600}.wordmark b{font-weight:850}.wordmark span{display:block;letter-spacing:.1px;font-size:11px;color:#929a89;margin-top:7px}.header-actions{display:flex;align-items:center;gap:14px}.saved-indicator{font-size:11px;color:#8f9a86}.saved-indicator:before{content:'';display:inline-block;width:5px;height:5px;background:#91ae84;border-radius:50%;margin-right:7px}.icon-button{background:#eef1e6;border-radius:50%;width:42px;height:42px;display:inline-grid;place-items:center}.icon-button .icon{width:19px;height:19px}.keeper-avatar{width:39px;height:39px;border:4px solid #fff;outline:1px solid #e2dcc8;background:#d8c49a;color:#6e6349;border-radius:50%;font-weight:800;font-family:Georgia,serif;font-size:18px}main{padding-top:28px;min-height:calc(100vh - 143px)}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.page-heading .eyebrow{margin-bottom:9px}.page-heading p{font-size:13px;margin-top:8px;color:var(--muted)}.day-pill{margin-top:21px;background:#eef1e4;padding:10px 14px;border-radius:30px;font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:7px}.day-pill .icon{width:15px;height:15px;color:#b5a15e}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:19px}.stat-card{padding:16px 18px;background:#fffefa;border:1px solid #e5e7dc;border-radius:17px;display:flex;gap:13px;align-items:center;min-height:85px}.stat-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:#f7edd0;color:#b99246}.stat-card:nth-child(2) .stat-icon{background:#e9eddf;color:#79956e}.stat-card:nth-child(3) .stat-icon{background:#e8efed;color:#7e9a98}.stat-card strong{font-size:25px;font-weight:750;letter-spacing:-1px}.stat-card small{display:block;color:#8f9787;font-size:10px;font-weight:600;margin-top:4px}.stat-card em{font-size:12px;color:#a2a98f;font-style:normal;margin-left:3px}.map-card{border-radius:22px;overflow:hidden;border:1px solid #dbe2cd;background:#d7e3c5;position:relative;box-shadow:var(--shadow)}.map-toolbar{position:absolute;z-index:2;left:18px;right:18px;top:17px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.map-toolbar>*{pointer-events:auto}.map-location{background:#fffbedee;border:1px solid #fff9;padding:10px 13px;border-radius:12px;font-size:11px;font-weight:700;box-shadow:0 2px 6px #47643808;display:flex;gap:7px;align-items:center}.map-location .icon{width:15px;height:15px;color:#7f986e}.map-zoom{display:flex;flex-direction:column;gap:3px;padding:4px;background:#fffbedee;border-radius:12px}.map-zoom button{background:transparent;width:32px;height:32px;border-radius:7px}.map-zoom button:hover{background:#e9ecdb}.map-zoom .icon{width:17px;height:17px}.map-viewport{height:510px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a9bc93 transparent;touch-action:pan-x pan-y}.zoo-svg{display:block;width:100%;min-width:850px;height:auto;max-width:none;overflow:hidden}.map-plot{cursor:pointer}.map-plot>path:first-of-type{transition:filter .2s}.map-plot:hover>path:first-of-type,.map-plot:focus>path:first-of-type{filter:brightness(1.035)}.map-label{font-family:'Avenir Next','Segoe UI',sans-serif;font-size:14px;fill:#415c43;font-weight:650}.map-count{font-size:12px;fill:#97a080;text-anchor:middle;font-weight:700}.map-empty,.map-unbuilt{font-size:14px;fill:#839574;text-anchor:middle}.map-bottom{position:absolute;bottom:16px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.map-bottom>*{pointer-events:auto}.map-hint{background:#fffbeddf;border-radius:24px;padding:9px 12px;font-size:10px;color:#7b896e;display:flex;align-items:center;gap:6px}.map-hint .icon{width:13px;height:13px}.collect-button{border-radius:30px;background:#fff9e9;border:1px solid #d6c797;padding:11px 16px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750;box-shadow:0 4px 12px #4a643a14}.collect-button .icon{width:20px;height:20px;color:#b89743}.collect-button.ready{animation:coin-glow 4s ease-in-out infinite}.section-row{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px;gap:12px}.section-row h2{font-size:17px;letter-spacing:-.02em}.text-button{background:transparent;display:flex;align-items:center;gap:5px;color:#7b8d70;font-size:11px;font-weight:650;padding:8px 0}.text-button .icon{width:15px;height:15px}.resident-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.resident-card{background:#f1efdf;border:1px solid #e8e5d5;border-radius:16px;padding:10px 10px 13px;position:relative;text-align:left;overflow:hidden;transition:transform .2s}.resident-card:hover{transform:translateY(-3px)}.resident-card:nth-child(2){background:#e8eee3;border-color:#dfe7d8}.resident-card:nth-child(3){background:#f2e8da;border-color:#e9e0d2}.resident-card:nth-child(4){background:#e8edeb;border-color:#dde5e0}.resident-card .animal-art{width:100%;height:95px}.resident-card h3{font-size:12px;letter-spacing:0}.resident-card p{font-size:9px;color:#8c937f;margin-top:3px}.resident-card>.icon{position:absolute;top:10px;right:10px;width:14px;height:14px;color:#a3ac89}.side-column{display:flex;flex-direction:column;gap:18px}.keeper-card{background:#f0f1e4;border:1px solid #e1e5d3;border-radius:20px;padding:23px 20px}.keeper-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.keeper-top h2{font-size:18px}.keeper-top>.icon{color:#a6af82;width:20px;height:20px}.keeper-card>p{color:#8b957c;font-size:11px;line-height:1.7}.task-list{margin:20px 0 18px;display:grid;gap:12px}.task{display:flex;align-items:center;gap:11px;background:#f9f9f0;border-radius:12px;padding:12px 10px}.task-symbol{background:#e9edda;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:#8f9d72;flex-shrink:0}.task-symbol .icon{width:19px;height:19px}.task strong{font-size:11px;font-weight:700;display:block}.task small{font-size:9px;color:#98a084;display:block;margin-top:5px}.task .task-count{margin-left:auto;font-size:10px;color:#a1a688;white-space:nowrap}.task.done .task-symbol{background:#dce9d3;color:#5e895b}.task.done .task-count{color:#5e895b}.progress-track{height:5px;border-radius:10px;background:#dce3ce;overflow:hidden}.progress-track span{display:block;height:100%;background:#9baa77;border-radius:inherit;transition:width .4s}.reward-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#96a17e;margin-top:10px}.reward-label b{font-weight:700;color:#8b865d}.reward-label .icon{width:13px;height:13px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:13px;background:var(--green);color:#fffdf0;font-size:13px;font-weight:700;transition:transform .15s,background .15s;text-decoration:none}.button:hover{background:#356f54}.button:active{transform:scale(.97)}.button .icon{width:19px;height:19px}.button.secondary{background:#edf0e3;color:#627955;border:1px solid #dfe5d2}.button.secondary:hover{background:#e2e9d6}.button.gold-button{background:#e8cb83;color:#786036}.button.danger{background:#9c6152}.button.full{width:100%}.button.small{font-size:11px;min-height:39px;padding:9px 13px}.keeper-card>.button{margin-top:17px}.nursery-teaser{padding:22px 20px;border-radius:20px;border:1px solid #e7dfcf;background:#f5efe2;overflow:hidden;position:relative;min-height:180px}.nursery-teaser .eyebrow{font-size:9px;letter-spacing:1.5px;color:#af9d78}.nursery-teaser h3{font-size:19px;max-width:150px;margin-top:8px;line-height:1.25}.nursery-teaser p{font-size:10px;color:#a49a82;margin-top:9px;max-width:120px}.nursery-teaser>.animal-art{position:absolute;width:130px;right:-23px;bottom:8px;transform:rotate(-8deg)}.nursery-teaser .text-button{margin-top:11px;color:#9c895c}.quiet-note{display:flex;gap:10px;padding:2px 9px}.quiet-note>.icon{width:19px;height:19px;color:#9da68c;margin-top:2px}.quiet-note p{font-size:10px;color:#9aa38d;line-height:1.8}.app-footer{display:flex;justify-content:space-between;font-size:9px;color:#a2aa98;margin:27px 0 20px;letter-spacing:.2px}.view-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 1px 14px;scrollbar-width:none}.filter-chip{display:flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #e1e6d7;background:#f2f3e9;color:#869178;padding:10px 14px;border-radius:24px;font-size:11px;min-height:42px}.filter-chip .icon{width:15px;height:15px}.filter-chip.active{background:var(--green);color:#fff9e7;border-color:var(--green)}.collection-controls{display:flex;align-items:center;gap:12px;margin-bottom:13px}.search-input{border:1px solid #dce3d2;border-radius:13px;background:#fffef8;padding:13px 16px;min-width:0;width:100%;font-size:13px;color:var(--ink);outline-offset:1px}.collection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.animal-card{background:#fffef8;border:1px solid #e5e7d9;border-radius:20px;overflow:hidden;position:relative;text-align:left;box-shadow:0 3px 12px #36503903;display:flex;flex-direction:column;padding:0;transition:transform .2s,box-shadow .2s}.animal-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.animal-card-art{width:100%;display:grid;place-items:center;background:var(--habitat-color,#e8eddd);position:relative;padding:20px 14px 10px;aspect-ratio:1.35}.animal-card .animal-art{width:100%;height:100%;max-height:140px}.animal-card.locked .animal-art{opacity:.5;filter:saturate(.45)}.animal-badge{position:absolute;top:12px;right:12px;width:25px;height:25px;background:#fffc;border-radius:50%;display:grid;place-items:center;color:#70926e}.animal-badge .icon{width:13px;height:13px}.animal-card-info{padding:16px;flex:1;width:100%}.animal-card h3{font-size:14px;letter-spacing:-.015em}.animal-card p{font-size:10px;color:#8c9781;margin-top:5px}.animal-card-bottom{margin-top:13px;padding-top:12px;border-top:1px solid #edf0e6;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#889978}.animal-card-bottom .icon{width:14px;height:14px}.animal-card-bottom b{font-weight:700;color:#a18a50;display:flex;align-items:center;gap:4px}.build-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.build-card{border:1px solid #e0e5d8;background:#fffef8;border-radius:20px;overflow:hidden}.build-art{height:170px;display:grid;place-items:center;position:relative;overflow:hidden;background:var(--habitat-color,#e8eddd)}.build-art>.icon{width:65px;height:65px;color:#657e5b;stroke-width:1.1}.build-art .animal-art{width:145px;height:110px;position:relative;z-index:1}.build-art:before{content:'';position:absolute;width:150px;height:55px;border-radius:50%;background:#738c5c15;bottom:27px}.build-content{padding:20px}.build-content h3{font-size:16px}.build-content p{font-size:11px;color:#939d87;margin:7px 0 15px;min-height:35px}.build-content .button{width:100%}.build-content small{display:block;text-align:center;color:#a3aa92;font-size:10px;margin-top:10px}.empty-state{background:#eff2e6;border:1px dashed #ced9bf;border-radius:22px;text-align:center;padding:50px 20px}.empty-state>.icon{width:48px;height:48px;color:#92a77e}.empty-state h2{margin:18px 0 10px}.empty-state p{font-size:13px;color:#87977b;max-width:450px;margin:0 auto 20px}.nursery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.baby-card{background:#fffaf0;border:1px solid #e9dfc9;border-radius:22px;padding:23px}.baby-card-art{height:160px;position:relative;background:#f2ead7;border-radius:16px;display:flex;justify-content:center;align-items:center;margin-bottom:18px}.baby-card-art .animal-art{height:140px;width:180px}.baby-card-art .baby-art{height:80px;width:110px;position:absolute;bottom:4px;right:4px}.baby-card-art .icon{position:absolute;top:15px;right:15px;color:#bc9a5f}.baby-card h3{margin-bottom:4px}.baby-card p{color:#a39578;font-size:11px;margin-bottom:15px}.baby-card .progress-track{margin:12px 0}.baby-name{display:flex;gap:7px;margin:15px 0}.baby-name input{min-width:0;width:100%;padding:10px;border:1px solid #e1d7bd;background:#fffdf6;border-radius:10px;font-size:12px}.scrapbook-hero{background:#e9edde;border:1px solid #dce3d0;border-radius:24px;padding:28px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.scrapbook-hero p{font-size:13px;color:#879178;margin-top:10px}.stamp-number{font-family:Georgia,serif;font-size:70px;color:#a4ad83;padding:0 20px}.stamp-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.stamp{padding:25px 10px;border:2px dashed #d9decb;border-radius:18px;display:flex;align-items:center;flex-direction:column;gap:12px;color:#b4bba4;background:#f3f4ea;font-size:11px}.stamp.earned{border-color:#b7c5a0;color:#6f8b5c;background:#eaf0df;transform:rotate(-2deg)}.stamp:nth-child(even).earned{transform:rotate(2deg)}.stamp .icon{width:34px;height:34px}.collection-progress{display:flex;gap:15px;align-items:center;margin:18px 0 25px}.collection-progress .progress-track{flex:1}.collection-progress span{font-size:11px;color:#91a07f}.modal-open{overflow:hidden}dialog{border:1px solid #e2e5d7;border-radius:28px;background:#fffdf5;color:var(--ink);padding:0;width:min(700px,calc(100% - 28px));max-height:90dvh;box-shadow:0 30px 150px #183d3240;overscroll-behavior:contain}dialog::backdrop{background:#1c392f65;backdrop-filter:blur(5px)}.modal-close{position:absolute;top:16px;right:16px;z-index:2;background:#fffc;backdrop-filter:blur(5px)}.modal-content{padding:30px}.modal-content h2{margin-bottom:10px}.modal-content>p{font-size:13px;color:#8b967f}.animal-hero{height:200px;background:var(--habitat-color,#e7eddb);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.animal-hero:before{content:'';position:absolute;width:250px;height:65px;background:#6381510d;border-radius:50%;bottom:28px}.animal-hero .animal-art{width:235px;height:180px}.animal-hero .region-label{position:absolute;left:24px;top:22px;color:#6e845d;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;font-weight:750}.animal-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.animal-title-row h2{margin-bottom:5px}.animal-fact{border-radius:12px;padding:13px 15px;background:#f1f3e8;color:#7d8d70;font-size:12px;line-height:1.6;margin:17px 0;display:flex;align-items:center;gap:12px}.animal-fact>.icon{flex-shrink:0;width:20px;height:20px;color:#a5b08b}.care-tabs{display:flex;gap:8px;margin:18px 0 15px}.care-tabs button{flex:1;border-radius:12px;background:#edf1e4;padding:12px 10px;min-height:47px;display:flex;justify-content:center;align-items:center;gap:6px;font-size:12px;color:#7d916c}.care-tabs button.active{background:#dce8d2;color:#4c7549}.care-tabs .icon{width:18px;height:18px}.food-tray{display:flex;justify-content:center;gap:10px;padding:19px 5px;background:#f6f3e6;border:1px dashed #dcd8bd;border-radius:17px;flex-wrap:wrap}.food-piece{background:#fffdf4;border:1px solid #e6e0c9;border-radius:15px;min-width:75px;padding:10px 7px;display:flex;flex-direction:column;gap:6px;align-items:center;touch-action:none}.food-piece span{font-size:27px;line-height:1.3;pointer-events:none}.food-piece small{font-size:8px;color:#9f9a80;pointer-events:none}.food-piece:hover{transform:translateY(-3px)}.food-piece.suggested{border-color:#a6bb8f;box-shadow:0 0 0 2px #c5d6af44}.care-hint{font-size:10px;text-align:center;color:#a1a78c;margin:12px 0 20px}.drag-ghost{position:fixed;font-size:40px;pointer-events:none;z-index:100;transform:translate(-50%,-50%)}.animal-hero.drag-over{outline:4px solid #a9be8d;outline-offset:-5px}.family-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e9eadf;padding-top:18px;margin-top:19px}.family-row strong{font-size:12px;display:block}.family-row p{font-size:10px;color:#9ba48b;margin-top:5px;line-height:1.5}.family-row .button{min-width:145px}.habitat-residents{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.habitat-residents .resident-card .animal-art{height:80px}.habitat-info{display:flex;gap:7px;margin-top:14px}.parent-gate{padding:40px;text-align:center}.parent-gate>.icon{width:42px;height:42px;color:#95a77e;margin-bottom:18px}.parent-gate p{font-size:13px;color:#8e9b81;margin-top:12px}.gate-options{display:flex;gap:12px;justify-content:center;margin-top:24px}.gate-options button{min-width:65px;font-size:20px}.parent-settings{display:grid;gap:16px;margin:25px 0}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e7ebdf;padding-bottom:15px}.setting-row strong{font-size:13px}.setting-row p{font-size:10px;color:#949f87;margin-top:4px}.setting-row select{background:#edf0e4;border:1px solid #d8e0cd;padding:10px;border-radius:10px;max-width:130px;font-size:12px;color:#6f805e}.switch{width:47px;min-width:47px;height:28px;border-radius:18px;background:#d9dfcd;padding:4px;display:flex;align-items:center}.switch span{width:20px;height:20px;background:#fffdf5;border-radius:50%;box-shadow:0 1px 3px #344d3a22;transition:transform .2s}.switch.on{background:#78986a}.switch.on span{transform:translateX(19px)}.parent-buttons{display:flex;gap:10px;flex-wrap:wrap}.parent-buttons .button{flex:1;font-size:11px;white-space:nowrap}.parent-note{font-size:11px;color:#929d84;margin:20px 0;line-height:1.8}.parent-note a{color:#6f8862}.sources{font-size:10px;color:#99a28d;margin-top:20px;line-height:1.7}.sources a{color:#7a8f6d}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#2c5443;color:#fff7e2;border:1px solid #6f8967;border-radius:17px;padding:15px 23px;box-shadow:0 10px 40px #294b3226;font-size:13px;z-index:80;max-width:min(530px,90vw);width:max-content;text-align:center;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}.confetti{position:fixed;z-index:90;pointer-events:none;width:9px;height:14px;border-radius:3px;animation:confetti 1.7s ease-out forwards}.welcome-icon{width:85px;height:85px;display:grid;place-items:center;border-radius:25px;background:#e4ecd6;margin:0 auto 20px;transform:rotate(-7deg);color:#71915f}.welcome-icon .icon{width:43px;height:43px}.welcome-body{text-align:center;padding:35px}.welcome-body h2{font-size:28px;margin-bottom:12px}.welcome-body p{color:#89967b;font-size:13px;line-height:1.8;margin:0 auto 22px;max-width:400px}.welcome-steps{display:flex;justify-content:center;gap:22px;margin:24px 0}.welcome-steps>div{font-size:11px;color:#91a17e}.welcome-steps .icon{display:block;margin:0 auto 9px;color:#99ad80;width:28px;height:28px}.hidden{display:none!important}
/* Animation is deliberately gentle; reduced-motion preferences apply everywhere. */
.animal-body{transform-box:fill-box;transform-origin:center bottom;animation:breathe 3.8s ease-in-out infinite}.animal-eye{transform-box:fill-box;transform-origin:center;animation:blink 7s infinite}.animal-tail{transform-box:fill-box;transform-origin:right center;animation:tail 3s ease-in-out infinite}.wing{transform-box:fill-box;transform-origin:top center;animation:wing 4.1s ease-in-out infinite}.leg{transform-box:fill-box;transform-origin:top center;animation:step 2.8s ease-in-out infinite}.leg-back{animation-delay:-1.4s}.trunk{transform-box:fill-box;transform-origin:top center;animation:tail 4s ease-in-out infinite}.tentacle{transform-box:fill-box;transform-origin:top center;animation:wing 3s ease-in-out infinite}.tentacle.t1{animation-delay:-1.5s}.map-animal{transform-box:fill-box;transform-origin:center;animation:wander 18s ease-in-out infinite;animation-delay:var(--delay)}.wander-1{animation-name:wander-alt;animation-duration:22s}.wander-2{animation-duration:24s}.wander-3{animation-name:wander-alt;animation-duration:27s}.visitor{animation:visitor-walk 35s linear infinite;animation-delay:var(--delay)}.visitor-1,.visitor-3{animation-direction:reverse;animation-duration:43s}.visitor-4{animation-duration:51s}.safari-train{animation:train-ride 28s ease-in-out infinite}.fountain-water{animation:fountain 2s ease-in-out infinite}.care-celebrate .animal-body{animation:happy-hop .6s ease-in-out 2}.care-celebrate:after{content:'♡';position:absolute;top:20px;left:58%;color:#b17b6a;font-size:35px;animation:heart-rise 1.5s forwards}
@keyframes breathe{50%{transform:translateY(-1.5px) scaleY(1.015)}}@keyframes blink{0%,44%,48%,100%{transform:scaleY(1)}46%{transform:scaleY(.1)}}@keyframes tail{50%{transform:rotate(9deg)}}@keyframes wing{50%{transform:rotate(-6deg)}}@keyframes step{50%{transform:rotate(5deg)}}@keyframes wander{0%,100%{translate:0 0}35%{translate:15px -6px}65%{translate:8px 7px}}@keyframes wander-alt{0%,100%{translate:0 0}40%{translate:-16px 5px}70%{translate:-8px -7px}}@keyframes visitor-walk{0%,100%{translate:0 -42px}50%{translate:0 62px}}@keyframes train-ride{0%,100%{translate:-200px 0}50%{translate:260px 0}}@keyframes fountain{50%{opacity:.65;translate:0 3px}}@keyframes coin-glow{50%{box-shadow:0 0 0 5px #f6df9b55}}@keyframes happy-hop{50%{transform:translateY(-13px) rotate(3deg)}}@keyframes heart-rise{to{transform:translateY(-35px);opacity:0}}@keyframes confetti{to{translate:var(--dx) var(--dy);rotate:var(--rot);opacity:0}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1700px){.map-viewport{height:650px}.zoo-svg{min-width:100%}.dashboard{grid-template-columns:minmax(0,1fr) 305px}.resident-card .animal-art{height:120px}}
@media(max-width:1200px){.app-shell{padding:0 24px}.dashboard{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.keeper-card{padding:20px 15px}.stat-card{padding:15px 12px;gap:9px}.stat-icon{width:35px;height:35px;border-radius:11px}.stat-icon .icon{width:21px;height:21px}.stat-card strong{font-size:22px}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.build-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.nursery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-viewport{height:470px}.resident-card .animal-art{height:76px}}
@media(max-width:1000px){.rail{width:76px;padding:23px 9px}.app-shell{margin-left:76px;padding:0 22px}.dashboard{grid-template-columns:minmax(0,1fr)}.side-column{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.keeper-card{padding:20px}.keeper-card .task-list{margin:17px 0;gap:8px}.task{padding:10px}.quiet-note{display:none}.nursery-teaser{min-height:100%;padding:24px}.nursery-teaser h3{font-size:24px;max-width:160px}.nursery-teaser p{max-width:150px;font-size:12px}.nursery-teaser>.animal-art{width:170px;bottom:15px;right:-20px}.resident-card .animal-art{height:105px}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.map-viewport{height:510px}.stamp-grid{grid-template-columns:repeat(4,1fr)}.saved-indicator{display:none}.wordmark{font-size:11px}}
@media(max-width:650px){:root{font-size:14px}.rail{inset:auto 0 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #dce3d0;border-right:0;background:#f5f6ecf5;backdrop-filter:blur(16px)}.rail .brand,.rail-parent{display:none}#nav{margin:0;width:100%;display:grid;grid-template-columns:repeat(5,1fr);gap:3px}.nav-button{min-height:59px;border-radius:14px;gap:5px;font-size:9px}.nav-button .icon{width:22px;height:22px}.app-shell{margin:0;padding:0 17px 90px}.topbar{height:80px;padding-top:env(safe-area-inset-top);gap:8px}.wordmark{font-size:10px;letter-spacing:1.4px}.wordmark span{font-size:9px;margin-top:6px}.header-actions{gap:9px}.icon-button{width:36px;height:36px}.keeper-avatar{width:33px;height:33px;font-size:15px}.page-heading{margin-bottom:20px;gap:10px}.page-heading .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:8px}.page-heading h1{font-size:28px}.page-heading p{font-size:11px;line-height:1.6;max-width:240px}.day-pill{font-size:9px;padding:8px 10px;margin-top:22px}.day-pill .icon{width:12px;height:12px}main{padding-top:23px}.stats-row{gap:8px;margin-bottom:14px}.stat-card{border-radius:14px;padding:12px 10px;gap:7px;min-height:72px}.stat-icon{width:27px;height:32px;background:transparent!important}.stat-icon .icon{width:23px;height:23px}.stat-card strong{font-size:20px}.stat-card small{font-size:8px;margin-top:5px}.stat-card em{font-size:9px}.map-card{border-radius:19px}.map-viewport{height:435px}.zoo-svg{min-width:835px}.map-toolbar{top:12px;left:12px;right:12px}.map-location{font-size:10px;padding:8px 10px}.map-zoom button{width:28px;height:28px}.map-bottom{left:12px;right:12px;bottom:12px;gap:6px}.map-hint{font-size:8px;padding:9px 8px;max-width:135px}.map-hint .icon{display:none}.collect-button{font-size:11px;padding:10px 12px;gap:5px}.collect-button .icon{width:17px;height:17px}.resident-strip{grid-template-columns:repeat(2,1fr);gap:10px}.resident-card .animal-art{height:100px}.resident-card{border-radius:16px}.resident-card h3{font-size:12px}.section-row{margin-top:22px}.section-row h2{font-size:17px}.side-column{grid-template-columns:1fr;margin-top:3px}.nursery-teaser{min-height:180px}.nursery-teaser h3{font-size:23px;max-width:180px}.nursery-teaser p{max-width:185px}.nursery-teaser>.animal-art{width:170px;right:2px;bottom:5px}.keeper-card{padding:22px}.task strong{font-size:12px}.task small{font-size:10px}.task .task-count{font-size:11px}.task-symbol{width:39px;height:39px}.app-footer{font-size:8px;gap:8px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.animal-card{border-radius:17px}.animal-card-art{padding:19px 8px 7px}.animal-card-info{padding:13px}.animal-card h3{font-size:12px}.animal-card-bottom{font-size:9px;margin-top:10px;padding-top:10px}.animal-badge{top:9px;right:9px;width:23px;height:23px}.view-tabs{margin-right:-17px;padding-right:17px}.filter-chip{font-size:10px;padding:10px 12px}.collection-controls{gap:7px;flex-wrap:wrap}.collection-controls .search-input{flex:1;min-width:170px}.collection-controls .filter-chip{padding:10px}.build-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.build-content{padding:15px}.build-content h3{font-size:14px}.build-content p{font-size:10px;min-height:47px}.build-content .button{padding:10px 6px;font-size:10px;gap:5px}.build-art{height:130px}.build-art .animal-art{width:125px;height:100px}.build-content small{font-size:9px}.nursery-grid{grid-template-columns:1fr}.stamp-grid{grid-template-columns:repeat(3,1fr);gap:10px}.stamp{padding:20px 8px;font-size:10px}.stamp .icon{width:29px;height:29px}.scrapbook-hero{padding:22px}.scrapbook-hero h2{font-size:22px}.scrapbook-hero p{font-size:11px}.stamp-number{font-size:55px;padding:0 4px 0 15px}.modal-content{padding:24px 20px}.modal-content h2{font-size:24px}.animal-hero{height:185px}.animal-hero .animal-art{width:220px;height:170px}.animal-hero .region-label{font-size:9px;left:20px;top:18px}.animal-fact{font-size:11px;padding:12px}.food-tray{gap:7px;padding:14px 7px}.food-piece{min-width:calc(30% - 5px);padding:9px 5px}.food-piece span{font-size:26px}.food-piece small{font-size:9px}.family-row{gap:9px}.family-row .button{min-width:120px;font-size:10px;padding:10px}.family-row strong{font-size:11px}.family-row p{font-size:9px}.care-tabs button{font-size:11px}.habitat-residents{grid-template-columns:repeat(2,1fr);gap:9px}.toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:12px;padding:13px 18px}.parent-gate{padding:35px 22px}.parent-buttons{flex-direction:column}.welcome-body{padding:32px 22px}.welcome-body h2{font-size:26px}.welcome-body p{font-size:12px}.welcome-steps{gap:20px}.welcome-steps>div{font-size:10px}.parent-note{font-size:10px}dialog{max-height:88dvh;border-radius:24px}}
@media(max-width:360px){.app-shell{padding-left:12px;padding-right:12px}.stat-card{padding:10px 7px}.stat-icon{width:22px}.stat-card strong{font-size:18px}.day-pill{display:none}.collection-grid{gap:9px}.animal-card-info{padding:11px}.wordmark{font-size:9px}.header-actions{gap:6px}}
/* Keep the exit within reach even when a short phone screen scrolls the dialog. */
.modal-close{position:sticky;float:right;top:14px;right:14px;margin:14px 14px -56px 0}
.modal-feedback{position:sticky;bottom:12px;z-index:5;margin:0 15px 14px;padding:13px 16px;border-radius:13px;background:#2c5443;color:#fff7e2;box-shadow:0 4px 18px #243e3226;font-size:12px;text-align:center;line-height:1.6}
