/**
 * Warstwa brandu Euretyk: orby (pod) + puzzle (nad, mix-blend) + cursor trail.
 * Treść: .eu-shell { position:relative; z-index ≥ 1 }.
 *
 * Puzzle stroke ~0.05 — ambient prawie niewidoczny; siatka ożywa przy orbach / glow.
 */

#eu-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: var(--eu-z-orbs);
  pointer-events: none;
  overflow: hidden;
}

#eu-bg-orbs .eu-bg-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(300px, 32vw, 560px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: var(--eu-orb-opacity);
  filter: blur(var(--eu-orb-blur)) saturate(var(--eu-orb-saturate));
  will-change: transform, background;
}

#eu-bg-orbs .eu-bg-orb--1 {
  width: clamp(340px, 35vw, 620px);
}

#eu-bg-orbs .eu-bg-orb--2 {
  width: clamp(300px, 31vw, 540px);
}

#eu-bg-orbs .eu-bg-orb--3 {
  width: clamp(360px, 37vw, 660px);
}

#eu-puzzle-background {
  position: fixed;
  inset: 0;
  z-index: var(--eu-z-atmosphere);
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
  /* stroke = --eu-color-canvas-puzzleStroke (rgba copper 0.05) — zakodowany w data-URI */
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M 70 0 L 98 0 C 98 14, 112 14, 112 0 L 140 0' fill='none' stroke='rgba(176%2C131%2C98%2C0.05)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 70 L 28 70 C 28 84, 42 84, 42 70 L 70 70 L 98 70 C 98 56, 112 56, 112 70 L 140 70' fill='none' stroke='rgba(176%2C131%2C98%2C0.05)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 140 L 28 140 C 28 126, 42 126, 42 140 L 70 140' fill='none' stroke='rgba(176%2C131%2C98%2C0.05)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 0 L 0 28 C 14 28, 14 42, 0 42 L 0 70' fill='none' stroke='rgba(176%2C131%2C98%2C0.05)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 70 0 L 70 28 C 56 28, 56 42, 70 42 L 70 70 L 70 98 C 84 98, 84 112, 70 112 L 70 140' fill='none' stroke='rgba(176%2C131%2C98%2C0.05)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 140 70 L 140 98 C 126 98, 126 112, 140 112 L 140 140' fill='none' stroke='rgba(176%2C131%2C98%2C0.05)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
}

@media (hover: none), (pointer: coarse) {
  #eu-puzzle-background {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  #eu-puzzle-background {
    opacity: 0.65;
  }
}

#eu-cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--eu-z-atmosphere);
  pointer-events: none;
  overflow: hidden;
}
