@font-face{font-family:DM Sans;src:url('/assets/dm-sans-variable.ttf') format('truetype');font-weight:100 1000;font-display:swap}
:root{font-family:DM Sans,system-ui,sans-serif;color:#30382f;background:#eeece5;font-synthesis:none}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;border:0;cursor:pointer}
a{color:inherit;text-underline-offset:.3em}
:focus-visible{outline:3px solid #71826b;outline-offset:4px}
#view{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
header{position:fixed;inset:20px 24px auto;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;pointer-events:none}
.project-label{display:grid;gap:.2rem;background:#eeece5d9;padding:.5rem .75rem;border-radius:3px;font-size:.9rem;letter-spacing:.02em}
#project-scope{font-size:.7rem;color:#596353}
.quiet-button{height:44px;min-width:44px;background:#f8f6f0d6;color:#293c34;border:1px solid #26382d20;border-radius:24px;backdrop-filter:blur(12px);box-shadow:0 2px 12px #00000008;pointer-events:auto}
#tour-menu{margin-left:auto;width:44px;font-size:25px;line-height:1;letter-spacing:1px}
.room-switcher{position:fixed;right:24px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:2;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:164px;font-size:12px}
.movement-hint {
  position: fixed;
  left: 24px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px 5px 6px;
  border: 1px solid #26382d20;
  border-radius: 8px;
  background: #f8f6f0ed;
  color: #293c34;
  font-size: 12px;
  line-height: 20px;
  pointer-events: none;
}
.movement-hint kbd {
  padding: 0 5px;
  border-radius: 4px;
  background: #e4e5dc;
  font: inherit;
  white-space: nowrap;
}
#joystick{display:none;position:fixed;left:20px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:2;width:72px;height:72px;border:1px solid #26382d45;background:#f8f6f0b3;border-radius:50%;backdrop-filter:blur(4px);touch-action:none;opacity:.85}
#joystick:active{opacity:1}
#stick{position:absolute;width:24px;height:24px;left:calc(50% - 12px);top:calc(50% - 12px);border-radius:50%;background:#485b4ab3;pointer-events:none}
.pad-directions{position:absolute;inset:0;display:grid;place-items:center;font-size:52px;font-weight:300;color:#485b4a66;pointer-events:none}
dialog{border:0;background:#f1eee7;color:#384234;max-height:calc(100dvh - 32px);overflow:auto}
dialog::backdrop{background:#15251c66;backdrop-filter:blur(4px)}
.compact-dialog{width:min(360px,calc(100% - 32px));padding:30px 24px 24px;border-radius:14px}
.compact-dialog h2{font-size:26px;font-weight:450;letter-spacing:-.03em;margin:0 0 20px}
.close{position:absolute;right:8px;top:6px;width:44px;height:44px;display:grid;place-items:center;background:transparent;color:#53634b;font-size:28px;line-height:1}
.menu-actions,.room-options{display:grid;gap:4px}
.menu-actions button,.menu-actions a,.room-options button{display:flex;align-items:center;justify-content:space-between;min-height:48px;text-align:left;border-radius:6px;padding:12px;background:transparent;color:#33473c;font:13px DM Sans,system-ui,sans-serif;text-decoration:none}
.menu-actions button:hover,.menu-actions a:hover,.room-options button:hover{background:#e4e5dc}
.room-options button.selected{background:#dee4da}
.room-options button.selected::after{content:'✓';font-size:14px}
.menu-help{font-size:10px;line-height:1.6;margin:20px 0 0;color:#7b8279}
.touch-help{display:none}
body[data-loading=true] header{visibility:hidden}
#intro{position:fixed;inset:0;z-index:10;background:#7f9f5e;color:#f3efdf;display:grid;place-items:center;padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));overflow:auto;text-align:center}
.loading-content{width:min(100%,540px);display:grid;justify-items:center;gap:38px}
.otto-brand{display:grid;justify-items:center;gap:20px}
.otto-mark{display:block;width:auto;height:min(48svh,390px);max-width:72vw;object-fit:contain}
.otto-place{display:block;width:min(232px,65vw);height:auto}
.loading-feedback{width:min(100%,268px)}
.loading-residence{text-transform:uppercase;font-size:10px;letter-spacing:.14em;line-height:1.6;margin:0 0 18px;color:#26331e}
.loading-meter{position:relative;overflow:hidden;height:4px;background:#f3efdf36;border-radius:2px}
#load-progress{display:block;appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#f3efdf;width:100%;height:4px}
#load-progress::-webkit-progress-bar{background:transparent;border-radius:2px}
#load-progress::-webkit-progress-value{background:#f3efdf;border-radius:2px;transition:width .2s linear}
#load-progress::-moz-progress-bar{background:#f3efdf;border-radius:2px}
.loading-sweep{position:absolute;inset:0 auto 0 0;width:32%;background:#f3efdf;border-radius:2px;animation:loading-travel 1.7s ease-in-out infinite}
#load-progress[value]+.loading-sweep{display:none}
#load-progress:indeterminate::-webkit-progress-bar{background:transparent}
#load-progress:indeterminate::-moz-progress-bar{background:transparent}
#status{font-size:13px;letter-spacing:.02em;line-height:1.6;margin:18px 0 4px;color:#26331e}
#load-detail{font-size:11px;line-height:1.6;color:#26331e;min-height:18px;margin:0;font-variant-numeric:tabular-nums}
#retry{background:#f3efdf;color:#394b2a;padding:12px 24px;border-radius:3px;margin-top:16px}
#intro pre{color:#f3efdf;background:#24321c36;font-size:10px;text-align:left;white-space:pre-wrap;padding:12px;max-height:100px;overflow:auto}
#intro[data-error] .loading-meter{visibility:hidden}
#intro[data-error] .otto-mark{height:min(28svh,200px)}
#intro[data-error] .loading-content{gap:24px}
#error-details{margin-top:16px;font-size:11px;text-align:left;color:#26331e}
#error-details summary{cursor:pointer;padding:8px 0}
.noscript-note{font-size:12px;line-height:1.6}
@keyframes loading-travel{0%{transform:translateX(-100%)}100%{transform:translateX(415%)}}
.quality-option{display:grid;gap:8px;margin-top:16px;padding:0 12px;font-size:12px}
.quality-option select{width:100%;font:inherit;min-height:44px;background:#e4e5dc;color:#33473c;border:1px solid #26382d20;border-radius:6px;padding:8px}
.quality-help{margin-top:8px;padding:0 12px}
.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-size:.7rem;margin:0 0 1rem}
#hint{position:fixed;left:50%;bottom:calc(108px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 20px;background:#293d2cdb;color:#fff;border-radius:5px;font-size:11px;text-align:center}
@media(pointer:coarse){#joystick,.touch-help{display:block}.desktop-help{display:none}}
@media(max-width:700px){header{inset:calc(12px + env(safe-area-inset-top)) 14px auto}.project-label{font-size:.8rem;padding:.4rem .6rem}.room-switcher{right:14px;bottom:calc(24px + env(safe-area-inset-bottom));min-width:156px;max-width:calc(100vw - 114px)}#joystick{left:14px}}
@media (max-width: 700px) {
  .movement-hint { left: 14px; bottom: calc(30px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .movement-hint { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media(max-height:600px) and (min-aspect-ratio:6/5){.loading-content{width:min(100%,640px);grid-template-columns:1fr 1fr;gap:40px}.otto-mark{height:min(65svh,300px)}.otto-brand{gap:14px}.otto-place{width:180px}.loading-feedback{width:100%}}
@media(max-height:500px) and (pointer:coarse){#joystick{width:64px;height:64px}.room-switcher{bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}.loading-sweep{left:34%}}
