.ambient-glow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
}

/* Lightweight CSS sparkles — complements canvas, no extra JS cost */
.ambient-css-sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: ambient-sparkle-pulse 4s ease-in-out infinite;
  box-shadow:
    0 0 6px 2px currentColor,
    0 0 14px 4px currentColor;
}

.ambient-sparkle--1 {
  color: rgba(201, 162, 39, 0.55);
  top: 18%;
  left: 22%;
  animation-delay: 0s;
}
.ambient-sparkle--2 {
  color: rgba(0, 245, 255, 0.45);
  top: 72%;
  left: 68%;
  animation-delay: -1.2s;
}
.ambient-sparkle--3 {
  color: rgba(255, 45, 166, 0.4);
  top: 42%;
  left: 85%;
  animation-delay: -2.4s;
}
.ambient-sparkle--4 {
  color: rgba(255, 176, 32, 0.5);
  top: 58%;
  left: 12%;
  animation-delay: -3.1s;
}

.ambient-sparkle:nth-child(5) {
  top: 8%;
  left: 55%;
  color: rgba(0, 245, 255, 0.35);
  animation-delay: -0.8s;
}
.ambient-sparkle:nth-child(6) {
  top: 88%;
  left: 38%;
  color: rgba(201, 162, 39, 0.4);
  animation-delay: -2s;
}
.ambient-sparkle:nth-child(7) {
  top: 28%;
  left: 78%;
  color: rgba(255, 176, 32, 0.38);
  animation-delay: -1.5s;
}
.ambient-sparkle:nth-child(8) {
  top: 65%;
  left: 48%;
  color: rgba(255, 45, 166, 0.32);
  animation-delay: -3.6s;
}
.ambient-sparkle:nth-child(9) {
  top: 35%;
  left: 8%;
  color: rgba(0, 245, 255, 0.38);
  animation-delay: -2.8s;
}
.ambient-sparkle:nth-child(10) {
  top: 52%;
  left: 92%;
  color: rgba(201, 162, 39, 0.42);
  animation-delay: -0.4s;
}

@keyframes ambient-sparkle-pulse {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow-canvas {
    opacity: 0.5;
  }
  .ambient-sparkle {
    animation: none;
    opacity: 0.35;
    transform: scale(1);
  }
}
