:root{color-scheme:dark;--ink:#161b18;--paper:#e8e5d4;--muted:#bebfaf;--brass:#c3b685;--line:#777966;--panel:#20251f;font-family:Arial,Helvetica,sans-serif;font-size:16px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ink);color:var(--paper)}body{overflow:hidden}button,select,input{font:inherit}button,select{min-height:44px;border:1px solid #777966;background:#232820;color:var(--paper);border-radius:2px}button{cursor:pointer;padding:10px 17px}button:hover{background:#343a2e;border-color:var(--paper)}button:active{transform:translateY(1px)}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #eee6ad;outline-offset:4px}button:disabled{opacity:.55;cursor:default}button[hidden],[hidden]{display:none!important}p{line-height:1.65}kbd{font-family:inherit;font-size:.82em;letter-spacing:.06em;border:1px solid #7a7e6f;border-radius:3px;padding:3px 5px;white-space:nowrap}#building{position:relative;width:100%;height:100dvh;min-height:300px;overflow:hidden;background:#242a22;isolation:isolate}#scene{display:block;width:100%;height:100%;outline:none;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}.scene-shade{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 52% 46%,transparent 28%,rgba(8,12,9,.26) 83%,rgba(8,12,9,.64));z-index:1}.light-breath{position:absolute;inset:0;pointer-events:none;background:#d3ddbb;opacity:0;z-index:2}html[data-flicker=true]:not([data-reduced-motion=true]) .light-breath{animation:breath 16s linear infinite}html[data-paused=true] .light-breath{animation-play-state:paused!important}@keyframes breath{0%,86%,91%,100%{opacity:0}88%{opacity:.025}94%{opacity:.012}}#title-screen{position:absolute;inset:0;padding:clamp(24px,4.5vw,72px);z-index:3;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(90deg,rgba(11,17,13,.87),rgba(11,17,13,.54) 47%,rgba(11,17,13,.04) 86%)}.title-top{display:flex;align-items:center;gap:17px;color:#d1d2be;font-size:13px}.title-top svg{color:var(--brass)}.title-copy{margin:30px 0;max-width:980px}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(42px,7.9vw,114px);line-height:1.01;letter-spacing:-.055em;margin:0 0 30px;text-wrap:balance;text-shadow:0 2px 22px rgba(0,0,0,.15)}.tagline{color:#d2d3c0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(17px,1.65vw,23px);line-height:1.6;margin:0 0 34px}.enter-button{padding:17px 22px;min-width:256px;display:flex;gap:34px;align-items:center;justify-content:space-between;background:#d4cfb4;color:#20261c;border-color:#d4cfb4;font-size:12px;letter-spacing:.12em;min-height:56px}.enter-button:hover{background:#f0eacb;color:#181f16}.enter-button span{font-size:21px;line-height:1}.entry-note{font-size:12px;color:#bdc1ac;margin-top:13px}.title-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:#c6c9b9}.title-bottom p{margin:0}.text-button{border:0;background:transparent;padding:8px 0;color:#d5d7c5;font-size:13px;text-decoration:underline;text-decoration-color:#777e68;text-underline-offset:5px}.text-button:hover{background:transparent;color:white}.hud-top{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:flex-start;padding:24px 28px 50px;gap:18px;background:linear-gradient(rgba(9,15,11,.7),transparent);z-index:3;pointer-events:none}.place{display:flex;flex-direction:column;gap:7px;text-shadow:0 1px 5px #000}.place #floor-label{font-size:11px;color:#d0d2bd;letter-spacing:.08em}.place #location-label{font-family:Georgia,serif;font-size:23px}.hud-actions{display:flex;gap:8px;pointer-events:auto}.hud-actions button{background:rgba(21,28,21,.9);font-size:12px;padding:9px 13px;border-color:#7c816e}.hud-actions button:hover{background:#3d4635}#crosshair{position:absolute;left:50%;top:50%;width:14px;height:14px;transform:translate(-50%,-50%);pointer-events:none;z-index:3;display:grid;place-items:center}#crosshair span{width:4px;height:4px;background:#efedd7;box-shadow:0 0 3px #101710;border-radius:50%}#crosshair[data-active=true]{border:1px solid #e6e4c8;border-radius:50%;width:22px;height:22px}#interaction-wrap{position:absolute;bottom:97px;left:50%;transform:translateX(-50%);z-index:4;text-align:center;max-width:calc(100% - 36px);pointer-events:none}#interact{white-space:nowrap;background:rgba(25,33,24,.96);padding:11px 17px;border-color:#9b9c80;pointer-events:auto;box-shadow:0 3px 16px #1117}#interact kbd{margin-right:9px}#toast{font-size:13px;color:#e2e2ca;min-height:1em;margin:10px 0 0;padding:0 10px;text-shadow:0 1px 5px black}.walking-hint{position:absolute;left:28px;bottom:17px;color:#e0e2ce;z-index:3;font-size:11px;margin:0;display:flex;align-items:center;gap:9px;text-shadow:0 1px 5px #000}.walking-hint span{margin:0 10px}#touch-controls{display:none}dialog{color:var(--paper);background:var(--panel);border:1px solid #7a7d64;width:min(550px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:28px 30px;box-shadow:0 24px 100px #0008;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:rgba(8,14,9,.62)}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.small-print{font-size:12px;color:#c4c8af;margin:0 0 9px}h2{font-family:Georgia,serif;font-weight:400;font-size:35px;letter-spacing:-.025em;margin:0 0 19px;line-height:1.15}.close-button{font-size:25px;line-height:1;width:44px;padding:0;flex-shrink:0;background:transparent;border-color:#6a705d}.controls-copy{font-size:13px;line-height:2.2;color:#d4d9c4;margin:0 0 22px}.preferences{border-top:1px solid #505847}.preferences label{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 0;border-bottom:1px solid #505847;font-size:14px}.preferences small{display:block;font-size:11px;color:#bec5ad;margin-top:5px;line-height:1.4}.preferences input{accent-color:#d5d1ac;width:22px;height:22px;flex-shrink:0;margin:10px}.preferences select{max-width:148px;font-size:12px;padding:8px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.dialog-actions button{font-size:12px}.dialog-actions .primary{grid-column:1/-1}.primary{background:#d3cfaf;color:#1e271a;border-color:#d3cfaf}.primary:hover{background:#f0ebcb;color:#182113}.about{font-size:12px;line-height:1.6;margin:22px 0 4px;color:#c3ccb5}.about summary{cursor:pointer;padding:10px 0;color:#e4e7d3;min-height:44px}.restart-row{display:flex;justify-content:space-between;gap:14px;border-top:1px solid #505847;margin-top:12px;padding-top:8px}.restart-row button{font-size:11px}#accessible-exploration{margin-top:22px;border-top:1px solid #737b61;padding-top:14px}#accessible-exploration h3{font-family:Georgia,serif;font-weight:400;font-size:25px;margin:0 0 12px}#accessible-exploration h4{font-size:13px;font-weight:400;color:#d1d7bd;margin-bottom:10px}#room-description{font-size:14px}.choice-list{display:flex;flex-direction:column;gap:8px}.choice-list button{text-align:left;font-size:13px}#inspection-dialog{width:min(470px,calc(100% - 32px));padding:34px}#inspection-title{font-size:30px}#inspection-text{font-family:Georgia,serif;font-size:18px;line-height:1.85;white-space:pre-line;margin:15px 0 29px}#inspection-dialog .primary{width:100%}#fallback,.no-script{position:absolute;z-index:5;top:40%;left:50%;transform:translate(-50%,-50%);background:#20281e;padding:24px;width:min(450px,calc(100% - 40px));border:1px solid #929b7d}#fallback h2{font-size:30px}#loading-message{position:fixed;left:20px;bottom:12px;font-size:12px;color:#d1d3be;z-index:8}html[data-reduced-motion=true] *,html[data-reduced-motion=true] *:before,html[data-reduced-motion=true] *:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(pointer:coarse),(max-width:760px){#title-screen{padding:28px 24px}.title-top{font-size:12px}.title-copy{margin:30px 0}h1{font-size:clamp(42px,10vw,74px);line-height:1.06;letter-spacing:-.045em;margin-bottom:24px}.tagline{font-size:17px;max-width:290px}.wide-only{display:none}.title-bottom{align-items:flex-start;gap:12px;flex-direction:column}.title-bottom p{font-size:11px}.enter-button{min-width:245px;min-height:56px}.hud-top{padding:18px 16px 40px;gap:10px}.hud-actions{gap:6px}.hud-actions button{padding:9px;font-size:11px;min-height:44px}.place #location-label{font-size:18px;max-width:170px}.place #floor-label{font-size:10px}.walking-hint{display:none}#touch-controls{display:block;position:absolute;inset:0;pointer-events:none;z-index:3}#joystick{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:max(25px,env(safe-area-inset-left));width:112px;height:124px;touch-action:none;pointer-events:auto;user-select:none;-webkit-user-select:none}.joystick-ring{display:block;position:absolute;top:0;left:4px;width:104px;height:104px;border-radius:50%;border:1px solid #d4d9bd99;background:#13201070;box-shadow:inset 0 0 0 26px #c1c8a90b}#joystick-knob{position:absolute;left:33px;top:33px;border:1px solid #c1c8ac;background:#c4ccb344;width:36px;height:36px;border-radius:50%;pointer-events:none}.touch-caption{position:absolute;bottom:0;left:42px;color:#dce1cb;font-size:11px;text-shadow:0 1px 4px black}.look-hint{position:absolute;right:max(27px,env(safe-area-inset-right));bottom:max(53px,env(safe-area-inset-bottom));font-size:11px;line-height:1.7;text-align:center;color:#dce1cb;text-shadow:0 1px 4px black}#interaction-wrap{bottom:177px;max-width:calc(100% - 26px)}#interact{font-size:12px;min-height:48px}#interact kbd{display:none}#toast{font-size:11px}dialog{padding:23px;max-height:calc(100dvh - 24px)}h2{font-size:30px}.preferences small{font-size:11px}.controls-copy{font-size:12px}.restart-row{flex-wrap:wrap}.about{margin-top:14px}}@media(max-height:560px){#title-screen{padding:20px 32px}.title-top{font-size:11px}.title-top svg{width:22px;height:22px}.title-copy{margin:9px 0}h1{font-size:clamp(36px,6.2vw,65px);margin-bottom:10px}.tagline{font-size:14px;line-height:1.45;margin-bottom:13px;max-width:430px}.enter-button{min-height:44px;padding:11px 17px}.entry-note{display:none}.title-bottom{flex-direction:row;align-items:center;font-size:10px}.title-bottom p{font-size:10px}.title-bottom button{font-size:11px}.hud-top{padding:12px 18px 25px}.place #location-label{font-size:18px}#joystick{bottom:14px;left:26px;width:100px;height:110px}.joystick-ring{width:88px;height:88px}#joystick-knob{left:25px;top:25px}.touch-caption{left:36px}#interaction-wrap{bottom:39px}#toast{margin-top:4px}.look-hint{bottom:37px!important}.walking-hint{display:none}}@supports(padding:max(0px)){.hud-top{padding-top:max(18px,env(safe-area-inset-top));padding-right:max(18px,env(safe-area-inset-right));padding-left:max(18px,env(safe-area-inset-left))}}

/* The HUD occupies the viewport but only its controls intercept input. */
#hud{position:absolute;inset:0;pointer-events:none;z-index:3}
#hud button{pointer-events:auto}

/* The invitation stays at the edge; the building is the opening image. */
:root { --paper:#f2ebd8; --muted:#c8c8b8; --panel:#222a27; }
#title-screen { justify-content:flex-end; padding:34px 42px; background:none; pointer-events:none; }
#title-screen button { pointer-events:auto; }
.title-top { position:absolute; top:30px; left:42px; gap:12px; font-size:12px; color:#f2ebd8; text-shadow:0 1px 6px #000; }
.title-top svg { width:24px; height:24px; }
.title-copy { width:fit-content; max-width:380px; padding:24px 27px 20px; margin:0 0 26px -27px; background:transparent; border-left:0; text-shadow:0 2px 8px #000,0 0 30px #000; }
h1 { font-size:clamp(32px,3.7vw,52px); line-height:1.08; letter-spacing:-.035em; margin:0 0 14px; }
.tagline { font-size:16px; margin:0 0 22px; color:#dbd8c7; }
.enter-button { display:block; min-width:0; min-height:48px; padding:12px 24px; font-size:13px; letter-spacing:0; background:#dfd8bd; color:#1c261f; }
.entry-note { margin:12px 0 0; font-size:11px; color:#c6cabb; }
.title-bottom { font-size:11px; color:#f2ebd8; text-shadow:0 1px 6px #000; }
.title-bottom p { padding:8px 10px; background:#17201bd9; }
#title-settings { background:#17201bed; padding:10px 15px; }
.hud-top { background:none; }
.hud-actions button { background:#17201bed; }
.place { text-shadow:0 1px 5px #000,0 0 12px #000; }
.place #location-label { font-size:20px; }
.walking-hint { padding:10px; background:#17201bdb; }
.scene-shade { background:none; box-shadow:inset 0 0 130px 15px #08100e55; }
.preferences small { color:#cbd2bc; }
@media(pointer:coarse),(max-width:760px) {
  #title-screen { padding:24px; }
  .title-top { top:max(22px,env(safe-area-inset-top)); left:24px; font-size:11px; }
  .title-copy { padding:18px 20px; margin:0 0 15px -8px; max-width:290px; }
  h1 { font-size:36px; }
  .tagline { font-size:15px; margin-bottom:18px; }
  .title-bottom { gap:8px; }
  .title-bottom p { display:none; }
  #title-settings { font-size:11px; }
  .place #location-label { font-size:16px; max-width:155px; }
}
@media(max-height:560px) {
  #title-screen { padding:16px 26px; }
  .title-top { left:auto; right:26px; top:20px; }
  .title-copy { padding:14px 20px; margin-bottom:6px; }
  h1 { font-size:30px; margin-bottom:10px; }
  .tagline { font-size:14px; margin-bottom:12px; }
  .title-bottom p { display:none; }
}
