/* Kursor custom hanya untuk perangkat mouse. Di touch device, elemen disembunyikan total. */
.cursor-indicator {
  display: none;
}

@media (pointer: fine) {
  html,
  html *,
  body * {
    cursor: none !important;
  }
  .cursor-indicator {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    background: #0f9fd2;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0)
      translate(-50%, -50%) scale(0.2);
    transition:
      width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
      height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.35s ease,
      transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .cursor-indicator span {
    display: none;
  }
  .cursor-indicator.is-visible {
    opacity: 1;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0)
      translate(-50%, -50%) scale(1);
  }
  .cursor-indicator.is-hero {
    opacity: 0;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0)
      translate(-50%, -50%) scale(0.2);
  }
  .cursor-indicator.is-drag {
    width: 76px;
    height: 76px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  .cursor-indicator.is-drag span {
    display: block;
  }
  .cursor-indicator.is-click::before,
  .cursor-indicator.is-click::after {
    position: absolute;
    inset: -8px;
    border: 1px solid #0f9fd2;
    border-radius: 50%;
    content: "";
    animation: cursor-ripple 0.55s ease-out both;
  }
  .cursor-indicator.is-click::after {
    animation-delay: 0.08s;
  }
  @keyframes cursor-ripple {
    to {
      opacity: 0;
      transform: scale(2.4);
    }
  }
}
