body {
    background-color: #000;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: monospace;
    overflow: hidden;
}

#game-container {
    border: 2px solid #555;
    background-color: #000;
}

canvas {
    display: block;
    background-color: #2b8b8b; /* Teal/Cyan background like TVC */
    margin: 0 auto;
    border: 4px solid #000;
    image-rendering: pixelated;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 100%;
    height: auto;
}

#instructions {
    margin-top: 10px;
    color: #ffff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    text-align: center;
}

#mode-switcher {
    margin-top: 8px;
    text-align: center;
}

#mode-switcher button {
    padding: 6px 18px;
    font-size: 14px;
    font-weight: bold;
    background-color: #198686;
    color: #ffff00;
    border: 2px solid #ffff00;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
}

#mobile-controls {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 512px;
}

#mobile-top-controls {
    display: none;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 512px;
}

#mobile-top-controls button {
    padding: 8px 5px;
    font-size: 13px;
    font-weight: bold;
    background-color: #198686;
    color: #ffff00;
    border: 3px solid #ffff00;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

#mobile-controls button {
    padding: 15px 25px;
    font-size: 24px;
    font-weight: bold;
    background-color: #198686;
    color: #ffff00;
    border: 3px solid #ffff00;
    border-radius: 12px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

#mobile-controls button:active {
    background-color: #ffff00;
    color: #198686;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    #mobile-controls {
        display: flex;
    }
    #mobile-top-controls {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    #instructions {
        display: none;
    }
    #mode-switcher {
        display: none;
    }
}
