/* The illustrated world is the screen; controls sit on top like little objects. */
:root{--ink:#344e39;--cream:#fff4d7;--muted:#7c8260;--ui:'Avenir Next','Trebuchet MS',sans-serif;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:var(--ui);color:var(--ink);background:#91b8a7;overscroll-behavior:none;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;border:0;cursor:pointer;font-weight:850;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:filter .15s,transform .15s}button:hover:not(:disabled){filter:brightness(1.06)}button:active:not(:disabled){transform:translateY(3px) scale(.97)}button:disabled{opacity:.52;filter:saturate(.4);cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #244a69;outline-offset:4px}button svg{pointer-events:none}svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:900;letter-spacing:-.7px}[hidden]{display:none!important}.workspace,.world{position:absolute;inset:0;overflow:hidden}.world{isolation:isolate;background:#91c0c0 url('assets/lake-background.png') center/cover no-repeat}.center-world{background:#cfdccb url('assets/rehab-room-v2.png') center/cover no-repeat}.world-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#183e242a,transparent 25%,transparent 70%,#23391d61)}.playfield{position:absolute;left:50%;transform:translateX(-50%);top:130px;bottom:180px;width:min(100%,1000px)}.playfield canvas,.targets{position:absolute;inset:0;width:100%;height:100%}.targets{z-index:3;pointer-events:none}.playfield canvas{display:block}.world-controls{position:absolute;inset:0;pointer-events:none;z-index:4}.world-controls button{pointer-events:auto}
.topbar{position:fixed;left:24px;right:24px;top:max(18px,env(safe-area-inset-top));z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}.topbar button,.funds{pointer-events:auto}.brand{display:flex;align-items:center;gap:8px;padding:0;background:none;font-size:24px;font-weight:950;letter-spacing:-1.2px;color:#fff9dd;text-shadow:0 3px #35583f,2px 0 #35583f,-2px 0 #35583f,0 -1px #35583f;text-align:left}.brand>svg{width:33px;height:38px;stroke:none;filter:drop-shadow(0 2px 1px #2d5139)}.brand small{display:block;letter-spacing:2px;font-size:8px;margin-top:3px}.header-right{display:flex;gap:12px;align-items:center}.funds{display:flex;align-items:center;gap:9px;min-width:94px;height:43px;padding:0 18px 0 11px;border:2px solid #8a7851;border-radius:24px;background:linear-gradient(#fff5d8,#e8d9ad);box-shadow:0 4px #5f6a47,inset 0 2px #fff9e7;font-size:18px;font-weight:950;color:#6a542b}.funds svg{fill:#efbc54;stroke:#bd872f}.funds-label{display:none}.icon-button,.rank-badge,.round-action,.close-button{display:grid;place-items:center;position:relative;width:46px;height:46px;border-radius:50%;background:linear-gradient(#fff9df,#dfd9b0);border:2px solid #7d7650;box-shadow:0 4px #5e6642,inset 0 2px #fffbee}.rank-badge{border-radius:15px;background:linear-gradient(#f9d879,#e4b64e);color:#7f5c2d}.rank-badge svg{width:33px;height:33px;stroke:#a97b31;fill:#ffe8a0}.rank-badge #hud-rank{position:absolute;font-size:12px;padding-top:2px}.scene-heading{position:absolute;z-index:3;top:88px;left:50%;transform:translateX(-50%);text-align:center;width:calc(100% - 40px);max-width:700px;pointer-events:none;color:#fff9de;text-shadow:0 2px #486b51,0 3px 8px #183e3255}.eyebrow{font-size:9px;font-weight:850;letter-spacing:2px;line-height:1.5}.scene-heading .eyebrow{font-size:10px;letter-spacing:2.2px}.scene-heading h1{font-size:35px;line-height:1.2;margin-top:4px;letter-spacing:-1px}.scene-heading>p:last-child{font-size:13px;font-weight:750;margin-top:4px}.scene-heading>p:last-child:empty{display:none}.scene-badge{display:none}.scene-loading{position:absolute;z-index:12;left:50%;top:45%;transform:translate(-50%,-50%);max-width:90%;background:var(--cream);border:3px solid #b5b88b;border-radius:22px;box-shadow:0 5px #74825b;padding:18px 24px;text-align:center;font-weight:750}.scene-bottom{position:absolute;bottom:180px;left:20px;right:20px;display:flex;flex-direction:column;align-items:center;z-index:4;pointer-events:none}.scene-caption{font-size:18px;line-height:1.4;font-weight:800;text-align:center;color:#fffbe3;text-shadow:0 2px 4px #234539;background:#2348377a;border-radius:20px;padding:8px 18px;max-width:550px}.scene-caption:empty,.scene-progress{display:none}
.panel{position:fixed;z-index:10;left:50%;transform:translateX(-50%);bottom:max(28px,var(--safe));width:min(500px,calc(100% - 32px));text-align:center;pointer-events:none}.panel>*{pointer-events:auto}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:12px;min-height:54px;width:100%;padding:12px 22px;font-size:16px;line-height:1.3;font-weight:900;border-radius:20px;border:2px solid #456139;box-shadow:0 6px #314f2c,0 9px 18px #243d2526,inset 0 2px #cce598;background:linear-gradient(#92bc69,#6f9b51);color:#fffce7;text-shadow:0 1px 1px #3d642b}.primary>svg:last-child:not(:first-child){width:19px;margin-left:auto}.secondary{background:linear-gradient(#fff5d5,#e8d6a8);border-color:#8d7a50;box-shadow:0 4px #756340;color:#625438;text-shadow:none;min-height:46px;font-size:13px;margin-top:10px}.text-button,.tiny-button{background:none;min-height:44px;font-size:12px;padding:9px 8px;text-decoration:underline;text-underline-offset:3px}.close-button{width:44px;height:44px;font-size:28px;line-height:1;flex:none}.quiet-note{font-size:11px;line-height:1.5;opacity:.8}.feedback{position:absolute;bottom:calc(100% + 16px);left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 36px));padding:10px 16px;border:2px solid #dfd1a5;border-radius:18px;background:#fff6d9f2;font-size:12px;font-weight:750;box-shadow:0 4px 12px #253d2526;pointer-events:none;animation:toast-away 6s both}.save-warning{position:fixed;z-index:30;top:76px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;background:#fff0c8;padding:10px 18px;border:2px solid #a38144;border-radius:15px;text-align:center;font-size:12px;box-shadow:0 4px 8px #35412538}
.navigation{position:fixed;z-index:15;bottom:max(20px,var(--safe));left:22px;display:flex;gap:12px;align-items:flex-end}.navigation button{position:relative;background:none;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:62px;color:#fff7d5;text-shadow:0 2px 2px #24492c;font-size:11px;font-weight:900;padding:0 4px}.nav-icon{display:grid;place-items:center;width:54px;height:50px;border-radius:17px;background:linear-gradient(#f2e3b7,#d2bc84);border:2px solid #796c47;box-shadow:0 5px #4d5c38,inset 0 2px #fff5d1;transform:rotate(-3deg);color:#6c633c;text-shadow:none}.navigation button:nth-child(2) .nav-icon{transform:rotate(3deg)}.navigation button[aria-current=page] .nav-icon{background:linear-gradient(#dcebb2,#aac485);border-color:#597d43;color:#42673d;box-shadow:0 5px #3a5c32,inset 0 2px #f1f9d1}.nav-icon svg{width:27px;height:27px}.nav-count{position:absolute;right:2px;top:-7px;min-width:20px;height:20px;border-radius:50%;background:#e9ad55;border:2px solid #fff3cb;display:grid;place-items:center;color:#5e4324;font-size:10px;text-shadow:none}.call-light{position:absolute;right:9px;top:-2px;width:11px;height:11px;border-radius:50%;background:#f6ce68;border:2px solid #fff3ca;animation:radio-light 2s ease-in-out infinite}
.target{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:3px solid #fff6d4;background:linear-gradient(#ffe49d,#dcb66a);color:#735b31;box-shadow:0 3px #7c6d42,0 0 0 4px #fff0b136}.target:active:not(:disabled){transform:translate(-50%,-48%) scale(.95)}.target svg{width:23px;height:23px}.target.is-locked{background:linear-gradient(#e6ebcd,#bfcca6);color:#5b7153;border-color:#eaf0d2;box-shadow:0 3px #748466;opacity:.88}.target.is-available,.target.is-hint{background:linear-gradient(#ffe9a4,#f4c35b);box-shadow:0 3px #927239,0 0 0 7px #fff2c14d;animation:target-breathe 2s ease-in-out infinite}.target small{display:none}.care-target{width:56px;height:56px;background:linear-gradient(#fff6d8,#efcf88)}.care-target.heart{background:linear-gradient(#ffe9de,#e8a695);color:#a75955}.rescue-prompt{width:max-content;max-width:100%;margin:0 auto 14px;padding:10px 22px 12px;border:2px solid #fff3cb;border-radius:20px;background:#fff7dded;box-shadow:0 4px #6c755a58;display:flex;flex-direction:column;align-items:center;gap:8px}.rescue-prompt p{font-size:13px;line-height:1.4;font-weight:800;max-width:410px}.step-dots{display:flex;align-items:center;justify-content:center;gap:6px}.step-dots i{display:block;width:8px;height:8px;border:1px solid #a7ad82;border-radius:50%;background:#d7d9b9;flex:none}.step-dots i.filled{background:#75a159;border-color:#547e43;box-shadow:0 0 0 2px #e5edc8}.tool-belt{display:flex;justify-content:center;align-items:center;gap:12px;width:max-content;max-width:100%;margin:auto;border:3px solid #8c714b;border-radius:25px;padding:9px 15px 12px;background:linear-gradient(#e4c896,#bd9b68);box-shadow:0 7px #765d3d,0 10px 18px #283e2c40,inset 0 3px #f5dfb3}.tool{width:77px;min-height:79px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;background:linear-gradient(#fff7df,#e9ddba);border:2px solid #9c8b60;border-radius:17px;box-shadow:0 4px #8d764e,inset 0 2px #fffdf2;color:#6d704e}.tool>span{display:grid;place-items:center;width:40px;height:40px}.tool svg{width:32px;height:32px;stroke-width:1.8}.tool strong{font-size:11px}.tool[aria-pressed=true]{background:linear-gradient(#fff3b2,#f0c96a);border-color:#b38437;box-shadow:0 4px #9b6e2e,inset 0 2px #fff8d2,0 0 0 3px #fff2bd;transform:translateY(-3px);color:#685328}.tool.inspect svg{color:#6b8970}.tool.snip svg{color:#69818b}.tool.hold svg{color:#ab7e54}.hint-button{background:#6c7955;border:2px solid #d8d5a8;box-shadow:0 3px #4e5d3d;width:43px;height:43px;border-radius:50%;color:#fff6d2;font-size:24px;position:relative}.hint-button small{position:absolute;top:100%;margin-top:4px;font-size:8px;left:0;right:0;color:#5f563d}
.welcome-panel{width:min(390px,calc(100% - 36px));bottom:112px}.message-bubble{background:#fff5dcef;border:3px solid #fff8e4;border-radius:25px 25px 25px 6px;box-shadow:0 5px #6c77524a;padding:18px 24px;margin-bottom:16px;text-align:left}.speaker{display:flex;align-items:center;gap:6px;color:#8a7c56;font-size:10px;font-weight:850;letter-spacing:.8px;text-transform:uppercase}.speaker svg{width:15px;height:15px}.message-bubble h2{font-size:24px;line-height:1.15;margin:7px 0}.message-bubble p{font-size:12px;line-height:1.6}.welcome-radio{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%) rotate(-4deg);width:150px;height:124px;border-radius:25px;background:linear-gradient(#e7cda0,#af8b5a);border:4px solid #765e40;box-shadow:0 8px #5e6542,0 12px 28px #2c3e294d,inset 0 3px #f5e5be;animation:radio-rock 5s ease-in-out infinite}.radio-aerial{position:absolute;width:6px;height:56px;bottom:100%;right:26px;transform:rotate(18deg);background:linear-gradient(90deg,#6b745c,#dce1c4,#758362);border-radius:4px}.radio-face{display:flex;align-items:center;justify-content:center;gap:10px;height:100%;color:#4f6646}.radio-face>svg{width:75px;height:75px;stroke-width:1.5}.radio-face i{width:9px;height:9px;background:#f9e8a2;border:2px solid #8e9a5e;border-radius:50%;box-shadow:0 0 15px #f7e08d}.radio-tag{position:absolute;left:50%;top:calc(100% + 18px);transform:translateX(-50%) rotate(4deg);width:max-content;padding:8px 15px;background:#fff2ce;border-radius:13px;font-size:12px;box-shadow:0 3px #77855880;color:#526749}.sanctuary-sign{position:absolute;top:40%;left:8%;padding:16px 20px;max-width:160px;display:flex;flex-direction:column;align-items:center;gap:5px;background:#b99461;color:#fff4d7;border:3px solid #8d724c;border-radius:13px;box-shadow:0 4px #626541;transform:rotate(-6deg);font-size:12px;font-weight:850;text-align:center}.sanctuary-sign:before,.sanctuary-sign:after{content:'';position:absolute;bottom:100%;height:130px;width:3px;background:#9e9b70;z-index:-1}.sanctuary-sign:before{left:20px}.sanctuary-sign:after{right:20px}.sanctuary-sign span{font-size:10px;font-weight:600}.sanctuary-sign svg{width:32px;height:32px}
.patient-rail{position:absolute;left:22px;top:145px;display:flex;flex-direction:column;gap:16px}.patient-tab{display:flex;flex-direction:column;align-items:center;gap:3px;width:78px;background:none;color:#fff7da;text-shadow:0 2px 3px #3d5636}.patient-tab strong{font-size:12px}.patient-tab small{font-size:8px}.patient-portrait{display:grid;place-items:center;width:56px;height:56px;background:linear-gradient(#fff2ce,#cfb995);border-radius:22px;border:3px solid #f5eac6;box-shadow:0 4px #7c8460;color:#887254;transform:rotate(-4deg)}.patient-portrait svg{width:30px;height:30px}.patient-tab[aria-pressed=true] .patient-portrait{background:linear-gradient(#dcebad,#abc78b);box-shadow:0 4px #66844e,0 0 0 4px #fff2bb65}.pet-action{position:absolute;right:calc(50% - 235px);top:48%;width:58px;height:58px;border-radius:50%;background:linear-gradient(#ffe4d7,#e6a894);border:3px solid #fff2d7;box-shadow:0 4px #a77e66;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#a35e57}.pet-action span{font-size:10px}.pet-action svg{width:23px;height:23px}.care-panel{width:min(380px,calc(100% - 36px))}.care-needs{display:flex;align-items:center;justify-content:center;gap:13px;margin-bottom:12px}.need{position:relative;display:grid;place-items:center;width:39px;height:39px;background:#f6ecc7e8;border:2px solid #fff3cd;border-radius:50%;box-shadow:0 3px #7187638a;color:#99a07e}.need svg{width:21px;height:21px}.need.done{background:#d5e6a7;color:#4e8244}.need i{font-style:normal;font-size:10px;font-weight:900;position:absolute;right:-5px;bottom:-2px;background:#6e9751;color:#fff6d4;border-radius:50%;width:16px;height:16px;border:1px solid #f1edc6}.care-dock{padding:13px 16px 16px;background:#fff4dbea;border:3px solid #fff8df;border-radius:24px;box-shadow:0 5px #71835b6b}.task-prompt{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}.task-prompt strong{font-size:14px;font-weight:850}.task-prompt>span{font-size:11px;line-height:1.4}.care-main{font-size:15px;min-height:49px;border-radius:16px}.rest-clock{display:flex;align-items:center;gap:14px;text-align:left}.rest-clock>svg{width:37px;height:37px;color:#999461}.rest-clock>div{flex:1}.rest-clock strong{font-size:30px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}.rest-clock span{display:block;font-size:11px;margin-top:5px}.rest-clock .round-action{width:44px;height:44px}.meter{height:7px;background:#ced4b1;border:1px solid #b3bf92;border-radius:10px;overflow:hidden}.meter i{display:block;height:100%;width:0;background:linear-gradient(#b6ce78,#77a055);border-radius:10px;transition:width .3s}.care-dock>.meter{margin:13px 0 8px}.interaction-footer{display:flex;align-items:center;justify-content:center;gap:30px}.interaction-footer .text-button{min-height:32px}.resume-link{background:#fff2d6e8;border-radius:20px;padding:6px 14px;min-height:34px;margin:10px auto 0;font-size:10px;display:flex;align-items:center;justify-content:center;gap:6px}.resume-link svg{width:15px;height:15px}
body[data-view=calls] .world,body[data-view=journal] .world{filter:brightness(.8) saturate(.85)}body[data-view=calls] .scene-heading,body[data-view=journal] .scene-heading{display:none}.overlay-panel{pointer-events:auto;top:92px;bottom:100px;width:min(560px,calc(100% - 32px));max-height:680px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8f9e6c transparent;padding:20px;border-radius:28px;border:4px solid #d4c397;background:#557663;box-shadow:0 7px #344e3e,0 18px 70px #17372965,inset 0 2px #97b49a;text-align:left;animation:menu-arrive .3s ease-out}.overlay-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.overlay-head h2{font-size:26px;line-height:1.1;color:#fff2cf}.radio-station{display:flex;gap:12px;align-items:center;color:#f4deb1}.radio-station>svg{width:33px;height:33px}.radio-station small{font-size:8px;font-weight:800;letter-spacing:1.2px;display:block;margin-bottom:4px}.radio-tuner{display:flex;align-items:center;gap:10px;margin:20px 0 18px;padding:8px 13px;border:2px solid #344f3f;border-radius:11px;background:#c3c994;color:#52684a;box-shadow:inset 0 2px 5px #334e3840;font-size:9px;font-weight:800}.radio-tuner i{height:18px;flex:1;background:repeating-linear-gradient(90deg,#73805c 0 1px,transparent 1px 8px);position:relative}.radio-tuner i:after{content:'';position:absolute;left:62%;width:3px;top:-3px;bottom:-3px;background:#be7957}.radio-tuner b{font-size:8px;letter-spacing:1px;background:#e0de9e;padding:5px 7px;border-radius:6px}.dispatch-tabs{display:flex;gap:8px;padding:0 7px}.dispatch-tabs button{display:flex;position:relative;align-items:center;justify-content:center;flex-direction:column;gap:3px;flex:1;background:#cfcea5;padding:10px 8px 14px;border:2px solid #b6b68c;border-bottom:0;border-radius:14px 14px 0 0;font-size:14px;color:#5a7051;min-height:57px}.dispatch-tabs button>span{font-size:7px;letter-spacing:1px}.dispatch-tabs svg{position:absolute;right:6px;top:7px;width:12px;height:12px;fill:#d8b165;stroke:#957b41}.dispatch-tabs button[aria-pressed=true]{background:#fff4d5;border-color:#fff8e2;color:#3b6648;transform:translateY(-3px);padding-bottom:17px;margin-bottom:-3px}.dispatch-note{padding:23px 25px 12px;background:#fff4d5;border:2px solid #fff8e4;border-radius:17px;box-shadow:0 4px #354d3e38}.note-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.pill{display:inline-flex;align-items:center;font-size:8px;letter-spacing:.7px;font-weight:850;color:#64794b;background:#e1e5b9;border-radius:20px;padding:6px 9px}.pill.gold{background:#f2da99;color:#8b6635}.note-meta>span:last-child{display:flex;align-items:center;gap:4px;font-size:9px;color:#8b8b64}.note-meta svg{width:14px;height:14px}.dispatch-note h3{font-size:29px;line-height:1.2;margin:17px 0 12px}.dispatch-note blockquote{margin:0;font-size:14px;line-height:1.6;color:#657054;font-style:italic}.caller{font-size:10px;text-align:right;color:#8b896c;margin-top:9px}.call-care{display:flex;align-items:center;gap:7px;padding:13px 0;font-size:11px;color:#7b805c}.call-care svg{width:17px;height:17px}.dispatch-note .primary{font-size:14px;min-height:50px}.dispatch-note>.text-button{display:block;margin:5px auto -4px;font-size:10px}.unlock-note{display:flex;align-items:center;justify-content:center;gap:6px;color:#e8e4bd;font-size:10px;padding-top:15px}.unlock-note svg{width:14px;height:14px}.dispatch-panel>.text-button{display:flex;align-items:center;justify-content:center;gap:5px;color:#fff2cd;margin:8px auto 0}.dispatch-panel>.text-button svg{width:16px;height:16px}.dispatch-panel>.primary{margin-top:12px}.overlay-panel>.feedback{position:static;transform:none;width:auto;margin-top:12px}.journal-panel{width:min(760px,calc(100% - 32px));padding:25px;background:linear-gradient(100deg,#e7d4aa,#fff0ce 45%,#c5ae7b 49.7%,#f6e8c4 50.3%,#fff3d3);border:6px solid #90704c;box-shadow:0 6px #624d37,0 20px 70px #183c3259}.journal-panel .overlay-head h2{color:#68593d;font-size:27px}.journal-panel .eyebrow{color:#8d815a}.book-pages{display:grid;grid-template-columns:1fr 1.2fr;gap:45px;margin-top:28px}.skill-page{text-align:center;padding:0 8px}.skill-patch{width:110px;height:114px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;margin:0 auto 19px;background:#7e9e65;border:4px solid #c8d496;outline:2px dashed #a7bb7e;outline-offset:-10px;border-radius:30px 30px 48px 48px;box-shadow:0 5px #5b7950;color:#fcf1bb;transform:rotate(-6deg)}.skill-patch svg{width:42px;height:42px}.skill-patch span{font-size:10px;font-weight:900;letter-spacing:1.4px}.skill-page h3{font-size:22px;line-height:1.25;margin-bottom:5px}.skill-page>p{font-size:11px;color:#827857}.skill-strip{font-size:11px;line-height:1.6;margin:16px 0}.skill-strip .row{display:flex;flex-direction:column;gap:3px}.skill-strip .meter{margin:10px 0}.skill-strip>span{font-size:10px;color:#7e805c}.memories-page>.eyebrow{margin-bottom:14px}.memory{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px 11px;background:#fff8e2;border:1px solid #d6c99f;box-shadow:2px 4px #b4a67d30;margin-bottom:14px;transform:rotate(1deg);border-radius:4px}.memory:nth-child(even){transform:rotate(-1deg)}.memory-stamp{display:grid;place-items:center;width:47px;height:49px;background:#cbdcaa;border:3px solid #fffbed;color:#829a5e;transform:rotate(-6deg);flex-shrink:0}.memory strong{font-size:13px;display:block}.memory small{display:block;font-size:9px;font-weight:500;color:#8a8568;margin-top:5px}.memory-play{margin-left:auto}.memory-play svg{width:18px;height:18px}.empty-book{text-align:center;color:#9d9168;padding:25px 0 10px}.empty-book>svg{width:55px;height:55px;margin:auto auto 16px;stroke-width:1.2}.empty-book h3{font-size:18px}.empty-book p{font-size:12px;line-height:1.7;margin:10px 0 20px}.empty-book .primary{font-size:11px;min-height:44px;padding:10px}
.release-world .playfield{top:130px;bottom:210px;max-width:1100px}.release-panel{width:min(400px,calc(100% - 36px))}.home-reward{display:flex;align-items:center;justify-content:center;gap:11px;margin-bottom:18px;color:#fff5d1;font-weight:900;font-size:23px;text-shadow:0 2px 2px #3c5a3e}.home-reward>svg{width:42px;height:42px;fill:#f1c768;stroke:#a7813b;filter:drop-shadow(0 3px #7f7649)}.home-reward small{display:block;font-size:11px;font-weight:700;margin-top:3px}.release-actions{display:flex;align-items:center;gap:12px}.release-actions>.primary{font-size:14px;flex:1}.release-actions>.round-action{flex:none}.release-invitation{font-size:17px;font-weight:800;color:#fff8da;text-shadow:0 2px 2px #3c5e41;margin-bottom:12px}.skip-button{padding:12px 18px;min-height:44px;background:#fff5dbcc;border-radius:25px;font-size:11px;display:flex;align-items:center;justify-content:center;gap:9px;margin:auto}.skip-button svg{width:17px;height:17px}.reunion-playing .topbar,.reunion-playing .navigation{opacity:0;pointer-events:none;visibility:hidden}.reunion-playing .playfield{top:80px;bottom:100px}.reunion-playing .scene-heading{top:32px}.reunion-playing .scene-heading h1{font-size:28px}.reunion-playing .scene-bottom{bottom:100px}.reunion-playing .release-panel{bottom:28px}
dialog{color:var(--ink);background:#fff1d1;border:4px solid #bca776;border-radius:27px;width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:24px;box-shadow:0 7px #776b47,0 20px 80px #17352d40}dialog::backdrop{background:#203e3666;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dialog-top .eyebrow{font-size:8px;letter-spacing:1px}.dialog-top .icon-button{width:40px;height:40px;font-size:26px}dialog h2{font-size:29px;margin-bottom:12px}dialog>p{font-size:12px;line-height:1.6}.muted{color:var(--muted)}.setting{display:flex;gap:20px;align-items:center;padding:18px 0;border-bottom:1px dashed #d9cca0}.setting>span{flex:1}.setting strong{display:block;font-size:14px}.setting small{display:block;color:#808163;font-size:11px;line-height:1.6;margin-top:5px}.setting input{width:23px;height:23px;accent-color:#6f9653;flex-shrink:0}.settings-footer{display:flex;align-items:center;justify-content:space-between;padding-top:15px;gap:15px}.version{font-size:8px;color:#8f8a67;letter-spacing:1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes target-breathe{50%{box-shadow:0 3px #927239,0 0 0 10px #fff2c12a}}@keyframes radio-light{50%{box-shadow:0 0 0 6px #f6ce6800}}@keyframes radio-rock{0%,100%{transform:translate(-50%,-50%) rotate(-4deg)}50%{transform:translate(-50%,-52%) rotate(-1deg)}}@keyframes menu-arrive{from{opacity:0;translate:0 15px;scale:.97}to{opacity:1;translate:0 0;scale:1}}@keyframes toast-away{0%,75%{opacity:1}100%{opacity:0}}
@media(max-width:1100px){.panel{bottom:102px}.navigation{left:50%;transform:translateX(-50%);bottom:max(14px,var(--safe))}.playfield{bottom:250px}.welcome-panel{bottom:108px}.release-world .playfield{bottom:275px}.release-world .scene-bottom{bottom:245px}.release-panel{bottom:102px}}
@media(max-width:700px) and (orientation:portrait){.topbar{left:14px;right:14px;top:max(15px,env(safe-area-inset-top));gap:6px}.brand{font-size:19px;letter-spacing:-.8px;gap:5px}.brand>svg{width:25px;height:30px}.brand small{font-size:6px;letter-spacing:1.3px}.header-right{gap:8px}.funds{height:38px;min-width:64px;padding:0 12px 0 8px;gap:6px;font-size:16px}.funds svg{width:20px;height:20px}.rank-badge{display:none}.icon-button{width:40px;height:40px}.scene-heading{top:83px;width:calc(100% - 30px)}.scene-heading h1{font-size:29px}.scene-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.scene-heading>p:last-child{font-size:11px}.playfield{top:129px;bottom:255px}.target{width:46px;height:46px}.target svg{width:22px;height:22px}.care-target{width:52px;height:52px}.panel{bottom:101px}.rescue-panel{width:calc(100% - 24px)}.rescue-prompt{padding:9px 15px 11px;margin-bottom:12px}.rescue-prompt p{font-size:12px;max-width:300px}.tool-belt{gap:9px;padding:9px 12px 12px}.tool{width:70px;min-height:77px}.tool svg{width:30px;height:30px}.hint-button{width:38px;height:38px;font-size:22px}.hint-button small{font-size:7px}.navigation{gap:24px}.navigation button{min-width:58px;font-size:10px;gap:6px}.nav-icon{width:50px;height:46px;border-radius:15px}.nav-icon svg{width:25px;height:25px}.welcome-panel{bottom:107px;width:calc(100% - 42px)}.message-bubble{padding:16px 19px;margin-bottom:13px}.welcome-radio{top:39%;width:126px;height:104px}.radio-face>svg{width:63px;height:63px}.radio-aerial{height:48px}.sanctuary-sign{display:none}.patient-rail{top:150px;left:7px;gap:12px}.patient-tab{width:65px}.patient-portrait{width:44px;height:44px;border-radius:17px}.patient-portrait svg{width:23px;height:23px}.patient-tab strong{font-size:10px}.patient-tab small{font-size:7px}.pet-action{right:16px;top:44%;width:48px;height:48px}.pet-action svg{width:20px;height:20px}.pet-action span{font-size:8px}.care-panel{width:calc(100% - 36px)}.care-needs{gap:11px;margin-bottom:10px}.care-dock{padding:12px 14px 14px}.task-prompt strong{font-size:13px}.care-main{font-size:14px;min-height:48px}.overlay-panel{top:76px;bottom:97px;padding:15px;width:calc(100% - 24px);border-width:3px;border-radius:24px}.overlay-head h2{font-size:22px}.radio-station{gap:8px}.radio-station>svg{width:27px;height:27px}.radio-station small{font-size:6px}.radio-tuner{margin:15px 0}.dispatch-note{padding:18px 17px 9px}.dispatch-note h3{font-size:26px}.dispatch-note blockquote{font-size:13px}.dispatch-tabs{gap:6px;padding:0 4px}.dispatch-tabs button{font-size:12px;padding-left:5px;padding-right:5px}.note-meta>span:last-child{font-size:8px}.pill{font-size:7px;padding:5px 7px}.journal-panel{padding:18px;border-width:4px;background:#faedcc}.journal-panel .overlay-head h2{font-size:25px}.book-pages{display:block;margin-top:20px}.skill-page{padding-bottom:20px;border-bottom:2px dashed #cdbb8b;margin-bottom:22px}.skill-patch{width:76px;height:80px;margin-bottom:12px;border-radius:22px 22px 35px 35px}.skill-patch svg{width:29px;height:29px}.skill-patch span{font-size:8px}.skill-strip{margin:12px auto;max-width:260px}.skill-page h3{font-size:21px}.skill-page>.quiet-note{max-width:250px;margin:auto;font-size:10px}.release-world .scene-heading{top:91px}.release-world .scene-heading h1{font-size:28px}.release-world .scene-heading .eyebrow{font-size:7px;letter-spacing:1px}.release-world .playfield{top:130px;bottom:265px}.release-world .scene-bottom{bottom:241px;left:12px;right:12px}.scene-caption{font-size:13px;padding:7px 12px}.release-panel{bottom:104px}.home-reward{font-size:21px;margin-bottom:15px}.home-reward>svg{width:35px;height:35px}.home-reward small{font-size:10px}.release-actions{gap:10px}.release-actions>.primary{font-size:12px;padding:10px 12px}.reunion-playing .playfield{top:100px;bottom:160px}.reunion-playing .scene-heading{top:42px}.reunion-playing .scene-heading h1{font-size:24px}.reunion-playing .scene-bottom{bottom:112px}.reunion-playing .release-panel{bottom:35px}}
@media(max-height:680px) and (orientation:portrait){.topbar{top:10px}.scene-heading{top:65px}.scene-heading h1{font-size:24px}.scene-heading .eyebrow{font-size:7px}.scene-heading>p:last-child{font-size:10px}.playfield{top:102px;bottom:235px}.panel{bottom:91px}.rescue-prompt{gap:6px;padding:7px 12px 8px;margin-bottom:9px}.rescue-prompt p{font-size:10px}.step-dots i{width:7px;height:7px}.tool-belt{padding:7px 9px 10px;gap:7px}.tool{width:62px;min-height:66px;border-radius:14px;gap:2px}.tool>span{height:34px}.tool svg{width:28px;height:28px}.tool strong{font-size:10px}.hint-button{width:35px;height:35px}.target{width:44px;height:44px}.care-target{width:48px;height:48px}.care-needs{margin-bottom:8px}.need{width:33px;height:33px}.need svg{width:18px;height:18px}.care-dock{padding:10px 12px 12px}.task-prompt strong{font-size:12px}.task-prompt>span{font-size:10px}.care-main{min-height:44px;font-size:12px}.navigation{bottom:12px;gap:23px}.navigation button{font-size:9px}.nav-icon{width:46px;height:43px}.welcome-panel{bottom:93px}.message-bubble{padding:12px 16px;margin-bottom:10px}.message-bubble h2{font-size:20px}.message-bubble p{font-size:10px}.welcome-panel>.primary{font-size:14px;min-height:48px}.welcome-radio{top:34%;width:102px;height:84px}.radio-face>svg{width:50px;height:50px}.radio-aerial{height:34px}.radio-tag{font-size:9px;top:calc(100% + 12px);padding:6px 10px}.patient-rail{top:115px;gap:9px}.patient-tab{width:56px}.patient-portrait{width:36px;height:36px;border-radius:14px}.patient-portrait svg{width:20px;height:20px}.patient-tab strong{font-size:9px}.patient-tab small{display:none}.pet-action{top:38%;right:14px;width:44px;height:44px}.release-world .scene-heading{top:70px}.release-world .scene-heading h1{font-size:24px}.release-world .playfield{top:110px;bottom:228px}.release-world .scene-bottom{bottom:209px}.release-panel{bottom:96px}.home-reward{font-size:18px;margin-bottom:12px}.home-reward>svg{width:29px;height:29px}.release-actions>.primary{min-height:46px;font-size:11px}.scene-caption{font-size:11px}.reunion-playing .playfield{top:80px;bottom:140px}.reunion-playing .scene-heading{top:28px}.reunion-playing .scene-heading h1{font-size:20px}.reunion-playing .scene-bottom{bottom:98px}.reunion-playing .release-panel{bottom:28px}}
@media(orientation:landscape) and (max-height:600px){.topbar{left:15px;right:15px;top:12px}.brand{font-size:19px}.brand small{display:none}.brand>svg{width:25px;height:29px}.header-right{gap:8px}.icon-button,.rank-badge{width:37px;height:37px}.rank-badge svg{width:28px;height:28px}.funds{height:35px;min-width:70px;padding:0 12px 0 8px;font-size:14px}.funds svg{width:20px;height:20px}.scene-heading{top:14px;width:40%;max-width:360px}.scene-heading .eyebrow{font-size:6px;letter-spacing:1px}.scene-heading h1{font-size:20px;margin-top:2px}.scene-heading>p:last-child{display:none}.playfield{left:52%;width:calc(100% - 160px);max-width:560px;top:59px;bottom:116px}.navigation{left:14px;top:75px;bottom:auto;transform:none;flex-direction:column;gap:13px;align-items:center}.navigation button{min-width:47px;font-size:8px;gap:3px}.nav-icon{width:41px;height:36px;border-radius:12px;box-shadow:0 3px #4d5c38,inset 0 2px #fff5d1}.nav-icon svg{width:21px;height:21px}.nav-count{min-width:16px;height:16px;font-size:8px;right:0;top:-4px}.call-light{width:9px;height:9px;right:3px;top:-2px}.panel{bottom:12px;left:52%;width:min(460px,calc(100% - 165px))}.rescue-panel{display:flex;flex-direction:column;align-items:center}.rescue-prompt{padding:5px 16px;margin:0 0 8px;border-width:1px;border-radius:15px;flex-direction:row;gap:10px}.rescue-prompt p{font-size:10px;max-width:320px}.step-dots{gap:4px}.step-dots i{width:6px;height:6px}.tool-belt{padding:5px 12px 8px;gap:11px;border-width:2px;border-radius:20px;box-shadow:0 5px #765d3d}.tool{width:72px;min-height:54px;border-radius:13px;flex-direction:row;gap:4px;padding:4px}.tool>span{width:30px;height:32px}.tool svg{width:25px;height:25px}.tool strong{font-size:9px}.hint-button{width:33px;height:33px;font-size:20px}.hint-button small{display:none}.target{width:44px;height:44px;border-width:2px}.target svg{width:21px;height:21px}.care-target{width:46px;height:46px}.care-panel{width:350px;max-width:calc(100% - 180px)}.care-needs{position:absolute;left:calc(100% + 18px);bottom:9px;flex-direction:column;gap:6px;margin:0}.need{width:29px;height:29px}.need svg{width:15px;height:15px}.need i{width:13px;height:13px;font-size:8px}.care-dock{padding:8px 12px 11px;border-width:2px;border-radius:19px}.task-prompt{margin-bottom:6px}.task-prompt strong{font-size:11px}.task-prompt>span{font-size:9px;line-height:1.25}.care-main{min-height:43px;font-size:12px;padding:8px 13px;border-radius:13px;box-shadow:0 4px #314f2c}.primary svg{width:20px;height:20px}.interaction-footer .text-button{min-height:26px;font-size:10px;padding:4px}.patient-rail{left:auto;right:11px;top:70px;gap:8px}.patient-tab{width:58px}.patient-portrait{width:35px;height:35px;border-radius:13px;border-width:2px}.patient-portrait svg{width:19px;height:19px}.patient-tab strong{font-size:9px}.patient-tab small{display:none}.pet-action{top:43%;right:16%;width:44px;height:44px;border-width:2px}.pet-action svg{width:20px;height:20px}.pet-action span{font-size:8px}.rest-clock{gap:10px}.rest-clock strong{font-size:24px}.rest-clock>svg{width:30px;height:30px}.rest-clock span{font-size:9px;margin-top:3px}.care-dock>.meter{margin:7px 0 5px}.quiet-note{font-size:9px}.rest-clock .round-action{width:37px;height:37px}.welcome-panel{width:340px;left:64%;bottom:45px}.message-bubble{padding:13px 17px;margin-bottom:12px}.message-bubble h2{font-size:21px}.message-bubble p{font-size:11px}.welcome-panel>.primary{min-height:47px;font-size:13px;padding:10px 15px}.welcome-radio{left:27%;top:49%;width:110px;height:90px}.radio-aerial{height:41px}.radio-face>svg{width:58px;height:58px}.radio-tag{font-size:10px;top:calc(100% + 14px)}.sanctuary-sign{display:none}.overlay-panel{left:55%;top:61px;bottom:15px;width:min(600px,calc(100% - 120px));padding:18px;max-height:none}.overlay-head h2{font-size:22px}.radio-tuner{margin:12px 0}.dispatch-note{padding:15px 20px 9px}.dispatch-note h3{font-size:24px;margin:12px 0 7px}.dispatch-note blockquote{font-size:12px}.journal-panel{width:min(700px,calc(100% - 120px));padding:18px}.journal-panel .overlay-head h2{font-size:23px}.book-pages{margin-top:18px;gap:32px}.skill-patch{width:75px;height:80px;margin-bottom:12px}.skill-patch svg{width:28px;height:28px}.skill-page h3{font-size:19px}.skill-page>p{font-size:10px}.skill-strip{font-size:10px}.release-world .scene-heading{top:14px}.release-world .scene-heading h1{font-size:21px}.release-world .scene-heading .eyebrow{font-size:6px}.release-world .playfield{top:59px;bottom:113px;width:calc(100% - 150px);max-width:650px}.release-world .scene-bottom{bottom:96px;left:75px;right:50px}.scene-caption{font-size:11px;padding:5px 13px}.release-panel{width:370px;bottom:13px}.home-reward{font-size:17px;margin-bottom:9px;gap:8px}.home-reward small{font-size:8px}.home-reward>svg{width:26px;height:26px}.release-actions>.primary{font-size:11px;min-height:42px;padding:8px 13px;border-radius:15px}.release-actions>.round-action{width:40px;height:40px}.release-invitation{font-size:13px;margin-bottom:8px}.release-panel>.primary{min-height:46px;font-size:13px}.reunion-playing .playfield{top:50px;bottom:80px;left:50%;width:min(90%,900px)}.reunion-playing .scene-heading{top:10px;width:100%}.reunion-playing .scene-heading h1{font-size:18px}.reunion-playing .scene-bottom{bottom:61px}.reunion-playing .release-panel{bottom:10px;left:50%}.skip-button{min-height:35px;font-size:9px;padding:7px 14px}.save-warning{top:52px;font-size:10px;padding:7px 12px}.feedback{font-size:10px;padding:7px 12px;bottom:calc(100% + 10px)}.resume-link{position:absolute;bottom:100%;left:100%;width:115px;font-size:8px;margin:0 0 8px 20px}.care-panel>.secondary{position:absolute;bottom:100%;right:100%;width:120px;font-size:8px;min-height:40px;margin:0 20px 8px 0;padding:6px}}
@media(orientation:landscape) and (max-width:650px){.brand{font-size:16px}.brand>svg{width:21px;height:25px}.rank-badge{display:none}.header-right{gap:7px}.funds{min-width:60px;font-size:12px;padding:0 9px 0 6px}.scene-heading{left:53%;max-width:190px}.scene-heading h1{font-size:17px}.playfield{top:56px;bottom:109px;width:calc(100% - 135px)}.panel{left:53%;max-width:calc(100% - 150px)}.rescue-prompt{gap:7px;padding:4px 10px}.rescue-prompt p{font-size:9px;max-width:230px}.tool-belt{gap:8px;padding:5px 10px 8px}.tool{width:65px}.tool svg{width:23px;height:23px}.tool>span{width:26px}.tool strong{font-size:8px}.welcome-panel{width:270px;left:65%;bottom:35px}.message-bubble h2{font-size:18px}.message-bubble p{font-size:10px}.message-bubble{padding:12px 14px}.welcome-radio{width:82px;height:74px;left:25%;top:47%}.radio-face>svg{width:42px;height:42px}.radio-aerial{height:33px;right:19px}.radio-tag{font-size:8px;padding:6px 8px}.care-panel{width:310px;max-width:calc(100% - 175px)}.care-needs{left:calc(100% + 10px)}.patient-rail{right:9px}.patient-tab{width:45px}.patient-portrait{width:31px;height:31px;border-radius:12px}.patient-tab strong{font-size:8px}.pet-action{right:13%;width:42px;height:42px}.overlay-panel{width:calc(100% - 105px);max-width:none;left:56%;padding:14px;top:58px}.book-pages{gap:22px;grid-template-columns:1fr 1fr}.journal-panel .overlay-head h2{font-size:22px}.skill-page{padding:0}.release-panel{width:310px}.release-world .playfield{top:57px;bottom:113px}.release-world .scene-heading h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.gentle-motion *,.gentle-motion *:before,.gentle-motion *:after{animation:none!important;transition:none!important}
.target-count{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;border:2px solid #fff5d9;background:#839b5e;color:#fff9df;font-size:9px;font-weight:900;box-shadow:0 2px 0 #526b42}
.icon-button,.rank-badge,.round-action,.hint-button,.skip-button{min-width:44px;min-height:44px}.hint-button{flex-shrink:0}.interaction-footer .text-button,.resume-link{min-height:44px}.primary{min-height:44px}
@media(orientation:landscape) and (max-width:650px){.pet-action{right:21%;top:44%}}
.welcome-radio:active:not(:disabled){animation:none;transform:translate(-50%,-50%) rotate(-3deg) scale(.97)}
/* Direct, tactile rescue and reassurance. */
#animal-canvas{touch-action:none;-webkit-user-select:none;user-select:none;outline:none}
#animal-canvas:focus-visible{outline:2px dashed #fff5cf;outline-offset:-6px;border-radius:42%}
.pet-response{position:absolute;z-index:5;transform:translate(-50%,-100%);width:max-content;max-width:210px;padding:8px 13px;border-radius:16px 16px 16px 4px;background:#fff6ddeb;border:1px solid #e0cf9e;box-shadow:0 3px 9px #28473420;color:#526348;font-size:11px;line-height:1.35;font-weight:750;text-align:center;pointer-events:none}
.rescue-touch-tip{font-size:10px;color:#778161;font-weight:600;line-height:1.4}
.rescue-prompt{gap:7px;margin-bottom:0;padding:13px 23px 14px}
.rescue-panel>.primary{margin-top:12px}
.rescue-world .playfield{bottom:140px}
.touch-tip{color:#fff6d9;text-shadow:0 1px 3px #254732;font-size:10px;margin-top:10px;pointer-events:none}
@media(max-width:1100px){.rescue-world .playfield{bottom:205px}}
@media(max-width:700px) and (orientation:portrait){.rescue-world .playfield{bottom:205px}.rescue-prompt{padding:11px 17px 12px}.rescue-prompt p{font-size:12px}.rescue-touch-tip{font-size:10px}}
@media(max-height:680px) and (orientation:portrait){.rescue-world .playfield{bottom:184px}.rescue-prompt{padding:9px 12px 10px}.rescue-prompt p{font-size:11px}.rescue-touch-tip{font-size:9px}.pet-response{max-width:170px;font-size:10px}.touch-tip{font-size:9px;margin-top:8px}}
@media(orientation:landscape) and (max-height:600px){.rescue-world .playfield{top:59px;bottom:73px}.rescue-prompt{display:grid;grid-template-columns:auto 1fr;padding:8px 17px;gap:3px 10px}.rescue-touch-tip{grid-column:1/-1;font-size:9px}.rescue-prompt p{font-size:10px}.pet-response{font-size:10px;padding:6px 10px;max-width:185px}.touch-tip{font-size:9px;margin-top:8px}.rescue-panel>.primary{max-width:350px;min-height:44px;font-size:12px;margin-top:8px}}
@media(orientation:landscape) and (max-width:650px){.rescue-world .playfield{top:56px;bottom:73px}.rescue-prompt{padding:6px 12px}.rescue-prompt p{font-size:10px}.rescue-touch-tip{font-size:8px}}
/* Feeding lives in the scene; the dock only offers a gentle instruction. */
.feeding-prompt{margin-bottom:0;padding:5px 0;min-height:48px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.feeding-prompt>span{margin-top:0}
@media(orientation:landscape) and (max-height:600px){.feeding-prompt{padding:2px 0;min-height:38px;gap:3px}}

.rescue-progress{display:flex;align-items:center;justify-content:center;width:max-content;margin:0 auto;padding:10px 14px;border-radius:99px;background:#fff6dbe6;box-shadow:0 2px 6px #244a3220}
.rescue-progress .step-dots{gap:8px}.rescue-progress .step-dots i{width:8px;height:8px}
/* Recovery spaces are physical pens; selecting one opens its patient. */
.center-overview .world-shade{background:linear-gradient(#203b332b,transparent 30%,#263c3029 68%,#263c3066)}
.center-overview .playfield{visibility:hidden}.center-overview .scene-heading{top:91px}
.ward-grid{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;width:min(980px,calc(100% - 70px));height:360px;pointer-events:none}
.care-space{position:relative;pointer-events:auto;display:flex;flex-direction:column;align-items:center;min-width:0;height:100%;padding:14px 13px 18px;border:3px solid #8a9980;border-radius:25px;background:linear-gradient(145deg,#f2efdbf2,#d2dac5f0);box-shadow:0 7px #5d7661,0 15px 25px #2f493524,inset 0 2px #fffcdf;color:#435c49;overflow:hidden}
.care-space.occupied{border-color:#7c9474}.care-space.reserved{border-style:dashed;border-color:#a99b6a;background:linear-gradient(145deg,#f4edd5ef,#ddd8bef0)}
.care-space.available{background:linear-gradient(145deg,#e4e8d7e6,#cbd4bfe6);border-style:dashed;border-color:#93a189}
.care-space:active:not(:disabled){transform:translateY(3px) scale(.985)}
.care-space:focus-visible{outline-color:#f8d373;outline-width:4px;outline-offset:5px}
.space-number{position:absolute;z-index:2;top:13px;left:14px;display:grid;place-items:center;width:32px;height:30px;border-radius:6px;background:#e9e2c8;border:1px solid #b6b59b;box-shadow:0 2px 2px #60705e25;font-size:12px;font-weight:900;color:#69765b;transform:rotate(-4deg)}
.space-scene{display:block;position:relative;width:100%;flex:1;min-height:0;margin-bottom:6px;pointer-events:none;border-bottom:1px solid #b5c1a246}
.space-scene canvas{display:block;position:absolute;inset:0;width:100%;height:100%}
.space-name{display:flex;align-items:center;justify-content:center;gap:7px;max-width:100%;font-size:24px;line-height:1.25;font-weight:900;letter-spacing:-.5px;margin-top:6px}.space-name svg{width:18px;height:18px;color:#7c956b}
.available .space-name{font-size:19px;color:#708267}.space-status{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:850;line-height:1.35;margin-top:8px;white-space:nowrap}.space-status svg{width:16px;height:16px}.space-status.ready{color:#568f4b}
.space-detail{font-size:10px;line-height:1.4;font-weight:650;color:#7a8870;margin-top:4px;min-height:14px}.space-detail [data-timer]{font-variant-numeric:tabular-nums;letter-spacing:1px;font-size:12px;color:#5f755e}
.empty-space-sign,.reserved-badge{position:absolute;display:grid;place-items:center;top:32%;left:50%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;color:#9aa987;background:#e5eadc80;border:2px dashed #a7b49485}.empty-space-sign svg{width:27px;height:27px;stroke-width:1.4}.reserved-badge{background:#f3e7c8c9;border-color:#b2a46e;color:#9c8959}
.ward-panel{width:min(370px,calc(100% - 36px))}.ward-full{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;background:#eff0dbe6;border:2px solid #a2ae8e;border-radius:20px;font-size:13px;font-weight:800}.ward-full svg{width:19px;height:19px}
.ward-back{position:absolute;left:28px;top:155px;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:2px solid #9b9c76;border-radius:16px;background:linear-gradient(#f5efd7,#daddc0);box-shadow:0 4px #73836b;color:#5e7358;font-size:12px;font-weight:850}.ward-back svg{width:17px;height:17px;transform:rotate(180deg)}
.care-detail .scene-heading{display:none}
.care-detail .world-shade{background:linear-gradient(#2846351f,transparent 40%,#304a3326 78%,#203c2666)}
@media(max-width:1100px) and (orientation:portrait){.ward-grid{top:170px;bottom:195px;height:auto;transform:translateX(-50%);grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:650px}.care-space:last-child{grid-column:1/-1;width:calc(50% - 9px);justify-self:center}.ward-panel{bottom:102px}}
@media(max-width:700px) and (orientation:portrait){.center-overview .scene-heading{top:84px}.center-overview .scene-heading h1{font-size:28px}.ward-grid{top:153px;bottom:178px;width:calc(100% - 30px);gap:15px;grid-template-rows:repeat(2,minmax(0,1fr))}.care-space{padding:11px 8px 14px;border-width:2px;border-radius:20px;box-shadow:0 5px #6c8066,0 8px 12px #2f49351c}.care-space:last-child{width:calc(50% - 7.5px)}.space-number{top:10px;left:10px;width:25px;height:24px;font-size:10px}.space-name{font-size:20px;margin-top:3px}.available .space-name{font-size:15px}.space-status{font-size:10px;margin-top:5px;gap:4px}.space-status svg{width:13px;height:13px}.space-detail{font-size:9px;margin-top:3px}.empty-space-sign,.reserved-badge{width:37px;height:37px;top:35%}.empty-space-sign svg,.reserved-badge svg{width:20px;height:20px}.ward-panel{bottom:101px;width:calc(100% - 58px)}.ward-panel .primary{font-size:14px;min-height:48px}.ward-back{left:15px;top:143px;font-size:10px;padding:7px 11px;border-radius:14px}.ward-back svg{width:15px;height:15px}}
@media(max-height:680px) and (orientation:portrait){.center-overview .scene-heading{top:65px}.center-overview .scene-heading h1{font-size:24px}.ward-grid{top:121px;bottom:163px;gap:12px;width:calc(100% - 24px)}.care-space{padding:7px 6px 10px;border-radius:16px}.care-space:last-child{width:calc(50% - 6px)}.space-scene{margin-bottom:1px}.space-number{top:7px;left:8px;width:21px;height:20px;font-size:8px}.space-name{font-size:16px;margin-top:1px}.space-name svg{width:13px;height:13px}.available .space-name{font-size:13px}.space-status{font-size:8px;margin-top:3px;gap:3px}.space-status svg{width:11px;height:11px}.space-detail{font-size:8px;line-height:1.2;min-height:10px;margin-top:2px}.space-detail [data-timer]{font-size:9px}.empty-space-sign,.reserved-badge{width:28px;height:28px;top:37%}.empty-space-sign svg,.reserved-badge svg{width:16px;height:16px}.ward-panel{bottom:91px}.ward-panel .primary{min-height:44px;font-size:12px;padding:9px 12px}.ward-back{top:115px;left:12px;min-height:38px;padding:6px 10px;font-size:9px}.ward-full{font-size:10px;padding:10px 12px}}
@media(orientation:landscape) and (max-height:600px){.center-overview .scene-heading{top:13px}.center-overview .scene-heading h1{font-size:20px}.center-overview .scene-heading>p:last-child{display:block;font-size:9px;margin-top:1px}.ward-grid{top:75px;bottom:78px;left:55%;transform:translateX(-50%);height:auto;gap:15px;width:min(770px,calc(100% - 145px));grid-template-columns:repeat(3,minmax(0,1fr))}.care-space{padding:6px 7px 10px;border-width:2px;border-radius:17px;box-shadow:0 4px #6b8166,0 7px 10px #2f49351c}.space-number{top:7px;left:8px;width:22px;height:21px;font-size:8px}.space-name{font-size:17px;line-height:1.1;margin-top:0}.space-name svg{width:12px;height:12px}.available .space-name{font-size:13px}.space-scene{margin-bottom:2px}.space-status{font-size:8px;margin-top:4px;gap:3px}.space-status svg{width:11px;height:11px}.space-detail{font-size:8px;margin-top:2px;line-height:1.2;min-height:10px}.space-detail [data-timer]{font-size:9px}.empty-space-sign,.reserved-badge{width:28px;height:28px;top:35%}.empty-space-sign svg,.reserved-badge svg{width:16px;height:16px}.ward-panel{left:55%;bottom:13px;width:330px}.ward-panel .primary{min-height:43px;font-size:12px}.ward-full{font-size:10px;padding:10px}.ward-back{left:79px;top:61px;min-height:38px;font-size:9px;padding:6px 10px;border-radius:12px}.ward-back svg{width:13px;height:13px}}
@media(orientation:landscape) and (max-width:650px){.ward-grid{top:76px;bottom:72px;width:calc(100% - 120px);left:56%;gap:10px}.space-name{font-size:15px}.available .space-name{font-size:11px}.space-status{font-size:7px}.space-status svg{width:10px;height:10px}.space-detail{font-size:7px}.care-space{padding:5px 5px 8px;border-radius:15px}.ward-panel{left:56%;width:280px}.ward-panel .primary{font-size:11px;min-height:40px;padding:8px 12px}.ward-back{left:73px;top:59px;min-height:35px;font-size:8px;padding:6px 8px}.ward-back svg{width:12px;height:12px}}

/* Once the net is gone, one inviting next step replaces the progress dots. */
.rescue-panel>.rescue-continue{position:relative;isolation:isolate;min-height:60px;margin-top:0;border-color:#4e6d36;background:linear-gradient(#accd76,#80aa51);box-shadow:0 6px #355329,0 0 0 2px #e7d38b,inset 0 2px #e2efb0;animation:rescue-continue-bounce 2.8s ease-in-out infinite}
.rescue-continue>span{flex:1;text-align:left;position:relative;z-index:1}.rescue-continue>svg{position:relative;z-index:1}
.rescue-continue>svg:last-child{animation:rescue-continue-arrow 2.8s ease-in-out infinite}
.rescue-continue::after{content:'';position:absolute;inset:-3px;border:2px solid #ffe7a3;border-radius:inherit;pointer-events:none;opacity:0;animation:rescue-continue-halo 2.8s ease-out infinite}
.rescue-continue:is(:hover,:focus-visible),.rescue-continue:is(:hover,:focus-visible)::after,.rescue-continue:is(:hover,:focus-visible)>svg:last-child{animation-play-state:paused}
.rescue-panel>.rescue-continue:active:not(:disabled){animation:none;transform:translateY(3px) scale(.98);box-shadow:0 3px #355329,0 0 0 2px #e7d38b,inset 0 2px #e2efb0}
.rescue-continue:disabled,.rescue-continue:disabled::after,.rescue-continue:disabled>svg:last-child{animation:none}
@keyframes rescue-continue-bounce{0%,36%,100%{transform:translateY(0) scale(1);box-shadow:0 6px #355329,0 0 0 2px #e7d38b,0 0 12px #ffdf6c00,inset 0 2px #e2efb0}12%{transform:translateY(-4px) scale(1.025);box-shadow:0 8px #355329,0 0 0 2px #f6df93,0 0 26px #ffe18b85,inset 0 2px #f2f5c7}21%{transform:translateY(0) scale(1)}28%{transform:translateY(-2px) scale(1.012)}}
@keyframes rescue-continue-halo{0%,8%{opacity:0;transform:scale(1)}12%{opacity:.65}40%,100%{opacity:0;transform:scale(1.06,1.32)}}
@keyframes rescue-continue-arrow{0%,36%,100%{transform:translateX(0)}12%,28%{transform:translateX(4px)}}
@media(orientation:landscape) and (max-height:600px){.rescue-panel>.rescue-continue{min-height:50px}}

/* Space ownership and a small in-world enclosure shop. */
.space-size{position:absolute;z-index:2;right:13px;top:16px;padding:4px 8px;border:1px solid #a6b699;border-radius:20px;background:#eef0dce6;font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.7px;color:#68805d}
.space-size.size-medium{background:#dcebee;color:#507b87;border-color:#9ab9c0}.space-size.size-large{background:#f1dfb8;color:#8b703f;border-color:#c0a77a}
.care-space.unbuilt{background:linear-gradient(145deg,#f4edcef0,#dce2bfed);border-color:#a8af7f}.unbuilt .space-name{color:#6c8050}.unbuilt .space-status{color:#8c794b}
.build-space{position:absolute;inset:18% 12% 12%;display:grid;place-items:center;pointer-events:none}.build-space:before{content:'';position:absolute;left:4%;right:4%;bottom:8%;height:43%;border:2px dashed #a2b282;border-radius:50%;transform:rotate(-8deg);background:#d8dfba66}.build-space>svg{width:47px;height:47px;padding:11px;border:2px solid #a0af7e;border-radius:50%;background:#f3efd4;box-shadow:0 3px #b1bb91;color:#83995f;z-index:1}.build-space i{position:absolute;bottom:12%;left:14%;width:5px;height:32%;background:#b5a478;border:1px solid #9c936b;border-radius:3px;transform:rotate(5deg)}.build-space i:last-child{left:auto;right:13%;transform:rotate(-5deg)}
.space-shop{width:min(720px,calc(100% - 24px));padding:24px;background:#f6ebca;border-color:#a7a17a}.space-shop .dialog-top{margin-bottom:2px}.space-shop h2{margin:3px 0 0}.space-shop .eyebrow{color:#8b865e}.shop-funds{display:flex;align-items:center;gap:6px;position:absolute;right:86px;top:35px;background:#eee1b7;border:1px solid #c6b680;border-radius:20px;padding:7px 12px;font-size:13px}.shop-funds svg{width:19px;height:19px;color:#b18b36}.shop-funds>span{font-size:9px}.shop-intro{color:#7e825d;line-height:1.5;font-size:12px;margin:13px 0 17px}
.enclosure-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.enclosure-option{position:relative;display:flex;align-items:center;flex-direction:column;padding:9px 10px 14px;min-width:0;min-height:242px;border:2px solid #829768;border-radius:20px;background:linear-gradient(#fcf6de,#dce4bf);box-shadow:0 4px #657b50,inset 0 2px #fffbe5;text-align:center}.enclosure-option.type-medium{border-color:#7fa1a7;background:linear-gradient(#eef5eb,#c9dde0);box-shadow:0 4px #64848b}.enclosure-option.type-large{border-color:#ae9569;background:linear-gradient(#fff1d2,#e4ce9f);box-shadow:0 4px #9b8051}.enclosure-option:disabled{opacity:1;filter:none;cursor:default}.enclosure-option:disabled:not(.is-owned){color:#899175;box-shadow:0 3px #b8b89b;border-color:#babca0}.enclosure-option.is-owned{border-style:dashed;border-color:#b2b99c;box-shadow:none}.shop-pen{position:relative;display:block;width:100%;height:125px;flex-shrink:0}.shop-pen canvas{display:block;width:100%;height:100%;pointer-events:none}.shop-pen>b{position:absolute;right:3px;top:4px;display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#fff6d5;border:1px solid #bcc4a0;color:#82946d;font-size:12px;box-shadow:0 2px #c3c9ad}.type-medium .shop-pen>b{background:#eaf3ec;color:#6a929d}.type-large .shop-pen>b{background:#f5e3b9;color:#a1814e}.enclosure-copy{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%}.enclosure-copy>strong{font-size:16px;line-height:1.25}.enclosure-copy>small{font-size:10px;line-height:1.4;font-weight:650;color:#788364}.enclosure-price{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:36px;border-radius:13px;background:#7d9f58;color:#fff8df;font-size:13px;box-shadow:0 3px #5f7c42}.enclosure-price svg{width:17px;height:17px}.enclosure-option:disabled .enclosure-price{background:#d2d5b6;color:#7a8665;box-shadow:none}.enclosure-shortfall{font-size:9px;color:#947f52;line-height:1.25;font-weight:700}.shop-footer{font-size:10px!important;line-height:1.6!important;color:#898467;text-align:center;margin-top:20px}.shop-feedback{color:#926d44;font-size:11px!important;text-align:center;margin-top:9px;font-weight:750}.shop-feedback:empty{display:none}
.owned-enclosure{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 14px;border-radius:16px;background:#e5e1c2;border:1px solid #c7c8a4}.owned-enclosure>span{display:grid;grid-template-columns:23px 1fr;column-gap:8px;row-gap:3px;text-align:left}.owned-enclosure>span>svg{grid-row:1/3;align-self:center;width:22px;height:22px;color:#89956f}.owned-enclosure strong{font-size:13px}.owned-enclosure small{font-size:10px;color:#838967}.sell-space{min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid #b5a072;background:#f7edcd;color:#8e764d;display:flex;align-items:center;gap:5px;font-size:11px;flex-shrink:0}.sell-space svg{width:16px;height:16px}.sell-space:disabled{opacity:.5}.shop-note{font-size:10px!important;line-height:1.5!important;color:#8b8567;margin:8px 2px 14px}
@media(max-width:700px) and (orientation:portrait){.space-size{right:8px;top:12px;font-size:8px;padding:4px 6px;letter-spacing:.4px}.build-space>svg{width:36px;height:36px;padding:8px}}
@media(max-height:680px) and (orientation:portrait){.space-size{top:9px;right:6px;font-size:6px;padding:3px 5px}.build-space>svg{width:29px;height:29px;padding:6px}.unbuilt .space-status{font-size:7px}}
@media(max-width:540px){.space-shop{padding:17px}.shop-funds{right:74px;top:26px;font-size:11px;padding:6px 9px}.shop-funds>span{display:none}.shop-intro{font-size:11px;margin:10px 0 12px}.enclosure-options{grid-template-columns:1fr;gap:10px}.enclosure-option{flex-direction:row;text-align:left;padding:7px 10px;min-height:102px;border-radius:16px;gap:10px}.shop-pen{width:100px;height:87px}.shop-pen>b{width:20px;height:20px;right:1px;top:1px;font-size:9px}.enclosure-copy{flex:1;align-items:flex-start;gap:4px}.enclosure-copy>strong{font-size:14px}.enclosure-copy>small{font-size:10px}.enclosure-price{width:auto;min-height:29px;padding:4px 10px;border-radius:9px;font-size:11px}.enclosure-shortfall{font-size:8px}.shop-footer{margin-top:14px;font-size:9px!important}.owned-enclosure{padding:9px 10px;gap:7px}.owned-enclosure>span{grid-template-columns:1fr}.owned-enclosure>span>svg{display:none}.owned-enclosure strong{font-size:12px}.owned-enclosure small{font-size:9px}.sell-space{font-size:10px;padding:6px 9px}.shop-note{font-size:9px!important}}
@media(orientation:landscape) and (max-height:600px){.space-size{top:9px;right:6px;font-size:6px;padding:3px 5px}.build-space>svg{width:31px;height:31px;padding:7px}.space-shop{padding:16px 20px}.space-shop h2{font-size:24px}.shop-funds{top:23px;right:78px}.shop-intro{margin:8px 0 12px;font-size:10px}.enclosure-option{min-height:188px;padding:5px 8px 10px}.shop-pen{height:85px}.enclosure-copy{gap:5px}.enclosure-copy>strong{font-size:13px}.enclosure-copy>small{font-size:9px}.enclosure-price{min-height:30px;font-size:11px}.shop-footer{margin-top:13px;font-size:9px!important}}

.enclosure-options.changing-size{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:540px){.enclosure-options.changing-size{grid-template-columns:1fr}}
@media(max-width:360px){.space-shop h2{font-size:26px}.shop-funds{font-size:10px;right:73px;top:29px}}
@media(orientation:landscape) and (max-height:360px){.enclosure-option{min-height:160px}.shop-pen{height:62px}.shop-intro{margin:7px 0 9px}.space-shop .dialog-top .eyebrow{font-size:7px}.space-shop h2{font-size:21px}.shop-footer{font-size:8px!important;margin-top:10px}.owned-enclosure{padding:7px 10px}.shop-note{font-size:9px!important;margin:5px 2px 10px}}

/* Hand-lettered patient signs and readable care-state tokens. */
@font-face{font-family:'Patrick Hand';src:url('assets/PatrickHand-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.care-space.occupied{overflow:visible;padding-top:24px;padding-bottom:21px}
.animal-name-sign{--sign-inset:12px;--sign-font-size:32px;position:absolute;left:50%;top:-20px;z-index:4;display:flex;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - var(--sign-inset));min-width:0;min-height:49px;padding:2px 20px;transform:translateX(-50%) rotate(-3deg);border:2px solid #bcaa78;border-radius:12px 9px 13px 10px;background:linear-gradient(170deg,#fff5d7,#ede0b6);box-shadow:0 4px #7a876148,inset 0 2px #fffce8;color:#42644b;font:400 var(--sign-font-size)/1.15 'Patrick Hand','Chalkboard SE',cursive;letter-spacing:0;text-shadow:0 1px #fff8e0;pointer-events:auto}
.animal-name-sign:before,.animal-name-sign:after{content:'';position:absolute;top:50%;width:5px;height:5px;margin-top:-2px;border-radius:50%;background:#a89c6a;box-shadow:inset 0 1px 1px #746c4255,0 1px #fff5d5}.animal-name-sign:before{left:10px}.animal-name-sign:after{right:10px}.animal-name-sign>span{display:block;white-space:nowrap}
.occupied .space-number{top:27px}.occupied .space-size{top:31px}.occupied .space-scene{margin-top:15px;margin-bottom:12px;border-bottom:0;overflow:hidden}
.space-care{display:flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;margin:0 auto;min-height:42px}
.care-token{position:relative;display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:2px solid #c5ccb0;border-radius:50%;background:#e8e9d5;color:#9ca58a;box-shadow:0 2px #a2ae8c38}.care-token>svg{width:21px;height:21px;stroke-width:1.8}.care-token.is-done{background:#d6e5b4;color:#608350;border-color:#abc28d}.care-token.is-next{color:#6a7945;background:#f8e8af;border-color:#d5b657;box-shadow:0 3px #a78f4e44,0 0 0 3px #fff6d07d}.care-token.needs-attention{animation:care-need-pulse 2.5s ease-in-out infinite}.care-token.is-waiting{color:#688e94;background:#e0ece5;border-color:#afc7c3;box-shadow:0 2px #91aaa33b}.care-token.is-home{background:#dcebb5;color:#51814b;border-color:#95b76a}
.care-alert,.care-tick{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;width:18px;height:18px;border:2px solid #fff5da;border-radius:50%;background:#d69251;color:#fffbea;font:900 12px/1 var(--ui);font-style:normal;box-shadow:0 1px #927c4e33}.care-tick{top:auto;bottom:-3px;right:-3px;background:#8ba66d;width:14px;height:14px;font-size:8px;border-width:1.5px}.is-home .care-alert{background:#84a45f}
.space-countdown{display:flex;align-items:center;justify-content:center;gap:8px;min-width:112px;max-width:100%;min-height:38px;padding:5px 14px;margin:0;border:2px solid #a2bdb2;border-radius:24px;background:linear-gradient(#f4f6e7,#d9e8dc);box-shadow:0 3px #8ca89b55,inset 0 1px #fffdf3;color:#426458;font-size:20px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.5px;white-space:nowrap}.space-countdown svg{width:21px;height:21px;stroke-width:1.8}.sleep-countdown>svg{fill:#f2d68a;stroke:#8a7a48}.treatment-countdown>svg{color:#648c91}
@keyframes care-need-pulse{0%,38%,100%{transform:scale(1) rotate(0);box-shadow:0 3px #a78f4e44,0 0 0 3px #fff6d07d}14%{transform:scale(1.10) rotate(-5deg);box-shadow:0 3px #a78f4e44,0 0 0 7px #f7d67033}25%{transform:scale(1.03) rotate(4deg)}}
@media(max-width:1100px) and (orientation:portrait){.ward-grid.has-patients{top:190px;row-gap:30px}}
@media(max-width:700px) and (orientation:portrait){.ward-grid.has-patients{top:175px;row-gap:29px}.care-space.occupied{padding:22px 8px 15px}.animal-name-sign{top:-16px;min-width:0;min-height:37px;max-width:calc(100% - var(--sign-inset));padding:1px 16px;--sign-font-size:27px;border-radius:10px 8px 11px 9px}.animal-name-sign:before{left:7px}.animal-name-sign:after{right:7px}.animal-name-sign:before,.animal-name-sign:after{width:4px;height:4px}.occupied .space-number{top:23px}.occupied .space-size{top:26px}.occupied .space-scene{margin-top:10px;margin-bottom:10px}.space-care{gap:8px;min-height:32px}.care-token{width:29px;height:29px;border-width:1.5px}.care-token>svg{width:18px;height:18px}.care-alert{width:16px;height:16px;font-size:10px;right:-5px;top:-6px}.care-tick{width:12px;height:12px;font-size:7px}.space-countdown{font-size:17px;min-width:92px;min-height:30px;padding:3px 10px}}
@media(max-height:680px) and (orientation:portrait){.ward-grid.has-patients{top:143px;row-gap:23px}.care-space.occupied{padding:17px 6px 10px}.animal-name-sign{top:-14px;min-width:0;min-height:30px;padding:1px 14px;--sign-font-size:23px;border-width:1.5px}.occupied .space-number{top:19px}.occupied .space-size{top:21px}.occupied .space-scene{margin-top:6px;margin-bottom:6px}.space-care{gap:7px;min-height:26px}.care-token{width:24px;height:24px}.care-token>svg{width:15px;height:15px}.care-alert{width:14px;height:14px;font-size:9px;top:-5px;right:-4px;border-width:1.5px}.care-tick{width:10px;height:10px;font-size:6px;right:-2px}.space-countdown{font-size:14px;min-width:78px;min-height:24px;padding:2px 8px}.space-countdown svg{width:14px;height:14px}}
@media(orientation:landscape) and (max-height:600px){.ward-grid.has-patients{top:91px}.care-space.occupied{padding:19px 7px 12px}.animal-name-sign{top:-15px;min-width:0;min-height:31px;padding:0 16px;--sign-font-size:25px;max-width:calc(100% - var(--sign-inset));border-radius:9px}.occupied .space-number{top:19px}.occupied .space-size{top:21px}.occupied .space-scene{margin-top:6px;margin-bottom:7px}.space-care{gap:8px;min-height:26px}.care-token{width:25px;height:25px;border-width:1.5px}.care-token>svg{width:16px;height:16px}.care-alert{width:14px;height:14px;font-size:9px;top:-5px;right:-4px;border-width:1.5px}.care-tick{width:10px;height:10px;font-size:6px}.space-countdown{font-size:14px;min-width:78px;min-height:24px;padding:2px 8px}.space-countdown svg{width:14px;height:14px}}
@media(orientation:landscape) and (max-width:650px){.care-space.occupied{padding:18px 5px 10px}.animal-name-sign{--sign-font-size:23px;padding:0 14px;min-height:29px}.space-care{gap:7px}.care-token{width:23px;height:23px}.care-token>svg{width:14px;height:14px}.care-alert{width:13px;height:13px;font-size:8px}.space-countdown{font-size:14px}}
/* Care tools stay in the scene; the dock only describes the current action. */
.activity-meter{height:8px;overflow:hidden;border-radius:8px;background:#d6dcc2;margin:10px 0 1px;box-shadow:inset 0 1px 2px #5b76552e}
.activity-meter>i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9dbe7b,#6f9d65);transition:width .15s linear}
.activity-back{min-height:44px;padding:8px 12px;font-size:11px;margin-top:2px}
.care-activity .scene-progress{display:none}
@media(orientation:landscape) and (max-height:600px){.care-panel:has(.activity-meter) .care-dock{padding:7px 12px 5px}.care-panel .activity-back{min-height:44px;padding:6px 12px;font-size:10px}.activity-meter{margin:5px 0 0;height:6px}.care-activity .playfield{bottom:132px;top:60px}}
.care-playing .care-needs{display:none}
@media(orientation:landscape) and (max-height:600px){
 .care-playing .playfield{left:calc(50% - 62px);width:calc(100% - 280px);max-width:650px;top:84px;bottom:20px}
 .care-playing .care-panel{left:auto;right:12px;top:90px;bottom:auto;transform:none;width:180px;max-width:180px}
 .care-playing .care-dock{padding:10px 11px 6px;border-radius:19px}
 .care-playing .task-prompt strong{font-size:12px;line-height:1.2}
 .care-playing .task-prompt>span{font-size:10px;line-height:1.4}
 .care-playing .care-main{gap:6px;padding:8px;font-size:11px}
 .care-playing .care-main svg{width:18px;height:18px}
}

/* A saved love meter shares the recovery HUD without covering the animal. */
.care-needs>.love-meter{position:relative;display:flex;align-items:center;flex:1;min-width:110px;max-width:150px;align-self:center;gap:6px;margin:0;padding:5px 8px;border:2px solid #fff3d3;border-radius:16px;background:#fff0d7ed;box-shadow:0 3px #7187638a;color:#945d61;text-align:left}
.love-emblem{display:grid;place-items:center;width:23px;height:26px;flex:none;color:#b77675}
.love-emblem svg{width:21px;height:21px;fill:#eab0a7;stroke-width:1.6}
.love-gauge{flex:1;min-width:0}.love-caption{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:800;margin:0 1px 3px}.love-caption strong{font-size:9px;font-variant-numeric:tabular-nums}
.love-track{height:10px;border:1.5px solid #ba9e8e;border-radius:15px;overflow:hidden;background:#e7d5bc;box-shadow:inset 0 2px 3px #9b75641f}
.love-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(#f3c4b3,#d98d8d);box-shadow:inset 0 2px #ffe1cba3;transition:width .45s ease-out}
.love-completed{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;width:15px;height:15px;border:1.5px solid #fff3d3;border-radius:50%;background:#759b58;color:#fff6df;font-size:9px;font-weight:900}
.love-meter.is-full .love-track{border-color:#a27c65}.love-meter.is-gaining .love-emblem{animation:love-reassured .6s ease-out}
@keyframes love-reassured{40%{transform:scale(1.16) rotate(-6deg)}75%{transform:scale(.98) rotate(2deg)}}
@media(orientation:landscape) and (max-height:600px){.care-needs>.love-meter{flex:none;display:block;min-width:64px;max-width:64px;width:64px;padding:4px;border-radius:10px}.care-needs .love-emblem{display:none}.care-needs .love-caption,.care-needs .love-caption strong{font-size:9px}.care-needs .love-track{height:8px}}

@media(orientation:landscape) and (max-height:600px){.care-needs{left:calc(100% + 10px)}}
@media(orientation:landscape) and (max-width:650px){.care-needs{left:calc(100% + 2px)}}

/* Large care emblems lead direct care; the animal carries its gesture hints. */
.care-panel .care-needs{gap:12px;margin-bottom:16px}
.care-panel.icons-only .care-needs{margin-bottom:0}
.care-panel .need{flex:none;width:76px;height:76px;border-width:3px;box-shadow:0 5px #7187638a}
.care-panel .need svg{width:41px;height:41px;stroke-width:1.8}
.care-panel .need i{width:22px;height:22px;font-size:13px;right:-4px;bottom:-3px;border-width:2px}
.care-needs>.love-meter{flex:none;display:flex;flex-direction:column;justify-content:center;gap:2px;width:76px;height:76px;min-width:76px;max-width:76px;padding:5px 8px;border-width:3px;border-radius:23px;box-shadow:0 5px #7187638a}
.care-needs .love-emblem{display:grid;width:32px;height:32px}
.care-needs .love-emblem svg{width:32px;height:32px}
.care-needs .love-gauge{flex:none;width:100%}
.care-needs .love-caption{justify-content:center;margin:0 0 2px}
.care-needs .love-caption>span{display:none}
.care-needs .love-caption strong{font-size:11px;line-height:12px}
.care-needs .love-track{height:7px}
.love-completed{width:20px;height:20px;font-size:12px;right:-5px;top:-5px;border-width:2px}
.care-dock.bare-dock{background:none;border:0;box-shadow:none;padding:0}
@media(max-width:700px) and (orientation:portrait){
 .care-panel .care-needs{gap:10px}.care-panel .need{width:68px;height:68px}.care-panel .need svg{width:37px;height:37px}
 .care-needs>.love-meter{width:68px;height:68px;min-width:68px;max-width:68px;padding:4px 7px;border-width:2px;border-radius:21px}
 .care-needs .love-emblem,.care-needs .love-emblem svg{width:29px;height:29px}
}
@media(max-width:360px) and (orientation:portrait){
 .care-panel .care-needs{gap:8px}.care-panel .need{width:62px;height:62px;border-width:2px}.care-panel .need svg{width:33px;height:33px}
 .care-needs>.love-meter{width:62px;height:62px;min-width:62px;max-width:62px;padding:3px 6px;border-radius:20px}
 .care-needs .love-emblem,.care-needs .love-emblem svg{width:27px;height:27px}.care-needs .love-caption strong{font-size:10px;line-height:11px}.care-needs .love-track{height:6px}
}
@media(orientation:landscape) and (max-height:600px){
 body[data-view=care] .care-detail .playfield{left:calc(50% - 62px);width:calc(100% - 280px);max-width:650px;top:84px;bottom:20px}
 body[data-view=care] .care-panel{left:auto;right:12px;top:82px;bottom:auto;transform:none;width:180px;max-width:180px}
 .care-panel .care-needs{position:static;display:grid;grid-template-columns:repeat(2,62px);justify-content:center;gap:8px;margin:0 0 12px}
 .care-playing .care-panel .care-needs{display:none}
 .care-panel .need{width:62px;height:62px;border-width:2px}.care-panel .need svg{width:33px;height:33px}
 .care-needs>.love-meter{display:flex;width:62px;height:62px;min-width:62px;max-width:62px;padding:3px 6px;border-radius:20px}
 .care-needs .love-emblem,.care-needs .love-emblem svg{display:grid;width:27px;height:27px}
 .care-needs .love-caption strong{font-size:10px;line-height:11px}.care-needs .love-track{height:6px}
 .care-panel .care-dock{padding:8px 10px}.care-panel .care-dock.bare-dock{padding:0}
 .care-panel .care-main{font-size:11px;gap:6px;padding:8px}.care-panel .care-main svg{width:18px;height:18px}
}

/* The matching food gauge fills with each bite; a full bowl means well fed. */
.care-needs>.food-meter{background:#ecf0cfee;color:#547a48;border-color:#fff3d3}
.food-meter .love-emblem{color:#6b8f50}.food-meter .love-emblem svg{fill:none;stroke-width:1.8}
.food-meter .love-track{background:#d4dcbd;border-color:#91a374}
.food-meter .love-track i{background:linear-gradient(#b9d68a,#86ad63);box-shadow:inset 0 2px #e1efb5aa}
.food-meter.is-hungry .love-track{border-color:#bfaa6d;background:#e5dfbf}

/* A native hit target follows the painted latch; the scene supplies its glow/hand. */
.carrier-latch-target{position:absolute;transform:translate(-50%,-50%);border-radius:50%;background:transparent;pointer-events:auto;touch-action:none;padding:0}
.carrier-latch-target:active:not(:disabled){transform:translate(-50%,-50%)}
.carrier-latch-target:focus-visible{outline:4px solid #fff9df;outline-offset:5px;box-shadow:0 0 0 9px #355f51}
@media(orientation:landscape) and (max-height:600px){body[data-view=release]:not(.reunion-playing) .release-world .playfield{bottom:65px}}

@media(orientation:portrait) and (max-height:680px){body[data-view=release]:not(.reunion-playing) .release-world .playfield{bottom:150px}}

/* The next main action feels like a game button waiting for a tap. */
.action-cta:not(:disabled){position:relative;isolation:isolate;border-color:#e6d28e;background:linear-gradient(#a7ca75,#7da750);box-shadow:0 6px #355329,0 0 0 2px #58783b,inset 0 2px #e4efb5;animation:action-invite 3s ease-in-out infinite;transform-origin:center}
.action-cta:not(:disabled)::before{content:'';position:absolute;inset:2px;border-radius:inherit;pointer-events:none;background:linear-gradient(110deg,transparent 35%,#fffce34d 47%,#fffce378 50%,#fffce34d 53%,transparent 65%) 180% 0/260% 100%;animation:action-shimmer 3s ease-in-out infinite}
.action-cta:not(:disabled)::after{content:'';position:absolute;inset:-4px;border:2px solid #ffe7a3;border-radius:inherit;pointer-events:none;opacity:0;animation:action-halo 3s ease-out infinite}
.action-cta:not(:disabled)>svg:last-child:not(:first-child){animation:action-arrow 3s ease-in-out infinite}
.action-cta:is(:hover,:focus-visible),.action-cta:is(:hover,:focus-visible)::before,.action-cta:is(:hover,:focus-visible)::after,.action-cta:is(:hover,:focus-visible)>svg:last-child{animation-play-state:paused}
.action-cta:active:not(:disabled){animation:none;transform:translateY(3px) scale(.98);box-shadow:0 3px #355329,0 0 0 2px #e6d28e,inset 0 2px #e4efb5}
@keyframes action-invite{0%,60%,100%{transform:translateY(0) scale(1);box-shadow:0 6px #355329,0 0 0 2px #58783b,inset 0 2px #e4efb5}22%{transform:translateY(-3px) scale(1.035);box-shadow:0 9px #355329,0 0 0 5px #ffe4a36b,0 0 22px #f6d87852,inset 0 2px #edf5ce}36%{transform:translateY(0) scale(1)}47%{transform:translateY(-2px) scale(1.018);box-shadow:0 8px #355329,0 0 0 3px #ffe4a34d,inset 0 2px #e4efb5}}
@keyframes action-shimmer{0%,12%{background-position:180% 0}50%,100%{background-position:-80% 0}}
@keyframes action-halo{0%,8%{opacity:0;transform:scale(1)}22%{opacity:.8}54%,100%{opacity:0;transform:scale(1.07,1.25)}}
@keyframes action-arrow{0%,12%,52%,100%{transform:translateX(0)}23%,43%{transform:translateX(6px)}33%{transform:translateX(2px)}}

/* Earned gold hearts travel from the reunion reward into the saved funds HUD. */
.funds{position:relative}.funds #funds{font-variant-numeric:tabular-nums}
.funds.funds-just-added{border-color:#bc8c34;background:linear-gradient(#fff8d3,#f2d583);box-shadow:0 4px #5f6a47,inset 0 2px #fffce8,0 0 0 5px #ffe6a06b,0 0 22px #ffe08b8a}
.funds-effects{position:fixed;inset:0;z-index:35;pointer-events:none;overflow:hidden}
.fund-token{position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;margin:-16px;border:2px solid #fff5c9;border-radius:50%;background:linear-gradient(145deg,#ffe59a,#e6b549);box-shadow:0 3px 5px #6c573848,inset 0 2px #fff1b0,0 0 9px #ffe08b66;will-change:transform,opacity;pointer-events:none}
.fund-token>svg{width:21px;height:21px;fill:#f5c452;stroke:#ad7d31;stroke-width:1.8}
.home-reward.funds-award>svg{animation:funds-award-pop .65s ease-out both}
@keyframes funds-award-pop{0%{transform:scale(.6) rotate(-12deg)}45%{transform:scale(1.22) rotate(7deg)}75%{transform:scale(.95) rotate(-3deg)}100%{transform:scale(1) rotate(0)}}
