@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }

  .cursor-smoke,
  .cursor-ring,
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
  }

  .cursor-smoke {
    width: 100vw;
    height: 100vh;
  }

  .cursor-ring,
  .cursor-dot {
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(245, 245, 245, 0.88);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.18), inset 0 0 8px rgba(255, 255, 255, 0.08);
    transition: width 180ms ease, height 180ms ease, opacity 160ms ease, border-color 180ms ease;
  }

  .cursor-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  }

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

  .cursor-ring.is-hovering {
    width: 46px;
    height: 46px;
    border-color: rgba(255, 255, 255, 0.62);
  }

  .cursor-ring.is-pressed {
    width: 28px;
    height: 28px;
  }

  @media (prefers-reduced-motion: reduce) {
    .cursor-ring,
    .cursor-dot {
      transition: none;
    }
  }
}
