
@media (hover: hover) and (pointer: fine) {

  *, *::before, *::after { cursor: none !important; }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: var(--red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483000;
    will-change: transform;
    display: grid;
    place-items: center;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    transition: width 0.28s ease, height 0.28s ease,
                background-color 0.28s ease, opacity 0.25s ease;
  }

  .cursor-ring::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transition: width 0.28s ease, height 0.28s ease;
  }

  .cursor-hover .cursor-ring {
    width: 44px;
    height: 44px;
  }

  .cursor-down .cursor-ring { width: 18px; height: 18px; }

  .cursor-hidden .cursor-ring { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-ring { transition: opacity 0.25s ease; }
}
