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

body {
    font-family: 'Orbitron', monospace;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

#score-display h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#multiplier-display {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

#click-zone {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
}

#tung-character {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.5));
    transition: transform 0.2s ease;
}

#tung-character:hover {
    transform: scale(1.05);
}

#tung-character:active {
    transform: scale(0.95);
}

#click-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

@keyframes clickEffect {
    to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

#upgrades-panel {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
}

#upgrades-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00ff88;
}

.upgrade-btn {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

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

.upgrade-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.upgrade-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.upgrade-info p {
    font-size: 0.8rem;
    color: #aaa;
}

.cost {
    font-size: 0.9rem;
    color: #00ff88;
}

#particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    pointer-events: none;
    animation: float 2s ease-out forwards;
}

@keyframes float {
    to {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #upgrades-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }
    
    #tung-character {
        width: 200px;
        height: 200px;
    }
    
    #score-display h1 {
        font-size: 2rem;
    }
}

