/* Base start */
@font-face {
  font-family: "Epilepsy Sans";
  src: url("../fonts/EpilepsySans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Epilepsy Sans";
  src: url("../fonts/EpilepsySansBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --green: #78ffbe;
  --green-soft: rgba(120, 255, 190, 0.72);
  --green-dim: rgba(120, 255, 190, 0.18);
  --red: #ff3d4f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --panel: rgba(5, 13, 12, 0.72);
  --panel-strong: rgba(5, 13, 12, 0.88);
  --map-panel-bg: rgba(0, 0, 0, 0.58);
  --map-panel-border: rgba(120, 255, 190, 0.3);
  --map-panel-shadow:
    0 0 34px rgba(0, 0, 0, 0.72), 0 0 28px rgba(120, 255, 190, 0.1),
    inset 0 0 28px rgba(120, 255, 190, 0.04);
  --map-panel-blur: blur(7px);
  --map-panel-text: rgba(217, 255, 233, 0.76);
  --map-panel-text-strong: rgba(238, 255, 246, 0.94);
  --map-panel-text-muted: rgba(217, 255, 233, 0.58);
  --map-panel-glow: rgba(120, 255, 190, 0.14);
  --map-font: "Courier New", Consolas, monospace;
  --map-letter: 0.08em;
  --map-letter-title: 0.12em;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Base end */

/* Scene start */
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scene__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: var(--bg);
}
/* Scene end */

/* Intro start */
.intro-screen {
  z-index: 10;
}

.intro-screen__video {
  filter: brightness(1.18) contrast(1.06) saturate(1.05);
}

.intro-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.34) 72%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.38),
      transparent 18%,
      transparent 82%,
      rgba(0, 0, 0, 0.38)
    );
  pointer-events: none;
}

.intro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.28;
  pointer-events: none;
  animation: scanlinesMove 7s linear infinite;
}
/* Intro end */

/* Effects start */
@keyframes scanlinesMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(12px);
  }
}

.noise-layer {
  position: absolute;
  inset: -60px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 255, 255, 0.16) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 74% 42%,
      rgba(255, 255, 255, 0.13) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 34% 78%,
      rgba(255, 255, 255, 0.12) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(120, 255, 190, 0.14) 0 1px,
      transparent 1px
    );
  background-size:
    90px 90px,
    110px 110px,
    130px 130px,
    150px 150px;
  animation: noiseDrift 13s steps(8, end) infinite;
}

@keyframes noiseDrift {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-18px, 12px);
  }

  40% {
    transform: translate(12px, -22px);
  }

  60% {
    transform: translate(28px, 18px);
  }

  80% {
    transform: translate(-12px, -10px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  z-index: 4;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 255, 190, 0.95),
    transparent
  );
  box-shadow:
    0 0 18px rgba(120, 255, 190, 0.72),
    0 0 46px rgba(120, 255, 190, 0.34);
  opacity: 0.65;
  pointer-events: none;
  animation: scannerMove 5.8s ease-in-out infinite;
}

@keyframes scannerMove {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 0.65;
  }

  80% {
    opacity: 0.65;
  }

  100% {
    transform: translateY(125vh);
    opacity: 0;
  }
}

.glitch-bars {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.glitch-bars span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  background: rgba(120, 255, 190, 0.52);
  opacity: 0;
  box-shadow: 0 0 14px rgba(120, 255, 190, 0.6);
  animation: glitchBar 8s steps(1, end) infinite;
}

.glitch-bars span:nth-child(1) {
  top: 18%;
  animation-delay: 1.1s;
}

.glitch-bars span:nth-child(2) {
  top: 47%;
  animation-delay: 3.4s;
}

.glitch-bars span:nth-child(3) {
  top: 72%;
  animation-delay: 5.2s;
}

@keyframes glitchBar {
  0%,
  88%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  89% {
    opacity: 0.85;
    transform: translateX(-4%);
  }

  90% {
    opacity: 0;
  }

  91% {
    opacity: 0.55;
    transform: translateX(6%);
  }

  92% {
    opacity: 0;
  }
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.44;
}

/* Effects end */

/* HUD start */
.hud {
  position: absolute;
  inset: 22px;
  z-index: 7;
  pointer-events: none;
  font-family: "Courier New", Consolas, monospace;
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hud__item {
  position: absolute;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 255, 190, 0.2);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 18px rgba(120, 255, 190, 0.04);
  backdrop-filter: blur(4px);
}

.hud__item::before,
.hud__item::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(120, 255, 190, 0.72);
  border-style: solid;
}

.hud__item::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hud__item::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.hud__label {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

.hud__value {
  color: var(--green-soft);
  font-size: 12px;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.35);
}

.hud__item--tl {
  top: 0;
  left: 0;
}

.hud__item--tr {
  top: 0;
  right: 0;
  text-align: right;
  justify-content: flex-end;
}

.hud__item--bl {
  bottom: 0;
  left: 0;
}

.hud__item--br {
  right: 0;
  bottom: 0;
  text-align: right;
  justify-content: flex-end;
}

.hud__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(120, 255, 190, 0.95);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.system-message {
  position: absolute;
  left: 24px;
  bottom: 92px;
  z-index: 8;
  max-width: min(520px, calc(100% - 48px));
  padding: 13px 15px;
  border-left: 2px solid rgba(120, 255, 190, 0.78);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
  color: rgba(217, 255, 233, 0.84);
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.24);
}

.system-message::before {
  content: "> ";
  color: var(--green);
}

/* HUD end */

/* System button start */
.system-enter-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: min(980px, 74vw);
  min-height: 128px;
  padding: 0;
  border: 2px solid rgba(226, 239, 255, 0.96);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.055) 0,
      rgba(255, 255, 255, 0.055) 1px,
      rgba(0, 0, 0, 0.03) 1px,
      rgba(0, 0, 0, 0.03) 4px
    ),
    linear-gradient(180deg, rgba(105, 119, 126, 0.72), rgba(42, 53, 58, 0.78));
  color: #eef6ff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.985);
  transform-origin: center;
  box-shadow:
    0 0 3px rgba(238, 247, 255, 0.98),
    0 0 12px rgba(184, 218, 255, 0.76),
    0 0 34px rgba(141, 194, 255, 0.38),
    inset 0 0 20px rgba(225, 240, 255, 0.16);
  filter: saturate(1.02);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    transform 0.45s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.system-enter-button.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  animation:
    systemButtonBoot 1.1s steps(2, end) 1,
    systemButtonCycle 6s steps(1, end) infinite 1.25s;
}

.system-enter-button::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 1px solid rgba(226, 239, 255, 0.62);
  box-shadow:
    0 0 8px rgba(205, 230, 255, 0.58),
    inset 0 0 18px rgba(205, 230, 255, 0.18);
  pointer-events: none;
}

.system-enter-button::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 44%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.04) 56%,
    transparent 100%
  );
  opacity: 0.32;
  pointer-events: none;
  transform: translateX(-78%) skewX(-12deg);
  animation: systemButtonShine 4.8s ease-in-out infinite;
}

.system-enter-button__text {
  position: relative;
  z-index: 2;
  display: block;
  padding: 68px 44px 80px 44px;
  font-family:
    "Epilepsy Sans", "Press Start 2P", "Lucida Console", Monaco, monospace;
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.045em;
  text-align: center;
  color: #f0f7ff;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 7px rgba(190, 220, 255, 0.92),
    3px 0 0 rgba(90, 168, 255, 0.42),
    -3px 0 0 rgba(255, 80, 110, 0.22);
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

.system-enter-button__text::before,
.system-enter-button__text::after {
  content: attr(data-text);
  position: absolute;
  inset: 30px 44px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}

.system-enter-button__text::before {
  color: rgba(255, 45, 78, 0.86);
  text-shadow: 0 0 10px rgba(255, 45, 78, 0.72);
  clip-path: inset(0 0 56% 0);
  animation: systemTextCycleTop 6s steps(1, end) infinite 1.25s;
}

.system-enter-button__text::after {
  color: rgba(82, 210, 255, 0.76);
  text-shadow: 0 0 10px rgba(82, 210, 255, 0.62);
  clip-path: inset(48% 0 0 0);
  animation: systemTextCycleBottom 6s steps(1, end) infinite 1.25s;
}

.system-enter-button__flash {
  position: absolute;
  inset: -14px;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(255, 45, 75, 0.62), transparent 58%),
    linear-gradient(90deg, transparent, rgba(255, 45, 75, 0.32), transparent);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: systemRedFlashCycle 6s steps(1, end) infinite 1.25s;
}

.system-enter-button__glitch {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.system-enter-button__glitch span {
  position: absolute;
  left: -16%;
  width: 132%;
  background: linear-gradient(
    90deg,
    rgba(255, 58, 90, 0.28),
    rgba(235, 246, 255, 0.52),
    rgba(70, 225, 255, 0.28)
  );
  opacity: 0;
  box-shadow:
    0 0 16px rgba(150, 205, 255, 0.82),
    26px 0 0 rgba(255, 56, 96, 0.28),
    -26px 0 0 rgba(67, 229, 255, 0.28);
  animation: systemGlitchCycle 6s steps(1, end) infinite 1.25s;
}

.system-enter-button__glitch span:nth-child(1) {
  top: 4%;
  height: 9px;
  animation-delay: 1.25s;
}

.system-enter-button__glitch span:nth-child(2) {
  top: 13%;
  height: 18px;
  animation-delay: 1.28s;
}

.system-enter-button__glitch span:nth-child(3) {
  top: 25%;
  height: 12px;
  animation-delay: 1.31s;
}

.system-enter-button__glitch span:nth-child(4) {
  top: 36%;
  height: 28px;
  animation-delay: 1.34s;
}

.system-enter-button__glitch span:nth-child(5) {
  top: 50%;
  height: 16px;
  animation-delay: 1.37s;
}

.system-enter-button__glitch span:nth-child(6) {
  top: 61%;
  height: 31px;
  animation-delay: 1.4s;
}

.system-enter-button__glitch span:nth-child(7) {
  top: 76%;
  height: 11px;
  animation-delay: 1.43s;
}

.system-enter-button__glitch span:nth-child(8) {
  top: 86%;
  height: 22px;
  animation-delay: 1.46s;
}

.system-enter-button:hover {
  border-color: rgba(255, 122, 145, 0.96);
  filter: brightness(1.14) saturate(1.16);
  box-shadow:
    0 0 5px rgba(238, 247, 255, 1),
    0 0 18px rgba(255, 64, 96, 0.72),
    0 0 54px rgba(255, 35, 75, 0.44),
    0 0 92px rgba(255, 35, 75, 0.22),
    inset 0 0 28px rgba(255, 80, 110, 0.2);
}

.system-enter-button:hover .system-enter-button__flash {
  opacity: 0.34;
  animation: none;
}

.system-enter-button.is-opening {
  animation: systemButtonOpen 0.85s steps(2, end) forwards;
}

.system-enter-button.is-opening .system-enter-button__glitch span {
  animation: systemButtonGlitchOpen 0.85s steps(1, end) forwards;
}

.system-enter-button.is-opening .system-enter-button__flash {
  animation: systemOpenFlash 0.85s ease-out forwards;
}

@keyframes systemButtonBoot {
  0% {
    opacity: 0;
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 0 1px,
        transparent 1px 4px
      ),
      linear-gradient(180deg, rgba(255, 28, 82, 0.88), rgba(128, 0, 28, 0.72));
    filter: hue-rotate(0deg) saturate(1.5);
    transform: translate(-50%, -50%) scale(0.96) skewX(-1deg);
  }

  16% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02) skewX(1deg);
  }

  32% {
    transform: translate(-50%, -50%) translateX(-10px);
    filter: hue-rotate(130deg) saturate(1.8);
  }

  46% {
    transform: translate(-50%, -50%) translateX(9px);
    filter: hue-rotate(-90deg) saturate(1.5);
  }

  64% {
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.055) 0 1px,
        rgba(0, 0, 0, 0.03) 1px 4px
      ),
      linear-gradient(180deg, rgba(105, 119, 126, 0.72), rgba(42, 53, 58, 0.78));
    transform: translate(-50%, -50%) scale(1);
    filter: none;
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes systemButtonCycle {
  0%,
  29%,
  37%,
  63%,
  75%,
  100% {
    border-color: rgba(226, 239, 255, 0.96);
    box-shadow:
      0 0 3px rgba(238, 247, 255, 0.98),
      0 0 12px rgba(184, 218, 255, 0.76),
      0 0 34px rgba(141, 194, 255, 0.38),
      inset 0 0 20px rgba(225, 240, 255, 0.16);
    filter: brightness(1);
  }

  30% {
    border-color: rgba(255, 98, 122, 1);
    box-shadow:
      0 0 8px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 56, 96, 0.9),
      0 0 82px rgba(255, 32, 72, 0.58),
      inset 0 0 34px rgba(255, 56, 96, 0.32);
    filter: brightness(1.34) saturate(1.25);
  }

  33% {
    border-color: rgba(255, 98, 122, 0.92);
    filter: brightness(0.88) hue-rotate(6deg);
  }

  66% {
    border-color: rgba(226, 239, 255, 1);
    filter: brightness(1.42) saturate(1.35);
  }

  68% {
    border-color: rgba(255, 72, 108, 0.96);
    filter: brightness(0.92) hue-rotate(-10deg);
  }

  70% {
    border-color: rgba(226, 239, 255, 1);
    filter: brightness(1.16);
  }
}

@keyframes systemRedFlashCycle {
  0%,
  29%,
  36%,
  100% {
    opacity: 0;
  }

  30% {
    opacity: 0.58;
  }

  32% {
    opacity: 0.1;
  }

  34% {
    opacity: 0.42;
  }

  36% {
    opacity: 0;
  }
}

@keyframes systemGlitchCycle {
  0%,
  62%,
  76%,
  100% {
    opacity: 0;
    transform: translateX(0) scaleX(1);
  }

  63% {
    opacity: 1;
    transform: translateX(-72px) scaleX(1.14);
  }

  65% {
    opacity: 0;
  }

  66% {
    opacity: 0.9;
    transform: translateX(82px) scaleX(0.9);
  }

  68% {
    opacity: 0;
  }

  69% {
    opacity: 0.76;
    transform: translateX(-48px) scaleX(1.24);
  }

  71% {
    opacity: 0.5;
    transform: translateX(40px) scaleX(1.08);
  }

  73% {
    opacity: 0;
  }
}

@keyframes systemTextCycleTop {
  0%,
  62%,
  76%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  63% {
    opacity: 1;
    transform: translateX(-18px);
  }

  66% {
    opacity: 0.84;
    transform: translateX(22px);
  }

  69% {
    opacity: 0.74;
    transform: translateX(-14px);
  }

  73% {
    opacity: 0;
  }
}

@keyframes systemTextCycleBottom {
  0%,
  62%,
  76%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  63% {
    opacity: 0.86;
    transform: translateX(22px);
  }

  66% {
    opacity: 0.8;
    transform: translateX(-24px);
  }

  69% {
    opacity: 0.7;
    transform: translateX(16px);
  }

  73% {
    opacity: 0;
  }
}

@keyframes systemButtonShine {
  0%,
  70% {
    transform: translateX(-78%) skewX(-12deg);
  }

  86%,
  100% {
    transform: translateX(78%) skewX(-12deg);
  }
}

@keyframes systemButtonOpen {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1.16) saturate(1.2);
  }

  25% {
    transform: translate(-50%, -50%) scale(1.035);
    border-color: rgba(255, 80, 110, 1);
    box-shadow:
      0 0 10px rgba(255, 255, 255, 1),
      0 0 38px rgba(255, 56, 96, 0.95),
      0 0 120px rgba(255, 32, 72, 0.52),
      inset 0 0 45px rgba(255, 56, 96, 0.34);
  }

  52% {
    transform: translate(-50%, -50%) scale(1.02) skewX(2deg);
    opacity: 1;
  }

  72% {
    transform: translate(-50%, -50%) scale(1.08) skewX(-2deg);
    opacity: 0.85;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes systemButtonGlitchOpen {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  18% {
    opacity: 1;
    transform: translateX(-86px) scaleX(1.24);
  }

  32% {
    opacity: 0;
  }

  45% {
    opacity: 1;
    transform: translateX(92px) scaleX(0.86);
  }

  62% {
    opacity: 0.84;
    transform: translateX(-58px) scaleX(1.32);
  }

  100% {
    opacity: 0;
    transform: translateX(120px);
  }
}

@keyframes systemOpenFlash {
  0% {
    opacity: 0;
  }

  28% {
    opacity: 0.72;
  }

  60% {
    opacity: 0.36;
  }

  100% {
    opacity: 0;
  }
}
/* System button end */

/* Enter status start */
.system-enter-status {
  position: absolute;
  left: 50%;
  top: calc(50% + 118px);
  z-index: 13;
  transform: translateX(-50%);
  min-height: 18px;
  color: rgba(217, 255, 233, 0.72);
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.28);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
  pointer-events: none;
}

.system-enter-button.is-active + .system-enter-status {
  opacity: 1;
}

.system-enter-status.is-ready {
  color: rgba(217, 255, 233, 0.92);
  text-shadow: 0 0 14px rgba(120, 255, 190, 0.42);
}

.system-enter-status.is-waiting {
  color: rgba(255, 95, 120, 0.86);
  text-shadow: 0 0 14px rgba(255, 60, 90, 0.42);
}
/* Enter status end */

/* Controls start */
.controls {
  position: absolute;
  right: 24px;
  bottom: 92px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-btn {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(120, 255, 190, 0.32);
  border-radius: 999px;
  background: rgba(5, 13, 12, 0.46);
  color: rgba(217, 255, 233, 0.74);
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.control-btn:hover {
  color: #ffffff;
  border-color: rgba(120, 255, 190, 0.72);
  background: rgba(25, 255, 160, 0.12);
  box-shadow: 0 0 20px rgba(120, 255, 190, 0.18);
}

/* Controls end */

/* Mobile notice start */
.mobile-orientation {
  display: none;
}

/* Mobile notice end */

/* Boot start */
.boot-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at center,
      rgba(34, 255, 171, 0.13),
      transparent 34%
    ),
    #030504;
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-screen__panel {
  width: min(560px, 100%);
  border: 1px solid rgba(120, 255, 190, 0.38);
  background: rgba(0, 0, 0, 0.34);
  box-shadow:
    0 0 60px rgba(120, 255, 190, 0.12),
    inset 0 0 40px rgba(120, 255, 190, 0.05);
  padding: 24px;
  font-family: "Courier New", Consolas, monospace;
  color: var(--green-soft);
}

.boot-screen__title {
  margin: 0 0 18px;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boot-screen__log {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: rgba(217, 255, 233, 0.72);
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
}

.boot-screen__log li {
  opacity: 0;
  transform: translateY(4px);
  animation: logAppear 0.4s ease forwards;
}

.boot-screen__log li:nth-child(1) {
  animation-delay: 0.25s;
}

.boot-screen__log li:nth-child(2) {
  animation-delay: 0.95s;
}

.boot-screen__log li:nth-child(3) {
  animation-delay: 1.65s;
}

.boot-screen__log li:nth-child(4) {
  animation-delay: 2.35s;
}

@keyframes logAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boot-screen__bar {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(120, 255, 190, 0.42);
  background: rgba(120, 255, 190, 0.05);
}

.boot-screen__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(120, 255, 190, 0.18),
    rgba(120, 255, 190, 0.86)
  );
  box-shadow: 0 0 18px rgba(120, 255, 190, 0.54);
  animation: bootProgress 3.8s cubic-bezier(0.18, 0.82, 0.24, 1) forwards;
}

@keyframes bootProgress {
  0% {
    width: 0%;
  }

  42% {
    width: 46%;
  }

  72% {
    width: 78%;
  }

  100% {
    width: 100%;
  }
}

/* Boot end */

/* Cursor start */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 1px solid rgba(120, 255, 190, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(120, 255, 190, 0.3),
    inset 0 0 10px rgba(120, 255, 190, 0.12);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.16s ease;
}

.cursor-glow.is-visible {
  opacity: 1;
}

.cursor-glow.is-hover {
  transform: scale(1.8);
  background: rgba(120, 255, 190, 0.06);
}

/* Cursor end */

/* Transition and map start */
.transition-screen {
  z-index: 20;
}

.map-screen {
  z-index: 30;
  background:
    #050505
    url("../video/mobile/map-loop.webp")
    center center / cover
    no-repeat;
}

.map-screen__video {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.map-screen.is-video-ready .map-screen__video {
  opacity: 1;
}

.transition-screen__video,
.map-screen__video {
  filter: brightness(1.08) contrast(1.05) saturate(1.05);
}

.transition-screen::before,
.map-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.34) 74%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.34),
      transparent 18%,
      transparent 82%,
      rgba(0, 0, 0, 0.34)
    );
  pointer-events: none;
}

.transition-screen::after,
.map-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.032) 0,
    rgba(255, 255, 255, 0.032) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.22;
  pointer-events: none;
  animation: scanlinesMove 7s linear infinite;
}

/* Transition and map end */

/* Map UI start */
.map-ui {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

body.is-map-ui-active .map-ui {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: mapUiPowerOn 2.4s steps(1, end) forwards;
}

.map-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at center,
      rgba(120, 255, 190, 0.09),
      transparent 42%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(120, 255, 190, 0.04) 0,
      rgba(120, 255, 190, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0;
  pointer-events: none;
}

body.is-map-ui-active .map-ui::before {
  animation: mapUiGridBoot 2.6s ease forwards;
}

.map-ui::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent, rgba(255, 61, 79, 0.1), transparent),
    linear-gradient(0deg, transparent, rgba(120, 255, 190, 0.08), transparent);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

body.is-map-ui-active .map-ui::after {
  animation: mapUiGlitchOverlay 2.2s steps(1, end) forwards;
}

.map-ui__power-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(
      circle at center,
      rgba(217, 255, 233, 0.42),
      transparent 38%
    ),
    linear-gradient(90deg, transparent, rgba(120, 255, 190, 0.28), transparent);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

body.is-map-ui-active .map-ui__power-flash {
  animation: mapPowerFlash 1.8s steps(1, end) forwards;
}

.map-ui__scan {
  position: absolute;
  left: -10%;
  top: -20%;
  z-index: 4;
  width: 120%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 255, 190, 0.95),
    transparent
  );
  box-shadow:
    0 0 18px rgba(120, 255, 190, 0.9),
    0 0 60px rgba(120, 255, 190, 0.34);
  opacity: 0;
  pointer-events: none;
}

body.is-map-ui-active .map-ui__scan {
  animation: mapScanStart 2.8s ease-out forwards;
}

.map-ui__status {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 8;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(120, 255, 190, 0.34);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(217, 255, 233, 0.78);
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

body.is-map-ui-active .map-ui__status {
  animation: mapStatusBoot 1.4s ease forwards 1.2s;
}

.map-ui__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78ffbe;
  box-shadow: 0 0 16px rgba(120, 255, 190, 0.95);
  animation: mapStatusPulse 1.2s ease-in-out infinite;
}

/* map point start */

.map-point {
  --stem: 44px;
  --arm: 58px;

  --stem-top: auto;
  --stem-bottom: 0px;

  --arm-left: 0px;
  --arm-top: auto;
  --arm-bottom: var(--stem);

  --label-left: 66px;
  --label-top: auto;
  --label-bottom: calc(var(--stem) - 12px);

  --label-line-left: -5px;
  --label-line-right: auto;

  position: absolute;
  z-index: 7;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  cursor: pointer;
}

body.is-map-ui-active .map-point {
  animation:
    mapPointBoot 2.2s steps(1, end) forwards,
    mapPointFloat 3.8s ease-in-out infinite 2.2s;
}

.map-point__dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9ffe9;
  box-shadow:
    0 0 8px rgba(217, 255, 233, 0.95),
    0 0 22px rgba(120, 255, 190, 0.74),
    0 0 42px rgba(120, 255, 190, 0.28);
  transform: translate(-50%, -50%);
}

.map-point__dot::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(120, 255, 190, 0.24);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.75);
}

body.is-map-ui-active .map-point__dot::before {
  animation: mapPointRing 1.9s ease-in-out infinite 2.2s;
}

.map-point__stem {
  position: absolute;
  left: -1px;
  top: var(--stem-top);
  bottom: var(--stem-bottom);
  z-index: 2;
  width: 2px;
  height: var(--stem);
  background: linear-gradient(
    to top,
    rgba(120, 255, 190, 0.82),
    rgba(120, 255, 190, 0.28)
  );
  box-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(120, 255, 190, 0.38),
    0 0 16px rgba(120, 255, 190, 0.18);
  pointer-events: none;
}

.map-point__stem::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 6px;
  height: 100%;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(2px);
  z-index: -1;
}

.map-point__arm {
  position: absolute;
  left: var(--arm-left);
  top: var(--arm-top);
  bottom: var(--arm-bottom);
  z-index: 2;
  width: var(--arm);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(120, 255, 190, 0.82),
    rgba(120, 255, 190, 0.28)
  );
  box-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(120, 255, 190, 0.38),
    0 0 16px rgba(120, 255, 190, 0.18);
  pointer-events: none;
}

.map-point__arm::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(2px);
  z-index: -1;
}

.map-point__label {
  position: absolute;
  left: var(--label-left);
  top: var(--label-top);
  bottom: var(--label-bottom);
  z-index: 4;
  min-width: 48px;
  padding: 5px 10px;
  border: 1px solid rgba(120, 255, 190, 0.36);
  border-left: 2px solid rgba(120, 255, 190, 0.82);
  background:
    linear-gradient(90deg, rgba(120, 255, 190, 0.08), transparent 46%),
    rgba(2, 9, 8, 0.82);
  color: rgba(232, 255, 241, 0.94);
  font-family: "Courier New", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow:
    0 0 7px rgba(120, 255, 190, 0.44),
    0 1px 0 rgba(0, 0, 0, 0.72);
  white-space: nowrap;
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(120, 255, 190, 0.1),
    inset 0 0 14px rgba(120, 255, 190, 0.04);
  backdrop-filter: blur(5px);
}

.map-point__label::before {
  content: "";
  position: absolute;
  left: var(--label-line-left);
  right: var(--label-line-right);
  top: 50%;
  width: 8px;
  height: 2px;
  background: rgba(120, 255, 190, 0.72);
  box-shadow:
    0 0 2px rgba(0, 0, 0, 0.8),
    0 0 7px rgba(120, 255, 190, 0.3);
  transform: translateY(-50%);
}

.map-point__label::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-top: 1px solid rgba(217, 255, 233, 0.22);
  border-bottom: 1px solid rgba(217, 255, 233, 0.08);
  pointer-events: none;
}

.map-point:hover .map-point__dot,
.map-point.is-active .map-point__dot {
  background: #ffffff;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 24px rgba(255, 95, 120, 0.86),
    0 0 58px rgba(255, 61, 79, 0.42);
}

.map-point:hover .map-point__stem,
.map-point:hover .map-point__arm,
.map-point.is-active .map-point__stem,
.map-point.is-active .map-point__arm {
  background: rgba(255, 95, 120, 0.78);
  box-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 95, 120, 0.42),
    0 0 20px rgba(255, 95, 120, 0.2);
}

.map-point:hover .map-point__label,
.map-point.is-active .map-point__label {
  color: #ffffff;
  border-color: rgba(255, 95, 120, 0.54);
  border-left-color: rgba(255, 95, 120, 0.96);
  background:
    linear-gradient(90deg, rgba(255, 95, 120, 0.14), transparent 50%),
    rgba(12, 4, 7, 0.88);
  text-shadow:
    0 0 10px rgba(255, 95, 120, 0.7),
    0 1px 0 rgba(0, 0, 0, 0.8);
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(255, 95, 120, 0.18),
    inset 0 0 14px rgba(255, 95, 120, 0.08);
}

/* координаты и выносы */
.map-point--book-1 {
  left: 60.6%;
  top: 57%;
  --stem: 48px;

  --stem-top: 0px;
  --stem-bottom: auto;

  --arm: 62px;
  --arm-left: 0px;
  --arm-top: var(--stem);
  --arm-bottom: auto;

  --label-left: 70px;
  --label-top: calc(var(--stem) - 12px);
  --label-bottom: auto;

  --label-line-left: -5px;
  --label-line-right: auto;

  animation-delay: 0s, 2.2s;
}

.map-point--book-3 {
  left: 41.5%;
  top: 46%;
  --stem: 48px;

  --stem-top: 0px;
  --stem-bottom: auto;

  --arm: 62px;
  --arm-left: 0px;
  --arm-top: var(--stem);
  --arm-bottom: auto;

  --label-left: 70px;
  --label-top: calc(var(--stem) - 12px);
  --label-bottom: auto;

  --label-line-left: -5px;
  --label-line-right: auto;

  animation-delay: 0.16s, 2.36s;
}

.map-point--book-5 {
  left: 57.5%;
  top: 39%;
  --stem: 52px;

  --stem-top: 0px;
  --stem-bottom: auto;

  --arm: 58px;
  --arm-left: 0px;
  --arm-top: var(--stem);
  --arm-bottom: auto;

  --label-left: 66px;
  --label-top: calc(var(--stem) - 12px);
  --label-bottom: auto;

  --label-line-left: -5px;
  --label-line-right: auto;

  animation-delay: 0.32s, 2.52s;
}

.map-point--book-6 {
  left: 47.1%;
  top: 40%;
  --stem: 46px;

  --stem-top: auto;
  --stem-bottom: 0px;

  --arm: 60px;
  --arm-left: -60px;
  --arm-top: auto;
  --arm-bottom: var(--stem);

  --label-left: -116px;
  --label-top: auto;
  --label-bottom: calc(var(--stem) - 12px);

  --label-line-left: auto;
  --label-line-right: -5px;

  animation-delay: 0.4s, 2.6s;
}

.map-point--book-7 {
  left: 57%;
  top: 36.5%;
  --stem: 38px;

  --stem-top: auto;
  --stem-bottom: 0px;

  --arm: 66px;
  --arm-left: 0px;
  --arm-top: auto;
  --arm-bottom: var(--stem);

  --label-left: 74px;
  --label-top: auto;
  --label-bottom: calc(var(--stem) - 12px);

  --label-line-left: -5px;
  --label-line-right: auto;

  animation-delay: 0.48s, 2.68s;
}

.map-point--book-8 {
  left: 40.5%;
  top: 47%;
  --stem: 54px;

  --stem-top: auto;
  --stem-bottom: 0px;

  --arm: 66px;
  --arm-left: -66px;
  --arm-top: auto;
  --arm-bottom: var(--stem);

  --label-left: -124px;
  --label-top: auto;
  --label-bottom: calc(var(--stem) - 12px);

  --label-line-left: auto;
  --label-line-right: -5px;

  animation-delay: 0.56s, 2.76s;
}

.map-point--book-9 {
  left: 68%;
  top: 43%;
  --stem: 44px;
  --stem-top: auto;
  --stem-bottom: 0px;
  --arm: 64px;
  --arm-left: 0px;
  --arm-top: auto;
  --arm-bottom: var(--stem);
  --label-left: 72px;
  --label-top: auto;
  --label-bottom: calc(var(--stem) - 12px);
  --label-line-left: -5px;
  --label-line-right: auto;
  animation-delay: 0.64s, 2.84s;
}

@keyframes mapPointBoot {
  0%,
  36% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.45);
    filter: brightness(2.4);
  }

  43% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.7);
  }

  48% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.14);
  }

  52% {
    opacity: 0.54;
    transform: translate(-50%, -50%) scale(0.92) translateX(-5px);
  }

  56% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04) translateX(4px);
  }

  62%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
}

@keyframes mapPointRing {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.75);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.22);
  }
}

@keyframes mapPointFloat {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -4px;
  }
}

/* map point end */

/* Book menu start */
.map-book-menu {
  position: absolute;
  left: 24px;
  top: 50%;
  z-index: 12;
  width: 270px;
  height: 430px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--map-panel-border);
  background: var(--map-panel-bg);
  color: var(--map-panel-text);
  font-family: var(--map-font);
  letter-spacing: var(--map-letter);
  box-shadow: var(--map-panel-shadow);
  backdrop-filter: var(--map-panel-blur);
  opacity: 0;
  transform: translate(-14px, -50%);
  pointer-events: none;
}

body.is-map-ui-active .map-book-menu {
  animation: mapBookMenuBoot 1.4s ease forwards 1.75s;
  pointer-events: auto;
}

.map-book-menu__title {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(120, 255, 190, 0.18);
  color: var(--map-panel-text-strong);
  font-family: var(--map-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--map-letter-title);
  text-transform: uppercase;
}

.map-book-menu__item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--map-panel-text);
  font-family: var(--map-font);
  letter-spacing: var(--map-letter);
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.map-book-menu__item span {
  display: block;
  padding: 4px 5px;
  border: 1px solid rgba(120, 255, 190, 0.2);
  background: rgba(0, 0, 0, 0.18);
  color: var(--map-panel-text-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--map-letter);
  text-align: center;
  text-shadow: 0 0 8px var(--map-panel-glow);
}

.map-book-menu__item strong {
  color: var(--map-panel-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--map-letter);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(120, 255, 190, 0.08);
}

.map-book-menu__item:hover,
.map-book-menu__item.is-active {
  border-color: rgba(255, 95, 120, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 95, 120, 0.12), transparent 68%),
    rgba(0, 0, 0, 0.18);
  color: #ffffff;
  box-shadow:
    0 0 18px rgba(255, 95, 120, 0.12),
    inset 0 0 12px rgba(255, 95, 120, 0.06);
}

.map-book-menu__item:hover span,
.map-book-menu__item.is-active span {
  border-color: rgba(255, 95, 120, 0.56);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 95, 120, 0.68);
}

@keyframes mapBookMenuBoot {
  0% {
    opacity: 0;
    transform: translate(-14px, -50%);
  }

  42% {
    opacity: 1;
    transform: translate(3px, -50%);
    filter: brightness(1.7);
  }

  54% {
    opacity: 0.36;
    transform: translate(-4px, -50%);
  }

  78%,
  100% {
    opacity: 1;
    transform: translate(0, -50%);
    filter: brightness(1);
  }
}
/* Book menu end */

/* Report start */
.map-report {
  position: absolute;
  left: 320px;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 13;
  display: flex;
  flex-direction: column;
  width: 608px;
  min-width: 608px;
  max-width: 608px;
  height: 430px;
  max-height: none;
  box-sizing: border-box;
  border: 1px solid var(--map-panel-border);
  background: var(--map-panel-bg);
  color: var(--map-panel-text);
  font-family: var(--map-font);
  letter-spacing: var(--map-letter);
  box-shadow: var(--map-panel-shadow);
  backdrop-filter: var(--map-panel-blur);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 10px)) scale(0.985);
  pointer-events: none;
}

.map-report.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
  animation: mapReportBoot 0.7s steps(1, end) forwards;
}

.map-report.is-right-side {
  left: auto;
  right: 24px;
  top: 50%;
  width: 608px;
  min-width: 608px;
  max-width: 608px;
}

.map-report__close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 255, 190, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: var(--map-panel-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.map-report__close:hover {
  border-color: rgba(255, 95, 120, 0.62);
  color: #ffffff;
}

.map-report__head {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 48px 14px 18px;
  border-bottom: 1px solid rgba(120, 255, 190, 0.16);
}

.map-report__eyebrow {
  margin-bottom: 6px;
  color: var(--map-panel-text-muted);
  font-family: var(--map-font);
  font-size: 10px;
  letter-spacing: var(--map-letter-title);
  text-transform: uppercase;
}

.map-report__title {
  margin: 0;
  color: var(--map-panel-text-strong);
  font-family: var(--map-font);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: var(--map-letter);
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--map-panel-glow);
}

.map-report__status {
  display: flex;
  gap: 7px;
  align-items: center;
  align-self: flex-start;
  color: var(--map-panel-text-muted);
  font-family: var(--map-font);
  font-size: 10px;
  letter-spacing: var(--map-letter-title);
  text-transform: uppercase;
  white-space: nowrap;
}

.map-report__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78ffbe;
  box-shadow: 0 0 14px rgba(120, 255, 190, 0.88);
  animation: mapReportStatusPulse 1s ease-in-out infinite;
}

.map-report__body {
  position: relative;
  flex: 1 1 auto;
  max-height: none;
  overflow: hidden;
  padding: 16px 18px;
}

.map-report__text {
  min-height: 0;
  margin: 0;
  color: var(--map-panel-text);
  font-family: var(--map-font);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: var(--map-letter);
  white-space: pre-wrap;
  text-shadow: 0 0 8px rgba(120, 255, 190, 0.1);
}

.map-report__text::after {
  content: "█";
  display: inline-block;
  margin-left: 3px;
  color: rgba(120, 255, 190, 0.9);
  animation: mapReportCursor 0.8s steps(1, end) infinite;
}

.map-report__link {
  display: none;
  flex: 0 0 auto;
  margin: 0 18px 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 95, 120, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 95, 120, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.26);
  color: #ffffff;
  font-family: var(--map-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--map-letter-title);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 95, 120, 0.54);
  box-shadow:
    0 0 18px rgba(255, 95, 120, 0.12),
    inset 0 0 14px rgba(255, 95, 120, 0.05);
}

.map-report__link.is-visible {
  display: block;
}

.map-report__link:hover {
  border-color: rgba(255, 95, 120, 0.78);
  background:
    linear-gradient(90deg, rgba(255, 95, 120, 0.18), transparent 70%),
    rgba(0, 0, 0, 0.36);
}

@keyframes mapReportBoot {
  0% {
    filter: brightness(0.4) contrast(1.6);
  }

  18% {
    filter: brightness(2.2) contrast(1.2);
    transform: translateY(-50%) scale(1.015) translateX(-4px);
  }

  28% {
    opacity: 0.34;
    transform: translateY(-50%) scale(1) translateX(5px);
  }

  44% {
    opacity: 1;
    transform: translateY(-50%) scale(1) translateX(0);
  }

  100% {
    filter: brightness(1) contrast(1);
    transform: translateY(-50%) scale(1);
  }
}

@keyframes mapReportCursor {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes mapReportStatusPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.78);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}
/* Report end */

/* Combined point choice start */
.map-book-choice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 14;
  width: min(440px, calc(100% - 28px));
  padding: 20px;
  border: 1px solid var(--map-panel-border);
  background: rgba(1, 9, 7, 0.94);
  color: var(--map-panel-text);
  font-family: var(--map-font);
  letter-spacing: var(--map-letter);
  box-shadow: var(--map-panel-shadow);
  backdrop-filter: var(--map-panel-blur);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 10px));
  pointer-events: none;
}

.map-book-choice.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.map-book-choice__close {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(120, 255, 190, 0.28);
  background: rgba(0, 0, 0, 0.32);
  color: var(--map-panel-text);
  font-size: 23px;
  line-height: 1;
}

.map-book-choice__eyebrow {
  padding-right: 38px;
  color: var(--map-panel-text-muted);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: var(--map-letter-title);
  text-transform: uppercase;
}

.map-book-choice__title {
  margin-top: 7px;
  color: var(--map-panel-text-strong);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-book-choice__options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.map-book-choice__option {
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 255, 190, 0.3);
  background:
    linear-gradient(90deg, rgba(120, 255, 190, 0.1), transparent 72%),
    rgba(0, 0, 0, 0.24);
  color: var(--map-panel-text-strong);
  font-family: var(--map-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--map-letter);
  text-align: left;
  text-transform: uppercase;
}

.map-book-choice__option:active {
  border-color: rgba(255, 95, 120, 0.68);
  background:
    linear-gradient(90deg, rgba(255, 95, 120, 0.16), transparent 72%),
    rgba(0, 0, 0, 0.32);
}
/* Combined point choice end */

/* Active point blink start */

.map-point.is-target-blink .map-point__dot {
  animation: mapPointTargetBlink 0.65s steps(1, end) 5;
}

.map-point.is-target-blink .map-point__stem,
.map-point.is-target-blink .map-point__arm,
.map-point.is-target-blink .map-point__label {
  animation: mapPointTargetGlow 0.65s steps(1, end) 5;
}

@keyframes mapPointTargetBlink {
  0%,
  100% {
    filter: brightness(1);
  }

  45% {
    filter: brightness(3.2);
    box-shadow:
      0 0 14px rgba(255, 255, 255, 1),
      0 0 34px rgba(255, 95, 120, 0.92),
      0 0 76px rgba(255, 61, 79, 0.54);
  }

  70% {
    filter: brightness(0.55);
  }
}

@keyframes mapPointTargetGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  45% {
    filter: brightness(2.4);
  }

  70% {
    filter: brightness(0.7);
  }
}

/* Active point blink end */

@keyframes mapUiPowerOn {
  0% {
    opacity: 0;
    filter: brightness(0.1) contrast(2);
  }

  8% {
    opacity: 1;
    filter: brightness(2.8) contrast(1.8);
  }

  11% {
    opacity: 0.18;
    filter: brightness(0.3) contrast(2.4);
  }

  15% {
    opacity: 0.95;
    filter: brightness(1.8) contrast(1.4);
  }

  19% {
    opacity: 0.32;
    filter: brightness(0.6) contrast(2);
  }

  25% {
    opacity: 1;
    filter: brightness(1.2) contrast(1.2);
  }

  37% {
    opacity: 0.86;
    transform: translateX(-4px);
  }

  39% {
    opacity: 1;
    transform: translateX(5px);
  }

  42% {
    transform: translateX(0);
  }

  100% {
    opacity: 1;
    filter: brightness(1) contrast(1);
    transform: translateX(0);
  }
}

@keyframes mapUiGridBoot {
  0%,
  14% {
    opacity: 0;
  }

  18% {
    opacity: 0.78;
  }

  21% {
    opacity: 0.12;
  }

  28% {
    opacity: 0.42;
  }

  100% {
    opacity: 0.24;
  }
}

@keyframes mapUiGlitchOverlay {
  0%,
  25%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  9% {
    opacity: 0.6;
    transform: translateX(-18px);
  }

  11% {
    opacity: 0;
  }

  16% {
    opacity: 0.42;
    transform: translateX(22px);
  }

  19% {
    opacity: 0;
  }

  34% {
    opacity: 0.32;
    transform: translateX(-12px);
  }

  36% {
    opacity: 0;
  }
}

@keyframes mapPowerFlash {
  0%,
  5%,
  12%,
  22%,
  100% {
    opacity: 0;
  }

  7% {
    opacity: 0.8;
  }

  14% {
    opacity: 0.28;
  }

  24% {
    opacity: 0.45;
  }
}

@keyframes mapScanStart {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  12% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateY(140vh);
  }
}

@keyframes mapStatusBoot {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mapStatusPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Map UI end */

/* Map HUD start */
.map-hud {
  position: absolute;
  z-index: 8;
  border: 1px solid rgba(120, 255, 190, 0.26);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(217, 255, 233, 0.78);
  font-family: "Courier New", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.24);
  box-shadow:
    0 0 22px rgba(120, 255, 190, 0.08),
    inset 0 0 18px rgba(120, 255, 190, 0.04);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

body.is-map-ui-active .map-hud {
  animation: mapHudBoot 1.4s ease forwards 1.3s;
}

.map-hud--top-left {
  left: 24px;
  top: 24px;
  min-width: 250px;
  padding: 12px 14px;
}

.map-hud--top-right {
  right: 24px;
  top: 24px;
  min-width: 240px;
  padding: 12px 14px;
  text-align: right;
}

.map-hud--top-center {
  left: 50%;
  top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  font-size: 11px;
  transform: translate(-50%, -8px);
}

body.is-map-ui-active .map-hud--top-center {
  animation: mapHudCenterBoot 1.4s ease forwards 1.45s;
}

.map-hud--top-center span {
  position: relative;
  white-space: nowrap;
}

.map-hud--top-center span + span::before {
  content: "/";
  margin-right: 12px;
  color: rgba(120, 255, 190, 0.38);
}

.map-hud__label {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.map-hud__value {
  color: rgba(217, 255, 233, 0.9);
  font-size: 13px;
}

.map-hud-panel {
  position: absolute;
  right: 24px;
  top: 50%;
  z-index: 8;
  width: 250px;
  padding: 14px;
  border: 1px solid rgba(120, 255, 190, 0.25);
  background: rgba(0, 0, 0, 0.32);
  color: rgba(217, 255, 233, 0.76);
  font-family: "Courier New", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    0 0 30px rgba(120, 255, 190, 0.08),
    inset 0 0 22px rgba(120, 255, 190, 0.04);
  backdrop-filter: blur(7px);
  opacity: 0;
  transform: translateY(-50%) translateX(16px);
  pointer-events: none;
}

body.is-map-ui-active .map-hud-panel {
  animation: mapHudPanelBoot 1.5s ease forwards 1.65s;
}

.map-hud-panel__title {
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(120, 255, 190, 0.18);
  color: rgba(217, 255, 233, 0.9);
  font-size: 12px;
}

.map-hud-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(120, 255, 190, 0.08);
  font-size: 11px;
}

.map-hud-panel__row span {
  color: rgba(255, 255, 255, 0.42);
}

.map-hud-panel__row strong {
  color: rgba(120, 255, 190, 0.9);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(120, 255, 190, 0.34);
}

.map-hud-log {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 8;
  width: 360px;
  max-width: calc(100vw - 48px);
  padding: 13px 14px;
  border-left: 2px solid rgba(120, 255, 190, 0.68);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
  color: rgba(217, 255, 233, 0.68);
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(120, 255, 190, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

body.is-map-ui-active .map-hud-log {
  animation: mapHudLogBoot 1.6s ease forwards 1.9s;
}

.map-corner {
  position: absolute;
  z-index: 6;
  width: 72px;
  height: 72px;
  opacity: 0;
  pointer-events: none;
}

body.is-map-ui-active .map-corner {
  animation: mapCornerBoot 1.2s ease forwards 1.1s;
}

.map-corner--tl {
  left: 18px;
  top: 18px;
  border-top: 1px solid rgba(120, 255, 190, 0.56);
  border-left: 1px solid rgba(120, 255, 190, 0.56);
}

.map-corner--tr {
  right: 18px;
  top: 18px;
  border-top: 1px solid rgba(120, 255, 190, 0.56);
  border-right: 1px solid rgba(120, 255, 190, 0.56);
}

.map-corner--bl {
  left: 18px;
  bottom: 18px;
  border-bottom: 1px solid rgba(120, 255, 190, 0.56);
  border-left: 1px solid rgba(120, 255, 190, 0.56);
}

.map-corner--br {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid rgba(120, 255, 190, 0.56);
  border-bottom: 1px solid rgba(120, 255, 190, 0.56);
}

.map-ruler {
  position: absolute;
  top: 120px;
  bottom: 120px;
  z-index: 6;
  width: 20px;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(120, 255, 190, 0.42) 0,
    rgba(120, 255, 190, 0.42) 1px,
    transparent 1px,
    transparent 18px
  );
  pointer-events: none;
}

body.is-map-ui-active .map-ruler {
  animation: mapRulerBoot 1.4s ease forwards 1.75s;
}

.map-ruler--left {
  left: 10px;
}

.map-ruler--right {
  right: 10px;
}

@keyframes mapHudBoot {
  0% {
    opacity: 0;
    transform: translateY(-8px);
    filter: brightness(0.4);
  }

  35% {
    opacity: 1;
    transform: translateY(2px);
    filter: brightness(2);
  }

  48% {
    opacity: 0.28;
    transform: translateY(-3px);
  }

  64%,
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@keyframes mapHudCenterBoot {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px);
    filter: brightness(0.4);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, 2px);
    filter: brightness(2);
  }

  48% {
    opacity: 0.28;
    transform: translate(-50%, -3px);
  }

  64%,
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
    filter: brightness(1);
  }
}

@keyframes mapHudPanelBoot {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(16px);
  }

  40% {
    opacity: 1;
    transform: translateY(-50%) translateX(-3px);
    filter: brightness(1.8);
  }

  50% {
    opacity: 0.35;
    transform: translateY(-50%) translateX(4px);
  }

  70%,
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    filter: brightness(1);
  }
}

@keyframes mapHudLogBoot {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  45% {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(1.7);
  }

  55% {
    opacity: 0.3;
  }

  72%,
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@keyframes mapCornerBoot {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }

  45% {
    opacity: 1;
    transform: scale(1.04);
  }

  55% {
    opacity: 0.24;
  }

  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes mapRulerBoot {
  0% {
    opacity: 0;
    transform: scaleY(0.2);
  }

  48% {
    opacity: 0.74;
    transform: scaleY(1.04);
  }

  58% {
    opacity: 0.18;
  }

  100% {
    opacity: 0.38;
    transform: scaleY(1);
  }
}
/* Map HUD end */

/* Responsive start */
@media (max-width: 768px) and (orientation: portrait) {
  .intro-screen {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: 100svh;
  }

  .intro-screen__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
    filter: brightness(0.82) contrast(1.05) saturate(1.05);
    background: #050505;
  }

  .intro-screen::before {
    background:
      radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.28) 72%
      ),
      rgba(0, 0, 0, 0.22);
  }

  .system-enter-button,
  .system-enter-status,
  .controls,
  .system-message,
  .hud__item--bl,
  .hud__item--br,
  .particle-canvas,
  .cursor-glow {
    display: none;
  }

  .hud {
    inset: 14px;
  }

  .hud__item {
    min-width: auto;
    padding: 8px 10px;
  }

  .hud__label {
    display: none;
  }

  .mobile-orientation {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: auto;
    overscroll-behavior: none;
    background:
      radial-gradient(
        circle at center,
        rgba(34, 255, 171, 0.12),
        transparent 38%
      ),
      rgba(0, 0, 0, 0.48);
  }

  .mobile-orientation__card {
    width: 100%;
    max-width: 380px;
    padding: 28px 22px;
    border: 1px solid rgba(120, 255, 190, 0.45);
    border-radius: 28px;
    background: rgba(5, 13, 12, 0.82);
    color: #ffffff;
    text-align: center;
    box-shadow:
      0 0 40px rgba(66, 255, 170, 0.18),
      inset 0 0 24px rgba(66, 255, 170, 0.08);
    backdrop-filter: blur(14px);
  }

  .mobile-orientation__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border: 1px solid rgba(120, 255, 190, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a6ffd2;
    font-size: 38px;
    line-height: 1;
    box-shadow: 0 0 24px rgba(66, 255, 170, 0.28);
  }

  .mobile-orientation__card h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .mobile-orientation__card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.5;
  }

  .mobile-orientation__button {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid rgba(120, 255, 190, 0.68);
    border-radius: 999px;
    background:
      linear-gradient(90deg, rgba(120, 255, 190, 0.12), transparent 70%),
      rgba(0, 0, 0, 0.28);
    color: #e7fff1;
    font-family: "Courier New", Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    box-shadow:
      0 0 22px rgba(120, 255, 190, 0.12),
      inset 0 0 18px rgba(120, 255, 190, 0.05);
  }

  .mobile-orientation__button:disabled {
    opacity: 0.56;
  }

  .mobile-orientation__hint {
    margin-top: 14px;
    color: rgba(217, 255, 233, 0.52);
    font-family: "Courier New", Consolas, monospace;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.is-portrait-catalog .mobile-orientation {
    display: none;
  }

  body.is-portrait-catalog .scene,
  body.is-portrait-catalog .map-ui {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  body.is-portrait-catalog .map-screen__video {
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.46) contrast(1.08) saturate(0.82);
    transform: scale(1.04);
  }

  body.is-portrait-catalog .map-screen::before {
    background:
      radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7) 86%),
      rgba(0, 0, 0, 0.22);
  }

  body.is-portrait-catalog .map-point,
  body.is-portrait-catalog .map-ui__status,
  body.is-portrait-catalog .map-hud,
  body.is-portrait-catalog .map-hud-panel,
  body.is-portrait-catalog .map-hud-log,
  body.is-portrait-catalog .map-corner,
  body.is-portrait-catalog .map-ruler {
    display: none;
  }

  body.is-portrait-catalog .map-book-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    width: calc(100% - 28px);
    height: auto;
    max-height: calc(100dvh - 28px);
    padding: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
    animation: none;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 255, 190, 0.42) rgba(0, 0, 0, 0.2);
  }

  body.is-portrait-catalog .map-book-menu__title {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -14px 10px;
    padding: 16px 14px 12px;
    background: rgba(1, 9, 7, 0.94);
    font-size: 13px;
    text-align: center;
  }

  body.is-portrait-catalog .map-book-menu__item {
    grid-template-columns: 48px 1fr;
    min-height: 48px;
    padding: 8px 10px;
  }

  body.is-portrait-catalog .map-book-menu__item strong {
    font-size: 13px;
  }

  body.is-portrait-catalog .map-report,
  body.is-portrait-catalog .map-report.is-right-side {
    position: fixed;
    inset: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    background: rgba(1, 9, 7, 0.94);
    transform: none;
  }

  body.is-portrait-catalog .map-report.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    animation: none;
  }

  body.is-portrait-catalog .map-report__close {
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  body.is-portrait-catalog .map-report__head {
    padding: 18px 52px 14px 16px;
  }

  body.is-portrait-catalog .map-report__eyebrow {
    font-size: 9px;
    line-height: 1.4;
  }

  body.is-portrait-catalog .map-report__title {
    font-size: 17px;
  }

  body.is-portrait-catalog .map-report__status {
    display: none;
  }

  body.is-portrait-catalog .map-report__body {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
  }

  body.is-portrait-catalog .map-report__text {
    font-size: 13px;
    line-height: 1.58;
    letter-spacing: 0.055em;
  }

  body.is-portrait-catalog .map-report__link {
    margin: 0 16px 16px;
    padding: 13px 12px;
    font-size: 10px;
  }

}

@media (orientation: landscape) and (max-height: 600px) {
  .intro-screen {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: 100svh;
  }

  .intro-screen__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    filter: brightness(1.15) contrast(1.06) saturate(1.05);
  }
  .mobile-orientation {
    display: none;
  }

  .system-enter-button {
    width: min(560px, 72vw);
    min-height: 0;
  }

  .system-enter-button::before {
    inset: 5px;
  }

  .system-enter-button__text {
    padding: 24px 22px 28px;
    font-size: clamp(20px, 3.2vw, 26px);
    line-height: 1.05;
  }

  .system-enter-button__text::before,
  .system-enter-button__text::after {
    inset: 24px 22px 28px;
  }

  .hud {
    inset: 10px;
  }

  .hud__item {
    padding: 7px 9px;
    min-width: 0;
  }

  .hud__label,
  .hud__item--bl,
  .hud__item--br,
  .system-message,
  .particle-canvas {
    display: none;
  }

  .controls {
    right: 12px;
    bottom: 12px;
  }

  .control-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .system-enter-status {
    top: calc(50% + 58px);
    font-size: 10px;
  }

  .map-ui__status {
    left: auto;
    right: 12px;
    bottom: 12px;
  }

  .map-book-menu {
    display: none;
  }

  .map-point::after {
    content: "";
    position: absolute;
    left: -24px;
    top: -24px;
    width: 48px;
    height: 48px;
  }

  .map-report,
  .map-report.is-right-side {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(680px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    background: rgba(1, 9, 7, 0.94);
    transform: translate(-50%, calc(-50% + 8px));
  }

  .map-report.is-active {
    transform: translate(-50%, -50%);
    animation: none;
  }

  .map-report__head {
    padding: 14px 48px 11px 14px;
  }

  .map-report__eyebrow {
    font-size: 8px;
    line-height: 1.35;
  }

  .map-report__title {
    font-size: 15px;
  }

  .map-report__status {
    display: none;
  }

  .map-report__body {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 14px;
  }

  .map-report__text {
    font-size: 11px;
    line-height: 1.48;
    letter-spacing: 0.055em;
  }

  .map-report__link {
    margin: 0 14px 12px;
    padding: 10px 12px;
    font-size: 9px;
  }

  .map-book-choice {
    width: min(430px, calc(100vw - 28px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}

/* Compact landscape phones: untangle selected map callouts. */
@media (orientation: landscape) and (max-height: 430px) {
  .map-point--book-8 {
    --stem: 36px;
  }

  .map-point--book-3 {
    --stem: 36px;
    --arm-left: -62px;
    --label-left: -154px;
    --label-line-left: auto;
    --label-line-right: -5px;
  }

  .map-point--book-5 {
    --stem: 65px;
    --arm-left: -58px;
    --label-left: -114px;
    --label-line-left: auto;
    --label-line-right: -5px;
  }

  .map-point--book-7 {
    --stem: 56px;
  }
}

/* Responsive end */

/* Reduced motion start */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .particle-canvas,
  .scanner-line,
  .glitch-bars,
  .noise-layer,
  .cursor-glow {
    display: none;
  }

  /* Keep the main mobile CTA alive when Android reports reduced motion. */
  @media (pointer: coarse) {
    .system-enter-button.is-active {
      animation-duration: 1.1s, 6s !important;
      animation-iteration-count: 1, infinite !important;
    }

    .system-enter-button::after {
      animation-duration: 4.8s !important;
      animation-iteration-count: infinite !important;
    }

    .system-enter-button__text::before,
    .system-enter-button__text::after,
    .system-enter-button__flash,
    .system-enter-button__glitch span {
      animation-duration: 6s !important;
      animation-iteration-count: infinite !important;
    }

    .system-enter-button.is-opening,
    .system-enter-button.is-opening .system-enter-button__flash,
    .system-enter-button.is-opening .system-enter-button__glitch span {
      animation-duration: 0.85s !important;
      animation-iteration-count: 1 !important;
    }
  }
}
/* Reduced motion end */

@media (max-width: 900px), (max-height: 620px) {
  .map-hud,
  .map-hud-panel,
  .map-hud-log,
  .map-corner,
  .map-ruler {
    display: none;
  }
}
