/* Fill #gamebox height; stage is scaled + centered in JS */
#svb-scale-root.gw-snake-scale-root {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.game-worlds-play-shell #gamebox.gw-snake-gamebox.svb-gamebox-fill {
    align-items: stretch;
}

.svb-stage {
    position: relative;
    width: 740px;
    height: 440px;
    margin: 0;
    padding: 0;
    transform-origin: center center;
    flex-shrink: 0;
    background-color: #000;
}

#gameArea {
    width: 740px;
    height: 440px;
    position: relative;
    background-color: #161c1c;
    box-sizing: border-box;
}

.snake-segment {
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    position: absolute;
    border-radius: 3px;
}

.food {
    width: 20px;
    height: 20px;
    background-color: #fb7185;
    position: absolute;
    border-radius: 4px;
}

.wall {
    width: 20px;
    height: 20px;
    background-color: #64748b;
    position: absolute;
    border-radius: 2px;
}

.svb-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 12;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
    box-sizing: border-box;
}

.svb-overlay:not([hidden]) {
    display: flex;
}

.svb-overlay__panel {
    margin-top: 0;
}

.svb-overlay .gw-snake-btn {
    margin-top: 4px;
}
