.cursor-magic {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10002;
    pointer-events: none !important;
    opacity: 0;
}
.cursor-magic.is-visible { opacity: 1; }
.cursor-magic-dot,.cursor-magic-ring {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .18s, height .18s, background-color .18s;
}
.cursor-magic-dot { width: 6px; height: 6px; background: var(--color-teal); box-shadow: 0 0 10px color-mix(in srgb, var(--color-teal) 45%, transparent); }
.cursor-magic-ring { width: 32px; height: 32px; border: 1px solid var(--color-teal); }
.cursor-magic-ring-outer { width: 52px; height: 52px; border-color: color-mix(in srgb, var(--color-teal) 40%, transparent); }
.cursor-magic.is-interactive .cursor-magic-ring { background: color-mix(in srgb, var(--color-teal) 10%, transparent); }
.cursor-magic.is-pressed .cursor-magic-dot { width: 3px; height: 3px; }
.cursor-magic.is-pressed .cursor-magic-ring { width: 51px; height: 51px; }
.cursor-magic.is-pressed .cursor-magic-ring-outer { width: 78px; height: 78px; }
.cursor-spark {
    position: fixed;
    z-index: 10001;
    pointer-events: none !important;
    color: var(--color-teal);
    line-height: 1;
    text-shadow: 0 0 5px currentColor;
    animation: cursor-spark-fade .95s ease-out forwards;
}
.cursor-spark.is-dust { border-radius: 50%; background: currentColor; }
@keyframes cursor-spark-fade {
    0% { opacity: .9; transform: translate(-50%, -50%) scale(.4) rotate(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y))) scale(.1) rotate(100deg); }
}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce) {
    .cursor-magic,.cursor-spark { display:none; }
}
