/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #FFFCF0;
    color: black;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: normal;
}

.header p {
    font-size: 1em;
    margin-bottom: 30px;
}

/* score panel */
.score-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.score-item {
    padding: 15px;
}

.score-item .label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.score-item .value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
}

/* balloon area */
.balloon-area {
    margin: 40px 0;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balloon {
    /* pixel art preservation */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    
    /* scaling properties */
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    max-width: 200px;
    height: auto;
}

/* explosion effect */
.explosion-effect {
    position: absolute;
    font-size: 3em;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease-out;
    pointer-events: none;
}

.explosion-effect.show {
    opacity: 1;
    transform: scale(1.5);
}

/* controls */
.controls {
    margin: 30px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.pump-btn, .collect-btn, .restart-btn {
    padding: 15px 25px;
    font-size: 1.1em;
    background: white;
    color: black;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pump-btn:hover, .collect-btn:hover, .restart-btn:hover {
    opacity: 0.8;
}

.pump-btn:disabled, .collect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* instructions */
.instructions {
    margin: 20px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

/* game over */
.game-over {
    margin-top: 30px;
    padding: 30px;
    background: white;
}

.game-over h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: normal;
}

.game-over p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* responsive design */
@media (max-width: 600px) {
    .score-panel {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .balloon-area {
        height: 250px;
    }
} 