/* Hide default cursor on non-touch devices */
@media (hover: hover) and (pointer: fine) {

    /* Only hide cursor on body/html, but let input elements show default if needed (text cursor) */
    /* Actually for full effect we usually hide everywhere, but inputs are tricky. */
    /* Let's try hiding everywhere first. */
    * {
        cursor: none !important;
    }
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(calc(var(--x, -100px) - 50%), calc(var(--y, -100px) - 50%), 0);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    /* Click through */
    display: none;
    /* Hidden by default until JS creates instances */
}

/* Only show on devices that support hover */
@media (hover: hover) and (pointer: fine) {

    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color, #00f3ff);
    box-shadow: 0 0 10px var(--primary-color, #00f3ff);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid #006EB7;
    border-radius: 50%;
    /* transform already inherited, but if overridden here previously, remove it */
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    box-shadow: 0 0 10px rgba(0, 110, 183, 0.5);
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 110, 183, 0.1);
    border-color: #0091ea;
    box-shadow: 0 0 20px rgba(0, 145, 234, 0.6);
}

/* Hover State */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--secondary-color, #00ff88);
}

body.hovering .cursor-dot {
    background-color: var(--secondary-color, #00ff88);
    transform: translate3d(calc(var(--x, -100px) - 50%), calc(var(--y, -100px) - 50%), 0) scale(1.5);
}