* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #081619;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 600ms ease;
  position: relative;
  overflow: hidden;
}

/* Thematic Ambient Theater Backgrounds */
body,
body[data-theater="ocean"] {
  background: radial-gradient(ellipse at 50% 40%, #0c252d 0%, #081619 55%, #030a0c 100%);
}

body[data-theater="twilight"] {
  background: radial-gradient(ellipse at 50% 30%, #221019 0%, #100a14 55%, #050308 100%) !important;
}

body[data-theater="orbital"] {
  background: radial-gradient(ellipse at 50% 25%, #180924 0%, #090314 55%, #020108 100%) !important;
}

/* ── Top-Right Flight Telemetry Thin Strip ───────────────────────────── */
.top-info-strip {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(10, 28, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 12px rgba(0, 255, 204, 0.12);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  pointer-events: auto;
  transition: all 0.25s ease;
}

.brand-title {
  color: #00f2fe;
  font-family: 'Share Tech Mono', -apple-system, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 5px;
  border-right: 1px solid rgba(0, 255, 204, 0.25);
}

.brand-plane-icon {
  font-size: 12px;
}

/* ── Top-Left Tactical Operations Collapsible Strip ───────────────────── */
.top-actions-strip {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  pointer-events: auto;
}

.actions-strip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #102521 0%, #081614 60%, #040d0c 100%);
  border: 1px solid rgba(0, 255, 170, 0.45);
  border-radius: 18px;
  padding: 4px 10px;
  color: #00ff88;
  font-family: 'Share Tech Mono', -apple-system, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 255, 170, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  height: 32px;
  white-space: nowrap;
}

.actions-strip-toggle:hover {
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

.actions-strip-toggle .toggle-icon {
  font-size: 12px;
  line-height: 1;
}

.actions-strip-toggle .toggle-chevron {
  font-size: 9px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.actions-strip-items {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(10, 28, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 255, 204, 0.1);
  height: 32px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-actions-strip.is-collapsed .actions-strip-items {
  display: none;
}

.top-actions-strip.is-collapsed .actions-strip-toggle .toggle-chevron {
  transform: rotate(-90deg);
}

.top-actions-strip .meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  height: 24px;
  border-radius: 6px;
  white-space: nowrap;
}

.top-actions-strip .sound-toggle-btn {
  height: 24px;
  padding: 2px 7px;
  font-size: 12px;
  border-radius: 6px;
}

.meta-btn {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.meta-btn:hover {
  background: rgba(0, 242, 254, 0.26);
  border-color: #00f2fe;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.35);
}

.meta-btn:active {
  transform: translateY(0);
}

.btn-level-info {
  border-color: rgba(255, 215, 0, 0.45);
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
}

.btn-level-info:hover {
  background: rgba(255, 215, 0, 0.26);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35);
}

.ping-btn {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
}

.ping-btn:hover {
  background: rgba(239, 68, 68, 0.32);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.45);
}

.ping-btn.is-pinging {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(255, 215, 0, 0.3));
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
  animation: ping-btn-glow 0.8s ease-in-out infinite alternate;
}

@keyframes ping-btn-glow {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
  100% { transform: scale(1.04); box-shadow: 0 0 18px rgba(255, 215, 0, 0.85); }
}

.level-badge {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #031b26;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tier-badge {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.range-badge {
  background: rgba(255, 75, 43, 0.15);
  color: #ff7675;
  border: 1px solid rgba(255, 75, 43, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.enemies-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.sound-toggle-btn {
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sound-toggle-btn:hover {
  background: rgba(0, 242, 254, 0.22);
  border-color: rgba(0, 242, 254, 0.65);
}

.sound-toggle-btn:active {
  background: rgba(0, 242, 254, 0.35);
}

/* ── Tactical Military Satellite Phone Floating Comms Widget ─────────── */
.satphone-widget {
  position: fixed;
  bottom: 12px;
  right: 14px;
  z-index: 1200;
  font-family: 'Share Tech Mono', 'Consolas', 'Courier New', monospace, ui-monospace;
  user-select: none;
  pointer-events: auto;
}

/* Floating Launcher Button (Collapsed State) */
.satphone-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #102521 0%, #081614 60%, #040d0c 100%);
  border: 1.5px solid rgba(0, 255, 170, 0.5);
  border-radius: 24px;
  padding: 7px 14px 7px 12px;
  color: #00ff88;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7),
              0 0 14px rgba(0, 255, 170, 0.25),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.satphone-launcher:hover {
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(0, 242, 254, 0.45),
              inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.satphone-launcher:active {
  transform: translateY(0);
}

.satphone-launcher.satphone-launcher-pulse {
  animation: launcherAlertPulse 0.5s ease-out 3;
}

@keyframes launcherAlertPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 255, 170, 0.25);
  }
  50% {
    border-color: #ffaa00;
    box-shadow: 0 4px 25px rgba(255, 170, 0, 0.8), 0 0 30px rgba(255, 170, 0, 0.5);
  }
}

/* Launcher mini antenna */
.satphone-launcher-antenna {
  position: relative;
  width: 5px;
  height: 14px;
  background: linear-gradient(180deg, #3a5c54 0%, #1f3833 100%);
  border-radius: 2px 2px 0 0;
  border: 1px solid rgba(0, 255, 170, 0.3);
  margin-right: -2px;
}

.satphone-launcher-antenna .antenna-tip-glow {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7700;
  box-shadow: 0 0 6px #ff7700;
  animation: antennaBeaconPulse 2s infinite ease-in-out;
}

@keyframes antennaBeaconPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px #ff7700; }
  50% { opacity: 1; box-shadow: 0 0 8px #ffaa00, 0 0 14px #ff4400; }
}

.launcher-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  animation: commsLedIdle 2.5s infinite ease-in-out;
}

.launcher-led.tx-active {
  background: #ffffff !important;
  box-shadow: 0 0 10px #ffffff, 0 0 18px #00ff88 !important;
}

.launcher-icon {
  font-size: 13px;
}

.launcher-title {
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

.launcher-unread {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: unreadBounce 0.4s ease;
}

@keyframes unreadBounce {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.launcher-chevron {
  font-size: 9px;
  opacity: 0.7;
  color: #38bdf8;
  margin-left: 2px;
}

/* Collapsed Alert HUD Preview Toast */
.satphone-toast {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: linear-gradient(180deg, #091a18 0%, #030d0b 100%);
  border: 1px solid rgba(0, 255, 170, 0.45);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.85), 0 0 16px rgba(0, 255, 170, 0.2);
  padding: 8px 10px;
  box-sizing: border-box;
  animation: toastFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@keyframes toastFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.satphone-toast .toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #00f2fe;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
  padding-bottom: 3px;
}

.satphone-toast .toast-close {
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  padding: 0 4px;
}
.satphone-toast .toast-close:hover { color: #f87171; }

.satphone-toast .toast-body {
  font-size: 11.5px;
  line-height: 15px;
  color: #00ff88;
  font-weight: 600;
  word-break: break-word;
}

/* Satellite Handset Body (Expanded State) */
.satphone-handset {
  position: relative;
  width: 320px;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

/* State switching */
.satphone-widget.is-collapsed .satphone-handset {
  display: none !important;
}

.satphone-widget.is-collapsed .satphone-launcher {
  display: inline-flex;
}

.satphone-widget:not(.is-collapsed) .satphone-launcher {
  display: none;
}

.satphone-widget:not(.is-collapsed) .satphone-handset {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  height: auto;
}

/* Satellite Antenna Assembly (Top Left) */
.satphone-antenna-assembly {
  position: absolute;
  top: -42px;
  left: 26px;
  width: 20px;
  height: 44px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.antenna-cap {
  width: 14px;
  height: 7px;
  background: #ff6600;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.8);
  position: relative;
}

.antenna-beacon {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffcc00;
  box-shadow: 0 0 5px #ffcc00;
  animation: antennaBeaconPulse 1.8s infinite ease-in-out;
}

.antenna-shaft {
  width: 15px;
  height: 30px;
  background: linear-gradient(90deg, #182a24 0%, #29463d 50%, #15241e 100%);
  border: 1px solid #365b50;
  position: relative;
  overflow: hidden;
}

.antenna-groove {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #0d1714;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}
.antenna-groove.g1 { top: 6px; }
.antenna-groove.g2 { top: 14px; }
.antenna-groove.g3 { top: 22px; }

.antenna-knurled-collar {
  width: 19px;
  height: 7px;
  background: linear-gradient(90deg, #443722 0%, #856a38 50%, #3a2e1c 100%);
  border: 1px solid #a38243;
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Rugged Handset Chassis */
.satphone-chassis {
  position: relative;
  background: linear-gradient(175deg, #182823 0%, #0e1a17 45%, #08110f 100%);
  border: 2px solid #204036;
  border-radius: 14px;
  padding: 8px 10px 10px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.85),
              0 0 24px rgba(0, 255, 170, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.2),
              inset 0 -2px 4px rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
}

/* Textured Rubber Side Grip Ribs */
.satphone-chassis::before,
.satphone-chassis::after {
  content: '';
  position: absolute;
  top: 45px;
  bottom: 45px;
  width: 5px;
  background: repeating-linear-gradient(
    180deg,
    #050c0a 0px,
    #050c0a 5px,
    #254037 5px,
    #254037 8px
  );
  border-radius: 3px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}
.satphone-chassis::before { left: -7px; }
.satphone-chassis::after { right: -7px; }

/* Top Screws & Stencils */
.satphone-top-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 2px 5px;
}

.satphone-screws {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.satphone-screw {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #4a6a60 35%, #182924 100%);
  border: 1px solid #101c18;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.satphone-brand-mark {
  display: flex;
  flex-direction: column;
  padding-left: 2px;
}

.satphone-brand-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #38bdf8;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.satphone-brand-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #64748b;
}

.satphone-minimize-btn {
  background: rgba(15, 32, 28, 0.8);
  border: 1px solid rgba(0, 255, 170, 0.4);
  border-radius: 5px;
  width: 24px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-family: inherit;
}

.satphone-minimize-btn:hover {
  background: rgba(0, 255, 170, 0.25);
  border-color: #00ff88;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.minimize-line {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

/* Telemetry Ribbon */
.satphone-telemetry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 12, 10, 0.85);
  border: 1px solid rgba(0, 255, 170, 0.22);
  border-radius: 5px;
  padding: 3px 6px;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 700;
}

.telemetry-left,
.telemetry-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sat-lock-pill {
  color: #00ff88;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.lock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 5px #39ff14;
}

.sat-freq-pill {
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.sat-pwr {
  color: #fbbf24;
  font-size: 8.5px;
}

.comms-indicator-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88, 0 0 12px rgba(0, 255, 136, 0.7);
  display: inline-block;
  animation: commsLedIdle 2.5s infinite ease-in-out;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.comms-indicator-led.tx-active {
  background: #ffffff !important;
  box-shadow: 0 0 10px #ffffff, 0 0 18px #00ff88, 0 0 26px #00ffcc !important;
  animation: commsLedActive 0.45s ease-out;
}

@keyframes commsLedIdle {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 5px #00ff88, 0 0 10px rgba(0, 255, 136, 0.5);
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 2px #00ff88;
  }
}

@keyframes commsLedActive {
  0% {
    transform: scale(1.4);
    opacity: 1;
    background: #ffffff;
  }
  50% {
    transform: scale(1.15);
    background: #55ffaa;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
    background: #00ff88;
  }
}

.comms-signal-meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.comms-signal-bar {
  width: 2.5px;
  background: #00ff88;
  box-shadow: 0 0 4px #00ff88;
  border-radius: 1px;
}
.comms-signal-bar.b1 { height: 3px; }
.comms-signal-bar.b2 { height: 5px; }
.comms-signal-bar.b3 { height: 7.5px; }
.comms-signal-bar.b4 { height: 10px; }

/* Screen Housing inside Satphone */
.satphone-screen-housing {
  position: relative;
  background: #020a07;
  border: 1.5px solid rgba(0, 255, 136, 0.38);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.15),
              inset 0 3px 10px rgba(0, 0, 0, 0.95),
              0 2px 6px rgba(0, 0, 0, 0.6);
}

.satphone-screen-housing .comms-screen-feed {
  height: 135px;
  max-height: 135px;
  padding: 6px 8px;
}

/* Lower Controls: Speaker Grille & Tactical Keys */
.satphone-face-controls {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.satphone-mic-grille {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 2px 0;
}

.grille-slot {
  width: 14px;
  height: 3px;
  background: #060e0c;
  border-radius: 2px;
  box-shadow: inset 0 1px 1px #000, 0 1px 0 rgba(255, 255, 255, 0.12);
}

.satphone-tactical-keys {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.satphone-key {
  flex: 1;
  background: linear-gradient(180deg, #192d27 0%, #101d19 100%);
  border: 1px solid rgba(0, 255, 170, 0.35);
  border-radius: 5px;
  padding: 4px 2px;
  color: #00ff88;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.14s ease;
}

.satphone-key:hover {
  background: linear-gradient(180deg, #244239 0%, #152722 100%);
  border-color: #00ffaa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 255, 170, 0.3);
}

.satphone-key:active {
  transform: translateY(0);
  background: #0e1815;
}

.satphone-key .key-icon {
  font-size: 11px;
}

/* Bottom Fasteners & Lanyard D-Ring */
.satphone-bottom-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 2px 0;
  position: relative;
}

.satphone-lanyard-mount {
  display: flex;
  justify-content: center;
}

.dring-loop {
  width: 20px;
  height: 6px;
  border: 1.5px solid #365b50;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Screen Housing / Viewport */
.comms-screen-housing {
  position: relative;
  background: #020d09;
  border: 1px solid rgba(0, 255, 136, 0.32);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(0, 255, 136, 0.12),
              inset 0 3px 8px rgba(0, 0, 0, 0.92),
              0 1px 3px rgba(0, 0, 0, 0.5);
}

/* CRT Screen Scanlines & Glare Overlay */
.comms-crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.32) 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 35%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 75%);
  background-size: 100% 3px, 100% 100%, 100% 100%;
}

/* Scrolling Transmission Feed */
.comms-screen-feed,
.game-status {
  position: relative;
  z-index: 2;
  height: 50px;
  max-height: 50px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 8px;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.4) transparent;
  text-align: left;
}

.comms-screen-feed::-webkit-scrollbar,
.game-status::-webkit-scrollbar {
  width: 4px;
}
.comms-screen-feed::-webkit-scrollbar-track,
.game-status::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}
.comms-screen-feed::-webkit-scrollbar-thumb,
.game-status::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.45);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 255, 136, 0.6);
}

/* Individual Transmission Message Line */
.comms-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 1.5px 0;
  font-family: 'Share Tech Mono', 'Consolas', 'Courier New', monospace, ui-monospace;
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 600;
  word-break: break-word;
  transition: opacity 350ms ease, text-shadow 350ms ease, filter 350ms ease;
  flex-shrink: 0;
}

.comms-line.is-dimmed {
  opacity: 0.62;
  filter: brightness(0.9);
}

.comms-line.is-latest {
  opacity: 1;
  animation: commsLineIncoming 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.comms-line.comms-line-pulse {
  animation: commsLinePulse 0.45s ease-out;
}

@keyframes commsLineIncoming {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: brightness(2) contrast(1.3);
  }
  60% {
    opacity: 1;
    transform: translateY(-1px);
    filter: brightness(1.4);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@keyframes commsLinePulse {
  0% { filter: brightness(2.2) drop-shadow(0 0 8px #00ff88); }
  100% { filter: brightness(1); }
}

/* Transmission Tag: [TIME TX] */
.comms-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Prompt Arrow >> */
.comms-arrow {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Message Content */
.comms-content {
  flex: 1;
  min-width: 0;
}

/* Blinking Terminal Cursor */
.comms-cursor {
  display: inline-block;
  width: 6.5px;
  height: 12px;
  background: #39ff14;
  box-shadow: 0 0 6px #39ff14;
  vertical-align: -1px;
  margin-left: 3px;
  animation: commsCursorBlink 0.9s infinite step-start;
}

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

/* Fluorescent Phosphor Color Schemes */
/* 1. Default Tactical Green (Phosphor Neon) */
.comms-line.type-normal,
.comms-line.type-tactical {
  color: #00ff88;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.9), 0 0 12px rgba(0, 255, 136, 0.45);
}
.comms-line.type-normal .comms-tag,
.comms-line.type-tactical .comms-tag {
  color: #00f2fe;
  text-shadow: 0 0 4px rgba(0, 242, 254, 0.7);
}
.comms-line.type-normal .comms-arrow,
.comms-line.type-tactical .comms-arrow {
  color: #39ff14;
  text-shadow: 0 0 6px #39ff14;
}

/* 2. Alert / Warning (Fluorescent Amber / Flame) */
.comms-line.type-alert {
  color: #ffaa00;
  text-shadow: 0 0 6px rgba(255, 170, 0, 0.95), 0 0 14px rgba(255, 120, 0, 0.55);
}
.comms-line.type-alert .comms-tag {
  color: #ffcc00;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.85);
}
.comms-line.type-alert .comms-arrow {
  color: #ff4400;
  text-shadow: 0 0 6px #ff4400;
}
.comms-line.type-alert .comms-cursor {
  background: #ffaa00;
  box-shadow: 0 0 6px #ffaa00;
}

/* 3. Hazard / Blast / Damage (Fluorescent Crimson / Neon Red) */
.comms-line.type-hazard {
  color: #ff416c;
  text-shadow: 0 0 6px rgba(255, 65, 108, 0.95), 0 0 14px rgba(255, 50, 90, 0.55);
}
.comms-line.type-hazard .comms-tag {
  color: #ff6584;
  text-shadow: 0 0 6px rgba(255, 101, 132, 0.8);
}
.comms-line.type-hazard .comms-arrow {
  color: #ff1744;
  text-shadow: 0 0 7px #ff1744;
}
.comms-line.type-hazard .comms-cursor {
  background: #ff416c;
  box-shadow: 0 0 6px #ff416c;
}

/* 4. Power-Up / Tactical Tech (Fluorescent Electric Cyan) */
.comms-line.type-intel {
  color: #00f2fe;
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.9), 0 0 13px rgba(0, 242, 254, 0.5);
}
.comms-line.type-intel .comms-tag {
  color: #38bdf8;
  text-shadow: 0 0 5px rgba(56, 189, 248, 0.8);
}
.comms-line.type-intel .comms-arrow {
  color: #00ffff;
  text-shadow: 0 0 7px #00ffff;
}
.comms-line.type-intel .comms-cursor {
  background: #00f2fe;
  box-shadow: 0 0 6px #00f2fe;
}

/* 5. Victory / Clearance (Fluorescent Golden Electric) */
.comms-line.type-victory {
  color: #fef08a;
  text-shadow: 0 0 6px rgba(254, 240, 138, 0.95), 0 0 14px rgba(250, 204, 21, 0.6);
}
.comms-line.type-victory .comms-tag {
  color: #fde047;
  text-shadow: 0 0 6px rgba(253, 224, 71, 0.8);
}
.comms-line.type-victory .comms-arrow {
  color: #facc15;
  text-shadow: 0 0 7px #facc15;
}
.comms-line.type-victory .comms-cursor {
  background: #fef08a;
  box-shadow: 0 0 6px #fef08a;
}

/* Mobile responsiveness for HUD Strips, Satphone & Powerups */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .top-info-strip {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    gap: 3px;
    height: 26px;
    border-radius: 13px;
    font-size: 9px;
    max-width: calc(100vw - 65px);
  }

  .brand-title {
    font-size: 9px;
    padding-right: 2px;
  }

  .brand-plane-icon {
    font-size: 11px;
  }

  .brand-title-text {
    display: none; /* Icon only on mobile */
  }

  .tier-badge {
    max-width: 68px;
    font-size: 9px;
    padding: 1px 4px;
  }

  .level-badge,
  .range-badge,
  .enemies-badge {
    font-size: 9px;
    padding: 1px 5px;
  }

  .top-actions-strip {
    top: 6px;
    left: 6px;
    gap: 2px;
  }

  .actions-strip-toggle {
    height: 26px;
    padding: 2px 7px;
    font-size: 10px;
    border-radius: 13px;
  }

  .actions-strip-items {
    height: 26px;
    padding: 2px 4px;
    gap: 3px;
    border-radius: 13px;
  }

  .top-actions-strip .btn-label {
    display: none;
  }

  .top-actions-strip .meta-btn {
    padding: 2px 5px;
    height: 20px;
    font-size: 10px;
    min-width: 24px;
    justify-content: center;
  }

  .top-actions-strip .sound-toggle-btn {
    height: 20px;
    padding: 1px 4px;
    font-size: 10px;
  }

  .powerup-widget {
    bottom: 8px;
    left: 8px;
  }

  .powerup-launcher {
    padding: 5px 9px 5px 8px;
    font-size: 10px;
    gap: 4px;
    border-radius: 18px;
  }

  .powerup-launcher-badge {
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    padding: 0 3px;
  }

  .powerup-dock {
    max-width: min(320px, calc(100vw - 16px));
    padding: 6px 8px;
  }

  .powerup-dock .powerup-slots {
    gap: 5px;
  }

  .powerup-dock .powerup-btn {
    min-width: 78px;
    padding: 4px 6px;
    gap: 4px;
  }

  .powerup-dock .powerup-desc {
    display: none;
  }

  .powerup-dock .powerup-hotkey {
    display: none;
  }

  .satphone-widget {
    bottom: 8px;
    right: 8px;
  }

  .satphone-launcher {
    padding: 5px 9px 5px 8px;
    font-size: 10px;
    gap: 4px;
    border-radius: 18px;
  }

  .satphone-launcher-antenna {
    display: none;
  }

  .satphone-handset {
    width: min(300px, calc(100vw - 16px));
  }
  .satphone-screen-housing .comms-screen-feed {
    height: 110px;
    max-height: 110px;
    padding: 4px 6px;
  }
  .comms-line {
    font-size: 11px;
    line-height: 16px;
    gap: 4px;
  }
  .comms-tag {
    font-size: 9px;
  }
  .comms-arrow {
    font-size: 9px;
  }
  .comms-cursor {
    height: 10px;
    width: 5px;
  }
}

.game-board-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: auto;
  overflow: visible;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  z-index: 10;
}

.game-panel {
  display: grid;
  position: relative;
  overflow: hidden;
  background: #0f2728;
  border: 2px solid rgba(0, 255, 204, 0.35);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 204, 0.12);
  transition: border-color 500ms ease, box-shadow 500ms ease, background 500ms ease;
  flex-shrink: 0;
}

.carrier-photo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('../images/carrier-deck.svg') center / 100% 100% no-repeat;
  opacity: 0.92;
  transition: background-image 400ms ease, opacity 400ms ease;
}

/* 1. Levels 1 to 10: Pacific Ocean Theater */
.carrier-photo.theater-ocean,
body[data-theater="ocean"] .carrier-photo {
  background-image: url('../images/carrier-deck.svg');
}

/* 2. Levels 11 to 20: Twilight Fortress Theater */
body[data-theater="twilight"] .game-panel {
  background: #180c14;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.8), 0 0 26px rgba(245, 158, 11, 0.25);
}

.carrier-photo.theater-twilight,
body[data-theater="twilight"] .carrier-photo {
  background-image: url('../images/carrier-deck-twilight.svg') !important;
}

body[data-theater="twilight"] .level-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #1a0802 !important;
}

body[data-theater="twilight"] .game-meta-bar {
  background: rgba(32, 14, 22, 0.88);
  border-color: rgba(245, 158, 11, 0.35);
}

body[data-theater="twilight"] .powerup-bar {
  background: rgba(28, 12, 18, 0.92);
  border-color: rgba(245, 158, 11, 0.35);
}

/* 3. Levels 21 to 30: Stratospheric Orbital Void Theater */
body[data-theater="orbital"] .game-panel {
  background: #0d071a;
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.88), 0 0 32px rgba(168, 85, 247, 0.35);
}

.carrier-photo.theater-orbital,
body[data-theater="orbital"] .carrier-photo {
  background-image: url('../images/carrier-deck-orbital.svg') !important;
}

body[data-theater="orbital"] .level-badge {
  background: linear-gradient(135deg, #a855f7, #ec4899) !important;
  color: #ffffff !important;
}

body[data-theater="orbital"] .game-meta-bar {
  background: rgba(22, 10, 32, 0.88);
  border-color: rgba(168, 85, 247, 0.4);
}

body[data-theater="orbital"] .powerup-bar {
  background: rgba(18, 7, 28, 0.92);
  border-color: rgba(168, 85, 247, 0.4);
}

/* 4. Levels 31 to 40: Arctic Frostbite Expanse */
body[data-theater="arctic"] .game-panel {
  background: #061325;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.88), 0 0 30px rgba(56, 189, 248, 0.32);
}
.carrier-photo.theater-arctic,
body[data-theater="arctic"] .carrier-photo {
  background-image: url('../images/carrier-deck-arctic.svg') !important;
  filter: none !important;
}
body[data-theater="arctic"] .level-badge {
  background: linear-gradient(135deg, #38bdf8, #0284c7) !important;
  color: #021a2e !important;
}
body[data-theater="arctic"] .game-meta-bar {
  background: rgba(6, 24, 46, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}
body[data-theater="arctic"] .powerup-bar {
  background: rgba(5, 20, 38, 0.92);
  border-color: rgba(56, 189, 248, 0.4);
}

/* 5. Levels 41 to 50: Ion Storm Sanctuary */
body[data-theater="ion"] .game-panel {
  background: #110526;
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.88), 0 0 32px rgba(234, 179, 8, 0.3);
}
.carrier-photo.theater-ion,
body[data-theater="ion"] .carrier-photo {
  background-image: url('../images/carrier-deck-ion.svg') !important;
  filter: none !important;
}
body[data-theater="ion"] .level-badge {
  background: linear-gradient(135deg, #eab308, #8b5cf6) !important;
  color: #1e0938 !important;
}
body[data-theater="ion"] .game-meta-bar {
  background: rgba(24, 10, 48, 0.9);
  border-color: rgba(139, 92, 246, 0.4);
}
body[data-theater="ion"] .powerup-bar {
  background: rgba(20, 8, 40, 0.92);
  border-color: rgba(139, 92, 246, 0.4);
}

/* 6. Levels 51 to 60: Sunken Canyon Mesa */
body[data-theater="canyon"] .game-panel {
  background: #1c0e06;
  border-color: rgba(217, 119, 6, 0.65);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.85), 0 0 28px rgba(217, 119, 6, 0.28);
}
.carrier-photo.theater-canyon,
body[data-theater="canyon"] .carrier-photo {
  background-image: url('../images/carrier-deck-twilight.svg') !important;
  filter: sepia(0.6) hue-rotate(330deg) saturate(1.8) brightness(0.95);
}
body[data-theater="canyon"] .level-badge {
  background: linear-gradient(135deg, #d97706, #78350f) !important;
  color: #fff8eb !important;
}
body[data-theater="canyon"] .game-meta-bar {
  background: rgba(36, 18, 10, 0.9);
  border-color: rgba(217, 119, 6, 0.4);
}
body[data-theater="canyon"] .powerup-bar {
  background: rgba(30, 14, 8, 0.92);
  border-color: rgba(217, 119, 6, 0.4);
}

/* 7. Levels 61 to 70: Orbital Shipyard Foundry */
body[data-theater="shipyard"] .game-panel {
  background: #041a14;
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.88), 0 0 30px rgba(16, 185, 129, 0.32);
}
.carrier-photo.theater-shipyard,
body[data-theater="shipyard"] .carrier-photo {
  background-image: url('../images/carrier-deck-orbital.svg') !important;
  filter: hue-rotate(90deg) saturate(1.6) brightness(1.1);
}
body[data-theater="shipyard"] .level-badge {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  color: #022018 !important;
}
body[data-theater="shipyard"] .game-meta-bar {
  background: rgba(8, 36, 28, 0.9);
  border-color: rgba(16, 185, 129, 0.4);
}
body[data-theater="shipyard"] .powerup-bar {
  background: rgba(6, 30, 24, 0.92);
  border-color: rgba(16, 185, 129, 0.4);
}

/* 8. Levels 71 to 80: Solar Corona Frontier */
body[data-theater="solar"] .game-panel {
  background: #1f0703;
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 8px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.4);
}
.carrier-photo.theater-solar,
body[data-theater="solar"] .carrier-photo {
  background-image: url('../images/carrier-deck-twilight.svg') !important;
  filter: hue-rotate(345deg) saturate(2.4) brightness(1.25);
}
body[data-theater="solar"] .level-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  color: #260501 !important;
}
body[data-theater="solar"] .game-meta-bar {
  background: rgba(40, 12, 8, 0.9);
  border-color: rgba(239, 68, 68, 0.45);
}
body[data-theater="solar"] .powerup-bar {
  background: rgba(34, 10, 6, 0.92);
  border-color: rgba(239, 68, 68, 0.45);
}

/* 9. Levels 81 to 90: Abyssal Void Expanse */
body[data-theater="abyss"] .game-panel {
  background: #07061a;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 8px 45px rgba(0, 0, 0, 0.92), 0 0 32px rgba(99, 102, 241, 0.35);
}
.carrier-photo.theater-abyss,
body[data-theater="abyss"] .carrier-photo {
  background-image: url('../images/carrier-deck-orbital.svg') !important;
  filter: hue-rotate(215deg) saturate(2.0) brightness(0.8) contrast(1.35);
}
body[data-theater="abyss"] .level-badge {
  background: linear-gradient(135deg, #6366f1, #312e81) !important;
  color: #ffffff !important;
}
body[data-theater="abyss"] .game-meta-bar {
  background: rgba(14, 12, 42, 0.9);
  border-color: rgba(99, 102, 241, 0.45);
}
body[data-theater="abyss"] .powerup-bar {
  background: rgba(12, 10, 36, 0.92);
  border-color: rgba(99, 102, 241, 0.45);
}

/* 10. Levels 91 to 100: Apex Sovereign Citadel */
body[data-theater="sovereign"] .game-panel {
  background: #14050a;
  border-color: rgba(255, 215, 0, 0.85);
  box-shadow: 0 8px 50px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 215, 0, 0.35);
}
.carrier-photo.theater-sovereign,
body[data-theater="sovereign"] .carrier-photo {
  background-image: url('../images/carrier-deck-orbital.svg') !important;
  filter: hue-rotate(300deg) saturate(2.5) brightness(1.15) contrast(1.2);
}
body[data-theater="sovereign"] .level-badge {
  background: linear-gradient(135deg, #ffd700, #ff3b30) !important;
  color: #1a0408 !important;
  font-weight: 900 !important;
}
body[data-theater="sovereign"] .game-meta-bar {
  background: rgba(30, 8, 16, 0.92);
  border-color: rgba(255, 215, 0, 0.5);
}
body[data-theater="sovereign"] .powerup-bar {
  background: rgba(26, 6, 14, 0.94);
  border-color: rgba(255, 215, 0, 0.5);
}

.cell {
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ── Tactical Radar Ping & Hostile Highlight ── */
.cell.enemy-ping-active {
  z-index: 25 !important;
  box-shadow: inset 0 0 16px rgba(255, 59, 48, 0.85), 0 0 28px rgba(255, 215, 0, 0.95) !important;
  border-color: #ffd700 !important;
  animation: enemy-cell-ping-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes enemy-cell-ping-pulse {
  0% {
    box-shadow: inset 0 0 10px rgba(255, 59, 48, 0.6), 0 0 16px rgba(255, 215, 0, 0.7);
    border-color: #ff453a;
  }
  100% {
    box-shadow: inset 0 0 22px rgba(255, 59, 48, 0.95), 0 0 32px rgba(255, 215, 0, 1);
    border-color: #ffd700;
  }
}

.cell.enemy-ping-active .plane-img {
  filter: drop-shadow(0 0 14px #ff3b30) drop-shadow(0 0 24px #ffd700) brightness(1.65) contrast(1.25) !important;
  transform: scale(1.12);
  transition: transform 0.2s ease, filter 0.2s ease;
  z-index: 10;
}

.radar-ping-beacon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse-ring {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ff3b30;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.8);
  animation: radar-beacon-expand 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

.radar-pulse-ring.ring-2 {
  animation-delay: 0.65s;
  border-color: #ffd700;
}

@keyframes radar-beacon-expand {
  0% {
    transform: scale(0.35);
    opacity: 1;
    border-width: 3px;
  }
  70% {
    opacity: 0.85;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
    border-width: 1px;
  }
}

.radar-pulse-crosshair {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.radar-pulse-crosshair::before,
.radar-pulse-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 215, 0, 0.85);
  box-shadow: 0 0 6px #ff3b30;
}

/* Vertical crosshair lines */
.radar-pulse-crosshair::before {
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  opacity: 0.75;
}

/* Horizontal crosshair lines */
.radar-pulse-crosshair::after {
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  opacity: 0.75;
}

/* Floating High-Contrast Coordinate Badge */
.radar-ping-tag {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 35;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: 1.5px solid #ffd700;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 4px;
  animation: ping-tag-bob 0.7s ease-in-out infinite alternate;
  pointer-events: none;
}

.radar-ping-tag::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 4px 0 4px;
  border-style: solid;
  border-color: #ffd700 transparent transparent transparent;
}

@keyframes ping-tag-bob {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-3px); }
}

.turn-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.turn-arrow path {
  fill: none;
  stroke: #f5c518;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aircraft,
.plane-token {
  display: grid;
  place-items: center;
}

.plane-token {
  width: 50px;
  height: 50px;
  position: absolute;
  z-index: 2;
  will-change: transform;
}

.plane-token.is-moving {
  transition: left 360ms cubic-bezier(.22, .8, .28, 1), top 360ms cubic-bezier(.22, .8, .28, 1);
}

.plane-token img {
  display: block;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 260ms ease-out;
}

.plane-token.landing-from-left,
.plane-token.landing-from-right {
  position: absolute;
  z-index: 3;
}

.plane-token.landing-from-left {
  left: 0;
  animation: taxi-right 1.8s cubic-bezier(.16, 1, .3, 1) forwards;
}

.plane-token.landing-from-right {
  animation: taxi-left 1.8s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes taxi-right {
  25% { transform: translate(38px, 0) scale(.9); }
  100% { transform: translate(300px, 0) scale(.82); }
}

@keyframes taxi-left {
  25% { transform: translate(-38px, 0) scale(.9); }
  100% { transform: translate(-300px, 0) scale(.82); }
}

.runway {
  height: 50px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.runway-markings {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 5px;
  transform: translateY(-50%);
  display: none;
}

/* ── Runway Landing Lights ── */
.landing-light {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border-radius: 50%;
  background: rgba(20, 45, 45, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-light.lit {
  background: #50ff90;
  border-color: #ffffff;
  box-shadow: 0 0 8px 3px #00ff88, 0 0 18px 6px rgba(0, 255, 136, 0.85), 0 0 30px 12px rgba(0, 255, 136, 0.45);
  animation: landing-light-glow 1.4s infinite alternate ease-in-out;
}

@keyframes landing-light-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px 3px #00ff88, 0 0 16px 5px rgba(0, 255, 136, 0.75);
  }
  100% {
    transform: scale(1.3);
    box-shadow: 0 0 12px 5px #00ff88, 0 0 24px 9px rgba(0, 255, 136, 0.95), 0 0 36px 14px rgba(0, 255, 136, 0.5);
  }
}

/* ── Animated Yellow Arrow Reveal at approach ── */
.turn-arrow.arrow-reveal {
  animation: arrow-reveal-pop 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.turn-arrow.arrow-reveal svg {
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.85));
}

@keyframes arrow-reveal-pop {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── No-Fly Zones (Radars & Anti-Aircraft Defense Batteries) ── */
.cell.no-fly-zone {
  position: relative;
  background: rgba(35, 12, 18, 0.72);
  border: 1px solid rgba(255, 69, 58, 0.7);
  box-shadow: inset 0 0 10px rgba(255, 50, 50, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: not-allowed;
  user-select: none;
}

.cell.no-fly-zone::before {
  content: "NFZ";
  position: absolute;
  top: 2px;
  right: 2px;
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 900;
  color: #ff453a;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 69, 58, 0.45);
  padding: 0 2px;
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
}

.cell.no-fly-zone:hover {
  background: rgba(60, 16, 25, 0.88);
  border-color: #ff3b30;
  box-shadow: inset 0 0 14px rgba(255, 59, 48, 0.45), 0 0 8px rgba(255, 59, 48, 0.35);
}

.cell.no-fly-zone .nfz-icon {
  width: 38px;
  height: 38px;
  display: block;
  pointer-events: none;
}

.radar-sweep-group {
  transform-origin: 20px 20px;
  animation: radar-rotate 2.8s linear infinite;
}

@keyframes radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-blip {
  animation: blip-flash 2.8s ease-in-out infinite;
}

@keyframes blip-flash {
  0%, 15% { opacity: 0; }
  30% { opacity: 1; transform: scale(1.4); }
  55% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 0; }
}

.aagun-turret-group {
  transform-origin: 20px 20px;
  animation: turret-track 4.5s ease-in-out infinite alternate;
}

@keyframes turret-track {
  0% { transform: rotate(-35deg); }
  45% { transform: rotate(10deg); }
  100% { transform: rotate(-50deg); }
}

.cell.is-selectable { cursor: pointer; }
.cell.is-selectable:hover { background-color: rgba(255, 255, 255, .18); }

.plane-token.is-active {
  cursor: crosshair;
}

.plane-token.is-active:hover img {
  filter: drop-shadow(0 0 6px #ffd700);
}

/* Callsign badge on planes */
.plane-tag {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.plane-tag.tag-p1 {
  background: rgba(0, 150, 255, 0.85);
  border: 0.5px solid #00d2ff;
}

.plane-tag.tag-enemy-1 {
  background: rgba(220, 38, 38, 0.85);
  border: 0.5px solid #f87171;
}

.plane-tag.tag-enemy-2 {
  background: rgba(147, 51, 234, 0.85);
  border: 0.5px solid #c084fc;
}

.plane-tag.tag-enemy-3 {
  background: rgba(217, 119, 6, 0.85);
  border: 0.5px solid #fbbf24;
}

/* ── Aircraft strobe light on active plane ── */
.plane-token.is-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: calc(50% - 3px);
  left: calc(50% - 3px);
  transform-origin: center center;
  transform: rotate(var(--rotation, 0deg)) translateY(var(--strobe-dist, 17px));
  transition: transform 260ms ease-out;
  z-index: 6;
  pointer-events: none;
  animation: strobe-flash 1.2s infinite;
}

.plane-e1.is-active::after {
  --strobe-dist: 17px;
  background: #00e5ff;
  box-shadow: 0 0 6px 2px #00e5ff, 0 0 14px 4px rgba(0, 229, 255, 0.6);
}

.plane-token:not(.plane-e1).is-active::after {
  --strobe-dist: 16px;
  background: #ff2233;
  box-shadow: 0 0 6px 2px #ff2233, 0 0 14px 4px rgba(255, 34, 51, 0.6);
}

.plane-token.is-stealthed::after {
  display: none !important;
}

@keyframes strobe-flash {
  0%   { opacity: 0; filter: brightness(1); }
  4%   { opacity: 1; filter: brightness(2.2); }
  8%   { opacity: 0; filter: brightness(1); }
  14%  { opacity: 1; filter: brightness(2.2); }
  18%  { opacity: 0; filter: brightness(1); }
  100% { opacity: 0; filter: brightness(1); }
}

.plane-hp-bar {
  display: none;
}

.hp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 4px #22c55e;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.hp-dot.hp-lost {
  background: #ef4444;
  box-shadow: none;
  opacity: 0.3;
}

.turn-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  display: none;
}

.plane-token.is-active .turn-controls {
  display: block;
}

.game-won .turn-controls,
.game-over .turn-controls,
.game-panel.game-won .turn-controls,
.game-panel.game-over .turn-controls,
.plane-token.won .turn-controls,
.plane-token.no-controls .turn-controls {
  display: none !important;
}

.btn-turn {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #102a2b;
  color: #ffd700;
  border: 1px solid #ffd700;
  font-size: 11px;
  font-weight: 900;
  line-height: 15px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
  user-select: none;
}

.btn-turn-left {
  top: 16px;
  left: -11px;
}

.btn-turn-right {
  top: 16px;
  right: -11px;
}

.btn-turn:hover {
  transform: scale(1.3);
  background: #ffd700;
  color: #102a2b;
  box-shadow: 0 0 10px #ffd700;
}

.btn-turn:active {
  transform: scale(0.95);
}

.damage-sparks {
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 10%, #ffd700 40%, #ff4500 80%, transparent 100%);
  z-index: 8;
  pointer-events: none;
  animation: spark-pop 250ms ease-out forwards;
}

@keyframes spark-pop {
  0% { transform: scale(0.3); opacity: 1; }
  60% { transform: scale(1.4); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.muzzle-flash {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, #ffea00 55%, #ff3b00 90%, transparent 100%);
  z-index: 6;
  pointer-events: none;
  animation: flash-pop 160ms ease-out forwards;
}

.muzzle-flash.aa-muzzle-flash {
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  background: radial-gradient(circle, #ffffff 10%, #ff5722 45%, #ff0000 85%, transparent 100%);
  z-index: 7;
  animation: flash-pop 220ms ease-out forwards;
}

@keyframes flash-pop {
  0% { transform: scale(0.4); opacity: 1; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.bullet-tracer {
  position: absolute;
  width: 4px;
  height: 18px;
  margin-left: -2px;
  margin-top: -9px;
  background: linear-gradient(to top, #ffffff, #ffcc00, #ff3300);
  border-radius: 2px;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 6px #ffcc00, 0 0 10px #ff3300;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.bullet-tracer.tracer-long {
  height: 32px;
  margin-top: -16px;
  box-shadow: 0 0 10px #ffcc00, 0 0 16px #ff3300;
}

.bullet-tracer.aa-flak-tracer {
  width: 5px;
  height: 22px;
  margin-left: -2.5px;
  margin-top: -11px;
  background: linear-gradient(to top, #ffffff, #ff3b30, #ff9500);
  box-shadow: 0 0 8px #ff3b30, 0 0 14px #ff9500;
  transition: transform 200ms ease-in, opacity 200ms ease-in;
  z-index: 7;
}

.cell.is-in-aa-range {
  box-shadow: inset 0 0 8px rgba(255, 69, 58, 0.45);
  border-color: rgba(255, 69, 58, 0.7);
  background-color: rgba(255, 59, 48, 0.12);
}

.explosion-effect {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, #ffdd00 40%, #ff3700 70%, rgba(40, 40, 40, 0.8) 85%, transparent 100%);
  z-index: 10;
  pointer-events: none;
  animation: explode 650ms cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes explode {
  0% { transform: scale(0.2); opacity: 1; }
  45% { transform: scale(1.3); opacity: 0.95; }
  100% { transform: scale(1.6); opacity: 0; }
}

.plane-token.is-destroyed {
  animation: plane-destroy 750ms ease-out forwards;
}

@keyframes plane-destroy {
  0% { transform: scale(1); filter: brightness(2); }
  35% { transform: scale(1.15) rotate(30deg); filter: brightness(3) sepia(1) hue-rotate(-50deg); opacity: 0.9; }
  100% { transform: scale(0.2) rotate(180deg); opacity: 0; filter: grayscale(1) brightness(0.2); }
}

.fireworks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

.victory-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 24, 0.82);
  backdrop-filter: blur(4px);
  animation: overlay-fade-in 400ms ease-out forwards;
  gap: 12px;
}

@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.winner-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 140, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  animation: title-pop 600ms cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.winner-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: -4px;
}

/* Grand Campaign Finale Overlay */
.campaign-complete-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(239, 68, 68, 0.25));
  border: 1.5px solid #ffd700;
  color: #ffd700;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
  animation: title-pop 500ms ease-out forwards;
}

.campaign-winner-title {
  color: #ffd700 !important;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 69, 58, 0.7) !important;
  font-size: 28px !important;
  letter-spacing: 1.5px !important;
}

.campaign-winner-subtitle {
  color: #e2e8f0 !important;
  max-width: 480px;
  text-align: center;
  line-height: 1.5;
  margin: 4px 16px 16px 16px;
  font-size: 13.5px !important;
}

@keyframes title-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.overlay-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.next-level-btn,
.restart-btn {
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 9px 22px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  user-select: none;
}

.next-level-btn {
  color: #031b26;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.45);
}

.next-level-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.7);
  background: linear-gradient(135deg, #38f9d7, #4facfe);
}

.restart-btn {
  color: #0f2425;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 215, 0, 0.5);
}

.restart-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 215, 0, 0.8);
  background: linear-gradient(135deg, #ffe033, #ffaa00);
}

/* ── Name Prompt Modal Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px;
  overflow-y: auto;
  animation: overlay-fade-in 300ms ease-out forwards;
}

.modal-card {
  width: 92%;
  max-width: 400px;
  max-height: min(88vh, 88dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 18px;
  background: linear-gradient(180deg, #102a2b 0%, #091b1d 100%);
  border: 2px solid rgba(0, 255, 204, 0.6);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 255, 204, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin: auto;
  animation: title-pop 400ms cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.modal-card::-webkit-scrollbar {
  width: 5px;
}
.modal-card::-webkit-scrollbar-track {
  background: rgba(4, 12, 15, 0.4);
  border-radius: 3px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 204, 0.35);
  border-radius: 3px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 204, 0.65);
}

.modal-badge {
  background: rgba(0, 255, 204, 0.15);
  color: #00ffcc;
  border: 1px solid rgba(0, 255, 204, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #00f2fe;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.modal-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.name-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  color: #00ffcc;
  font-size: 16px;
  pointer-events: none;
}

.name-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(5, 18, 20, 0.9);
  border: 1.5px solid rgba(0, 255, 204, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.name-input:focus {
  border-color: #00ffcc;
  background: rgba(8, 28, 32, 0.95);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
}

.start-game-btn {
  width: 100%;
  padding: 11px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: 2px solid #ffffff;
  color: #031b26;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.45);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  flex-shrink: 0;
}

.start-game-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.7);
  background: linear-gradient(135deg, #38f9d7, #4facfe);
}

.start-game-btn:active {
  transform: scale(0.98);
}

/* Saved Game Telemetry & Load/New Options */
.saved-game-panel,
.new-game-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-resume {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.badge-defeat {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.4);
}

.saved-telemetry-box {
  width: 100%;
  background: rgba(4, 15, 20, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0 14px 0;
  text-align: left;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry-label {
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.telemetry-val {
  color: #00f2fe;
  font-weight: 700;
}

.telemetry-arsenal {
  display: flex;
  gap: 8px;
}

.arsenal-chip {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.load-game-btn {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #0f2425;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  border: 2px solid #ffffff;
}

.load-game-btn:hover {
  background: linear-gradient(135deg, #ffe033, #ffaa00);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.65);
}

.modal-divider {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  line-height: 0.1em;
  margin: 18px 0 16px;
}

.modal-divider span {
  background: #0d2224;
  padding: 0 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   TACTICAL POWER-UP ARSENAL & AIRDROPS
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── Tactical Power-Up Arsenal Widget (Bottom Left Collapsible) ────────── */
.powerup-widget {
  position: fixed;
  bottom: 12px;
  left: 14px;
  z-index: 1200;
  font-family: 'Share Tech Mono', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  user-select: none;
  pointer-events: auto;
}

/* Floating Launcher Button (Collapsed State) */
.powerup-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0c232c 0%, #07171d 60%, #030d10 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  border-radius: 24px;
  padding: 7px 14px 7px 12px;
  color: #00f2fe;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7),
              0 0 14px rgba(0, 242, 254, 0.25),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.powerup-launcher:hover {
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(255, 215, 0, 0.4),
              inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.powerup-launcher:active {
  transform: translateY(0);
}

.powerup-launcher.has-powerups {
  border-color: #ffd700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 215, 0, 0.45);
}

.powerup-launcher.shield-active {
  border-color: #fbbf24 !important;
  animation: launcherShieldGlow 1.5s infinite alternate ease-in-out;
}

@keyframes launcherShieldGlow {
  0% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
  100% { box-shadow: 0 0 22px rgba(251, 191, 36, 0.8); }
}

.powerup-launcher.stealth-active {
  border-color: #c084fc !important;
  animation: launcherStealthGlow 1.5s infinite alternate ease-in-out;
}

@keyframes launcherStealthGlow {
  0% { box-shadow: 0 0 10px rgba(192, 132, 252, 0.4); }
  100% { box-shadow: 0 0 22px rgba(192, 132, 252, 0.8); }
}

.powerup-launcher.ramjet-active {
  border-color: #ff3b30 !important;
  animation: launcherRamjetGlow 1s infinite alternate ease-in-out;
}

@keyframes launcherRamjetGlow {
  0% { box-shadow: 0 0 10px rgba(255, 59, 48, 0.4); }
  100% { box-shadow: 0 0 24px rgba(255, 59, 48, 0.9); }
}

.powerup-launcher.powerup-launcher-pulse {
  animation: launcherAlertPulse 0.5s ease-out 3;
}

.powerup-launcher-badge {
  background: #00f2fe;
  color: #031b26;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.powerup-launcher-icon {
  font-size: 12px;
}

.powerup-launcher-chevron {
  font-size: 9px;
  opacity: 0.7;
}

/* Collapsed Toast Alert */
.powerup-toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 250px;
  background: rgba(10, 26, 29, 0.96);
  border: 1px solid rgba(0, 255, 204, 0.6);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 204, 0.3);
  padding: 8px 10px;
  color: #00f2fe;
  font-size: 11px;
  z-index: 1210;
}

.powerup-widget.is-collapsed .powerup-dock {
  display: none !important;
}

.powerup-widget:not(.is-collapsed) .powerup-launcher {
  display: none !important;
}

/* Expanded Power-Up Dock Container */
.powerup-dock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 28, 30, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 255, 204, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 255, 204, 0.15);
  user-select: none;
  max-width: 480px;
}

.powerup-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 204, 0.18);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.dock-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-title {
  color: #00f2fe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.powerup-collapse-btn {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s ease;
}

.powerup-collapse-btn:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: #00f2fe;
  color: #ffffff;
}

.powerup-bar-hint {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.powerup-slots {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* ── Power-up Button Slot ── */
.powerup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(8, 26, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f1f5f9;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  min-width: 112px;
}

.powerup-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
  pointer-events: none;
}

.powerup-btn.is-ready {
  cursor: pointer;
  pointer-events: auto;
}

/* Teleport button */
.powerup-teleport.is-ready {
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}
.powerup-teleport.is-ready:hover {
  transform: translateY(-2px);
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.15);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.55);
}

/* Shield button */
.powerup-shield.is-ready {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}
.powerup-shield.is-ready:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}

/* Stealth button */
.powerup-stealth.is-ready {
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}
.powerup-stealth.is-ready:hover {
  transform: translateY(-2px);
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.15);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.55);
}

/* Active State Pulsing */
.powerup-btn.is-active {
  animation: btn-active-glow 1.4s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes btn-active-glow {
  0% {
    box-shadow: 0 0 8px 1px currentColor;
  }
  100% {
    box-shadow: 0 0 20px 4px currentColor;
  }
}

.powerup-btn.is-active.powerup-shield {
  border-color: #fbbf24;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.22);
}

.powerup-btn.is-active.powerup-stealth {
  border-color: #c084fc;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.22);
}

/* Icon Wrapper & Count */
.powerup-icon-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.powerup-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.powerup-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8), 0 0 4px #00f2fe;
}

.powerup-teleport .powerup-count {
  background: #00f2fe;
  color: #031b26;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.8);
}

.powerup-shield .powerup-count {
  background: #fbbf24;
  color: #1a1001;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.8);
}

.powerup-stealth .powerup-count {
  background: #c084fc;
  color: #2e0854;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.8);
}

.count-bounce {
  animation: candy-badge-bounce 450ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes candy-badge-bounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.powerup-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.powerup-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.powerup-desc {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 500;
}

.powerup-hotkey {
  margin-left: auto;
  font-size: 9px;
  font-family: monospace;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  color: #cbd5e1;
}

/* Active status notification banner */
.powerup-active-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3px;
}

.active-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: badge-glow 1.4s infinite alternate;
}

.active-badge.shield-badge {
  background: rgba(251, 191, 36, 0.25);
  color: #ffd700;
  border: 1px solid #fbbf24;
}

.active-badge.stealth-badge {
  background: rgba(192, 132, 252, 0.25);
  color: #e879f9;
  border: 1px solid #c084fc;
}

@keyframes badge-glow {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* ── In-Grid Airdrop Parachute & Crate Tokens ── */
.airdrop-container {
  width: 50px;
  height: 50px;
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Parachute falling drop animation */
.airdrop-container.airdrop-falling {
  animation: airdrop-fall 1.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes airdrop-fall {
  0% {
    transform: translateY(-260px) rotate(-8deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  40% {
    transform: translateY(-130px) rotate(6deg);
  }
  70% {
    transform: translateY(-35px) rotate(-3deg);
  }
  92% {
    transform: translateY(3px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

/* Parachute Canopy SVG */
.airdrop-parachute {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 32px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.airdrop-parachute.parachute-detached {
  transform: translateX(-50%) translateY(-22px) scale(0.8);
  opacity: 0;
}

/* Supply Crate */
.airdrop-crate {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 3;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  transition: transform 200ms ease;
}

.airdrop-crate.crate-hovering {
  animation: crate-hover-bob 2s infinite ease-in-out;
}

@keyframes crate-hover-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Crate Types Color Themes */
.crate-teleport {
  background: linear-gradient(135deg, #0f4c5c, #0d3b66);
  border: 1.5px solid #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6), inset 0 0 6px rgba(0, 242, 254, 0.4);
}

.crate-shield {
  background: linear-gradient(135deg, #5e3a00, #8a5700);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6), inset 0 0 6px rgba(251, 191, 36, 0.4);
}

.crate-stealth {
  background: linear-gradient(135deg, #380d4c, #57106e);
  border: 1.5px solid #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.6), inset 0 0 6px rgba(192, 132, 252, 0.4);
}

.crate-ramjet {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #991b1b 100%);
  border: 1.8px solid #ff453a;
  box-shadow: 0 0 14px rgba(255, 69, 58, 0.85), 0 0 5px #ffd60a, inset 0 0 8px rgba(255, 69, 58, 0.6);
  animation: crate-hover-bob 2s infinite ease-in-out, ramjet-crate-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes ramjet-crate-pulse {
  0% {
    box-shadow: 0 0 8px rgba(255, 69, 58, 0.6), inset 0 0 6px rgba(255, 69, 58, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 69, 58, 1), 0 0 8px #ffd60a, inset 0 0 12px rgba(255, 149, 0, 0.8);
  }
}

.crate-emblem {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crate-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Crate Collection Pickup Pop */
.crate-collected {
  animation: crate-pickup-pop 380ms cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes crate-pickup-pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6) translateY(-14px);
    opacity: 0.9;
    filter: brightness(2) drop-shadow(0 0 16px #ffffff);
  }
  100% {
    transform: scale(2.2) translateY(-32px);
    opacity: 0;
  }
}

/* Crate Destroyed / Intercepted by Enemy */
.crate-destroyed {
  animation: crate-explode-destroy 380ms ease-out forwards;
}

@keyframes crate-explode-destroy {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  40% {
    transform: scale(1.4);
    opacity: 0.9;
    filter: brightness(2.5) drop-shadow(0 0 16px #ff3b30);
  }
  100% {
    transform: scale(0.2) rotate(45deg);
    opacity: 0;
    filter: brightness(0.4);
  }
}

/* ── In-Flight Aircraft Status Auras ── */

/* Forcefield Shield Bubble */
.plane-shield-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(56, 189, 248, 0.18) 70%, transparent 100%);
  box-shadow: 0 0 14px 4px rgba(251, 191, 36, 0.65), inset 0 0 10px rgba(0, 242, 254, 0.5);
  pointer-events: none;
  z-index: 5;
  animation: shield-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes shield-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.96);
    box-shadow: 0 0 10px 2px rgba(251, 191, 36, 0.5), inset 0 0 8px rgba(0, 242, 254, 0.4);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 20px 6px rgba(251, 191, 36, 0.85), inset 0 0 14px rgba(0, 242, 254, 0.7);
  }
}

.plane-shield-bubble.shield-deflecting {
  animation: shield-deflect-flash 350ms ease-out forwards;
}

@keyframes shield-deflect-flash {
  0% {
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255, 255, 255, 0.85);
    border-color: #ffffff;
    box-shadow: 0 0 30px 10px #ffd700;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    background: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 25px 8px #ff4500;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Translucent Stealth Cloak on Aircraft */
.plane-token.is-stealthed {
  transition: opacity 300ms ease;
}

.plane-token.is-stealthed img {
  opacity: 0.35 !important;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.95)) saturate(2.2) !important;
  animation: stealth-shimmer 2s infinite ease-in-out;
}

.plane-token.is-stealthed .plane-tag {
  opacity: 0.45;
  background: rgba(88, 28, 135, 0.85) !important;
  border-color: #c084fc !important;
}

@keyframes stealth-shimmer {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.22;
  }
}

/* Teleport Quantum Warp Portal Animation */
.warp-portal-flash {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  animation: warp-flash-expand 480ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.warp-portal-flash.warp-out {
  background: radial-gradient(circle, #ffffff 10%, #00f2fe 40%, #a855f7 70%, transparent 100%);
}

.warp-portal-flash.warp-in {
  background: radial-gradient(circle, #ffffff 10%, #38bdf8 45%, #00f2fe 80%, transparent 100%);
}

@keyframes warp-flash-expand {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }
  60% {
    transform: scale(1.4);
    opacity: 0.85;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ── Level 11 Heavy Gunship / Armored Bomber Styles ── */

/* Plane Tag for Bomber */
.plane-tag.tag-bomber {
  background: linear-gradient(135deg, #b45309, #d97706) !important;
  border: 1px solid #f59e0b !important;
  color: #fffbeb !important;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

/* Plane HP Meter & Armor Pips */
.plane-hp-meter {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  background: rgba(15, 23, 42, 0.92);
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(245, 158, 11, 0.3);
  z-index: 10;
  pointer-events: none;
}

.plane-hp-pip {
  width: 9px;
  height: 5px;
  border-radius: 1px;
  transition: all 0.25s ease;
}

.plane-hp-pip.pip-filled {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.9);
}

.plane-hp-pip.pip-empty {
  background: #334155;
  border: 1px solid #475569;
  opacity: 0.6;
}

/* Damaged Bomber Smoke */
.plane-token.is-damaged::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 18px;
  left: 18px;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.8) 0%, rgba(30, 41, 59, 0.4) 60%, transparent 100%);
  filter: blur(2px);
  animation: damage-smoke-puff 1.2s infinite ease-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes damage-smoke-puff {
  0% { transform: scale(0.6) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.4) translate(-4px, -8px); opacity: 0.4; }
  100% { transform: scale(2.2) translate(-8px, -16px); opacity: 0; }
}

/* Tail Gun Defensive Fire Visuals */
.tailgun-muzzle-flash {
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ff453a 40%, #f59e0b 70%, transparent 100%);
  box-shadow: 0 0 20px #ff3b30, 0 0 35px #f59e0b;
  z-index: 8;
  pointer-events: none;
  animation: flash-pop 160ms ease-out forwards;
}

.tailgun-tracer {
  position: absolute;
  width: 4px;
  height: 22px;
  margin-left: -2px;
  margin-top: -11px;
  background: linear-gradient(to top, #ff3b30, #ffd60a);
  box-shadow: 0 0 12px #ff3b30, 0 0 6px #ffd60a;
  border-radius: 2px;
  z-index: 7;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 0.22s linear, opacity 0.22s ease-out;
}

/* Intel Briefing Modal Styles */
.intel-modal-card {
  max-width: 500px;
  width: 94%;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  border: 2px solid rgba(245, 158, 11, 0.85);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 32px rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, #182229 0%, #0d161a 100%);
  margin: auto;
}

.intel-modal-card .modal-title {
  font-size: 16px;
  margin: 0 0 4px 0;
}

.badge-threat {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: #f59e0b;
  animation: threat-pulse 1.8s infinite ease-in-out;
}

@keyframes threat-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.8); }
}

.intel-preview-container {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 2px 0 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  box-shadow: inset 0 0 16px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.intel-preview-radar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  animation: radar-spin 6s linear infinite;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.intel-bomber-img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
  z-index: 2;
}

.intel-tailgun-ping {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #ef4444;
  background: rgba(239, 68, 68, 0.25);
  animation: ping-wave 1.4s infinite cubic-bezier(0, 0.2, 0.8, 1);
  z-index: 3;
}

@keyframes ping-wave {
  0% { transform: translateX(-50%) scale(0.6); opacity: 1; }
  100% { transform: translateX(-50%) scale(2.4); opacity: 0; }
}

.intel-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  margin-bottom: 8px;
}

.intel-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: rgba(15, 30, 36, 0.65);
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 3px solid #00f2fe;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.3;
}

.intel-row strong {
  color: #f1f5f9;
}

.intel-icon {
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}

.intel-warning-row {
  border-left-color: #ef4444;
  background: rgba(45, 18, 20, 0.6);
}

.intel-danger-row {
  border-left-color: #ef4444;
  background: rgba(45, 18, 20, 0.6);
}

.intel-tactics-box {
  background: rgba(16, 42, 43, 0.8);
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
}

.intel-tactics-title {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #00ffcc;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.intel-tactics-list {
  margin: 0;
  padding-left: 16px;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
}

.intel-tactics-list strong {
  color: #f8fafc;
}

.intel-modal-card .start-game-btn {
  padding: 8px 16px;
  font-size: 12px;
  margin-top: 6px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.intel-confirm-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.intel-confirm-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7);
}

/* ── Level 21 Sky Dreadnought Capital Flagship Styles ── */

/* Callsign Tag for Dreadnought */
.plane-tag.tag-dreadnought {
  background: linear-gradient(135deg, #991b1b, #dc2626) !important;
  border: 1px solid #ff453a !important;
  color: #fff5f5 !important;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

/* Damaged Flagship / Railguns Disabled */
.plane-token.railguns-disabled .plane-tag.tag-dreadnought {
  background: linear-gradient(135deg, #713f12, #ca8a04) !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.7) !important;
}

/* Forward Twin Railgun Tracer */
.bullet-tracer.tracer-railgun {
  background: linear-gradient(to top, #00f2fe, #ffffff, #38bdf8);
  box-shadow: 0 0 16px #00f2fe, 0 0 28px #38bdf8;
  width: 5px;
  height: 32px;
  border-radius: 2.5px;
}

/* Telegraphed 2x2 Missile Bombardment Target Cells */
.cell.is-targeted-strike {
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    rgba(239, 68, 68, 0.28),
    rgba(239, 68, 68, 0.28) 8px,
    rgba(153, 27, 27, 0.45) 8px,
    rgba(153, 27, 27, 0.45) 16px
  ) !important;
  border: 1.5px solid #ef4444 !important;
  box-shadow: inset 0 0 14px rgba(239, 68, 68, 0.85), 0 0 12px rgba(239, 68, 68, 0.55);
  animation: strike-zone-pulse 1.1s infinite ease-in-out;
  z-index: 2;
}

@keyframes strike-zone-pulse {
  0%, 100% {
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.6), 0 0 8px rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
  }
  50% {
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.95), 0 0 18px rgba(255, 69, 58, 0.8);
    border-color: #ff3b30;
  }
}

.cell.is-targeted-strike::before {
  content: '🎯';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  opacity: 0.85;
  pointer-events: none;
  animation: target-icon-zoom 0.9s infinite alternate ease-in-out;
}

@keyframes target-icon-zoom {
  0% { transform: translate(-50%, -50%) scale(0.85); }
  100% { transform: translate(-50%, -50%) scale(1.15); }
}

.cell.is-targeted-strike::after {
  content: 'LOCK';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 900;
  color: #ff453a;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #000;
  pointer-events: none;
  white-space: nowrap;
}

/* Bombardment Blast VFX */
.bombardment-blast {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffd60a 25%, #ff453a 65%, rgba(153, 27, 27, 0) 100%);
  box-shadow: 0 0 35px #ff453a, 0 0 60px #ffd60a;
  z-index: 9;
  pointer-events: none;
  animation: blast-expand 550ms cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes blast-expand {
  0% { transform: scale(0.2); opacity: 1; }
  60% { transform: scale(1.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Level 21 Dreadnought Modal Styling */
.dreadnought-modal-card {
  border: 2px solid rgba(239, 68, 68, 0.85) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 36px rgba(239, 68, 68, 0.45) !important;
  background: linear-gradient(180deg, #201215 0%, #0d090b 100%) !important;
}

.badge-capital {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #ff453a !important;
  border-color: #ef4444 !important;
  animation: threat-pulse 1.4s infinite ease-in-out;
}

.dreadnought-preview-container {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(15, 23, 42, 0.85) 70%) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.dreadnought-radar {
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.intel-dreadnought-img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.95));
  z-index: 2;
}

.dreadnought-strike-indicator {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px dashed #ff453a;
  background: rgba(239, 68, 68, 0.25);
  animation: ping-wave 1.2s infinite cubic-bezier(0, 0.2, 0.8, 1);
  z-index: 3;
}

.intel-danger-row {
  border-left-color: #ff453a !important;
  background: rgba(60, 16, 20, 0.65) !important;
}

.dreadnought-tactics-box {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(30, 15, 20, 0.75) !important;
}

.dreadnought-confirm-btn {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.5) !important;
}

.dreadnought-confirm-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.75) !important;
}

/* ── Modal Header Row & Close Button ── */
.modal-header-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

/* ── Angry Birds Style Level Select Modal ── */
.level-select-card {
  max-width: 740px !important;
  width: 96% !important;
  max-height: calc(100vh - 20px) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px !important;
  border: 2px solid rgba(0, 242, 254, 0.65) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 242, 254, 0.25) !important;
  margin: auto;
}

.level-select-card .modal-title {
  font-size: 17px;
  margin: 0 0 2px 0;
}

.level-select-card .modal-subtitle {
  font-size: 11px;
  margin: 0 0 8px 0;
}

.badge-select {
  background: rgba(0, 242, 254, 0.18) !important;
  color: #00f2fe !important;
  border-color: rgba(0, 242, 254, 0.5) !important;
}

.level-select-stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -6px 0 14px 0;
  width: 100%;
}

.select-stat-chip {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.select-rank-chip {
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
}

.level-grid-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 4px 0 14px 0;
}

/* Sector Headers in Level Select (10 Levels per Sector) */
.sector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sector-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sector-range-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
}

.sector-ocean {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-left: 5px solid #00f2fe;
  color: #38bdf8;
}

.sector-twilight {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 5px solid #f59e0b;
  color: #fb923c;
}

.sector-orbital {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-left: 5px solid #c084fc;
  color: #e879f9;
}

.sector-arctic {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 5px solid #38bdf8;
  color: #bae6fd;
}

.sector-ion {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-left: 5px solid #a78bfa;
  color: #ddd6fe;
}

.sector-canyon {
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-left: 5px solid #f59e0b;
  color: #fed7aa;
}

.sector-shipyard {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-left: 5px solid #34d399;
  color: #a7f3d0;
}

.sector-solar {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-left: 5px solid #ef4444;
  color: #fecaca;
}

.sector-abyss {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-left: 5px solid #818cf8;
  color: #c7d2fe;
}

.sector-sovereign {
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-left: 5px solid #ffd700;
  color: #fef08a;
}

/* ── Sector Navigation Bar (10 Theaters across 100 Levels) ── */
.sector-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 8px;
  background: rgba(10, 18, 32, 0.85);
  border-radius: 10px;
  border: 1px solid rgba(0, 242, 254, 0.22);
  width: 100%;
}

.sector-tab-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
  user-select: none;
}

.sector-tab-btn:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.45);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.sector-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.28), rgba(3, 105, 161, 0.45));
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.sector-tab-btn.is-cleared-sector {
  border-color: rgba(16, 185, 129, 0.45);
}

.sector-tab-btn.is-locked-sector {
  opacity: 0.4;
}

.sector-tab-icon {
  font-size: 11.5px;
}

.sector-tab-cleared-check {
  color: #34d399;
  font-size: 10px;
  font-weight: 900;
}

.sector-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.sector-nav-btn {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sector-nav-btn:hover:not(:disabled) {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
  transform: translateY(-1px);
}

.sector-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #64748b;
}

.sector-jump-current-btn {
  background: rgba(0, 242, 254, 0.12);
  border-color: #00f2fe;
  color: #e0f2fe;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

@media (max-width: 580px) {
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Level Tile (Angry Birds Aesthetic) */
.level-tile {
  position: relative;
  min-height: 76px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 3px;
  text-align: center;
  user-select: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-sizing: border-box;
}

.level-tile-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.level-tile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1px 0;
}

.tile-num {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
}

.tile-stars {
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 2px;
  line-height: 1;
}

.tile-status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tile-info-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  line-height: 1;
}

.tile-info-btn:hover {
  background: #00f2fe;
  color: #031b26;
  transform: scale(1.15);
}

/* 1. Cleared Tile */
.level-tile.is-cleared {
  background: linear-gradient(180deg, #133336 0%, #0a1f22 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.level-tile.is-cleared .tile-num {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.level-tile.is-cleared .tile-stars {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

.level-tile.is-cleared .tile-status {
  color: #34d399;
}

.level-tile.is-cleared:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #ffd700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 215, 0, 0.5);
  background: linear-gradient(180deg, #184144 0%, #0e292d 100%);
}

/* 2. Next Unlocked (Active Play) Tile */
.level-tile.is-next {
  background: linear-gradient(180deg, #0f3945 0%, #071f28 100%);
  border: 2px solid #00f2fe;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.65), inset 0 0 8px rgba(0, 242, 254, 0.25);
  cursor: pointer;
  animation: active-pulse-card 2s infinite ease-in-out;
}

@keyframes active-pulse-card {
  0%, 100% {
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.5), inset 0 0 6px rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.85), inset 0 0 12px rgba(0, 242, 254, 0.45);
    border-color: #ffffff;
  }
}

.level-tile.is-next .tile-num {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.level-tile.is-next .tile-stars {
  color: #64748b;
}

.level-tile.is-next .tile-status {
  color: #00f2fe;
  font-weight: 900;
}

.level-tile.is-next:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 0 28px #00f2fe, 0 8px 20px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, #144958 0%, #092732 100%);
}

/* 3. Locked Tile */
.level-tile.is-locked {
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  opacity: 0.55;
  cursor: not-allowed;
}

.level-tile.is-locked .tile-num {
  color: #64748b;
}

.level-tile.is-locked .tile-lock-icon {
  font-size: 16px;
  margin: 2px 0;
  opacity: 0.75;
}

.level-tile.is-locked .tile-status {
  color: #64748b;
}

.level-tile.is-locked:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.tile-shake {
  animation: lock-shake 350ms ease-in-out;
}

@keyframes lock-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Boss Level Accents */
.level-tile.is-bomber-level {
  border-color: rgba(245, 158, 11, 0.65) !important;
}

.level-tile.is-boss-level {
  border-color: rgba(239, 68, 68, 0.8) !important;
}

.level-tile.is-boss-level.is-cleared {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5), 0 0 20px rgba(255, 215, 0, 0.4) !important;
}

.level-tile.is-supreme-boss {
  border-color: rgba(236, 72, 153, 0.85) !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.45) !important;
}

.level-tile.is-supreme-boss.is-cleared {
  border-color: #ffd700 !important;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.7), 0 0 24px rgba(255, 215, 0, 0.55) !important;
}

/* Difficulty Badges on Tiles */
.diff-pill {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.diff-cadet {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.diff-rookie {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.diff-veteran {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.diff-elite {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.diff-master {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.diff-boss {
  background: rgba(239, 68, 68, 0.25);
  color: #ff453a;
  border: 1px solid rgba(239, 68, 68, 0.65);
}

.level-select-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(9, 27, 29, 0) 0%, rgba(9, 27, 29, 0.95) 30%, #091b1d 100%);
  padding: 6px 0 2px 0;
  z-index: 10;
}

.level-select-hint {
  font-size: 11px;
  color: #94a3b8;
}

.select-return-btn {
  max-width: 240px;
  margin-top: 4px;
}

/* ── Tactical Level Info Dossier Modal ── */
.level-info-card {
  max-width: 620px !important;
  width: 96% !important;
  max-height: calc(100vh - 20px) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px !important;
  border: 2px solid rgba(255, 215, 0, 0.65) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.88), 0 0 28px rgba(255, 215, 0, 0.25) !important;
  text-align: left !important;
  margin: auto;
}

.badge-info {
  background: rgba(255, 215, 0, 0.18) !important;
  color: #ffd700 !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
}

.level-info-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 16px 0;
}

.info-mission-header {
  background: rgba(10, 24, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-mission-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.info-mission-title {
  font-size: 16px;
  font-weight: 900;
  color: #00f2fe;
  letter-spacing: 0.5px;
}

.info-mission-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.info-env-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.info-env-chip {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  color: #cbd5e1;
  font-weight: 600;
}

.info-theater-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #cbd5e1;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.info-enemy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.enemy-intel-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.enemy-intel-card.is-gunship-card {
  border-left-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.enemy-intel-card.is-dreadnought-card {
  border-left-color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.6);
  background: rgba(36, 12, 16, 0.85);
}

.enemy-intel-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 3px;
}

.enemy-intel-avatar img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.enemy-intel-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.enemy-intel-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.enemy-intel-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.enemy-intel-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.enemy-stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.enemy-stat-chip.hp-chip {
  color: #ff7675;
  background: rgba(255, 75, 43, 0.15);
  border: 1px solid rgba(255, 75, 43, 0.3);
}

.enemy-stat-chip.range-chip {
  color: #38bdf8;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.enemy-stat-chip.speed-chip {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.enemy-intel-trait {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 3px;
}

.enemy-intel-trait strong {
  color: #ffd700;
}

.enemy-intel-trait.trait-danger strong {
  color: #ff453a;
}

.info-hazards-box {
  background: rgba(20, 15, 25, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hazard-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.info-tactics-box {
  background: rgba(6, 26, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
}

.info-tactics-list {
  margin: 4px 0 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.info-tactics-list li {
  margin-bottom: 4px;
}

.info-tactics-list strong {
  color: #f8fafc;
}

.level-info-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(16, 42, 43, 0) 0%, rgba(16, 42, 43, 0.95) 30%, #102a2b 100%);
  padding: 8px 0 2px 0;
  z-index: 10;
}

.info-return-btn {
  max-width: 240px;
}

/* ── Overlay Level Select Button ── */
.level-select-overlay-btn {
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 9px 20px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  user-select: none;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.15);
  border: 2px solid #00f2fe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.level-select-overlay-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.55);
  background: rgba(0, 242, 254, 0.3);
  color: #ffffff;
}

/* ── Ram-Jet Missile Targeting HUD & Animations ───────────────────────────── */
.game-panel.ramjet-mode-active {
  cursor: crosshair;
}

.plane-token.ramjet-targetable {
  cursor: crosshair !important;
  z-index: 40 !important;
}

.plane-token.ramjet-targetable .plane-image {
  filter: drop-shadow(0 0 10px #ff3b30) drop-shadow(0 0 18px rgba(255, 214, 10, 0.8));
  animation: ramjet-target-shake 0.8s infinite ease-in-out alternate;
}

@keyframes ramjet-target-shake {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.cell.ramjet-target-cell {
  background: rgba(255, 59, 48, 0.22) !important;
  box-shadow: inset 0 0 14px rgba(255, 59, 48, 0.7);
  cursor: crosshair;
}

.ramjet-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 45;
}

.ramjet-crosshair-svg {
  width: 46px;
  height: 46px;
  animation: ramjet-spin 3s linear infinite;
  filter: drop-shadow(0 0 6px #ff3b30) drop-shadow(0 0 10px #ffd60a);
}

@keyframes ramjet-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ramjet-target-label {
  font-size: 9px;
  font-weight: 800;
  color: #ffd60a;
  background: rgba(0, 0, 0, 0.85);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #ff3b30;
  margin-top: -4px;
  letter-spacing: 0.6px;
  text-shadow: 0 0 4px #000;
  animation: ramjet-label-blink 0.6s infinite alternate;
}

@keyframes ramjet-label-blink {
  0% { opacity: 0.75; }
  100% { opacity: 1; text-shadow: 0 0 8px #ff3b30; }
}

/* Animated In-flight Missile */
.ramjet-in-flight {
  position: absolute;
  width: 26px;
  height: 46px;
  pointer-events: none;
  z-index: 55;
  margin-left: -13px;
  margin-top: -23px;
}

.ramjet-projectile {
  width: 100%;
  height: 100%;
  position: relative;
}

.ramjet-missile-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px #ff3b30) drop-shadow(0 0 16px #ff9500);
}

.ramjet-thrust-trail {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 22px;
  background: linear-gradient(to bottom, #ffffff, #ffd60a, #ff453a, transparent);
  border-radius: 3px;
  filter: blur(1px);
  animation: ramjet-trail-flicker 0.08s infinite alternate;
}

@keyframes ramjet-trail-flicker {
  0% { height: 18px; opacity: 0.85; }
  100% { height: 26px; opacity: 1; }
}

/* Ram-Jet Active HUD Bar */
.powerup-active-bar.ramjet-active {
  display: flex !important;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.95), rgba(153, 27, 27, 0.95), rgba(220, 38, 38, 0.95)) !important;
  border: 1.5px solid #ff453a !important;
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.75) !important;
  animation: ramjet-bar-pulse 1s infinite alternate;
}

@keyframes ramjet-bar-pulse {
  0% { box-shadow: 0 0 10px rgba(255, 69, 58, 0.5); }
  100% { box-shadow: 0 0 24px rgba(255, 69, 58, 1); }
}

.ramjet-active-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.ramjet-hud-pulse {
  color: #ffd60a;
  font-weight: 900;
  text-shadow: 0 0 8px #ff3b30;
}

/* ══════════════════════════════════════════════════════════════════════════
   WEATHER PHENOMENA & MINEFIELDS (Levels 31–40 & 41–50)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Arctic Blizzard Overlay (Levels 31–40) ── */
.blizzard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(56, 189, 248, 0.08) 85%, rgba(14, 165, 233, 0.18) 100%);
}

.blizzard-particle {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  box-shadow: 0 0 6px rgba(224, 242, 254, 0.9);
  animation: blizzard-drift linear infinite;
}

@keyframes blizzard-drift {
  0% {
    transform: translate(0, -20px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    transform: translate(90px, 450px) rotate(360deg);
    opacity: 0;
  }
}

/* ── 2. Polar Jetstream Wind Corridor (Levels 31–40) ── */
.cell.jetstream-cell {
  position: relative;
  background: rgba(56, 189, 248, 0.09) !important;
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.25);
}

.cell.jetstream-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.18), transparent);
  background-size: 200% 100%;
  animation: jetstream-flow 2.2s linear infinite;
  z-index: 1;
}

.jetstream-wind-vector {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #7dd3fc;
  opacity: 0.75;
  pointer-events: none;
  letter-spacing: -2px;
  animation: wind-chevron-pulse 1.2s infinite alternate;
  z-index: 2;
}

@keyframes jetstream-flow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes wind-chevron-pulse {
  0% { opacity: 0.45; transform: translateX(-2px); }
  100% { opacity: 0.95; transform: translateX(2px); }
}

/* ── 3. Blizzard Storm Clouds (Levels 31–40) & Ion Clouds (41–50) ── */
.cell.cell-cloud {
  position: relative;
  background: rgba(14, 165, 233, 0.16) !important;
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.4) !important;
  border-radius: 6px;
  overflow: visible !important;
}

.cell.cell-cloud.cell-ion-cloud {
  background: rgba(168, 85, 247, 0.2) !important;
  box-shadow: inset 0 0 16px rgba(192, 132, 252, 0.5) !important;
}

.cloud-token {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cloud-float 3.4s ease-in-out infinite alternate;
}

@keyframes cloud-float {
  0% { transform: scale(0.96) translateY(-1px); opacity: 0.88; }
  100% { transform: scale(1.04) translateY(2px); opacity: 0.98; }
}

.cloud-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.cell-ion-cloud .cloud-svg {
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.75));
}

/* Concealment effect for planes inside a cloud */
.plane-token.in-cloud {
  opacity: 0.85 !important;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 6px #ffffff) !important;
}

.plane-token[data-plane-id="e1"].in-cloud::after {
  content: '❄️ HIDDEN';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  color: #e0f2fe;
  background: rgba(2, 132, 199, 0.85);
  padding: 1px 4px;
  border-radius: 3px;
  border: 0.8px solid #7dd3fc;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
}

.plane-token:not([data-plane-id="e1"]).in-cloud::after {
  content: '❄️ CONCEALED';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  color: #fef3c7;
  background: rgba(180, 83, 9, 0.88);
  padding: 1px 4px;
  border-radius: 3px;
  border: 0.8px solid #fcd34d;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
}

.plane-token.in-cloud.in-ion-cloud {
  filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.95)) drop-shadow(0 0 6px #ffffff) !important;
}

.plane-token[data-plane-id="e1"].in-cloud.in-ion-cloud::after {
  content: '⚡ HIDDEN';
  background: rgba(126, 34, 206, 0.88);
  border: 0.8px solid #c084fc;
  color: #f3e8ff;
}

.plane-token:not([data-plane-id="e1"]).in-cloud.in-ion-cloud::after {
  content: '⚡ CONCEALED';
  background: rgba(147, 51, 234, 0.88);
  border: 0.8px solid #d8b4fe;
  color: #faf5ff;
}

/* ── 4. Aerial / Floating Proximity Mines (Levels 41–50) ── */
.cell.cell-mine {
  position: relative;
  cursor: crosshair !important;
  box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.35);
  transition: background 0.18s ease, transform 0.18s ease;
}

.cell.cell-mine:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  box-shadow: inset 0 0 18px rgba(255, 69, 58, 0.8), 0 0 12px rgba(255, 69, 58, 0.6) !important;
}

.mine-token {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 6;
  animation: mine-bob 2.8s ease-in-out infinite alternate;
}

@keyframes mine-bob {
  0% { transform: translateY(-2px) rotate(-3deg); }
  100% { transform: translateY(2px) rotate(3deg); }
}

.mine-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}

.mine-beacon-dot {
  animation: mine-beacon-blink 0.85s infinite alternate;
}

@keyframes mine-beacon-blink {
  0% { opacity: 0.35; fill: #7f1d1d; }
  100% { opacity: 1; fill: #ff3b30; filter: drop-shadow(0 0 5px #ff3b30); }
}

.mine-label-tag {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7.5px;
  font-weight: 900;
  color: #fca5a5;
  background: rgba(15, 23, 42, 0.85);
  border: 0.5px solid #ef4444;
  padding: 0 3px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  pointer-events: none;
  white-space: nowrap;
}

/* ── 5. Mine Blast & 3x3 Shockwave Animations ── */
.mine-blast-shockwave {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  border-radius: 50%;
  border: 3px solid #ff453a;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.7) 0%, rgba(249, 115, 22, 0.55) 45%, rgba(220, 38, 38, 0.35) 75%, transparent 100%);
  box-shadow: 0 0 25px rgba(255, 69, 58, 0.9), inset 0 0 20px #f59e0b;
  animation: shockwave-expand 0.52s ease-out forwards;
}

@keyframes shockwave-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  60% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
  }
}

.mine-blast-cell-flash {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #ffffff 10%, #fbbf24 45%, #ef4444 80%, transparent 100%);
  border-radius: 4px;
  pointer-events: none;
  z-index: 24;
  animation: cell-flash 0.45s ease-out forwards;
}

@keyframes cell-flash {
  0% { opacity: 1; transform: scale(0.6); }
  40% { opacity: 0.9; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* ── 6. Ion Storm Lightning Atmospheric Flash ── */
.ion-storm-active {
  position: relative;
}

.lightning-flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(234, 179, 8, 0.28);
  pointer-events: none;
  z-index: 28;
  mix-blend-mode: screen;
  animation: lightning-strike 0.38s ease-out forwards;
}

@keyframes lightning-strike {
  0% { opacity: 0; }
  15% { opacity: 0.95; background: rgba(255, 255, 255, 0.42); }
  25% { opacity: 0.4; }
  40% { opacity: 0.85; background: rgba(192, 132, 252, 0.38); }
  100% { opacity: 0; }
}

/* ── 7. Arctic & Ion Intel Briefing Modal Cards ── */
.badge-arctic {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #021a2e !important;
  border-color: #7dd3fc !important;
}

.badge-ion {
  background: linear-gradient(135deg, #7e22ce, #c084fc) !important;
  color: #1e0538 !important;
  border-color: #e9d5ff !important;
}

.arctic-modal-card {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.45), 0 20px 50px rgba(0, 0, 0, 0.9) !important;
}

.ion-modal-card {
  border-color: #c084fc !important;
  box-shadow: 0 0 35px rgba(192, 132, 252, 0.45), 0 20px 50px rgba(0, 0, 0, 0.9) !important;
}

.arctic-confirm-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9, #38bdf8) !important;
  color: #021a2e !important;
  font-weight: 900 !important;
  border: 1.5px solid #7dd3fc !important;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45) !important;
}

.arctic-confirm-btn:hover {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.75) !important;
  transform: translateY(-2px);
}

.ion-confirm-btn {
  background: linear-gradient(135deg, #6b21a8, #9333ea, #c084fc) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border: 1.5px solid #e9d5ff !important;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45) !important;
}

.ion-confirm-btn:hover {
  box-shadow: 0 6px 24px rgba(192, 132, 252, 0.75) !important;
  transform: translateY(-2px);
}

.arctic-preview-container {
  background: radial-gradient(circle, #082f49 0%, #021422 80%) !important;
  border-color: #38bdf8 !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ion-preview-container {
  background: radial-gradient(circle, #2e1065 0%, #0f041e 80%) !important;
  border-color: #c084fc !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intel-preview-svg {
  width: 90px;
  height: 72px;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.arctic-wind-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(2, 132, 199, 0.85);
  border: 1px solid #7dd3fc;
  color: #e0f2fe;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 3;
}

.ion-mine-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(126, 34, 206, 0.85);
  border: 1px solid #e9d5ff;
  color: #fef08a;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 3;
}

.arctic-tactics-box {
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: rgba(8, 47, 73, 0.45) !important;
}

.ion-tactics-box {
  border-color: rgba(192, 132, 252, 0.4) !important;
  background: rgba(46, 16, 101, 0.45) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TACTICAL AIRCRAFT HANGAR & AIRFRAME SELECTOR
   ══════════════════════════════════════════════════════════════════════════ */
.hangar-btn {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1.5px solid #38bdf8 !important;
  color: #38bdf8 !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.hangar-btn:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-1px);
}

/* Registration Form Airframe Selector Row */
.reg-aircraft-selector {
  margin: 10px 0 14px 0;
  text-align: left;
}

.reg-aircraft-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.reg-aircraft-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reg-aircraft-btn:hover {
  border-color: #00f2fe;
  background: rgba(8, 47, 73, 0.6);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.reg-aircraft-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 242, 254, 0.5));
}

.reg-aircraft-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reg-aircraft-name {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 800;
}

.reg-aircraft-sub {
  font-size: 10.5px;
  color: #94a3b8;
}

.reg-aircraft-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

/* Aircraft Modal Card */
.aircraft-modal-card {
  max-width: 820px !important;
  width: 96% !important;
  max-height: calc(100vh - 20px) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px !important;
  background: linear-gradient(180deg, #09111e 0%, #030712 100%) !important;
  border: 2px solid rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 36px rgba(56, 189, 248, 0.25) !important;
  margin: auto;
}

.aircraft-modal-card .modal-title {
  font-size: 17px;
  margin: 0 0 2px 0;
}

.aircraft-modal-card .modal-subtitle {
  font-size: 11px;
  margin: 0 0 6px 0;
}

.badge-hangar {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

/* Grid of Aircraft Cards */
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
  margin: 16px 0 20px 0;
}

.aircraft-card {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s cubic-bezier(0.2, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
}

.aircraft-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  background: rgba(15, 23, 42, 0.98);
}

.aircraft-card.is-active {
  border-color: #00f2fe !important;
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.45), inset 0 0 14px rgba(0, 242, 254, 0.15) !important;
}

.aircraft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.aircraft-origin-badge {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.7);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.aircraft-equipped-tag {
  background: #00f2fe;
  color: #020617;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  animation: pulse-equipped 2s infinite alternate;
}

@keyframes pulse-equipped {
  0% { box-shadow: 0 0 4px rgba(0, 242, 254, 0.5); }
  100% { box-shadow: 0 0 12px rgba(0, 242, 254, 0.95); }
}

.aircraft-preview-box {
  position: relative;
  width: 100%;
  height: 84px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.14) 0%, rgba(15, 23, 42, 0.8) 75%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.aircraft-preview-radar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 20%, rgba(56, 189, 248, 0.08) 21%, transparent 22%),
    radial-gradient(circle, transparent 45%, rgba(56, 189, 248, 0.08) 46%, transparent 47%),
    radial-gradient(circle, transparent 70%, rgba(56, 189, 248, 0.08) 71%, transparent 72%);
  opacity: 0.6;
}

.aircraft-preview-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s ease, filter 0.25s ease;
  z-index: 2;
}

.aircraft-card:hover .aircraft-preview-img {
  transform: scale(1.14) translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(56, 189, 248, 0.6));
}

.aircraft-card-body {
  flex: 1;
  margin-bottom: 10px;
}

.aircraft-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.aircraft-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}

.aircraft-callsign-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.aircraft-role-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 6px;
}

.aircraft-specs-line {
  margin: 0 0 6px 0;
  font-size: 10.5px;
  font-weight: 600;
  color: #7dd3fc;
  line-height: 1.35;
}

.aircraft-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
}

.aircraft-select-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.aircraft-card:hover .aircraft-select-btn {
  background: rgba(56, 189, 248, 0.25);
  border-color: #00f2fe;
  color: #00f2fe;
}

.aircraft-select-btn.is-selected {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%) !important;
  border-color: #00f2fe !important;
  color: #020617 !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.aircraft-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(3, 7, 18, 0.95) 30%, #030712 100%);
  z-index: 10;
}

.hangar-tip {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.hangar-return-btn {
  padding: 8px 20px !important;
  font-size: 12px !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   LEGAL, COPYRIGHT, SPONSORSHIP & DISCLAIMER SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */

/* Operations Strip Legal Button */
.btn-legal {
  background: rgba(148, 163, 184, 0.12) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.6) !important;
  color: #cbd5e1 !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-legal:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-1px);
}

/* Bottom-Center Persistent Footer Pill */
.game-footer {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.footer-legal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(4, 12, 18, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.footer-legal-btn:hover {
  background: rgba(12, 26, 38, 0.95);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}

.footer-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-info-svg {
  display: block;
}

.footer-legal-btn:hover .footer-info-icon {
  color: #00f2fe;
}

.footer-copy-text {
  color: #cbd5e1;
  font-weight: 700;
}

.footer-dot {
  color: rgba(56, 189, 248, 0.5);
  font-size: 8px;
}

.footer-link-text {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-btn:hover .footer-copy-text {
  color: #ffffff;
}

.footer-legal-btn:hover .footer-link-text {
  color: #67e8f9;
}

/* Legal & Disclaimer Modal Card */
.legal-modal-card {
  max-width: 760px !important;
  width: 96% !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px !important;
  border: 2px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 32px rgba(56, 189, 248, 0.25) !important;
  background: linear-gradient(180deg, #091a24 0%, #050e14 100%) !important;
  text-align: left !important;
  align-items: stretch !important;
  margin: auto;
}

.badge-legal {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

.legal-modal-card .modal-title {
  font-size: 17px;
  margin: 0 0 2px 0;
  text-align: left;
}

.legal-modal-card .modal-subtitle {
  font-size: 11px;
  margin: 0 0 10px 0;
  color: #94a3b8;
  text-align: left;
}

.legal-modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 14px 0;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-sec-icon {
  font-size: 14px;
  line-height: 1;
}

.legal-sec-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #7dd3fc;
  margin: 0;
  text-transform: uppercase;
}

.legal-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
}

.legal-copy-box {
  border-left: 3.5px solid #38bdf8;
}

.legal-sponsorship-box {
  border-left: 3.5px solid #34d399;
}

.legal-disclaimer-box {
  border-left: 3.5px solid #f87171;
  background: rgba(26, 16, 20, 0.75);
  border-color: rgba(248, 113, 113, 0.28);
}

.legal-p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 6px 0;
}

.legal-p:last-child {
  margin-bottom: 0;
}

.highlight-copy {
  font-size: 12px;
  color: #ffffff;
}

.legal-detail {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.legal-contact-card {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.legal-contact-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #00f2fe;
  text-transform: uppercase;
}

.legal-email-box {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.legal-email-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.45));
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.legal-bot-shield-notice {
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.legal-opportunities-list,
.disclaimer-bullet-list {
  margin: 6px 0 0 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
}

.legal-opportunities-list li,
.disclaimer-bullet-list li {
  margin-bottom: 5px;
}

.disclaimer-callout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fca5a5;
  margin-bottom: 10px;
  text-align: center;
}

.disclaimer-subheading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f87171;
  margin: 10px 0 4px 0;
  text-transform: uppercase;
}

.legal-disclaimer-text {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.55;
}

.legal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 4px 4px 4px;
  margin-top: 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  position: sticky;
  bottom: 0;
  background: #061219;
  z-index: 10;
}

.legal-modal-footer-hint {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.legal-return-btn {
  padding: 8px 22px !important;
  font-size: 12px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
}

.legal-return-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
}

/* Link in Intel Dossier Modal */
.intel-legal-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.intel-legal-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 2px 6px;
  transition: color 0.15s ease;
}

.intel-legal-btn:hover {
  color: #00f2fe;
}

@media (max-width: 640px) {
  .game-footer {
    bottom: 8px;
    z-index: 1100;
  }
  .footer-legal-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    background: rgba(4, 12, 18, 0.88);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 10px rgba(56, 189, 248, 0.3);
  }
  .footer-legal-btn:hover,
  .footer-legal-btn:active {
    border-color: #00f2fe;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 242, 254, 0.6);
  }
  .footer-legal-btn .footer-copy-text,
  .footer-legal-btn .footer-dot,
  .footer-legal-btn .footer-link-text {
    display: none !important;
  }
  .footer-legal-btn .footer-info-icon {
    display: inline-flex;
    margin: 0;
  }
  .footer-legal-btn .footer-info-svg {
    width: 17px;
    height: 17px;
  }
  .legal-modal-card {
    padding: 10px 12px !important;
  }
}
