.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  background: radial-gradient(circle, rgba(58, 164, 220, 0.6), rgba(58, 164, 220, 0) 70%);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease, width 0.22s ease, height 0.22s ease, background 0.22s ease;
  will-change: transform;
}

.cursor-glow.is-visible { opacity: 1; }

.cursor-glow.is-hot {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  background: radial-gradient(circle, rgba(58, 164, 220, 0.45), rgba(58, 164, 220, 0) 72%);
}

.cursor-glow.is-press { transform: scale(0.8); }

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1px solid rgba(58, 164, 220, 0.45);
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.cursor-ring.is-visible { opacity: 0.6; }
.cursor-ring.is-hot {
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-color: rgba(58, 164, 220, 0.7);
}

body.has-cursor-glow [data-glow]:hover,
body.has-cursor-glow a:hover,
body.has-cursor-glow button:hover {
  --glow-active: 1;
}

@media (pointer: coarse) {
  .cursor-glow,
  .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-ring { display: none; }
}
