/* Dota 2 Style Rampage Animation */

#rampage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: overlayAppear 0.3s ease-out;
}

#rampage-overlay.fade-out {
    animation: overlayFadeOut 1s ease-in forwards;
}

#rampage-overlay.denied {
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.rampage-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rampage-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rampage-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 2s ease-out infinite;
    opacity: 0;
}

.rampage-star {
    position: absolute;
    animation: starBurst 1.5s ease-out infinite;
    opacity: 0;
    text-shadow: 0 0 20px currentColor;
}

.rampage-text-container {
    text-align: center;
    z-index: 10;
    animation: textAppear 0.5s ease-out;
}

.rampage-kill-text {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.4);
    animation: killTextAppear 0.5s ease-out 0.2s both;
    margin-bottom: 10px;
}

.rampage-main-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 15px;
    line-height: 1;
    animation: rampageTextAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    
    /* Red/gold gradient like Dota 2 */
    background: linear-gradient(180deg, 
        #ff0000 0%, 
        #ff6600 25%, 
        #ffcc00 50%, 
        #ff6600 75%, 
        #ff0000 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Glow effect */
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8))
            drop-shadow(0 0 60px rgba(255, 102, 0, 0.6))
            drop-shadow(0 0 90px rgba(255, 204, 0, 0.4));
    
    /* Text stroke */
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.5);
}

.rampage-main-text.multi-kill {
    background: linear-gradient(180deg, 
        #00ffff 0%, 
        #0099ff 25%, 
        #0066ff 50%, 
        #0099ff 75%, 
        #00ffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8))
            drop-shadow(0 0 60px rgba(0, 153, 255, 0.6));
}

.rampage-main-text.kill-streak {
    background: linear-gradient(180deg, 
        #ff00ff 0%, 
        #cc00ff 25%, 
        #9900ff 50%, 
        #cc00ff 75%, 
        #ff00ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.8))
            drop-shadow(0 0 60px rgba(153, 0, 255, 0.6));
}

.rampage-main-text.first-blood {
    background: linear-gradient(180deg, 
        #ff0000 0%, 
        #cc0000 50%, 
        #ff0000 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8));
    font-size: 6rem;
}

.rampage-main-text.denied-text {
    background: linear-gradient(180deg, 
        #666666 0%, 
        #333333 50%, 
        #666666 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(100, 100, 100, 0.5));
    font-size: 6rem;
}

.rampage-sub-text {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-shadow: 
        0 0 20px rgba(255, 204, 0, 0.8),
        0 0 40px rgba(255, 204, 0, 0.4);
    animation: subTextAppear 0.5s ease-out 1s both;
    margin-top: 15px;
}

.rampage-streak {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    animation: streakAppear 0.5s ease-out 1.5s both;
}

.streak-icon {
    font-size: 3rem;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

.streak-count {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #ffcc00;
    text-shadow: 
        0 0 20px rgba(255, 204, 0, 0.8),
        0 0 40px rgba(255, 204, 0, 0.4);
}

/* Animations */
@keyframes overlayAppear {
    from {
        opacity: 0;
        background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    }
    to {
        opacity: 1;
        background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

@keyframes starBurst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

@keyframes textAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes killTextAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
        letter-spacing: 20px;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 8px;
    }
}

@keyframes rampageTextAppear {
    0% {
        opacity: 0;
        transform: scale(3) rotate(-5deg);
        filter: drop-shadow(0 0 100px rgba(255, 0, 0, 1));
    }
    50% {
        opacity: 1;
        transform: scale(0.9) rotate(2deg);
    }
    70% {
        transform: scale(1.1) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes subTextAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 30px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 12px;
    }
}

@keyframes streakAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fireFlicker {
    from {
        transform: scale(1) rotate(-5deg);
        text-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
    }
    to {
        transform: scale(1.2) rotate(5deg);
        text-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    }
}

/* Screen shake effect */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -10px); }
    20% { transform: translate(10px, 10px); }
    30% { transform: translate(-10px, 10px); }
    40% { transform: translate(10px, -10px); }
    50% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, 5px); }
    70% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, -5px); }
    90% { transform: translate(-2px, -2px); }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .rampage-main-text {
        font-size: 4rem;
        letter-spacing: 8px;
    }
    
    .rampage-kill-text {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .rampage-sub-text {
        font-size: 1.5rem;
        letter-spacing: 6px;
    }
    
    .streak-count {
        font-size: 3rem;
    }
}
