/* ═══ Custom YoRHa Cursor Styles ═══ */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--text, #494539);
    pointer-events: none;
    z-index: 2147483647;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, background 0.3s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    background: transparent;
    pointer-events: none;
    z-index: 2147483646;
    opacity: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.cursor-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--text, #494539);
    border-style: solid;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor-corner.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.cursor-corner.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.cursor-corner.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.cursor-corner.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.custom-cursor.active, 
.custom-cursor-follower.active { 
    opacity: 1; 
}

/* ═══ Hover State (Lock On) ═══ */
.custom-cursor-follower.hover .cursor-corner {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.custom-cursor.hover { 
    transform: translate(-50%, -50%) scale(1.5);
    background: #fff !important; 
}

.custom-cursor-follower.hover {
    animation: cursorGlitch 0.4s infinite alternate;
}

@keyframes cursorGlitch {
    0% { opacity: 1; transform: translate(-50%, -50%) skew(0deg); }
    10% { opacity: 0.8; transform: translate(-52%, -48%) skew(2deg); }
    20% { opacity: 1; transform: translate(-50%, -50%) skew(0deg); }
    30% { opacity: 0.9; transform: translate(-49%, -51%) skew(-1deg); }
    100% { opacity: 1; transform: translate(-50%, -50%) skew(0deg); }
}

/* Hide system cursor globally */
body {
    cursor: none !important;
}

/* Ensure interactive elements also hide cursor */
a, button, input, textarea, [role="button"], summary {
    cursor: none !important;
}
