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

body {
    font-family: 'Fredoka', cursive;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4a, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffd700;
}

.main-game {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.diddy-container {
    position: relative;
    cursor: pointer;
}

.diddy-clickable {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffd700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
    transition: all 0.2s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.diddy-clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 70px rgba(255, 215, 0, 0.6);
}

.diddy-clickable:active {
    transform: scale(0.95);
}

.click-effect {
    position: absolute;
    pointer-events: none;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.click-effect.show {
    opacity: 1;
    transform: translateY(-50px);
}

.upgrades-section {
    margin-top: 50px;
}

.upgrades-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.upgrade-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upgrade-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.upgrade-item:hover::before {
    left: 100%;
}

.upgrade-item:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.upgrade-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-item.disabled:hover {
    transform: none;
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: none;
}

.upgrade-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.upgrade-cost {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
}

.upgrade-effect {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2px;
}

.upgrade-count {
    background: #ffd700;
    color: #1a1a2e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 10px 15px;
    }
    
    .diddy-clickable {
        width: 200px;
        height: 200px;
    }
    
    .upgrades-grid {
        grid-template-columns: 1fr;
    }
}

