/* /security-systems/ cursor: a shield on patrol (js/security-cursor.js).
 *
 * The shield is the signal green of a request that passes; over a link or
 * control it turns the cyan of an inspection.
 */

/* Nothing applies until the script sets .ss-cursor-on: if it fails to load,
 * the native pointer stays rather than vanishing with no replacement. */
.ss-cursor-on,
.ss-cursor-on a,
.ss-cursor-on button,
.ss-cursor-on summary,
.ss-cursor-on code,
.ss-cursor-on input,
.ss-cursor-on select,
.ss-cursor-on textarea {
    cursor: none;
}

.ss-cursor-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}
.ss-cursor-visible {
    opacity: 1;
}

.ss-cursor-trace {
    fill: none;
    stroke: rgba(0, 229, 138, 0.45);
    stroke-width: 1.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.ss-cursor-shield {
    fill: rgba(5, 7, 11, 0.5);
    stroke: #00e58a;
    stroke-width: 1.6;
    stroke-linejoin: round;
    transition:
        stroke 0.12s ease-out,
        fill 0.12s ease-out;
}
.ss-cursor-core {
    fill: #00e58a;
    transition: fill 0.12s ease-out;
}
.ss-cursor-triggered .ss-cursor-shield {
    stroke: #00ccff;
    fill: rgba(0, 204, 255, 0.22);
}
.ss-cursor-triggered .ss-cursor-core {
    fill: #b3f0ff;
}

.ss-cursor-ring {
    fill: none;
    stroke: #00ccff;
    stroke-width: 1.4;
    animation: ss-cursor-ring 0.5s ease-out forwards;
}
@keyframes ss-cursor-ring {
    from {
        r: 10;
        opacity: 0.9;
    }
    to {
        r: 28;
        opacity: 0;
    }
}
