body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Evita le barre di scorrimento mentre compaiono i bottoni */
}
#ui-panel {
    background-color: #2a2a2a;
    padding: 15px 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 400px;
}
#game-area {
    position: relative;
    width: 90%;
    max-width: 600px; /* Larghezza massima dell'area */
    height: 50vh; /* Altezza dinamica */
    min-height: 350px;
    margin: 30px auto; /* Centra il box e lo distanzia dal pannello UI */
    border: 3px dashed #4CAF50; /* Bordo tratteggiato verde */
    background-color: rgba(76, 175, 80, 0.05); /* Sfondo leggermente verdino */
    overflow: hidden; /* Evita che i bottoni sbordino visivamente */
    border-radius: 12px;
}
.mole-btn, .bomb-btn {
    position: absolute;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: scale(0);
    animation: pop 0.2s forwards;
}
.mole-btn { background-color: #4CAF50; width: 50px; height: 50px; z-index: 2; }
.bomb-btn { background-color: #f44336; width: 60px; height: 60px; z-index: 1; }

@keyframes pop {
    to { transform: scale(1); }
}