body {
    display: flex;
    justify-content: center; /* Zentriert #pageContainer horizontal */
    align-items: center; /* Zentriert #pageContainer vertikal */
    min-height: 100vh;
    background-color: #555555; /* Heller Hintergrund für die Seite */
    margin: 0;
    font-family: sans-serif;
    /* overflow: hidden; */ /* Kann evtl. entfernt werden, je nach Layout */
}

#pageContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px; /* Optional: Abstand zum Rand */
}

#scoreContainer {
    font-size: 24px; /* Größere Schrift */
    font-weight: bold;
    color: #333; /* Dunkle Schriftfarbe */
    margin-bottom: 15px; /* Abstand zum Spiel */
    min-width: 200px; /* Mindestbreite für die Anzeige */
    text-align: center; /* Score zentrieren */
    background-color: #e0e0e0; /* Optional: Leichter Hintergrund für Score */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: Leichter Schatten */
}

#scoreValue {
    display: inline-block; /* Stellt sicher, dass die Breite passt */
    min-width: 40px; /* Platz für mehrstellige Scores */
    text-align: right;
}

#gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Kein Margin-Top mehr hier, Abstand wird von #scoreContainer gemacht */
}

canvas {
    border: 2px solid black;
    /* Hintergrundfarbe wird jetzt im JS gesetzt, hier evtl. Fallback */
    /* background-color: white; */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    cursor: pointer;
    margin-bottom: 10px;
    display: block; /* Verhindert kleinen Leerraum unter dem Canvas */
}

#restartButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #555;
    background-color: #ddd;
    border-radius: 5px;
}
#restartButton:hover { background-color: #ccc; }
#restartButton:active { background-color: #bbb; }