/**
 * Film grain overlay — static noise texture, always on (cheap).
 * Sits above content, below modals/cursor chrome.
 */

.film-grain {
  position: fixed;
  inset: -20%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  background-repeat: repeat;
}

.film-grain-vignette {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.85;
}

body.fx-disabled .film-grain {
  opacity: 0.32;
}

@media (prefers-reduced-motion: reduce) {
  .film-grain {
    opacity: 0.28;
  }
}

@media (max-width: 600px) {
  .film-grain {
    opacity: 0.26;
    background-size: 200px 200px;
  }
}
