/* Fill Sky Shooter–height #gamebox; inner board is scaled + centered in JS */
#cs-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.cs-gamebox-fill {
    align-items: stretch;
}

#gamemain {
    width: 750px;
    height: 440px;
    margin: 0;
    position: relative;
    overflow: hidden;
    background-color: #161c1c;
    transform-origin: center center;
    flex-shrink: 0;
}

.apple {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: #fb7185;
    border-radius: 4px;
}

.snake {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: #4ade80;
    border-radius: 3px;
    transition: transform 0s linear;
}

.snake_head {
    background-size: cover;
    border-radius: 50%;
    background-color: transparent;
}

.gameover {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 10;
    background-color: rgba(7, 11, 20, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
    padding: 16px;
    box-sizing: border-box;
}

.gameover .gw-snake-panel {
    margin-top: 0;
}

.pause {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 8;
    background-color: rgba(7, 11, 20, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 16px;
    box-sizing: border-box;
}

.pause .gw-snake-panel {
    margin-top: 0;
}

.pause p {
    margin: 0 0 16px;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--ga-muted, #94a3b8);
}

.pause p:first-of-type {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ga-text, #f1f5f9);
}
