:root {
  color-scheme: dark;
  --gold: #f1c66d;
  --gold-soft: #ffe5a3;
  --ink: #080706;
  --panel: rgba(18, 13, 9, 0.9);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(248, 211, 122, 0.18), transparent 34%),
    linear-gradient(180deg, #050507 0%, #11100e 45%, #050403 100%);
  color: #f9ebc8;
  font-family: Georgia, "Times New Roman", serif;
}

button {
  font: inherit;
}

.game-shell {
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}

.elevator-card {
  width: min(100%, 470px);
  height: min(100%, 920px);
  aspect-ratio: 9 / 16;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 219, 139, 0.68);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 12% 88%, rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, #201812, #090706);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.62),
    inset 0 0 0 5px rgba(75, 43, 18, 0.72),
    inset 0 0 28px rgba(255, 201, 103, 0.18);
}

.topbar {
  position: absolute;
  z-index: 30;
  top: 12px;
  left: 12px;
  right: 12px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-soft);
  pointer-events: none;
}

.topbar span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.76;
}

.topbar strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.topbar button {
  pointer-events: auto;
  border: 1px solid rgba(255, 223, 155, 0.55);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(16, 10, 6, 0.7);
  color: #ffe8af;
  font-size: 12px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  pointer-events: none;
}

.top-actions button {
  min-width: 0;
  padding-inline: 10px;
}

#depth-toggle.is-active {
  border-color: rgba(119, 221, 255, 0.72);
  color: #d9f7ff;
  box-shadow: inset 0 0 14px rgba(71, 194, 255, 0.18);
}

.stage,
.room {
  position: absolute;
  inset: 0;
}

.room {
  background:
    radial-gradient(circle at 50% 18%, rgba(91, 67, 45, 0.32), transparent 42%),
    linear-gradient(180deg, #211913, #090706);
  transform-origin: 50% 46%;
}

.room.is-moving {
  animation: cabinRide calc(520ms + var(--distance, 1) * 90ms) ease-in-out infinite;
}

.room.is-moving.ride-good {
  animation-name: cabinRideGood;
  animation-duration: calc(620ms + var(--distance, 1) * 75ms);
}

.room.is-moving.ride-bad {
  animation-name: cabinRideBad;
  animation-duration: calc(480ms + var(--distance, 1) * 62ms);
}

.room.is-moving.ride-danger {
  animation-name: cabinRideDanger;
  animation-duration: calc(360ms + var(--distance, 1) * 48ms);
}

.display {
  position: absolute;
  z-index: 10;
  top: 11.6%;
  left: 35%;
  width: 30%;
  height: 6%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 221, 143, 0.52);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 15%, rgba(255, 226, 141, 0.24), transparent 58%), #110b07;
  color: #ffd978;
  font-family: "Courier New", monospace;
  font-size: clamp(24px, 8vw, 40px);
  font-weight: 900;
  box-shadow: inset 0 0 16px rgba(255, 176, 51, 0.18), 0 0 18px rgba(0, 0, 0, 0.56);
}

.floor-number {
  display: block;
}

.display-arrow {
  position: absolute;
  right: 11%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  filter: drop-shadow(0 0 5px rgba(255, 217, 120, 0.82));
}

.display-arrow.up {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #ffd978;
}

.display-arrow.down {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #ffd978;
}

.cabin {
  position: absolute;
  inset: 0;
  transform-origin: 50% 45%;
  --opening-top: 0%;
  --opening-left: 0%;
  --opening-width: 100%;
  --opening-height: 100%;
  --door-bottom-bleed: 0%;
  --scene-bleed-x: 0%;
  --scene-bleed-top: 0%;
  --scene-bleed-bottom: 0%;
  --door-open-duration: 3.26s;
  --door-close-duration: 3.15s;
}

.view {
  position: absolute;
  z-index: 1;
  top: var(--opening-top);
  left: var(--opening-left);
  width: var(--opening-width);
  height: var(--opening-height);
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 214, 0.96), rgba(252, 218, 122, 0.7) 48%, rgba(102, 205, 255, 0.35)),
    #111;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.42);
}

.view.has-image {
  background:
    linear-gradient(180deg, #19100b 0%, #080504 100%),
    #080504;
}

.view.has-image::before {
  content: "";
  position: absolute;
  inset: calc(var(--scene-bleed-top) * -1) calc(var(--scene-bleed-x) * -1) calc(var(--scene-bleed-bottom) * -1);
  background: var(--scene) center bottom / cover no-repeat;
}

.view.depth-ready::before {
  opacity: 0;
}

.depth-canvas {
  position: absolute;
  z-index: 1;
  inset: calc(var(--scene-bleed-top) * -1) calc(var(--scene-bleed-x) * -1) calc(var(--scene-bleed-bottom) * -1);
  width: calc(100% + var(--scene-bleed-x) * 2);
  height: calc(100% + var(--scene-bleed-top) + var(--scene-bleed-bottom));
  opacity: 0;
  pointer-events: none;
}

.view.depth-ready .depth-canvas {
  opacity: 1;
}

.view.has-image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 9, 0.04), rgba(4, 5, 9, 0.14));
  pointer-events: none;
}

.scene-effects {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.smoke {
  position: absolute;
  display: block;
  width: 34%;
  height: 20%;
  border-radius: 999px;
  background: radial-gradient(circle at 45% 45%, rgba(230, 226, 210, 0.34), rgba(170, 166, 154, 0.13) 48%, transparent 72%);
  filter: blur(7px);
  mix-blend-mode: screen;
  transform-origin: center;
}

.puff-a {
  right: 14%;
  top: 18%;
  animation: smokeDrift 7.4s ease-in-out infinite;
}

.puff-b {
  right: 4%;
  top: 27%;
  width: 42%;
  animation: smokeDrift 9s ease-in-out -2.2s infinite;
}

.puff-c {
  left: 38%;
  top: 30%;
  width: 26%;
  height: 15%;
  opacity: 0.75;
  animation: smokeDrift 8.2s ease-in-out -4s infinite;
}

.gauge-needle {
  position: absolute;
  left: 50%;
  top: 34.2%;
  width: 2px;
  height: 5.6%;
  border-radius: 999px;
  background: #f8d47c;
  box-shadow: 0 0 10px rgba(255, 202, 102, 0.9);
  transform-origin: 50% 90%;
  animation: needleTremble 520ms steps(2, end) infinite;
}

.indicator {
  position: absolute;
  top: 33%;
  width: 9.5%;
  aspect-ratio: 1;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.indicator.amber {
  left: 39%;
  background: radial-gradient(circle, rgba(255, 231, 137, 0.95), rgba(242, 147, 34, 0.36) 48%, transparent 72%);
  animation: bulbPulse 1.45s ease-in-out infinite;
}

.indicator.teal {
  right: 35%;
  background: radial-gradient(circle, rgba(146, 248, 255, 0.95), rgba(35, 185, 204, 0.38) 48%, transparent 72%);
  animation: bulbPulse 620ms steps(2, end) infinite;
}

.spark {
  position: absolute;
  width: 17%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 245, 255, 0.95), transparent);
  box-shadow: 0 0 14px rgba(100, 237, 255, 0.9);
  opacity: 0;
  transform-origin: center;
}

.spark-a {
  right: 26%;
  top: 35%;
  transform: rotate(-34deg);
  animation: sparkFlash 2.1s steps(1, end) infinite;
}

.spark-b {
  left: 22%;
  top: 47%;
  transform: rotate(18deg);
  animation: sparkFlash 3.2s steps(1, end) -1.1s infinite;
}

.spark-c {
  right: 18%;
  top: 52%;
  transform: rotate(48deg);
  animation: sparkFlash 2.7s steps(1, end) -0.5s infinite;
}

.sun-band,
.shadow-band {
  position: absolute;
  left: -20%;
  right: -20%;
  transform: rotate(-11deg);
  transform-origin: center;
}

.sun-band {
  top: 41%;
  height: 28%;
  opacity: 0.42;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 0 34%, rgba(255, 220, 113, 0.32) 45%, rgba(255, 241, 181, 0.24) 53%, transparent 66% 100%);
  animation: sunBreathe 4.8s ease-in-out infinite;
}

.shadow-band {
  height: 18%;
  opacity: 0.22;
  background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(0, 0, 0, 0.62) 12% 19%, transparent 19% 31%);
  filter: blur(1px);
  animation: shadowSlide 7s ease-in-out infinite;
}

.shadow-a {
  top: 38%;
}

.shadow-b {
  top: 58%;
  opacity: 0.18;
  animation-delay: -3.5s;
}

.gear-glint {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 128, 0.28);
  box-shadow: 0 0 22px rgba(255, 186, 72, 0.18), inset 0 0 18px rgba(255, 220, 140, 0.13);
  mix-blend-mode: screen;
  opacity: 0.24;
  animation: gearGlint 7s linear infinite;
}

.glint-a {
  left: 18%;
  top: 24%;
}

.glint-b {
  right: 19%;
  top: 33%;
  width: 16%;
  animation-duration: 5.6s;
  animation-direction: reverse;
}

.pendulum-sweep {
  position: absolute;
  left: 52%;
  top: 24%;
  width: 2px;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 223, 140, 0), rgba(255, 223, 140, 0.4), rgba(255, 223, 140, 0));
  transform-origin: 50% 8%;
  animation: pendulumSweep 2.4s ease-in-out infinite;
}

.mirror-sheen {
  position: absolute;
  top: -12%;
  bottom: -12%;
  width: 18%;
  opacity: 0.26;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(183, 247, 246, 0.28), rgba(255, 220, 144, 0.17), transparent);
  transform: skewX(-13deg);
  animation: mirrorSheen 7.6s ease-in-out infinite;
}

.sheen-a {
  left: -22%;
}

.sheen-b {
  right: -26%;
  animation-delay: -3.8s;
}

.cold-mist {
  position: absolute;
  left: -12%;
  right: -12%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 48%, rgba(196, 237, 255, 0.22), rgba(108, 182, 215, 0.11) 44%, transparent 72%);
  filter: blur(9px);
  mix-blend-mode: screen;
  opacity: 0;
}

.mist-a {
  bottom: 2%;
  animation: coldMist 8.4s ease-in-out infinite;
}

.mist-b {
  bottom: 16%;
  animation: coldMist 10s ease-in-out -4.6s infinite;
}

.frost-glow {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 70%, rgba(142, 218, 255, 0.28), transparent 50%);
  animation: frostPulse 5.8s ease-in-out infinite;
}

.glass-glint {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 10%;
  opacity: 0.22;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 242, 188, 0.3), transparent);
  transform: skewX(-10deg);
  animation: glassGlint 6.4s ease-in-out infinite;
}

.glint-left {
  left: 22%;
}

.glint-right {
  right: 20%;
  animation-delay: -3.1s;
}

.counterweight-glow {
  position: absolute;
  left: 43%;
  bottom: 9%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.28;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 226, 142, 0.42), rgba(255, 179, 72, 0.16) 46%, transparent 70%);
  animation: counterweightPulse 3.8s ease-in-out infinite;
}

.electric-arc {
  position: absolute;
  width: 18%;
  height: 2px;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(154, 242, 255, 0.98), transparent);
  box-shadow: 0 0 16px rgba(92, 219, 255, 0.92);
  transform-origin: center;
  animation: transformerArc 1.9s steps(1, end) infinite;
}

.arc-a {
  left: 19%;
  top: 22%;
  transform: rotate(28deg);
}

.arc-b {
  right: 20%;
  top: 24%;
  transform: rotate(-24deg);
  animation-delay: -0.7s;
}

.arc-c {
  left: 42%;
  top: 42%;
  transform: rotate(-8deg);
  animation-delay: -1.2s;
}

.oil-drip {
  position: absolute;
  width: 2.2%;
  height: 8%;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 222, 126, 0), rgba(161, 102, 34, 0.58), rgba(255, 206, 99, 0.22));
  box-shadow: 0 0 8px rgba(255, 177, 72, 0.34);
  animation: oilDrip 5.6s ease-in-out infinite;
}

.drip-a {
  left: 28%;
  top: 42%;
}

.drip-b {
  right: 31%;
  top: 35%;
  animation-delay: -2.8s;
}

.oil-sheen {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 5%;
  height: 18%;
  opacity: 0.2;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 213, 122, 0.32), transparent 68%);
  animation: oilSheen 4.8s ease-in-out infinite;
}

.desk-lamp-glow,
.safe-dial-glow,
.mica-pulse,
.cold-lever-glow,
.warm-lever-glow {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.desk-lamp-glow {
  left: 8%;
  top: 48%;
  width: 26%;
  height: 18%;
  opacity: 0.18;
  background: radial-gradient(circle, rgba(255, 221, 141, 0.42), transparent 68%);
  animation: archiveGlow 4.8s ease-in-out infinite;
}

.safe-dial-glow {
  left: 39%;
  top: 37%;
  width: 22%;
  aspect-ratio: 1;
  opacity: 0.24;
  background: radial-gradient(circle, rgba(255, 203, 96, 0.38), transparent 68%);
  animation: safeDialGlow 5.4s ease-in-out infinite;
}

.paper-flutter {
  position: absolute;
  width: 18%;
  height: 36%;
  opacity: 0.18;
  background: linear-gradient(180deg, rgba(255, 239, 194, 0), rgba(255, 239, 194, 0.2), rgba(255, 239, 194, 0));
  transform-origin: 50% 0;
  animation: paperFlutter 2.8s ease-in-out infinite;
}

.paper-a {
  left: 21%;
  top: 48%;
}

.paper-b {
  right: 16%;
  top: 45%;
  animation-delay: -1.4s;
}

.mica-pulse {
  right: 8%;
  bottom: 15%;
  width: 22%;
  aspect-ratio: 1;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(137, 255, 164, 0.42), rgba(99, 231, 127, 0.16) 42%, transparent 70%);
  animation: micaPulse 1.7s ease-in-out infinite;
}

.cold-lever-glow {
  left: 18%;
  top: 39%;
  width: 20%;
  height: 27%;
  opacity: 0.2;
  background: radial-gradient(circle, rgba(132, 235, 255, 0.32), transparent 70%);
  animation: leverGlow 4.4s ease-in-out infinite;
}

.warm-lever-glow {
  right: 17%;
  top: 38%;
  width: 22%;
  height: 30%;
  opacity: 0.24;
  background: radial-gradient(circle, rgba(255, 199, 105, 0.38), transparent 70%);
  animation: leverGlow 3.8s ease-in-out -1.2s infinite;
}

.deep-reflection {
  position: absolute;
  inset: -8% 18%;
  opacity: 0.18;
  mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 0 42%, rgba(166, 244, 255, 0.2) 49%, transparent 58% 100%);
  animation: deepReflection 7.8s ease-in-out infinite;
}

.fan-spin {
  position: absolute;
  width: 29%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.2;
  mix-blend-mode: screen;
  background: conic-gradient(from 0deg, rgba(255, 242, 190, 0.38), transparent 18%, rgba(255, 242, 190, 0.28), transparent 36%);
  animation: fanSpin 1.9s linear infinite;
}

.fan-clean {
  left: 10%;
  top: 31%;
}

.fan-dust {
  right: 11%;
  top: 31%;
  opacity: 0.16;
  animation-duration: 2.6s;
  animation-direction: reverse;
}

.dust-cloud {
  position: absolute;
  right: -12%;
  top: 34%;
  width: 52%;
  height: 28%;
  border-radius: 999px;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(8px);
  background: radial-gradient(circle, rgba(199, 185, 157, 0.24), rgba(79, 71, 58, 0.16) 46%, transparent 72%);
  animation: dustCloud 6.8s ease-in-out infinite;
}

.projector-beam {
  position: absolute;
  left: -18%;
  right: -18%;
  height: 15%;
  opacity: 0.18;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(232, 247, 255, 0.46), transparent);
  filter: blur(2px);
  animation: projectorSweep 5.8s ease-in-out infinite;
}

.beam-a {
  top: 34%;
  transform: rotate(13deg);
}

.beam-b {
  top: 42%;
  transform: rotate(-12deg);
  animation-delay: -2.9s;
}

.lens-flare {
  position: absolute;
  right: 22%;
  bottom: 28%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.2;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 240, 0.5), rgba(255, 214, 116, 0.18) 42%, transparent 70%);
  animation: lensPulse 4.2s ease-in-out infinite;
}

.pipe-mist {
  position: absolute;
  width: 32%;
  height: 16%;
  border-radius: 999px;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(8px);
  background: radial-gradient(circle, rgba(198, 237, 255, 0.28), rgba(115, 190, 221, 0.12) 44%, transparent 72%);
  animation: pipeMist 7.4s ease-in-out infinite;
}

.mist-left {
  left: -4%;
  bottom: 7%;
}

.mist-right {
  right: -6%;
  bottom: 14%;
  animation-delay: -3.7s;
}

.water-drop {
  position: absolute;
  width: 2.6%;
  height: 7%;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(211, 244, 255, 0), rgba(181, 235, 255, 0.58), rgba(181, 235, 255, 0.12));
  box-shadow: 0 0 9px rgba(176, 231, 255, 0.4);
  animation: waterDrop 4.6s ease-in-out infinite;
}

.drop-a {
  left: 31%;
  top: 33%;
}

.drop-b {
  right: 27%;
  top: 48%;
  animation-delay: -2.1s;
}

.map-ping,
.gasket-glow,
.mass-glow {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.map-ping {
  width: 14%;
  aspect-ratio: 1;
  opacity: 0.3;
  background: radial-gradient(circle, rgba(255, 208, 82, 0.52), rgba(255, 176, 48, 0.18) 42%, transparent 70%);
  animation: mapPing 2.7s ease-in-out infinite;
}

.ping-harbor {
  left: 31%;
  bottom: 31%;
}

.ping-tower {
  left: 49%;
  bottom: 46%;
  animation-delay: -1.35s;
}

.altimeter-needle {
  position: absolute;
  right: 17%;
  top: 48%;
  width: 2px;
  height: 10%;
  border-radius: 999px;
  background: #f6d486;
  box-shadow: 0 0 9px rgba(255, 202, 102, 0.72);
  transform-origin: 50% 88%;
  animation: altimeterSettle 3.8s ease-in-out infinite;
}

.relay-arc {
  position: absolute;
  width: 24%;
  height: 2px;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(134, 232, 255, 0.96), transparent);
  box-shadow: 0 0 16px rgba(72, 205, 255, 0.88);
  animation: relayArc 2.2s steps(1, end) infinite;
}

.arc-left {
  left: 28%;
  top: 25%;
  transform: rotate(11deg);
}

.arc-right {
  right: 24%;
  top: 23%;
  transform: rotate(-18deg);
  animation-delay: -1.1s;
}

.gasket-glow {
  left: 43%;
  bottom: 22%;
  width: 19%;
  aspect-ratio: 1;
  opacity: 0.24;
  background: radial-gradient(circle, rgba(255, 218, 133, 0.36), transparent 70%);
  animation: gasketPulse 4s ease-in-out infinite;
}

.sound-ring {
  position: absolute;
  left: 30%;
  top: 24%;
  width: 40%;
  aspect-ratio: 1;
  border: 2px solid rgba(117, 209, 255, 0.28);
  border-radius: 999px;
  opacity: 0;
  mix-blend-mode: screen;
  animation: soundRing 3.2s ease-out infinite;
}

.ring-b {
  animation-delay: -1.6s;
}

.mass-glow {
  left: 32%;
  bottom: 21%;
  width: 16%;
  aspect-ratio: 1;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(255, 210, 115, 0.42), transparent 70%);
  animation: massPulse 3.4s ease-in-out infinite;
}

.lobby-glow {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 16%, rgba(255, 219, 139, 0.34), transparent 38%);
  animation: lobbyGlow 5.2s ease-in-out infinite;
}

.floor-reflection {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 34%;
  opacity: 0.18;
  mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, rgba(255, 203, 112, 0.3), transparent);
  animation: floorReflection 6s ease-in-out infinite;
}

.pressure-mist {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 18%;
  border-radius: 999px;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(8px);
  background: radial-gradient(circle, rgba(223, 216, 197, 0.3), rgba(147, 134, 111, 0.14) 44%, transparent 72%);
  animation: pressureMist 6.2s ease-in-out infinite;
}

.mist-top {
  top: 4%;
}

.mist-bottom {
  bottom: 4%;
  animation-delay: -3.1s;
}

.brass-wedge-glow {
  position: absolute;
  right: 20%;
  bottom: 23%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.26;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 216, 115, 0.44), transparent 70%);
  animation: wedgePulse 3.6s ease-in-out infinite;
}

.crt-scan {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 24%;
  height: 18%;
  opacity: 0.24;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(109, 255, 128, 0.15) 0 2px, transparent 2px 6px);
  animation: crtScan 2.8s linear infinite;
}

.amber-position-glow {
  position: absolute;
  left: 42%;
  top: 47%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.3;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 190, 74, 0.54), rgba(255, 159, 46, 0.2) 42%, transparent 70%);
  animation: amberPulse 2.4s ease-in-out infinite;
}

.wind-streak {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 2px;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(217, 244, 255, 0.58), transparent);
  box-shadow: 0 0 12px rgba(158, 220, 255, 0.42);
  animation: windStreak 2.1s linear infinite;
}

.streak-a {
  top: 34%;
  --wind-angle: -8deg;
  transform: rotate(-8deg);
}

.streak-b {
  top: 48%;
  --wind-angle: 7deg;
  transform: rotate(7deg);
  animation-delay: -1.05s;
}

.north-deflector-glow {
  position: absolute;
  left: 42%;
  top: 56%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.24;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 219, 121, 0.38), transparent 70%);
  animation: deflectorPulse 4.2s ease-in-out infinite;
}

.cable-vibration {
  position: absolute;
  left: 47%;
  top: 11%;
  width: 6%;
  height: 56%;
  opacity: 0.22;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(220, 238, 255, 0.32) 0 4px, transparent 4px 11px);
  filter: blur(1px);
  animation: cableVibration 420ms steps(2, end) infinite;
}

.telescopic-key-glow {
  position: absolute;
  right: 18%;
  bottom: 10%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.24;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 221, 131, 0.42), transparent 70%);
  animation: keyGlow 3.8s ease-in-out infinite;
}

.radio-arc {
  position: absolute;
  width: 22%;
  height: 2px;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(144, 232, 255, 0.96), transparent);
  box-shadow: 0 0 16px rgba(82, 211, 255, 0.9);
  animation: radioArc 1.7s steps(1, end) infinite;
}

.radio-a {
  left: 35%;
  top: 35%;
  transform: rotate(18deg);
}

.radio-b {
  right: 27%;
  top: 39%;
  transform: rotate(-21deg);
  animation-delay: -0.8s;
}

.oil-flask-glow {
  position: absolute;
  right: 13%;
  bottom: 8%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.25;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 202, 104, 0.42), transparent 70%);
  animation: oilFlaskGlow 3.5s ease-in-out infinite;
}

.bronze-door-glow {
  position: absolute;
  left: 25%;
  right: 25%;
  top: 26%;
  height: 44%;
  opacity: 0.18;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 187, 82, 0.34), transparent 70%);
  animation: bronzeDoorGlow 5.2s ease-in-out infinite;
}

.dial-code-glow {
  position: absolute;
  right: 18%;
  top: 43%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.28;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 196, 74, 0.46), transparent 70%);
  animation: dialCodeGlow 2.8s ease-in-out infinite;
}

.view.final-light {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 1) 0 18%, rgba(255, 247, 192, 0.94) 34%, rgba(104, 210, 255, 0.42) 62%, rgba(255, 255, 255, 0.1) 80%),
    linear-gradient(180deg, rgba(255, 250, 214, 0.98), rgba(252, 218, 122, 0.72) 48%, rgba(102, 205, 255, 0.42));
}

.doors {
  position: absolute;
  z-index: 5;
  top: var(--opening-top);
  left: var(--opening-left);
  width: var(--opening-width);
  height: calc(var(--opening-height) + var(--door-bottom-bleed));
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 4, 5, 0.42), rgba(0, 0, 0, 0.96) 74%),
    rgba(0, 0, 0, 0.76);
  opacity: 1;
  backdrop-filter: brightness(0.12) saturate(0.65);
  transition:
    opacity var(--door-open-duration) cubic-bezier(0.42, 0, 0.2, 1),
    backdrop-filter var(--door-open-duration) cubic-bezier(0.42, 0, 0.2, 1);
}

.door {
  display: none;
}

.doors.open {
  opacity: 0;
  backdrop-filter: brightness(1) saturate(1);
}

.doors.closing {
  transition-duration: var(--door-close-duration);
  transition-timing-function: cubic-bezier(0.42, 0, 0.2, 1);
}

.vampire-frame {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  background: url("./assets/elevator-scenes/dracu/vampire-frame.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.72));
}

.vampire-frame::before,
.vampire-frame::after {
  display: none;
}

.vampire-frame::before {
  top: 5px;
}

.vampire-frame::after {
  bottom: 5px;
}

.frame-corner {
  display: none;
}

.frame-corner::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 35%, rgba(220, 25, 39, 0.58), transparent 0 12%),
    #080403;
  box-shadow:
    -5px 6px 0 -4px #080403,
    5px 6px 0 -4px #080403,
    0 0 9px rgba(0, 0, 0, 0.82);
}

.frame-corner.top-left {
  --web-x: 0%;
  --web-y: 0%;
  --ray-a: 45deg;
  --ray-b: 66deg;
  --ray-c: 24deg;
  top: 7px;
  left: 7px;
}

.frame-corner.top-left::after {
  left: 33px;
  top: 29px;
}

.frame-corner.top-right {
  --web-x: 100%;
  --web-y: 0%;
  --ray-a: -45deg;
  --ray-b: -66deg;
  --ray-c: -24deg;
  top: 7px;
  right: 7px;
}

.frame-corner.top-right::after {
  right: 33px;
  top: 29px;
}

.frame-corner.bottom-left {
  --web-x: 0%;
  --web-y: 100%;
  --ray-a: -45deg;
  --ray-b: -66deg;
  --ray-c: -24deg;
  bottom: 7px;
  left: 7px;
}

.frame-corner.bottom-left::after {
  left: 34px;
  bottom: 29px;
}

.frame-corner.bottom-right {
  --web-x: 100%;
  --web-y: 100%;
  --ray-a: 45deg;
  --ray-b: 66deg;
  --ray-c: 24deg;
  right: 7px;
  bottom: 7px;
}

.frame-corner.bottom-right::after {
  right: 34px;
  bottom: 29px;
}

.modal {
  position: absolute;
  z-index: 22;
  left: 5.2%;
  right: 5.2%;
  bottom: 4.6%;
  padding: 14px;
  border: 1px solid rgba(255, 223, 155, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 233, 177, 0.1), transparent 22%),
    rgba(16, 10, 7, 0.92);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.58), inset 0 0 18px rgba(255, 194, 91, 0.12);
}

.modal .eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #e7b95d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.modal strong {
  display: block;
  color: #fff0bf;
  font-size: 18px;
  line-height: 1.1;
}

.modal p {
  margin: 9px 0 0;
  color: #f5dfad;
  font-size: 15px;
  line-height: 1.42;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.actions button {
  flex: 1;
  min-height: 42px;
  border: 1px solid rgba(255, 218, 132, 0.64);
  border-radius: 10px;
  background: linear-gradient(180deg, #d58b2c, #7e3e17);
  color: #fff5ce;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 7px 18px rgba(0, 0, 0, 0.34);
}

.actions button.secondary {
  background: linear-gradient(180deg, #775d44, #2b1b12);
}

.wait {
  position: absolute;
  z-index: 18;
  left: 8%;
  right: 8%;
  top: 44%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 223, 155, 0.42);
  background: rgba(10, 7, 5, 0.78);
  text-align: center;
  color: #ffe9b3;
  font-size: 13px;
}

.intro-video,
.video,
.final-image {
  position: absolute;
  inset: 0;
  background: #050403;
}

.intro-video {
  z-index: 42;
}

.video,
.final-image {
  z-index: 16;
}

.intro-video video,
.video video,
.final-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-video button {
  position: absolute;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  min-height: 38px;
  border: 1px solid rgba(255, 223, 155, 0.58);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(12, 8, 5, 0.72);
  color: #ffe9b3;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

.welcome-screen {
  position: absolute;
  z-index: 54;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.34), rgba(8, 6, 5, 0.9)),
    linear-gradient(90deg, rgba(246, 205, 118, 0.08), transparent 28% 72%, rgba(94, 184, 207, 0.08));
  color: #fff0bf;
}

.welcome-panel {
  width: min(100%, 360px);
  padding: 24px 20px 20px;
  border: 1px solid rgba(255, 223, 155, 0.56);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 233, 177, 0.1), transparent 26%),
    rgba(17, 10, 7, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.58), inset 0 0 24px rgba(255, 194, 91, 0.1);
}

.welcome-kicker {
  display: block;
  color: #e7b95d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.welcome-panel h1 {
  margin: 7px 0 20px;
  color: #fff3c7;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.66);
}

.welcome-options {
  display: grid;
  gap: 10px;
}

.switch-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 223, 155, 0.22);
  border-radius: 10px;
  background: rgba(8, 5, 4, 0.44);
  color: #f8e1ae;
  font-size: 15px;
  font-weight: 800;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row i {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(46, 35, 27, 0.95);
  border: 1px solid rgba(255, 223, 155, 0.34);
  box-shadow: inset 0 2px 9px rgba(0, 0, 0, 0.38);
}

.switch-row i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7c178;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.38);
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch-row input:checked + i {
  border-color: rgba(119, 221, 255, 0.62);
  background: rgba(22, 79, 92, 0.82);
}

.switch-row input:checked + i::before {
  transform: translateX(22px);
  background: #d9f7ff;
}

.welcome-start {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(255, 231, 170, 0.74);
  border-radius: 10px;
  background: linear-gradient(180deg, #de9c35, #7f4017);
  color: #fff8d8;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 26px rgba(0, 0, 0, 0.42);
}

@keyframes cabinRide {
  0%,
  100% { transform: translateY(0); }
  18% { transform: translateY(calc(var(--direction, -1) * -7px)); }
  48% { transform: translateY(calc(var(--direction, -1) * 5px)); }
  72% { transform: translateY(calc(var(--direction, -1) * -4px)); }
}

@keyframes cabinRideGood {
  0%,
  100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(calc(var(--direction, -1) * -4px)) rotate(0.08deg); }
  58% { transform: translateY(calc(var(--direction, -1) * 3px)) rotate(-0.06deg); }
  82% { transform: translateY(calc(var(--direction, -1) * -2px)) rotate(0.04deg); }
}

@keyframes cabinRideBad {
  0%,
  100% { transform: translate(0, 0) rotate(0deg); }
  12% { transform: translate(-2px, calc(var(--direction, -1) * -6px)) rotate(-0.18deg); }
  31% { transform: translate(2px, calc(var(--direction, -1) * 4px)) rotate(0.16deg); }
  52% { transform: translate(-1px, calc(var(--direction, -1) * -5px)) rotate(-0.12deg); }
  76% { transform: translate(1px, calc(var(--direction, -1) * 3px)) rotate(0.1deg); }
}

@keyframes cabinRideDanger {
  0%,
  100% { transform: translate(0, 0) rotate(0deg); }
  9% { transform: translate(3px, calc(var(--direction, -1) * -8px)) rotate(0.28deg); }
  21% { transform: translate(-3px, calc(var(--direction, -1) * 6px)) rotate(-0.26deg); }
  37% { transform: translate(2px, calc(var(--direction, -1) * -7px)) rotate(0.22deg); }
  59% { transform: translate(-2px, calc(var(--direction, -1) * 5px)) rotate(-0.2deg); }
  84% { transform: translate(1px, calc(var(--direction, -1) * -4px)) rotate(0.16deg); }
}

@keyframes smokeDrift {
  0% { transform: translate3d(0, 10px, 0) scale(0.82); opacity: 0; }
  18% { opacity: 0.7; }
  62% { opacity: 0.48; }
  100% { transform: translate3d(-18px, -34px, 0) scale(1.26); opacity: 0; }
}

@keyframes needleTremble {
  0%,
  100% { transform: rotate(-12deg); }
  30% { transform: rotate(9deg); }
  58% { transform: rotate(-3deg); }
  78% { transform: rotate(14deg); }
}

@keyframes bulbPulse {
  0%,
  100% { opacity: 0.38; transform: scale(0.9); }
  42% { opacity: 0.95; transform: scale(1.12); }
}

@keyframes sparkFlash {
  0%,
  72%,
  100% { opacity: 0; }
  74% { opacity: 1; }
  78% { opacity: 0.28; }
}

@keyframes sunBreathe {
  0%,
  100% { opacity: 0.24; transform: rotate(-11deg) translateX(-2%); }
  52% { opacity: 0.48; transform: rotate(-11deg) translateX(3%); }
}

@keyframes shadowSlide {
  0%,
  100% { transform: rotate(-11deg) translateX(-3%); }
  50% { transform: rotate(-11deg) translateX(5%); }
}

@keyframes gearGlint {
  0% { transform: rotate(0deg) scale(0.96); opacity: 0.16; }
  50% { opacity: 0.34; }
  100% { transform: rotate(360deg) scale(1.04); opacity: 0.16; }
}

@keyframes pendulumSweep {
  0%,
  100% { transform: rotate(-8deg); opacity: 0.2; }
  50% { transform: rotate(8deg); opacity: 0.42; }
}

@keyframes mirrorSheen {
  0%,
  100% { transform: translateX(0) skewX(-13deg); opacity: 0; }
  28% { opacity: 0.2; }
  62% { transform: translateX(560%) skewX(-13deg); opacity: 0.28; }
  78% { opacity: 0; }
}

@keyframes coldMist {
  0% { transform: translate3d(-8%, 12px, 0) scale(0.94); opacity: 0; }
  24% { opacity: 0.48; }
  70% { opacity: 0.34; }
  100% { transform: translate3d(10%, -18px, 0) scale(1.18); opacity: 0; }
}

@keyframes frostPulse {
  0%,
  100% { opacity: 0.14; }
  52% { opacity: 0.3; }
}

@keyframes glassGlint {
  0%,
  100% { transform: translateX(-60%) skewX(-10deg); opacity: 0; }
  34% { opacity: 0.24; }
  66% { transform: translateX(160%) skewX(-10deg); opacity: 0.32; }
  82% { opacity: 0; }
}

@keyframes counterweightPulse {
  0%,
  100% { opacity: 0.16; transform: scale(0.92); }
  50% { opacity: 0.34; transform: scale(1.08); }
}

@keyframes transformerArc {
  0%,
  62%,
  100% { opacity: 0; }
  64% { opacity: 1; }
  68% { opacity: 0.22; }
  70% { opacity: 0.74; }
  74% { opacity: 0; }
}

@keyframes oilDrip {
  0% { transform: translateY(-12px) scaleY(0.2); opacity: 0; }
  20% { opacity: 0.54; }
  58% { transform: translateY(32px) scaleY(1); opacity: 0.4; }
  100% { transform: translateY(72px) scaleY(0.5); opacity: 0; }
}

@keyframes oilSheen {
  0%,
  100% { opacity: 0.12; transform: scaleX(0.92); }
  50% { opacity: 0.27; transform: scaleX(1.06); }
}

@keyframes archiveGlow {
  0%,
  100% { opacity: 0.12; transform: scale(0.94); }
  50% { opacity: 0.26; transform: scale(1.06); }
}

@keyframes safeDialGlow {
  0%,
  100% { opacity: 0.16; transform: rotate(0deg) scale(0.96); }
  50% { opacity: 0.34; transform: rotate(4deg) scale(1.04); }
}

@keyframes paperFlutter {
  0%,
  100% { transform: skewX(-2deg) translateY(0); opacity: 0.12; }
  50% { transform: skewX(3deg) translateY(10px); opacity: 0.24; }
}

@keyframes micaPulse {
  0%,
  100% { opacity: 0.16; transform: scale(0.9); }
  48% { opacity: 0.42; transform: scale(1.1); }
}

@keyframes leverGlow {
  0%,
  100% { opacity: 0.12; transform: scale(0.96); }
  50% { opacity: 0.3; transform: scale(1.06); }
}

@keyframes deepReflection {
  0%,
  100% { transform: translateX(-38%) skewX(-8deg); opacity: 0; }
  36% { opacity: 0.16; }
  70% { transform: translateX(38%) skewX(-8deg); opacity: 0.24; }
  86% { opacity: 0; }
}

@keyframes fanSpin {
  0% { transform: rotate(0deg) scale(0.94); }
  100% { transform: rotate(360deg) scale(1.02); }
}

@keyframes dustCloud {
  0% { transform: translateX(18px) scale(0.86); opacity: 0; }
  24% { opacity: 0.28; }
  74% { opacity: 0.2; }
  100% { transform: translateX(-24px) scale(1.14); opacity: 0; }
}

@keyframes projectorSweep {
  0%,
  100% { opacity: 0.1; filter: blur(4px); }
  50% { opacity: 0.28; filter: blur(1px); }
}

@keyframes lensPulse {
  0%,
  100% { opacity: 0.12; transform: scale(0.92); }
  50% { opacity: 0.34; transform: scale(1.08); }
}

@keyframes pipeMist {
  0% { transform: translateY(14px) scale(0.88); opacity: 0; }
  26% { opacity: 0.44; }
  72% { opacity: 0.24; }
  100% { transform: translateY(-18px) scale(1.16); opacity: 0; }
}

@keyframes waterDrop {
  0% { transform: translateY(-8px) scaleY(0.25); opacity: 0; }
  25% { opacity: 0.58; }
  72% { transform: translateY(38px) scaleY(1); opacity: 0.34; }
  100% { transform: translateY(62px) scaleY(0.5); opacity: 0; }
}

@keyframes mapPing {
  0% { transform: scale(0.55); opacity: 0; }
  34% { opacity: 0.44; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes altimeterSettle {
  0%,
  100% { transform: rotate(18deg); opacity: 0.32; }
  42% { transform: rotate(-7deg); opacity: 0.58; }
  72% { transform: rotate(2deg); opacity: 0.42; }
}

@keyframes relayArc {
  0%,
  68%,
  100% { opacity: 0; }
  70% { opacity: 1; }
  73% { opacity: 0.24; }
  76% { opacity: 0.86; }
  80% { opacity: 0; }
}

@keyframes gasketPulse {
  0%,
  100% { opacity: 0.13; transform: scale(0.92); }
  50% { opacity: 0.32; transform: scale(1.08); }
}

@keyframes soundRing {
  0% { transform: scale(0.45); opacity: 0.34; }
  74% { opacity: 0.12; }
  100% { transform: scale(1.62); opacity: 0; }
}

@keyframes massPulse {
  0%,
  100% { opacity: 0.14; transform: scale(0.95); }
  50% { opacity: 0.34; transform: scale(1.12); }
}

@keyframes lobbyGlow {
  0%,
  100% { opacity: 0.14; }
  50% { opacity: 0.28; }
}

@keyframes floorReflection {
  0%,
  100% { transform: translateY(8px) scaleX(0.94); opacity: 0.12; }
  50% { transform: translateY(-4px) scaleX(1.04); opacity: 0.24; }
}

@keyframes pressureMist {
  0% { transform: translateX(-10%) scale(0.9); opacity: 0; }
  24% { opacity: 0.38; }
  70% { opacity: 0.24; }
  100% { transform: translateX(12%) scale(1.14); opacity: 0; }
}

@keyframes wedgePulse {
  0%,
  100% { opacity: 0.14; transform: scale(0.92); }
  50% { opacity: 0.34; transform: scale(1.08); }
}

@keyframes crtScan {
  0% { transform: translateY(-8%); opacity: 0.16; }
  50% { opacity: 0.3; }
  100% { transform: translateY(8%); opacity: 0.16; }
}

@keyframes amberPulse {
  0%,
  100% { opacity: 0.18; transform: scale(0.92); }
  50% { opacity: 0.42; transform: scale(1.12); }
}

@keyframes windStreak {
  0% { transform: translateX(-18%) rotate(var(--wind-angle, -8deg)); opacity: 0; }
  25% { opacity: 0.34; }
  100% { transform: translateX(18%) rotate(var(--wind-angle, -8deg)); opacity: 0; }
}

@keyframes deflectorPulse {
  0%,
  100% { opacity: 0.12; transform: scale(0.95); }
  50% { opacity: 0.32; transform: scale(1.08); }
}

@keyframes cableVibration {
  0%,
  100% { transform: translateX(-2px); opacity: 0.16; }
  50% { transform: translateX(3px); opacity: 0.3; }
}

@keyframes keyGlow {
  0%,
  100% { opacity: 0.13; transform: scale(0.92); }
  50% { opacity: 0.34; transform: scale(1.08); }
}

@keyframes radioArc {
  0%,
  66%,
  100% { opacity: 0; }
  68% { opacity: 0.95; }
  72% { opacity: 0.2; }
  75% { opacity: 0.72; }
  79% { opacity: 0; }
}

@keyframes oilFlaskGlow {
  0%,
  100% { opacity: 0.14; transform: scale(0.94); }
  50% { opacity: 0.34; transform: scale(1.1); }
}

@keyframes bronzeDoorGlow {
  0%,
  100% { opacity: 0.12; }
  50% { opacity: 0.26; }
}

@keyframes dialCodeGlow {
  0%,
  100% { opacity: 0.16; transform: scale(0.9); }
  50% { opacity: 0.4; transform: scale(1.12); }
}

@media (max-width: 520px) {
  .game-shell {
    padding: 0;
  }

  .elevator-card {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
  }

  .topbar {
    top: max(8px, env(safe-area-inset-top));
  }

  .modal {
    left: 3.5%;
    right: 3.5%;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 12px;
  }

  .modal p {
    font-size: 14px;
  }
}
