/* Balloon.css */
.game-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    height: 250px;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}

/* --- IL PALLONCINO --- */
#balloon-container {
    position: relative;
    width: 150px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#balloon {
    width: 20px;
    height: 25px;
    background-color: #f44336;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    transform-origin: bottom center;
    /* Rimosso il transition qui per non interferire con il transform fluido via JS */
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3);
}

/* Il nodino del palloncino */
#balloon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #f44336;
}

#pop-effect {
    font-size: 3rem;
    font-weight: bold;
    color: #ff9800;
    position: absolute;
    bottom: 50px;
    animation: explode 0.3s ease-out;
}

@keyframes explode {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- LA POMPA --- */
#pump-container {
    position: relative;
    width: 60px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

#pump-track {
    width: 10px;
    height: 140px;
    position: relative;
    display: flex;
    justify-content: center;
}

#pump-rod {
    width: 6px;
    height: 100%;
    background-color: #aaa;
    position: absolute;
    bottom: 0;
}

#pump-handle {
    width: 50px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 10px;
    position: absolute;
    top: 0;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    touch-action: none;
}

#pump-handle:active { cursor: grabbing; }

#pump-base {
    width: 40px;
    height: 40px;
    background-color: #d32f2f;
    border-radius: 5px 5px 0 0;
    z-index: 5;
    position: relative;
}