/* A single room selector preserves the existing scene footprint. */
.house-room-rail{position:absolute;right:4px;top:50%;transform:translateY(-50%);z-index:9;display:flex;flex-direction:column;gap:5px;width:60px}
#app-screen .house-room-rail button{min-height:58px;width:60px;border:1px solid var(--border-default);border-radius:16px;background:color-mix(in srgb, var(--card-background) 90.98%, transparent);color:var(--text-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 3px;font-size:10px;line-height:1.2;font-weight:500}
#app-screen .house-room-rail button[aria-pressed="true"]{border-color:var(--accent);background:var(--selected-background);color:var(--accent-pressed);box-shadow:0 2px 9px color-mix(in srgb, var(--shadow-color) 6.27%, transparent)}
#app-screen .house-room-rail button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.house-scene>.room-image{position:absolute;left:0;top:0;width:calc(100% - 68px);height:100%}.house-scene.house-preview>.room-image{width:100%}
.house-scene .house-object{z-index:7}
#app-screen .house-object{min-height:44px;min-width:44px;transform:translate(-50%,-50%)}
#app-screen .house-shortcuts{gap:3px;flex-wrap:wrap}
#app-screen .house-shortcuts button{flex:1 0 auto;justify-content:center;min-height:44px;font-size:12px}
.house-decor .eyebrow{color:var(--accent)}
.house-decor-preview{height:220px;margin:0 -14px 14px;border-radius:20px;overflow:hidden;background:var(--surface-muted)}
.house-decor-preview img{object-fit:contain}
.house-scene.evening .room-image,.house-decor-preview.evening .room-image{filter:sepia(.28) saturate(1.02) brightness(.96)}
.house-scene.blue .room-image,.house-decor-preview.blue .room-image{filter:sepia(.18) hue-rotate(166deg) saturate(.72) brightness(.95)}
.house-moods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.house-moods button{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:105px;padding:12px 4px;border:1px solid var(--border-default);border-radius:16px;background:var(--card-background);color:var(--text-primary)}
.house-moods button.selected{border:2px solid var(--accent);padding:11px 3px;background:var(--surface-muted)}
.house-moods strong{font-size:12px;font-weight:500}.house-moods small{font-size:10px;line-height:1.4;color:var(--text-secondary)}
.house-mood-dot{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--lighting-day),var(--lighting-day-shade));border:1px solid var(--border-strong)}
.house-mood-dot.evening{background:linear-gradient(135deg,var(--lighting-evening),var(--lighting-evening-shade))}.house-mood-dot.blue{background:linear-gradient(135deg,var(--lighting-night),var(--lighting-night-shade))}
@media(max-width:360px){.house-room-picker{right:9px}.house-room-picker select{width:125px}.house-decor-preview{height:180px}}
@media(prefers-reduced-motion:reduce){.house-decor-preview .room-image{transition:none}}

.house-object-layer{position:absolute;height:100%;width:auto;aspect-ratio:1;max-width:100%;left:50%;top:0;transform:translateX(-50%);pointer-events:none;z-index:auto}.house-object-layer .house-object{pointer-events:auto}

.house-fridge-print{position:absolute;object-fit:cover;border:2px solid var(--on-accent);border-bottom-width:4px;box-shadow:0 1px 2px color-mix(in srgb, var(--shadow-color) 31.37%, transparent);pointer-events:none;background:var(--card-background)}
.house-static-layer{position:absolute;top:0;left:50%;height:100%;aspect-ratio:1;transform:translateX(-50%);pointer-events:none;z-index:3}.house-static-layer .room-static-pet{left:var(--pet-x);top:var(--pet-y);width:calc(30% * var(--pet-scale,1))}

.house-photo-mount{position:absolute;inset:0;pointer-events:none}.house-wall-photo{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden;pointer-events:none}.house-wall-photo img{width:100%;height:100%;object-fit:cover;display:block}
.house-library-prop{position:absolute;object-fit:contain;pointer-events:none}
.house-frame-hotspot.has-photo{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none}.house-frame-hotspot.has-photo .hotspot-glyph{opacity:0}@media (hover:hover){.house-frame-hotspot.has-photo:hover .hotspot-glyph,.house-frame-hotspot.has-photo:focus-visible .hotspot-glyph{opacity:1}}
.house-static-layer{inset:0;left:0;top:0;width:100%;height:100%;transform:none}
.room-presence-message{flex:1 1 7rem;font-size:.8125rem;line-height:1.3;min-width:0;color:var(--text-secondary);text-align:center}
.house-fridge-print{border-width:1px;border-bottom-width:2px}
#app-screen .room-pet-presence{gap:5px}#app-screen .room-pet-presence button{flex:0 1 auto;font-size:.75rem;padding:7px 9px}
.large-text #app-screen .house-room-rail button{font-size:12px;min-height:62px}

.house-alarm-prop{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--text-primary);background:linear-gradient(135deg,var(--card-background),var(--border-strong));border:1px solid var(--border-strong);border-radius:50%;box-shadow:1px 2px 2px color-mix(in srgb, var(--shadow-color) 18.82%, transparent)}.house-alarm-prop svg{width:95%;height:95%}

@media(max-width:360px){.house-scene[data-room-id="kitchen"] .house-frame-hotspot{margin-top:-8px}}

.shop-balance-copy{display:flex;flex-direction:column;gap:2px;text-align:left;line-height:1.1}.shop-balance-copy strong{font-size:11px;font-weight:500}.shop-balance-copy small{font-size:10px;font-weight:400}.house-garden-mount{position:absolute;pointer-events:none}.house-garden-feedback{position:absolute;z-index:4;pointer-events:none;opacity:0}.house-garden-feedback.is-visible{opacity:1}.garden-water-drop{position:absolute;width:5px;height:8px;background:var(--water);border-radius:60% 40% 65% 35%;animation:gardenWater .9s ease-out both}.garden-water-drop:nth-child(2){left:10px;animation-delay:.12s}.garden-water-drop:nth-child(3){left:20px;animation-delay:.24s}.garden-water-drop:nth-child(4){left:28px;animation-delay:.1s}@keyframes gardenWater{from{transform:translateY(-18px);opacity:0}30%{opacity:1}to{transform:translateY(18px);opacity:0}}.garden-fertilizer-spark{color:var(--wood-light);font-size:18px;animation:gardenSpark 1s ease-out both}@keyframes gardenSpark{from{transform:translateY(8px) scale(.6);opacity:0}35%{opacity:1}to{transform:translateY(-15px) scale(1.15);opacity:0}}@media(prefers-reduced-motion:reduce){.garden-water-drop,.garden-fertilizer-spark{animation:none;opacity:.8}}#phone.reduced-motion .garden-water-drop,#phone.reduced-motion .garden-fertilizer-spark{animation:none;opacity:.8}

/* Positional centering must survive the reduced-motion button press reset. */
#app-screen .house-scene button.house-object:active{transform:translate(-50%,-50%)!important}

/* Project the full photo grid into the authored fridge-door plane. */
.house-fridge-surface{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}.house-fridge-surface .house-fridge-print{box-sizing:border-box;border:0;outline:.5px solid var(--on-accent);outline-offset:0;box-shadow:0 .65px 0 .25px var(--on-accent),0 1px 1.5px color-mix(in srgb, var(--shadow-color) 31.37%, transparent)}

/* Fixed background props sit behind the pet; interaction targets stay above it. */
.house-garden-mount,.house-library-prop,.house-alarm-prop,.house-wall-photo,.house-fridge-print,.house-fridge-surface{z-index:2}

.house-fridge-hotspot.has-photos .hotspot-glyph{opacity:0}@media (hover:hover){.house-fridge-hotspot.has-photos:hover .hotspot-glyph,.house-fridge-hotspot.has-photos:focus-visible .hotspot-glyph{opacity:1}}
.large-text #app-screen .house-room-rail{width:66px}.large-text #app-screen .house-room-rail button{width:66px;font-size:12px!important;overflow-wrap:normal;word-break:keep-all;hyphens:none}.large-text #app-screen .house-room-rail button span{font-size:12px!important;overflow-wrap:normal;word-break:keep-all}
