/* WinEffects 2.0: High-Fidelity Finishers CSS */

/* --- Digital Dissolve 2.0 --- */
.particle-data {
    position: absolute;
    width: 3px;
    height: 12px;
    background: var(--neon-cyan);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    animation: dissolve-data 1s ease-out forwards;
}

@keyframes dissolve-data {
    0% { transform: translate(0, 0) scaleY(1); opacity: 1; filter: brightness(2); }
    100% { transform: translate(var(--dx), var(--dy)) scaleY(0); opacity: 0; filter: brightness(5); }
}

.token-hidden {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Neon Overdrive 2.0 --- */
.winning-overdrive {
    animation: neon-bloom-2 0.4s ease-in-out infinite;
    z-index: 50;
    box-shadow: 0 0 40px var(--neon-magenta), inset 0 0 20px var(--neon-magenta) !important;
}

@keyframes neon-bloom-2 {
    0%, 100% { filter: brightness(1.2) drop-shadow(0 0 10px var(--neon-magenta)); transform: scale(1.05); }
    50% { filter: brightness(3) drop-shadow(0 0 40px var(--neon-magenta)); transform: scale(1.15); }
}

#screenFlash {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: white;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
}

.flash-trigger {
    animation: flash-pulse 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes flash-pulse {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

#shockwave {
    position: fixed;
    width: 100px; height: 100px;
    border: 4px solid var(--neon-magenta);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.wave-trigger {
    animation: wave-expand 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes wave-expand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 20px; }
    100% { transform: translate(-50%, -50%) scale(25); opacity: 0; border-width: 0px; }
}

/* --- System Breach 2.0 --- */
.glitch-active {
    animation: jitter-intense 0.15s infinite;
}

@keyframes jitter-intense {
    0% { transform: translate(0); }
    25% { transform: translate(-3px, 2px); }
    50% { transform: translate(3px, -2px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

.chromatic-aberration {
    filter: drop-shadow(2px 0 0 rgba(255,0,0,0.5)) drop-shadow(-2px 0 0 rgba(0,255,255,0.5));
}

#glitchOverlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: repeating-linear-gradient(0deg, rgba(0,229,255,0.05), rgba(0,229,255,0.05) 1px, transparent 2px);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s;
}

.breach-logic {
    color: var(--neon-magenta) !important;
    text-shadow: 2px 2px #00ffff, -2px -2px #ffff00 !important;
    filter: contrast(2) brightness(1.5) hue-rotate(180deg);
}
