/* Balloon Shooter — viewport-adaptive canvas */

@media screen and (max-height: 640px) {
    #blsPlayShell .container.container-single {
        padding-top: 3px !important;
    }
}

#blsPlayShell.game-worlds-play-shell {
    min-height: 0;
    box-sizing: border-box;
}

#blsPlayShell.game-worlds-play-shell:not([data-casual-sized]) {
    height: 0;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

#blsPlayShell .casual-outer-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.game-worlds-body #blsPlayShell #gamebox.bls-gamebox,
#blsPlayShell #gamebox.bls-gamebox {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 18px;
    color: #fff;
    background-color: #161c1c;
}

#blsPlayShell .bls-playfield {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

#blsPlayShell #gameCanvas {
    display: block;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    background: #161c1c;
}

#blsPlayShell #gameOver {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    text-align: center;
    background: rgba(22, 28, 28, 0.95);
    z-index: 2;
}

#blsPlayShell #gameOver #msg {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #ccc;
    margin: min(160px, 22vh) auto 0;
    font-weight: bold;
}

#blsPlayShell #gameOver #scoreGameOver {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #ccc;
    margin: 20px 0 30px;
}

#blsPlayShell #restartbtn {
    display: block;
    margin: 16px auto;
    width: 120px;
    padding: 6px;
    background-color: #00BB00;
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: red;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}
