/* Atmosphere belongs in the scene. Navigation and reading remain stable above it. */
.chapter-card,.comfort .chapter-card {
  inset:154px auto auto 50%;transform:translateX(-50%);width:min(480px,80vw);
  padding:14px 20px;background:linear-gradient(90deg,transparent,#091216d9,transparent);
  border-top:1px solid #a2997140;place-items:start center;
}
.chapter-card h2 {font-size:clamp(19px,2.5vw,29px)!important;letter-spacing:2px!important;}
.chapter-card p {font:12px/1.5 Inter,sans-serif;color:#bbc3bd;padding:0;}
.capturing .hud,.capturing #expedition,.capturing .touch,.capturing .prompt,
.capturing .page-card,.capturing .chapter-card,.capturing .toast,.capturing #soundCaption {visibility:hidden;}
.page-card {
  z-index:9;pointer-events:auto;overflow:auto;overscroll-behavior:contain;
  font:14px/1.55 Georgia,serif;white-space:normal;padding:22px 20px 16px;
  max-height:min(48vh,420px);text-align:left;transform:none;animation:none;
}
.page-card>div:not(.title):not(.digit) {white-space:pre-line;}
.page-card .title {padding-right:30px;line-height:1.4;}
.page-card .digit {text-align:center;}
.clue-close {position:absolute;right:2px;top:2px;width:44px;height:44px;border:0;background:transparent;color:#4e3c2a;font-size:25px;cursor:pointer;}
.clue-note {display:block;font:11px/1.5 Inter,sans-serif;margin-top:12px;color:#605543;}
@media(pointer:fine){.clue-note::after{content:' · R to close · J to read';}}
.journal-body .entry-card {font:15px/1.65 Georgia,serif;}
.journal-btn,.exp-toolbar button,.atlas button,.exp-modal header button,.cut-skip {min-height:44px;min-width:44px;}
.settings-grid input[type=range] {min-height:36px;}
.settings-grid .check-label {min-height:44px;}
.sound-tests {display:flex;gap:8px;flex-wrap:wrap;align-content:start;}.sound-tests button {min-height:44px;padding:8px 12px;border:1px solid #53686a;background:#132227;color:#d8e2de;border-radius:6px;cursor:pointer;}.sound-tests p {margin:4px 0;font-size:11px;}
.sheet-close {position:sticky;top:0;float:right;width:44px;height:44px;border:1px solid #53686a;border-radius:7px;background:#132227;color:#d8e2de;font-size:25px;cursor:pointer;z-index:2;}
.settings-panel,.atlas {max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;}
.exp-modal {padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));}
.touch {bottom:env(safe-area-inset-bottom);}
.hud.top {padding-top:max(12px,env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));}
@media(max-width:600px){
  .chapter-card,.comfort .chapter-card {top:143px;width:90vw;padding:9px 12px;}
  .chapter-card h2 {font-size:19px!important;}
  .chapter-card p {font-size:11px;}
  .settings-grid {grid-template-columns:1fr;gap:14px;margin:18px 0;}
  .settings-grid label {font-size:13px;}
  .settings-panel,.atlas {max-height:calc(100dvh - 24px);padding:18px;}
  .page-card {top:185px;right:12px;width:min(290px,calc(100vw - 24px));max-height:calc(100dvh - 430px);min-height:120px;font-size:14px;padding:18px 16px 12px;}
  .map-widget {width:145px;bottom:214px;}
  #awareness {right:12px;bottom:214px;width:calc(100vw - 185px);max-width:195px;}
  .exp-toolbar {bottom:158px;}
  .exp-toolbar button {min-height:44px;padding:8px 10px;}
  #routeHint {bottom:193px;max-width:calc(100vw - 24px);font-size:9px;}
  #soundCaption {bottom:365px;max-width:90vw;}
  .prompt {bottom:132px!important;width:max-content;max-width:92vw;font-size:11px;padding:7px 10px;}
  .objective {font-size:11px;line-height:1.4;}
  .objective b {font-size:10px;}
  .toast {top:141px;font-size:11px;width:max-content;}
}
@media(max-width:600px) and (max-height:720px){
  .map-widget {width:116px;bottom:213px;padding:6px;}
  .map-caption {display:none;}
  .map-title b {font-size:7px;white-space:nowrap;}
  .map-title span {font-size:7px;white-space:nowrap;}
  #awareness {width:calc(100vw - 155px);}
  #soundCaption {bottom:320px;font-size:10px;}
  .chapter-card,.comfort .chapter-card {top:122px;padding:6px 10px;}
  .chapter-card p {display:none;}
  .page-card {top:151px;max-height:calc(100dvh - 350px);}
  .bars {display:none;}
}
@media(max-height:550px) and (min-width:601px){
  .chapter-card,.comfort .chapter-card {top:93px;max-width:46vw;padding:8px 14px;}
  .chapter-card h2 {font-size:18px!important;}
  .chapter-card p {font-size:10px;}
  .exp-toolbar {bottom:max(8px,env(safe-area-inset-bottom));}
  .exp-toolbar button {min-height:44px;}
  .page-card {top:83px;right:12px;width:240px;font-size:13px;max-height:calc(100dvh - 150px);}
  #soundCaption {bottom:145px;max-width:42vw;}
  .settings-panel {max-height:calc(100dvh - 24px);}
  .cutscene {padding:12px 70px;}
  .cut-title {font-size:34px;}
  .cut-text {font-size:16px;line-height:1.45;min-height:3em;margin:10px auto;}
  .cut-hint {bottom:9px;}
}

/* Narration subtitles: inner voice (white), intercom (amber, boxed), his whisper (red, italic). */
.subtitle{position:absolute;left:50%;bottom:214px;transform:translateX(-50%);max-width:min(720px,88vw);padding:6px 14px;border-radius:6px;background:#000000a8;color:#e8e6df;font:500 clamp(14px,2.2vw,19px)/1.4 Georgia,serif;text-align:center;letter-spacing:.01em;pointer-events:none;z-index:30;text-shadow:0 1px 3px #000}
.subtitle.intercom{color:#f5c56b;font-family:ui-monospace,Consolas,monospace;font-size:clamp(13px,1.9vw,16px);border:1px solid #f5c56b55;text-transform:uppercase;letter-spacing:.06em}
.subtitle.whisper{color:#d9473a;font-style:italic;background:#0b0000c0;letter-spacing:.04em}
@media(max-width:800px){.subtitle{bottom:348px}}
@media(max-height:550px) and (min-width:601px){.subtitle{bottom:190px;max-width:52vw;font-size:13px}}
