/* Speed Test — Cursor and trail styles */

.speedtest-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.speedtest-cursor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #00d4ff 0%, #0066ff 60%, #003a99 100%);
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 8px rgba(0, 212, 255, 1),
        0 0 20px rgba(0, 102, 255, 0.9),
        0 0 40px rgba(0, 212, 255, 0.4);
    animation: stCorePulse 1.5s ease-in-out infinite;
}

.speedtest-cursor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 212, 255, 0.7);
    transform: translate(-50%, -50%);
    animation: stRingRotate 3s linear infinite;
}

.speedtest-cursor-arc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transform: translate(-50%, -50%);
    animation: stArcPulse 2s ease-in-out infinite;
}

@keyframes stCorePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%       { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

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

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

/* Cursor trail canvas overlay */
.speedtest-cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999998;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse), (max-width: 768px) {
    .speedtest-cursor,
    .speedtest-cursor-trail-canvas {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .speedtest-cursor-core,
    .speedtest-cursor-ring,
    .speedtest-cursor-arc {
        animation: none;
    }
}
