/* The house is the entrance; controls live in the two small drawers. */
.site-header{max-width:none;border:0;padding:16px 28px;gap:20px;min-height:76px;box-sizing:border-box}.brand{font-size:1.15rem;gap:10px}.brand-mark{font-size:2rem}.house-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.house-action{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 15px;border:1px solid #b9956350;border-radius:24px;color:var(--ink);background:#17242e;font:inherit;font-size:.875rem}.house-action svg{width:17px;height:17px;color:var(--gold)}.house-action:hover{background:#24333a;border-color:var(--gold-dark)}.house-action:focus-visible,.house-back:focus-visible{outline:3px solid var(--gold);outline-offset:3px}main{max-width:none}.house-breadcrumb{position:relative;min-height:40px;display:flex;align-items:center;justify-content:center;padding:0 24px}.house-breadcrumb h1{font:normal 1.6rem/1.3 var(--serif);margin:0}.house-back{position:absolute;left:28px;min-height:44px;display:flex;align-items:center;gap:9px;color:var(--gold);font-size:.875rem}.house-intro{text-align:center;padding:0 20px 10px;color:var(--muted);font-size:.875rem}.house-intro p{margin:3px auto;max-width:560px}.house-intro #scene-hint{font-size:.75rem;color:#8d9b9b}.stage{height:calc(100svh - 174px);min-height:320px;max-height:none;background:radial-gradient(ellipse at 50% 55%,#24303550,transparent 72%)}.world:after{box-shadow:inset 0 0 24px 12px #101a2218}body[data-view=house] .site-footer{display:none}body[data-view=house].music-enabled,body[data-view=house].ambience-enabled{padding-bottom:0}#character-layer,#object-layer{pointer-events:none}.character,.hotspot{pointer-events:auto}.hotspot:not(.stereo-object){width:44px;height:44px;border-color:transparent;border-radius:50%;background:transparent;box-shadow:none}.hotspot:not(.stereo-object)>svg{opacity:0;transition:opacity .2s}.hotspot:not(.stereo-object):after{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:#ffe2a8;box-shadow:0 0 7px 2px #ffc46a55;pointer-events:none;transition:opacity .2s}.hotspot:not(.stereo-object):hover,.hotspot:not(.stereo-object):focus-visible,.show-object-hints .hotspot:not(.stereo-object){background:#17242ee8;border-color:#f5dca290;color:#f9d7a5;box-shadow:0 0 17px #ffc96835}.hotspot:not(.stereo-object):hover>svg,.hotspot:not(.stereo-object):focus-visible>svg,.show-object-hints .hotspot:not(.stereo-object)>svg{opacity:1}.hotspot:not(.stereo-object):hover:after,.hotspot:not(.stereo-object):focus-visible:after,.show-object-hints .hotspot:not(.stereo-object):after{opacity:0}.hotspot:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.stage[data-room=overview] .hotspot:not(.overview-object){display:none}.stage[data-room=overview] .hotspot.overview-object{display:grid}.is-quiet-house .house-breadcrumb,.is-quiet-house .house-intro,.is-quiet-house .room-portals{display:none!important}.house-breadcrumb h1:focus{outline:none}.house-breadcrumb h1:focus-visible{outline:2px solid var(--gold);outline-offset:5px}
.atmosphere-dialog{padding:0;border:1px solid #a9855655;border-radius:14px;width:min(510px,calc(100% - 32px));max-width:none;max-height:calc(100svh - 32px);color:var(--ink);background:#17242e;box-shadow:0 20px 90px #0009;overflow:auto}.atmosphere-dialog::backdrop{background:#060d14b8}.atmosphere-frame{padding:28px}.atmosphere-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:26px}.atmosphere-heading h2{font:normal 2rem/1.2 var(--serif);margin:0}.atmosphere-heading button{min-width:44px;min-height:44px;border:1px solid #a9855655;border-radius:50%;background:transparent;color:var(--ink);font-size:1.5rem}.atmosphere-frame h3{font:500 .8125rem/1.4 var(--sans);letter-spacing:.04em;color:var(--gold);margin:0 0 14px}.atmosphere-frame section+section{border-top:1px solid #b9956325;padding-top:22px;margin-top:22px}.atmosphere-frame .season-bar{padding:0;display:grid;gap:14px}.atmosphere-frame .season-control,.atmosphere-frame .weather-control,.atmosphere-frame .house-lighting-control{display:grid;grid-template-columns:1fr minmax(180px,1fr);gap:12px;align-items:center;width:100%}.atmosphere-frame .house-modes{display:grid;gap:16px;width:100%}.atmosphere-frame select{width:100%;max-width:100%;min-height:44px}.atmosphere-frame .quiet-house-toggle{justify-self:start;color:var(--gold)}.atmosphere-frame .ambience-panel p{font-size:.875rem;color:var(--muted)}.atmosphere-frame .ambience-panel label{margin:18px 0;gap:10px;font-size:.875rem}.atmosphere-frame .ambience-panel select{color:var(--ink);background:#101a22;border-color:#6d654f;font:inherit}.atmosphere-frame .action-button{min-height:44px}.atmosphere-frame .action-button.secondary{background:transparent;border-color:#a9855670;color:var(--ink)}.atmosphere-frame .ambient-volume{margin-bottom:0}.atmosphere-stereo{display:flex;align-items:center;gap:12px;padding-top:20px;margin-top:22px;border-top:1px solid #b9956325;color:var(--gold);min-height:44px;font-size:.875rem}.atmosphere-stereo svg{width:18px;height:18px}.atmosphere-stereo span:last-child{margin-left:auto}.atmosphere-frame button:focus-visible,.atmosphere-frame a:focus-visible,.atmosphere-frame input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:800px){.site-header{padding:12px 16px;flex-wrap:nowrap;min-height:68px;gap:10px}.brand{font-size:1rem;flex:none}.brand-mark{font-size:1.8rem}.house-actions{gap:6px}.house-action{font-size:.8125rem;padding:8px 12px;gap:6px}.house-breadcrumb{padding:10px 16px 0;display:flex;flex-direction:column;gap:5px}.house-breadcrumb h1{font-size:1.4rem}.house-back{position:static;align-self:flex-start;font-size:.8125rem}.house-intro{padding:0 20px 8px}.house-intro p{font-size:.8125rem}.stage{height:calc(100svh - 170px);min-height:340px}.stage:not([data-room=overview]){height:auto;aspect-ratio:1;min-height:0;max-height:none}.stage[data-room=bedroom],.stage[data-room=kitchen],.stage[data-room=porch]{aspect-ratio:3/2}.object-tooltip{display:block;white-space:normal;min-width:100px;max-width:190px;text-align:center;font-size:.75rem;line-height:1.4}.atmosphere-frame{padding:22px}.atmosphere-frame .season-control,.atmosphere-frame .weather-control,.atmosphere-frame .house-lighting-control{grid-template-columns:1fr}.atmosphere-frame .house-modes{gap:14px}}
@media(max-width:390px){.site-header{padding:10px 12px;gap:6px}.brand{font-size:.9rem;gap:5px}.brand-mark{font-size:1.5rem}.house-action{padding:8px 10px;font-size:.75rem}.house-action svg{display:none}.house-breadcrumb h1{font-size:1.3rem}.house-intro #room-intro{max-width:270px}.atmosphere-dialog{width:calc(100% - 20px);max-height:calc(100svh - 20px)}.atmosphere-frame{padding:20px}}
.character:before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(44px,100%);height:max(44px,100%);pointer-events:auto}.stage[data-room=overview] #character-aramis-overview:before{left:calc(50% - 8px)}.stage[data-room=overview] #character-furryosa-overview:before{left:calc(50% + 8px)}.atmosphere-frame h3{font-family:inherit;font-size:.8125rem;line-height:1.4;font-weight:500}.explore-sound-stops{display:flex;flex:none;flex-wrap:wrap;gap:8px;padding:12px 22px;border-bottom:1px solid #a28a5f38}.explore-sound-stops button{min-width:44px;min-height:44px;border:1px solid #a28a5f88;border-radius:5px;background:transparent;color:#f1ddb8;padding:8px 12px;font:inherit;font-size:.8125rem}.explore-sound-stops button:hover{background:#d6b98418}.explore-sound-stops button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
body[data-view=house]{height:100svh;display:flex;flex-direction:column;overflow:hidden}body[data-view=house]>main{flex:1;min-height:0;width:100%;margin:0}#house-view{height:100%;display:flex;flex-direction:column}.house-breadcrumb,.house-intro{flex:none}#house-view>.stage{flex:1;min-height:0;height:auto;max-height:none;aspect-ratio:auto}
@media(max-width:800px) and (orientation:portrait){#house-view>.stage:not([data-room=overview]){flex:1;max-height:100vw;aspect-ratio:1}#house-view>.stage[data-room=bedroom],#house-view>.stage[data-room=kitchen],#house-view>.stage[data-room=porch]{max-height:calc(100vw * 2 / 3);aspect-ratio:3/2}}
.is-quiet-house #house-view>.stage{height:100svh;aspect-ratio:auto;flex:none}
@media(prefers-reduced-motion:reduce){.world,.hotspot:not(.stereo-object)>svg,.hotspot:not(.stereo-object):after{transition:none}}
.stage>.house-back{position:absolute;top:14px;left:16px;z-index:12;box-sizing:border-box;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid #edcb91;border-radius:24px;background:#14212af2;color:#ffe8bd;font-size:.875rem;font-weight:600;line-height:1.4;text-decoration:none;box-shadow:0 3px 14px #0008}
.stage>.house-back:hover{background:#2c3b40;border-color:#fff0c9;color:#fff4db;box-shadow:0 0 16px #ffcf7638,0 3px 14px #0008}
.stage>.house-back:focus-visible{outline:3px solid #ffe0a6;outline-offset:3px}
.is-quiet-house .stage>.house-back{display:none!important}
@media(max-width:800px){.stage>.house-back{top:10px;left:12px;padding:9px 13px;font-size:.8125rem}}
.stage>.atmosphere-toggle{position:absolute;top:calc(14px + var(--artwork-top,0px));right:calc(16px + var(--artwork-right,0px));z-index:12;display:grid;place-items:center;width:44px;height:44px;padding:9px;border:1px solid #edcb91;border-radius:50%;background:#14212af2;color:#ffe8bd;box-shadow:0 3px 14px #0008}
.atmosphere-toggle>span{display:flex}.atmosphere-toggle svg{display:block;width:24px;height:24px;pointer-events:none}
.stage>.atmosphere-toggle:hover{background:#2c3b40;border-color:#fff0c9;color:#fff4db;box-shadow:0 0 16px #ffcf7638,0 3px 14px #0008}
.stage>.atmosphere-toggle:focus-visible{outline:3px solid #ffe0a6;outline-offset:3px}
.is-quiet-house .stage>.atmosphere-toggle{display:none!important}
@media(max-width:800px){.stage>.atmosphere-toggle{top:calc(10px + var(--artwork-top,0px));right:calc(12px + var(--artwork-right,0px))}}
.stage[data-room=overview] .hotspot.overview-object:not(.modular-prop){width:44px;height:44px;background:#17242ee8;border-color:#f5dca290;box-shadow:0 0 17px #ffc96835}
.stage[data-room=overview] .hotspot.overview-object>svg{opacity:1;width:20px;height:20px}
.stage[data-room=overview] .hotspot.overview-object:after{display:none}
.character:disabled,.character:disabled:before{pointer-events:none}.character:disabled .object-tooltip{display:none}

.denver-weather{font-size:.75rem;line-height:1.5;color:var(--muted)}.denver-weather p{margin:0}.weather-source{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px}.weather-source a{color:var(--gold);display:inline-flex;align-items:center;min-height:44px}.weather-source button{min-height:44px;border:0;padding:6px 0;background:transparent;color:var(--gold);font:inherit;text-decoration:underline;text-underline-offset:3px}.weather-source button:disabled{opacity:.5;cursor:wait}.weather-control select{color:var(--ink);background:#101a22;border:1px solid #6d654f;border-radius:5px;padding:8px 10px;font:inherit}

.atmosphere-frame .season-control,.atmosphere-frame .weather-control,.atmosphere-frame .house-lighting-control{font-size:.8125rem}.atmosphere-frame .season-control select,.atmosphere-frame .weather-control select,.atmosphere-frame .house-lighting-control select{font-size:.875rem}

.atmosphere-frame select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}

/* The house uses the window from the first paint; its menu floats on the art. */
body[data-view=house]{height:100svh;height:100dvh}
body[data-view=house] .site-header{position:fixed;inset:0 0 auto;height:0;min-height:0;margin:0;padding:0;z-index:14;pointer-events:none}
body[data-view=house] .site-header .brand{display:none}
body[data-view=house] .house-actions{position:fixed;top:calc(var(--menu-top,0px) + max(14px,env(safe-area-inset-top)));right:calc(var(--menu-right,0px) + max(16px,env(safe-area-inset-right)));margin:0;pointer-events:auto}
body[data-view=house] #explore-open{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:9px;border:1px solid #edcb91;border-radius:50%;background:#14212af2;color:#ffe8bd;box-shadow:0 3px 14px #0008}
body[data-view=house] #explore-open>span:first-child{display:flex}
body[data-view=house] #explore-open svg{display:block;width:24px;height:24px;color:inherit}
body[data-view=house] .house-menu-label{display:none}
body[data-view=house] #explore-open:hover{background:#2c3b40;border-color:#fff0c9;color:#fff4db;box-shadow:0 0 16px #ffcf7638,0 3px 14px #0008}
body[data-view=house] #explore-open:focus-visible{outline:3px solid #ffe0a6;outline-offset:3px}
body[data-view=house] .house-breadcrumb,body[data-view=house] .house-intro{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-view=house] #house-view{justify-content:center}
.stage>.atmosphere-toggle{top:calc(var(--artwork-top,0px) + max(14px,env(safe-area-inset-top)));right:calc(var(--artwork-right,0px) + max(16px,env(safe-area-inset-right)) + 54px)}
.stage>.house-back{top:calc(var(--artwork-top,0px) + max(14px,env(safe-area-inset-top)));left:calc(var(--artwork-left,0px) + max(16px,env(safe-area-inset-left)))}
@media(max-width:800px){
  body[data-view=house] .house-actions{top:calc(var(--menu-top,0px) + max(10px,env(safe-area-inset-top)));right:calc(var(--menu-right,0px) + max(12px,env(safe-area-inset-right)))}
  .stage>.atmosphere-toggle{top:calc(var(--artwork-top,0px) + max(10px,env(safe-area-inset-top)));right:calc(var(--artwork-right,0px) + max(12px,env(safe-area-inset-right)) + 54px)}
  .stage>.house-back{top:calc(var(--artwork-top,0px) + max(10px,env(safe-area-inset-top)));left:calc(var(--artwork-left,0px) + max(12px,env(safe-area-inset-left)))}
}

/* Portrait screens explore the painting at full height, with native touch panning. */
.house-viewport{position:absolute;inset:0;overflow:hidden;isolation:isolate}
.house-plane{position:relative;overflow:hidden;min-width:100%;min-height:100%}
.stage[data-pannable=true] .house-viewport{overflow:auto;overflow-anchor:none;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom;cursor:grab;-webkit-overflow-scrolling:touch}
.stage[data-pannable=true] .house-viewport::-webkit-scrollbar{display:none}
.stage.is-panning .house-viewport,.stage.is-panning .house-viewport *{cursor:grabbing;user-select:none}
.house-viewport:focus-visible{outline:3px solid var(--gold);outline-offset:-4px}
.house-fit{position:absolute;z-index:12;left:calc(var(--artwork-left,0px) + max(12px,env(safe-area-inset-left)));display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #edcb91;border-radius:24px;background:#14212af2;color:#ffe8bd;font:inherit;font-size:.8125rem;box-shadow:0 3px 14px #0008}
.house-fit svg{display:block;width:20px;height:20px;pointer-events:none}
.house-fit:focus-visible{outline:3px solid #ffe0a6;outline-offset:3px}
.house-fit:hover{background:#2c3b40;color:#fff4db}
.house-pan-hint{position:absolute;z-index:10;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;margin:0;padding:8px 14px;border:1px solid #d7b57b55;border-radius:24px;background:#14212ae8;color:#f8dfb8;font-size:.75rem;line-height:1.4;white-space:nowrap;pointer-events:none;box-shadow:0 3px 14px #0004}
.house-pan-hint span{font-size:1.2rem;line-height:1}
.is-quiet-house .house-fit,.is-quiet-house .house-pan-hint{display:none!important}
@media(max-width:800px) and (orientation:portrait){
  body[data-view=house] #house-view>.stage,body[data-view=house] #house-view>.stage:not([data-room=overview]){flex:1;height:100%;max-height:none;min-height:0;aspect-ratio:auto}
  .house-viewport .world{transition:none}
  .stage[data-room=overview][data-pannable=false] .house-viewport:has(.world:not([hidden]))::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:linear-gradient(#101a229e,#101a22df),var(--house-scene-art) center / cover no-repeat;
    filter:blur(24px);
  }
  body[data-view=house] .house-actions,.stage>.house-fit,.stage>.atmosphere-toggle{top:max(10px,env(safe-area-inset-top))}
  .atmosphere-frame .season-control select,.atmosphere-frame .weather-control select,.atmosphere-frame .house-lighting-control select,.atmosphere-frame .ambience-panel select,.puzzle-controls select{font-size:1rem}
}
@media(max-width:600px){
  #panel{max-width:calc(100% - 16px);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - env(safe-area-inset-bottom));border-radius:12px}
  #panel .panel-frame{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
