@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #ff0000, -0.05em -0.025em 0 #0000ff;
        transform: translate(0);
    }
    25% {
        text-shadow: -0.05em -0.025em 0 #ff0000, 0.025em 0.025em 0 #0000ff;
        transform: translate(-0.025em, 0.025em);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 #ff0000, 0 -0.05em 0 #0000ff;
        transform: translate(0.025em, 0);
    }
    75% {
        text-shadow: -0.05em -0.025em 0 #ff0000, 0 0.025em 0 #0000ff;
        transform: translate(-0.025em, -0.025em);
    }
    100% {
        text-shadow: 0.05em 0 0 #ff0000, -0.05em -0.025em 0 #0000ff;
        transform: translate(0);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(10px) rotate(2deg);
    }
}

@keyframes particle-float {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0; 
    }
    50% { 
        opacity: 0.5; 
    }
    100% { 
        transform: translateY(-100vh) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes giftPulse {
    0% { transform: scale(0.5); opacity: 0; }
    20% { transform: scale(1.1); opacity: 1; }
    40% { transform: scale(0.95); opacity: 1; }
    60% { transform: scale(1.05); opacity: 1; }
    80% { transform: scale(0.98); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: rotateY(180deg) translateX(0); }
    25% { transform: rotateY(180deg) translateX(-10px); }
    75% { transform: rotateY(180deg) translateX(10px); }
}

/* Apply animations to elements */
#splash-screen h1::before {
    content: 'MINDSEYE';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: glitch 3s infinite linear alternate-reverse;
    opacity: 0.5;
}

.board-select {
    animation: float 4s ease-in-out infinite;
    animation-delay: -1s;
}

#splash-screen button {
    animation: float 4s ease-in-out infinite;
    animation-delay: -2s;
}

.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #0ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.tile.shake {
    animation: shake 0.5s;
} 