#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
    gap: 20px;
}

#loading-screen::after {
    content: '🐱 CAT COMBAT';
    color: #ffd700;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.loader {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



@keyframes goldPulse {
    50% {
        filter: sepia(100%) saturate(300%) hue-rotate(10deg);
    }
}

body.buff-gold {
    animation: goldPulse 2s infinite;
    outline: 4px solid gold;
}


.cat-clicker.buff-energy {
    filter: drop-shadow(0 0 20px #00e5ff) drop-shadow(0 0 40px rgba(0, 229, 255, 0.3));
    transform: scale(1.05);
}


@keyframes neonGlow {
    0% {
        filter: hue-rotate(0deg) drop-shadow(0 0 15px red);
    }

    50% {
        filter: hue-rotate(180deg) drop-shadow(0 0 15px blue);
    }

    100% {
        filter: hue-rotate(360deg) drop-shadow(0 0 15px red);
    }
}

.cat-clicker.buff-neon {
    animation: neonGlow 0.8s infinite linear;
}


@keyframes megaShake {
    0% {
        transform: scale(1.15) rotate(0deg);
    }

    25% {
        transform: scale(1.15) rotate(-4deg);
    }

    75% {
        transform: scale(1.15) rotate(4deg);
    }
}

.cat-clicker.buff-mega {
    animation: megaShake 0.25s infinite;
    z-index: 100;
}


.cat-clicker.buff-ghost {
    opacity: 0.5;
    filter: grayscale(100%) blur(1px) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transform: scale(0.9);
}


body.buff-matrix {
    background: #000 !important;
}

.cat-clicker.buff-matrix {
    filter: contrast(200%) grayscale(100%) drop-shadow(0 0 8px #0f0);
}


@keyframes supernovaPulse {
    0% {
        box-shadow: inset 0 0 0 red;
    }

    50% {
        box-shadow: inset 0 0 60px red;
    }
}

body.buff-supernova {
    animation: supernovaPulse 0.4s infinite;
    outline: 5px solid red;
}

.cat-clicker.buff-supernova {
    filter: drop-shadow(0 0 25px red) saturate(300%);
}


@keyframes godMode {
    0% {
        outline-color: red;
    }

    20% {
        outline-color: yellow;
    }

    40% {
        outline-color: lime;
    }

    60% {
        outline-color: cyan;
    }

    80% {
        outline-color: blue;
    }

    100% {
        outline-color: magenta;
    }
}

body.buff-god {
    animation: godMode 1.5s infinite;
    outline: 8px solid white;
}

.cat-clicker.buff-god {
    filter: drop-shadow(0 0 35px white) contrast(1.2) saturate(150%);
}

/* Анимация свечения рулетки */
.wheel-glow-active {
    animation: rainbowGlow 0.8s infinite alternate;
}

@keyframes rainbowGlow {
    0% {
        box-shadow: 0 0 25px #ff0000, 0 0 50px #ff0000;
    }

    33% {
        box-shadow: 0 0 25px #00ff00, 0 0 50px #00ff00;
    }

    66% {
        box-shadow: 0 0 25px #0000ff, 0 0 50px #0000ff;
    }

    100% {
        box-shadow: 0 0 25px #ff00ff, 0 0 50px #ff00ff;
    }
}

/* Пульсация кнопки магазина */
@keyframes shopPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.2);
    }
}