/* Styles für das Nerdpol Catch Plugin */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.npc-container {
  background-color: #0f0f0f;
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  max-width: 620px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
}

.npc-container h2 {
  color: #00ff99;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.npc-game-canvas {
  border: 4px solid #00ff99;
  background-color: #202020;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.npc-screen {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 4px;
  margin-top: 10px;
}

.npc-screen p {
  margin-bottom: 10px;
  font-size: 0.7rem;
}

.npc-button {
  font-family: 'Press Start 2P', monospace;
  background-color: #00ff99;
  color: #0f0f0f;
  border: none;
  padding: 8px 12px;
  margin: 5px;
  cursor: pointer;
  font-size: 0.7rem;
}

.npc-button:hover {
  background-color: #00cc7a;
}

.npc-score-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.npc-score-form input {
  padding: 5px;
  margin: 5px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  width: 80%;
}

.npc-leaderboard {
  margin-top: 20px;
  background-color: #181818;
  padding: 10px;
  border-radius: 4px;
}

.npc-leaderboard h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #00ff99;
}

.npc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6rem;
}

.npc-table th,
.npc-table td {
  border-bottom: 1px solid #333;
  padding: 4px;
  text-align: center;
}

.npc-table th {
  color: #00ff99;
}

.npc-table tbody tr:nth-child(odd) {
  background-color: #222;
}

.npc-table tbody tr:nth-child(even) {
  background-color: #2a2a2a;
}

/* Filter‑Buttons für die Rangliste */
.npc-leaderboard-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.npc-button-small {
  font-size: 0.55rem;
  padding: 4px 8px;
  margin: 3px;
}

/* Info‑Button in der Kopfzeile */
.npc-info-button {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  padding: 0;
}

/* Legende */
.npc-legend {
  background-color: #181818;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  text-align: left;
}
.npc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Farbbox in der Legende */
.npc-color-box {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px solid #333;
}

.npc-legend-item img {
  width: 16px;
  height: 16px;
}

/* Emoji innerhalb der Legende */
.npc-emoji {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  width: 16px;
  height: 16px;
}

/* Pagination unter der Rangliste */
.npc-pagination {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}