.cursor-shell {
    position: fixed; left: 0; top: 0; width: 32px; height: 32px;
    z-index: 2147483647; pointer-events: none; opacity: 0;
}
.cursor-shell svg {
    display: block; width: 100%; height: 100%; overflow: visible;
    transform-origin: 7px 27px;
    transform: rotate(var(--cursor-tilt, 0deg));
    filter: drop-shadow(0 2px 3px #14111c88) drop-shadow(0 0 7px #f2a9d5cc);
    transition: transform 140ms ease, filter 180ms ease;
}
.cursor-shell.is-hovering svg {
    transform: rotate(var(--cursor-tilt, 0deg)) scale(1.08);
    filter: drop-shadow(0 1px 1px #14111c88) drop-shadow(0 0 4px #ffffffb3);
}
.cursor-shell.is-clicking svg { transform: scale(.88); }
.cursor-glint { animation: cursor-glint 4s ease-in-out infinite; }
.cursor-shell::after {
    content: ''; position: absolute; top: -9px; left: -4px;
    width: 22px; height: 22px; border: 1px solid #ddd5f6b3;
    border-radius: 50%; opacity: 0;
}
.cursor-shell::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -17px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #f7ddeb45, transparent 65%);
    transform: scale(.8);
    opacity: .85;
    transition: transform 180ms ease, opacity 180ms ease;
}
.cursor-shell.is-hovering::before {
    transform: scale(1.7);
    opacity: 1;
}
.cursor-shell.is-hovering::after {
    opacity: .78;
    animation: cursor-magic-ring 1.1s linear infinite;
}
.cursor-shell.is-pulsing::after { animation: cursor-pulse 360ms ease-out; }
.cursor-trail {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2147483646;
    width: 86px;
    height: 86px;
    pointer-events: none;
    opacity: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #fff2fb8f 0%, #f5a4d96b 21%, #a778ed42 43%, transparent 72%);
    filter: blur(1px);
    transition: opacity 180ms ease, transform 80ms linear;
}
.cursor-spark {
    position: fixed;
    z-index: 2147483647;
    pointer-events: none;
    color: #fff9fd;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 0 12px #fff, 0 0 22px #ed9fcf, 0 0 38px #af7fe6;
    animation: cursor-sparkle 720ms cubic-bezier(.16,.8,.25,1) forwards;
}
@keyframes cursor-glint {
    0%, 25% { transform: translateX(-22px); }
    65%, 100% { transform: translateX(26px); }
}
@keyframes cursor-pulse {
    from { transform: scale(.2); opacity: .7; }
    to { transform: scale(1.3); opacity: 0; }
}
@keyframes cursor-magic-ring {
    from { transform: scale(.65) rotate(0deg); }
    to { transform: scale(1.45) rotate(180deg); opacity: 0; }
}
@keyframes cursor-sparkle {
    from { transform: translate(-50%, -50%) scale(.35) rotate(0); opacity: 1; }
    to { transform: translate(-50%, -90px) scale(1.8) rotate(135deg); opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
    html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
    html.has-custom-cursor .cursor-shell { opacity: 1; }
    html.has-custom-cursor .cursor-trail { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .cursor-shell svg { transition: none; transform: none; }
    .cursor-glint, .cursor-shell.is-pulsing::after, .cursor-shell.is-hovering::after, .cursor-spark { animation: none; }
}
