.command-screen {
  min-height: 100svh;
  height: 100svh;
  position: relative;
  z-index: 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 179, 100, 0.14), rgba(214, 179, 100, 0) 28%),
    radial-gradient(circle at 82% 82%, rgba(120, 85, 31, 0.16), rgba(120, 85, 31, 0) 24%),
    linear-gradient(180deg, rgba(14, 14, 15, 0.98), rgba(8, 8, 9, 1));
}

.command-signal-light {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 124px;
  height: 420px;
  transform: translateY(-50%);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.command-signal-light-left {
  left: max(12px, calc(50% - 720px));
}

.command-signal-light-right {
  right: max(12px, calc(50% - 720px));
}

.command-signal-light-housing {
  position: relative;
  width: 76px;
  height: 310px;
  border: 1px solid rgba(182, 145, 80, 0.34);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 236, 205, 0.08), rgba(255, 236, 205, 0) 18%),
    linear-gradient(180deg, rgba(50, 36, 22, 0.78), rgba(18, 14, 10, 0.92)),
    url("../../assets/textures/optimized/metalplate.webp");
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% 100%,
    cover;
  background-position:
    center,
    center,
    center;
  background-blend-mode: screen, multiply, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 186, 0.08),
    inset 0 0 0 3px rgba(18, 13, 10, 0.34),
    inset 0 0 18px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(73, 53, 28, 0.24),
    0 0 14px rgba(255, 58, 58, 0.08),
    0 0 38px rgba(0, 0, 0, 0.22);
}

.command-signal-light-left .command-signal-light-housing {
  background-size:
    100% 100%,
    100% 100%,
    138% 128%;
  background-position:
    center,
    center,
    32% 42%;
}

.command-signal-light-right .command-signal-light-housing {
  background-size:
    100% 100%,
    100% 100%,
    162% 142%;
  background-position:
    center,
    center,
    71% 61%;
}

.command-signal-light-housing::before,
.command-signal-light-housing::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 56px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 233, 195, 0.14), rgba(255, 233, 195, 0) 30%),
    linear-gradient(180deg, rgba(66, 42, 22, 0.92), rgba(22, 14, 8, 0.96)),
    url("../../assets/textures/optimized/metalplate.webp");
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% 100%,
    185% 320%;
  background-position:
    center,
    center,
    50% 22%;
  background-blend-mode: screen, multiply, normal;
  border: 1px solid rgba(180, 145, 84, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 234, 204, 0.12),
    inset 0 -3px 6px rgba(0, 0, 0, 0.22);
}

.command-signal-light-left .command-signal-light-housing::before,
.command-signal-light-left .command-signal-light-housing::after {
  background-size:
    100% 100%,
    100% 100%,
    170% 280%;
  background-position:
    center,
    center,
    22% 28%;
}

.command-signal-light-right .command-signal-light-housing::before,
.command-signal-light-right .command-signal-light-housing::after {
  background-size:
    100% 100%,
    100% 100%,
    230% 360%;
  background-position:
    center,
    center,
    76% 62%;
}

.command-signal-light-housing::before {
  top: 20px;
}

.command-signal-light-housing::after {
  bottom: 20px;
}

.command-signal-light-beacon {
  --command-signal-blink-duration: 1.42s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 193, 0.48);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 250, 242, 0.98) 0 8%, rgba(255, 250, 242, 0) 18%),
    radial-gradient(circle at 50% 24%, rgba(255, 214, 214, 0.78) 0 12%, rgba(255, 214, 214, 0) 28%),
    radial-gradient(circle at 50% 50%, rgba(255, 92, 92, 0) 46%, rgba(72, 12, 12, 0.62) 72%, rgba(18, 10, 7, 0.94) 100%),
    radial-gradient(circle at 36% 34%, rgba(255, 208, 196, 0.98) 0 10%, rgba(255, 126, 126, 0.96) 24%, rgba(201, 24, 24, 0.98) 52%, rgba(92, 10, 10, 1) 74%, rgba(34, 8, 8, 1) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 245, 236, 0.52),
    inset 0 -5px 8px rgba(25, 4, 4, 0.52),
    0 0 0 2px rgba(29, 20, 13, 0.96),
    0 0 0 4px rgba(122, 86, 48, 0.86),
    0 0 0 5px rgba(255, 232, 187, 0.12),
    0 0 16px rgba(255, 77, 77, 0.62),
    0 0 44px rgba(255, 45, 45, 0.34),
    0 0 78px rgba(255, 32, 32, 0.16);
}

.command-signal-light-beacon::before,
.command-signal-light-beacon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
}

.command-signal-light-beacon::before {
  width: 110px;
  height: 110px;
  background:
    radial-gradient(circle, rgba(255, 58, 58, 0.48) 0, rgba(255, 58, 58, 0.24) 22%, rgba(255, 58, 58, 0.08) 38%, rgba(255, 58, 58, 0) 68%);
  filter: blur(5px);
}

.command-signal-light-beacon::after {
  width: 200px;
  height: 360px;
  background:
    radial-gradient(circle at center, rgba(255, 46, 46, 0.32) 0, rgba(255, 46, 46, 0.14) 18%, rgba(255, 46, 46, 0) 58%);
  filter: blur(20px);
}

.command-signal-light-beacon-alert {
  will-change: opacity, filter;
  animation: none;
}

body.command-active .command-signal-light-beacon-alert {
  animation: commandSignalBeaconBlink var(--command-signal-blink-duration) steps(1, end) infinite;
}

.command-signal-light-beacon-alert::before {
  will-change: opacity;
  animation: none;
}

body.command-active .command-signal-light-beacon-alert::before {
  animation: commandSignalHaloPulse var(--command-signal-blink-duration) steps(1, end) infinite;
}

.command-signal-light-beacon-alert::after {
  will-change: opacity;
  animation: none;
}

body.command-active .command-signal-light-beacon-alert::after {
  animation: commandSignalBeamPulse var(--command-signal-blink-duration) steps(1, end) infinite;
}

.command-signal-light-beacon-steady {
  animation: none;
  filter: brightness(1.08) saturate(1.04);
  transform: translate(-50%, -50%) scale(1.015);
}

.command-signal-light-beacon-steady::before,
.command-signal-light-beacon-steady::after {
  animation: none;
}

.command-signal-light-beacon-alert.command-signal-light-beacon-steady {
  animation: none;
}

.command-signal-light-beacon-safe {
  border-color: rgba(194, 255, 208, 0.48);
  background:
    radial-gradient(circle at 34% 30%, rgba(243, 255, 247, 0.98) 0 8%, rgba(243, 255, 247, 0) 18%),
    radial-gradient(circle at 50% 24%, rgba(214, 255, 224, 0.78) 0 12%, rgba(214, 255, 224, 0) 28%),
    radial-gradient(circle at 50% 50%, rgba(94, 255, 148, 0) 46%, rgba(10, 52, 18, 0.58) 72%, rgba(7, 18, 10, 0.94) 100%),
    radial-gradient(circle at 36% 34%, rgba(222, 255, 229, 0.98) 0 10%, rgba(134, 255, 162, 0.94) 24%, rgba(31, 204, 89, 0.98) 52%, rgba(9, 92, 34, 1) 74%, rgba(6, 34, 14, 1) 100%);
  box-shadow:
    inset 0 1px 1px rgba(244, 255, 247, 0.54),
    inset 0 -5px 8px rgba(5, 24, 10, 0.44),
    0 0 0 2px rgba(18, 29, 21, 0.96),
    0 0 0 4px rgba(64, 122, 74, 0.88),
    0 0 0 5px rgba(226, 255, 232, 0.14),
    0 0 18px rgba(96, 255, 142, 0.56),
    0 0 48px rgba(42, 255, 113, 0.3),
    0 0 82px rgba(24, 255, 105, 0.14);
}

.command-signal-light-beacon-safe::before {
  background:
    radial-gradient(circle, rgba(88, 255, 136, 0.44) 0, rgba(88, 255, 136, 0.22) 24%, rgba(88, 255, 136, 0.08) 40%, rgba(88, 255, 136, 0) 68%);
  opacity: 0.88;
  transform: translate(-50%, -50%) scale(1.04);
}

.command-signal-light-beacon-safe::after {
  background:
    radial-gradient(circle at center, rgba(70, 255, 122, 0.26) 0, rgba(70, 255, 122, 0.12) 18%, rgba(70, 255, 122, 0) 58%);
  opacity: 0.52;
  transform: translate(-50%, -50%) scaleY(1.03);
}

.command-signal-light-beacon-off {
  animation: none;
  filter: brightness(0.56) saturate(0.72);
  transform: translate(-50%, -50%) scale(0.97);
  box-shadow:
    inset 0 1px 1px rgba(255, 245, 236, 0.18),
    inset 0 -5px 8px rgba(0, 0, 0, 0.58),
    0 0 0 2px rgba(23, 18, 13, 0.96),
    0 0 0 4px rgba(82, 61, 38, 0.68),
    0 0 0 5px rgba(255, 232, 187, 0.04),
    0 0 12px rgba(0, 0, 0, 0.18);
}

.command-signal-light-beacon-off::before,
.command-signal-light-beacon-off::after {
  animation: none;
  opacity: 0;
}

.command-screen-signal-lite .command-signal-light-housing {
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 186, 0.06),
    inset 0 0 0 2px rgba(18, 13, 10, 0.28),
    inset 0 0 10px rgba(0, 0, 0, 0.18),
    0 0 10px rgba(0, 0, 0, 0.16);
}

.command-screen-signal-lite .command-signal-light-beacon {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 246, 239, 0.94) 0 10%, rgba(255, 246, 239, 0) 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 92, 92, 0) 48%, rgba(56, 12, 12, 0.58) 74%, rgba(18, 10, 7, 0.94) 100%),
    radial-gradient(circle at 38% 36%, rgba(255, 196, 196, 0.96) 0 14%, rgba(216, 28, 28, 0.98) 48%, rgba(60, 10, 10, 1) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 245, 236, 0.36),
    inset 0 -4px 6px rgba(18, 4, 4, 0.44),
    0 0 0 2px rgba(29, 20, 13, 0.94),
    0 0 0 4px rgba(108, 76, 42, 0.72),
    0 0 12px rgba(255, 64, 64, 0.26);
}

.command-screen-signal-lite .command-signal-light-beacon::before {
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.34) 0, rgba(255, 60, 60, 0.14) 34%, rgba(255, 60, 60, 0) 68%);
  filter: none;
}

.command-screen-signal-lite .command-signal-light-beacon::after {
  width: 116px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(255, 50, 50, 0.18) 0, rgba(255, 50, 50, 0.08) 28%, rgba(255, 50, 50, 0) 62%);
  filter: none;
}

.command-screen-signal-lite .command-signal-light-beacon-safe {
  background:
    radial-gradient(circle at 34% 30%, rgba(243, 255, 247, 0.96) 0 10%, rgba(243, 255, 247, 0) 20%),
    radial-gradient(circle at 50% 50%, rgba(94, 255, 148, 0) 48%, rgba(10, 44, 18, 0.56) 74%, rgba(7, 18, 10, 0.94) 100%),
    radial-gradient(circle at 38% 36%, rgba(216, 255, 224, 0.96) 0 14%, rgba(31, 204, 89, 0.98) 48%, rgba(8, 58, 24, 1) 100%);
  box-shadow:
    inset 0 1px 1px rgba(244, 255, 247, 0.36),
    inset 0 -4px 6px rgba(5, 18, 8, 0.34),
    0 0 0 2px rgba(18, 29, 21, 0.94),
    0 0 0 4px rgba(58, 112, 66, 0.72),
    0 0 12px rgba(72, 255, 128, 0.24);
}

.command-screen-signal-lite .command-signal-light-beacon-safe::before {
  background: radial-gradient(circle, rgba(88, 255, 136, 0.28) 0, rgba(88, 255, 136, 0.1) 34%, rgba(88, 255, 136, 0) 68%);
}

.command-screen-signal-lite .command-signal-light-beacon-safe::after {
  background: radial-gradient(circle at center, rgba(70, 255, 122, 0.14) 0, rgba(70, 255, 122, 0.06) 28%, rgba(70, 255, 122, 0) 62%);
}

.command-screen-signal-lite .command-signal-light-beacon-off {
  box-shadow:
    inset 0 1px 1px rgba(255, 245, 236, 0.12),
    inset 0 -4px 6px rgba(0, 0, 0, 0.56),
    0 0 0 2px rgba(23, 18, 13, 0.94),
    0 0 0 4px rgba(74, 55, 34, 0.58),
    0 0 8px rgba(0, 0, 0, 0.14);
}

/* Command shell */
.command-shell {
  position: relative;
  width: min(1220px, 100%);
  height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid rgba(203, 168, 92, 0.46);
  background:
    radial-gradient(circle at top, rgba(220, 185, 107, 0.16), rgba(220, 185, 107, 0) 34%),
    linear-gradient(180deg, rgba(14, 14, 15, 0.62), rgba(8, 8, 9, 0.72)),
    url("../../assets/textures/optimized/metalplate.webp");
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% 100%,
    cover;
  background-position:
    center,
    center,
    center;
  background-blend-mode: screen, multiply, normal;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 236, 190, 0.08),
    inset 0 0 0 1px rgba(89, 67, 29, 0.22);
}

.command-shell.command-shell-complete {
  animation: commandShellCompleteFlash 1.4s ease-out;
}

.command-shell::before,
.command-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.command-shell::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(205, 167, 86, 0.12), rgba(205, 167, 86, 0) 24%),
    radial-gradient(circle at 82% 78%, rgba(137, 104, 40, 0.1), rgba(137, 104, 40, 0) 22%),
    linear-gradient(180deg, rgba(25, 21, 15, 0.44), rgba(8, 8, 9, 0));
}

.command-shell::after {
  inset: 10px;
  border: 1px solid rgba(191, 156, 82, 0.18);
}

.command-topbar {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(223, 195, 133, 0.84);
}

.command-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-hq-return-button {
  min-width: 58px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(214, 179, 101, 0.42);
  background:
    linear-gradient(180deg, rgba(55, 46, 31, 0.82), rgba(20, 18, 15, 0.92));
  color: #f5e5bf;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 188, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.18);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.command-hq-return-button:hover {
  border-color: rgba(240, 206, 132, 0.7);
  background:
    linear-gradient(180deg, rgba(83, 65, 32, 0.9), rgba(37, 29, 16, 0.96));
  color: #fff0cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 188, 0.14),
    0 12px 22px rgba(0, 0, 0, 0.22);
}

.command-hq-return-button:focus-visible {
  outline: 2px solid rgba(255, 217, 148, 0.85);
  outline-offset: 3px;
}

.command-kicker,
.command-status,
.command-card-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.74rem;
}

.command-kicker {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-height: 26px;
  padding: 3px 12px 4px 10px;
  border: 1px solid rgba(74, 86, 96, 0.9);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(210, 232, 244, 0.03), rgba(210, 232, 244, 0) 16%),
    repeating-linear-gradient(180deg, rgba(88, 126, 154, 0.06) 0 1px, rgba(0, 0, 0, 0) 1px 2px),
    linear-gradient(180deg, rgba(9, 14, 18, 0.98), rgba(2, 5, 8, 1));
  color: #9ad9f0;
  font-family: "VT323", "IBM Plex Mono", "Courier New", monospace;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.1em;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(213, 221, 228, 0.04),
    inset 0 0 0 1px rgba(6, 10, 14, 0.98),
    inset 0 -7px 10px rgba(0, 0, 0, 0.24),
    0 1px 2px rgba(0, 0, 0, 0.26);
}

.command-kicker::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(103, 121, 134, 0.08);
  pointer-events: none;
}

.command-kicker::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0.015));
  pointer-events: none;
}

.command-kicker-glow,
.command-kicker-label {
  grid-area: 1 / 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.command-kicker-glow {
  color: rgba(111, 219, 255, 0.18);
  filter: blur(1.15px);
  transform: translateY(0.1px);
  pointer-events: none;
}

.command-kicker-label {
  position: relative;
  z-index: 1;
  color: #a7ecff;
  text-shadow:
    0 0 2px rgba(94, 214, 255, 0.12);
}

.command-input-panel {
  position: absolute;
  top: 84px;
  left: 24px;
  z-index: 3;
  width: 216px;
  padding: 14px;
  border: 1px solid rgba(179, 145, 79, 0.34);
  background: linear-gradient(180deg, rgba(24, 21, 17, 0.92), rgba(14, 13, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 190, 0.05),
    0 0 28px rgba(0, 0, 0, 0.24);
}

.command-mission-banner {
  position: absolute;
  top: 38px;
  left: 264px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.command-mission-title {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f1ddb0;
  text-shadow:
    0 0 14px rgba(208, 171, 95, 0.12),
    0 0 28px rgba(0, 0, 0, 0.26);
}

.command-input-kicker,
.command-target-label {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  text-transform: uppercase;
}

.command-input-kicker {
  margin-bottom: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(223, 195, 133, 0.82);
}

.command-target-form {
  display: grid;
  gap: 10px;
}

.command-target-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(241, 224, 192, 0.82);
}

.command-target-form input,
.command-target-form button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(208, 172, 95, 0.42);
  background: rgba(8, 8, 9, 0.92);
  color: #fff0cf;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.command-target-form input {
  padding: 0 12px;
}

.command-target-form button {
  background:
    linear-gradient(180deg, rgba(112, 80, 26, 0.9), rgba(63, 45, 17, 0.94));
}

.command-target-form button:hover {
  border-color: rgba(238, 206, 136, 0.82);
  background:
    linear-gradient(180deg, rgba(140, 103, 37, 0.95), rgba(83, 59, 21, 0.98));
}

.command-target-form input:disabled,
.command-target-form button:disabled {
  cursor: not-allowed;
}

.command-target-form input:disabled {
  border-color: rgba(146, 132, 103, 0.3);
  background: rgba(20, 18, 16, 0.92);
  color: rgba(255, 240, 207, 0.48);
}

.command-target-form button:disabled,
.command-target-form button:disabled:hover {
  border-color: rgba(146, 132, 103, 0.28);
  background: linear-gradient(180deg, rgba(58, 49, 35, 0.88), rgba(36, 30, 22, 0.92));
  color: rgba(255, 240, 207, 0.42);
  box-shadow: none;
}

.command-target-feedback {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 105, 105, 0.72);
  background: linear-gradient(180deg, rgba(72, 10, 10, 0.94), rgba(42, 7, 7, 0.96));
  color: #ffd4d4;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 196, 196, 0.06),
    0 0 22px rgba(255, 77, 77, 0.18);
}

.command-target-feedback.active {
  animation: commandTargetAlert 420ms ease;
}

.command-target-counter {
  margin: 12px 0 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 195, 133, 0.88);
}

.command-attempt-counter {
  margin: 12px 0 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(225, 198, 146, 0.82);
}

.command-shot-log {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(191, 156, 82, 0.16);
}

.command-shot-group {
  display: grid;
  gap: 4px;
}

.command-shot-heading,
.command-shot-values {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  text-transform: uppercase;
}

.command-shot-heading {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(223, 195, 133, 0.78);
}

.command-shot-values {
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(245, 227, 188, 0.88);
  word-break: break-word;
}

.command-target-input-error {
  border-color: rgba(255, 112, 112, 0.82) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 112, 112, 0.16),
    0 0 18px rgba(255, 84, 84, 0.2);
}

.command-map-wrap {
  --command-stage-top: 8%;
  --command-stage-right: 7%;
  --command-stage-bottom: 8%;
  --command-stage-left: 7%;
  --command-map-scale: 1.12;
  --command-coordinate-x: 16px;
  --command-coordinate-y: 16px;
  --command-board-gap: 3px;
  --command-grid-columns: 11;
  --command-grid-rows: 6;
  position: absolute;
  inset: 68px 24px 24px 264px;
  overflow: hidden;
  border: 1px solid rgba(179, 145, 79, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(19, 255, 144, 0.12), rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, rgba(2, 20, 12, 0.98), rgba(1, 10, 7, 1));
  box-shadow:
    inset 0 1px 0 rgba(202, 255, 226, 0.06),
    inset 0 0 0 1px rgba(255, 221, 156, 0.04);
  cursor: none;
}

.command-complete-overlay {
  position: absolute;
  inset: 68px 24px 24px 264px;
  z-index: 7;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 192, 83, 0.16), rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.68) 100%);
  backdrop-filter: blur(3px);
  animation: commandCompleteOverlayReveal 640ms ease-out both;
}

.command-complete-card {
  width: min(560px, calc(100% - 48px));
  padding: 26px 28px;
  border: 1px solid rgba(242, 201, 121, 0.72);
  background:
    linear-gradient(180deg, rgba(40, 24, 9, 0.94), rgba(20, 14, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 206, 0.08),
    0 0 36px rgba(255, 164, 58, 0.18),
    0 0 88px rgba(255, 108, 28, 0.14);
  text-align: center;
  animation: commandCompleteCardReveal 880ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.command-complete-kicker,
.command-complete-title,
.command-complete-copy {
  margin: 0;
}

.command-complete-kicker {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 215, 149, 0.86);
}

.command-complete-title {
  margin-top: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff0cf;
  text-shadow:
    0 0 20px rgba(255, 189, 87, 0.2),
    0 0 48px rgba(255, 109, 32, 0.16);
}

.command-complete-copy {
  margin-top: 16px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 227, 188, 0.82);
}

.command-clearance-hints {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 201, 121, 0.18);
}

.command-clearance-hint,
.command-clearance-label {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  text-transform: uppercase;
}

.command-clearance-hint {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: rgba(244, 222, 178, 0.82);
}

.command-clearance-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.command-clearance-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(245, 227, 188, 0.9);
}

.command-clearance-form input,
.command-clearance-form button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(242, 201, 121, 0.4);
  background: rgba(11, 9, 7, 0.92);
  color: #fff0cf;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-clearance-form input {
  padding: 0 14px;
}

.command-clearance-form button {
  background:
    linear-gradient(180deg, rgba(129, 84, 25, 0.94), rgba(72, 47, 15, 0.96));
}

.command-clearance-form button:hover {
  border-color: rgba(255, 217, 148, 0.82);
  background:
    linear-gradient(180deg, rgba(152, 102, 34, 0.96), rgba(88, 59, 18, 0.98));
}

.command-clearance-form input:disabled,
.command-clearance-form button:disabled {
  cursor: not-allowed;
}

.command-clearance-form input:disabled {
  border-color: rgba(146, 132, 103, 0.32);
  background: rgba(20, 18, 16, 0.92);
  color: rgba(255, 240, 207, 0.5);
}

.command-clearance-form button:disabled,
.command-clearance-form button:disabled:hover {
  border-color: rgba(146, 132, 103, 0.28);
  background: linear-gradient(180deg, rgba(58, 49, 35, 0.88), rgba(36, 30, 22, 0.92));
  color: rgba(255, 240, 207, 0.42);
  box-shadow: none;
}

.command-clearance-feedback {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 105, 105, 0.62);
  background: linear-gradient(180deg, rgba(72, 10, 10, 0.9), rgba(42, 7, 7, 0.94));
  color: #ffd7d7;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hq-screen {
  min-height: 100svh;
  height: 100svh;
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 179, 100, 0.1), rgba(214, 179, 100, 0) 30%),
    radial-gradient(circle at 82% 82%, rgba(120, 85, 31, 0.12), rgba(120, 85, 31, 0) 24%),
    linear-gradient(180deg, #1b1713 0%, #120f0c 46%, #0c0b0a 100%);
}

.hq-card {
  position: relative;
  width: min(980px, 100%);
  min-height: min(680px, calc(100svh - 48px));
  padding: 56px 40px 210px;
  border: 1px solid rgba(203, 168, 92, 0.46);
  background:
    radial-gradient(circle at top, rgba(220, 185, 107, 0.08), rgba(220, 185, 107, 0) 30%),
    linear-gradient(180deg, rgba(26, 21, 16, 0.98), rgba(14, 11, 9, 0.99) 52%, rgba(10, 9, 8, 1));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 236, 190, 0.08),
    inset 0 0 0 1px rgba(89, 67, 29, 0.22);
  display: grid;
  place-items: center;
  text-align: center;
}

.hq-card::before,
.hq-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hq-card::before {
  inset: 10px;
  border: 1px solid rgba(191, 156, 82, 0.18);
}

.hq-card::after {
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(205, 167, 86, 0.08), rgba(205, 167, 86, 0) 24%),
    radial-gradient(circle at 82% 78%, rgba(137, 104, 40, 0.08), rgba(137, 104, 40, 0) 22%),
    linear-gradient(180deg, rgba(18, 15, 11, 0.28), rgba(8, 8, 9, 0));
}

.hq-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 42rem;
}

.hq-kicker,
.hq-line,
.hq-signoff {
  margin: 0;
}

.hq-kicker {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(223, 195, 133, 0.84);
}

.hq-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.05rem, 3.8vw, 3.35rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff0cf;
}

.hq-title span {
  display: block;
}

.hq-title-nowrap {
  white-space: nowrap;
}

.hq-line {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 227, 188, 0.86);
}

.hq-signoff {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: #f1ddb0;
}

.hq-medal {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1;
}

.hq-medal .hero-seal {
  width: 180px;
}

.command-grid,
.command-map-wrap::before,
.command-map-wrap::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.command-grid {
  inset:
    calc(var(--command-stage-top) - var(--command-coordinate-y) - var(--command-board-gap))
    calc(var(--command-stage-right) - var(--command-coordinate-x) - var(--command-board-gap))
    calc(var(--command-stage-bottom) - var(--command-coordinate-y) - var(--command-board-gap))
    calc(var(--command-stage-left) - var(--command-coordinate-x) - var(--command-board-gap));
  z-index: 3;
  border: 1px solid rgba(191, 156, 82, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 221, 156, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.18);
  mix-blend-mode: screen;
}

.command-grid-line {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.command-grid-line-vertical {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(118, 255, 196, 0.08), rgba(88, 255, 179, 0.24) 10%, rgba(88, 255, 179, 0.24) 90%, rgba(118, 255, 196, 0.08));
  box-shadow: 0 0 8px rgba(88, 255, 179, 0.12);
}

.command-grid-line-horizontal {
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(118, 255, 196, 0.08), rgba(88, 255, 179, 0.24) 10%, rgba(88, 255, 179, 0.24) 90%, rgba(118, 255, 196, 0.08));
  box-shadow: 0 0 8px rgba(88, 255, 179, 0.12);
}

.command-map-wrap::before {
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
}

.command-map-wrap::after {
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.56) 100%);
}

.command-board {
  position: absolute;
  inset:
    calc(var(--command-stage-top) - var(--command-coordinate-y) - var(--command-board-gap))
    calc(var(--command-stage-right) - var(--command-coordinate-x) - var(--command-board-gap))
    calc(var(--command-stage-bottom) - var(--command-coordinate-y) - var(--command-board-gap))
    calc(var(--command-stage-left) - var(--command-coordinate-x) - var(--command-board-gap));
  z-index: 1;
  display: grid;
  grid-template-columns: var(--command-coordinate-x) minmax(0, 1fr) var(--command-coordinate-x);
  grid-template-rows: var(--command-coordinate-y) minmax(0, 1fr) var(--command-coordinate-y);
}

.command-board-core {
  position: relative;
  grid-area: 2 / 2;
  overflow: hidden;
  border: 1px solid rgba(202, 166, 92, 0.32);
  background:
    radial-gradient(circle at 50% 45%, rgba(19, 255, 144, 0.1), rgba(0, 0, 0, 0) 38%),
    linear-gradient(180deg, rgba(2, 20, 12, 0.72), rgba(1, 10, 7, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 183, 0.04),
    0 0 24px rgba(0, 0, 0, 0.16);
}

.command-board-core::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(202, 166, 92, 0.14);
  pointer-events: none;
}

.command-impact-layer {
  position: absolute;
  inset:
    calc(var(--command-stage-top) - var(--command-board-gap))
    calc(var(--command-stage-right) - var(--command-board-gap))
    calc(var(--command-stage-bottom) - var(--command-board-gap))
    calc(var(--command-stage-left) - var(--command-board-gap));
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.command-target-picker-layer {
  position: absolute;
  inset:
    calc(var(--command-stage-top) - var(--command-board-gap))
    calc(var(--command-stage-right) - var(--command-board-gap))
    calc(var(--command-stage-bottom) - var(--command-board-gap))
    calc(var(--command-stage-left) - var(--command-board-gap));
  z-index: 6;
  overflow: visible;
}

.command-target-picker-layer.command-target-picker-disabled {
  pointer-events: none;
}

.command-target-picker-point {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: transparent;
  cursor: none;
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.command-target-picker-point::before,
.command-target-picker-point::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.command-target-picker-point::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 199, 132, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 229, 182, 0.14),
    0 0 10px rgba(225, 183, 104, 0.12);
}

.command-target-picker-point::after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(231, 192, 117, 0);
  box-shadow: 0 0 0 0 rgba(255, 216, 145, 0);
}

.command-map-wrap:hover .command-target-picker-point {
  opacity: 0.34;
}

.command-target-picker-point:hover,
.command-target-picker-point:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
}

.command-target-picker-point:hover::before,
.command-target-picker-point:focus-visible::before {
  background: rgba(255, 224, 165, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 239, 211, 0.24),
    0 0 14px rgba(242, 201, 121, 0.36);
}

.command-target-picker-point:hover::after,
.command-target-picker-point:focus-visible::after {
  border-color: rgba(231, 192, 117, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 231, 189, 0.12),
    0 0 16px rgba(231, 192, 117, 0.2);
}

.command-crosshair {
  --command-crosshair-color: rgba(102, 255, 188, 0.88);
  --command-crosshair-ring-color: rgba(102, 255, 188, 0.72);
  --command-crosshair-glow: rgba(102, 255, 188, 0.24);
  --command-crosshair-dot-glow: rgba(102, 255, 188, 0.42);
  position: absolute;
  left: var(--command-crosshair-x, 50%);
  top: var(--command-crosshair-y, 50%);
  width: 34px;
  height: 34px;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition:
    opacity 110ms ease,
    transform 110ms ease,
    filter 110ms ease;
  filter:
    drop-shadow(0 0 6px rgba(102, 255, 188, 0.26))
    drop-shadow(0 0 14px rgba(102, 255, 188, 0.14));
}

.command-crosshair::before,
.command-crosshair::after,
.command-crosshair-arms::before,
.command-crosshair-arms::after {
  content: "";
  position: absolute;
  background: var(--command-crosshair-color);
  border-radius: 999px;
}

.command-crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 10px;
  transform: translateX(-50%);
}

.command-crosshair::after {
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 10px;
  transform: translateX(-50%);
}

.command-crosshair-arms::before {
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  transform: translateY(-50%);
}

.command-crosshair-arms::after {
  right: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  transform: translateY(-50%);
}

.command-crosshair-arms,
.command-crosshair-ring,
.command-crosshair-dot {
  position: absolute;
  inset: 0;
}

.command-crosshair-ring {
  border: 1px solid var(--command-crosshair-ring-color);
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 10px var(--command-crosshair-glow);
  transition:
    opacity 110ms ease,
    border-color 110ms ease,
    box-shadow 110ms ease;
}

.command-crosshair-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--command-crosshair-color);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--command-crosshair-dot-glow);
}

.command-crosshair-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.command-crosshair-targeting {
  --command-crosshair-color: rgba(255, 92, 92, 0.96);
  --command-crosshair-ring-color: rgba(255, 108, 108, 0.82);
  --command-crosshair-glow: rgba(255, 94, 94, 0.28);
  --command-crosshair-dot-glow: rgba(255, 94, 94, 0.48);
  filter:
    drop-shadow(0 0 6px rgba(255, 110, 110, 0.3))
    drop-shadow(0 0 16px rgba(255, 78, 78, 0.18));
}

.command-crosshair-targeting .command-crosshair-ring {
  opacity: 1;
}

.command-shutter-housing {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 234, 196, 0.06), rgba(255, 234, 196, 0) 22%),
    linear-gradient(180deg, rgba(27, 20, 14, 0.98), rgba(73, 56, 35, 0.98) 48%, rgba(22, 16, 11, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 210, 0.06),
    inset 0 0 0 1px rgba(24, 17, 12, 0.96),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

.command-shutter-housing::before,
.command-shutter-housing::after {
  content: "";
  position: absolute;
}

.command-shutter-housing::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 9, 0.94) 0, rgba(18, 13, 9, 0) 24px, rgba(18, 13, 9, 0) calc(100% - 24px), rgba(18, 13, 9, 0.94) 100%),
    repeating-linear-gradient(104deg, rgba(255, 232, 196, 0.014) 0 1px, rgba(255, 232, 196, 0) 1px 12px),
    repeating-linear-gradient(172deg, rgba(177, 112, 67, 0.1) 0 2px, rgba(177, 112, 67, 0) 2px 36px);
  opacity: 0.8;
}

.command-shutter-housing::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 20px 5px, rgba(242, 223, 185, 0.8) 0 1px, rgba(150, 116, 72, 0.96) 2px 4px, rgba(48, 34, 24, 0.96) 5px 6px, transparent 6px) 0 0 / 76px 10px repeat-x;
  opacity: 0.76;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

.command-shutter-housing-top {
  top: 0;
  border-bottom: 2px solid rgba(20, 13, 9, 0.96);
}

.command-shutter-housing-bottom {
  bottom: 0;
  border-top: 2px solid rgba(20, 13, 9, 0.96);
}

.command-shutter-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.command-shutter-panel,
.command-shutter-seam,
.command-shutter-rivets {
  position: absolute;
}

.command-shutter-panel {
  left: 0;
  right: 0;
  height: 50%;
  background:
    linear-gradient(180deg, rgba(255, 239, 205, 0.09), rgba(255, 239, 205, 0) 8%),
    linear-gradient(180deg, rgba(48, 35, 23, 0.48), rgba(104, 77, 48, 0.38) 48%, rgba(24, 17, 12, 0.54) 100%),
    url("../../assets/textures/optimized/metalplate.webp");
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% 100%,
    100% 200%;
  background-blend-mode: screen, multiply, normal;
  filter: saturate(0.72) sepia(0.16) brightness(0.84) contrast(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 204, 0.06),
    inset 0 0 0 1px rgba(18, 12, 8, 0.92),
    inset 0 -24px 34px rgba(0, 0, 0, 0.32),
    0 14px 32px rgba(0, 0, 0, 0.26);
}

.command-shutter-panel::before,
.command-shutter-panel::after {
  content: "";
  position: absolute;
  inset: 0;
}

.command-shutter-panel::before {
  background:
    linear-gradient(90deg, rgba(19, 13, 10, 0.96) 0, rgba(19, 13, 10, 0) 34px, rgba(19, 13, 10, 0) calc(100% - 34px), rgba(19, 13, 10, 0.96) 100%),
    repeating-linear-gradient(14deg, rgba(12, 9, 7, 0.16) 0 1px, rgba(12, 9, 7, 0) 1px 13px);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.command-shutter-panel::after {
  background:
    radial-gradient(circle at 18% 32%, rgba(255, 241, 215, 0.04), rgba(255, 241, 215, 0) 18%),
    radial-gradient(circle at 71% 64%, rgba(198, 126, 72, 0.2), rgba(198, 126, 72, 0) 18%),
    radial-gradient(circle at 46% 44%, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0) 24%),
    radial-gradient(circle at 62% 18%, rgba(255, 227, 176, 0.05), rgba(255, 227, 176, 0) 14%),
    radial-gradient(circle at 34% 72%, rgba(99, 61, 33, 0.18), rgba(99, 61, 33, 0) 15%);
  opacity: 0.78;
}

.command-shutter-panel-top {
  top: 0;
  transform: translateY(-102%);
  border-bottom: 3px solid rgba(20, 13, 9, 0.96);
  background-position:
    center top,
    center top;
}

.command-shutter-panel-bottom {
  bottom: 0;
  transform: translateY(102%);
  border-top: 3px solid rgba(20, 13, 9, 0.96);
  background-position:
    center top,
    center bottom;
}

.command-shutter-rivets {
  left: 0;
  right: 0;
  height: 22px;
  background:
    radial-gradient(circle at 22px 11px, rgba(242, 223, 185, 0.84) 0 1px, rgba(150, 116, 72, 0.98) 2px 5px, rgba(48, 34, 24, 0.98) 6px 8px, transparent 8px) 0 0 / 76px 22px repeat-x,
    linear-gradient(180deg, rgba(255, 238, 208, 0.1), rgba(255, 238, 208, 0) 34%),
    linear-gradient(180deg, rgba(58, 40, 26, 0.88), rgba(20, 14, 10, 0.94)),
    url("../../assets/textures/optimized/rustymetal.webp");
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat;
  background-size:
    76px 22px,
    100% 100%,
    100% 100%,
    180% 260%;
  background-position:
    0 0,
    center,
    center,
    42% 40%;
  background-blend-mode: normal, screen, multiply, normal;
  opacity: 0.82;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.34));
}

.command-shutter-rivets-top {
  bottom: 12px;
}

.command-shutter-rivets-bottom {
  top: 12px;
}

.command-shutter-seam {
  left: 0;
  right: 0;
  top: calc(50% - 2px);
  height: 4px;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(255, 220, 154, 0) 0, rgba(255, 236, 194, 0.82) 18%, rgba(255, 214, 126, 1) 36%, rgba(255, 247, 219, 1) 50%, rgba(255, 214, 126, 1) 64%, rgba(255, 236, 194, 0.82) 82%, rgba(255, 220, 154, 0) 100%);
  box-shadow:
    0 0 12px rgba(255, 202, 108, 0.58),
    0 0 26px rgba(255, 224, 160, 0.42),
    0 0 54px rgba(255, 239, 201, 0.22);
}

.command-shutter-seam::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -22%;
  width: 24%;
  height: 24px;
  background: linear-gradient(90deg, rgba(255, 235, 188, 0), rgba(255, 247, 222, 0.98) 48%, rgba(255, 235, 188, 0));
  filter: blur(6px);
  opacity: 0;
  transform: skewX(-16deg);
}

.command-shutter-overlay-active {
  background: linear-gradient(180deg, rgba(26, 18, 12, 0.06), rgba(10, 7, 5, 0.28));
}

.command-shutter-overlay-closing .command-shutter-panel-top {
  animation: none;
}

body.command-active .command-shutter-overlay-closing .command-shutter-panel-top {
  animation: commandShutterTopClose var(--command-shutter-close-duration, 3990ms) linear forwards;
}

.command-shutter-overlay-closing .command-shutter-panel-bottom {
  animation: none;
}

body.command-active .command-shutter-overlay-closing .command-shutter-panel-bottom {
  animation: commandShutterBottomClose var(--command-shutter-close-duration, 3990ms) linear forwards;
}

.command-shutter-overlay-closed .command-shutter-panel-top,
.command-shutter-overlay-closed .command-shutter-panel-bottom {
  transform: translateY(0);
}

.command-shutter-overlay-flashing .command-shutter-seam {
  animation: none;
}

body.command-active .command-shutter-overlay-flashing .command-shutter-seam {
  opacity: 1;
  animation: commandShutterSeamFlash var(--command-shutter-seam-duration, 2500ms) ease-out forwards;
}

.command-shutter-overlay-flashing .command-shutter-seam::before {
  animation: none;
}

body.command-active .command-shutter-overlay-flashing .command-shutter-seam::before {
  opacity: 1;
  animation: commandShutterSeamSweep var(--command-shutter-seam-duration, 2500ms) ease-out forwards;
}

.command-shutter-overlay-opening .command-shutter-panel-top {
  animation: none;
}

body.command-active .command-shutter-overlay-opening .command-shutter-panel-top {
  animation: commandShutterTopOpen var(--command-shutter-open-duration, 4000ms) linear forwards;
}

.command-shutter-overlay-opening .command-shutter-panel-bottom {
  animation: none;
}

body.command-active .command-shutter-overlay-opening .command-shutter-panel-bottom {
  animation: commandShutterBottomOpen var(--command-shutter-open-duration, 4000ms) linear forwards;
}

.command-impact {
  --impact-size: 24px;
  --impact-core: rgba(255, 228, 166, 0.98);
  --impact-glow: rgba(255, 165, 92, 0.72);
  position: absolute;
  width: var(--impact-size);
  height: var(--impact-size);
  transform: translate(-50%, -50%);
}

.command-projectile {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(93, 255, 179, 0.28));
}

.command-projectile-route {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.86;
}

.command-projectile-route svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.command-projectile-route-stroke {
  fill: none;
  stroke: rgba(110, 255, 188, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  filter: drop-shadow(0 0 4px rgba(93, 255, 179, 0.34));
}

.command-projectile-route-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: butt;
}

.command-projectile-body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #d8ffe8 0 26%, #7dffb7 27% 60%, #19ff8b 61% 100%);
  box-shadow:
    0 0 8px rgba(125, 255, 183, 0.76),
    0 0 18px rgba(35, 255, 157, 0.34);
  animation: commandProjectileDotPulse 180ms ease-in-out infinite alternate;
}

.command-projectile-body::before,
.command-projectile-body::after {
  content: "";
  position: absolute;
}

.command-projectile-body::before {
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(125, 255, 183, 0.34);
  animation: commandProjectilePing 320ms ease-out infinite;
}

.command-projectile-body::after {
  display: none;
}

.command-projectile-hit {
  filter: drop-shadow(0 0 10px rgba(93, 255, 179, 0.34));
}

.command-projectile-route-hit .command-projectile-route-stroke {
  stroke: rgba(132, 255, 199, 1);
}

.command-projectile-miss {
  filter: drop-shadow(0 0 8px rgba(93, 255, 179, 0.24));
}

.command-projectile-miss .command-projectile-body {
  background:
    radial-gradient(circle, #d8ffe8 0 24%, #7dffb7 25% 54%, #16d474 55% 100%);
}

.command-projectile-route-miss .command-projectile-route-stroke {
  stroke: rgba(93, 255, 179, 0.78);
}

.command-impact::before,
.command-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.command-impact::before {
  background:
    radial-gradient(circle, var(--impact-core) 0 24%, rgba(255, 214, 120, 0.9) 25% 44%, rgba(255, 119, 43, 0.52) 45% 60%, rgba(255, 74, 22, 0.12) 61% 100%);
  box-shadow:
    0 0 16px var(--impact-glow),
    0 0 34px rgba(255, 85, 32, 0.34);
}

.command-impact::after {
  inset: -35%;
  border: 1px solid rgba(255, 188, 102, 0.7);
  opacity: 0;
}

.command-impact-miss {
  --impact-size: 18px;
  --impact-core: rgba(255, 232, 204, 0.56);
  --impact-glow: rgba(224, 194, 148, 0.18);
  animation: commandImpactMiss 860ms ease-out forwards;
}

.command-impact-miss::before {
  animation: commandImpactPulseMiss 860ms ease-out forwards;
}

.command-impact-miss::after {
  animation: commandImpactRingMiss 860ms ease-out forwards;
}

.command-impact-hit {
  --impact-size: 38px;
  --impact-core: rgba(255, 245, 214, 1);
  --impact-glow: rgba(255, 184, 86, 0.86);
  animation: commandImpactHit var(--command-hit-duration, 1320ms) ease-out forwards;
}

.command-impact-hit::before {
  animation: commandImpactPulseHit var(--command-hit-duration, 1320ms) ease-out forwards;
}

.command-impact-hit::after {
  animation: commandImpactRingHit var(--command-hit-duration, 1320ms) ease-out forwards;
}

.command-impact-sparks {
  position: absolute;
  inset: -65%;
  border-radius: 999px;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 242, 201, 0) 0deg 18deg,
      rgba(255, 242, 201, 0.95) 18deg 26deg,
      rgba(255, 242, 201, 0) 26deg 58deg,
      rgba(255, 203, 120, 0.9) 58deg 66deg,
      rgba(255, 242, 201, 0) 66deg 118deg,
      rgba(255, 179, 81, 0.88) 118deg 126deg,
      rgba(255, 242, 201, 0) 126deg 180deg,
      rgba(255, 242, 201, 0.95) 180deg 188deg,
      rgba(255, 242, 201, 0) 188deg 236deg,
      rgba(255, 170, 71, 0.86) 236deg 244deg,
      rgba(255, 242, 201, 0) 244deg 300deg,
      rgba(255, 212, 135, 0.92) 300deg 308deg,
      rgba(255, 242, 201, 0) 308deg 360deg
    );
  filter: blur(0.4px);
  animation: commandImpactSparks var(--command-hit-duration, 1320ms) ease-out forwards;
}

.command-hit-marker {
  position: absolute;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.command-hit-marker-scorch,
.command-hit-marker-core,
.command-hit-marker-flame,
.command-hit-marker-smoke {
  position: absolute;
  inset: 0;
}

.command-hit-marker-scorch {
  inset: 18px 15px 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(36, 20, 10, 0.92) 0 32%, rgba(88, 46, 16, 0.72) 33% 56%, rgba(20, 12, 8, 0) 57% 100%);
  box-shadow:
    0 0 18px rgba(255, 119, 36, 0.18),
    inset 0 1px 2px rgba(255, 214, 154, 0.08);
}

.command-hit-marker-core {
  inset: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 247, 217, 0.98) 0 18%, rgba(255, 187, 84, 0.96) 19% 34%, rgba(232, 84, 20, 0.9) 35% 58%, rgba(93, 20, 8, 0.94) 59% 100%);
  box-shadow:
    0 0 16px rgba(255, 188, 97, 0.82),
    0 0 36px rgba(255, 92, 36, 0.52),
    inset 0 2px 5px rgba(255, 238, 204, 0.36);
}

.command-hit-marker-flame {
  inset: 7px 10px 14px;
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 245, 188, 0.98) 0 12%, rgba(255, 182, 70, 0.95) 13% 24%, rgba(255, 113, 31, 0.86) 25% 38%, rgba(192, 42, 8, 0.52) 39% 48%, rgba(192, 42, 8, 0) 49% 100%);
  clip-path: polygon(50% 0%, 63% 15%, 72% 34%, 77% 55%, 68% 79%, 52% 100%, 37% 77%, 27% 54%, 31% 28%, 40% 11%);
  filter: blur(1.2px);
  transform-origin: 50% 90%;
  animation: commandHitMarkerFlame calc(var(--command-hit-duration, 1320ms) * 1.12) ease-in-out infinite alternate;
}

.command-hit-marker-smoke {
  inset: -18px -10px 4px -8px;
  background:
    radial-gradient(circle at 46% 72%, rgba(74, 73, 70, 0.24) 0 14%, rgba(74, 73, 70, 0) 15% 100%),
    radial-gradient(circle at 56% 45%, rgba(120, 124, 118, 0.22) 0 16%, rgba(120, 124, 118, 0) 17% 100%),
    radial-gradient(circle at 36% 30%, rgba(160, 164, 156, 0.12) 0 12%, rgba(160, 164, 156, 0) 13% 100%);
  filter: blur(3px);
  animation: commandHitMarkerSmoke calc(var(--command-hit-duration, 1320ms) * 2.3) ease-in-out infinite;
}

.command-hit-marker-flame-secondary {
  inset: 11px 15px 18px;
  opacity: 0.78;
  transform-origin: 52% 92%;
  filter: blur(1.6px);
  animation-duration: calc(var(--command-hit-duration, 1320ms) * 0.92);
  animation-direction: alternate-reverse;
}

.command-hit-marker-smoke-secondary {
  inset: -24px -18px 8px -12px;
  opacity: 0.82;
  filter: blur(4px);
  animation-duration: calc(var(--command-hit-duration, 1320ms) * 2.8);
  animation-delay: calc(var(--command-hit-duration, 1320ms) * -0.35);
}

.command-miss-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.command-miss-marker-scorch,
.command-miss-marker-smoke {
  position: absolute;
  inset: 0;
}

.command-miss-marker-scorch {
  inset: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(86, 72, 52, 0.92) 0 26%, rgba(133, 116, 88, 0.54) 27% 48%, rgba(30, 25, 19, 0) 49% 100%);
  box-shadow:
    0 0 10px rgba(201, 178, 140, 0.14),
    inset 0 1px 1px rgba(255, 242, 219, 0.08);
}

.command-miss-marker-smoke {
  inset: -16px -12px 8px;
  background:
    radial-gradient(circle at 50% 78%, rgba(112, 116, 112, 0.22) 0 13%, rgba(112, 116, 112, 0) 14% 100%),
    radial-gradient(circle at 42% 46%, rgba(152, 154, 148, 0.16) 0 12%, rgba(152, 154, 148, 0) 13% 100%);
  filter: blur(3.2px);
  animation: commandMissMarkerSmoke 4.6s ease-in-out infinite;
}

.command-miss-marker-smoke-secondary {
  inset: -22px -18px 12px;
  opacity: 0.76;
  filter: blur(4.4px);
  animation-duration: 5.8s;
  animation-delay: -2.1s;
}

.command-map-stage {
  position: absolute;
  inset:
    var(--command-stage-top)
    var(--command-stage-right)
    var(--command-stage-bottom)
    var(--command-stage-left);
  z-index: 1;
  overflow: hidden;
}

.command-map-stage::before,
.command-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.command-map-stage::before {
  z-index: 2;
  background:
    radial-gradient(circle at 18% 26%, rgba(116, 255, 182, 0.18), rgba(116, 255, 182, 0) 22%),
    radial-gradient(circle at 72% 38%, rgba(92, 255, 166, 0.14), rgba(92, 255, 166, 0) 18%),
    radial-gradient(circle at 58% 74%, rgba(74, 255, 154, 0.12), rgba(74, 255, 154, 0) 24%),
    linear-gradient(180deg, rgba(28, 255, 148, 0.03), rgba(28, 255, 148, 0.08) 52%, rgba(28, 255, 148, 0.04));
  mix-blend-mode: screen;
  opacity: 0.92;
}

.command-map-stage::after {
  z-index: 2;
  inset: 6% 5%;
  border: 1px solid rgba(112, 255, 185, 0.18);
  background:
    linear-gradient(90deg, rgba(92, 255, 166, 0.08), rgba(92, 255, 166, 0) 18%, rgba(92, 255, 166, 0) 82%, rgba(92, 255, 166, 0.08)),
    linear-gradient(180deg, rgba(92, 255, 166, 0.1), rgba(92, 255, 166, 0.02) 22%, rgba(92, 255, 166, 0.02) 78%, rgba(92, 255, 166, 0.1));
  box-shadow:
    inset 0 0 28px rgba(80, 255, 170, 0.08),
    0 0 18px rgba(72, 255, 153, 0.08);
  opacity: 0.75;
}

.command-coordinates {
  display: grid;
  align-items: center;
  justify-items: center;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 195, 133, 0.82);
  text-shadow: 0 0 12px rgba(208, 171, 95, 0.14);
}

.command-coordinates span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.command-coordinates-top,
.command-coordinates-bottom {
  grid-column: 2;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  padding-inline: 14px;
  border-left: 1px solid rgba(191, 156, 82, 0.18);
  border-right: 1px solid rgba(191, 156, 82, 0.18);
}

.command-coordinates-top {
  grid-row: 1;
  border-bottom: 1px solid rgba(191, 156, 82, 0.18);
}

.command-coordinates-bottom {
  grid-row: 3;
  border-top: 1px solid rgba(191, 156, 82, 0.18);
}

.command-coordinates-left,
.command-coordinates-right {
  grid-row: 2;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.command-coordinates-left {
  grid-column: 1;
  border-right: 1px solid rgba(191, 156, 82, 0.18);
}

.command-coordinates-right {
  grid-column: 3;
  border-left: 1px solid rgba(191, 156, 82, 0.18);
}

.command-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--command-map-scale));
  transform-origin: center;
  filter:
    grayscale(1)
    contrast(2.05)
    brightness(0.92)
    sepia(1)
    hue-rotate(58deg)
    saturate(4.6)
    brightness(1.04)
    drop-shadow(0 0 6px rgba(76, 255, 160, 0.22))
    drop-shadow(0 0 16px rgba(76, 255, 160, 0.1));
  mix-blend-mode: lighten;
  opacity: 0.88;
}

.command-map-outline {
  filter:
    grayscale(1)
    contrast(3.6)
    brightness(0.34);
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.command-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.command-map-projection {
  position: absolute;
  inset: 10.5% 6.3% 5.8% 6.6%;
}

.command-flight-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.command-flight-route-line,
.command-flight-route-guide {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.command-flight-route-line {
  stroke: rgba(128, 255, 190, 0.92);
  filter:
    drop-shadow(0 0 6px rgba(83, 255, 161, 0.72))
    drop-shadow(0 0 16px rgba(83, 255, 161, 0.3));
}

.command-flight-route-line-primary {
  stroke-width: 0.42;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: commandRouteDrawPrimary 6.2s linear infinite;
}

.command-flight-route-line-secondary {
  stroke-width: 0.34;
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
  animation: commandRouteDrawSecondary 6.2s linear infinite;
}

.command-flight-route-guide {
  stroke: rgba(142, 255, 196, 0.2);
  stroke-width: 0.16;
  stroke-dasharray: 1.2 1.8;
  animation: commandRouteGuidePulse 6.2s ease-in-out infinite;
}

.command-flight-route-plane {
  fill: rgba(223, 255, 239, 0.98);
  stroke: rgba(128, 255, 190, 0.9);
  stroke-width: 0.18;
  filter:
    drop-shadow(0 0 6px rgba(136, 255, 197, 0.95))
    drop-shadow(0 0 16px rgba(72, 255, 153, 0.55));
  animation: commandRoutePlanePulse 0.85s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.command-ping {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(149, 255, 200, 0.8);
  background: rgba(117, 255, 179, 0.95);
  box-shadow: 0 0 18px rgba(92, 255, 170, 0.65);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.command-ping::before,
.command-ping::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(123, 255, 187, 0.34);
  border-radius: 999px;
  animation: commandPing 3s ease-out infinite;
}

.command-ping::after {
  animation-delay: 1.2s;
}

.command-ping-label {
  position: absolute;
  top: -22px;
  left: 18px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(188, 255, 222, 0.88);
  text-shadow: 0 0 10px rgba(76, 255, 160, 0.3);
}

.command-ping-newyork {
  left: 32.5%;
  top: 38.4%;
}

.command-ping-berlin {
  left: 50.2%;
  top: 31.2%;
}

.command-ping-moscow {
  left: 57.3%;
  top: 27.4%;
}

.command-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}

.command-card {
  width: min(320px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(179, 145, 79, 0.34);
  background: linear-gradient(180deg, rgba(24, 21, 17, 0.92), rgba(14, 13, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 190, 0.05),
    0 0 28px rgba(0, 0, 0, 0.34);
}

.command-title {
  margin: 4px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #f5dfb0;
  text-transform: uppercase;
}

.command-copy {
  margin: 0;
  max-width: 26rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(241, 224, 192, 0.82);
}
