/* ---------- WebGL canvas ---------- */

#binaryRain,
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  /* Never eat pointer events — the DOM above stays fully usable. */
  pointer-events: none;
}

/* Graticule: the measurement grid etched over the whole bay. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  /* Fade the grid out at the centre so it never fights the content. */
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 50%,
    transparent 20%,
    #000 85%
  );
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 20%, #000 85%);
}

/* Soft vignette so text always has contrast over the scene. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 35%,
    var(--vignette) 100%
  );
}
