@import url('./one-window.css');
#house-life{position:fixed;top:126px;left:var(--edge);z-index:8;display:grid;gap:10px;width:270px;max-width:calc(100vw - 40px);padding:19px 20px;border:1px solid #d0dbd629;border-radius:12px;background:#0c1a22dd;backdrop-filter:blur(20px);box-shadow:0 15px 50px #0004}
#current-room{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#e5d2b3}
#resident-status{font-size:12px;line-height:1.6;color:#d2dcd8}
#night-story{font:italic 13px/1.6 Georgia,serif;color:#b3c0b6;border-top:1px solid #ffffff15;padding-top:10px}
#house-life label{font-size:9px;color:#9facac;letter-spacing:.08em;margin-top:3px}
#routine{min-height:36px;width:100%;padding:7px 9px;color:#dde5de;background:#25333a80;border:1px solid #d4ded52a;border-radius:5px;font:11px 'Segoe UI',Arial,sans-serif}
#routine option{background:#16232a}#night-photo{font-size:10px;text-align:left;color:#a6b8b5;padding:5px 0}#night-photo kbd{float:right}
.lucid #hud{display:block}.lucid .scene-caption{position:absolute;bottom:72px;max-width:420px}.lucid .actions{justify-content:flex-end;gap:8px}
.ghost-action{border-color:#dac7a36b;background:#726c5142;min-width:130px;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}.ghost-action:not(:disabled):hover{background:#998b6355}
#reticle.targeted{width:7px;height:7px;background:#e8d8b8;box-shadow:0 0 0 6px #ead7a319;transition:width .15s,height .15s}
#force-meter{position:fixed;z-index:4;top:calc(50% + 20px);left:calc(50% - 24px);width:48px;height:2px;background:#ffffff20;pointer-events:none;opacity:0;transition:opacity .2s}#force-meter span{display:block;height:100%;width:0;background:#e8d8b8}.holding #force-meter{opacity:1}.holding #reticle{box-shadow:0 0 0 10px #ead7a329}
#story-choices{display:grid;gap:8px;margin-top:22px}#story-choices button{border:1px solid #d8c59f40;border-radius:6px;background:#ad9f7020;padding:11px 14px;text-align:left;font-size:12px}#story-choices button:hover{background:#ad9f7035}
.letter{max-height:80dvh;overflow:auto}.letter #clue-text{white-space:pre-line}.letter #clue-after{white-space:pre-line}.setting output{font-size:10px;color:#a3b9b2;vertical-align:5px}.setting input[type=range]{vertical-align:middle;width:110px}
#show-ui{position:fixed;z-index:10;right:var(--edge);bottom:20px;font-size:10px;letter-spacing:.06em;color:#d1d9d3;padding:9px 13px;background:#15222ba6;border:1px solid #b3c3c430;border-radius:25px;backdrop-filter:blur(12px)}
#hud,.topbar,.state,.corner-note{transition:opacity .6s}.quiet .scene-caption{opacity:0}.quiet .topbar{opacity:.3}.quiet .topbar:hover,.quiet .topbar:focus-within{opacity:1}.quiet .state{opacity:.4}.quiet .corner-note{opacity:0}
@media(pointer:fine){.quiet #hud{opacity:0;pointer-events:none}.quiet #hud button{pointer-events:none}.quiet.holding #hud{opacity:1}.quiet.holding #hud button{pointer-events:auto}}
.photo #house-life,.photo #house-life *,.photo #force-meter{opacity:0;pointer-events:none!important}.photo #chapter-card{opacity:0}.photo #show-ui{opacity:.6}
.tools button[aria-expanded=true],#precision[aria-pressed=true]{border-color:#e5cf9b90;color:#eed7af;background:#9c8b5b3c}
@media(max-width:760px){#house-life{top:105px;padding:14px 16px}.lucid .scene-caption{display:none}.lucid .actions{justify-content:center}.lucid .secondary,.lucid .shift{min-height:44px}.lucid .shift{min-width:145px}.tools{gap:4px}.tools button{padding:0 9px}}
@media(pointer:coarse){#hud .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:440px;margin:auto;gap:6px}#hud .actions button{justify-content:center;min-width:0;max-width:none;min-height:40px;padding:8px 10px;font-size:10px;gap:7px}.touch #hud{bottom:32px}.touch #joystick{bottom:171px}.touch .altitude{bottom:165px;gap:8px}.touch #inspect-secret{grid-column:1/-1;grid-row:1;justify-self:center;min-height:30px;background:#182830ba;padding:5px 12px}.touch #shift{grid-column:2;grid-row:3}.touch #awaken{grid-column:1;grid-row:3}.touch #next-room{grid-column:2;grid-row:2}.touch #disturb{grid-column:1;grid-row:2}.touch:not(.lucid) #hud .actions{display:flex}.touch:not(.lucid) #hud .actions #shift{min-width:180px}.touch #show-ui{bottom:8px;padding:5px 11px}}
@media(max-width:400px){.playing .brand{font-size:11px;letter-spacing:.2em;gap:6px}.playing .brand-moon{width:14px;height:14px}.playing .topbar{gap:8px}.tools button{font-size:9px;padding:0 7px}.tools #help{width:27px}.playing.lucid .tools #look-control{max-width:68px}.touch #joystick{left:20px;width:80px;height:80px}.touch .altitude{right:20px}.touch .altitude button{width:34px;height:34px}#house-life{top:92px}}
@media(max-height:460px) and (orientation:landscape){#house-life{top:67px;left:24px;width:245px;max-height:calc(100dvh - 82px);overflow:auto;gap:6px;padding:12px 14px}#resident-status{font-size:10px}#current-room{font-size:8px}#night-story{font-size:11px}.touch #hud{bottom:25px;left:115px;right:80px}.touch #hud .actions{display:flex;flex-wrap:wrap;gap:5px}.touch #hud .actions button{min-height:32px;font-size:9px;padding:6px 10px}.touch #inspect-secret{min-height:28px}.touch #joystick{bottom:30px;width:76px;height:76px}.touch .altitude{bottom:30px;gap:6px}.touch .altitude button{height:29px;width:29px;font-size:16px}.state{top:55px}#message{top:32%;font-size:18px}.letter{max-height:84dvh;padding:25px}#story-choices{margin-top:12px}}

.lucid .frame-shade{opacity:.65;transition:opacity 1.4s}.transitioning .frame-shade{transition:opacity 1.4s}
@media(max-width:1100px){.scene-name{display:none}}

/* LUCID glass: clear edges and a stable dark tint keep the world visible
   without making controls disappear against a bright window or wall. */
:root{--glass:linear-gradient(135deg,#f3fbff24,#c3e8f20b 45%,#b5cce112),#13202b9c;--glass-line:#e4f6ff59;--glass-shadow:inset 0 1px 0 #fff5,inset 0 -1px 0 #08131b65,0 9px 28px #02091235;--glass-blur:blur(22px) saturate(145%)}
.brand-logo{width:30px;height:30px;display:block}.brand{gap:10px}
.tools{padding:5px;border:1px solid var(--glass-line);border-radius:28px;background:var(--glass);box-shadow:var(--glass-shadow);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur)}
.tools button{min-height:38px;font-size:14px;padding:0 12px;border-color:transparent;background:transparent}.tools #help{width:38px}.tools button:hover{background:#e6f8ff1a}.tools button[aria-expanded=true]{background:#cff7ef29;border-color:#c6fff37d;color:#effffb}
.state{padding:11px 17px;border:1px solid var(--glass-line);border-radius:24px;background:var(--glass);box-shadow:var(--glass-shadow);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);font-size:12px;top:103px;gap:10px}
#floor-nav{position:fixed;top:110px;right:var(--edge);z-index:7;width:190px;padding:10px;border:1px solid var(--glass-line);border-radius:22px;background:var(--glass);box-shadow:var(--glass-shadow);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);display:grid;gap:5px}
#floor-nav p{font-size:11px;letter-spacing:.14em;margin:5px 7px 7px;color:#d2e2e5}#floor-nav button{display:flex;align-items:center;gap:12px;text-align:left;min-height:58px;padding:9px 11px;border:1px solid transparent;border-radius:14px;background:transparent;transition:background .2s,border-color .2s}
#floor-nav strong{font-size:15px;font-weight:500;color:#cce4e7}#floor-nav button>span{font-size:14px;line-height:1.25}#floor-nav small{display:block;font-size:12px;color:#b9cfd4;margin-top:5px}#floor-nav button:hover{background:#e7f9ff19}#floor-nav button[aria-pressed=true]{border-color:#ccfff28c;background:linear-gradient(125deg,#dcfff42c,#a4dbea12);box-shadow:inset 0 1px #fff4}
#floor-nav #building-view{font-size:13px;min-height:40px;justify-content:space-between;border-top:1px solid #e0f6ff26;margin-top:4px;padding-top:12px}#building-view kbd{font-size:11px}
#house-life,.letter,dialog{background:var(--glass);border-color:var(--glass-line);border-radius:24px;box-shadow:var(--glass-shadow),0 20px 70px #02091255;backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur)}
#house-life{top:162px;width:300px;max-height:calc(100dvh - 190px);overflow:auto;padding:20px;gap:12px}#current-room{font-size:12px;letter-spacing:.08em;color:#d0fff1}#resident-status{font-size:14px;color:#f1f6f4}#night-story{font-size:15px;color:#d1dce0}#house-life label{font-size:13px;color:#d3e3e8;letter-spacing:0}#household,#routine{font:14px/1.4 'Segoe UI',Arial,sans-serif;width:100%;min-height:42px;padding:10px;background:#142933a8;color:#f3faf9;border:1px solid #e3f7ff55;border-radius:12px}#household option,#routine option{background:#172a35;color:#fff}#night-photo{font-size:14px;color:#dbeded;min-height:40px}
.secondary,.shift,#show-ui,.motion-options button,.restart{background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);border-radius:20px;backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);font-size:14px;min-height:44px;color:#f0f8f5}.shift{border-color:#d0fff47a;background:linear-gradient(140deg,#d9fff22e,#b9deed15),#18323bba}.secondary:hover,.shift:hover{background-color:#294954c7}.ghost-action{border-color:#d5f9ed85}.ghost-action:not(:disabled):hover{background-color:#2c595ec9}
dialog{width:min(600px,calc(100vw - 32px));background-color:#0e202bdb}dt{font-size:15px}dd{font-size:14px;color:#c6d8df}.setting{font-size:14px}.settings-note{font-size:13px;color:#afc5ce}#camera-status{font-size:14px}.setting output{font-size:13px}.motion-options{flex-wrap:wrap}.letter .eyebrow{font-size:12px}.letter .letter-after{font-size:14px}.letter-found{font-size:12px;letter-spacing:.08em}#story-choices button{font-size:14px;min-height:44px;border-radius:12px}.close{min-height:38px;min-width:38px}
.quiet .topbar{opacity:.82}.quiet .state{opacity:.85}.quiet #floor-nav{opacity:.9}.quiet #hud{opacity:.72;pointer-events:none}.quiet #hud button{pointer-events:auto}.quiet #hud:hover,.quiet #hud:focus-within{opacity:1}.photo #floor-nav{opacity:0;pointer-events:none!important}.photo #floor-nav *{pointer-events:none!important}.photo #hud{opacity:0}
@media(max-width:760px){.topbar{padding-top:18px}.tools{gap:1px;padding:3px}.tools button{font-size:12px;min-height:34px;padding-inline:8px}.tools #help{width:30px}.brand{font-size:14px;letter-spacing:.18em;gap:6px}.brand-logo{width:24px;height:24px}.state{top:80px;font-size:11px;padding:9px 12px}.state-time{display:none}#floor-nav{top:137px;right:16px;width:66px;padding:6px;border-radius:20px;gap:4px}#floor-nav p,#floor-nav button>span{display:none}#floor-nav button{min-height:46px;justify-content:center;padding:7px;border-radius:13px}#floor-nav #building-view{font-size:11px;line-height:1.4;text-align:center;min-height:46px;padding:7px 1px}#building-view kbd{display:none}#house-life{top:130px;left:16px;width:calc(100vw - 98px);max-width:300px;max-height:calc(100dvh - 180px);padding:16px}.touch #hud .actions button{font-size:12px;min-height:44px;padding:9px 10px}.touch #hud{bottom:29px}.touch #show-ui{font-size:12px}.lucid .actions{flex-wrap:wrap}.secondary,.shift{font-size:13px}.playing .brand{font-size:13px;gap:6px}.tools #look-control{max-width:84px}.corner-note{font-size:9px}}
@media(max-width:400px){:root{--edge:16px}.tools button{padding-inline:7px;font-size:11px}.tools #help{width:27px}.brand-logo{width:21px;height:21px}.brand{letter-spacing:.12em}.playing .brand{font-size:12px}.playing.lucid .tools #look-control{max-width:72px}}
@media(max-height:460px) and (orientation:landscape){.state{top:68px;padding:7px 12px}#floor-nav{top:106px;right:16px;width:66px;padding:5px}#floor-nav p,#floor-nav button>span{display:none}#floor-nav button{min-height:36px;justify-content:center;padding:6px}#floor-nav #building-view{font-size:10px;min-height:33px;text-align:center;padding:5px 0}#building-view kbd{display:none}#house-life{top:113px;left:20px;max-height:calc(100dvh - 126px);width:260px;padding:13px}.touch #hud .actions button{min-height:34px;font-size:11px;padding:6px 9px}.touch #hud{right:100px;bottom:18px}.touch .altitude{right:25px;bottom:18px}.touch #joystick{bottom:20px}.lucid .scene-caption{display:none}.tools button{min-height:32px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#floor-nav,#house-life,.state,.tools,.secondary,.shift,.letter,dialog{background-color:#142733f2}}
/* Build 009: readable glass journals, recovery and developer surfaces. */
:root{--clue-size:18px}
.story-panel{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 32px));max-height:80dvh;overflow:auto;padding:38px;border:1px solid #ffffff35;border-radius:24px;background:linear-gradient(145deg,#253136ec,#111d24f5);color:#f1eee5;box-shadow:0 32px 100px #0009;backdrop-filter:blur(28px);font-size:var(--clue-size);line-height:1.65}
.story-panel::backdrop{background:#02080da8;backdrop-filter:blur(6px)}
.story-panel h2{font:normal 32px Georgia,serif;margin:10px 0 18px}.story-panel p{color:#deded6}.story-panel button{margin:8px 8px 8px 0;padding:12px 18px;border:1px solid #ffffff35;border-radius:30px;background:#ffffff12;color:inherit;cursor:pointer}.story-panel .close{position:absolute;right:16px;top:10px}
#journal-entries{padding-left:22px}#journal-entries li{padding:14px 0;border-bottom:1px solid #ffffff15}#journal-entries li::marker{color:#d5bc8b}
.inspector{width:min(900px,95vw)}.inspector pre{font:12px/1.5 monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#c5e1d5}
#save-status{max-width:440px;color:#d6c8a8;line-height:1.5}#night-date{font-size:10px;letter-spacing:.12em;margin:18px 0 8px}#house-life #journal-open,#house-life #wait-next,#debug-open{display:block;width:100%;padding:10px 12px;margin:6px 0;border-radius:12px;border:1px solid #ffffff22;background:#ffffff0a;color:inherit;text-align:left}
#sandbox{padding-top:10px;border-top:1px solid #bd925f66}#sandbox p{font-size:10px;color:#efcb91;line-height:1.5}
.letter #clue-text,.letter #clue-after{font-size:var(--clue-size);line-height:1.65}.key-bindings{border:1px solid #ffffff25;border-radius:14px;padding:14px;margin:20px 0}.key-bindings legend{font-size:9px;letter-spacing:.1em}.key-bindings button{display:inline-block;border:1px solid #ffffff25;padding:8px;margin:3px;border-radius:8px;background:#ffffff0d;color:inherit}.key-bindings p{font-size:12px;color:#c8d9db}
.solid-glass #house-life,.solid-glass #settings,.solid-glass .letter,.solid-glass .story-panel{background:#142127!important;backdrop-filter:none!important;color:#fff}.solid-glass #message{background:#102129;color:#fff}.solid-glass button{border-color:#a0b7bd!important}.solid-glass .tools button{background:#142127;color:white}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e6cc95;outline-offset:4px}
@media(max-width:600px){.story-panel{padding:28px 22px;max-height:88dvh}.story-panel h2{font-size:27px}#intro-note-story{font-size:11px}.key-bindings{padding:10px}}
/* The expanded journal tools must fit short desktop and phone viewports. */
#house-life{max-height:calc(100dvh - 225px);overflow:auto;overscroll-behavior:contain}
.object-tools{font-size:11px;line-height:1.5;border-top:1px solid #ffffff22;padding-top:10px}.object-tools summary{cursor:pointer;color:#e8d5af}.object-tools p{color:#bbc9ca}.object-tools button{width:100%;margin:3px 0;padding:8px;border:1px solid #ffffff26;border-radius:8px;background:#ffffff0b;color:#e3e9e5;text-align:left;font:11px/1.4 'Segoe UI',sans-serif}
#live-save-status{font-size:10px;color:#b6c9c0;line-height:1.4}
