:root {
  --ink: rgba(255, 255, 255, 0.94);
  --ink-soft: rgba(255, 255, 255, 0.58);
  --map-stroke: rgba(255, 255, 255, 0.12);
  --hud-bg: rgba(10, 12, 14, 0.44);
  --hud-border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
}

#map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 45%), #000;
}

.hud {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: .2;
  backdrop-filter: blur(7px);
}

.hud-block {
  min-width: 132px;
  padding: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-block--small {
  min-width: 260px;
}

.hud-label {
  display: block;
  margin-bottom: 0;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hud strong {
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
}

.hud-block--small strong {
  display: block;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.activation-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.activation-gate.is-hidden {
  display: none;
}

.activation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
}

.activation-btn:disabled {
  opacity: 0.84;
  cursor: wait;
}

.activation-gate.is-loading .activation-btn::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: activation-spin 0.9s linear infinite;
}

@keyframes activation-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 780px) {
  .hud {
    width: calc(100vw - 14px);
    left: 7px;
    bottom: 7px;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    padding: 7px;
    border-radius: 12px;
  }

  .hud-block,
  .hud-block--small {
    min-width: 0;
    width: calc(50% - 4px);
  }

  .hud-block--small {
    width: 100%;
  }
}
