@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(236, 72, 153, 0.8); }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

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

@keyframes loading {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 100%; }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes chaos-bg {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.header-gradient {
    background: linear-gradient(-45deg, #5B21B6, #2563EB, #EC4899, #10B981);
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
}

.animate-gradient {
    animation: gradient 4s ease infinite;
}

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

.arena-container {
    position: relative;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.arena-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

.fighter-corner {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.vs-text {
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    animation: pulse-glow 1s ease-in-out infinite;
}

.fight-button {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

.fight-button:hover {
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.8);
}

.loading-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.loading-bar {
    height: 8px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #3B82F6);
    border-radius: 4px;
    animation: loading 3s ease-in-out;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s ease-out forwards;
}

.ticker-content {
    animation: ticker 15s linear infinite;
}

.model-card {
    transition: all 0.2s ease;
}

.model-card:hover {
    transform: scale(1.02);
}

.special-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 2px solid #F59E0B !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.winner-text {
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #F59E0B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 2s linear infinite;
}

.glitch-text {
    animation: glitch 0.3s ease infinite;
}

.chaos-bg {
    animation: chaos-bg 2s linear infinite;
}

.chaos-button {
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px;
}

.article-panel {
    font-family: Georgia, 'Times New Roman', serif;
}

.results-panel {
    border: 1px solid rgba(250, 204, 21, 0.3);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .model-card {
        padding: 0.75rem;
    }
    
    .fight-button {
        padding: 0.75rem 2rem;
        font-size: 1.25rem;
    }
    
    .vs-text {
        font-size: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EC4899;
}