/* =========================================================
   CUSTOM GLASSMORPHIC CURSOR ("GLASSMOUSE")
   ========================================================= */

/* Hide the native cursor only when desktop-pointer support was detected. */
body, body * { cursor: none !important; }
html.glassmouse-disabled body,
html.glassmouse-disabled body * {
    cursor: revert !important;
}
html.glassmouse-disabled #tracker {
    display: none !important;
}

/* Outer tracker follows the mouse instantly (no size scaling here). */
#tracker {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647; /* always above every other element */
    pointer-events: none;
    will-change: transform;
    transition: transform .02s linear;
    opacity: 0;
}

/* Glassmorphic custom cursor (radius 25px from center -> 50px circle).
   This element is scaled for size changes, so its outline scales too. */
#cursor {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px; /* center on the pointer */
    border-radius: 50%;
    will-change: transform;
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), outline-color .3s ease, opacity .25s ease;
    --cutout-r: 0px; /* visible center cutout radius */
    --load-progress: 0.05turn; /* load arc progress, top -> clockwise */
    --load-ring-inner: 16.25px;
    --load-ring-outer: 24.75px;
    /* White 3px outline that fades in when over glassmorphic elements,
       and fades out when leaving. Shrinks with the cursor's scale. */
    outline: 3px solid rgba(255, 255, 255, 0);
    outline-offset: 4px;
}

#cursor.glass-hover {
    outline-color: rgba(255, 255, 255, 0.9);
}

#cursor.prohibited-hover {
    outline-color: rgba(255, 255, 255, 0);
}

#cursor .dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.10);
    border: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Punch a real transparent hole through the center. */
    -webkit-mask-image: radial-gradient(circle at center,
        transparent var(--cutout-r),
        #000 var(--cutout-r));
            mask-image: radial-gradient(circle at center,
        transparent var(--cutout-r),
        #000 var(--cutout-r));
    transition: opacity .18s ease;
}

#cursor.load-hover .dot,
#cursor.infinite-hover .dot,
#cursor.text-mode .dot {
    opacity: 0;
}

