/* The single film-grain overlay for the whole page (replaces the separate
   grain layers in both source components). Fixed, never blocks clicks. */

:root {
  /* The noise texture, shared with the curtain's own grain (curtain.css) */
  --grain-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: var(--grain-image);
  background-size: 200px 200px;
}
