:root {
  color: #d6f7c7;
  background: #050806;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #040706 0%, #0c1710 52%, #1b1a0a 100%);
}

button {
  font: inherit;
}

.page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 42px;
}

.commandBar {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
}

.eyebrow,
.mapTop span,
.intelHeader p,
.stats span,
.routeMeta span,
.statusPanel span,
.statusPanel small {
  color: #8fffa3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: #f5ffd8;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.96;
  text-shadow: 0 0 28px rgba(139, 255, 154, 0.18);
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: #adcda8;
  font-size: 18px;
  line-height: 1.55;
}

.statusPanel,
.mapShell,
.intelPanel {
  border: 1px solid rgba(143, 255, 163, 0.28);
  background: rgba(5, 14, 10, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.statusPanel {
  min-width: 230px;
  align-self: end;
  padding: 18px;
  border-radius: 18px;
}

.statusPanel strong {
  display: block;
  margin: 8px 0;
  color: #ffce4f;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.statusPanel small {
  display: block;
  color: #9fb895;
  line-height: 1.45;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: stretch;
}

.mapShell,
.intelPanel {
  border-radius: 24px;
}

.mapShell {
  overflow: hidden;
  padding: 16px;
}

.map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 960;
  border: 1px solid rgba(143, 255, 163, 0.22);
  border-radius: 18px;
}

.mapTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 6px 16px;
}

.mapTop strong {
  display: block;
  margin-top: 5px;
  color: #f5ffd8;
  font-size: 24px;
}

.resetButton {
  border: 1px solid rgba(255, 206, 79, 0.6);
  border-radius: 12px;
  padding: 12px 16px;
  color: #171103;
  background: #ffce4f;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 206, 79, 0.22);
}

.coordinates text {
  fill: #4e8f61;
  font-size: 14px;
  font-weight: 800;
}

.zone,
.base,
.routePath {
  cursor: pointer;
}

.zoneShape {
  fill-opacity: 0.2;
  stroke-width: 3;
  filter: url(#glow);
  transition: opacity 180ms ease;
}

.zoneRing {
  fill: none;
  stroke-dasharray: 7 8;
  stroke-width: 2;
  opacity: 0.8;
}

.zoneLabel,
.baseLabel {
  fill: #eaffd2;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: #07110b;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.baseMarker {
  fill: #101b11;
  stroke: #ffce4f;
  stroke-width: 4;
  filter: url(#glow);
}

.baseCore {
  fill: #ffce4f;
}

.baseLine {
  stroke: #ffce4f;
  stroke-width: 3;
  stroke-linecap: round;
}

.routeLine {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 12 12;
  stroke-width: 7;
  opacity: 0.84;
  animation: tacticalDash 1.15s linear infinite;
  filter: url(#glow);
}

.routePath.isActive .routeLine {
  stroke-width: 11;
  opacity: 1;
}

.routePath.isDimmed .routeLine,
.unit.isDimmed,
.zone.isDimmed,
.base.isDimmed {
  opacity: 0.16;
}

.unit {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms ease;
}

.unitBody {
  fill: #ffce4f;
  stroke: #030604;
  stroke-width: 3;
}

.unitWing {
  fill: rgba(143, 255, 163, 0.38);
  stroke: rgba(214, 247, 199, 0.5);
  stroke-width: 2;
}

.unitStripe {
  stroke: #030604;
  stroke-width: 3;
  stroke-linecap: round;
}

.intelPanel {
  padding: 22px;
}

.intelHeader p {
  margin: 0 0 8px;
}

.intelHeader h2 {
  margin: 0;
  color: #f5ffd8;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.stats div,
.routeInfo,
.routeButton {
  border: 1px solid rgba(143, 255, 163, 0.18);
  background: rgba(14, 31, 20, 0.78);
}

.stats div {
  border-radius: 16px;
  padding: 15px;
}

.stats strong {
  display: block;
  margin-top: 6px;
  color: #ffce4f;
  font-size: 32px;
}

.routeInfo {
  min-height: 138px;
  border-radius: 18px;
  padding: 17px;
  color: #b8d2ac;
  line-height: 1.55;
}

.routeInfo h3 {
  margin: 0 0 10px;
  color: #f5ffd8;
  font-size: 22px;
}

.routeMeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.routeMeta strong {
  display: block;
  margin-top: 4px;
  color: #ffce4f;
}

.routeList {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.routeButton {
  display: grid;
  gap: 6px;
  width: 100%;
  border-radius: 16px;
  padding: 15px;
  color: #f5ffd8;
  text-align: left;
  cursor: pointer;
}

.routeButton strong {
  font-size: 16px;
}

.routeButton span {
  color: #9fb895;
  font-size: 14px;
}

.routeButton.isActive {
  border-color: rgba(255, 206, 79, 0.9);
  background: rgba(255, 206, 79, 0.13);
  box-shadow: 0 0 24px rgba(255, 206, 79, 0.12);
}

.serviceLinks {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.serviceLinks a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(143, 255, 163, 0.35);
  color: #d6f7c7;
  text-decoration: none;
  font-size: 13px;
}

@keyframes tacticalDash {
  to {
    stroke-dashoffset: -24;
  }
}

@media (max-width: 1000px) {
  .commandBar {
    display: grid;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .statusPanel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 1280px);
    padding-top: 18px;
  }

  .map {
    aspect-ratio: 960 / 960;
  }

  .mapTop {
    align-items: stretch;
    flex-direction: column;
  }
}
