/* Local camera feature: shared camera actions use the original room toolbar. */
#room .home-affection{max-width:calc(100% - 124px);flex-wrap:wrap;justify-content:flex-end}
#room .home-affection :is(.camera-pat-link,.camera-photo-button){position:static;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #fff;border-radius:22px;background:#fffaf0e8;color:#8e7665;font:12px system-ui;line-height:1.2;white-space:nowrap;text-decoration:none;box-shadow:0 3px 10px #5b4b3620}
#room>.home-center-pet{position:absolute;top:12px;left:64px;z-index:40;min-height:44px;border:1px solid #a0ae9480;border-radius:12px;background:#fffdf3df;color:#405937;cursor:pointer;touch-action:manipulation}
#room>.home-center-pet:focus-visible,#room .home-affection :is(.camera-pat-link,.camera-photo-button):focus-visible{outline:2px solid #9aaa7c;outline-offset:2px}
body.decor-editing #room>.home-center-pet{display:none!important}
#room.room-stage-expanded>.home-center-pet{display:grid!important;left:calc(max(12px,env(safe-area-inset-left)) + 52px);top:max(12px,env(safe-area-inset-top));opacity:0;pointer-events:none;transition:opacity .25s}
#room.room-stage-expanded.room-focus-controls>.home-center-pet,#room.room-stage-expanded>.home-center-pet:focus-visible{opacity:1;pointer-events:auto}
@media(max-width:420px){#room .home-affection :is(.camera-pat-link,.camera-photo-button){font-size:11px;padding-inline:9px}#room .home-affection{gap:5px}}
#home #room>.room-local-context{left:116px;max-width:calc(100% - 310px)}
@media(max-width:600px){#home #room>.room-local-context{left:12px;top:62px;min-height:28px;max-width:calc(100% - 24px)}}
#home #room>.room-local-context{left:116px!important;max-width:calc(100% - 310px)!important}
@media(max-width:600px){#home #room>.room-local-context{left:12px!important;top:62px!important;min-height:28px!important;max-width:calc(100% - 24px)!important}}
#room>.home-center-pet{background:#fffdf3df!important;color:#405937!important}

#room .home-affection #patpet{display:none!important}
#room .home-affection .camera-photo-button{gap:5px}
#room .home-affection .camera-photo-button svg{width:18px;height:18px;flex:none}

/* Desktop navigation must remain reachable at short window heights and browser zoom. */
@media(min-width:851px){
 #game-shell>aside{box-sizing:border-box;max-height:100vh;max-height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin}
 #game-shell>aside>*{flex-shrink:0}
}

/* Four selected-object actions remain readable without covering each other. */
.decor-object-controls>div{flex-wrap:nowrap}
.decor-object-controls button{flex:none}
.decor-object-controls button:disabled{opacity:.4;cursor:default}
.decor-object-controls button:focus-visible{outline:3px solid #a8bc8d;outline-offset:2px}

.pet-designer-coat-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.pet-designer-coat-swatches[hidden]{display:none}
.pet-designer-coat-swatches button{display:flex;align-items:center;gap:6px;min-height:44px;padding:7px 10px;border:1px solid #b9c9ad;border-radius:14px;background:#fffdf5;color:#355039;font:inherit;cursor:pointer}
.pet-designer-coat-swatches button:before{content:"";width:20px;height:20px;flex:none;border-radius:50%;border:1px solid #35503933;background:#252320}
.pet-designer-coat-swatches [data-coat=black]:before{background:linear-gradient(135deg,#252320 60%,#bf853b 60%)}
.pet-designer-coat-swatches [data-coat=cream]:before{background:#f4dfb7}
.pet-designer-coat-swatches [data-coat=gold]:before{background:#dca447}
.pet-designer-coat-swatches [aria-pressed=true]{border-color:#526f46;box-shadow:0 0 0 2px #a7bf86;background:#eef3e6}

/* Present a clean room surface until the current scene has rendered. Keep
   layout intact so Three.js can prepare shaders and measure its canvas. */
#room:not(.scene-ready){background:#fff!important}
#room:not(.scene-ready)::before,#room:not(.scene-ready)::after{display:none!important}
#room:not(.scene-ready)>*{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

/* Remove the redundant page trail; keep its target for existing view updates. */
main>header>.breadcrumb{display:none!important}
main>header{justify-content:flex-end}

/* The scene expresses local weather; omit date/time and weather detail HUDs. */
main>header .breadcrumb{display:none!important}
.room-local-context,.yard-local-context,.map-stage>.local-weather{display:none!important}
