/* Shared themed mouse trails. The script only enables these on fine pointers. */
.mouse-trail-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.mouse-trail-particle {
    position: absolute;
    display: block;
    pointer-events: none;
    user-select: none;
    font-weight: 700;
    line-height: 1;
    animation: mouse-trail-fall linear forwards;
    will-change: transform, opacity;
}

@keyframes mouse-trail-fall {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, var(--trail-distance, 180px), 0)
            rotate(var(--trail-rotation, 180deg)) scale(0.5);
    }
}

body[data-mouse-trail="music"] .mouse-trail-particle {
    font-family: 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif;
    text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

body[data-mouse-trail="games"] .mouse-trail-particle {
    font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
}

body[data-mouse-trail="code"] .mouse-trail-particle,
body[data-mouse-trail="tools"] .mouse-trail-particle {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px currentColor, 0 0 14px currentColor;
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
    .mouse-trail-container {
        display: none;
    }
}
