:root {
  color-scheme: dark;
  --night: #050910;
  --navy: #0c1826;
  --panel: rgba(9, 19, 31, 0.9);
  --panel-soft: rgba(15, 30, 47, 0.82);
  --text: #f0ecdf;
  --muted: #aab5c2;
  --gold: #e0b85c;
  --amber: #f2c14e;
  --cyan: #79d9d5;
  --red: #db6464;
  --green: #75d6ad;
  --border: rgba(224, 184, 92, 0.38);
  --shadow: rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }
html { background: var(--night); }
body { min-height: 100vh; min-height: 100svh; margin: 0; color: var(--text); background: var(--night); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button { color: inherit; font: inherit; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
[hidden] { display: none !important; }

.game-shell, .security-shell, .exit-shell { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.scene-image { position: fixed; z-index: -3; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: auto; }
.station-viewport { position: fixed; z-index: 0; inset: 0; overflow: hidden; cursor: grab; touch-action: none; perspective: 980px; perspective-origin: 50% 48%; background: radial-gradient(circle at 50% 38%, #193448 0, #0b1723 35%, #03070c 78%); }
.station-viewport.is-looking { cursor: grabbing; }
.station-world { --camera-x: 0px; --camera-z: 0px; --camera-y: 0px; --station-yaw: 0deg; --station-pitch: 0deg; --station-roll: 0deg; --middle-opacity: 0.28; --right-opacity: 0.34; --left-opacity: 0.38; position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--station-pitch)) rotateY(var(--station-yaw)) rotateZ(var(--station-roll)) translate3d(var(--camera-x), var(--camera-y), var(--camera-z)); will-change: transform; }
.station-photo, .scene-object { position: absolute; transform-style: preserve-3d; backface-visibility: visible; }
.station-photo { aspect-ratio: 2 / 1; pointer-events: none; background-image: url("../images/modern-tijdstation-digitaal.webp"); background-repeat: no-repeat; background-position: center; background-size: 100% 100%; image-rendering: auto; }
.station-photo--back { left: -234.285vw; top: -117.143vw; width: 468.57vw; transform: translateZ(-2300px); }
.station-photo--side { left: 0; top: 0; width: 230vw; height: 234.286vw; aspect-ratio: auto; }
.station-photo--side-right { background-image: url("../images/station-rechter-uitbreiding.webp"); background-position: right center; background-size: auto 100%; transform-origin: 0 50%; transform: translate3d(234.285vw, -117.143vw, -2300px) rotateY(-90deg); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 96%, transparent 100%); }
.station-photo--middle, .station-photo--right, .station-photo--left { display: none; }
.scene-vignette, .security-scrim, .exit-glow { position: fixed; z-index: -2; inset: 0; pointer-events: none; }
.page--station .scene-vignette { z-index: 2; background: linear-gradient(180deg, rgba(3, 7, 12, 0.18), transparent 25%, transparent 62%, rgba(3, 7, 12, 0.62)), radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.24)); }
.security-scrim { background: linear-gradient(180deg, rgba(2, 5, 9, 0.68), rgba(2, 6, 11, 0.46) 24%, rgba(2, 6, 11, 0.82)); }
.exit-glow { background: radial-gradient(circle at center, rgba(117, 214, 173, 0.2), rgba(4, 9, 15, 0.8) 68%); }

.hud { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; min-height: 78px; padding: 14px clamp(16px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); background: rgba(4, 10, 17, 0.78); backdrop-filter: blur(14px); }
.hud-brand { display: grid; gap: 3px; }
.hud-kicker, .eyebrow { color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.hud-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 400; }
.hud-actions { display: flex; align-items: center; gap: 12px; }
.timer-wrap { display: grid; min-width: 84px; text-align: right; }
.timer-wrap span { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.timer { color: var(--amber); font-family: Consolas, monospace; font-size: 1.28rem; font-variant-numeric: tabular-nums; }
.timer.warning { color: #ff9b57; }
.timer.critical, .timer.expired { color: var(--red); animation: pulse 1.1s ease-in-out infinite; }
.icon-button, .hint-button, .secondary-button { border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: rgba(8, 18, 29, 0.78); cursor: pointer; }
.icon-button { min-height: 40px; padding: 8px 12px; font-size: 0.78rem; }

.mission-card { position: fixed; z-index: 15; top: 96px; left: clamp(14px, 3vw, 42px); width: min(360px, calc(100% - 28px)); padding: 15px 17px; border: 1px solid var(--border); border-radius: 12px; background: rgba(4, 10, 17, 0.78); backdrop-filter: blur(12px); }
.mission-card p { margin: 0; }
.mission-card .eyebrow { margin-bottom: 7px; }
.mission-card [data-objective] { color: var(--text); font-size: 0.9rem; line-height: 1.5; }

.start-overlay { position: fixed; z-index: 50; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(2, 6, 11, 0.66); backdrop-filter: blur(8px); }
.start-overlay.is-hidden { opacity: 0; pointer-events: none; transition: opacity 500ms ease; }
.start-dialog { width: min(640px, 100%); padding: clamp(28px, 6vw, 54px); border: 1px solid var(--border); border-radius: 22px; background: rgba(7, 17, 28, 0.94); box-shadow: 0 28px 100px var(--shadow); text-align: center; }
.start-dialog h1, .exit-card h1 { margin: 10px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5.7rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.045em; }
.start-dialog h1 span, .exit-card h1 span { color: var(--gold); }
.start-dialog p { color: var(--muted); line-height: 1.65; }
.start-dialog .start-note { margin: 22px 0; color: var(--text); font-size: 0.8rem; }
.primary-button { min-height: 48px; padding: 12px 20px; border: 1px solid var(--amber); border-radius: 9px; color: #111820; background: var(--amber); cursor: pointer; font-weight: 850; box-shadow: 0 12px 30px rgba(242, 193, 78, 0.16); }
.primary-button:hover { background: #ffda7d; transform: translateY(-1px); }

.hotspot, .door-hotspot { border: 1px solid transparent; color: var(--text); background: rgba(4,10,17,0.01); cursor: pointer; transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.hotspot:hover, .hotspot:focus-visible, .door-hotspot:hover, .door-hotspot:focus-visible { border-color: rgba(224, 184, 92, 0.82); background-color: rgba(224, 184, 92, 0.1); box-shadow: 0 0 30px rgba(224, 184, 92, 0.25); }
.object-label { position: absolute; left: 50%; bottom: -34px; padding: 6px 8px; border-radius: 5px; color: var(--text); background: rgba(4,10,17,0.92); font-size: 0.72rem; white-space: nowrap; opacity: 0; transform: translateX(-50%); transition: opacity 160ms ease; }
.hotspot:hover .object-label, .hotspot:focus-visible .object-label { opacity: 1; }
.hotspot--board { left: 0; top: 0; width: 395px; height: 285px; transform: translate3d(-735px, -515px, -650px); border-radius: 8px; }
.hotspot--glass { left: 0; top: 0; width: 1320px; height: 860px; transform: translate3d(-660px, -790px, -2280px); background: rgba(121,217,213,0.01); }
.hotspot--glass:disabled { opacity: 0.16; pointer-events: none; }
.hotspot--glass:not(:disabled) { animation: glassSignal 2.8s ease-in-out infinite; }
.hotspot--bench { left: 0; top: 0; width: 470px; height: 230px; transform: translate3d(-720px, 195px, -350px); border-color: rgba(224,184,92,0.18); border-radius: 10px; box-shadow: inset 0 0 30px rgba(224,184,92,0.04); }
.hotspot--bench .object-label { opacity: 0.68; }
.door-hotspot { left: 0; top: 0; width: 245px; height: 420px; border-radius: 6px 6px 1px 1px; }
.door-hotspot--one { transform: translate3d(275px, -95px, -900px); }
.door-hotspot--two { transform: translate3d(590px, -120px, -1350px); }
.security-booth { left: 0; top: 0; width: 760px; height: 500px; transform-origin: 0 50%; transform: translate3d(234.1vw, -270px, -1640px) rotateY(-90deg); border: 14px solid #241b15; border-top-color: #8d6738; border-radius: 8px 8px 2px 2px; background: linear-gradient(90deg, rgba(18,27,31,0.94), rgba(47,60,61,0.88)), repeating-linear-gradient(90deg, transparent 0 210px, rgba(181,139,75,0.28) 212px 220px); box-shadow: inset 0 0 0 4px #10171a, 0 18px 55px rgba(0,0,0,0.7); }
.booth-sign { position: absolute; left: 28px; top: 20px; padding: 8px 15px; border: 1px solid rgba(224,184,92,0.52); color: var(--gold); background: rgba(4,9,12,0.86); font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 0.13em; text-transform: uppercase; }
.booth-window { position: absolute; left: 28px; right: 270px; top: 86px; bottom: 30px; border: 10px solid #161b1c; background: linear-gradient(125deg, rgba(121,217,213,0.08), rgba(2,7,10,0.86)), repeating-linear-gradient(90deg, transparent 0 160px, rgba(224,184,92,0.2) 162px 168px); box-shadow: inset 0 0 45px rgba(121,217,213,0.08); }
.booth-lamp { position: absolute; right: 110px; top: 28px; width: 28px; height: 40px; border: 3px solid #8d6738; border-radius: 50% 50% 35% 35%; background: #f4c566; box-shadow: 0 0 28px rgba(244,197,102,0.85); }
.door-hotspot--security { width: 245px; height: 390px; transform-origin: 0 50%; transform: translate3d(234vw, -142px, -1120px) rotateY(-90deg); border: 12px solid #21170f; border-top-color: #ad8149; color: var(--text); background: linear-gradient(90deg, #24170e 0 12%, #674226 48%, #1a100a 100%); box-shadow: inset 0 0 0 3px rgba(224,184,92,0.22), inset 0 0 45px rgba(0,0,0,0.5), 0 10px 32px rgba(0,0,0,0.72); }
.door-hotspot--security::before { position: absolute; right: 20px; top: 51%; width: 15px; height: 15px; content: ""; border: 2px solid #3c260f; border-radius: 50%; background: #d0a758; box-shadow: 0 0 10px rgba(224,184,92,0.72); }
.door-hotspot--security::after { position: absolute; left: 20px; right: 20px; top: 62px; height: 4px; content: ""; background: rgba(224,184,92,0.24); box-shadow: 0 210px 0 rgba(224,184,92,0.14); }
.door-number { position: absolute; left: 50%; top: 18px; bottom: auto; width: max-content; padding: 5px 10px; border: 1px solid rgba(224,184,92,0.5); color: #f2d188; background: rgba(8,8,6,0.72); font: 700 0.72rem Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; transform: translateX(-50%); }
.camera-mark { position: absolute; left: 50%; top: -43px; color: rgba(240, 236, 223, 0.78); font-size: 1.75rem; transform: translateX(-50%); }
.door-hotspot--security.camera-awake .camera-mark { color: var(--red); animation: cameraBlink 2.2s infinite; }
.card-reader { position: absolute; right: -58px; top: 38%; width: 34px; height: 68px; border: 3px solid #c94d4d; border-radius: 6px; background: linear-gradient(#1c2425 0 30%, rgba(219,100,100,0.9) 31% 42%, #0a0f11 43%); box-shadow: 0 0 6px #050708, 0 0 24px rgba(219,100,100,0.9); opacity: 0; }
.card-reader::after { position: absolute; left: 50%; top: 44px; content: "PAS"; color: #f3d4d4; font: 800 9px Consolas, monospace; letter-spacing: 0.08em; transform: translateX(-50%); }
.door-hotspot--security .card-reader { opacity: 1; }
.door-hotspot.is-locked .card-reader, .door-hotspot.is-unlocked .card-reader { opacity: 1; }
.door-hotspot.is-unlocked .card-reader { border-color: var(--green); background: rgba(117, 214, 173, 0.55); box-shadow: 0 0 22px var(--green); }

.inventory { position: fixed; z-index: 20; left: clamp(14px, 3vw, 42px); bottom: 76px; min-width: 175px; min-height: 62px; padding: 9px 11px; display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 10px; background: rgba(4, 10, 17, 0.82); backdrop-filter: blur(10px); }
.inventory-label { color: var(--gold); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.inventory-empty { color: var(--muted); font-size: 0.8rem; }
.keycard { min-height: 34px; padding: 6px 9px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(121, 217, 213, 0.45); border-radius: 6px; color: var(--text); background: rgba(121, 217, 213, 0.1); cursor: grab; }
.keycard.selected { outline: 2px solid var(--cyan); }
.keycard-icon { color: var(--cyan); }
.message-panel { position: fixed; z-index: 20; left: 50%; bottom: 18px; width: min(620px, calc(100% - 320px)); min-height: 48px; padding: 12px 16px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; background: rgba(4, 10, 17, 0.88); box-shadow: 0 10px 30px var(--shadow); text-align: center; transform: translateX(-50%); }
.message-panel p { margin: 0; font-size: 0.88rem; line-height: 1.45; }
.hint-button { position: fixed; z-index: 25; right: clamp(14px, 3vw, 42px); bottom: 20px; min-height: 44px; padding: 9px 14px; }
.hint-button:disabled { color: #717b87; cursor: not-allowed; opacity: 0.78; }
.hint-button.available { color: var(--amber); }
.hint-button.attention { animation: hintGlow 2s ease-in-out infinite; }
.train-light { position: fixed; z-index: 5; top: 0; bottom: 0; left: -35%; width: 20%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 219, 143, 0.34), transparent); opacity: 0; transform: skewX(-14deg); }
.train-light.passing { animation: trainPass 7s linear; }
.walk-guide { position: fixed; z-index: 18; left: 50%; top: 88px; margin: 0; padding: 7px 11px; border: 1px solid rgba(121, 217, 213, 0.26); border-radius: 999px; color: #d8f4f1; background: rgba(4, 10, 17, 0.74); backdrop-filter: blur(9px); font-size: 0.72rem; letter-spacing: 0.025em; pointer-events: none; transform: translateX(-50%); }
.walk-guide kbd { min-width: 1.45em; padding: 1px 4px; display: inline-block; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 4px; color: var(--amber); background: rgba(255, 255, 255, 0.08); font: inherit; font-weight: 800; text-align: center; }
.view-reset { position: fixed; z-index: 25; right: clamp(14px, 3vw, 42px); top: 94px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(121, 217, 213, 0.44); border-radius: 8px; color: var(--text); background: rgba(4, 10, 17, 0.84); backdrop-filter: blur(10px); cursor: pointer; }
.view-reset:hover { border-color: var(--cyan); background: rgba(121, 217, 213, 0.12); }

.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; }
.security-shell { min-height: 100svh; overflow: hidden; background: #02060b; }
.screen-puzzle-stage { position: fixed; z-index: 0; inset: 78px 0 0; overflow: hidden; background: #02060b; }
.security-scene-frame { position: absolute; left: 50%; top: 50%; width: min(100vw, calc(177.68vh - 138.64px)); aspect-ratio: 1672 / 941; transform: translate(-50%, -50%); }
.security-scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.monitor-selection { position: absolute; border: 2px solid transparent; border-radius: 1.6%; pointer-events: none; transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.monitor-selection::after { position: absolute; right: 7px; top: 7px; width: 25px; height: 25px; display: grid; place-items: center; content: attr(data-step); border: 1px solid var(--amber); border-radius: 50%; color: #121920; background: var(--amber); box-shadow: 0 0 16px rgba(242, 193, 78, 0.5); font: 900 0.75rem Consolas, monospace; opacity: 0; }
.monitor-selection.has-step { border-color: rgba(242, 193, 78, 0.92); background: rgba(242, 193, 78, 0.035); box-shadow: inset 0 0 28px rgba(242, 193, 78, 0.12), 0 0 20px rgba(242, 193, 78, 0.2); }
.monitor-selection.has-step::after { opacity: 1; }
.monitor-selection--top-left { left: 33.3%; top: 16.6%; width: 17.5%; height: 21.5%; }
.monitor-selection--top-right { left: 51.1%; top: 16.6%; width: 17.7%; height: 21.5%; }
.monitor-selection--bottom-left { left: 33.3%; top: 38.9%; width: 17.5%; height: 21.8%; }
.monitor-selection--bottom-right { left: 51.1%; top: 38.9%; width: 17.7%; height: 21.8%; }
.physical-console { position: absolute; left: 44.56%; top: 64.72%; width: 11.31%; height: 3.08%; display: flex; flex-direction: row-reverse; align-items: center; gap: 11.6%; }
.console-sequence-buttons { width: 74%; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 6.4%; }
.console-sequence-buttons button { aspect-ratio: 1; padding: 0; border: 1px solid rgba(121, 217, 213, 0.82); border-radius: 10%; color: #b9fcf7; background: rgba(4, 14, 22, 0.7); box-shadow: inset 0 0 10px rgba(121, 217, 213, 0.12), 0 0 7px rgba(121, 217, 213, 0.25); cursor: pointer; font: 900 clamp(0.62rem, 1vw, 1rem) Consolas, monospace; text-shadow: 0 0 8px rgba(121, 217, 213, 0.7); }
.console-sequence-buttons button:hover, .console-sequence-buttons button:focus-visible { border-color: #e4ffff; background: rgba(121, 217, 213, 0.2); }
.console-sequence-buttons button.selected { border-color: var(--amber); color: #fff4d5; background: rgba(242, 193, 78, 0.25); box-shadow: inset 0 0 12px rgba(242, 193, 78, 0.22), 0 0 13px rgba(242, 193, 78, 0.56); }
.console-confirm { width: 13.8%; aspect-ratio: 1; padding: 0; border: 2px solid rgba(255, 194, 75, 0.94); border-radius: 50%; background: radial-gradient(circle at 40% 34%, #ffd36d, #d77619 62%, #51230b 100%); box-shadow: inset 0 -3px 5px rgba(56, 18, 2, 0.58), 0 0 9px rgba(242, 142, 45, 0.72); cursor: pointer; }
.console-confirm:hover, .console-confirm:focus-visible { filter: brightness(1.18); box-shadow: inset 0 -5px 8px rgba(56, 18, 2, 0.4), 0 0 24px rgba(255, 174, 68, 0.95); }
.console-confirm.confirmed { border-color: var(--green); background: radial-gradient(circle at 40% 34%, #c6ffe5, #4aa879 62%, #153b2a 100%); box-shadow: 0 0 24px rgba(117, 214, 173, 0.9); }
.screen-puzzle-info { position: fixed; z-index: 20; left: clamp(14px, 2.2vw, 34px); bottom: 22px; width: min(390px, calc(100% - 28px)); padding: 15px 17px; border: 1px solid rgba(224, 184, 92, 0.42); border-radius: 12px; background: rgba(3, 8, 14, 0.68); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4); backdrop-filter: blur(7px); }
.screen-puzzle-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.screen-puzzle-heading .eyebrow { margin: 0 0 3px; }
.screen-puzzle-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 400; }
.status-light { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(219, 100, 100, 0.5); border-radius: 999px; color: var(--red); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.status-light.solved { border-color: rgba(117, 214, 173, 0.55); color: var(--green); }
.screen-puzzle-instruction { margin: 10px 0; color: #d1d8df; font-size: 0.85rem; line-height: 1.45; }
.sequence-readout { display: block; color: var(--amber); font: 900 1.2rem Consolas, monospace; letter-spacing: 0.1em; }
.console-feedback { min-height: 22px; margin: 8px 0 0; color: var(--muted); font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
.console-feedback.error { color: #f08c8c; }
.console-feedback.success { color: var(--green); }
.sequence-clear { margin-top: 8px; padding: 5px 8px; border: 1px solid rgba(121, 217, 213, 0.35); border-radius: 6px; color: #d9f5f2; background: rgba(7, 17, 28, 0.68); cursor: pointer; font-size: 0.72rem; }
.sequence-clear:hover { border-color: var(--cyan); }
.screen-puzzle-stage.is-error { animation: consoleError 300ms ease-in-out 2; }
.screen-puzzle-stage.is-solved .monitor-selection { border-color: rgba(117, 214, 173, 0.68); box-shadow: inset 0 0 26px rgba(117, 214, 173, 0.08), 0 0 15px rgba(117, 214, 173, 0.16); }
.hint-button--room { position: fixed; }

.exit-shell { display: grid; place-items: center; padding: 24px; }
.exit-card { width: min(720px, 100%); padding: clamp(28px, 6vw, 58px); border: 1px solid rgba(117,214,173,0.5); border-radius: 22px; background: rgba(4, 12, 20, 0.9); box-shadow: 0 30px 100px var(--shadow), 0 0 55px rgba(117,214,173,0.12); text-align: center; backdrop-filter: blur(14px); }
.exit-card > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.results div { padding: 14px 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; background: rgba(15,30,47,0.6); }
.results dt { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; }
.results dd { margin: 6px 0 0; color: var(--amber); font: 800 1.25rem Consolas, monospace; }

@keyframes pulse { 50% { opacity: 0.58; } }
@keyframes cameraBlink { 50% { opacity: 0.35; } }
@keyframes hintGlow { 50% { box-shadow: 0 0 26px rgba(242,193,78,0.36); } }
@keyframes trainPass { 0% { left: -35%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 0.7; } 100% { left: 120%; opacity: 0; } }
@keyframes glassSignal { 50% { box-shadow: inset 0 0 32px rgba(121, 217, 213, 0.09); } }
@keyframes consoleError { 25% { filter: saturate(0.7) brightness(0.82); } 50% { transform: translateX(3px); } 75% { transform: translateX(-3px); } }

@media (max-width: 900px) {
  .camera-pool, .timeline { grid-template-columns: repeat(2, 1fr); }
  .message-panel { left: 14px; width: calc(100% - 28px); bottom: 76px; transform: none; }
  .inventory { bottom: 134px; }
  .walk-guide { top: 84px; }
}

@media (max-width: 620px) {
  .hud { min-height: 70px; padding: 10px 12px; }
  .hud-actions { gap: 6px; }
  .icon-button { max-width: 88px; padding: 6px 8px; }
  .mission-card { top: 82px; }
  .walk-guide { top: auto; bottom: 188px; width: max-content; max-width: calc(100% - 28px); text-align: center; }
  .view-reset { top: 78px; right: 12px; max-width: 112px; }
  .security-shell { padding: 0; }
  .screen-puzzle-stage { inset: 70px 0 0; }
  .security-scene-frame { width: min(100vw, calc(177.68vh - 124.38px)); }
  .screen-puzzle-info { top: 82px; bottom: auto; left: 10px; width: calc(100% - 20px); padding: 10px 12px; }
  .screen-puzzle-heading h1 { font-size: 1.15rem; }
  .screen-puzzle-heading .status-light { max-width: 118px; margin: 0; padding: 5px 7px; font-size: 0.56rem; text-align: center; }
  .screen-puzzle-instruction { margin: 6px 0; font-size: 0.75rem; }
  .console-feedback { min-height: 18px; margin-top: 5px; }
  .sequence-clear { margin-top: 5px; }
  .physical-console { position: fixed; z-index: 32; left: 12px; right: 12px; top: auto; bottom: 74px; width: auto; height: 62px; padding: 7px 68px 7px 8px; border: 1px solid rgba(224, 184, 92, 0.42); border-radius: 11px; background: rgba(3, 8, 14, 0.86); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); }
  .console-sequence-buttons { width: 100%; gap: 8px; }
  .console-sequence-buttons button { width: 100%; height: 46px; aspect-ratio: auto; border-radius: 7px; font-size: 1rem; }
  .console-confirm { position: absolute; right: 9px; top: 7px; width: 48px; height: 48px; }
  .inventory { left: 12px; bottom: 132px; min-width: 145px; }
  .hint-button { right: 12px; bottom: 18px; }
  .results { grid-template-columns: 1fr; }
}

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