/* ================================================================
   EFFECTS — Background, Canvas, Grid Overlay, Corners, Ambient
   ================================================================ */

.hud-root {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1628 0%, #0a0e1a 50%, #0a1220 100%);
}

/* Starfield canvas and grid overlay share the same fixed base */
#starfield,
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-lines { opacity: 0.1; }

.scan-lines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.5) 2px,
    rgba(0, 229, 255, 0.5) 4px
  );
}

/* ── Corner Decorations ── */

.corner-decoration {
  position: fixed;
  z-index: 10;
  width: 64px;
  height: 64px;
  pointer-events: none;
  border-color: rgba(0, 229, 255, 0.4);
  border-style: solid;
}

.corner-decoration span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--hud-cyan);
  box-shadow: 0 0 10px var(--hud-cyan);
}

.corner-decoration.top-left     { top: 16px; left: 16px;    border-width: 2px 0 0 2px; }
.corner-decoration.top-right    { top: 16px; right: 16px;   border-width: 2px 2px 0 0; }
.corner-decoration.bottom-left  { bottom: 16px; left: 16px;  border-width: 0 0 2px 2px; }
.corner-decoration.bottom-right { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }

.corner-decoration.top-left span    { top: -1px;    left: -1px;  }
.corner-decoration.top-right span   { top: -1px;    right: -1px; }
.corner-decoration.bottom-left span { bottom: -1px; left: -1px;  }
.corner-decoration.bottom-right span{ bottom: -1px; right: -1px; }

/* ── Ambient glow blobs ── */

.ambient {
  position: fixed;
  width: 384px;
  height: 384px;
  pointer-events: none;
  border-radius: 999px;
}

.ambient-top {
  top: 0;
  left: 25%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
}

.ambient-bottom {
  bottom: 0;
  right: 25%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.03) 0%, transparent 70%);
}
