/* Grundlayout: dunkler Hintergrund, Inhalt zentriert */
html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #1b1b24;
  color: #eee;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
}

/* Spielfeld: feste Größe, Nachthimmel, sichtbarer Rand */
.playfield {
  position: relative;
  box-sizing: content-box;
  width: 400px;
  height: 600px;
  overflow: hidden;
  margin: 0 auto;
  border: 3px solid #8aa4ff;
  background: linear-gradient(to bottom, #050816 0%, #101a3d 60%, #1d2b5c 100%);
}

/* Punkteanzeige oben links, über den Sternen */
.score-display {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 10;
  font-size: 18px;
  font-weight: bold;
  color: #f5f7ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  user-select: none;
}

/* Korb: Position und Maße werden per JavaScript gesetzt, Werte hier sind Fallback */
.basket {
  position: absolute;
  top: 580px;
  left: 160px;
  width: 80px;
  height: 20px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #d9a441, #8a5a1f);
  border: 2px solid #5a3a12;
  border-radius: 0 0 14px 14px;
}

/* Stern: gelb, sternförmig über clip-path */
.star {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffd93b;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Neustart-Schaltfläche unter dem Spielfeld */
button#restart {
  margin-top: 12px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #1b1b24;
  background: #ffd93b;
  border: 2px solid #c9a400;
  border-radius: 6px;
  cursor: pointer;
}

button#restart:hover {
  background: #ffe66d;
}

button#restart:focus-visible {
  outline: 3px solid #8aa4ff;
  outline-offset: 3px;
}

/* Fußzeile: unauffällig und zentriert */
footer {
  margin: 16px 0;
  text-align: center;
  font-size: 11px;
  color: #777a88;
}