#cursor-dot, #cursor-circle, #cursor-trail {
  z-index: 2147483647 !important; /* максимально возможный z-index */
}
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  #cursor-dot {
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2147483647;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  }

  #cursor-circle {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0,0,0,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2147483646;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  }

  #cursor-star {
    width: 10px;
    height: 10px;
    position: fixed;
    pointer-events: none;
    z-index: 2147483647;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  #cursor-star svg {
    width: 100%;
    height: 100%;
  }

  #cursor-dot.hover {
    opacity: 0;
  }

  #cursor-circle.hover {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.8);
  }

  #cursor-star.hover {
    opacity: 1;
    animation: star-spin 3s linear infinite;
  }

  @keyframes star-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
  }

  #cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2147483645;
  }
}