*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #090807;
}

/* The cursor only vanishes once the script is running and the grid can respond to it */
html.js, html.js body { cursor: none; }

canvas {
  display: block;
  touch-action: none;
}

/* Soft vignette for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    transparent 40%,
    rgba(5, 4, 3, 0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Present for screen readers and search engines, invisible on the canvas */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.notice,
#reveal {
  position: fixed;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  z-index: 2;
  width: max-content;
  max-width: 90vw;
  text-align: center;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.9;
  color: rgba(210, 205, 200, 0.6);
}

.notice a,
#reveal a {
  color: rgba(190, 148, 88, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(190, 148, 88, 0.35);
  cursor: crosshair;
}

.notice a:hover,
#reveal a:hover {
  color: rgba(190, 148, 88, 1);
  border-bottom-color: rgba(190, 148, 88, 0.8);
}

#reveal {
  visibility: hidden;
  opacity: 0;
  transition: opacity 2.6s ease;
}

#reveal.visible {
  visibility: visible;
  opacity: 1;
}

#reveal .reveal-line {
  color: rgba(210, 205, 200, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  html.js, html.js body { cursor: auto; }
  #reveal { transition: none; }
}
