@import url("./sprite-test.css?v=20260625weaponarmory1");

.arena-world {
  width: 7920px;
}

.platform-layer,
.bridge-layer,
.world-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.server-rack {
  display: none;
}

.service-sign {
  left: 118px;
  top: 188px;
}

.training-sign {
  left: 2940px;
  top: 132px;
}

.whiteboard {
  left: 2140px;
  top: 124px;
}

.panel-a {
  left: 326px;
  top: 306px;
}

.panel-b {
  left: 5200px;
  top: 138px;
}

.platform.is-terminal-route {
  border-color: #6aa7aa;
  border-top-color: #c4f4ea;
  box-shadow:
    0 -5px 0 rgba(123, 223, 242, 0.28),
    0 0 22px rgba(123, 223, 242, 0.2),
    9px 11px 0 rgba(0, 0, 0, 0.3);
}

.level-1-industrial {
  --level-ink: #070d13;
  --level-wall-deep: #0d171f;
  --level-wall: #172934;
  --level-wall-panel: #213845;
  --level-steel-dark: #111d27;
  --level-steel-mid: #334c5c;
  --level-steel-light: #6f8793;
  --level-edge: #6ee8f5;
  --level-edge-dim: #2e7f8a;
  --level-warning: #ffd166;
  --level-heat: #ff8a3d;
}

.level-1-industrial .office-backdrop {
  inset: 0 0 56px;
  background:
    linear-gradient(rgba(110, 232, 245, 0.066) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 232, 245, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 19% 22%, rgba(110, 232, 245, 0.15), transparent 20%),
    radial-gradient(circle at 67% 30%, rgba(255, 209, 102, 0.1), transparent 18%),
    linear-gradient(180deg, #263f4c 0%, #172733 52%, #0c141c 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.level-1-industrial .office-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 16% 84%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.level-1-industrial .office-backdrop::after {
  height: 132px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 22% 78%, rgba(0, 0, 0, 0.28));
}

.level-1-industrial .arena-viewport {
  inset: 0 0 var(--mobile-control-dock-height, 0);
  background:
    linear-gradient(rgba(110, 232, 245, 0.066) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 232, 245, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 19% 22%, rgba(110, 232, 245, 0.15), transparent 20%),
    radial-gradient(circle at 67% 30%, rgba(255, 209, 102, 0.1), transparent 18%),
    linear-gradient(180deg, #263f4c 0%, #172733 52%, #0c141c 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.level-1-industrial .arena-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 16% 84%, rgba(0, 0, 0, 0.32));
  z-index: 0;
}

.level-1-industrial .arena-world {
  z-index: 1;
}

.industrial-wall-bay,
.industrial-column,
.industrial-pipe,
.industrial-cable-run,
.industrial-vent {
  position: absolute;
  pointer-events: none;
}

.industrial-wall-bay {
  border: 5px solid #213743;
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #203743, #14242f);
  background-size: 30px 30px, 30px 30px, auto;
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.18),
    9px 11px 0 rgba(0, 0, 0, 0.24);
  opacity: 0.76;
}

.industrial-wall-bay::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  height: 18px;
  border: 3px solid #0d171f;
  background:
    repeating-linear-gradient(90deg, rgba(110, 232, 245, 0.54) 0 16px, transparent 16px 28px),
    #172733;
}

.industrial-wall-bay::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, #ffd166 0 18px, transparent 18px 34px);
  opacity: 0.62;
}

.bay-a {
  left: 58px;
  top: 82px;
  width: 410px;
  height: 176px;
}

.bay-b {
  left: 718px;
  top: 70px;
  width: 548px;
  height: 226px;
  opacity: 0.62;
}

.bay-c {
  left: 4860px;
  top: 78px;
  width: 760px;
  height: 220px;
  opacity: 0.68;
}

.industrial-column {
  top: -18px;
  bottom: 66px;
  width: 31px;
  border: 4px solid #0d171f;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 28% 72%, rgba(0, 0, 0, 0.24)),
    repeating-linear-gradient(180deg, #516a77 0 34px, #273d4a 34px 44px);
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.28),
    7px 9px 0 rgba(0, 0, 0, 0.22);
  opacity: 0.64;
}

.column-a { left: 650px; }
.column-b { left: 1868px; }
.column-c { left: 5480px; opacity: 0.48; }

.industrial-pipe {
  height: 18px;
  border: 4px solid #0d171f;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 52%),
    #657f8b;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.26),
    6px 7px 0 rgba(0, 0, 0, 0.22);
  opacity: 0.7;
}

.pipe-long {
  left: -34px;
  top: 52px;
  width: 1660px;
}

.pipe-short {
  left: 2480px;
  top: 170px;
  width: 3780px;
  height: 13px;
  opacity: 0.5;
}

.industrial-cable-run {
  height: 20px;
  border: 4px solid #0d171f;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, #121e27 0 38px, #314654 38px 44px),
    #172630;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.28);
}

.industrial-cable-run::before,
.industrial-cable-run::after {
  content: "";
  position: absolute;
  bottom: -42px;
  width: 92px;
  height: 42px;
  border: 6px solid var(--level-heat);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.26));
}

.industrial-cable-run::before { left: 22%; }
.industrial-cable-run::after {
  left: 54%;
  border-color: var(--level-edge);
  transform: scaleX(0.78);
}

.cable-run-a {
  left: 120px;
  top: 318px;
  width: 970px;
  opacity: 0.68;
}

.cable-run-b {
  left: 2140px;
  top: 306px;
  width: 720px;
  opacity: 0.5;
}

.industrial-vent {
  width: 124px;
  height: 38px;
  border: 4px solid #0d171f;
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, #83a1aa 0 10px, #263a46 10px 17px),
    #506976;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.24);
}

.vent-a {
  left: 510px;
  top: 136px;
}

.vent-b {
  left: 2630px;
  top: 134px;
  width: 104px;
  opacity: 0.72;
}

.level-1-industrial .wall-light {
  height: 10px;
  border: 3px solid #0d171f;
  border-radius: 999px;
  background: #f2facf;
  box-shadow:
    0 0 24px rgba(232, 245, 200, 0.46),
    8px 11px 0 rgba(0, 0, 0, 0.18);
}

.level-1-industrial .light-a {
  left: 126px;
  top: 36px;
  width: 290px;
}

.level-1-industrial .light-b {
  left: 1360px;
  top: 40px;
  width: 330px;
}

.level-1-industrial .pipe-a,
.level-1-industrial .pipe-b {
  display: none;
}

.level-1-industrial .ticket-board,
.level-1-industrial .wall-panel,
.level-1-industrial .whiteboard {
  border-color: #0d171f;
  border-radius: 7px;
  box-shadow:
    7px 9px 0 rgba(0, 0, 0, 0.28),
    inset 0 4px rgba(255, 255, 255, 0.08);
}

.level-1-industrial .ticket-board {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(110, 232, 245, 0.26) 0 7px, transparent 7px),
    linear-gradient(180deg, #324b59 0 48%, #14232e 49% 100%);
}

.level-1-industrial .whiteboard {
  border-color: #0d171f;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.52) 0 7px, transparent 7px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, #f7fbf3, #d7e6e1);
}

.level-1-industrial .wall-panel {
  background:
    linear-gradient(135deg, rgba(110, 232, 245, 0.18), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 10px, transparent 10px calc(100% - 10px), rgba(0, 0, 0, 0.22) calc(100% - 10px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #23394a, #0d151f);
}

.level-1-industrial .server-rack {
  display: block;
  border-color: #0d171f;
  opacity: 0.42;
}

.level-1-industrial .rack-a {
  left: 1700px;
}

.level-1-industrial .rack-b {
  left: 2920px;
  opacity: 0.32;
}

.level-1-industrial .platform {
  z-index: 6;
  border: 4px solid var(--level-ink);
  border-radius: 6px 6px 3px 3px;
  color: rgba(244, 247, 236, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 13px, transparent 13px 42px),
    linear-gradient(180deg, #7c929d 0 18%, #4f6978 19% 48%, #263c4a 49% 76%, #121f29 77% 100%);
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.13),
    inset 0 -11px 0 rgba(0, 0, 0, 0.28),
    0 -5px 0 rgba(110, 232, 245, 0.18),
    9px 11px 0 rgba(0, 0, 0, 0.34),
    18px 23px 0 rgba(0, 0, 0, 0.12);
}

.level-1-industrial .platform::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: -10px;
  height: 9px;
  border: 3px solid #0d171f;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, var(--level-edge) 0 28px, #284b57 28px 46px);
  box-shadow: 0 0 15px rgba(110, 232, 245, 0.38);
}

.level-1-industrial .platform::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -20px;
  height: 20px;
  border: 4px solid var(--level-ink);
  border-top: 0;
  background:
    repeating-linear-gradient(90deg, #0d1720 0 22px, #253846 22px 38px);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.2);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}

.level-1-industrial .platform span {
  left: 12px;
  right: 12px;
  top: auto;
  bottom: 6px;
  width: auto;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 209, 102, 0.78) 0 16px, transparent 16px 30px);
  opacity: 0.68;
}

.level-1-industrial .platform[data-platform^="floor"] {
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.13),
    inset 0 -12px 0 rgba(0, 0, 0, 0.32),
    0 -5px 0 rgba(110, 232, 245, 0.2),
    9px 11px 0 rgba(0, 0, 0, 0.36),
    22px 28px 0 rgba(0, 0, 0, 0.14);
}

.level-1-industrial .platform[data-platform^="mid"],
.level-1-industrial .platform[data-platform^="terminal"],
.level-1-industrial .platform[data-platform^="service"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.085) 0 12px, transparent 12px 38px),
    linear-gradient(180deg, #8299a4 0 18%, #526c7b 19% 48%, #2a4251 49% 76%, #12212c 77% 100%);
}

.level-1-industrial .platform.is-terminal-route {
  border-color: #0d171f;
  border-top-color: #172832;
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.14),
    inset 0 -11px 0 rgba(0, 0, 0, 0.28),
    0 -5px 0 rgba(110, 232, 245, 0.36),
    0 0 22px rgba(110, 232, 245, 0.22),
    9px 11px 0 rgba(0, 0, 0, 0.34);
}

.level-1-industrial .platform.is-moving-lift {
  border-color: #102130;
  border-top-color: #8cecff;
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.16),
    inset 0 -10px 0 rgba(0, 0, 0, 0.28),
    0 -4px 0 rgba(110, 232, 245, 0.42),
    0 0 18px rgba(110, 232, 245, 0.22),
    9px 11px 0 rgba(0, 0, 0, 0.28);
}

.level-1-industrial .platform.is-moving-lift::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -248px;
  bottom: -248px;
  width: 8px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(123, 223, 242, 0.08), rgba(123, 223, 242, 0.4), rgba(123, 223, 242, 0.08));
  box-shadow:
    -46px 0 0 rgba(123, 223, 242, 0.18),
    46px 0 0 rgba(123, 223, 242, 0.18);
  pointer-events: none;
}

.level-1-industrial .platform.is-terminal-route span {
  background:
    repeating-linear-gradient(90deg, var(--level-edge) 0 18px, transparent 18px 31px);
}

.level-1-industrial .platform.is-secret-platform {
  opacity: 0.28;
  border-style: dashed;
  border-color: rgba(134, 225, 255, 0.34);
  border-top-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(134, 225, 255, 0.18), rgba(9, 21, 30, 0.08)),
    repeating-linear-gradient(90deg, rgba(134, 225, 255, 0.16) 0 12px, transparent 12px 24px);
  box-shadow:
    inset 0 0 18px rgba(134, 225, 255, 0.08),
    0 0 22px rgba(134, 225, 255, 0.08);
  transition: opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.level-1-industrial .platform.is-secret-platform::after,
.level-1-industrial .platform.is-secret-platform span {
  opacity: 0.35;
}

.level-1-industrial .platform.is-secret-platform.is-revealed {
  opacity: 1;
  border-style: solid;
  border-color: #0d171f;
  border-top-color: #a9f3ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 12px, transparent 12px 38px),
    linear-gradient(180deg, #7fa3b8 0 18%, #4b6d83 19% 48%, #254255 49% 76%, #0d1d28 77% 100%);
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.16),
    inset 0 -11px 0 rgba(0, 0, 0, 0.26),
    0 -5px 0 rgba(110, 232, 245, 0.34),
    0 0 22px rgba(110, 232, 245, 0.2),
    9px 11px 0 rgba(0, 0, 0, 0.3);
}

.level-1-industrial .platform.is-secret-platform.is-revealed span {
  background:
    repeating-linear-gradient(90deg, rgba(195, 244, 255, 0.88) 0 16px, transparent 16px 30px);
  opacity: 0.76;
}

.level-1-industrial .bridge {
  z-index: 5;
  height: 16px;
  border: 4px solid #0d171f;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 46%),
    repeating-linear-gradient(90deg, rgba(110, 232, 245, 0.34) 0 14px, transparent 14px 26px),
    linear-gradient(180deg, #40596a, #152532);
  opacity: 0.96;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.24),
    7px 8px 0 rgba(0, 0, 0, 0.26);
  transform: skewX(-12deg);
}

.hazard-sprite {
  z-index: 7;
  overflow: visible;
  filter: drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.24));
}

.hazard-live-cables {
  --cable-reach: 42px;
  --cable-angle: 0deg;
  width: 218px;
  height: 122px;
  background-image: url("../assets/game-sprites/hazards/live-cable-tangle.png");
  background-repeat: no-repeat;
  background-position: 10px calc(100% - 4px);
  background-size: 118px auto;
  animation: none;
  filter:
    drop-shadow(0 0 18px rgba(255, 209, 102, 0.22))
    drop-shadow(0 0 22px rgba(123, 223, 242, 0.28))
    drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.24));
  transform-origin: center bottom;
}

.hazard-live-cables.has-cable-3d {
  background-image: url("../assets/game-sprites/hazards/live-cable-tangle.png");
  background-repeat: no-repeat;
  background-position: 12px calc(100% - 3px);
  background-size: 110px auto;
  animation: none;
}

.cable-stack-3d-canvas {
  position: absolute;
  left: -12px;
  bottom: -14px;
  width: 240px;
  height: 132px;
  pointer-events: none;
}

.hazard-live-cables::before,
.hazard-live-cables::after {
  content: none;
}


.cable-grab-tendril {
  position: absolute;
  left: var(--cable-root-x, 62px);
  bottom: calc(var(--cable-root-y, 30px) - 8px);
  width: var(--cable-reach);
  height: 22px;
  border-radius: 999px;
  transform-origin: 0 50%;
  transform: rotate(var(--cable-angle));
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(100, 235, 90, 0.72) 0 3px, transparent 3px 7px, rgba(0, 0, 0, 0.36) 7px 12px, transparent 12px),
    repeating-linear-gradient(74deg, #101724 0 16px, #24334c 16px 23px, #111927 23px 36px),
    linear-gradient(90deg, #05080d, #172335 42%, #080d14);
  box-shadow:
    0 0 7px rgba(123, 223, 242, 0.22),
    0 5px 8px rgba(0, 0, 0, 0.32),
    inset 0 3px 0 rgba(255, 255, 255, 0.12),
    inset 0 -5px 0 rgba(0, 0, 0, 0.55);
  clip-path: none;
  mask-image: none;
}

.cable-grab-plug {
  position: absolute;
  right: -46px;
  top: 50%;
  width: 56px;
  height: 34px;
  border: 2px solid rgba(35, 49, 58, 0.95);
  border-radius: 12px 5px 5px 12px;
  background:
    radial-gradient(ellipse at 16% 50%, #2a9ee8 0 13px, transparent 14px),
    linear-gradient(90deg, #118de0 0 20px, rgba(218, 238, 236, 0.94) 21px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(147, 172, 178, 0.96) 52%, rgba(55, 70, 80, 0.98));
  box-shadow:
    0 0 10px rgba(123, 223, 242, 0.54),
    0 0 18px rgba(105, 238, 90, 0.26),
    inset 0 3px 0 rgba(255, 255, 255, 0.62),
    inset 0 -5px 0 rgba(0, 0, 0, 0.24);
  transform: translateY(-50%) rotate(-7deg);
  z-index: 2;
}

.cable-grab-plug::before {
  content: "";
  position: absolute;
  right: 3px;
  top: 7px;
  width: 28px;
  height: 18px;
  border: 2px solid rgba(30, 43, 50, 0.86);
  border-left-width: 1px;
  border-radius: 2px 4px 4px 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 209, 102, 0.92) 0 3px, transparent 3px 6px),
    linear-gradient(180deg, rgba(244, 255, 255, 0.86), rgba(167, 190, 194, 0.72) 58%, rgba(56, 71, 78, 0.82));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    0 0 8px rgba(255, 209, 102, 0.38);
}

.cable-grab-plug::after {
  content: "";
  position: absolute;
  left: 15px;
  top: -10px;
  width: 36px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(34, 49, 58, 0.96);
  border-bottom-color: rgba(34, 49, 58, 0.96);
  background:
    linear-gradient(90deg, transparent 0 41%, rgba(123, 223, 242, 0.52) 42% 58%, transparent 59%);
  transform: rotate(24deg);
  opacity: 0.92;
}

.cable-grab-tendril::before,
.cable-grab-tendril::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 8%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(123, 223, 242, 0.95), transparent 35%, rgba(255, 255, 255, 0.9), transparent);
  filter: drop-shadow(0 0 8px rgba(123, 223, 242, 0.88));
  opacity: 0;
}

.cable-grab-tendril::before {
  top: -6px;
  transform: skewX(-26deg);
}

.cable-grab-tendril::after {
  bottom: -7px;
  transform: skewX(24deg);
}

.hazard-cable-spikes.is-cable-warning,
.hazard-live-cables.is-cable-warning {
  animation: cableWarningPulse 0.16s steps(2, end) infinite;
}

.hazard-cable-spikes.is-cable-warning .cable-grab-tendril,
.hazard-live-cables.is-cable-warning .cable-grab-tendril {
  opacity: 0.58;
  animation: cableTendrilWindup 0.18s steps(2, end) infinite;
}

.hazard-cable-spikes.is-cable-striking .cable-grab-tendril,
.hazard-live-cables.is-cable-striking .cable-grab-tendril {
  opacity: 1;
  animation: cableTendrilStrike 0.11s steps(2, end) infinite;
}

.hazard-cable-spikes.is-cable-striking .cable-grab-tendril::before,
.hazard-cable-spikes.is-cable-striking .cable-grab-tendril::after,
.hazard-live-cables.is-cable-striking .cable-grab-tendril::before,
.hazard-live-cables.is-cable-striking .cable-grab-tendril::after {
  opacity: 1;
  animation: cableArcFlicker 0.08s steps(2, end) infinite;
}

.hazard-cable-spikes.is-cable-retracting .cable-grab-tendril,
.hazard-live-cables.is-cable-retracting .cable-grab-tendril {
  opacity: 0.76;
  filter: blur(0.4px);
}

.hazard-live-cables.is-bomb-cracking {
  filter:
    hue-rotate(84deg)
    saturate(1.34)
    brightness(1.08)
    drop-shadow(0 0 18px rgba(119, 242, 161, 0.62))
    drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.24));
}

.hazard-live-cables.is-bomb-cracking .cable-grab-tendril {
  opacity: 0.24;
}

@keyframes cableWarningPulse {
  50% {
    filter:
      drop-shadow(0 0 25px rgba(255, 209, 102, 0.62))
      drop-shadow(0 0 24px rgba(123, 223, 242, 0.45))
      drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.24));
  }
}

@keyframes cableTendrilWindup {
  50% {
    filter: brightness(1.18);
  }
}

@keyframes cableTendrilStrike {
  50% {
    filter: brightness(1.36);
  }
}

@keyframes cableArcFlicker {
  50% {
    opacity: 0.28;
    transform: translateY(3px) skewX(-18deg);
  }
}

@keyframes routeLaserPulse {
  50% {
    opacity: 0.72;
    transform: scaleX(0.98);
  }
}

@keyframes patchInvincibilityPulse {
  0%,
  100% {
    opacity: 1;
    filter:
      brightness(1.12)
      saturate(1.06)
      drop-shadow(0 0 8px rgba(255, 246, 190, 0.32))
      drop-shadow(0 0 16px rgba(107, 229, 255, 0.22));
  }
  50% {
    opacity: 0.58;
    filter:
      brightness(1.3)
      saturate(1.22)
      drop-shadow(0 0 14px rgba(255, 246, 190, 0.52))
      drop-shadow(0 0 24px rgba(107, 229, 255, 0.34));
  }
}

.hazard-black-hole {
  isolation: isolate;
  perspective: 520px;
  transform-style: preserve-3d;
  width: 118px;
  height: 174px;
  background-image: none;
  animation: none;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(123, 223, 242, 0.24));
}

.hazard-black-hole::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 122px;
  height: 64px;
  border-radius: 50%;
  transform: translateX(-50%) rotateX(62deg);
  background:
    radial-gradient(circle at 50% 50%, rgba(2, 5, 13, 0.98) 0 24%, rgba(30, 7, 54, 0.92) 25% 42%, rgba(112, 35, 201, 0.72) 43% 55%, rgba(123, 223, 242, 0.5) 56% 66%, transparent 67%),
    conic-gradient(from 0deg, rgba(123, 223, 242, 0.86), rgba(156, 87, 255, 0.72), rgba(255, 209, 102, 0.55), rgba(123, 223, 242, 0.86));
  box-shadow:
    0 0 18px rgba(123, 223, 242, 0.42),
    0 0 34px rgba(156, 87, 255, 0.28),
    inset 0 0 22px rgba(0, 0, 0, 0.78);
  animation: blackHolePulse 1.2s ease-in-out infinite;
}

.hazard-black-hole::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 156px;
  height: 84px;
  border-radius: 50%;
  transform: translateX(-50%) rotateX(62deg);
  background:
    conic-gradient(from 90deg, transparent 0 16%, rgba(123, 223, 242, 0.5) 17% 24%, transparent 25% 42%, rgba(255, 209, 102, 0.32) 43% 50%, transparent 51% 72%, rgba(156, 87, 255, 0.42) 73% 84%, transparent 85% 100%);
  filter: blur(1px);
  opacity: 0.72;
  animation: blackHoleCycloneMist 1.8s ease-in-out infinite;
}

.hazard-black-hole.has-vortex-3d::before,
.hazard-black-hole.has-vortex-3d::after {
  opacity: 0.16;
}

.hazard-black-hole.has-vortex-3d .vortex-3d-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 176px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  pointer-events: none;
}

.pickup-sprite {
  width: 74px;
}

.pickup-sprite.is-invincibility {
  width: 88px;
  filter:
    drop-shadow(0 0 18px rgba(251, 224, 129, 0.34))
    drop-shadow(0 0 28px rgba(130, 234, 255, 0.26));
}

.hazard-corrupt-tile {
  width: 142px;
  height: 28px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(234, 240, 245, 0.92) 0 4px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(224, 181, 92, 0.38) 0 12px, rgba(224, 181, 92, 0.05) 12px 21px),
    linear-gradient(180deg, #76828a 0%, #495861 38%, #1f2c34 39%, #121b21 100%);
  border: 2px solid #10181e;
  border-top-color: #cfdde6;
  border-radius: 2px;
  box-shadow:
    0 -3px 0 rgba(123, 223, 242, 0.16),
    inset 0 -7px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.2),
    8px 10px 0 rgba(0, 0, 0, 0.2);
  transform-origin: center bottom;
  transition: filter 160ms ease, transform 160ms ease, opacity 180ms ease;
  filter:
    drop-shadow(0 0 7px rgba(123, 223, 242, 0.12))
    drop-shadow(0 9px 10px rgba(0, 0, 0, 0.24));
  clip-path: polygon(0 0, 100% 0, 100% 78%, 94% 100%, 71% 88%, 56% 100%, 37% 86%, 18% 100%, 0 84%);
}

.hazard-corrupt-tile::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  top: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(23, 30, 35, 0.96) 0 10px, transparent 10px 18px),
    linear-gradient(130deg, transparent 0 20%, rgba(28, 18, 14, 0.86) 20% 24%, transparent 24% 48%, rgba(28, 18, 14, 0.82) 48% 52%, transparent 52% 70%, rgba(28, 18, 14, 0.86) 70% 74%, transparent 74%);
  opacity: 0.86;
  pointer-events: none;
}

.hazard-corrupt-tile::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 5px;
  height: 6px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 196, 76, 0.9) 0 13px, transparent 13px 22px),
    linear-gradient(90deg, rgba(123, 223, 242, 0.12), transparent 34%, transparent 66%, rgba(123, 223, 242, 0.12));
  opacity: 0.9;
}

.hazard-corrupt-tile.is-riding,
.hazard-corrupt-tile.is-crumbling {
  filter:
    saturate(1.04)
    brightness(1)
    drop-shadow(0 0 12px rgba(255, 190, 71, 0.22))
    drop-shadow(0 0 9px rgba(123, 223, 242, 0.12));
}

.hazard-corrupt-tile.is-crumbling {
  transform: rotate(-2deg) scale(0.97);
}

.hazard-corrupt-tile.is-gone {
  opacity: 0;
  transform: scale(0.9);
  filter: none;
}

.route-control-switch {
  z-index: 12;
  width: 141px;
  height: 173px;
  background-image: url("../assets/hazards/security-systems/route-control-switch-console.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter:
    drop-shadow(0 0 20px rgba(255, 82, 82, 0.34))
    drop-shadow(0 0 34px rgba(255, 82, 82, 0.16))
    drop-shadow(0 10px 0 rgba(0, 0, 0, 0.24));
  overflow: visible;
}

.route-control-switch.is-nearby {
  filter:
    drop-shadow(0 0 22px rgba(255, 82, 82, 0.42))
    drop-shadow(0 0 38px rgba(255, 82, 82, 0.22))
    drop-shadow(0 10px 0 rgba(0, 0, 0, 0.24));
}

.route-control-switch.is-active {
  filter:
    drop-shadow(0 0 18px rgba(86, 223, 255, 0.42))
    drop-shadow(0 0 36px rgba(86, 223, 255, 0.24))
    drop-shadow(0 0 54px rgba(86, 223, 255, 0.14))
    drop-shadow(0 10px 0 rgba(0, 0, 0, 0.24));
}

.route-laser-barrier {
  z-index: 10;
  width: 74px;
  height: 645px;
  background: none;
  overflow: visible;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.22));
}

.route-laser-barrier::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 94px;
  height: 112px;
  transform: translateX(-50%);
  background-image: url("../assets/hazards/security-systems/anchored-security-gate.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
}

.route-laser-barrier::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 94px;
  height: 112px;
  transform: translateX(-50%) scaleY(-1);
  background-image: url("../assets/hazards/security-systems/anchored-security-gate.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
}

.route-laser-barrier > span {
  position: absolute;
  left: 8px;
  top: 54px;
  width: 58px;
  height: 538px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 126, 126, 0.12), rgba(255, 126, 126, 0.12)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 118, 118, 0) 0 4px,
      rgba(255, 118, 118, 0.96) 4px 12px,
      rgba(255, 222, 222, 0.99) 12px 15px,
      rgba(255, 118, 118, 0.96) 15px 23px,
      rgba(255, 118, 118, 0) 23px 29px
    );
  box-shadow:
    0 0 14px rgba(255, 90, 90, 0.72),
    0 0 28px rgba(255, 107, 107, 0.52),
    inset 0 0 16px rgba(255, 210, 210, 0.24);
  animation: routeLaserPulse 1.05s ease-in-out infinite;
}

.route-laser-barrier.is-offline {
  opacity: 0.38;
}

.route-laser-barrier.is-offline > span {
  opacity: 0;
  animation: none;
}

.surveillance-camera {
  z-index: 12;
  overflow: visible;
  filter:
    drop-shadow(0 0 12px rgba(123, 223, 242, 0.18))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.surveillance-camera-pipe {
  position: absolute;
  z-index: 3;
  width: 30px;
  border-left: 4px solid rgba(18, 28, 38, 0.92);
  border-right: 4px solid rgba(18, 28, 38, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(180deg, rgba(123, 223, 242, 0.14) 0 20px, rgba(255, 209, 102, 0.08) 20px 26px, rgba(37, 54, 69, 0.96) 26px 54px),
    linear-gradient(180deg, #5a7080, #253746 46%, #14232e 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(123, 223, 242, 0.18),
    8px 10px 0 rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.surveillance-camera::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -8px;
  width: 54px;
  height: 18px;
  border: 4px solid rgba(12, 22, 31, 0.95);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(159, 220, 231, 0.28), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 209, 102, 0.42) 0 8px, rgba(38, 55, 68, 0.96) 8px 18px),
    linear-gradient(180deg, #5a7080, #1c2e3c);
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.28),
    5px 6px 0 rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.surveillance-camera-emitter {
  position: absolute;
  left: var(--camera-origin-x, 34px);
  bottom: var(--camera-origin-y, 54px);
  width: 36px;
  height: 22px;
  transform-origin: 0 50%;
  transform: rotate(calc(var(--camera-pan-deg, -52deg) * -1));
  pointer-events: none;
}

.surveillance-camera-emitter::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 42px;
  height: 16px;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 16px 50%, rgba(255, 255, 255, 0.95), rgba(123, 223, 242, 0.88) 0 7px, transparent 8px),
    linear-gradient(90deg, #152331, #45505b 46%, #111923);
  box-shadow:
    0 0 10px rgba(123, 223, 242, 0.7),
    0 0 18px rgba(255, 107, 107, 0.24);
}

.surveillance-camera-cone {
  position: absolute;
  left: 8px;
  top: 50%;
  width: var(--camera-range, 320px);
  height: var(--camera-cone-height, 520px);
  transform-origin: 0 50%;
  transform: translateY(-50%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background:
    linear-gradient(90deg, rgba(123, 223, 242, 0.44), rgba(123, 223, 242, 0.12) 54%, rgba(123, 223, 242, 0));
  opacity: 0.5;
  mix-blend-mode: screen;
  transition: opacity 100ms ease, filter 100ms ease;
  pointer-events: none;
}

.surveillance-camera-body {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hazards/security-systems/wall-mounted-laser-sentinel.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  transform-origin: 34px 54px;
  transform: none;
  pointer-events: none;
}

.surveillance-camera-lens {
  position: absolute;
  left: 25px;
  bottom: 49px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(120, 245, 255, 0.92) 28%, rgba(56, 175, 255, 0.78) 58%, rgba(10, 24, 38, 0.9) 100%);
  box-shadow:
    0 0 12px rgba(123, 223, 242, 0.72),
    0 0 26px rgba(123, 223, 242, 0.3);
  transform-origin: 50% 50%;
}

.surveillance-camera-led {
  position: absolute;
  left: 66px;
  bottom: 77px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff7373;
  box-shadow:
    0 0 10px rgba(255, 98, 98, 0.78),
    0 0 20px rgba(255, 98, 98, 0.4);
}

.surveillance-camera.is-detecting .surveillance-camera-cone,
.surveillance-camera.is-alert .surveillance-camera-cone {
  opacity: 0.72;
  filter:
    drop-shadow(0 0 16px rgba(255, 118, 118, 0.5))
    drop-shadow(0 0 28px rgba(123, 223, 242, 0.24));
}

.surveillance-camera.is-detecting .surveillance-camera-led,
.surveillance-camera.is-alert .surveillance-camera-led {
  background: #ffd166;
  box-shadow:
    0 0 12px rgba(255, 209, 102, 0.82),
    0 0 24px rgba(255, 107, 107, 0.38);
}

.surveillance-camera.is-offline .surveillance-camera-emitter {
  transform: none;
  opacity: 0.5;
}

.surveillance-camera.is-offline .surveillance-camera-cone {
  opacity: 0 !important;
  filter: none !important;
}

.surveillance-camera.is-offline .surveillance-camera-led {
  background: #57636d;
  box-shadow: 0 0 8px rgba(123, 223, 242, 0.18);
}

.breakable-terminal-barrier {
  z-index: 13;
  width: 244px;
  height: 710px;
  border-left: 14px solid #2a3138;
  border-right: 14px solid #2a3138;
  border-top: 10px solid #394550;
  border-bottom: 10px solid #1c252e;
  background:
    linear-gradient(90deg, rgba(255, 165, 79, 0.18), transparent 12% 88%, rgba(123, 223, 242, 0.14)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 132, 66, 0.18) 0 26px,
      rgba(37, 46, 56, 0.94) 26px 60px,
      rgba(255, 170, 91, 0.12) 60px 66px,
      rgba(20, 27, 34, 0.96) 66px 104px
    ),
    linear-gradient(180deg, #46515b 0%, #242f38 16%, #111921 100%);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.28),
    inset 0 0 26px rgba(255, 140, 54, 0.08),
    inset 0 0 48px rgba(123, 223, 242, 0.06);
  transform-origin: center bottom;
  filter:
    drop-shadow(0 0 14px rgba(255, 166, 94, 0.26))
    drop-shadow(0 0 22px rgba(123, 223, 242, 0.14))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.26));
  transition: transform 120ms ease, opacity 180ms ease, filter 120ms ease;
}

.breakable-terminal-barrier.has-breakable-barrier-3d {
  background-image: none;
}

.breakable-barrier-3d-canvas {
  position: absolute;
  left: -258px;
  bottom: 172px;
  width: 760px;
  height: 360px;
  transform: rotate(90deg);
  transform-origin: center center;
  pointer-events: none;
}

.breakable-terminal-barrier::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: -18px;
  height: 58px;
  border: 4px solid #101720;
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 38%),
    repeating-linear-gradient(90deg, #252f39 0 18px, #384550 18px 34px),
    linear-gradient(180deg, #4b5863, #1e2831);
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.28),
    0 0 16px rgba(255, 165, 79, 0.12);
}

.breakable-terminal-barrier::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 52px;
  bottom: 34px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, transparent 0 28%, rgba(255, 232, 197, 0.9) 29% 33%, transparent 34% 100%),
    linear-gradient(62deg, transparent 0 42%, rgba(255, 190, 150, 0.86) 43% 46%, transparent 47% 100%),
    linear-gradient(164deg, transparent 0 56%, rgba(255, 214, 178, 0.88) 57% 61%, transparent 62% 100%);
  mix-blend-mode: screen;
}

.breakable-terminal-barrier.is-hit {
  transform: scale(0.98) rotate(-1.2deg);
  filter:
    brightness(1.06)
    drop-shadow(0 0 18px rgba(255, 209, 102, 0.58))
    drop-shadow(0 0 24px rgba(255, 107, 107, 0.44))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.26));
}

.breakable-terminal-barrier.is-hit::after {
  opacity: 0.84;
}

.breakable-terminal-barrier.is-bomb-cracking {
  filter:
    hue-rotate(84deg)
    saturate(1.22)
    brightness(1.04)
    drop-shadow(0 0 18px rgba(119, 242, 161, 0.62))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.26));
}

.breakable-terminal-barrier.is-destroyed {
  opacity: 0.08;
  transform: scale(0.94);
}


.prop-mount {
  position: absolute;
  z-index: 11;
  height: 24px;
  pointer-events: none;
  border: 2px solid rgba(72, 102, 124, 0.88);
  border-top-color: rgba(164, 223, 234, 0.92);
  background:
    linear-gradient(180deg, rgba(204, 246, 255, 0.22) 0 4px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(123, 223, 242, 0.28) 0 9px, transparent 9px 18px),
    linear-gradient(180deg, #2b4558, #102130 68%, #07111b);
  box-shadow:
    0 -3px 0 rgba(123, 223, 242, 0.24),
    5px 7px 0 rgba(0, 0, 0, 0.26),
    inset 0 -6px rgba(0, 0, 0, 0.24);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
}

.prop-mount::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(202, 244, 252, 0.82) 0 12px, transparent 12px 22px);
  opacity: 0.78;
}

.prop-mount::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 8px;
  background: linear-gradient(180deg, #40586e, #142331);
  box-shadow: -28px 0 0 rgba(23, 39, 54, 0.92), 28px 0 0 rgba(23, 39, 54, 0.92);
  transform: translateX(-50%) skewX(-12deg);
}

.prop-mount-checkpoint {
  height: 28px;
}

.prop-mount-terminal {
  height: 32px;
}

.prop-mount-door {
  height: 26px;
  opacity: 0.86;
}

.level-1-industrial .prop-mount {
  height: 28px;
  border: 4px solid #070d13;
  border-radius: 5px 5px 3px 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0 6px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(110, 232, 245, 0.2) 0 18px, transparent 18px 34px),
    linear-gradient(180deg, #637c8c, #2d4655 58%, #12202b);
  box-shadow:
    0 -4px 0 rgba(110, 232, 245, 0.22),
    7px 9px 0 rgba(0, 0, 0, 0.32),
    inset 0 -8px rgba(0, 0, 0, 0.22);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.level-1-industrial .prop-mount::before {
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 7px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, #ffd166 0 12px, transparent 12px 22px);
  opacity: 0.82;
}

.level-1-industrial .prop-mount::after {
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 11px;
  background: linear-gradient(180deg, #526d83, #182939);
  box-shadow:
    -38px 0 0 #172838,
    38px 0 0 #172838,
    0 11px 0 rgba(0, 0, 0, 0.24);
}

.level-1-industrial .prop-mount-terminal {
  height: 34px;
}

.level-1-industrial .checkpoint-sprite,
.level-1-industrial .terminal-sprite,
.level-1-industrial .door-sprite {
  filter:
    drop-shadow(0 7px 0 rgba(0, 0, 0, 0.24))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.terminal-sprite.is-locked {
  opacity: 0.68;
  filter: grayscale(0.52) brightness(0.76) saturate(0.82);
}

.prop-mount-terminal.is-locked {
  opacity: 0.74;
}

.enemy-sprite {
  z-index: 10;
  transition: filter 90ms ease, opacity 180ms ease, transform 180ms ease;
}

.patch-actor:not(.is-patch-3d-ready) {
  --patch-sheet-frame-width: 224px;
  --patch-sheet-frame-height: 312px;
  --patch-sheet-scale: 0.5;
  --patch-sheet-row: 0;
  --patch-sheet-frames: 4;
  --patch-sheet-duration: 720ms;
  width: calc(var(--patch-sheet-frame-width) * var(--patch-sheet-scale));
  height: calc(var(--patch-sheet-frame-height) * var(--patch-sheet-scale));
  background-image: url("../assets/game-sprites/patch/patch-animation-sheet.png");
  background-repeat: no-repeat;
  background-size: calc(1344px * var(--patch-sheet-scale)) calc(2184px * var(--patch-sheet-scale));
  background-position: 0 calc(var(--patch-sheet-row) * var(--patch-sheet-frame-height) * var(--patch-sheet-scale) * -1);
  animation: patchSheetFrame var(--patch-sheet-duration) steps(var(--patch-sheet-frames)) infinite;
  filter:
    drop-shadow(0 0 10px rgba(123, 223, 242, 0.16))
    drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
}

.patch-actor:not(.is-patch-3d-ready)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 42px 42px;
  background: rgba(255, 250, 170, 0.22);
  box-shadow:
    0 0 16px rgba(255, 246, 190, 0.5),
    0 0 28px rgba(107, 229, 255, 0.36);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.patch-fallback-sprite {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 112px;
  height: 156px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.patch-actor:not(.is-patch-3d-ready) .patch-fallback-sprite {
  display: none;
}

.patch-actor.is-patch-3d-ready .patch-fallback-sprite {
  display: none;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="idle"] {
  --patch-sheet-row: 0;
  --patch-sheet-frames: 4;
  --patch-sheet-duration: 820ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="run"] {
  --patch-sheet-row: 1;
  --patch-sheet-frames: 6;
  --patch-sheet-duration: 520ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="jump"] {
  --patch-sheet-row: 2;
  --patch-sheet-frames: 3;
  --patch-sheet-duration: 420ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="fall"] {
  --patch-sheet-row: 3;
  --patch-sheet-frames: 3;
  --patch-sheet-duration: 420ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="shoot"] {
  --patch-sheet-row: 4;
  --patch-sheet-frames: 3;
  --patch-sheet-duration: 260ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="hurt"] {
  --patch-sheet-row: 5;
  --patch-sheet-frames: 2;
  --patch-sheet-duration: 180ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="victory"] {
  --patch-sheet-row: 6;
  --patch-sheet-frames: 4;
  --patch-sheet-duration: 680ms;
}

.patch-actor:not(.is-patch-3d-ready)[data-state="crouch"],
.patch-actor:not(.is-patch-3d-ready)[data-state="crawl"] {
  --patch-sheet-row: 0;
  --patch-sheet-frames: 4;
  --patch-sheet-duration: 720ms;
}

@keyframes patchSheetFrame {
  to {
    background-position:
      calc(var(--patch-sheet-frames) * var(--patch-sheet-frame-width) * var(--patch-sheet-scale) * -1)
      calc(var(--patch-sheet-row) * var(--patch-sheet-frame-height) * var(--patch-sheet-scale) * -1);
  }
}

@keyframes patchFallbackInvincibilityFlash {
  0%,
  100% {
    opacity: 0.16;
  }

  50% {
    opacity: 0.78;
  }
}

.patch-actor.is-bonus-invincible {
  filter:
    brightness(1.18)
    saturate(1.14)
    drop-shadow(0 0 12px rgba(255, 246, 190, 0.46))
    drop-shadow(0 0 20px rgba(107, 229, 255, 0.32));
  animation: patchInvincibilityPulse 220ms steps(2) infinite;
}

.patch-actor:not(.is-patch-3d-ready).is-bonus-invincible {
  animation: patchSheetFrame var(--patch-sheet-duration) steps(var(--patch-sheet-frames)) infinite;
}

.patch-actor:not(.is-patch-3d-ready).is-bonus-invincible::before {
  animation: patchFallbackInvincibilityFlash 220ms steps(2) infinite;
}

.enemy-crawler {
  width: 96px;
  height: 88px;
  background-image: url("../assets/game-sprites/enemies/virus-crawler.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  animation: none;
}

.enemy-crawler.has-enemy-3d {
  width: 120px;
  height: 96px;
  background-image: none;
  animation: none;
}

.enemy-3d-canvas {
  position: absolute;
  left: -22px;
  bottom: -6px;
  width: 150px;
  height: 108px;
  pointer-events: none;
}

.enemy-drone.has-drone-3d {
  background-image: none;
  animation: none;
}

.enemy-drone-3d-canvas {
  position: absolute;
  left: -42px;
  bottom: -32px;
  width: 156px;
  height: 150px;
  pointer-events: none;
}

.enemy-drone {
  width: 76px;
  height: 92px;
  object-fit: contain;
  background-image: url("../assets/game-sprites/enemies/glitch-drone.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  animation: droneHover 850ms ease-in-out infinite;
  filter:
    drop-shadow(0 0 14px rgba(123, 223, 242, 0.32))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.enemy-trojan {
  width: 78px;
  height: 72px;
  z-index: 9;
  background-image: url("../assets/game-sprites/enemies/trojan-crate.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  transform-origin: center bottom;
}

.enemy-trojan.has-crate-3d {
  width: 104px;
  height: 92px;
  background-image: none;
}

.enemy-crate-3d-canvas {
  position: absolute;
  left: -22px;
  bottom: -12px;
  width: 138px;
  height: 122px;
  pointer-events: none;
}

.enemy-trojan::before {
  content: none;
}

.enemy-trojan::after {
  content: none;
}

.enemy-trojan.is-fusing {
  opacity: 1;
  filter:
    saturate(1.42)
    drop-shadow(0 0 12px rgba(255, 209, 102, 0.62))
    drop-shadow(0 0 22px rgba(255, 107, 107, 0.34))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
  animation: trojanCrateShake 116ms steps(2, end) infinite;
}

.enemy-trojan.is-about-to-blow {
  filter:
    saturate(1.75)
    brightness(1.16)
    drop-shadow(0 0 18px rgba(255, 209, 102, 0.78))
    drop-shadow(0 0 28px rgba(255, 107, 107, 0.52))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
  animation-duration: 72ms;
}

.enemy-turret {
  width: 156px;
  height: 123px;
  background-image: url("../assets/game-sprites/enemies/firewall-turret.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  transform-origin: center bottom;
  filter:
    drop-shadow(0 0 12px rgba(255, 107, 107, 0.22))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.enemy-turret.is-dormant {
  opacity: 0.72;
  filter:
    grayscale(0.34)
    brightness(0.82)
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.enemy-turret.is-alert,
.enemy-turret.is-shooting {
  filter:
    saturate(1.28)
    brightness(1.08)
    drop-shadow(0 0 14px rgba(255, 107, 107, 0.58))
    drop-shadow(0 0 22px rgba(255, 209, 102, 0.28))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.enemy-sprite.is-dormant:not(.enemy-turret) {
  opacity: 0.5;
  filter: grayscale(0.45) drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.enemy-sprite.is-dormant.is-fusing {
  opacity: 1;
}

.enemy-sprite.is-bomb-cracking {
  filter:
    hue-rotate(84deg)
    saturate(1.4)
    brightness(1.06)
    drop-shadow(0 0 18px rgba(119, 242, 161, 0.64))
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.24));
}

.enemy-sprite.is-bomb-cracking::after {
  content: "";
  position: absolute;
  inset: 14% 12%;
  pointer-events: none;
  background:
    linear-gradient(125deg, transparent 0 26%, rgba(207, 255, 225, 0.9) 27% 31%, transparent 32% 100%),
    linear-gradient(58deg, transparent 0 40%, rgba(178, 255, 205, 0.86) 41% 45%, transparent 46% 100%),
    linear-gradient(164deg, transparent 0 52%, rgba(207, 255, 225, 0.88) 53% 57%, transparent 58% 100%);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.checkpoint-sprite {
  width: 86px;
  z-index: 14;
}

.terminal-sprite {
  width: 190px;
  z-index: 14;
}

.door-sprite {
  width: 88px;
  z-index: 14;
}


.wall-art-layer {
  z-index: 4;
}

.wall-art-poster {
  position: absolute;
  width: 230px;
  height: 130px;
  padding: 8px;
  border: 4px solid #263646;
  border-top-color: #9fb9c9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #40566a, #182533);
  box-shadow:
    8px 10px 0 rgba(0, 0, 0, 0.28),
    inset 0 4px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transform: rotate(-1deg);
}

.wall-art-poster::before {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  top: -9px;
  height: 8px;
  border: 2px solid #34475b;
  border-bottom: 0;
  background: #111923;
  box-shadow:
    0 0 10px rgba(123, 223, 242, 0.24),
    inset 0 2px rgba(255, 255, 255, 0.08);
}

.wall-art-poster::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 2px solid rgba(244, 247, 236, 0.82);
  box-shadow: inset 0 0 0 2px rgba(12, 17, 24, 0.16);
  pointer-events: none;
}

.wall-art-poster img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4f7ec;
  filter: saturate(0.92) contrast(0.98);
}

.wall-art-prompt {
  position: absolute;
  left: 50%;
  bottom: -34px;
  z-index: 3;
  min-width: 122px;
  padding: 6px 9px;
  border: 2px solid rgba(123, 223, 242, 0.72);
  color: #f4f7ec;
  background: rgba(8, 16, 24, 0.92);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.wall-art-poster.is-nearby {
  border-color: #7bdff2;
  box-shadow:
    0 0 20px rgba(123, 223, 242, 0.24),
    8px 10px 0 rgba(0, 0, 0, 0.28),
    inset 0 4px rgba(255, 255, 255, 0.08);
}

.wall-art-poster.is-nearby .wall-art-prompt {
  opacity: 1;
  transform: translate(-50%, 0);
}

.level-1-industrial .wall-art-poster {
  padding: 9px;
  border: 4px solid #070d13;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 34%),
    linear-gradient(180deg, #516a78, #182733);
  box-shadow:
    8px 10px 0 rgba(0, 0, 0, 0.32),
    inset 0 5px rgba(255, 255, 255, 0.08);
}

.level-1-industrial .wall-art-poster::before {
  left: 18px;
  right: 18px;
  top: -12px;
  height: 11px;
  border: 3px solid #070d13;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background:
    repeating-linear-gradient(90deg, #6ee8f5 0 22px, #233d4a 22px 36px);
  box-shadow: 0 0 12px rgba(110, 232, 245, 0.22);
}

.level-1-industrial .wall-art-poster::after {
  inset: 9px;
  border: 3px solid #f4f7ec;
  box-shadow:
    inset 0 0 0 2px rgba(7, 13, 19, 0.16),
    inset 10px 0 0 rgba(255, 209, 102, 0.12);
}

.level-1-industrial .wall-art-poster img {
  background: #f4f7ec;
  filter: saturate(1.02) contrast(1.02);
}

.interaction-prompt {
  position: absolute;
  z-index: 29;
  min-width: 192px;
  padding: 7px 10px;
  border: 2px solid rgba(255, 209, 102, 0.92);
  color: #f4f7ec;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.12), transparent),
    rgba(8, 16, 24, 0.94);
  box-shadow:
    0 0 18px rgba(255, 209, 102, 0.16),
    5px 6px 0 rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
}

.interaction-prompt[hidden] {
  display: none;
}

.interaction-prompt::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255, 209, 102, 0.92);
  border-bottom: 2px solid rgba(255, 209, 102, 0.92);
  background: rgba(8, 16, 24, 0.94);
  transform: translateX(-50%) rotate(45deg);
}

.lab-overlay {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 80;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 11, 18, 0.78);
}

.lab-overlay[hidden] {
  display: none;
}

.poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 11, 18, 0.82);
}

.poster-overlay[hidden] {
  display: none;
}

.lab-modal {
  width: min(1040px, 100%);
  height: min(720px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 3px solid #7bdff2;
  border-radius: 8px;
  background: #08111d;
  box-shadow:
    0 0 0 5px rgba(15, 28, 42, 0.88),
    0 24px 80px rgba(0, 0, 0, 0.55);
  cursor: default;
}

.poster-modal {
  width: min(1180px, 100%);
  height: min(780px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 3px solid #7bdff2;
  border-radius: 8px;
  background: #08111d;
  box-shadow:
    0 0 0 5px rgba(15, 28, 42, 0.88),
    0 24px 80px rgba(0, 0, 0, 0.58);
}

.lab-modal-head,
.lab-modal-actions,
.poster-modal-head,
.poster-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(123, 223, 242, 0.16), transparent),
    #0c1927;
}

.poster-modal-head h2,
.poster-modal-actions p {
  margin: 0;
}

.poster-modal-head h2 {
  color: #f4f7ec;
  font-size: 1.1rem;
}

.poster-frame {
  min-height: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 14px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(123, 223, 242, 0.12), transparent 38%),
    #050a11;
}

.poster-full-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  border: 4px solid #f4f7ec;
  background: #f4f7ec;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.32);
}

.poster-modal-actions p {
  min-width: 0;
  color: #c4f4ea;
  font-weight: 800;
}

.lab-kicker {
  margin: 0 0 2px;
  color: #ffd166;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-modal h2,
.lab-modal-actions p {
  margin: 0;
}

.lab-modal h2 {
  color: #f4f7ec;
  font-size: 1.1rem;
}

.lab-icon-btn,
.lab-complete-btn {
  min-height: 38px;
  border: 2px solid #7bdff2;
  background: #10243a;
  color: #f4f7ec;
  font-weight: 900;
  cursor: pointer;
}

.lab-icon-btn {
  width: 42px;
  font-size: 1.55rem;
  line-height: 1;
}

.lab-complete-btn {
  padding: 0 14px;
  border-color: #7dffb0;
  background: linear-gradient(180deg, #18492d 0%, #123723 100%);
  color: #f3fffa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(125, 255, 176, 0.12),
    0 12px 20px rgba(5, 24, 12, 0.26);
}

.lab-complete-btn:disabled {
  cursor: default;
  opacity: 0.9;
  border-color: #67d68f;
  background: linear-gradient(180deg, #163f29 0%, #112f20 100%);
  color: #dfffea;
}

.lab-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #050a11;
  cursor: default;
}

.lab-modal-head,
.lab-modal-actions,
.lab-modal h2,
.lab-modal-actions p,
.lab-kicker {
  cursor: default;
}

.lab-modal-actions p {
  min-width: 0;
  color: #c4f4ea;
  font-weight: 800;
}

@media (orientation: landscape) and (max-height: 560px) {
  .lab-overlay,
  .poster-overlay {
    padding: 6px;
    place-items: stretch;
  }

  .lab-modal,
  .poster-modal {
    width: min(100%, 1120px);
    height: calc(100dvh - 12px);
    justify-self: center;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .lab-modal-head,
  .lab-modal-actions,
  .poster-modal-head,
  .poster-modal-actions {
    min-height: 0;
    padding: 7px 12px;
  }

  .lab-kicker {
    font-size: 0.64rem;
  }

  .lab-modal h2,
  .poster-modal-head h2 {
    font-size: 0.98rem;
  }

  .lab-icon-btn {
    width: 38px;
    min-height: 34px;
    font-size: 1.28rem;
  }

  .lab-complete-btn {
    min-height: 34px;
    padding: 0 12px;
  }

  .lab-modal-actions p,
  .poster-modal-actions p {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .poster-frame {
    padding: 8px;
  }

}

@media (max-width: 768px) and (orientation: portrait) {
  .lab-overlay,
  .poster-overlay {
    padding: 6px;
    place-items: stretch;
  }

  .lab-modal,
  .poster-modal {
    width: 100%;
    height: calc(100dvh - 12px);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .lab-modal {
    border-width: 2px;
    border-radius: 8px;
    box-shadow:
      0 0 0 3px rgba(15, 28, 42, 0.88),
      0 16px 44px rgba(0, 0, 0, 0.46);
  }

  .lab-modal-head,
  .lab-modal-actions,
  .poster-modal-head,
  .poster-modal-actions {
    padding: 9px 10px;
  }

  .lab-modal-head {
    gap: 8px;
  }

  .lab-kicker {
    font-size: 0.64rem;
  }

  .lab-modal h2,
  .poster-modal-head h2 {
    font-size: 1rem;
    line-height: 1.12;
  }

  .lab-icon-btn {
    width: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    font-size: 1.18rem;
  }

  .lab-frame {
    display: block;
    min-height: 0;
  }

  .lab-modal-actions {
    gap: 8px;
  }

  .lab-modal-actions p,
  .poster-modal-actions p {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .lab-complete-btn {
    min-height: 36px;
    padding: 0 11px;
  }

  .poster-frame {
    justify-items: start;
    padding: 10px;
    background: #f4f7ec;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .poster-full-image {
    width: max(100%, 860px);
    max-width: none;
    border-width: 3px;
    box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.24);
  }

}

.patch-shadow {
  left: 15px;
  bottom: 10px;
  width: 72px;
  height: 11px;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.28);
}

.muzzle-flash {
  bottom: 64px;
}

.quarantine-burst {
  position: absolute;
  width: 68px;
  height: 56px;
  border: 3px solid rgba(119, 242, 161, 0.92);
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(244, 247, 236, 0.95) 0 4px, transparent 5px),
    linear-gradient(180deg, transparent 0 42%, rgba(119, 242, 161, 0.64) 43% 55%, transparent 56%),
    radial-gradient(ellipse at center, rgba(119, 242, 161, 0.22), transparent 68%);
  box-shadow:
    0 0 18px rgba(119, 242, 161, 0.62),
    inset 0 0 18px rgba(123, 223, 242, 0.28);
  animation: quarantineBurst 520ms ease-out;
}

.quarantine-burst::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 10px;
  width: 18px;
  height: 15px;
  border: 3px solid rgba(244, 247, 236, 0.9);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.quarantine-burst::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  width: 22px;
  height: 18px;
  border: 3px solid rgba(244, 247, 236, 0.94);
  background: rgba(9, 15, 20, 0.66);
  box-shadow: 0 0 12px rgba(119, 242, 161, 0.46);
}

.crate-explosion {
  position: absolute;
  z-index: 26;
  width: 236px;
  height: 196px;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(15, 18, 22, 0.42) 0 42px, transparent 58px),
    radial-gradient(circle at 50% 48%, rgba(255, 225, 129, 0.66) 0 24px, rgba(255, 130, 43, 0.38) 25px 52px, rgba(112, 48, 24, 0.18) 53px 76px, transparent 78px);
  filter:
    drop-shadow(0 0 10px rgba(255, 209, 102, 0.7))
    drop-shadow(0 0 20px rgba(255, 99, 64, 0.42));
  animation: crateExplosion 980ms cubic-bezier(0.14, 0.74, 0.22, 1) forwards;
}

.crate-explosion::before,
.crate-explosion::after,
.crate-explosion span {
  content: "";
  position: absolute;
  pointer-events: none;
}

.crate-explosion::before {
  left: 50%;
  top: 51%;
  width: 124px;
  height: 108px;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-8deg);
  clip-path: polygon(50% 0, 60% 28%, 88% 10%, 74% 38%, 100% 45%, 73% 56%, 88% 90%, 58% 73%, 50% 100%, 41% 73%, 12% 90%, 27% 57%, 0 45%, 26% 38%, 12% 10%, 40% 28%);
  background:
    radial-gradient(circle at 50% 52%, #fff9d7 0 11px, #ffd166 12px 29px, #ff8a2a 30px 47px, #c74a23 48px 60px, transparent 61px),
    linear-gradient(135deg, rgba(255, 244, 188, 0.5), rgba(255, 103, 48, 0.72));
  filter:
    drop-shadow(3px 0 0 #121923)
    drop-shadow(-3px 0 0 #121923)
    drop-shadow(0 3px 0 #121923)
    drop-shadow(0 -3px 0 #121923)
    drop-shadow(6px 7px 0 rgba(0, 0, 0, 0.32));
}

.crate-explosion::after {
  left: 42px;
  right: 42px;
  bottom: 18px;
  height: 54px;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 60%, #303943 0 16px, transparent 18px),
    radial-gradient(circle at 40% 40%, #56616d 0 21px, transparent 23px),
    radial-gradient(circle at 62% 58%, #37414b 0 18px, transparent 20px),
    radial-gradient(circle at 80% 38%, #6f7882 0 15px, transparent 17px);
  opacity: 0;
  filter:
    drop-shadow(2px 2px 0 #111923)
    drop-shadow(5px 7px 0 rgba(0, 0, 0, 0.24));
  animation: crateSmoke 980ms ease-out forwards;
}

.crate-explosion-flash {
  left: 50%;
  top: 49%;
  width: 82px;
  height: 70px;
  z-index: 4;
  border-radius: 46% 54% 48% 52%;
  background: radial-gradient(circle, #fffdf2 0 14px, #ffd166 15px 32px, transparent 34px);
  filter:
    drop-shadow(2px 0 0 #121923)
    drop-shadow(-2px 0 0 #121923)
    drop-shadow(0 2px 0 #121923)
    drop-shadow(0 0 16px rgba(255, 244, 190, 0.86));
  transform: translate(-50%, -50%);
  animation: crateFlashPop 560ms ease-out forwards;
}

.crate-explosion-smoke {
  left: 24px;
  right: 24px;
  bottom: 28px;
  height: 64px;
  z-index: 1;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 14% 64%, #26313a 0 17px, transparent 19px),
    radial-gradient(circle at 33% 44%, #65717c 0 23px, transparent 25px),
    radial-gradient(circle at 55% 60%, #3d4852 0 20px, transparent 22px),
    radial-gradient(circle at 74% 42%, #76808a 0 18px, transparent 20px),
    radial-gradient(circle at 88% 62%, #2d3640 0 14px, transparent 16px);
  filter:
    drop-shadow(2px 2px 0 #111923)
    drop-shadow(5px 8px 0 rgba(0, 0, 0, 0.2));
  animation: crateSmoke 1100ms ease-out forwards;
}

.crate-explosion-plank {
  left: 50%;
  top: 52%;
  width: 56px;
  height: 42px;
  z-index: 6;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ff6b4a 0 22%, #461522 23% 44%, #ffd166 45% 58%, #1a2632 59% 100%);
  filter:
    drop-shadow(2px 0 0 #111923)
    drop-shadow(-2px 0 0 #111923)
    drop-shadow(0 2px 0 #111923)
    drop-shadow(5px 6px 0 rgba(0, 0, 0, 0.28));
  transform-origin: center center;
  animation: cratePlankBurst 980ms ease-out forwards;
}

.crate-explosion-plank::before,
.crate-explosion-plank::after,
.crate-explosion-metal::before {
  content: "";
  position: absolute;
}

.crate-explosion-plank::before,
.crate-explosion-plank::after {
  display: none;
}

.plank-1 {
  --dx: -84px;
  --dy: -54px;
  --rot: -40deg;
  --final-scale: 0.92;
  background-position: 0 0;
  clip-path: polygon(0 8%, 92% 0, 100% 76%, 14% 100%);
}

.plank-2 {
  --dx: 78px;
  --dy: -50px;
  --rot: 36deg;
  --final-scale: 0.88;
  background-position: -58px 0;
  clip-path: polygon(10% 0, 100% 12%, 84% 100%, 0 82%);
  animation-delay: 28ms;
}

.plank-3 {
  --dx: -68px;
  --dy: 32px;
  --rot: 24deg;
  --final-scale: 0.8;
  background-position: 0 -52px;
  clip-path: polygon(8% 0, 100% 16%, 88% 88%, 0 100%);
  animation-delay: 54ms;
}

.plank-4 {
  --dx: 70px;
  --dy: 30px;
  --rot: -26deg;
  --final-scale: 0.82;
  background-position: -58px -52px;
  clip-path: polygon(0 14%, 94% 0, 100% 100%, 12% 84%);
  animation-delay: 72ms;
}

.crate-explosion-metal {
  left: 50%;
  top: 51%;
  width: 18px;
  height: 18px;
  z-index: 7;
  border: 3px solid #111923;
  border-radius: 4px;
  background: linear-gradient(135deg, #9aa4ad, #4d5963);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.22),
    4px 5px 0 rgba(0, 0, 0, 0.26);
  animation: crateMetalBurst 920ms ease-out forwards;
}

.crate-explosion-metal::before {
  left: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111923;
  box-shadow: 6px 6px 0 #111923;
}

.metal-1 {
  --dx: -94px;
  --dy: -10px;
  --rot: -74deg;
}

.metal-2 {
  --dx: 92px;
  --dy: -6px;
  --rot: 76deg;
  animation-delay: 44ms;
}

.crate-explosion-warning {
  left: 50%;
  top: 52%;
  width: 34px;
  height: 30px;
  z-index: 8;
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
  background: #b8322a;
  filter:
    drop-shadow(2px 0 0 #111923)
    drop-shadow(-2px 0 0 #111923)
    drop-shadow(0 2px 0 #111923)
    drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.28));
  animation: crateWarningBurst 1000ms ease-out forwards;
}

.crate-explosion-warning::after {
  content: "!";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  color: #ffd166;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.crate-explosion-spark {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  z-index: 9;
  border-radius: 50%;
  background: #fff7c2;
  box-shadow:
    -88px -22px 0 0 #ffd166,
    -66px -72px 0 1px #ff8a2a,
    -42px 62px 0 0 #ffd166,
    -8px -88px 0 1px #fffdf2,
    26px 76px 0 1px #ff8a2a,
    58px -60px 0 1px #ffd166,
    84px 28px 0 0 #fffdf2,
    98px -12px 0 1px #ff4d2f;
  transform: translate(-50%, -50%);
  animation: crateSparkBurst 860ms ease-out forwards;
}

@keyframes droneHover {
  0%, 100% { transform: translateY(0) scaleX(var(--enemy-face, 1)); }
  50% { transform: translateY(-9px) scaleX(var(--enemy-face, 1)); }
}

@keyframes blackHolePulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.08); opacity: 0.72; }
}
@keyframes liveCableWrithe {
  0%, 100% { transform: translate3d(0, 0, 0) skewX(0deg); }
  35% { transform: translate3d(1px, -1px, 0) skewX(-1.5deg); }
  70% { transform: translate3d(-1px, 0, 0) skewX(1.2deg); }
}

@keyframes blackHoleCycloneMist {
  0% { transform: rotate(0deg) scaleX(1) scaleY(1) skewY(0deg); opacity: 0.5; }
  25% { transform: rotate(0deg) scaleX(0.82) scaleY(1.08) skewY(-6deg); opacity: 0.42; }
  50% { transform: rotate(0deg) scaleX(0.64) scaleY(1.16) skewY(0deg); opacity: 0.34; }
  75% { transform: rotate(0deg) scaleX(0.82) scaleY(1.08) skewY(6deg); opacity: 0.42; }
  100% { transform: rotate(0deg) scaleX(1) scaleY(1) skewY(0deg); opacity: 0.5; }
}

@keyframes blackHoleHoleSwirl {
  0%, 100% { transform: rotate(0deg); }
}

@keyframes liveCableSpark {
  0%, 100% { opacity: 0.36; }
  50% { opacity: 0.92; }
}

@keyframes trojanCrateShake {
  0% { transform: translateX(-3px) rotate(-1.8deg) scaleX(var(--enemy-face, 1)); }
  50% { transform: translateX(3px) rotate(1.8deg) scaleX(var(--enemy-face, 1)); }
  100% { transform: translateX(-2px) rotate(-1deg) scaleX(var(--enemy-face, 1)); }
}

@keyframes trojanWarningBlink {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@keyframes crateExplosion {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-3deg);
  }
  9% {
    opacity: 1;
    transform: scale(0.72) rotate(2deg);
  }
  28% {
    opacity: 1;
    transform: scale(1.04) rotate(-2deg);
  }
  70% {
    opacity: 0.9;
    transform: scale(1.08) rotate(1deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.16) rotate(3deg);
  }
}

@keyframes crateFlashPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.28) rotate(-8deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(4deg); }
  56% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.22) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.38) rotate(6deg); }
}

@keyframes crateSmoke {
  0% { opacity: 0; transform: translateY(18px) scale(0.54); }
  24% { opacity: 0.94; transform: translateY(3px) scale(0.86); }
  72% { opacity: 0.64; transform: translateY(-14px) scale(1.12); }
  100% { opacity: 0; transform: translateY(-38px) scale(1.34); }
}

@keyframes cratePlankBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(0.44); }
  16% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.22), calc(-50% + var(--dy) * 0.22)) rotate(calc(var(--rot) * 0.32)) scale(1); }
  74% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.82), calc(-50% + var(--dy) * 0.82)) rotate(calc(var(--rot) * 0.84)) scale(var(--final-scale)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(calc(var(--final-scale) * 0.88)); }
}

@keyframes crateMetalBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(0.42); }
  20% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.25), calc(-50% + var(--dy) * 0.25)) rotate(calc(var(--rot) * 0.35)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.72); }
}

@keyframes crateWarningBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(0.34); }
  18% { opacity: 1; transform: translate(calc(-50% + 10px), calc(-50% - 28px)) rotate(15deg) scale(1); }
  78% { opacity: 1; transform: translate(calc(-50% + 24px), calc(-50% - 86px)) rotate(44deg) scale(0.88); }
  100% { opacity: 0; transform: translate(calc(-50% + 30px), calc(-50% - 104px)) rotate(62deg) scale(0.68); }
}

@keyframes crateSparkBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.36) rotate(0deg); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.28) rotate(9deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.62) rotate(14deg); }
}

@keyframes quarantineBurst {
  0% { opacity: 0.98; transform: translateY(4px) scale(0.42); }
  54% { opacity: 0.9; transform: translateY(-7px) scale(1.04); }
  100% { opacity: 0; transform: translateY(-16px) scale(1.34); }
}

@media (max-width: 720px) {
  .arena {
    --mobile-control-dock-height: 124px;
  }

  .arena-viewport {
    inset: 0 0 var(--mobile-control-dock-height);
  }

  .mobile-controls {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: var(--mobile-control-dock-height);
    align-items: center;
    padding: 8px 12px 10px;
    border-top: 2px solid rgba(123, 223, 242, 0.18);
    background:
      linear-gradient(180deg, rgba(7, 11, 16, 0), rgba(7, 11, 16, 0.88) 18%),
      rgba(7, 11, 16, 0.72);
  }

}

@media (max-height: 520px) and (orientation: landscape) {
  .arena {
    --mobile-control-dock-height: 104px;
  }

  .arena-viewport {
    inset: 0 0 var(--mobile-control-dock-height);
  }

  .mobile-controls {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: var(--mobile-control-dock-height);
    align-items: center;
    padding: 6px 10px;
    border-top: 2px solid rgba(123, 223, 242, 0.16);
    background:
      linear-gradient(180deg, rgba(7, 11, 16, 0), rgba(7, 11, 16, 0.9) 18%),
      rgba(7, 11, 16, 0.72);
  }
}
