/* 
 * Final Explosion Animation Styles - BLACK & WHITE VERSION
 * Contains styles for the crazy spinning and shooting effects
 */

/* Crazy spinning animation for the memory fruits */
@keyframes crazy-spin {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(2880deg) translateX(200px) rotate(-2880deg); }
}

.crazy-spinning {
    animation: crazy-spin 2s cubic-bezier(0.2, 0, 0.8, 1) !important;
    transform-origin: center center !important;
    filter: grayscale(100%) !important; /* Ensure grayscale */
}

/* Shooting animation for memory fruits */
@keyframes shoot-outside {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: grayscale(100%);
    }
    100% { 
        transform: translate(var(--end-x), var(--end-y)) scale(0.2);
        opacity: 0;
        filter: grayscale(100%);
    }
}

.shooting-orb {
    position: fixed !important;
    animation: shoot-outside 1.5s cubic-bezier(0.5, 0, 0.75, 0.2) forwards !important;
    filter: grayscale(100%) !important; /* Ensure grayscale */
}

/* Final flash effect - WHITE ONLY */
.final-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Clickable flower styles for final phase - GRAYSCALE */
#flower.clickable-final {
    cursor: pointer !important;
    animation: pulse-flower 2s infinite alternate ease-in-out !important;
    transform-origin: center center !important;
    filter: grayscale(100%) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) !important;
}

@keyframes pulse-flower {
    0% {
        filter: grayscale(100%) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
        transform: scale(1);
    }
    100% {
        filter: grayscale(100%) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
        transform: scale(1.05);
    }
}

/* Enhanced hover effect for the clickable flower - GRAYSCALE */
#flower.clickable-final:hover {
    filter: grayscale(100%) drop-shadow(0 0 25px rgba(255, 255, 255, 1)) !important;
    animation: pulse-flower-hover 1s infinite alternate ease-in-out !important;
}

@keyframes pulse-flower-hover {
    0% {
        filter: grayscale(100%) drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
        transform: scale(1.03);
    }
    100% {
        filter: grayscale(100%) drop-shadow(0 0 30px rgba(255, 255, 255, 1));
        transform: scale(1.08);
    }
}

