:root {
  --bg-1: #050607;
  --bg-2: #111313;
  --fog: rgba(197, 222, 204, 0.08);
  --ink: #e7efe8;
  --muted: #a3b4a8;
  --accent: #9de4b2;
  --danger: #d76c7d;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(90, 130, 113, 0.12), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(174, 72, 72, 0.08), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(120, 144, 180, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  font-family: "Unbounded", system-ui, sans-serif;
}

body.is-game-mode .stage,
body.is-game-mode .tv-static,
body.is-game-mode .tv-tear,
body.is-game-mode .bg-noise,
body.is-game-mode .vignette {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-game-mode .scanline {
  opacity: 0.03;
}

body.is-game-mode .mobile-enter-game {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(157, 228, 178, 0.05), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(215, 108, 125, 0.08), transparent 50%),
    rgba(2, 3, 3, 0.90);
  backdrop-filter: blur(6px);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.start-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-gate__button {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  outline: none;
  touch-action: manipulation;
}

.start-gate__image {
  width: min(44vw, 360px);
  max-width: calc(100vw - 32px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(157, 228, 178, 0.2))
    drop-shadow(0 0 42px rgba(215, 108, 125, 0.18));
  transform-origin: center;
  animation: gateFloat 3.4s ease-in-out infinite;
}

.start-gate__button:hover .start-gate__image,
.start-gate__button:focus-visible .start-gate__image {
  filter:
    drop-shadow(0 0 20px rgba(157, 228, 178, 0.34))
    drop-shadow(0 0 58px rgba(215, 108, 125, 0.28))
    drop-shadow(0 0 92px rgba(255, 70, 70, 0.12));
  transform: scale(1.03);
}

.start-gate__hint {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(231, 239, 232, 0.76);
  text-shadow: 0 0 12px rgba(215, 108, 125, 0.2);
}

.forest-game {
  position: fixed;
  inset: 0;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(70, 100, 90, 0.08), transparent 45%),
    linear-gradient(180deg, #040505, #070909);
  transition: opacity 500ms ease, visibility 500ms ease;
}

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

.forest-game__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.forest-game__crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
  filter:
    drop-shadow(0 0 8px rgba(157, 228, 178, 0.25))
    drop-shadow(0 0 16px rgba(215, 108, 125, 0.12));
}

body:not(.is-game-mode) .forest-game__crosshair {
  opacity: 0;
}

.forest-game__hud {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 2;
  color: rgba(231, 239, 232, 0.9);
  pointer-events: none;
}

.forest-game__ornament {
  position: absolute;
  left: 50%;
  top: 0;
  width: 210px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(157, 228, 178, 0.12);
  background:
    radial-gradient(circle at 50% 40%, rgba(157, 228, 178, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(20, 14, 15, 0.46), rgba(5, 7, 7, 0.34));
  clip-path: polygon(10% 0, 90% 0, 100% 45%, 90% 100%, 10% 100%, 0 45%);
  opacity: 0.85;
  backdrop-filter: blur(5px);
}

.forest-game__hud-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.forest-game__panel {
  position: relative;
  width: min(42vw, 320px);
  min-height: 86px;
}

.forest-game__panel--score {
  width: min(28vw, 220px);
}

.forest-game__panel-bg {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 14px rgba(157, 228, 178, 0.08));
  user-select: none;
  -webkit-user-drag: none;
}

.forest-game__panel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px 16px;
}

.forest-game__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(163, 180, 168, 0.94);
}

.forest-game__hp-text,
.forest-game__score-text {
  margin-top: 3px;
  font-family: "Cormorant SC", serif;
  font-size: 24px;
  line-height: 1;
  color: rgba(242, 248, 243, 0.96);
  text-shadow: 0 0 10px rgba(157, 228, 178, 0.12);
}

.forest-game__score-text {
  font-size: 30px;
}

.forest-game__hp-bar {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border: 1px solid rgba(157, 228, 178, 0.16);
  background: rgba(7, 10, 9, 0.52);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.forest-game__hp-bar-fill {
  height: 100%;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(255, 88, 88, 0.95), rgba(255, 186, 83, 0.95) 42%, rgba(115, 255, 142, 0.95));
  box-shadow:
    0 0 10px rgba(115, 255, 142, 0.16),
    inset 0 0 10px rgba(255, 255, 255, 0.08);
  transition: width 180ms ease;
}

.forest-game__meta {
  position: absolute;
  left: 12px;
  top: 86px;
  padding: 8px 10px;
  border: 1px solid rgba(157, 228, 178, 0.12);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(5px);
}

.forest-game__mobile-controls {
  position: absolute;
  inset: auto 0 14px 0;
  z-index: 3;
  display: none;
  width: 100%;
  pointer-events: none;
}

.forest-game__ctrl {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  outline: none;
  filter:
    drop-shadow(0 0 10px rgba(215, 108, 125, 0.26))
    drop-shadow(0 0 18px rgba(157, 228, 178, 0.16));
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
  opacity: 0.95;
}

.forest-game__ctrl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.forest-game__ctrl:active,
.forest-game__ctrl.is-pressed {
  transform: scale(0.94);
  filter:
    drop-shadow(0 0 14px rgba(215, 108, 125, 0.36))
    drop-shadow(0 0 28px rgba(255, 82, 82, 0.26));
}

.forest-game__ctrl--up {
  left: calc(50% - 34px);
  bottom: 86px;
}

.forest-game__ctrl--down {
  left: calc(50% - 34px);
  bottom: 0;
}

.forest-game__ctrl--left {
  left: calc(50% - 118px);
  bottom: 43px;
}

.forest-game__ctrl--right {
  left: calc(50% + 50px);
  bottom: 43px;
}

.forest-game__ctrl--shoot {
  right: 18px;
  bottom: 26px;
  width: 86px;
  height: 86px;
  filter:
    drop-shadow(0 0 12px rgba(215, 108, 125, 0.34))
    drop-shadow(0 0 28px rgba(255, 82, 82, 0.22));
}

.mobile-enter-game {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 24;
  border: 1px solid rgba(157, 228, 178, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 21, 18, 0.78), rgba(5, 7, 7, 0.88));
  color: rgba(240, 246, 239, 0.92);
  padding: 12px 16px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.mobile-enter-game.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-enter-game:active {
  transform: translateX(-50%) scale(0.98);
}

.forest-game__title {
  font-family: "Cormorant SC", serif;
  font-size: 20px;
  line-height: 0.95;
  letter-spacing: 0.05em;
}

.forest-game__hint {
  margin-top: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(163, 180, 168, 0.9);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  isolation: isolate;
}

.screen-ripple,
.screen-haunt,
.screen-flicker,
.screen-prism,
.screen-psy {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen-prism {
  z-index: 2;
  opacity: 0.08;
  background:
    conic-gradient(from 0deg at 18% 30%, rgba(255, 0, 90, 0.12), transparent 30%, rgba(0, 255, 200, 0.08), transparent 68%, rgba(120, 140, 255, 0.1)),
    conic-gradient(from 180deg at 80% 68%, rgba(255, 130, 0, 0.08), transparent 28%, rgba(173, 255, 47, 0.08), transparent 64%, rgba(255, 0, 180, 0.08));
  mix-blend-mode: screen;
  filter: blur(22px) saturate(1.15);
  animation: prismDrift 18s ease-in-out infinite alternate;
}

.screen-psy {
  z-index: 6;
  opacity: 0.06;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 153, 0.16), transparent 26%),
    radial-gradient(circle at 78% 32%, rgba(0, 255, 221, 0.14), transparent 24%),
    radial-gradient(circle at 60% 78%, rgba(166, 255, 0, 0.14), transparent 28%),
    radial-gradient(circle at 36% 68%, rgba(122, 143, 255, 0.12), transparent 22%);
  mix-blend-mode: screen;
  filter: blur(10px) hue-rotate(0deg);
  animation: psyBreath 9s ease-in-out infinite alternate;
}

.screen-psy.is-spike {
  animation: psySpike 720ms ease-out 1;
}

.screen-ripple {
  z-index: 4;
  opacity: 0;
  --ripple-x: 50%;
  --ripple-y: 50%;
  --ripple-size: 0px;
  background:
    radial-gradient(circle at var(--ripple-x) var(--ripple-y),
      rgba(210, 244, 255, 0.18) 0,
      rgba(210, 244, 255, 0.12) 7%,
      rgba(215, 108, 125, 0.12) 12%,
      rgba(215, 108, 125, 0.08) 18%,
      transparent 24%),
    radial-gradient(circle at var(--ripple-x) var(--ripple-y),
      transparent 0,
      transparent calc(var(--ripple-size) * 0.22),
      rgba(157, 228, 178, 0.08) calc(var(--ripple-size) * 0.24),
      transparent calc(var(--ripple-size) * 0.3));
  mix-blend-mode: screen;
  filter: blur(1px);
}

.screen-ripple.is-active {
  animation: screenRippleShock 1.3s cubic-bezier(.15, .7, .2, 1) forwards;
}

.screen-haunt {
  z-index: 3;
  opacity: 0.16;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(132, 180, 255, 0.06), transparent 42%),
    radial-gradient(ellipse at 82% 35%, rgba(215, 108, 125, 0.05), transparent 46%),
    radial-gradient(ellipse at 55% 75%, rgba(157, 228, 178, 0.06), transparent 42%);
  mix-blend-mode: screen;
  animation: hauntShift 12s ease-in-out infinite alternate;
}

.screen-haunt::before,
.screen-haunt::after {
  content: "";
  position: absolute;
  inset: -4%;
  background:
    repeating-linear-gradient(
      92deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 2px 8px,
      rgba(157, 228, 178, 0.015) 9px 10px,
      transparent 11px 19px
    );
  opacity: 0.55;
  animation: spectralShear 8s linear infinite;
}

.screen-haunt::after {
  opacity: 0.35;
  filter: blur(6px);
  animation-duration: 14s;
  animation-direction: reverse;
}

.screen-flicker {
  z-index: 10;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 58%),
    linear-gradient(0deg, rgba(157, 228, 178, 0.06), rgba(215, 108, 125, 0.05));
  mix-blend-mode: screen;
}

.screen-flicker.is-active {
  animation: screenFlickerBurst 240ms steps(2, end) 1;
}

.hero {
  position: absolute;
  z-index: 11;
  left: clamp(16px, 4vw, 48px);
  top: clamp(16px, 4vw, 44px);
  width: min(520px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(157, 228, 178, 0.18);
  background: rgba(7, 8, 9, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 4s ease, transform 4s ease, box-shadow 4s ease;
  pointer-events: none;
}

.hero.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  line-height: 0.95;
  font-family: "Cormorant SC", serif;
  font-weight: 600;
  font-size: clamp(32px, 6vw, 76px);
  color: #f0f6ef;
  text-shadow: 0 0 12px rgba(157, 228, 178, 0.16);
}

.hero__text {
  margin: 10px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1.5;
}

.swarm {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.creep {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  pointer-events: auto;
  touch-action: manipulation;
  text-decoration: none;
  transform: translate3d(-200px, -200px, 0) rotate(0deg) scale(1);
  will-change: transform, opacity, filter;
  opacity: 0;
  transition: opacity 600ms ease, filter 220ms ease;
  filter:
    drop-shadow(0 0 10px rgba(157, 228, 178, 0.16))
    drop-shadow(0 0 24px rgba(215, 108, 125, 0.1));
  mix-blend-mode: screen;
}

.creep:not(.is-present) {
  opacity: 0 !important;
  pointer-events: none;
}

.creep--link {
  cursor: pointer;
  outline: none;
}

.creep--link:hover,
.creep--link:focus-visible,
.creep--link:active {
  filter:
    drop-shadow(0 0 var(--hover-blur-1, 14px) rgba(var(--hover-c1, 157, 228, 178), var(--hover-g1, 0.34)))
    drop-shadow(0 0 var(--hover-blur-2, 34px) rgba(var(--hover-c2, 215, 108, 125), var(--hover-g2, 0.25)))
    drop-shadow(0 0 var(--hover-blur-3, 56px) rgba(var(--hover-c1, 157, 228, 178), var(--hover-g3, 0.2)));
}

.creep--link:hover img,
.creep--link:focus-visible img,
.creep--link:active img {
  filter:
    saturate(var(--hover-sat, 1.15))
    brightness(var(--hover-bright, 1.08))
    contrast(var(--hover-contrast, 1.08));
}

.creep--link[data-hover-style="glitch"]:hover img,
.creep--link[data-hover-style="glitch"]:focus-visible img,
.creep--link[data-hover-style="glitch"]:active img {
  filter:
    saturate(1.4)
    contrast(1.2)
    brightness(1.15)
    hue-rotate(-8deg);
}

.creep--link[data-hover-style="toxic"]:hover,
.creep--link[data-hover-style="toxic"]:focus-visible,
.creep--link[data-hover-style="toxic"]:active {
  filter:
    drop-shadow(0 0 var(--hover-blur-1, 14px) rgba(132, 255, 123, 0.32))
    drop-shadow(0 0 var(--hover-blur-2, 34px) rgba(77, 255, 184, 0.24))
    drop-shadow(0 0 calc(var(--hover-blur-3, 56px) + 10px) rgba(132, 255, 123, 0.12));
}

.creep--link[data-hover-style="ember"]:hover,
.creep--link[data-hover-style="ember"]:focus-visible,
.creep--link[data-hover-style="ember"]:active {
  filter:
    drop-shadow(0 0 var(--hover-blur-1, 14px) rgba(255, 134, 92, 0.38))
    drop-shadow(0 0 var(--hover-blur-2, 34px) rgba(255, 75, 75, 0.28))
    drop-shadow(0 0 calc(var(--hover-blur-2, 34px) + 18px) rgba(255, 182, 84, 0.16));
}

.creep--link[data-hover-style="frost"]:hover img,
.creep--link[data-hover-style="frost"]:focus-visible img,
.creep--link[data-hover-style="frost"]:active img {
  filter:
    saturate(1.2)
    brightness(1.12)
    contrast(1.12)
    hue-rotate(8deg);
}

.creep--link[data-hover-style="aura"]:hover,
.creep--link[data-hover-style="aura"]:focus-visible,
.creep--link[data-hover-style="aura"]:active {
  animation: creepAuraPulse 1.4s ease-in-out infinite;
}

.creep--link[data-hover-style="glitch"]:hover,
.creep--link[data-hover-style="glitch"]:focus-visible,
.creep--link[data-hover-style="glitch"]:active {
  animation: creepGlitchFlicker 220ms steps(2, end) infinite;
}

.creep.is-ready {
  opacity: 0;
}

.creep.is-ready.is-present {
  opacity: var(--alpha, 0.92);
}

.creep img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform: scaleX(var(--flip, 1));
  pointer-events: none;
}

.creep__fallback {
  width: 100%;
  height: 100%;
  border-radius: 48% 52% 57% 43% / 41% 42% 58% 59%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.5), transparent 30%),
    radial-gradient(circle at 65% 62%, rgba(215, 108, 125, 0.5), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(157, 228, 178, 0.42), rgba(157, 228, 178, 0.08) 55%, transparent 75%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.07),
    0 0 28px rgba(157, 228, 178, 0.14);
  opacity: 0.85;
}

.bg-noise,
.vignette,
.scanline,
.tv-static,
.tv-tear {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tv-static {
  z-index: 0;
  opacity: 0.12;
  background:
    repeating-radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 80% 65%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      rgba(0, 0, 0, 0.02) 1px 2px,
      transparent 2px 5px
    );
  background-size: 41px 41px, 57px 57px, 100% 6px;
  mix-blend-mode: screen;
  animation: tvSnowShift 260ms steps(3, end) infinite;
}

.tv-static::before,
.tv-static::after {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
}

.tv-static::before {
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 4px,
      rgba(157, 228, 178, 0.02) 4px 5px,
      transparent 5px 9px
    );
  mix-blend-mode: screen;
  animation: tvBandDrift 6.2s linear infinite;
}

.tv-static::after {
  opacity: 0.08;
  background:
    radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08), transparent 42%);
  filter: blur(18px);
  animation: tvGlowFloat 9s ease-in-out infinite alternate;
}

.tv-tear {
  z-index: 2;
  opacity: 0.08;
  background:
    linear-gradient(
      to bottom,
      transparent 0 14%,
      rgba(255, 255, 255, 0.04) 15%,
      transparent 16% 33%,
      rgba(157, 228, 178, 0.03) 34%,
      transparent 35% 61%,
      rgba(215, 108, 125, 0.035) 62%,
      transparent 63% 100%
    );
  mix-blend-mode: screen;
  filter: blur(0.3px);
  animation: tvTearRoll 7.8s linear infinite;
}

.bg-noise {
  z-index: 1;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 30% 20%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 80% 70%, #fff 0.6px, transparent 1px),
    radial-gradient(circle at 50% 50%, #fff 0.5px, transparent 1px);
  background-size: 13px 13px, 17px 17px, 23px 23px;
  animation: driftNoise 14s linear infinite;
}

.vignette {
  z-index: 4;
  background:
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.32) 78%, rgba(0, 0, 0, 0.65) 100%);
}

.scanline {
  z-index: 12;
  opacity: 0.07;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.22) 1px,
    transparent 2px,
    transparent 4px
  );
}

@keyframes driftNoise {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18px, 12px, 0); }
}

@keyframes tvSnowShift {
  0% {
    transform: translate3d(0, 0, 0);
    filter: contrast(1.02) brightness(1);
  }
  25% {
    transform: translate3d(-2px, 1px, 0);
    filter: contrast(1.06) brightness(1.02);
  }
  50% {
    transform: translate3d(2px, -1px, 0);
    filter: contrast(0.98) brightness(0.99);
  }
  75% {
    transform: translate3d(-1px, 2px, 0);
    filter: contrast(1.08) brightness(1.01);
  }
  100% {
    transform: translate3d(1px, -2px, 0);
    filter: contrast(1.02) brightness(1);
  }
}

@keyframes tvBandDrift {
  0% { transform: translate3d(-1%, 0, 0); }
  50% { transform: translate3d(1.5%, 0, 0); }
  100% { transform: translate3d(-1%, 0, 0); }
}

@keyframes tvGlowFloat {
  0% { transform: translate3d(-1%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.2%, 1.1%, 0) scale(1.04); }
}

@keyframes tvTearRoll {
  0% {
    transform: translate3d(0, -12%, 0) skewY(0deg);
    opacity: 0.04;
  }
  10% {
    opacity: 0.08;
  }
  48% {
    transform: translate3d(0.8%, 38%, 0) skewY(0.4deg);
    opacity: 0.11;
  }
  52% {
    transform: translate3d(-0.9%, 42%, 0) skewY(-0.4deg);
    opacity: 0.05;
  }
  100% {
    transform: translate3d(0, 108%, 0) skewY(0deg);
    opacity: 0.03;
  }
}

@keyframes prismDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
    filter: blur(22px) saturate(1.1) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1.6%, 1.2%, 0) scale(1.06);
    filter: blur(28px) saturate(1.25) hue-rotate(24deg);
  }
  100% {
    transform: translate3d(-0.8%, 1.8%, 0) scale(1.03);
    filter: blur(24px) saturate(1.18) hue-rotate(-18deg);
  }
}

@keyframes psyBreath {
  0% {
    opacity: 0.035;
    transform: scale(1);
    filter: blur(10px) hue-rotate(0deg) saturate(1.05);
  }
  50% {
    opacity: 0.09;
    transform: scale(1.02);
    filter: blur(14px) hue-rotate(18deg) saturate(1.25);
  }
  100% {
    opacity: 0.05;
    transform: scale(1.04);
    filter: blur(12px) hue-rotate(-14deg) saturate(1.15);
  }
}

@keyframes psySpike {
  0% {
    opacity: 0.04;
    filter: blur(10px) hue-rotate(0deg) saturate(1.1);
  }
  20% {
    opacity: 0.16;
    filter: blur(6px) hue-rotate(55deg) saturate(1.55);
  }
  45% {
    opacity: 0.08;
    filter: blur(12px) hue-rotate(-32deg) saturate(1.25);
  }
  100% {
    opacity: 0.05;
    filter: blur(10px) hue-rotate(0deg) saturate(1.1);
  }
}

@keyframes screenRippleShock {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(0px);
  }
  12% {
    opacity: 0.35;
  }
  45% {
    opacity: 0.18;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(2px);
  }
}

@keyframes hauntShift {
  0% {
    transform: translate3d(-1.5%, -1.2%, 0) scale(1);
    filter: blur(0px) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1.4%, 1%, 0) scale(1.03);
    filter: blur(1px) hue-rotate(-6deg);
  }
  100% {
    transform: translate3d(-0.8%, 1.4%, 0) scale(1.01);
    filter: blur(0.5px) hue-rotate(6deg);
  }
}

@keyframes spectralShear {
  0% { transform: translate3d(-1%, 0, 0); }
  50% { transform: translate3d(1.2%, -0.6%, 0); }
  100% { transform: translate3d(-0.8%, 0.7%, 0); }
}

@keyframes screenFlickerBurst {
  0% { opacity: 0; }
  15% { opacity: 0.18; }
  35% { opacity: 0.05; }
  55% { opacity: 0.24; }
  100% { opacity: 0; }
}

@keyframes gateFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -8px, 0) scale(1.01); }
}

@keyframes creepAuraPulse {
  0%, 100% { opacity: var(--alpha, 0.92); }
  50% { opacity: min(1, calc(var(--alpha, 0.92) + 0.08)); }
}

@keyframes creepGlitchFlicker {
  0% { opacity: var(--alpha, 0.92); }
  33% { opacity: calc(var(--alpha, 0.92) - 0.08); }
  66% { opacity: min(1, calc(var(--alpha, 0.92) + 0.06)); }
  100% { opacity: var(--alpha, 0.92); }
}

@media (max-width: 700px) {
  .hero {
    width: calc(100vw - 20px);
    left: 10px;
    top: 10px;
    padding: 14px;
  }
}

@media (pointer: coarse), (max-width: 900px) {
  .forest-game.is-active .forest-game__mobile-controls {
    display: block;
  }

  .mobile-enter-game {
    min-width: min(88vw, 320px);
    text-align: center;
  }

  .forest-game__hud {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .forest-game__panel {
    width: min(58vw, 300px);
    min-height: 74px;
  }

  .forest-game__panel--score {
    width: min(34vw, 172px);
  }

  .forest-game__panel-content {
    padding: 14px 16px 12px;
  }

  .forest-game__hp-text,
  .forest-game__score-text {
    font-size: 20px;
  }

  .forest-game__score-text {
    font-size: 24px;
  }

  .forest-game__meta {
    left: 8px;
    top: 72px;
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-noise {
    animation: none;
  }

  .tv-static,
  .tv-static::before,
  .tv-static::after,
  .tv-tear {
    animation: none;
  }

  .creep {
    transition-duration: 0ms;
  }

  .creep--link:hover,
  .creep--link:focus-visible,
  .creep--link:active {
    animation: none !important;
  }

  .start-gate__image {
    animation: none;
  }

  .screen-haunt,
  .screen-haunt::before,
  .screen-haunt::after,
  .screen-prism,
  .screen-psy {
    animation: none;
  }

  .screen-ripple.is-active,
  .screen-flicker.is-active {
    animation: none;
    opacity: 0;
  }

  .screen-psy.is-spike {
    animation: none;
  }
}
