.clicker-game-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.clicker-game-container h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #4facfe;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.score-board {
    text-align: center;
    margin-bottom: 1.5rem;
}

.clicks-count {
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.6);
    line-height: 1;
}

.click-area {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.main-button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 5;
}

.click-visual {
    font-size: 150px;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.main-button:hover .click-visual {
    transform: scale(1.05);
}

.main-button:active .click-visual {
    transform: scale(0.92);
}

/* Tabs */
.game-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-button {
    background: none;
    border: none;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    opacity: 0.6;
}

.tab-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    opacity: 1;
    background: #4facfe;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

/* Upgrades */
.upgrades-area {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.upgrades-list {
    display: grid;
    gap: 0.8rem;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.upgrade-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(79, 172, 254, 0.3);
}

.upgrade-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.upgrade-item .info {
    text-align: left;
}

.upgrade-item .name {
    font-weight: 700;
    font-size: 1rem;
    display: block;
}

.upgrade-item .stats {
    font-size: 0.75rem;
    opacity: 0.6;
}

.upgrade-item .cost {
    background: #4facfe;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Golden Cookie */
.golden-cookie {
    position: absolute;
    font-size: 60px;
    cursor: pointer;
    z-index: 100;
    filter: drop-shadow(0 0 20px gold);
    animation: goldenSpawn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), goldenPulse 1.5s infinite ease-in-out;
    user-select: none;
}

@keyframes goldenSpawn {
    from {
        transform: scale(0) rotate(-180deg);
    }

    to {
        transform: scale(1) rotate(0);
    }
}

@keyframes goldenPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        transform: scale(1);
    }
}

/* Particles */
.particle {
    position: absolute;
    pointer-events: none;
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    z-index: 50;
    animation: particleFly 1s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
}

/* Combo Meter */
.combo-meter {
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.combo-text {
    font-weight: 900;
    color: #f093fb;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
    animation: comboPop 0.2s ease;
}

@keyframes comboPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.4s;
}

.achievement-card.unlocked {
    opacity: 1;
    filter: grayscale(0);
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.achievement-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.achievement-card .title {
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.achievement-card .desc {
    font-size: 0.7rem;
    opacity: 0.6;
    line-height: 1.2;
}

/* Prestige */
.prestige-panel {
    text-align: center;
    padding: 2rem 1rem;
}

.relic-count {
    font-size: 4rem;
    color: #f9d423;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(249, 212, 35, 0.5);
    display: block;
    margin: 1rem 0;
}

.prestige-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.prestige-button {
    background: linear-gradient(45deg, #f9d423, #ff4e50);
    border: none;
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 78, 80, 0.4);
}

.prestige-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 78, 80, 0.6);
}

.prestige-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Skins */
.skins-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.skin-item {
    cursor: pointer;
    padding: 1.5rem;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    width: 120px;
    text-align: center;
}

.skin-item.active {
    border-color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
}

.skin-item.locked {
    opacity: 0.2;
    filter: blur(2px);
    cursor: not-allowed;
}

.skin-item .visual {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.skin-item .name {
    font-weight: bold;
    font-size: 0.8rem;
}

/* Global Animations */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
        pointer-events: none;
    }
}

.idle-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    fontWeight: bold;
    animation: fadeOut 5s forwards;
}

.login-warning {
    text-align: center;
    margin-top: 1.5rem;
    color: #ff4757;
    font-weight: 600;
    opacity: 0.8;
}

/* Scrollbar */
.upgrades-area::-webkit-scrollbar {
    width: 6px;
}

.upgrades-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.upgrades-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}