/* Varkle grain: the one recipe for film grain on every Varkle surface.
   Guide: "Varkle Brand Assets/README.md" (Texture: grain). Change the look here, nowhere else.

   Usage: put <div class="vk-grain" aria-hidden="true"></div> in the page and keep the content
   above it (position:relative; z-index:2 or higher). Grain sits behind text, logos and forms, never over them.
     .vk-grain          dark surfaces (cream specks), fixed to the viewport
     .vk-grain--ink     light surfaces (ink specks)
     .vk-grain--in      fills its positioned parent instead of the viewport (cards, tiles, images)
   Static on purpose: no animation, so nothing to switch off for reduced motion. */

.vk-grain {
  position: fixed; inset: 0; z-index: var(--vk-grain-z, 1); pointer-events: none;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.vk-grain--ink { opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.106 0 0 0 0 0.106 0 0 0 0 0.133 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vk-grain--in { position: absolute; }
