@charset "UTF-8";

:root {
  --ink: #f3eee3;
  --muted: rgba(243, 238, 227, 0.62);
  --hairline: rgba(243, 238, 227, 0.18);
  --wash: rgba(20, 18, 17, 0.74);
  --accent: #d2a36e;
  --accent-strong: #e0b47b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #181615; color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

#app { position: relative; width: 100%; min-height: 100dvh; overflow: hidden; isolation: isolate; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }

.hud-header { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 30px; pointer-events: none; }
.brand { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; pointer-events: auto; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--hairline); color: var(--accent-strong); font-size: 11px; letter-spacing: 0.14em; }
.brand-kicker, .brand-title { display: block; }
.brand-kicker { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }
.brand-title { margin-top: 5px; font-family: var(--serif); font-size: 20px; letter-spacing: -0.02em; }
.header-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; letter-spacing: 0.16em; pointer-events: auto; }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.icon-button { display: none; border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 4px 0 4px 12px; }

.info-panel { position: absolute; left: 30px; bottom: 124px; width: min(360px, calc(100vw - 60px)); padding: 22px 24px 20px; background: linear-gradient(135deg, rgba(22, 20, 19, 0.83), rgba(22, 20, 19, 0.56)); border-top: 1px solid var(--accent); backdrop-filter: blur(12px); transition: opacity 280ms ease, transform 280ms ease; }
.info-panel.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.panel-eyebrow, .nav-label, .utility-label { color: var(--muted); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.panel-eyebrow { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding-bottom: 10px; }
.info-panel h1 { max-width: 24ch; margin: 18px 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.info-panel p { max-width: 36ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.panel-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 19px; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 11px; }
.panel-meta span:last-child { color: var(--accent-strong); text-align: right; }
.text-button { margin-top: 19px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.text-button span { color: var(--accent); margin-left: 7px; font-size: 16px; }
.text-button:hover { color: var(--accent-strong); }

.room-nav { position: absolute; right: 30px; bottom: 124px; width: 245px; }
.nav-label { margin-bottom: 12px; }
.nav-label span { color: rgba(243, 238, 227, 0.38); letter-spacing: 0.03em; text-transform: none; }
.room-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.room-button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--hairline); background: transparent; color: var(--muted); text-align: left; font-size: 13px; transition: color 180ms ease, padding-left 180ms ease; }
.room-button span { width: 20px; color: rgba(243, 238, 227, 0.34); font-size: 10px; letter-spacing: 0.12em; }
.room-button:hover, .room-button.is-active { padding-left: 8px; color: var(--ink); }
.room-button.is-active span { color: var(--accent); }

.utility-bar { position: absolute; left: 30px; right: 30px; bottom: 30px; display: flex; align-items: center; gap: 24px; min-height: 54px; padding-top: 13px; border-top: 1px solid var(--hairline); }
.utility-group { display: flex; align-items: center; gap: 14px; }
.utility-label { margin-right: 2px; }
.utility-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.utility-button:hover, .utility-button.is-active { color: var(--accent-strong); }
.reset-button { margin-left: auto; padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.reset-button:hover { color: var(--ink); }

.reticle { position: absolute; inset: 50% auto auto 50%; width: 21px; height: 21px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.38; transition: opacity 180ms ease, transform 180ms ease; }
.reticle::before, .reticle::after, .reticle span::before, .reticle span::after { content: ''; position: absolute; background: var(--ink); }
.reticle::before, .reticle::after { left: 9px; width: 1px; height: 6px; }
.reticle::before { top: 0; } .reticle::after { bottom: 0; }
.reticle span::before, .reticle span::after { top: 10px; width: 6px; height: 1px; }
.reticle span::before { left: 0; } .reticle span::after { right: 0; }
.reticle.is-hot { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
.object-hint { position: absolute; top: calc(50% + 23px); left: 50%; padding: 5px 9px; background: rgba(20,18,17,.78); color: var(--ink); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; transform: translateX(-50%); opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.object-hint.is-visible { opacity: 1; }
.toast { position: absolute; top: 92px; left: 50%; padding: 10px 14px; border: 1px solid var(--hairline); background: rgba(20,18,17,.82); color: var(--ink); font-size: 12px; transform: translate(-50%, -8px); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.loading-screen { position: absolute; inset: 0; display: grid; place-items: center; background: #171514; transition: opacity 700ms ease; z-index: 10; }
.loading-screen.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-card { width: min(360px, calc(100vw - 48px)); }
.loading-mast { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.loading-line { width: 100%; height: 1px; background: rgba(243,238,227,.16); overflow: hidden; }
.loading-line span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 300ms ease; }
.loading-card p { margin-top: 14px; color: var(--muted); font-family: var(--serif); font-size: 15px; font-style: italic; }

.mobile-sheet { display: none; }

@media (max-width: 700px) {
  .hud-header { padding: 18px 18px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-title { font-size: 17px; }
  .brand-kicker { font-size: 9px; }
  .header-actions > span:not(.status-dot) { display: none; }
  .icon-button { display: block; }
  .info-panel { left: 16px; bottom: 98px; width: calc(100vw - 32px); padding: 17px 18px; }
  .info-panel h1 { margin-top: 14px; font-size: 24px; }
  .info-panel p { font-size: 16px; line-height: 1.48; }
  .room-nav { display: none; }
  .utility-bar { left: 16px; right: 16px; bottom: 15px; gap: 13px; min-height: 60px; flex-wrap: wrap; padding-top: 11px; }
  .utility-group { gap: 10px; }
  .utility-label { display: none; }
  .utility-button, .reset-button { font-size: 12px; }
  .reset-button { margin-left: auto; }
  .mobile-sheet { position: absolute; right: 12px; top: 61px; display: block; width: min(300px, calc(100vw - 24px)); padding: 17px 18px 20px; border: 1px solid var(--hairline); background: rgba(22,20,19,.94); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
  .mobile-sheet.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .sheet-grip { width: 30px; height: 2px; margin-bottom: 17px; background: var(--accent); }
  .mobile-room-list { margin-top: 10px; border-top: 1px solid var(--hairline); }
  .mobile-sheet .text-button { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
