/* Base-website-only styles. See STYLE_GUIDE.md for the full design system. */

/* ---------- Perspective grid floor (section 2: Textures & Patterns) ---------- */
.perspective-grid {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 300%;
  height: 75%;
  transform: translateX(-50%) perspective(500px) rotateX(60deg);
  transform-origin: top center;
  background-image:
    linear-gradient(transparent 95%, #ff00ff 95%),
    linear-gradient(90deg, transparent 95%, #ff00ff 95%);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  opacity: 0.45;
}

/* ---------- Global CRT scanlines ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: linear-gradient(rgba(18, 16, 20, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  mix-blend-mode: multiply;
}

/* ---------- Subtle RGB chromatic aberration ---------- */
.rgb-aberration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 51;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.06),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.06)
  );
  mix-blend-mode: screen;
  opacity: 0.35;
}

/* ---------- Reduced motion: kill the pulse/aberration for users who opt out ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
  .rgb-aberration {
    display: none;
  }
}

/* ---------- Selection: stay on brand ---------- */
::selection {
  background: #ff00ff;
  color: #090014;
}
