/* Metal dedektör özel imleç */
.has-detector-cursor,
.has-detector-cursor * {
    cursor: none !important;
}

#detector-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: auto;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, filter .15s ease;
    will-change: transform;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

#detector-cursor.is-visible {
    opacity: 1;
}

#detector-cursor img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

#detector-cursor.is-active {
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, .55)) drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
    transform-origin: 12% 10%;
}

#detector-cursor.is-press img {
    transform: scale(0.94);
    transform-origin: 12% 10%;
}

#detector-cursor.is-zapping {
    filter: drop-shadow(0 0 10px rgba(125, 211, 252, .9)) drop-shadow(0 0 4px #fff);
}

#detector-fx-layer {
    position: fixed;
    inset: 0;
    z-index: 2147482999;
    pointer-events: none;
    overflow: hidden;
}

.detector-spark {
    position: absolute;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.detector-spark-flash {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #7dd3fc 35%, transparent 70%);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity .12s ease, transform .35s ease-out;
}

.detector-spark-ring {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid rgba(125, 211, 252, .85);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity .1s ease, transform .45s ease-out, border-color .45s;
}

.detector-bolt {
    position: absolute;
    left: 0;
    top: -12px;
    overflow: visible;
    opacity: 0;
    transform-origin: 0 12px;
    filter: drop-shadow(0 0 3px #38bdf8);
    transition: opacity .08s ease;
}

.detector-spark-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #38bdf8;
    opacity: 0;
}

.detector-spark.is-done .detector-spark-flash {
    opacity: 1;
    transform: scale(2.2);
}

.detector-spark.is-done .detector-spark-ring {
    opacity: 1;
    transform: scale(5);
    border-color: rgba(125, 211, 252, 0);
}

.detector-spark.is-done .detector-bolt {
    opacity: 1;
    animation: detector-bolt-fade .45s ease-out forwards;
}

.detector-spark.is-done .detector-spark-dot {
    animation: detector-dot-fly .4s ease-out forwards;
}

@keyframes detector-bolt-fade {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes detector-dot-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.2);
    }
}

@media (pointer: coarse) {
    .has-detector-cursor,
    .has-detector-cursor * {
        cursor: auto !important;
    }
    #detector-cursor,
    #detector-fx-layer {
        display: none !important;
    }
}
