body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none !important;
}

body.has-cursor [data-discord-label],
body.has-cursor .copyable {
  cursor: text !important;
}

.click-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  z-index: 9999;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.15s, width 0.15s, height 0.15s, margin 0.15s;
}

.cursor.hover {
  transform: scale(2.2);
  box-shadow: 0 0 18px var(--accent-glow);
}

.cursor.click-pulse {
  transform: scale(0.6);
}

.click-star {
  position: fixed;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--accent-bright);
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  animation: click-star-burst 0.6s var(--ease-out) forwards;
}

.click-ring {
  position: fixed;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  animation: click-ring-expand 0.45s ease-out forwards;
}

@keyframes click-star-burst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

@keyframes click-ring-expand {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

@media (max-width: 640px), (pointer: coarse) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: auto !important;
  }

  .cursor,
  .click-fx-layer {
    display: none !important;
  }
}
