#nebula, #stars { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#nebula { z-index: 0; background: radial-gradient(1200px 700px at 30% 40%, #2a1a6b 0%, transparent 60%), radial-gradient(900px 600px at 80% 70%, #0b4a6b 0%, transparent 60%), #04050c; }
#stars { z-index: 1; }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.65) 100%); }
.grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }
