/* ============================================================
   DER STRESSIGE MODUS (Fabian, 21.08.)
   Links die drei Items, rechts der Champion. Auf dem Handy
   rutscht der Champion nach oben, weil er die Frage stellt.
   ============================================================ */

#spiel-gegenmittel { width: 100%; }
#gm-inhalt { width: 100%; min-width: 0; max-width: 640px; margin: 0 auto; }

/* ---------- Startbildschirm ---------- */
.gm-start { display: flex; flex-direction: column; gap: 12px; }
.gm-unter { text-align: center; color: var(--muted); margin: 4px 0 0; font-size: 17px; }
.gm-rekord { text-align: center; margin: 0; color: var(--muted); }
.gm-rekord strong { color: var(--gold-hell); font-family: "Cinzel", serif; font-size: 20px; }

.gm-schule {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 12px; padding: 14px 16px;
}
.gm-schule-titel {
  font-family: "Cinzel", serif; color: var(--gold-hell);
  margin: 12px 0 4px; font-size: 15px; letter-spacing: .5px;
}
.gm-schule-titel:first-child { margin-top: 0; }
.gm-schule-liste { margin: 0; padding-left: 20px; }
.gm-schule-liste li { margin: 4px 0; line-height: 1.45; }
.gm-schule-farben {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 12px 0 6px; color: var(--muted); font-size: 15px;
}
.gm-punkt {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  vertical-align: -2px; margin-right: 3px;
}
.gm-punkt.gut { background: #4ade80; }
.gm-punkt.neutral { background: #f0c96c; }
.gm-punkt.schlecht { background: #e04b3a; }
.gm-nochmal-regeln { margin-top: -4px; }

/* ---------- Countdown ---------- */
.gm-countdown {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.gm-zahl {
  font-family: "Cinzel", serif; font-weight: 800; font-size: 120px;
  color: var(--gold-hell); text-shadow: 0 0 40px rgba(240, 201, 108, .5);
  animation: gmZahl .8s ease-out;
}
@keyframes gmZahl {
  0% { opacity: 0; transform: scale(2.2); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: .25; transform: scale(.86); }
}

/* ---------- Leiste: Punkte und Uhr ---------- */
.gm-leiste {
  display: flex; align-items: center; gap: 12px; margin: 6px 0 14px;
}
.gm-punkte { flex: none; color: var(--muted); font-size: 15px; }
.gm-punkte strong {
  font-family: "Cinzel", serif; font-size: 21px; color: var(--gold-hell);
  margin-right: 4px;
}
.gm-uhr-huelle {
  flex: 1; height: 10px; border-radius: 6px; overflow: hidden;
  background: rgba(10, 20, 40, .8); border: 1px solid var(--line);
}
.gm-uhr {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #e04b3a, #f0c96c 45%, #4ade80);
  transition: width .12s linear;
}
.gm-sek { flex: none; color: var(--muted); font-size: 14px; }
.gm-sek strong {
  font-family: "Cinzel", serif; font-size: 19px; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Spielfeld ---------- */
.gm-feld { display: flex; gap: 16px; align-items: stretch; }
.gm-items { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gm-champ {
  flex: none; width: 168px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 12px;
}
.gm-champ-bild img, .gm-champ-bild .gm-kein-bild {
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--gold); object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
}
.gm-champ strong {
  font-family: "Cinzel", serif; font-size: 19px; color: var(--gold-hell);
  line-height: 1.2;
}
.gm-champ small { color: var(--muted); font-size: 13.5px; }

.gm-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--panel); border: 2px solid var(--line); border-radius: 12px;
  padding: 11px 13px; cursor: pointer; color: var(--text); font: inherit;
  font-size: 16px; transition: transform .12s, border-color .12s, background .12s;
}
.gm-item:hover:not(:disabled) { transform: translateX(3px); border-color: var(--gold); }
.gm-item:disabled { cursor: default; }
.gm-item-bild { flex: none; width: 46px; height: 46px; }
.gm-item-bild img, .gm-kein-bild {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 40, .8); color: var(--muted);
}
.gm-item-name { line-height: 1.3; }

/* Die Farbmarkierung nach der Wahl */
.gm-item.gewaehlt.gut { border-color: #4ade80; background: rgba(74, 222, 128, .14); }
.gm-item.gewaehlt.neutral { border-color: #f0c96c; background: rgba(240, 201, 108, .14); }
.gm-item.gewaehlt.schlecht { border-color: #e04b3a; background: rgba(224, 75, 58, .14); }
/* Die nicht gewählten zeigen still mit, was sie gewesen wären */
.gm-item.verraten { opacity: .5; }
.gm-item.verraten.gut { border-color: rgba(74, 222, 128, .55); }
.gm-item.verraten.neutral { border-color: rgba(240, 201, 108, .5); }
.gm-item.verraten.schlecht { border-color: rgba(224, 75, 58, .4); }

/* ---------- Abschluss ---------- */
.gm-ende { display: flex; flex-direction: column; gap: 10px; }
.gm-ende-zahl {
  text-align: center; margin: 10px 0 0; font-size: 19px; color: var(--muted);
}
.gm-ende-zahl strong {
  font-family: "Cinzel", serif; font-size: 44px; color: var(--gold-hell);
  display: block; line-height: 1.1;
}
.gm-neuer-rekord {
  text-align: center; margin: 0; font-family: "Cinzel", serif;
  color: var(--gold-hell); font-size: 20px; animation: pulsGold 1.6s infinite;
}
.gm-abschnitt {
  margin: 12px 0 0; font-family: "Cinzel", serif; font-size: 14px;
  letter-spacing: .5px; color: var(--gold-tief, #b8934a);
}
.gm-lernliste { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; }
.gm-lernliste li {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--line); border-radius: 10px; padding: 10px 12px;
  line-height: 1.4;
}
.gm-lernliste li.gut { border-left-color: #4ade80; }
.gm-lernliste li.neutral { border-left-color: #f0c96c; }
.gm-lernliste li.schlecht { border-left-color: #e04b3a; }
.gm-lernliste small { color: var(--muted); }

/* Eine Zeile der Nachlese: Champion, deine Wahl, was sonst noch ging */
.gm-lern-kopf { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.gm-lern-kopf strong {
  font-family: "Cinzel", serif; color: var(--gold-hell); font-size: 16px;
}
.gm-lern-kopf small { flex-basis: 100%; padding-left: 43px; font-size: 13px; }
.gm-lern-bild img, .gm-lern-bild .gm-kein-bild {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line);
  object-fit: cover; flex: none;
}
.gm-lern-wahl { margin: 8px 0 0; font-size: 14.5px; }
.gm-lern-wahl.gut { color: var(--text); }
.gm-lern-wahl.neutral, .gm-lern-wahl.schlecht { color: var(--muted); }
.gm-lern-auch {
  margin: 7px 0 0; font-family: "Cinzel", serif; font-size: 12.5px;
  letter-spacing: .4px; color: var(--gold-tief, #b8934a);
}
.gm-lern-andere { margin: 3px 0 0; padding-left: 18px; }
.gm-lern-andere li {
  background: none; border: 0; padding: 2px 0; margin: 0;
  font-size: 14px; color: var(--muted);
}
.gm-lern-andere strong { color: #4ade80; font-weight: 600; }

/* ---------- Handy ---------- */
@media (max-width: 560px) {
  .gm-feld { flex-direction: column-reverse; gap: 12px; }
  .gm-champ { width: 100%; flex-direction: row; justify-content: flex-start;
              gap: 12px; text-align: left; padding: 10px 12px; }
  .gm-champ-bild img, .gm-champ-bild .gm-kein-bild { width: 68px; height: 68px; }
  .gm-champ strong { font-size: 18px; }
  .gm-item { font-size: 15px; padding: 9px 11px; }
  .gm-item-bild, .gm-item-bild img { width: 40px; height: 40px; }
  .gm-zahl { font-size: 92px; }
  .gm-countdown { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-zahl { animation: none; }
  .gm-neuer-rekord { animation: none; }
  .gm-item:hover:not(:disabled) { transform: none; }
}
