:root {
  --hud-neon: #6efff4;
  --hud-panel: rgba(8, 17, 36, 0.84);
  --hud-line: rgba(92, 221, 255, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.hud-bg {
  background:
    radial-gradient(circle at 8% 8%, rgba(90, 248, 255, 0.1), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(60, 120, 255, 0.12), transparent 38%),
    linear-gradient(145deg, #020612 0%, #040d1d 40%, #030712 100%);
}

.hud-header {
  background: linear-gradient(180deg, rgba(1, 4, 14, 0.94) 0%, rgba(1, 4, 14, 0.58) 74%, rgba(1, 4, 14, 0) 100%);
}

.hud-stage {
  border: 1px solid rgba(110, 233, 255, 0.26);
  border-radius: 14px;
  background: rgba(9, 20, 43, 0.52);
  box-shadow: inset 0 0 0 1px rgba(124, 201, 255, 0.15), 0 12px 28px rgba(2, 8, 20, 0.45);
  overflow: hidden;
}

.status-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(125, 243, 255, 0.36);
}

.status-live {
  background: rgba(18, 95, 104, 0.45);
  color: #8ff6ff;
}

.status-sim {
  background: rgba(68, 78, 133, 0.35);
  color: #c0d8ff;
}

.panel-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-neon);
  margin-bottom: 0.5rem;
}

.hud-window {
  position: absolute;
  border: 1px solid rgba(118, 243, 255, 0.36);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(4, 10, 25, 0.9), rgba(8, 19, 44, 0.78));
  box-shadow: 0 0 18px rgba(73, 214, 255, 0.16);
  backdrop-filter: blur(2px);
  padding: 0.62rem;
  z-index: 20;
}

.win-top-left {
  top: 16px;
  left: 16px;
  width: 320px;
}

.win-top-right {
  top: 16px;
  right: 16px;
  width: 360px;
}

.win-mid-left {
  top: 198px;
  left: 16px;
  width: 370px;
}

.win-mid-right {
  top: 220px;
  right: 16px;
  width: 360px;
}

.win-bottom-left {
  bottom: 16px;
  left: 16px;
  width: 380px;
}

.win-bottom-right {
  bottom: 16px;
  right: 16px;
  width: 390px;
}

.selected-pop {
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(90vw, 440px);
  z-index: 24;
}

.layer-toggle {
  border: 1px solid rgba(112, 216, 252, 0.34);
  border-radius: 8px;
  padding: 0.36rem;
  color: rgba(189, 239, 255, 0.82);
  background: rgba(8, 14, 30, 0.72);
  transition: all 140ms ease;
}

.layer-toggle.on {
  background: linear-gradient(135deg, rgba(58, 182, 224, 0.38), rgba(31, 141, 176, 0.22));
  border-color: rgba(125, 248, 255, 0.8);
  color: #e8feff;
}

.hud-input {
  width: 100%;
  background: rgba(2, 10, 24, 0.6);
  border: 1px solid rgba(112, 220, 255, 0.42);
  border-radius: 8px;
  padding: 0.45rem 0.56rem;
  color: #dbfdff;
}

.hud-input::placeholder {
  color: rgba(181, 235, 250, 0.38);
}

.hud-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(118, 246, 255, 0.28);
}

.result-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(97, 206, 248, 0.32);
  border-radius: 7px;
  padding: 0.28rem 0.4rem;
  color: rgba(210, 249, 255, 0.95);
  background: rgba(6, 17, 36, 0.65);
}

.result-item:hover {
  background: rgba(15, 36, 69, 0.82);
}

.hud-btn {
  border: 1px solid rgba(117, 245, 255, 0.52);
  border-radius: 8px;
  padding: 0.36rem 0.62rem;
  color: #d9fcff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.66rem;
  background: linear-gradient(140deg, rgba(39, 131, 168, 0.38), rgba(20, 55, 90, 0.68));
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.hud-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(108, 248, 255, 0.28);
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  border-bottom: 1px dashed rgba(132, 223, 250, 0.18);
  padding-bottom: 0.16rem;
}

.event-row {
  border-left: 2px solid rgba(103, 224, 250, 0.58);
  padding-left: 0.4rem;
  display: flex;
  gap: 0.45rem;
}

.hud-scope {
  border: 1px solid rgba(109, 214, 248, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(19, 41, 74, 0.35), rgba(8, 14, 28, 0.6));
  overflow: hidden;
}

.mini-grid {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(112, 218, 252, 0.3);
  background:
    radial-gradient(circle at 20% 40%, rgba(110, 246, 255, 0.42), transparent 8%),
    radial-gradient(circle at 68% 34%, rgba(255, 229, 124, 0.5), transparent 9%),
    radial-gradient(circle at 82% 76%, rgba(255, 124, 236, 0.45), transparent 8%),
    repeating-linear-gradient(0deg, rgba(116, 233, 255, 0.06) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(116, 233, 255, 0.04) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(5, 12, 27, 0.8), rgba(8, 18, 42, 0.82));
}

.net-line {
  stroke: rgba(129, 239, 255, 0.55);
  stroke-width: 1.6;
}

.net-node {
  fill: rgba(76, 216, 250, 0.58);
  stroke: rgba(182, 250, 255, 0.9);
  stroke-width: 1;
}

.net-final {
  fill: rgba(255, 231, 122, 0.74);
}

.map-overlay {
  background:
    radial-gradient(circle at center, transparent 56%, rgba(3, 6, 14, 0.35) 100%),
    repeating-linear-gradient(0deg, rgba(116, 233, 255, 0.032) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(116, 233, 255, 0.02) 0 1px, transparent 1px 48px);
  border: 1px solid rgba(100, 218, 255, 0.24);
  border-radius: 10px;
}

#fallback-radar {
  z-index: 1;
  opacity: 0.78;
  mix-blend-mode: screen;
}

#map {
  z-index: 0;
}

.map-error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  background: rgba(10, 19, 39, 0.92);
  border: 1px solid rgba(255, 164, 164, 0.5);
  color: #ffdada;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  max-width: 420px;
  text-align: center;
}

.toast {
  background: rgba(8, 23, 53, 0.92);
  border: 1px solid rgba(114, 238, 255, 0.6);
  color: #d9fdff;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 0 14px rgba(87, 214, 255, 0.3);
  font-size: 0.85rem;
}

.toast-enter-active,
.toast-leave-active {
  transition: all 180ms ease;
}

.toast-enter-from,
.toast-leave-to {
  opacity: 0;
  transform: translateY(10px);
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-top-left,
.maplibregl-ctrl-top-right {
  display: none;
}

@media (max-width: 1200px) {
  .win-top-left,
  .win-top-right,
  .win-mid-left,
  .win-mid-right,
  .win-bottom-left,
  .win-bottom-right,
  .selected-pop {
    position: static;
    transform: none;
    width: auto;
    margin: 0.45rem;
  }

  .hud-stage {
    overflow-y: auto;
    padding: 0.3rem;
  }

  #map {
    min-height: 56vh;
  }

  .map-overlay {
    min-height: 56vh;
  }
}
