/* The Hallway: full-screen 3D view with a thin HUD on top. */
:root {
  --paper: #F4EEE3;
  --ink: #1B1915;
  --accent: #E4572E;
  --gold: #F2A541;
  --display: 'Corben', Georgia, serif;
  --body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0e0b08; color: var(--paper); font-family: var(--body); }
.mono { font-family: var(--mono); }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view:active { cursor: grabbing; }

.hud { position: fixed; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; pointer-events: none; z-index: 2; }
.hud--top { top: 0; padding-top: max(12px, env(safe-area-inset-top)); background: linear-gradient(#0e0b08cc, transparent); }
.hud > * { pointer-events: auto; }
.hud__back { color: var(--paper); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: #1b1915cc; border: 1px solid #f4eee333; }
.hud__back:hover, .hud__back:focus-visible { background: var(--paper); color: var(--ink); }
.hud__where { flex: 1; text-align: center; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__btn { font-size: 18px; width: 40px; height: 40px; border-radius: 50%; background: #1b1915cc; border: 1px solid #f4eee333; color: var(--paper); cursor: pointer; }

.prompt {
  position: fixed; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 56px); transform: translateX(-50%); width: min(92vw, 520px);
  z-index: 2; max-width: min(92vw, 520px); display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: var(--paper); color: var(--ink);
  text-decoration: none; box-shadow: 0 10px 40px #000a; border: 2px solid var(--ink);
}
.prompt[hidden] { display: none; }
.prompt__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.prompt__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.prompt__title { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prompt__go { flex: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; }
.prompt:hover .prompt__go, .prompt:focus-visible .prompt__go { background: var(--ink); }

.pedals { position: fixed; right: 16px; bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px)); z-index: 2; }
.pedals[hidden] { display: none; }
.pedals button { width: 56px; height: 56px; border-radius: 50%; font-size: 22px; background: #1b1915cc; color: var(--paper); border: 1px solid #f4eee355; touch-action: none; }

.intro { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at center, #0e0b0899, #0e0b08ee); }
.intro[hidden] { display: none; }
.intro__card { max-width: 460px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; padding: 26px 26px 20px; box-shadow: 8px 8px 0 var(--accent); }
.intro__eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.intro h1 { font-family: var(--display); font-size: 40px; line-height: 1.05; margin: 6px 0 12px; }
.intro p { margin: 0 0 12px; line-height: 1.5; }
.intro__keys { font-size: 12.5px; background: #1b19150f; border-radius: 10px; padding: 10px 12px; }
.k-touch { display: none; }
@media (pointer: coarse) { .k-touch { display: inline; } .k-desk { display: none; } }
.intro__go { width: 100%; font: 700 17px var(--body); padding: 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--accent); color: #fff; cursor: pointer; }
.intro__go:disabled { background: #b9b2a5; cursor: progress; }
.intro__go:not(:disabled):hover { background: var(--ink); }
.intro__skip { display: block; text-align: center; margin-top: 12px; color: var(--ink); font-size: 14px; }
.nojs { position: fixed; inset: auto 0 0 0; padding: 16px; text-align: center; background: var(--paper); color: var(--ink); z-index: 5; }
.nojs a { color: var(--ink); }
