@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor summary {
    cursor: none;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    margin: -4px 0 0 -4px;
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(21, 20, 20, 0.65);
    border-radius: 50%;
    margin: -19px 0 0 -19px;
    display: grid;
    place-items: center;
  }

  .cursor-label {
    opacity: 0;
    color: var(--ink);
    font: 8px 'DM Mono', monospace;
    letter-spacing: 0.05em;
    transform: rotate(-12deg);
    transition: opacity 0.2s ease;
  }

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

  body.cursor-hover .cursor-ring {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-color: var(--pink);
    background: rgba(242, 93, 104, 0.12);
  }

  body.cursor-scrolling .cursor-ring {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-color: var(--pink);
    background: rgba(244, 211, 94, 0.62);
    animation: cursor-spin 0.7s ease-in-out infinite alternate;
  }

  body.cursor-scrolling .cursor-dot {
    background: var(--ink);
  }

  body.cursor-scrolling .cursor-label {
    opacity: 1;
  }

  @keyframes cursor-spin {
    from { transform: translate3d(0, 0, 0) rotate(-12deg); }
    to { transform: translate3d(0, 0, 0) rotate(12deg); }
  }
}
