html:not(.cursor-disabled) * { cursor: none !important; }
html.cursor-disabled #peak-cursor,
html.cursor-disabled #peak-cursor-ring,
html.cursor-disabled .peak-trail { display: none !important; }

#peak-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: #a855f7;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 10px rgba(168,85,247,0.8), 0 0 20px rgba(168,85,247,0.4);
    mix-blend-mode: screen;
}

#peak-cursor.hovering {
    width: 20px;
    height: 20px;
    background: #c084fc;
    box-shadow: 0 0 18px rgba(192,132,252,0.9), 0 0 36px rgba(168,85,247,0.5);
}

#peak-cursor.clicking {
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 0 24px rgba(255,255,255,0.9), 0 0 48px rgba(168,85,247,0.8);
}

#peak-cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(168,85,247,0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s cubic-bezier(0.25,0.46,0.45,0.94),
                width 0.25s ease, height 0.25s ease,
                border-color 0.2s ease, opacity 0.2s ease;
}

#peak-cursor-ring.hovering {
    width: 50px;
    height: 50px;
    border-color: rgba(192,132,252,0.7);
}

#peak-cursor-ring.clicking {
    width: 28px;
    height: 28px;
    border-color: rgba(255,255,255,0.8);
}

.peak-trail {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
    0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.2); }
}

@media (pointer: coarse) {
    * { cursor: auto !important; }
    #peak-cursor,
    #peak-cursor-ring { display: none !important; }
}
