html, body {
  touch-action: manipulation; /* verhindert standardmäßige Browser-Gesten */
  -webkit-user-select: none;  /* verhindert Textauswahl */
  -webkit-touch-callout: none;
  overscroll-behavior: contain;
}

#game-container {
  position: relative;
  text-align: center;
  margin: 20px auto;
  width: 240px;
}

canvas {
  background: #000;
  display: block;
  margin: 0 auto;
  border: 2px solid #fff;
}

#next {
  margin-top: 10px;
}

#overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: red;
  font-size: 2em;
  font-weight: bold;
  pointer-events: none;
  text-shadow: 2px 2px #000;
}

#controls {
  margin-top: 10px;
}

.btn {
  font-size: 1.2em;
  margin: 3px;
  padding: 5px 10px;
  cursor: pointer;
}
#highscore-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  background: linear-gradient(#111, #000);
  border: 3px solid #58FFFF; /* Tetris-Cyan */
  display: none;
  z-index: 100;
  font-family: monospace;
  text-align: center;
  padding: 12px;
  box-shadow:
    0 0 10px #58FFFF,
    0 0 20px rgba(88,255,255,0.4);
}

/* Titel */
#highscore-popup h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  color: #FFFF58; /* Tetris-Gelb */
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(255,255,88,0.8);
}

/* Liste */
#highscore-popup ul {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}

/* Einträge */
.scoreList li {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  margin: 3px 0;
  background: rgba(255,255,255,0.05);
  color: #EAEAEA;
  font-size: 0.95em;
  border-left: 4px solid #AC58FF; /* Lila Akzent */
}

/* Top 3 Highlights */
.scoreList li:nth-child(1) { border-color: #FFFF58; color: #FFFF58; }
.scoreList li:nth-child(2) { border-color: #58FFFF; }
.scoreList li:nth-child(3) { border-color: #FFAC58; }

/* OK Button */
#highscore-popup button {
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 0.9em;
  font-family: monospace;
  cursor: pointer;
  background: #000;
  color: #58FF58;
  border: 2px solid #58FF58;
  box-shadow: 0 0 6px rgba(88,255,88,0.6);
}

#highscore-popup button:hover {
  background: #58FF58;
  color: #000;
}