/* === QUANTUM HUD CURSOR === */
body {
    cursor: none;
}

/* Fallback for touch */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* === CORE DOT (The Eye) === */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #00f3ff;
    position: fixed;
    top: 0;
    left: 0;
    /* Center anchor + 45deg rotation for diamond shape */
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 0 15px #00f3ff;
    mix-blend-mode: difference;
    /* Smart Contrast */
}

/* === OUTER HUD (The Radar) === */
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 243, 255, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999998;
    pointer-events: none;
    /* Diamond Shape */
    border-radius: 4px;
    /* Slight radius for sleekness */
    transform-origin: center;
    /* Animation handled in JS for position, CSS for rotation */
    animation: radarSpin 4s linear infinite;
    mix-blend-mode: difference;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1),
        height 0.3s cubic-bezier(0.19, 1, 0.22, 1),
        border-color 0.3s,
        background-color 0.3s;
}

/* === ANIMATIONS === */
@keyframes radarSpin {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(405deg);
    }

    /* 360 + 45 */
}

@keyframes lockOn {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

/* === INTERACTIVE STATES === */

/* 1. HOVER (LOCK ON) */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: #bc13fe;
    /* Purple Lock */
    background-color: rgba(188, 19, 254, 0.05);
    /* Subtle Fill */
    animation: none;
    /* Stop spinning */
    transform: translate(-50%, -50%) rotate(45deg);
    /* Fixed position */
    border-width: 2px;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.4);
}

body.hovering .cursor-dot {
    background-color: #bc13fe;
    transform: translate(-50%, -50%) rotate(225deg);
    /* Spin fast once */
    transition: transform 0.4s;
}

/* 2. CLICK (BURST) */
body.clicking .cursor-outline {
    width: 30px;
    height: 30px;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 0.1s, height 0.1s;
}