/* ========================================
   SNAKE GAME STYLES
   ======================================== */

#snake-game-container {
    display: none;
    /* Changed via JS */
    width: 100%;

    color: white;
    font-family: 'Courier New', Courier, monospace;
}

#snakeGameSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    width: 100%;
}

.snake-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#snakeCanvas {
    background-color: #000;
    /* Border removed to prevent double-frame look */
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    /* Prevent game from being too tall on small screens */
    height: auto;
    aspect-ratio: 1 / 1;
}

#snake-ui {
    width: 740px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 10px auto;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
}

.snake-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border: 2px solid #333;
    border-radius: 10px;
    display: none;
    font-size: 24px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.snake-controls-hint {
    margin-top: 10px;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

/* Retro Config Styles are now inherited from game-tanks.css via .retro-* classes */

/* Mobile Controls Alignment Override */
@media (max-width: 800px) {
    #snakeGameArea .mobile-game-controls {
        justify-content: center;
    }
}