/* Spielfeld Canvas */
#game {
    width: 100%;
    max-width: 900px;
    height: 48vw;
    max-height: 480px;
    display: block;
    margin: 24px auto 0 auto;
    background: linear-gradient(to top, #86b7ef 0%, #120836 100%);
    border-radius: 14px;
    box-shadow: 0 8px 36px 0 rgba(20, 30, 70, 0.12);
    touch-action: none;
}

@media (max-width: 700px) {
    #game {
        max-width: 100vw;
        width: 98vw;
        height: 60vw;
        max-height: 68vw;
        min-height: 220px;
    }
    .game-wrapper {
        padding: 4vw 2vw 0 2vw !important;
    }
}

/* Steuerungs-Buttons & HUD */
#touch-controls {
    margin: 20px auto 10px auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#touch-controls .row {
    display: flex;
    gap: 16px;
}

#touch-controls .btn {
    min-width: 56px;
    min-height: 56px;
    font-size: 2.4em;
    background: #ffd600;
    border: none;
    border-radius: 8px;
    margin: 0 6px;
    box-shadow: 0 2px 12px rgba(120, 80, 0, 0.05);
    transition: background 0.2s;
    touch-action: manipulation;
}
#touch-controls .btn:active {
    background: #ffe974;
}

@media (max-width: 500px) {
    #touch-controls .btn {
        min-width: 42px;
        min-height: 42px;
        font-size: 1.6em;
    }
}

#musicToggle, #pauseBtn {
    min-width: 90px;
    font-size: 1em;
    background: #ffe500;
    border: none;
    border-radius: 6px;
    margin: 8px 12px 0 0;
    padding: 10px 0;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(120, 80, 0, 0.05);
}
#musicToggle:active, #pauseBtn:active {
    background: #ffef87;
}

button[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 600px) {
    #game {
        margin-top: 8vw;
        margin-bottom: 2vw;
    }
    #touch-controls .btn {
        font-size: 1.2em;
    }
}

/* Restart-Button Style */
#game + button {
    margin: 20px auto 0 auto !important;
    font-size: 1.5em !important;
    min-width: 170px;
    background: #ffe500 !important;
    border-radius: 10px !important;
    border: none !important;
    padding: 13px 30px !important;
}
#game + button:active {
    background: #ffef87 !important;
}
