@media (pointer: fine) {
    *, *::before, *::after {
        cursor: none !important;
    }
}

#cursor-dot,
#cursor-ring,
#cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    will-change: transform;
}

#cursor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow:
        0 0 6px var(--accent-primary),
        0 0 14px var(--accent-primary),
        0 0 28px var(--accent-glow);
    transform: translate(-50%, -50%);
    transition:
        width 0.2s var(--transition-smooth),
        height 0.2s var(--transition-smooth),
        background 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.2s ease;
}

#cursor-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-primary);
    box-shadow:
        0 0 8px var(--accent-glow),
        inset 0 0 8px var(--accent-glow);
    transform: translate(-50%, -50%);
    transition:
        width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.2s ease,
        background 0.3s ease;
    background: transparent;
}

#cursor-trail-canvas {
    width: 100vw;
    height: 100vh;
    opacity: 0.9;
}

body.cursor-hover #cursor-dot {
    width: 12px;
    height: 12px;
    background: #ffffff;
    box-shadow:
        0 0 8px #fff,
        0 0 20px var(--accent-primary),
        0 0 40px var(--accent-glow);
}

body.cursor-hover #cursor-ring {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    box-shadow:
        0 0 16px var(--accent-primary),
        0 0 32px var(--accent-glow),
        inset 0 0 16px var(--accent-glow);
}

body.cursor-click #cursor-dot {
    width: 7px;
    height: 7px;
    box-shadow:
        0 0 14px var(--accent-primary),
        0 0 32px var(--accent-primary),
        0 0 64px var(--accent-glow);
}

body.cursor-click #cursor-ring {
    width: 30px;
    height: 30px;
    border-width: 2.5px;
    box-shadow:
        0 0 20px var(--accent-primary),
        0 0 50px var(--accent-glow);
}

body.cursor-text #cursor-dot {
    width: 3px;
    height: 28px;
    border-radius: 2px;
    background: var(--accent-primary);
}

body.cursor-text #cursor-ring {
    opacity: 0;
}

body.cursor-hidden #cursor-dot,
body.cursor-hidden #cursor-ring {
    opacity: 0;
}