@media (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled * {
    cursor: none !important;
  }

  .cursor-ring,
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition:
      opacity .14s ease,
      width .16s ease,
      height .16s ease,
      border-color .16s ease,
      background-color .16s ease,
      box-shadow .16s ease;
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(183, 104, 207, .82);
    border-radius: 50%;
    background: rgba(183, 104, 207, .025);
    box-shadow: 0 0 20px rgba(183, 104, 207, .12);
  }

  .cursor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d77bea;
    box-shadow: 0 0 12px rgba(215, 123, 234, .62);
  }

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

  body.cursor-active .cursor-ring {
    width: 46px;
    height: 46px;
    border-color: rgba(225, 143, 242, .96);
    background: rgba(183, 104, 207, .07);
    box-shadow: 0 0 24px rgba(215, 123, 234, .22);
  }

  body.cursor-pressed .cursor-ring {
    width: 30px;
    height: 30px;
    background: rgba(183, 104, 207, .16);
  }
}

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