:where(.wp-site-blocks) > * {
    margin-block-start:0;
}

body{
  background-color:#111827;
}

.dark-gradient {
  background: radial-gradient(
    circle at center,
    #2d445d 0%,   /* Mitte (hell) */
    #1a2a3a 30%,
    #0b141e 60%,
    #111827 100%  /* Außen (dunkel) */
  );
  color: #ffffff;
}

.imposter-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 20px;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

.imposter-app button.start_imposter {
  margin: 20px;
  padding: 15px 30px;
  font-size: 1.2em;
  background-color: #1a6fff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(26, 111, 255, 0.6);
  transition: background-color 0.3s;
}

.imposter-app button.start_imposter:hover {
  background-color: #004fcc;
}

.settings-icon {
  top: 20px;
  right: 20px;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.settings-icon.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.settings-modal.hidden {
  display: none;
}

.settings-content {
  background: linear-gradient(to bottom right, #f5faff, #ffffff);
  padding: 35px 30px;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 12px 28px rgba(0, 50, 100, 0.2);
  position: relative;
  box-sizing: border-box;
}

.settings-content h2 {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 20px;
}

.settings-content label {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: #003366;
  font-size: 0.95em;
}

.settings-content input,
.settings-content textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-size: 1em;
  border-radius: 10px;
  border: 1.5px solid #a2c4ff;
  background-color: #f7faff;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.settings-content input:focus,
.settings-content textarea:focus {
  border-color: #1a6fff;
}

.settings-content button {
  padding: 12px 24px;
  font-size: 1em;
  background-color: #1a6fff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.settings-content button:hover {
  background-color: #004fcc;
}

.settings-content textarea {
  resize: vertical;
  min-height: 70px;
}

.kategorie-button {
  margin-top: 18px;
  background-color: #ffe066;
  color: #333;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
}

.kategorie-button:hover {
  background-color: #ffcc00;
}

#kategorienListe {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Kategorie-Elemente */
#kategorienListe label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: #f7faff;
  border: 1px solid #a2c4ff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #003366;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover-Farbe */
#kategorienListe label:hover {
  background-color: #e6f0ff;
}

/* Unsichtbare Checkbox */
#kategorienListe input[type="checkbox"] {
  display: none;
}

/* Großer Haken rechts bei Auswahl */
#kategorienListe input[type="checkbox"]:checked + span::after {
  content: '✔';
  font-size: 1.4em;
  color: #1a6fff;
  margin-left: auto;
  padding-left: 12px;
}

.close-button {
  font-size: 1.5em;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  margin: 0;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #000;
}

.imposter-app #naechsterSpieler,
.imposter-app #rundeBeenden,
#zeigeImposter {
  margin-top: 15px;
  padding: 12px 30px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.imposter-app #naechsterSpieler {
  background-color: #1a6fff;
  color: white;
  box-shadow: 0 6px 15px rgba(26, 111, 255, 0.6);
}

.imposter-app #naechsterSpieler:hover {
  background-color: #004fcc;
  box-shadow: 0 8px 20px rgba(0, 79, 204, 0.8);
}

.imposter-app #rundeBeenden {
  background-color: #ff4d4d;
  color: white;
  box-shadow: 0 6px 15px rgba(255, 77, 77, 0.6);
}

.imposter-app #rundeBeenden:hover {
  background-color: #cc0000;
  box-shadow: 0 8px 20px rgba(204, 0, 0, 0.8);
}

#zeigeImposter {
  background-color: #ffa500;
  color: white;
  box-shadow: 0 6px 15px rgba(255, 165, 0, 0.6);
}

#zeigeImposter:hover {
  background-color: #cc8400;
  box-shadow: 0 8px 20px rgba(204, 132, 0, 0.8);
}

.imposter-app .spieler-container {
  margin-top: 30px;
  background: linear-gradient(to bottom right, #e6f0ff, #ffffff);
  border: 2px solid #a2c4ff;
  border-radius: 16px;
  padding: 30px 50px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 80, 0.15);
  user-select: none;
  color: #003366;
  font-size: 1.8em;
  font-weight: 600;
}

.hinweis-liste {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.hinweis-liste label {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background-color: #f7faff;
  border: 1px solid #a2c4ff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #003366;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.hinweis-liste label:hover {
  background-color: #e6f0ff;
}

.hinweis-liste input[type="radio"] {
  display: none;
}

.hinweis-liste input[type="radio"]:checked + span::after {
  content: '✔';
  font-size: 1.4em;
  color: #1a6fff;
  margin-left: 8px;
}

/* Spieler-Eingabefelder */
.spieler-eingaben {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.spieler-eingaben input {
  padding: 12px 16px;
  font-size: 1em;
  border-radius: 10px;
  border: 1.5px solid #a2c4ff;
  background-color: #f7faff;
  width: 100%;
  box-sizing: border-box;
}

/* Button zum Spieler hinzufügen */
.add-spieler-btn {
  background-color: #ffe066;
  color: #333;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 0.95em;
  cursor: pointer;
  margin-bottom: 10px;
}

.add-spieler-btn:hover {
  background-color: #ffcc00;
}
.settings-hinweis-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: row; /* Wichtig für horizontale Ausrichtung */
  align-items: center; /* Zentriert vertikal */
  gap: 8px;
  z-index: 20;
}

#settingsTippImg {
    width: 350px;
    right: 25px;
    top: -85px;
    height: auto;
    pointer-events: none;
    position: absolute;
}

.spielerInputGroup {
  display: flex;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}

.spielerInputGroup input {
  flex: 1;
}

.removeSpielerBtn {
  background: none;
  border: none;
  font-size: 1.2em;
  color: #e2e8f0;
  cursor: pointer;
  padding: 6px 8px;
  margin-top: 8px;
}

.removeSpielerBtn:hover {
  color: #ff0000;
}