:root {
  --cursor-dot-size: 12px;
  --cursor-ring-size: 42px;
  --cursor-dot-color: rgba(74, 179, 255, 0.95);
  --cursor-dot-glow: rgba(74, 179, 255, 0.55);
  --cursor-ring-color: rgba(177, 244, 177, 0.32);
  --cursor-ring-border: rgba(191, 255, 191, 0.72);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  z-index: 99999;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    width 220ms ease,
    height 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  will-change: transform, width, height, opacity;
}

.cursor-dot {
  width: var(--cursor-dot-size);
  height: var(--cursor-dot-size);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 28%, transparent 29%),
    radial-gradient(circle, var(--cursor-dot-color) 0%, rgba(53, 153, 255, 0.98) 62%, rgba(25, 103, 210, 0.92) 100%);
  box-shadow:
    0 0 12px var(--cursor-dot-glow),
    0 0 28px rgba(88, 192, 255, 0.34);
}

.cursor-ring {
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  margin-left: 1px;
  margin-top: 1px;
  border-radius: 999px;
  border: 1.5px solid var(--cursor-ring-border);
  background:
    radial-gradient(circle, rgba(220, 255, 220, 0.22) 0%, rgba(212, 255, 212, 0.1) 42%, rgba(212, 255, 212, 0.03) 68%, transparent 100%),
    var(--cursor-ring-color);
  box-shadow:
    0 0 14px rgba(179, 255, 179, 0.18),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
}

body.cursor-visible .cursor-dot,
body.cursor-visible .cursor-ring {
  opacity: 1;
}

body.cursor-hovering .cursor-dot {
  width: 16px;
  height: 16px;
  box-shadow:
    0 0 16px rgba(74, 179, 255, 0.62),
    0 0 34px rgba(88, 192, 255, 0.38);
}

body.cursor-hovering .cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(214, 255, 214, 0.92);
  background:
    radial-gradient(circle, rgba(227, 255, 227, 0.3) 0%, rgba(218, 255, 218, 0.12) 46%, rgba(212, 255, 212, 0.04) 72%, transparent 100%),
    rgba(187, 248, 187, 0.2);
  box-shadow:
    0 0 20px rgba(179, 255, 179, 0.24),
    inset 0 0 14px rgba(255, 255, 255, 0.18);
}

body.cursor-pressing .cursor-dot {
  width: 10px;
  height: 10px;
}

body.cursor-pressing .cursor-ring {
  width: 36px;
  height: 36px;
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
