/* Animated light-ray background for regularjon.cloud */

.rj-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 20% 25%, rgba(230, 30, 45, 0.6), transparent 65%),
    radial-gradient(80% 60% at 85% 80%, rgba(10, 30, 40, 0.95), transparent 55%),
    linear-gradient(155deg, #0b1d26 0%, #07090c 55%, #050505 100%);
}

.rj-bg__rays {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  filter: blur(7px) saturate(1.6) brightness(1.2);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.rj-bg__rays.is-on { opacity: 1; }

/* film grain */
.rj-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  .rj-bg__rays { transition: none; }
}
