/* Custom cursor — PC + fine pointer only */
@media (min-width: 769px) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }

  #custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.12s ease;
    will-change: transform;
  }

  #custom-cursor.is-visible {
    opacity: 1;
  }

  #custom-cursor.is-hidden {
    opacity: 0;
  }

  .custom-cursor__wrap {
    position: relative;
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%);
  }

  .custom-cursor__orbit {
    position: absolute;
    inset: 0;
    animation: cursorOrbitSpin 10s linear infinite;
  }

  .custom-cursor__orbit svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }

  .custom-cursor__orbit-text {
    fill: rgba(255, 212, 0, 0.92);
    font-family: 'Space Grotesk', 'Pretendard', sans-serif;
    font-size: 7.2px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }

  .custom-cursor__ring {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
      0 0 0 1px rgba(255, 212, 0, 0.12),
      inset 0 0 18px rgba(255, 255, 255, 0.04);
    animation: cursorRingSpin 7s linear infinite reverse;
  }

  .custom-cursor__ring::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 212, 0, 0.38);
    animation: cursorRingSpin 14s linear infinite;
  }

  .custom-cursor__core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(255, 255, 255, 0.85);
    transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  }

  .custom-cursor__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0a0a0b;
    line-height: 1;
    transition: color 0.28s ease;
  }

  .custom-cursor__tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #c9a800;
    line-height: 1;
    transition: color 0.28s ease;
  }

  #custom-cursor.is-hover .custom-cursor__wrap {
    transform: translate(-50%, -50%) scale(1.14);
  }

  #custom-cursor.is-hover .custom-cursor__core {
    background: #ffd400;
    box-shadow:
      0 10px 32px rgba(255, 212, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  #custom-cursor.is-hover .custom-cursor__name {
    color: #0a0a0b;
  }

  #custom-cursor.is-hover .custom-cursor__tag {
    color: #0a0a0b;
  }

  #custom-cursor.is-hover .custom-cursor__orbit-text {
    fill: #fff;
  }

  @keyframes cursorOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @keyframes cursorRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .custom-cursor__orbit,
    .custom-cursor__ring,
    .custom-cursor__ring::after {
      animation: none;
    }
  }
}
