:root {
  color-scheme: dark;
  --ink: #ede8dc;
  --muted: #a5a093;
  --subtle: #827a6c;
  --paper: #d9c7a8;
  --bg: #14130f;
  --line: rgba(211, 193, 159, .16);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); }
.app { min-height: 100svh; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 68% 42%, rgba(108, 85, 43, .09), transparent 65%); z-index: -1; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .55; }
button, a, input { touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 2px solid #efcf93; outline-offset: 5px; }
button { border-radius: 0; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { max-width: 1480px; margin: 0 auto; padding: 31px 56px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 11px; letter-spacing: .2em; font-weight: 600; white-space: nowrap; }
.brand-icon { color: var(--paper); display: inline-flex; }
.header-right { display: flex; align-items: center; gap: 36px; }
.header-note { color: var(--subtle); font: 9px/1.2 'Courier New', monospace; letter-spacing: .16em; }
.sound-controls { display: flex; align-items: center; gap: 13px; }
.sound-button { color: #b6ae9f; background: transparent; border: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; min-height: 38px; padding: 4px 0; white-space: nowrap; }
.sound-button:hover { color: var(--ink); }
.volume-control { display: flex; align-items: center; min-height: 40px; }
.volume-control input { width: 67px; height: 18px; cursor: pointer; accent-color: #c5b08b; }
.landing { max-width: 1480px; margin: 0 auto; padding: 0 56px; }
.hero { min-height: min(740px, calc(100svh - 178px)); display: grid; grid-template-columns: .76fr 1.24fr; gap: 58px; align-items: center; padding: 72px 0 68px; }
.hero-copy { padding-bottom: 2px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font: 9px/1.5 'Courier New', monospace; letter-spacing: .17em; color: #b9aa8e; }
.eyebrow-line { width: 25px; height: 1px; background: #ad9771; display: inline-block; }
h1 { margin: 30px 0 27px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(76px, 9.25vw, 138px); line-height: .9; letter-spacing: -.065em; }
h1 span, h1 em { display: block; }
h1 em { font-weight: 400; color: var(--paper); margin-top: 2px; padding-bottom: 5px; }
.intro { color: #b0aa9d; margin: 0; font-size: 14px; line-height: 1.9; letter-spacing: .015em; }
.entry-action { margin-top: 31px; }
.primary-button { min-height: 54px; padding: 17px 22px; background: var(--paper); border: 1px solid var(--paper); color: #262319; font-size: 12px; font-weight: 600; letter-spacing: .025em; display: inline-flex; justify-content: space-between; align-items: center; gap: 45px; transition: background .18s ease, transform .18s ease; }
.primary-button:hover:not(:disabled) { background: #eee0c5; transform: translateY(-1px); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.entry-note { margin: 11px 0 0; color: var(--subtle); font-size: 10px; letter-spacing: .025em; }
.loading-progress { display: block; width: 220px; height: 2px; margin-top: 12px; accent-color: var(--paper); }
.horror-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 33px; }
.warning-dot { flex-shrink: 0; width: 4px; height: 4px; background: #a18c68; margin-top: 5px; border-radius: 50%; }
.horror-notice p { color: #938b7e; font-size: 10px; line-height: 1.65; margin: 0; }
.room-figure { min-width: 0; margin: 0; padding-top: 6px; }
.figure-meta { display: flex; justify-content: space-between; align-items: center; color: #9b917f; font: 9px 'Courier New', monospace; letter-spacing: .14em; padding: 0 1px 13px; }
.room-frame { position: relative; border: 1px solid rgba(192, 168, 127, .22); padding: 7px; background: #1b1811; box-shadow: 0 30px 80px rgba(0, 0, 0, .24); }
.room-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.room-shade { position: absolute; inset: 8px; background: linear-gradient(0deg, rgba(6, 6, 4, .57), transparent 25%); pointer-events: none; }
.frame-corner { position: absolute; width: 12px; height: 12px; border-color: rgba(219, 197, 160, .67); border-style: solid; }
.corner-tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.corner-tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.image-caption { position: absolute; left: 29px; bottom: 28px; color: #dbceb6; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 14px; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.tiny-square { width: 4px; height: 4px; background: #cdb68b; opacity: .6; }
figcaption { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding-top: 18px; }
.caption-title { display: flex; align-items: center; gap: 11px; color: #c9c1b2; font-size: 11px; }
.caption-number { font: 10px 'Courier New', monospace; color: #9e917b; border: 1px solid var(--line); padding: 5px 6px; }
.ready-status { display: flex; align-items: center; gap: 7px; color: #928a7c; font-size: 9px; white-space: nowrap; }
.ready-dot, .loading-dot { width: 4px; height: 4px; display: inline-block; border-radius: 50%; background: #b3a17a; }
.loading-dot { opacity: .45; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8d8577; font-size: 10px; letter-spacing: .01em; }
.footer-index { font: 8px 'Courier New', monospace; color: #807767; letter-spacing: .13em; }
.site-credit { padding: 0 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: #8d8577; font: 9px 'Courier New', monospace; letter-spacing: .1em; text-align: center; }
.site-credit a { color: #c5b08b; text-decoration: none; border-bottom: 1px solid rgba(197,176,139,.35); }
.site-credit a:hover, .site-credit a:focus-visible { color: #e4d3b1; border-bottom-color: currentColor; }
.privacy-note { color: #8d8577; }
.studio-panel { margin: 0 0 24px; padding: 14px; border: 1px dashed var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font: 10px 'Courier New', monospace; }
.studio-panel button { display: flex; align-items: center; gap: 10px; padding: 10px 13px; color: var(--ink); background: #2c271e; border: 1px solid var(--line); }
.error-message { max-width: 320px; font-size: 12px; color: #e5b397; line-height: 1.6; }
.experience { position: fixed; inset: 0; isolation: isolate; overflow: hidden; background: #070706; min-height: 100svh; }
.experience-room { position: absolute; inset: 0; display: grid; place-items: center; transition: filter .6s ease; }
.room-photo-wrap { position: relative; width: min(100vw, calc(100svh * 4 / 3)); aspect-ratio: 4 / 3; }
.experience-photo { width: 100%; height: 100%; object-fit: contain; }
.phase-watching .room-photo-wrap { animation: room-breathe 34s ease-out both; }
@keyframes room-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
.doorway-figure { position: absolute; width: 20%; height: auto; left: 9%; top: 38%; opacity: 0; filter: grayscale(1) brightness(.45); transition: opacity .45s ease; pointer-events: none; }
.doorway-figure.is-visible { opacity: .095; }
.experience-vignette { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, .3) 100%); pointer-events: none; }
.experience-header { position: absolute; left: 0; top: 0; right: 0; z-index: 50; padding: max(22px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 24px max(28px, env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(to bottom, rgba(0, 0, 0, .82), transparent); }
.experience-brand { display: flex; align-items: center; gap: 10px; color: #bcae94; font: 10px 'Courier New', monospace; letter-spacing: .14em; white-space: nowrap; }
.experience-actions { display: flex; align-items: center; gap: 27px; }
.exit-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; color: #d9cbb6; border: 1px solid rgba(219, 197, 160, .3); background: rgba(15, 14, 11, .7); font-size: 11px; }
.exit-button:hover { background: #383126; }
kbd { font: 8px 'Courier New', monospace; color: #968775; padding-left: 7px; }
.watch-hint { z-index: 2; position: absolute; bottom: max(44px, env(safe-area-inset-bottom)); left: 20px; right: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; text-shadow: 0 2px 15px #000; pointer-events: none; }
.watch-hint .eyebrow { color: #c8b590; font-size: 9px; letter-spacing: .25em; }
.watch-hint p { color: #e1d6c0; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-style: italic; margin: 12px 0 15px; }
.hint-rule { width: 25px; height: 1px; background: #b7a283; opacity: .6; }
.center-panel { z-index: 30; position: absolute; top: 50%; left: 50%; width: min(460px, calc(100% - 44px)); transform: translate(-50%, -50%); display: flex; align-items: center; flex-direction: column; text-align: center; padding: 24px 0; }
.center-panel h2 { font: 400 clamp(52px, 7vw, 88px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; margin: 19px 0 12px; color: #eadfc8; }
.center-panel > p:not(.eyebrow) { color: #c3b7a2; font-size: 13px; line-height: 1.7; margin: 0 0 29px; max-width: 350px; }
.center-panel .eyebrow { color: #ac9775; }
.panel-backdrop { position: absolute; inset: 0; z-index: 25; background: rgba(5, 5, 4, .8); backdrop-filter: blur(5px); }
.text-button { color: #b1a38b; background: transparent; border: none; padding: 17px 12px; font-size: 11px; margin-top: 6px; min-height: 44px; }
.text-button:hover { color: #fff0d3; }
.share-box { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.share-button { min-height: 44px; padding: 11px 20px; display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--paper); border: 1px solid rgba(217, 199, 168, .55); font-size: 12px; font-weight: 600; letter-spacing: .03em; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.share-button:hover, .share-button[aria-expanded="true"] { background: rgba(217, 199, 168, .12); border-color: var(--paper); color: #fff0d3; }
.share-targets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.share-targets a, .share-targets button { min-height: 36px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 6px; background: rgba(20, 19, 15, .7); border: 1px solid var(--line); color: #c3b7a2; font: 10px/1 'Courier New', monospace; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.share-targets a:hover, .share-targets a:focus-visible, .share-targets button:hover, .share-targets button:focus-visible { color: #fff0d3; border-color: rgba(217, 199, 168, .6); }
.share-status { min-height: 14px; margin: 0; color: #ac9775; font: 10px 'Courier New', monospace; letter-spacing: .1em; word-break: break-all; }
.small-spinner { width: 24px; height: 24px; margin: 0 0 20px; border-radius: 50%; border: 1px solid rgba(220, 200, 166, .22); border-top-color: #d1bb95; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phase-scaring .experience-room { filter: brightness(.12); transition: none; }
.scare-layer { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: rgba(0, 0, 0, .66); pointer-events: none; }
.scare-figure { position: absolute; width: max(100vw, 116svh); max-width: 1760px; aspect-ratio: 1; top: 48%; left: 50%; transform: translate(-50%, -50%); }
.ghost-motion { position: absolute; inset: 0; transform-origin: 52% 43%; animation: ghost-lunge .44s cubic-bezier(.08, .68, .2, 1) both; }
.ghost-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; user-select: none; }
.ghost-frame.active { opacity: 1; }
@keyframes ghost-lunge { 0% { transform: scale(.63) translateY(5%) rotate(-2deg); } 55% { transform: scale(1.025) translateY(0) rotate(1deg); } 100% { transform: scale(1.10) translateY(-1%) rotate(0); } }
.audio-notice { position: absolute; bottom: 5px; left: 15px; right: 15px; z-index: 60; text-align: center; color: #e9c18e; font-size: 11px; }
.fatal-error { padding: 60px 30px; text-align: center; }
.fatal-error h1 { font-size: 58px; }
.fatal-error p { color: var(--muted); margin-bottom: 25px; }
@media (min-width: 1600px) { .hero { min-height: calc(100svh - 174px); } }
@media (max-width: 1100px) {
  .site-header { padding: 26px 36px; }
  .landing { padding: 0 36px; }
  .hero { gap: 32px; }
  .header-note { display: none; }
  .ready-status { font-size: 8px; }
  .footer-index { display: none; }
}
@media (max-width: 760px) {
  .site-header { padding: 18px 23px; gap: 14px; }
  .brand { font-size: 9px; letter-spacing: .14em; gap: 9px; }
  .brand-icon svg { width: 23px; height: 23px; }
  .header-right { gap: 0; }
  .volume-control { display: none; }
  .sound-button { font-size: 10px; }
  .landing { padding: 0 23px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 39px 0 30px; gap: 36px; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-copy > .eyebrow { justify-content: center; font-size: 8px; letter-spacing: .11em; }
  h1 { font-size: clamp(54px, 16.5vw, 98px); display: flex; gap: .17em; justify-content: center; margin: 22px 0 16px; line-height: 1.04; }
  h1 em { margin: 0; }
  .intro { font-size: 12px; line-height: 1.7; }
  .entry-action { margin-top: 22px; }
  .primary-button { min-height: 50px; padding: 14px 19px; gap: 36px; }
  .entry-note { font-size: 9px; }
  .horror-notice { margin-top: 20px; justify-content: center; gap: 6px; }
  .horror-notice p { font-size: 9px; }
  .warning-dot { margin-top: 5px; }
  .loading-progress { margin: 10px auto 0; }
  .room-figure { padding: 0; }
  .figure-meta { font-size: 8px; padding-bottom: 10px; }
  .room-frame { padding: 5px; }
  .room-shade { inset: 6px; }
  .image-caption { left: 20px; bottom: 22px; font-size: 12px; }
  figcaption { padding-top: 13px; }
  .caption-title { font-size: 10px; }
  .ready-status { font-size: 8px; gap: 5px; }
  .site-footer { padding: 20px 0 24px; font-size: 9px; flex-direction: column; gap: 8px; }
  .experience-header { padding: max(15px, env(safe-area-inset-top)) 16px 24px; gap: 10px; }
  .experience-brand { gap: 6px; font-size: 8px; letter-spacing: .1em; }
  .experience-actions { gap: 14px; }
  .exit-button { min-height: 42px; padding: 8px 10px; }
  .exit-button kbd { display: none; }
  .watch-hint { bottom: max(72px, env(safe-area-inset-bottom)); }
  .watch-hint p { font-size: 17px; }
  .watch-hint .eyebrow { font-size: 8px; }
  .center-panel h2 { font-size: 66px; }
  .center-panel > p:not(.eyebrow) { font-size: 12px; }
  .error-message { margin-left: auto; margin-right: auto; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .experience-header { padding-top: 8px; }
  .watch-hint { bottom: 16px; }
  .watch-hint p { margin-top: 7px; font-size: 16px; }
  .watch-hint .hint-rule { display: none; }
  .center-panel h2 { font-size: 46px; margin: 10px 0 6px; }
  .center-panel > p:not(.eyebrow) { margin-bottom: 15px; }
  .center-panel { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .doorway-figure { display: none; }
  .ghost-motion { transform: none; }
}
.reduced-motion .doorway-figure { display: none; }
