* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #d8efff;
  font-family: "Segoe UI", Roboto, Inter, sans-serif;
}

#spaceCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

#hud {
  position: fixed;
  left: 2.5vw;
  bottom: 3.5vh;
  z-index: 5;
  max-width: min(70ch, 82vw);
  text-shadow: 0 0 18px #4fc9ff50;
}

#status {
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  letter-spacing: 0.03em;
}

#subStatus {
  margin-top: 0.3rem;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  opacity: 0.8;
}

#droneOverlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0;
  transition: opacity 700ms ease;
}

#droneOverlay.active {
  opacity: 1;
}

.corner {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 2px solid #6ed6ff99;
}

.tl {
  top: 2.2vh;
  left: 1.3vw;
  border-right: 0;
  border-bottom: 0;
}

.tr {
  top: 2.2vh;
  right: 1.3vw;
  border-left: 0;
  border-bottom: 0;
}

.bl {
  bottom: 2.2vh;
  left: 1.3vw;
  border-right: 0;
  border-top: 0;
}

.br {
  bottom: 2.2vh;
  right: 1.3vw;
  border-left: 0;
  border-top: 0;
}

.scan {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7fe2ffb5, transparent);
  animation: sweep 5s linear infinite;
}

.telemetry {
  position: absolute;
  top: 2.8vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.58rem, 0.85vw, 0.78rem);
  letter-spacing: 0.28em;
  color: #9edfff;
  text-shadow: 0 0 10px #6acfff66;
}

@keyframes sweep {
  from {
    top: 6%;
  }
  to {
    top: 94%;
  }
}
