/* Isolated sketch review. Existing room/art geometry and catalogs remain unchanged. */
.app{--statusbar:88px;--utilitybar:44px;--actionbar:50px;--neighborhood:156px;--topbar:calc(var(--statusbar) + var(--utilitybar));--bottombar:calc(var(--actionbar) + var(--neighborhood));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--statusbar) var(--utilitybar) minmax(0,1fr) var(--actionbar) var(--neighborhood);width:100%;max-width:none;height:100svh;min-height:0;padding:0;gap:0;background:#563820}
.app>header.sketch-status{grid-row:1;grid-column:1;position:relative;inset:auto;display:grid;grid-template-columns:minmax(68px,.9fr) minmax(54px,.65fr) minmax(54px,.65fr) minmax(105px,1.2fr);gap:5px;align-items:center;width:100%;max-width:none;min-width:0;height:100%;padding:5px 7px;background:#563820;border:0;border-bottom:2px solid #a37a4e;box-shadow:none;border-radius:0;color:#f8e7c6}
.xp-cluster{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}.paw-level{position:relative;width:42px;height:42px;flex-shrink:0}.paw-level svg{width:100%;height:100%}.paw-level strong{position:absolute;left:0;right:0;top:21px;text-align:center;color:#fff4db;font-size:14px}.xp-info{min-width:0}.xp-info>span{display:block;font-size:8px;white-space:nowrap}.xp-info b{display:block;font-size:9px;margin:2px 0;text-align:center}.xp-info .xp-track{width:52px;height:8px;margin:0;background:#342113;border-color:#b68e5e}.currency-box{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:69px;border:1px solid #b68e5e;border-radius:6px;background:#342113;color:#fff3dd;overflow:hidden}.currency-box>span{font-size:9px;letter-spacing:.04em}.currency-box strong{font-size:16px;line-height:1.4;font-variant-numeric:tabular-nums}.currency-box small{display:block;width:100%;border-top:1px solid #8c6740;text-align:center;padding:3px 0;font-size:7px;color:#d6bd98;white-space:nowrap}.currency-box.unavailable strong{color:#ddc6a4}.pet-needs{display:grid;gap:4px;align-content:center}.needs-note{font-size:8px;color:#ddc6a4;margin-bottom:1px}.pet-needs>div{display:grid;grid-template-columns:38px minmax(22px,1fr) 9px;align-items:center;gap:3px}.pet-needs>div>span{font-size:9px}.pet-needs i{display:block;height:7px;border:1px solid #b68e5e;border-radius:4px;background:#342113}.pet-needs b{font-size:9px;color:#ddc6a4}
.room-utility{grid-row:2;grid-column:1;display:flex;align-items:center;gap:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;min-width:0;padding:0 4px;background:#efe0c2;border-bottom:2px solid #b48b59;scrollbar-width:thin;scrollbar-color:#b88e5b #4a301d;z-index:220000;color:#543b2a}.room-utility h1{font:700 15px system-ui;margin:0;min-width:72px;max-width:95px;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}.room-utility button,.room-leaf{position:static;flex:0 0 40px;min-width:40px;width:40px;height:44px;min-height:44px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#62422a;font-size:24px;box-shadow:none;padding:0}.room-leaf{font-size:19px;gap:3px}.room-leaf b{font-size:11px}.utility-spacer{flex:1;min-width:0}.room-utility button:disabled{opacity:.48;cursor:default}.room-utility #header-settings{position:static;inset:auto;width:44px;min-width:44px;height:44px;background:transparent!important}.room-utility #header-settings::before{width:30px;height:30px}
.app>.scene{grid-row:3;grid-column:1;width:100%;height:100%;min-height:0;min-width:0;border-radius:0}.scene>.pan{top:48%;min-width:44px;min-height:44px}.visit-banner{position:absolute;top:5px;left:6px;right:6px;z-index:210001;display:flex;gap:6px;align-items:center;justify-content:space-between;background:#fff4dbed;border:1px solid #b69564;border-radius:6px;padding:3px 5px;color:#5a3d24;box-shadow:0 2px 5px #34211322}.visit-banner span{font-size:10px;line-height:1.2;font-weight:700}.visit-banner button{min-height:38px;min-width:72px;font-size:10px;border:1px solid #b69564;background:#e7efd9;border-radius:5px;padding:3px 7px}.tool-hint{position:absolute;top:4px;left:50%;transform:translateX(-50%);max-width:90%;z-index:210001;padding:5px 8px;background:#fff8e8e8;border-radius:6px;font-size:11px;color:#5a3d24;text-align:center;pointer-events:none}.demo-visit .object{cursor:default}.demo-visit .object img{filter:none}.demo-visit .object:disabled{opacity:1}
.care-toolbar{grid-row:4;grid-column:1;display:flex;min-width:0;background:#342113;border-top:2px solid #a37a4e;border-bottom:1px solid #24160d;z-index:220000;align-items:center;padding:0 4px;color:#fff3dd}.primary-tools{display:flex;gap:0;min-width:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b88e5b #4a301d}.social-tools{display:flex;gap:0;margin-left:auto;padding-left:4px;flex:0 0 auto;border-left:1px solid #8c6740}.action-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:0 0 44px;min-width:44px;min-height:46px;height:46px;border:0;border-radius:0;background:transparent;color:#fff3dd;font-size:9px;padding:0 1px;line-height:1.1}.action-tool>span:last-child{white-space:nowrap}.action-tool small{display:none}.tool-art{display:flex;align-items:center;justify-content:center;width:30px;height:29px;color:#e9bd72;font-size:27px;text-shadow:0 1px #161008}.tool-art img{width:100%;height:100%;object-fit:contain;pointer-events:none}.pointer-art{transform:rotate(-38deg)}.action-tool[aria-pressed=true]{text-decoration:underline;text-underline-offset:2px;font-weight:800}.action-tool:disabled{opacity:.43;cursor:default}.action-tool:focus-visible{outline:2px solid #64b5f6;outline-offset:-2px}
.bottom-hud.neighborhood{grid-row:5;grid-column:1;position:relative;display:grid;grid-template-columns:96px minmax(0,1fr) 70px;gap:4px;padding:4px 6px 14px;background:#563820;border-top:2px solid #8c6740;overflow:hidden;color:#fff0d4}.own-house-slot{position:relative;min-width:0;align-self:stretch}.room-pet-count{position:absolute;top:13px;right:0;font-size:9px;line-height:1.2;text-align:right;color:#f5e5bd}.room-pet-count b{display:block;font-size:12px;letter-spacing:.03em}.neighborhood .mini-house.illustrated-house{position:absolute!important;left:0!important;right:auto!important;top:auto!important;bottom:26px!important;width:96px!important;max-width:100%;height:auto;padding:0}.own-house-caption{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:9px;color:#f0d7ad}.neighborhood .mini-house .area-control{pointer-events:none;font-size:7px!important}.neighborhood .mini-house .house-zoom{inset:0;transform:none;min-width:44px;min-height:44px;width:100%;height:100%;border:0;border-radius:0;background:none}.friends-neighborhood{display:flex;flex-direction:column;min-width:0;overflow:hidden}.friends-legend{display:flex;align-items:center;justify-content:space-between;gap:4px;height:17px;flex:0 0 17px;padding:0 2px;color:#f4e1bc}.friends-legend strong{font-size:10px}.friends-legend>span{font-size:6px;white-space:nowrap;letter-spacing:.03em;color:#dfc5a1}.friends-scroll{overflow-x:auto;overflow-y:hidden;min-width:0;flex:1;scrollbar-width:none;scroll-behavior:auto}.friends-scroll::-webkit-scrollbar{display:none}.friends-houses{display:flex;gap:5px;width:max-content;min-width:100%;height:100%;align-items:flex-end;padding:0 2px}.friend-house{position:relative;flex:0 0 66px;width:66px;height:94px;padding:0;border:0;background:none;border-radius:0;box-shadow:none;display:block;color:#583b27}.friend-house>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.friend-house .friend-level{position:absolute;left:29%;top:10%;width:42%;font-size:9px;font-weight:800;text-align:center;line-height:1}.friend-house .friend-avatar{position:absolute;left:25%;top:35%;width:50%;height:32%;border-radius:50%;display:grid;place-items:center;border:2px solid #f3dfb9;background:var(--avatar-color,#b7d1c6);font-size:15px;font-weight:800;color:#58442b;overflow:hidden}.friend-house .friend-name{position:absolute;left:6%;right:6%;bottom:9%;font-size:10px;text-align:center;font-weight:750;line-height:1.1;overflow:hidden;text-overflow:ellipsis}.friend-house::after{content:'DEMO';position:absolute;left:0;right:0;bottom:0;font-size:6px;letter-spacing:.05em;color:#f4dfba;text-align:center;line-height:1}.friend-house[aria-current=true]{filter:drop-shadow(0 0 2px #fff0bd)}.friend-house:focus-visible{outline:2px solid #64b5f6;outline-offset:-2px}.friends-road{height:31px;flex:0 0 31px;position:relative;margin:0 2px}.friends-road::before{content:'';position:absolute;top:14px;left:0;right:0;height:12px;background:#ab835b;border:1px solid #d6b484;border-radius:12px}.friends-road::after{content:'';position:absolute;top:20px;left:5px;right:5px;border-top:1px dashed #ead4a8;pointer-events:none}.friends-road input{position:absolute;inset:0;width:100%;height:31px;margin:0;appearance:none;background:transparent;z-index:2;cursor:ew-resize}.friends-road input::-webkit-slider-runnable-track{height:14px;background:transparent}.friends-road input::-webkit-slider-thumb{appearance:none;width:31px;height:30px;margin-top:-13px;border:0;border-radius:0;background:url('assets/road-kitty-thumb.webp') center/contain no-repeat;filter:drop-shadow(0 1px 1px #28160988)}.friends-road input::-moz-range-track{height:14px;background:transparent}.friends-road input::-moz-range-thumb{width:31px;height:30px;border:0;border-radius:0;background:url('assets/road-kitty-thumb.webp') center/contain no-repeat}.friends-road input:focus-visible{outline:2px solid #64b5f6;outline-offset:-1px;border-radius:7px}.shop-building{position:relative;align-self:end;height:105px;width:70px;min-height:44px;min-width:44px;margin:0 0 24px;padding:0;border:0;background:none;border-radius:0;display:block;color:#65442b}.shop-building img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.shop-building strong{position:absolute;left:6px;right:6px;bottom:26px;text-align:center;font-size:12px;text-shadow:0 1px #fff5d4}.neighborhood .release-marker{left:6px;right:6px;bottom:2px;font-size:6px;color:#d8bf99;text-align:center;white-space:nowrap}
.drawer,.drawer[data-panel=shop],.drawer[data-panel=inventory],.drawer[data-panel=settings],.drawer[data-panel=purchase]{left:6px;right:6px;bottom:calc(var(--bottombar) + 6px);width:auto;max-width:620px;max-height:calc(100% - var(--topbar) - var(--bottombar) - 10px);padding:7px 8px;border-radius:10px}.drawer[data-panel=settings] .panel-note{display:block}.secondary-actions{display:flex;align-items:center;gap:12px}.secondary-actions .expand{position:static;height:auto;margin:0;max-width:50%;font-size:11px}.secondary-actions>[data-panel]{min-height:44px}.large-house{bottom:calc(var(--bottombar) + 6px);max-height:calc(100% - var(--topbar) - var(--bottombar) - 12px);overflow:auto}.item-popover{z-index:300001}.demo-visit #item-popover{display:none!important}
@media(max-width:360px){.app>header.sketch-status{gap:4px;padding:4px;grid-template-columns:70px 54px 54px minmax(100px,1fr)}.xp-cluster{flex-direction:column;gap:0}.paw-level{width:32px;height:31px}.paw-level strong{top:15px;font-size:12px}.xp-info>span{font-size:7px}.xp-info b{font-size:7px;margin:0}.xp-info .xp-track{height:5px;width:52px}.currency-box strong{font-size:14px}.currency-box small{font-size:6px}.pet-needs>div{grid-template-columns:35px minmax(18px,1fr) 8px;gap:2px}.pet-needs>div>span{font-size:8px}.needs-note{font-size:7px}.bottom-hud.neighborhood{grid-template-columns:90px minmax(0,1fr) 60px;gap:3px;padding-left:4px;padding-right:4px}.neighborhood .mini-house.illustrated-house{width:90px!important}.shop-building{width:60px}.friend-house{flex-basis:62px;width:62px;height:90px}.friends-legend{justify-content:center}.friends-legend strong{display:none}.social-tools{padding-left:0}.action-tool{flex-basis:43px;min-width:43px}.care-toolbar{padding:0 2px}}
@media(min-width:650px){.app{--statusbar:84px;--neighborhood:164px}.app>header.sketch-status{grid-template-columns:minmax(140px,1fr) 90px 90px minmax(150px,1.2fr);gap:16px;padding:6px max(16px,calc((100vw - 1000px)/2))}.xp-info .xp-track{width:110px}.xp-info>span{font-size:10px}.xp-info b{font-size:12px}.pet-needs>div{grid-template-columns:55px minmax(50px,1fr) 12px}.pet-needs>div>span{font-size:11px}.needs-note{font-size:9px}.bottom-hud.neighborhood{grid-template-columns:130px minmax(0,1fr) 96px;gap:12px;padding-left:14px;padding-right:14px}.neighborhood .mini-house.illustrated-house{width:126px!important;bottom:18px!important}.room-pet-count{top:5px;font-size:11px}.room-pet-count b{font-size:14px}.own-house-caption{bottom:2px}.friend-house{flex-basis:80px;width:80px;height:112px}.friends-houses{gap:12px}.friend-house .friend-level{font-size:11px}.friend-house .friend-name{font-size:12px}.shop-building{width:92px;height:120px;margin-bottom:13px}.shop-building strong{font-size:15px;bottom:30px}.friends-legend>span{font-size:8px}.friends-legend strong{font-size:12px}.care-toolbar{padding:0 14px}.primary-tools{gap:8px}.action-tool{flex-basis:52px;min-width:52px;font-size:10px}.social-tools{gap:8px}.room-utility{padding:0 14px}.room-utility h1{min-width:100px;font-size:18px}.drawer{left:10px;right:auto;width:430px}.drawer[data-panel=inventory],.drawer[data-panel=shop],.drawer[data-panel=settings],.drawer[data-panel=purchase]{left:10px;right:auto;width:430px}}
@media(orientation:landscape) and (max-height:500px){.app{--statusbar:58px;--utilitybar:38px;--actionbar:44px;--neighborhood:110px}.app>header.sketch-status{grid-template-columns:minmax(125px,1fr) 80px 80px minmax(150px,1.1fr);gap:10px;padding:3px 12px}.currency-box{min-height:49px}.currency-box strong{font-size:14px;line-height:1.1}.currency-box small{padding:1px 0;font-size:6px}.xp-cluster{flex-direction:row}.paw-level{width:38px;height:38px}.pet-needs{gap:2px}.needs-note{display:none}.room-utility button,.room-leaf,.room-utility #header-settings{min-height:38px;height:38px}.care-toolbar,.action-tool{height:44px;min-height:44px}.action-tool .tool-art{height:25px;font-size:24px}.bottom-hud.neighborhood{grid-template-columns:96px minmax(0,1fr) 70px;gap:8px;padding:1px 8px 10px}.neighborhood .mini-house.illustrated-house{width:84px!important;bottom:8px!important}.room-pet-count{top:0;right:0;font-size:7px}.room-pet-count b{font-size:9px}.own-house-caption{bottom:0;font-size:7px}.friends-legend{height:12px;flex-basis:12px}.friends-legend strong{font-size:8px}.friends-legend>span{font-size:6px}.friend-house{flex-basis:58px;width:58px;height:76px}.friend-house .friend-name{font-size:8px}.friend-house .friend-level{font-size:8px}.friend-house .friend-avatar{font-size:12px}.friend-house::after{font-size:5px}.friends-road{height:25px;flex-basis:25px}.friends-road input{height:25px}.friends-road::before{top:10px}.friends-road::after{top:16px}.shop-building{width:64px;height:80px;margin-bottom:8px}.shop-building strong{bottom:20px;font-size:10px}.neighborhood .release-marker{font-size:5px}.drawer,.drawer[data-panel=shop],.drawer[data-panel=inventory],.drawer[data-panel=settings],.drawer[data-panel=purchase]{bottom:6px;top:calc(var(--statusbar) + 4px);max-height:calc(100% - var(--statusbar) - 10px);left:auto;right:6px;width:min(430px,calc(100% - 12px))}.large-house{bottom:4px;max-height:calc(100% - var(--statusbar) - 8px)}.visit-banner{top:2px;padding:1px 4px}.visit-banner button{min-height:30px}.visit-banner span{font-size:9px}.tool-hint{font-size:9px;padding:3px 6px}}
@media(prefers-reduced-motion:reduce){.friends-scroll{scroll-behavior:auto}}

/* Registered B artwork slots from asset-manifest.json; true alpha remains intact. */
.friend-house{height:auto!important;aspect-ratio:5/7}.friend-house>img{z-index:2;object-fit:fill}.friend-house .friend-avatar-backing{position:absolute;z-index:1;left:21.6981%;top:33.8275%;width:56.4151%;height:37.7358%;background:var(--avatar-color);border-radius:10%}.friend-house .friend-avatar{z-index:3;left:26.4151%;top:37.3989%;width:47.1698%;height:30.3235%;border:0;background:transparent;border-radius:0;font-size:18px}.friend-house .friend-level{z-index:3;left:32%;top:18.7332%;width:36%;height:6.8733%;font-size:8px;display:grid;place-items:center}.friend-house .friend-name{z-index:3;left:16.5094%;right:16.5094%;top:79.1779%;bottom:auto;height:8.9623%;display:grid;place-items:center;font-size:8px;line-height:1}.friend-house::after{z-index:3;bottom:0;font-size:5px}.shop-building{height:auto;aspect-ratio:6/7}.shop-building strong{left:24.1082%;right:24.6617%;top:35.7934%;bottom:auto;height:8.1181%;font-size:9px;line-height:1;display:grid;place-items:center;text-shadow:none}
@media(min-width:650px) and (min-height:501px){.app{--neighborhood:196px}.bottom-hud.neighborhood{grid-template-columns:200px minmax(0,1fr) 100px}.neighborhood .mini-house.illustrated-house{width:192px!important;bottom:21px!important}.room-pet-count{top:4px;right:4px;font-size:12px}.room-pet-count b{font-size:16px}.own-house-caption{bottom:3px;font-size:11px}.shop-building{width:96px;margin-bottom:28px}.shop-building strong{font-size:12px}.friend-house{flex-basis:92px;width:92px}.friend-house .friend-level{font-size:10px}.friend-house .friend-name{font-size:10px}.friend-house .friend-avatar{font-size:23px}.friend-house::after{font-size:6px}.friends-legend{height:22px;flex-basis:22px}.friends-legend>span{font-size:9px}.friends-legend strong{font-size:13px}}

.future-tool .tool-art{height:24px;font-size:24px}.action-tool>span:last-child{display:flex;flex-direction:column;gap:1px}.action-tool small{display:block;font-size:6px;line-height:1;color:#e1c9a3}

.pointer-art{transform:none}.tool-art{text-shadow:none}.future-tool .tool-art img{opacity:1}
@media(max-width:600px){.room-utility #header-settings{position:sticky;right:0;background:#efe0c2!important;z-index:2;box-shadow:-4px 0 4px #efe0c2}}
/* Keep narrow-screen overflow inside its toolbar row; native touch/trackpad scroll remains. */
.primary-tools{height:100%;align-items:center;overflow-y:hidden;scrollbar-width:none}.primary-tools::-webkit-scrollbar{display:none}

/* Owner-requested local navigation/footer revision; no old item strip restored. */
.room-utility .utility-inventory{flex:0 0 68px;width:68px;min-width:68px;min-height:44px;display:flex;flex-direction:column;justify-content:flex-end;font:700 9px system-ui;padding:0 1px 3px;position:relative;color:#543b2a}
.room-utility .utility-inventory::before{position:absolute;top:1px;left:50%;transform:translateX(-50%);width:29px;height:29px;background-size:contain}
#house-map .area-control{pointer-events:auto;font-size:8px!important;cursor:pointer;outline-offset:1px}
#house-map .area-control:focus-visible{outline:2px solid #77b9d6;background:#fff5c688}
#house-map .area-control:hover{background:#fff7dd44}
.friends-houses{justify-content:center;width:max-content;min-width:100%}
.friend-house::after{content:none}
.friend-house .friend-avatar{display:flex;flex-direction:column;justify-content:center;line-height:1;gap:1px}
.friend-house .friend-avatar b{font-size:inherit;font-weight:800}
.friend-house .friend-avatar small{display:block;font-size:6px;line-height:1;letter-spacing:.015em;color:#685442;font-weight:500}
.friends-road.static-road input{cursor:default;opacity:1}
.friends-road.static-road{pointer-events:none}
@media(max-width:649px){.app{--neighborhood:132px}.friend-house{flex-basis:48px;width:48px}.friend-house .friend-level{font-size:7px}.friend-house .friend-name{font-size:7px}.friend-house .friend-avatar{font-size:13px}.friend-house .friend-avatar small{font-size:5px}.friends-houses{gap:5px}.friends-road{height:29px;flex-basis:29px}.friends-road input{height:29px}}
@media(max-width:360px){.friend-house{flex-basis:44px;width:44px}.friend-house .friend-name{font-size:6px}.friend-house .friend-level{font-size:6px}.friend-house .friend-avatar{font-size:12px}}
/* Tablet retains its previously requested enlarged map. Only desktop compacts. */
@media(min-width:1100px) and (min-height:501px){.app{--neighborhood:142px}.bottom-hud.neighborhood{grid-template-columns:152px minmax(0,1fr) 84px;gap:12px;padding:2px 12px 9px}.neighborhood .mini-house.illustrated-house{width:144px!important;bottom:17px!important}.room-pet-count{top:0;right:0;font-size:9px}.room-pet-count b{font-size:12px}.own-house-caption{bottom:2px;font-size:8px}.friend-house{flex-basis:64px;width:64px}.friend-house .friend-level,.friend-house .friend-name{font-size:8px}.friend-house .friend-avatar{font-size:17px}.friend-house .friend-avatar small{font-size:6px}.friends-houses{gap:8px}.friends-road{height:28px;flex-basis:28px}.friends-road input{height:28px}.shop-building{width:76px;margin-bottom:17px}.shop-building strong{font-size:10px}}
@media(orientation:landscape) and (max-height:500px){.friend-house{flex-basis:42px;width:42px}.friend-house .friend-avatar{font-size:11px}.friend-house .friend-avatar small{font-size:5px}.friend-house .friend-level,.friend-house .friend-name{font-size:6px}.app{--neighborhood:110px}}

/* Compact, balanced status row. Currency shapes are provisional code UI, not approved raster artwork. */
.app>header.sketch-status{grid-template-columns:minmax(70px,1fr) 142px minmax(105px,1fr);gap:7px;padding:4px 7px;align-items:start}
.balance-cluster{display:flex;flex-direction:column;align-items:center;min-width:0;gap:2px;height:100%;justify-content:flex-start}
.balances{display:flex;gap:5px;justify-content:center;width:100%}
.balance-cluster .currency-box{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;justify-content:center;min-height:45px;min-width:0;width:50%;padding:2px 3px;gap:0 2px}
.currency-art{display:block;width:22px;height:24px;grid-column:1;grid-row:1}
.balance-cluster .currency-box strong{font-size:17px;grid-column:2;grid-row:1;line-height:1.2;text-align:center}
.balance-cluster .currency-box small{grid-column:1/-1;grid-row:2;font-size:7px;padding:1px 0}
.room-counts{display:flex;justify-content:center;align-items:center;gap:12px;font-size:9px;line-height:14px;color:#f1ddba}
.room-counts>span{display:flex;align-items:center;gap:3px}.room-counts img{width:14px;height:14px;object-fit:contain}.room-counts b{font-weight:600}
.top-visit-label{font-size:8px;line-height:10px;text-align:center;color:#fff0d4;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pet-needs{width:100%;max-width:170px;justify-self:end;gap:3px;padding-top:3px}.pet-needs>div{grid-template-columns:36px minmax(10px,70px) 8px;gap:3px;justify-content:end}.pet-needs>div>span{font-size:8px}.pet-needs>div>i{width:100%;max-width:70px}.needs-note{font-size:7px;text-align:right}.xp-cluster{padding-top:5px}.xp-info .xp-track{width:70px;max-width:100%}
.visit-banner{left:auto;right:6px;width:auto;max-width:160px}.visit-readonly{font-size:8px}
#tool-select[hidden]{display:none!important}
@media(max-width:360px){.app>header.sketch-status{grid-template-columns:60px 125px minmax(92px,1fr);gap:4px;padding:4px}.balance-cluster .currency-box strong{font-size:15px}.balance-cluster .currency-box{grid-template-columns:19px minmax(0,1fr);padding:2px}.currency-art{width:19px}.balance-cluster .currency-box small{font-size:6px}.pet-needs>div{grid-template-columns:31px minmax(10px,52px) 6px;gap:2px}.pet-needs>div>i{max-width:52px}.pet-needs>div>span{font-size:7px}.xp-info .xp-track{width:52px}}
@media(min-width:650px){.app>header.sketch-status{grid-template-columns:1fr 180px 1fr;gap:20px;padding:4px max(16px,calc((100vw - 760px)/2));align-items:start}.balance-cluster .currency-box strong{font-size:20px}.balance-cluster .currency-box{min-height:47px;grid-template-columns:26px minmax(0,1fr)}.currency-art{width:26px;height:27px}.room-counts{font-size:10px}.pet-needs{max-width:180px}.pet-needs>div{grid-template-columns:42px minmax(20px,110px) 9px}.pet-needs>div>i{max-width:110px}.pet-needs>div>span{font-size:10px}.needs-note{font-size:9px}.xp-info .xp-track{width:110px}.top-visit-label{font-size:9px}}
@media(orientation:landscape) and (max-height:500px){.app>header.sketch-status{grid-template-columns:1fr 180px 1fr;gap:16px;padding:2px 12px}.balance-cluster{gap:0}.balance-cluster .currency-box{min-height:34px}.currency-art{height:20px;width:20px}.balance-cluster .currency-box strong{font-size:15px}.balance-cluster .currency-box small{display:none}.room-counts{line-height:10px;font-size:8px}.top-visit-label{font-size:7px;line-height:8px}.pet-needs{padding-top:0}.pet-needs>div{grid-template-columns:40px minmax(20px,110px) 8px}}

/* Direct map targets are also exposed through a full-height native selector on small screens. No enlarged house popup. */
.room-switch{position:relative;flex:0 0 84px;min-width:84px;height:44px;display:flex;align-items:center}.room-switch h1.sr-only{position:absolute!important;width:1px!important;min-width:0!important;height:1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.room-switch select{display:block;width:84px;height:44px;min-height:44px;padding:0 16px 0 2px;background:transparent;border:0;box-shadow:none;color:#543b2a;font:700 13px system-ui;cursor:pointer;border-radius:0;appearance:auto}.room-switch select:focus-visible{outline:2px solid #77b9d6;outline-offset:-2px}
@media(min-width:650px){.room-switch,.room-switch select{width:105px;min-width:105px;flex-basis:105px;font-size:16px}}

/* Final requested Inventory position: immediately before Gifts, never beside Shop/friend lane. */
.social-tools #open-inventory{flex:0 0 48px;min-width:48px;width:48px}.social-tools #open-inventory>span:last-child{font-size:8px}.count-paw{width:14px;height:14px;flex-shrink:0}
/* Shop and its purchase step open at the viewport centre; close and native scrolling remain reachable. */
.drawer[data-panel=shop],.drawer[data-panel=purchase]{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(620px,calc(100% - 16px));max-width:620px;max-height:calc(100% - 20px);margin:0;z-index:300100}
.drawer[data-panel=shop] .shop-catalog-scroll{max-height:calc(100svh - 138px);overflow:auto;overscroll-behavior:contain}
@media(orientation:landscape) and (max-height:500px){.drawer[data-panel=shop],.drawer[data-panel=purchase]{max-height:calc(100% - 12px);width:min(620px,calc(100% - 24px))}.drawer[data-panel=shop] .shop-catalog-scroll{max-height:calc(100svh - 116px)}}
@media(min-width:1100px) and (min-height:501px){.bottom-hud.neighborhood{padding-left:18px;padding-right:18px}.own-house-slot{padding-left:2px}.shop-building{margin-right:2px}}

/* Latest owner direction: one centered action group; cute Home opens the existing large map. */
.room-counts .plant-count[hidden]{display:none!important}
.care-toolbar{justify-content:center;gap:0}.primary-tools{flex:0 1 auto;min-width:0;gap:0}.social-tools{flex:0 0 auto;margin-left:0!important;padding-left:0!important;border:0!important;gap:0}.action-tool{flex:0 0 44px;min-width:44px;width:44px}.social-tools #open-inventory{flex-basis:48px;min-width:48px;width:48px}
.own-house-slot{display:flex;align-items:flex-end;justify-content:center;padding:0!important}.own-house-building{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:0 0 84px;width:84px;min-width:44px;min-height:44px;height:112px;margin-bottom:10px;padding:0;border:0;background:none;box-shadow:none;color:#f0d7ad}.own-house-building img{width:84px;height:98px;object-fit:contain;pointer-events:none}.own-house-building span{height:12px;font-size:8px;line-height:12px}.own-house-building:focus-visible{outline:2px solid #77b9d6}
.friends-neighborhood{width:100%;max-width:148px;justify-self:center}.friend-house{flex-basis:64px;width:64px}.friend-house .friend-avatar{font-size:17px}.friend-house .friend-level,.friend-house .friend-name{font-size:8px}.friends-houses{gap:12px;padding:0 4px}.friends-road{margin-left:4px;margin-right:4px}
.large-house{position:absolute;left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(460px,calc(100% - 18px));max-width:460px;max-height:calc(100% - 18px);overflow:auto;z-index:300150}.large-house #large-house-map{width:100%}.large-house .area-control{pointer-events:auto}
#sfx-toggle svg{width:24px;height:24px}#music-toggle,#sfx-toggle{color:#62422a}#music-toggle[aria-pressed=true],#sfx-toggle[aria-pressed=true]{color:#587148}
@media(max-width:360px){.bottom-hud.neighborhood{grid-template-columns:84px minmax(0,1fr) 60px}.own-house-building{width:78px;flex-basis:78px;height:104px}.own-house-building img{width:78px;height:91px}.friends-neighborhood{max-width:140px}.friend-house{flex-basis:60px;width:60px}.friend-house .friend-avatar{font-size:16px}.friend-house .friend-name,.friend-house .friend-level{font-size:7px}.friends-houses{gap:10px}.primary-tools{overflow-x:auto}.social-tools #open-inventory{min-width:45px;width:45px;flex-basis:45px}}
@media(min-width:650px) and (min-height:501px){.app{--neighborhood:156px}.bottom-hud.neighborhood{grid-template-columns:116px minmax(0,1fr) 100px}.own-house-building{width:96px;flex-basis:96px;height:126px;margin-bottom:8px}.own-house-building img{width:96px;height:112px}.friend-house{flex-basis:64px;width:64px}.friends-neighborhood{max-width:388px}.friends-houses{gap:15px}.action-tool{flex-basis:48px;min-width:48px;width:48px}.social-tools #open-inventory{flex-basis:54px;min-width:54px;width:54px}}
@media(min-width:1100px) and (min-height:501px){.app{--neighborhood:142px}.bottom-hud.neighborhood{grid-template-columns:116px minmax(0,1fr) 100px;padding-left:18px;padding-right:18px}.own-house-building{height:124px;margin-bottom:4px}.shop-building{width:84px;margin-bottom:14px}.friends-neighborhood{max-width:388px}.friends-houses{gap:15px}}
@media(orientation:landscape) and (max-height:500px){.own-house-building{width:64px;height:86px;flex-basis:64px;margin-bottom:4px}.own-house-building img{width:64px;height:74px}.friends-neighborhood{max-width:300px}.friend-house{width:42px;flex-basis:42px}.friends-houses{gap:15px}.friend-house .friend-avatar{font-size:11px}.friend-house .friend-name,.friend-house .friend-level{font-size:6px}}

/* Owner-requested equal artwork height: aspect ratios remain intact, hit targets stay generous. */
.bottom-hud.neighborhood{--building-height:90px;grid-template-columns:90px minmax(0,1fr) 84px}
.own-house-building{width:80px;flex-basis:80px;height:104px;margin-bottom:10px}.own-house-building img{width:calc(var(--building-height) * 6 / 7);height:var(--building-height);object-fit:contain}.shop-building{width:calc(var(--building-height) * 6 / 7);height:var(--building-height);aspect-ratio:6/7;margin-bottom:22px}.shop-building img{object-fit:contain}
.friend-house{height:var(--building-height)!important;aspect-ratio:5/7;flex-basis:calc(var(--building-height) * 5 / 7);width:calc(var(--building-height) * 5 / 7)}
.friends-neighborhood{max-width:149px}.friends-houses{gap:12px}
.pet-needs{padding-top:9px}.pet-needs>div:nth-of-type(1)>i{background:#a9c87a;border-color:#e2edbd}.pet-needs>div:nth-of-type(2)>i{background:#dfb46e;border-color:#f0d3a3}.pet-needs>div:nth-of-type(3)>i{background:#8fbfca;border-color:#c9e3e5}.pet-needs>div>b{visibility:hidden}
@media(max-width:360px){.bottom-hud.neighborhood{--building-height:84px;grid-template-columns:80px minmax(0,1fr) 76px}.own-house-building{width:76px;flex-basis:76px;height:98px}.friends-neighborhood{max-width:140px}.friends-houses{gap:10px}}
@media(min-width:650px) and (min-height:501px){.bottom-hud.neighborhood{--building-height:90px;grid-template-columns:100px minmax(0,1fr) 100px}.own-house-building{width:84px;flex-basis:84px;height:104px;margin-bottom:14px}.shop-building{margin-bottom:26px}.friends-neighborhood{max-width:390px}.friends-houses{gap:15px}}
@media(min-width:1100px) and (min-height:501px){.own-house-building{margin-bottom:8px}.shop-building{margin-bottom:20px}}
@media(orientation:landscape) and (max-height:500px){.bottom-hud.neighborhood{--building-height:59px;grid-template-columns:70px minmax(0,1fr) 70px}.own-house-building{height:74px;width:64px;flex-basis:64px;margin-bottom:5px}.shop-building{margin-bottom:17px}.friends-neighborhood{max-width:300px}.pet-needs{padding-top:0}}

/* Icon-only actions by request. Labels remain available through Settings/touch/focus help. */
.action-tool{position:relative;justify-content:center!important}.action-tool>span:last-child{display:none!important}.action-tool .tool-art{height:34px;width:34px;display:block;font-size:30px}.action-tool .tool-art img{width:100%;height:100%;object-fit:contain}.show-action-labels .action-tool>span:last-child{display:flex!important}.show-action-labels .action-tool .tool-art{height:27px;width:27px}.show-action-labels .action-tool{justify-content:flex-start!important}
.food-cans-badge{position:absolute;top:1px;right:3px;min-width:13px;line-height:13px;text-align:center;font:700 8px/13px system-ui;color:#5c4228;background:#f3dfb5;border:1px solid #9e7a4c;border-radius:4px;pointer-events:none}
.action-help{position:absolute;left:50%;bottom:calc(var(--bottombar) + 8px);transform:translateX(-50%);max-width:min(330px,calc(100% - 16px));padding:6px 9px;border:1px solid #a8875e;border-radius:6px;background:#fff2d7;color:#593b25;font:11px/1.3 system-ui;z-index:400000;pointer-events:none;text-align:center}
/* Exact viewport-centred balances, independent of unequal labels on either side. */
.app>header.sketch-status{grid-template-columns:minmax(0,1fr) 142px minmax(0,1fr);position:relative}.balance-cluster{position:absolute;left:50%;top:4px;transform:translateX(-50%);width:142px;height:calc(100% - 8px)}.xp-cluster{grid-column:1;min-width:0;justify-self:start}.pet-needs{grid-column:3;min-width:0;max-width:110px;justify-self:end}.pet-needs>div{grid-template-columns:35px minmax(10px,60px) 6px;gap:2px}.pet-needs>div>i{max-width:60px}
.pet-needs>div:nth-of-type(1)>i{background:#82b8db;border-color:#c3dfef}.pet-needs>div:nth-of-type(2)>i{background:#8fbe73;border-color:#c9dfa8}.pet-needs>div:nth-of-type(3)>i{background:#cf8375;border-color:#edb9a8}
@media(max-width:360px){.app>header.sketch-status{grid-template-columns:minmax(0,1fr) 125px minmax(0,1fr);gap:4px}.balance-cluster{width:125px}.pet-needs{max-width:89px}.pet-needs>div{grid-template-columns:31px minmax(8px,45px) 5px;gap:2px}.pet-needs>div>i{max-width:45px}.xp-info .xp-track{width:45px}}
@media(min-width:650px){.app>header.sketch-status{grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr)}.balance-cluster{width:180px}.pet-needs{max-width:180px}.pet-needs>div{grid-template-columns:42px minmax(20px,110px) 9px;gap:3px}.pet-needs>div>i{max-width:110px}}

/* Screen-reader explanations never take space in the compact HUD. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.room-camera{position:absolute;top:5px;right:5px;width:44px;height:44px;min-width:44px;min-height:44px;border:0;padding:7px;background:none;box-shadow:none;z-index:2000;cursor:pointer}.room-camera svg{width:30px;height:28px}.room-camera:focus-visible{outline:2px solid #75aabd;border-radius:6px}.room-camera[aria-busy=true]{opacity:.5;cursor:progress}.visit-banner{right:54px}

.room-picture{position:absolute;z-index:450000;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100% - 24px));max-height:calc(100% - 24px);padding:12px;overflow:auto;box-sizing:border-box;background:#f4e2c0;color:#583b27;border:2px solid #927049;border-radius:9px;box-shadow:0 8px 24px #28180f77}.room-picture-heading{display:flex;align-items:center;justify-content:space-between}.room-picture-heading button{min-height:44px;min-width:44px;font-size:26px;background:none;border:0;color:#583b27}.room-picture img{display:block;width:100%;height:auto;max-height:55svh;object-fit:contain;background:#d9cfc0}.room-picture a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:10px;padding:0 18px;border-radius:6px;background:#6e5035;color:#fff1d3;text-decoration:none;font-weight:700}.room-picture p{font-size:11px;margin:7px 0 0}

/* One uninterrupted action strip. Narrow screens scroll the whole group, not a clipped middle icon. */
.care-toolbar{justify-content:safe center;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#9c774d #392616;overscroll-behavior-x:contain;padding-left:3px;padding-right:3px}.care-toolbar .primary-tools,.care-toolbar .social-tools{display:contents}.care-toolbar::-webkit-scrollbar{height:3px}.care-toolbar::-webkit-scrollbar-track{background:#392616}.care-toolbar::-webkit-scrollbar-thumb{background:#9c774d;border-radius:3px}

/* Reserve the full house roof height; trim road padding rather than clip artwork. */
@media (min-height:501px){.friends-road{height:23px;flex-basis:23px}.friends-road input{height:23px}.friends-road::before{top:9px}.friends-road::after{top:15px}}

/* Draft10 requested header: level at left; wide coin/cash boxes and horizontal needs at right. */
.app{--statusbar:104px}.app>header.header-v10{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;padding:7px 7px 5px;align-items:center;position:relative}.header-v10 .xp-cluster{display:flex;flex-direction:column;gap:3px;justify-self:stretch;align-items:center;padding:0}.level-badge{width:43px;height:43px;border:2px solid #d6b47c;border-radius:50%;background:#76532e;box-shadow:inset 0 0 0 3px #957044;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff0ce}.level-badge span{font-size:9px;line-height:11px;font-weight:800;letter-spacing:.06em}.level-badge strong{font-size:18px;line-height:17px}.header-v10 .xp-info{width:100%}.header-v10 .xp-info b{font-size:9px;margin:0 0 2px;line-height:10px}.header-v10 .xp-track{width:100%;max-width:none;height:8px;margin:0}.header-wallet{display:grid;grid-template-rows:auto auto auto auto;gap:4px;min-width:0;align-self:center}.header-v10 .balances{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:6px;min-width:0}.header-v10 .currency-box{display:grid;grid-template-columns:20px minmax(0,1fr) 22px;align-items:center;gap:3px;min-height:35px;padding:2px 4px;border:1px solid #b68e5e;border-radius:5px;background:#342113}.header-v10 .currency-art{width:20px;height:24px}.header-v10 .currency-box strong{display:block;min-width:0;max-width:100%;font-size:16px;line-height:1.25;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.15px;overflow:visible}.currency-plus{width:22px;min-width:22px;height:28px;min-height:28px;padding:0;border:0;border-left:1px solid #a17a4e;border-radius:0;background:transparent;box-shadow:none;color:#dabd89;font:700 20px/1 system-ui;opacity:.7;cursor:default}.header-v10 .pet-needs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%;max-width:none;justify-self:stretch;grid-column:auto;padding:0}.header-v10 .pet-needs>div{display:flex;flex-direction:column;gap:2px;align-items:stretch;min-width:0}.header-v10 .pet-needs>div>span{font-size:8px;line-height:10px;text-align:left}.header-v10 .pet-needs>div>i{width:100%;max-width:none;height:7px;border-radius:4px}.header-v10 .pet-needs .need-hunger i{background:#8fbe73;border-color:#c9dfa8}.header-v10 .pet-needs .need-clean i{background:#cf8375;border-color:#edb9a8}.header-v10 .pet-needs .need-happy i{background:#82b8db;border-color:#c3dfef}.header-v10 .room-counts{font-size:9px;line-height:11px;gap:3px}.header-v10 .top-visit-label{font-size:8px;line-height:10px}.header-v10 .top-visit-label:empty{display:none}
@media(max-width:600px){.app{--statusbar:116px}.app>header.header-v10{grid-template-columns:58px minmax(0,1fr);gap:7px;padding:5px}.header-v10 .balances{grid-template-columns:1fr;gap:3px}.header-v10 .currency-box{min-height:27px;height:27px;grid-template-columns:19px minmax(0,1fr) 25px;padding:1px 4px}.header-v10 .currency-box strong{font-size:16px}.header-v10 .currency-box:nth-child(2){width:86%;justify-self:end}.currency-plus{height:24px;min-height:24px}.header-v10 .currency-art{height:21px;width:19px}.header-v10 .pet-needs>div>span{font-size:7px}.header-v10 .pet-needs{gap:5px}.header-wallet{gap:3px}.header-v10 .room-counts{line-height:10px}}
@media(min-width:650px){.app{--statusbar:100px}.app>header.header-v10{grid-template-columns:minmax(180px,.55fr) minmax(420px,1fr);gap:30px;padding:7px clamp(16px,5vw,96px)}.header-v10 .xp-cluster{flex-direction:row;gap:12px;max-width:300px;justify-self:start;width:100%}.level-badge{width:60px;height:60px;flex:0 0 60px}.level-badge span{font-size:12px;line-height:15px}.level-badge strong{font-size:24px;line-height:25px}.header-v10 .xp-info b{font-size:12px;line-height:14px;margin-bottom:4px}.header-v10 .xp-track{height:11px}.header-wallet{max-width:760px;width:100%;justify-self:end;gap:4px}.header-v10 .currency-box{min-height:39px;grid-template-columns:27px minmax(0,1fr) 32px;padding:2px 7px;gap:6px}.header-v10 .currency-art{width:27px;height:30px}.header-v10 .currency-box strong{font-size:22px}.header-v10 .currency-plus{width:32px;min-width:32px;height:31px;min-height:31px;font-size:24px}.header-v10 .pet-needs>div{flex-direction:row;align-items:center;gap:6px}.header-v10 .pet-needs>div>span{font-size:10px;line-height:12px;flex:0 0 auto}.header-v10 .pet-needs>div>i{height:8px;flex:1;min-width:12px}.header-v10 .room-counts{line-height:12px;font-size:10px}}
@media(orientation:landscape) and (max-height:500px){.app{--statusbar:76px}.app>header.header-v10{grid-template-columns:minmax(135px,.45fr) minmax(340px,1fr);gap:18px;padding:3px 14px}.level-badge{width:43px;height:43px;flex-basis:43px}.level-badge span{font-size:9px;line-height:11px}.level-badge strong{font-size:17px;line-height:18px}.header-v10 .currency-box{min-height:28px;height:28px;grid-template-columns:21px minmax(0,1fr) 25px;padding:1px 5px}.header-v10 .currency-box strong{font-size:18px}.header-v10 .currency-art{width:20px;height:22px}.header-v10 .currency-plus{width:25px;min-width:25px;height:24px;min-height:24px;font-size:20px}.header-v10 .pet-needs>div>span{font-size:8px}.header-v10 .pet-needs>div>i{height:6px}.header-wallet{gap:2px}.header-v10 .room-counts{line-height:9px;font-size:8px}.header-v10 .top-visit-label{font-size:7px;line-height:9px}}

/* Per-room occupancy is honest until pet entities and capacity are configured. */
.large-house .area-control{flex-direction:column;gap:2px}.large-house .room-occupancy{display:block;font-size:11px;line-height:1.1;font-weight:700;padding:2px 5px;border-radius:5px;background:#fff4d4e6;color:#5c422e}.large-house .area-control>span{line-height:1.1}

/* Draft11: coins and cash remain adjacent on every phone width. */
@media(max-width:600px){.app{--statusbar:104px}.header-v10 .balances{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:4px;align-items:stretch}.header-v10 .currency-box,.header-v10 .currency-box:nth-child(2){width:100%;height:auto;min-height:35px;grid-template-columns:15px minmax(0,1fr) 15px;gap:2px;padding:2px 3px;justify-self:stretch}.header-v10 .currency-art{width:15px;height:19px}.header-v10 .currency-plus{width:15px;min-width:15px;height:28px;min-height:28px;font-size:18px}.header-v10 .currency-box strong{font-size:14px;line-height:1.15;letter-spacing:-.2px}.header-v10 .balances .currency-box{overflow:visible}.header-v10 .pet-needs{gap:4px}}

/* More nearly square tablet room: trim HUD padding, never crop the room or stretch art. */
@media(min-width:650px) and (min-height:501px){.app{--statusbar:88px;--neighborhood:136px}.bottom-hud.neighborhood .own-house-building{margin-bottom:8px}.bottom-hud.neighborhood .shop-building{margin-bottom:20px}}

/* Owner annotated desktop correction: one compact centered neighborhood group.
   Keep the full-width background, but do not push Home/Shop to remote edges. */
@media(min-width:650px) and (min-height:501px){
 .bottom-hud.neighborhood{grid-template-columns:84px minmax(0,390px) 84px;justify-content:center;column-gap:12px}
 .bottom-hud.neighborhood .shop-building{justify-self:center;margin-right:0}
}
@media(orientation:landscape) and (max-height:500px){
 .bottom-hud.neighborhood{grid-template-columns:70px minmax(0,300px) 70px;justify-content:center;column-gap:8px}
 .bottom-hud.neighborhood .shop-building{justify-self:center;margin-right:0}
}
/* Visiting provenance must remain legible after removing its duplicate overlay. */
@media(min-width:650px) and (min-height:501px){.app.demo-visit{--statusbar:102px}}

.device-save-settings{border:1px solid #aa855a;border-radius:8px;padding:10px;margin-bottom:12px;background:#ead5af}.device-save-settings>button{display:block;width:100%;min-height:44px;padding:8px;margin:5px 0;background:#765332;color:#fff2d6;border:1px solid #5e4129;border-radius:6px;font-weight:650}.device-save-settings>button[hidden]{display:none}.device-save-settings>p{font-size:12px;line-height:1.4}.save-warning{position:absolute;left:6px;top:5px;z-index:210002;max-width:calc(100% - 160px);padding:7px 9px;min-height:38px;background:#fff1ca;color:#633c23;border:1px solid #a17746;border-radius:6px;font-size:11px}.save-warning[hidden]{display:none}.refresh-dialog{max-width:min(420px,calc(100% - 24px));padding:16px;border:2px solid #8c6843;border-radius:10px;background:#f6e5c7;color:#54371f}.refresh-dialog::backdrop{background:#21150988}.refresh-dialog h2{font-size:19px;margin:0 0 10px}.refresh-dialog p{font-size:13px;line-height:1.5}.refresh-dialog>div{display:flex;flex-wrap:wrap;gap:8px}.refresh-dialog button{flex:1;min-height:44px;padding:8px;background:#755336;color:#fff2d6;border:1px solid #573c28;border-radius:6px}

.pet-shop-tab{min-height:44px;padding:6px 12px;background:none;border:0;border-radius:6px;font-weight:700}.pet-shop-tab[aria-pressed=true]{background:#dcc69e}.pet-shop-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pet-shop-card{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:8px}.pet-shop-card img{width:120px;max-width:100%;height:120px;object-fit:contain}.pet-shop-card strong{font-size:13px}.pet-shop-card button{min-height:44px;padding:7px 10px;background:#765332;color:#fff2d6;border:0;border-radius:6px;font-size:12px}.adoption-preview{display:flex;justify-content:center;gap:20px;height:130px}.adoption-preview img{max-width:42%;height:100%;object-fit:contain}.adoption-field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:650;margin:10px 0}.adoption-field select,.adoption-field input{min-height:44px;padding:8px;border:1px solid #aa875e;border-radius:6px;background:#fff7e5;color:#543922;font:14px system-ui}.pet-instance{position:absolute;display:block;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:none;overflow:visible;touch-action:manipulation}.pet-instance[hidden]{display:none}.pet-instance .pet-art{position:absolute;display:block;max-width:none;pointer-events:none;object-fit:contain;filter:drop-shadow(0 1px 1px #604c3b22)}.pet-label{position:absolute;left:22px;top:46px;transform:translateX(-50%);white-space:nowrap;padding:2px 5px;border-radius:5px;background:#fff2d9dc;color:#5b3b25;font:10px/1.2 system-ui;pointer-events:none}.basket-opening .pet-art{animation:single-basket-glow .6s ease-in-out 1}@keyframes single-basket-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.2) drop-shadow(0 0 5px #fff0c8)}}.reduced-motion .basket-opening .pet-art{animation:none}@media(prefers-reduced-motion:reduce){.basket-opening .pet-art{animation:none}}

/* Exact approved basket: only upper blanket pixels animate; rigid wicker and hem stay fixed. */
.pet-blanket[hidden]{display:none!important}.is-basket .pet-art{filter:none}.pet-blanket{filter:none!important}.basket-opening .pet-art{animation:none}.basket-opening{animation:single-basket-glow .6s ease-in-out 1}.reduced-motion .basket-opening{animation:none}.food-choice{display:flex;align-items:center;gap:12px;padding:12px 0;flex-wrap:wrap}.food-choice img{width:64px;height:64px;object-fit:contain}.food-choice p{font-size:12px}.food-choice button{min-height:44px;padding:8px 12px;background:#765332;color:#fff2d6;border:0;border-radius:6px}@media(prefers-reduced-motion:reduce){.basket-opening{animation:none}}
/* Fixed Home/Shop ends are separate from a clipped, softly landscaped friend street. */
.friends-neighborhood{background:linear-gradient(#dfecee 0%,#eaf0e2 72%,#aabd8e 72%,#98aa77 100%);border:1px solid #967951;border-radius:9px;isolation:isolate}.friends-scroll{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M8 11 5 6M8 11 9 4M8 11 12 7M32 12 29 8M32 12 33 6M32 12 36 9' fill='none' stroke='%23839b60' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-size:44px 12px;background-repeat:repeat-x;background-position:center bottom;mask-image:linear-gradient(to right,transparent 0,#000 5px,#000 calc(100% - 5px),transparent 100%)}.friends-road{margin-top:1px}.own-house-slot{border-right:1px solid #9b795244}.shop-building{border-left:1px solid #9b795244}.friends-houses{box-sizing:border-box}.friend-house:focus-visible{outline-offset:-2px}
.drawer[data-panel=adoption],.drawer[data-panel=food]{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(620px,calc(100% - 16px));max-width:620px;max-height:calc(100% - 20px);margin:0;z-index:300100;overflow:auto}.friends-neighborhood{box-sizing:border-box}.friends-houses{padding-left:3px;padding-right:3px}

/* Draft 12: explicit, touch-accessible choice and state-preserving actor pickup. */
.adoption-sex-choice{border:0;padding:0;margin:12px 0;color:inherit}.adoption-sex-choice legend{font-size:14px;font-weight:700;margin-bottom:6px}.adoption-sex-choice>div{display:flex;gap:12px}.adoption-sex-choice button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;min-width:108px;border:2px solid #9c805c;border-radius:8px;background:#f3e7ce;color:#543922;font:600 15px system-ui}.adoption-sex-choice button>span{font:700 28px system-ui}.adoption-sex-choice button[aria-pressed=true]{border-color:#6b492e;background:#dcc29a;box-shadow:inset 0 0 0 1px #6b492e}.adoption-sex-choice button:focus-visible{outline:3px solid #5799b7;outline-offset:3px}.adoption-blanket-note{font-size:13px;line-height:1.4}.pet-instance{touch-action:none}.pet-hit-target{position:absolute;display:block;background:transparent;touch-action:none}.pet-instance.can-move,.pet-instance.can-move .pet-hit-target{cursor:grab}.pet-instance.dragging,.pet-instance.dragging .pet-hit-target{cursor:grabbing}.pet-instance.dragging .pet-label{background:#e2c28e;box-shadow:0 0 0 2px #765332}

/* Readable panels: scene calibration is separate from interface typography. */
.panel-note,.adoption-blanket-note{font-size:14px;line-height:1.45}.adoption-field{font-size:14px}.pet-shop-card strong,.pet-shop-card button{font-size:14px}
@media(min-width:650px) and (min-height:501px){.drawer,.drawer[data-panel=shop],.drawer[data-panel=adoption],.drawer[data-panel=food],.drawer[data-panel=purchase]{width:min(720px,calc(100% - 32px));max-width:720px;padding:16px 20px}.drawer h2{font-size:22px}.drawer .panel-note,.drawer p,.drawer label{font-size:15px}.drawer button{min-height:44px}.pet-shop-card img{width:160px;height:160px}.pet-shop-card strong,.pet-shop-card button{font-size:16px}.adoption-preview{height:170px}.adoption-field input{font-size:16px}.shop-card strong,.shop-price{font-size:14px}.shop-card .shop-preview{width:72px;height:82px;object-fit:contain}}

/* Prominent return control in the room, not hidden at a distant viewport corner. */
.visit-banner{left:50%;right:auto;top:9px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);display:flex;flex-wrap:wrap;justify-content:center;padding:5px 9px;gap:6px;box-shadow:0 3px 12px #22160e44}.visit-banner #return-home{font-size:14px;font-weight:800;min-width:130px;min-height:44px;background:#f2d49e;color:#402b1b}.visit-banner #reset-sample{min-height:44px;font-size:12px}.visit-banner #sample-instructions{flex-basis:100%;text-align:center;font-size:11px;line-height:1.3;max-width:330px}.demo-visit .object:enabled{cursor:grab}
.visit-banner{width:min(360px,calc(100% - 20px));box-sizing:border-box;flex-direction:column;align-items:center}.visit-banner #return-home{align-self:center}.visit-banner #reset-sample{position:absolute;right:6px;top:6px;min-width:44px;width:44px;padding:3px;font-size:9px;line-height:1.15}.visit-banner #sample-instructions{flex-basis:auto}
