/* ALPHA DESTROYER - Ultimate Digital Dominance & Simp Obliteration Styles */
@import url('https://fonts.googleapis.com/css2?family=Impact&family=Bebas+Neue:wght@400&family=Inter:wght@400;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Impact', Arial, sans-serif;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 25%, #CC0000 75%, #8B0000 100%);
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Nuclear Warning Patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        45deg,
        #FFC107 0px,
        #FFC107 15px,
        #FF0000 15px,
        #FF0000 30px
    );
    z-index: 1000;
    animation: warningTape 1.5s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        #FF0000 0px,
        #FF0000 15px,
        #FFC107 15px,
        #FFC107 30px
    );
    z-index: 1000;
    animation: warningTape 1.5s linear infinite reverse;
}

/* Command Center Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1A1A1A, #CC0000, #8B0000);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFE135, #FF4500, #CC0000);
    border-radius: 8px;
    border: 2px solid #FF0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF0000, #FFE135, #FF4500);
}

/* Enhanced Apocalyptic Flame Effects */
@keyframes flame {
    0%, 100% {
        text-shadow: 
            0 0 10px #FF4500, 
            0 0 20px #FF4500, 
            0 0 30px #FF0000, 
            0 0 40px #FF0000,
            0 0 50px #8B0000,
            0 0 60px #FFE135;
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    25% {
        text-shadow: 
            0 0 20px #FF4500, 
            0 0 40px #FF4500, 
            0 0 60px #FF0000, 
            0 0 80px #FF0000,
            0 0 100px #8B0000,
            0 0 120px #FFE135;
        transform: scale(1.1) rotate(2deg);
        filter: brightness(1.3);
    }
    50% {
        text-shadow: 
            0 0 30px #FF4500, 
            0 0 60px #FF4500, 
            0 0 90px #FF0000, 
            0 0 120px #FF0000,
            0 0 150px #8B0000,
            0 0 180px #FFE135;
        transform: scale(1.2) rotate(-2deg);
        filter: brightness(1.6);
    }
    75% {
        text-shadow: 
            0 0 20px #FF4500, 
            0 0 40px #FF4500, 
            0 0 60px #FF0000, 
            0 0 80px #FF0000,
            0 0 100px #8B0000,
            0 0 120px #FFE135;
        transform: scale(1.1) rotate(1deg);
        filter: brightness(1.3);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 
            0 0 20px #CC0000,
            0 0 40px #CC0000,
            0 0 60px #CC0000,
            inset 0 0 20px rgba(255, 0, 0, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 40px #FF0000,
            0 0 80px #FF0000,
            0 0 120px #FF0000,
            inset 0 0 40px rgba(255, 0, 0, 0.4);
        transform: scale(1.02);
    }
}

@keyframes nuclear-glow {
    0% {
        text-shadow: 
            0 0 10px #FF0000,
            0 0 20px #FF0000,
            0 0 30px #FF0000,
            0 0 40px #FFE135,
            0 0 50px #FF4500;
        filter: brightness(1);
    }
    50% {
        text-shadow: 
            0 0 20px #FF0000,
            0 0 40px #FF0000,
            0 0 60px #FF0000,
            0 0 80px #FFE135,
            0 0 100px #FF4500,
            0 0 120px #CC0000;
        filter: brightness(1.5);
    }
    100% {
        text-shadow: 
            0 0 30px #FF0000,
            0 0 60px #FF0000,
            0 0 90px #FF0000,
            0 0 120px #FFE135,
            0 0 150px #FF4500,
            0 0 180px #CC0000;
        filter: brightness(2);
    }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0) translateY(0); }
    10% { transform: translateX(-5px) translateY(-2px) rotate(0.5deg); }
    20% { transform: translateX(5px) translateY(2px) rotate(-0.5deg); }
    30% { transform: translateX(-3px) translateY(-1px) rotate(0.3deg); }
    40% { transform: translateX(3px) translateY(1px) rotate(-0.3deg); }
    50% { transform: translateX(-4px) translateY(-2px) rotate(0.4deg); }
    60% { transform: translateX(4px) translateY(2px) rotate(-0.4deg); }
    70% { transform: translateX(-2px) translateY(-1px) rotate(0.2deg); }
    80% { transform: translateX(2px) translateY(1px) rotate(-0.2deg); }
    90% { transform: translateX(-1px) translateY(0px) rotate(0.1deg); }
}

@keyframes warningFlash {
    0%, 50% { 
        color: #FFC107; 
        text-shadow: 0 0 20px #FFC107, 0 0 40px #FF4500;
    }
    25%, 75% { 
        color: #FF0000; 
        text-shadow: 0 0 30px #FF0000, 0 0 60px #FF4500, 0 0 90px #FFE135;
    }
}

@keyframes warningTape {
    0% { transform: translateX(0); }
    100% { transform: translateX(30px); }
}

@keyframes airRaidSiren {
    0%, 100% { 
        background: linear-gradient(45deg, #FFE135, #FF4500, #CC0000);
        transform: scale(1);
    }
    25% { 
        background: linear-gradient(45deg, #FF0000, #FFE135, #FF4500);
        transform: scale(1.05);
    }
    50% { 
        background: linear-gradient(45deg, #CC0000, #FF0000, #FFE135);
        transform: scale(1.1);
    }
    75% { 
        background: linear-gradient(45deg, #FF4500, #CC0000, #FF0000);
        transform: scale(1.05);
    }
}

@keyframes obliteration {
    0% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1) saturate(1);
    }
    25% { 
        transform: scale(1.2) rotate(10deg);
        filter: brightness(1.5) saturate(1.5);
    }
    50% { 
        transform: scale(0.8) rotate(-10deg);
        filter: brightness(2) saturate(2);
    }
    75% { 
        transform: scale(1.3) rotate(5deg);
        filter: brightness(1.8) saturate(1.8);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1) saturate(1);
    }
}

@keyframes victoryPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 225, 53, 0.6);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 0 60px rgba(255, 225, 53, 1);
    }
}

/* Enhanced Slider Styling for Maximum Destruction */
.dominance-slider, .obliteration-slider {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, 
        #FFD700 0%, 
        #FF6B35 15%, 
        #FF4500 30%, 
        #CC0000 45%, 
        #8B0000 60%, 
        #FF0000 75%,
        #000000 90%,
        #FFFFFF 100%
    );
    height: 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid #FFE135;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.dominance-slider::-webkit-slider-thumb, 
.obliteration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: radial-gradient(circle, #FFFFFF, #FFE135, #FF0000, #8B0000);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 6px solid #FF0000;
    box-shadow: 
        0 0 20px #FF0000,
        0 0 40px #FFE135,
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.obliteration-slider::-webkit-slider-thumb {
    background: radial-gradient(circle, #FF0000, #8B0000, #000000);
    box-shadow: 
        0 0 30px #FF0000,
        0 0 60px #FFE135,
        0 0 90px #FF4500,
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: nuclear-glow 2s infinite ease-in-out;
}

/* Enhanced Button Devastation Effects */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.5);
}

button:active {
    transform: translateY(0);
    animation: screenShake 0.3s ease-in-out;
}

/* Enhanced Destroyer Button War Effects */
.destroyer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.8s;
    z-index: 1;
}

.destroyer-button:hover::before {
    left: 100%;
}

/* Nuclear Material Warning Styling */
.nuclear-warning {
    background: repeating-linear-gradient(
        45deg,
        #FFC107 0px,
        #FFC107 12px,
        #FF0000 12px,
        #FF0000 24px
    );
    border: 6px solid #FF0000;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: pulse-red 2s infinite;
}

/* Enhanced Typography */
.font-impact {
    font-family: 'Impact', 'Bebas Neue', Arial Black, sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.font-bebas {
    font-family: 'Bebas Neue', 'Impact', Arial Black, sans-serif;
    letter-spacing: 2px;
}

/* Enhanced Metallic Effects */
.metallic-gold {
    background: linear-gradient(45deg, #FFD700, #FFE135, #FF6B35, #FFD700, #E5E4E2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metallicShine 4s ease-in-out infinite;
}

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

/* Enhanced Blood Effects */
.blood-drip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 6px;
    height: 30px;
    background: linear-gradient(180deg, #8B0000, rgba(139, 0, 0, 0.5), transparent);
    transform: translateX(-50%);
    animation: bloodDrip 5s infinite ease-in-out;
}

@keyframes bloodDrip {
    0%, 85% { height: 0; opacity: 0; }
    10%, 75% { height: 30px; opacity: 1; }
}

/* Enhanced Radar Effects */
.radar-scan {
    position: relative;
    overflow: hidden;
}

.radar-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 69, 0, 0.2) 40%, 
        rgba(255, 0, 0, 0.8) 50%, 
        rgba(255, 69, 0, 0.2) 60%, 
        transparent 100%
    );
    transform: translateX(-100%);
    animation: radarSweep 3s ease-in-out infinite;
}

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

/* Enhanced Achievement Effects */
.achievement-badge {
    position: relative;
    background: radial-gradient(circle at center, #FFD700, #FF6B35, #CC0000, #8B0000);
    border: 4px solid #FFE135;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 107, 53, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.achievement-badge::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #FFD700, #FF6B35, #CC0000, #FFD700);
    border-radius: inherit;
    z-index: -1;
    animation: achievementGlow 4s ease-in-out infinite;
}

@keyframes achievementGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Enhanced Tombstone Effects */
.tombstone {
    position: relative;
    background: linear-gradient(180deg, #2D2D2D, #1A1A1A, #000000);
    border: 3px solid #8B0000;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(139, 0, 0, 0.4);
}

.tombstone::before {
    content: 'RIP';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #8B0000;
    text-shadow: 0 0 10px #8B0000;
}

/* Enhanced Input Styling */
input[type="number"], input[type="text"], textarea, select {
    transition: all 0.4s ease;
    position: relative;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #FF0000 !important;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.6),
        inset 0 0 15px rgba(255, 69, 0, 0.3);
    transform: scale(1.03);
}

/* Screen Shake Class */
.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

/* Final Boss Section */
.final-boss-section {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 69, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 225, 53, 0.3) 0%, transparent 70%),
        linear-gradient(135deg, #1A1A1A 0%, #8B0000 50%, #CC0000 100%);
    border: 8px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.final-boss-section::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #FFD700, #FF0000, #FFE135, #CC0000, #FFD700);
    border-radius: inherit;
    z-index: -1;
    animation: final-boss-border 4s linear infinite;
}

@keyframes final-boss-border {
    0%, 100% { 
        background: linear-gradient(45deg, #FFD700, #FF0000, #FFE135, #CC0000, #FFD700);
    }
    25% { 
        background: linear-gradient(135deg, #FF0000, #FFD700, #CC0000, #FFE135, #FF0000);
    }
    50% { 
        background: linear-gradient(225deg, #FFE135, #CC0000, #FFD700, #FF0000, #FFE135);
    }
    75% { 
        background: linear-gradient(315deg, #CC0000, #FFE135, #FF0000, #FFD700, #CC0000);
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .font-impact {
        font-size: 0.85em;
        letter-spacing: 1px;
    }
    
    button {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .destruction-card {
        margin: 8px 0;
    }
    
    body::before, body::after {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .font-impact {
        font-size: 0.75em;
        letter-spacing: 0.5px;
    }
}