@keyframes matrix-rain {
    0% { transform: translateY(-100vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes wiggle-left {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes wiggle-right {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px #00FF41; }
    50% { box-shadow: 0 0 40px #00FF41, 0 0 60px #00FF41; }
}

@keyframes monster-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Matrix rain effect */
.matrix-rain {
    animation: matrix-rain linear infinite;
}

/* Rare mode styling */
.rare-mode {
    animation: glow-pulse 2s ease-in-out infinite;
}

.rare-element {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Monster pulse for play button */
.monster-pulse {
    animation: monster-pulse 1.5s ease-in-out infinite;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Energy drink style scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00FF41, #32CD32);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #32CD32, #FFFF00);
}

/* Energy slider styling */
.energy-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #000000, #00FF41);
    border-radius: 4px;
    outline: none;
    border: 2px solid #00FF41;
}

.energy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #FFFF00, #00FF41);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 10px #00FF41;
}

.energy-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #FFFF00, #00FF41);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 10px #00FF41;
}

/* Glow effect for rare elements */
.shadow-glow {
    box-shadow: 0 0 20px #FFFF00;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Button hover effects with ENERGY */
button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

button:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

/* Text input focus with MEME POWER */
input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.5);
    transform: scale(1.02);
}

/* Epic gradient text */
.gradient-text {
    background: linear-gradient(45deg, #00FF41, #FFFF00, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* Canvas element hover with MAXIMUM ENERGY */
.canvas-element:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px #00FF41);
    transform: scale(1.1);
    z-index: 100;
}

/* Special effects for rare pepes */
@keyframes rare-sparkle {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        filter: hue-rotate(270deg);
    }
}

/* Monster Energy can special animation */
.monster-can {
    animation: rare-sparkle 4s ease-in-out infinite;
}

/* Pepe ears wiggle animation */
.animate-wiggle-left {
    animation: wiggle-left 0.5s ease-in-out infinite;
}

.animate-wiggle-right {
    animation: wiggle-right 0.5s ease-in-out infinite;
}

/* Shimmer effect */
.animate-shimmer {
    animation: shimmer 2s ease-in-out infinite;
}

/* Epic background effects */
body {
    background-attachment: fixed;
}

/* Screen shake for maximum energy mode */
.max-energy-shake {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Neon glow text effect */
.neon-glow {
    text-shadow: 
        0 0 5px #00FF41,
        0 0 10px #00FF41,
        0 0 15px #00FF41,
        0 0 20px #00FF41;
}

/* Energy drink can crush animation */
@keyframes crush {
    0% { transform: scale(1); }
    50% { transform: scale(0.8) rotate(5deg); }
    100% { transform: scale(0) rotate(45deg); opacity: 0; }
}

.crush-animation {
    animation: crush 0.5s ease-in-out forwards;
}