/* --- Base Layout --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: Verdana, Arial, sans-serif;
    color: #333;

    background: url('background.jpg') center/cover no-repeat fixed;
}

/* --- Game Container --- */
#game-container {
    width: 95%;
    max-width: 800px;
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.game-logo,
#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
}

#gameCanvas {
    background: #000;
    border: 2px solid #666;
    touch-action: none;
}

/* --- Mobile Controls --- */
#mobile-controls {
    display: none;
    width: 100%;
    margin-top: 15px;

    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.touch-btn {
    flex: 1;
    padding: 15px 0;
    color: #333;
    font-size: 1.5em;
    user-select: none;
    touch-action: manipulation;
}

.fire-btn {
    color: #333;
    border: 1px solid #000;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    #mobile-controls {
        display: flex;
    }

    .controls-bar span {
        display: none;
    }

    #game-container {
        width: 100%;
        padding: 10px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
