:root {
  --aydu-cursor-accent: #c7ff32;
  --aydu-z-cursor: 1200;
}

@property --cursor-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor [data-cursor-hover] {
    cursor: none !important;
  }

  .aydu-custom-cursor {
    --cursor-x: 0px;
    --cursor-y: 0px;
    --cursor-scale: 1;
    position: fixed;
    z-index: var(--aydu-z-cursor);
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--aydu-cursor-accent);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 10px rgba(199, 255, 50, .7);
    opacity: 0;
    pointer-events: none;
    transform: translate(
      calc(var(--cursor-x) - 50%),
      calc(var(--cursor-y) - 50%)
    ) scale(var(--cursor-scale));
    transition: --cursor-scale 180ms cubic-bezier(.16, 1, .3, 1),
      background-color 180ms ease-out,
      box-shadow 180ms ease-out,
      opacity 200ms ease-out;
    will-change: transform, opacity;
  }

  .aydu-custom-cursor.is-ready {
    opacity: 1;
  }

  .aydu-custom-cursor.is-active {
    --cursor-scale: 1.8;
    background: rgba(199, 255, 50, .18);
    box-shadow: 0 0 18px rgba(199, 255, 50, .9);
  }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .aydu-custom-cursor {
    display: none !important;
  }
}
