/* =========================================================================
   PETS: DIE EVOLUTIONSSTUFEN ALS STAMMBÄUME (05.10.2026)
   =========================================================================
   Werte aus `launcher/src/styles/pets.css` der Fassung 0.79.10
   (`.asg-pt-evo-*`, `.asg-pt-figur*`, `.asg-pt-gross*`), Schriftgrößen ohne
   die Skala des Launchers. Code: assets/js/features/pets/pets-evolution.js
   ========================================================================= */

/* Ohne Bühne links: die Bäume nehmen die ganze Breite (`asg-pt-evo-voll`). */
.pt__rumpf.pt__evoVoll {
  grid-template-columns: minmax(0, 1fr);
}

.pt__wege {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.pt__weg {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 7px;
}

/* Zwischen zwei Bäumen ein goldener Trennstrich. */
.pt__evoVoll .pt__weg + .pt__weg {
  position: relative;
  margin-top: 10px;
}

.pt__evoVoll .pt__weg + .pt__weg::before {
  position: absolute;
  top: -8px;
  right: 8%;
  left: 8%;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pt__nachladen {
  flex: none;
  height: 1px;
  list-style: none;
}

/* --- Das Raster ------------------------------------------------------------- */

.pt__evoRaster {
  display: grid;
  gap: 6px 4px;
  align-items: center;
}

.pt__evoStufe {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  padding: 1px 6px;
  color: var(--gold);
  font-size: 0.75rem;
  background: rgb(214 176 106 / 8%);
  border: 1px solid rgb(214 176 106 / 25%);
  border-radius: 6px;
}

.pt__evoName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt__evoPfeil {
  display: flex;
  align-items: center;
  min-width: 0;
  color: rgb(210 190 150 / 62%);
}

.pt__evoPfeillinie {
  flex: 1;
  height: 0;
  border-top: 2px solid rgb(210 190 150 / 45%);
}

.pt__evoPfeilspitze {
  flex: none;
  margin-left: -2px;
  font-size: 0.625rem;
  line-height: 1;
}

.pt__evoPfeil.is-ast {
  align-self: center;
}

/* Der Zulauf zur Sammelspalte trägt keine Spitze, erst der Pfeil ins Ziel. */
.pt__evoPfeil.is-zu .pt__evoPfeilspitze {
  display: none;
}

.pt__evoPfeil.is-kreuzt .pt__evoPfeillinie {
  border-top-color: rgb(235 160 70 / 80%);
}

.pt__evoPfeil.is-kreuzt .pt__evoPfeilspitze {
  color: rgb(235 160 70);
}

.pt__evoGabel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  min-width: 0;
}

.pt__evoGabel.pt__evoKombi {
  align-self: center;
}

.pt__evoAstblock {
  align-self: start;
  min-width: 0;
  padding-left: 8px;
}

/* Senkrechte Linien in drei Stücken: obere Hälfte, dazwischen, untere Hälfte. */
.pt__evoSenkrecht {
  position: relative;
  place-self: stretch start;
  width: 0;
  pointer-events: none;
}

.pt__evoSenkrecht::before {
  position: absolute;
  left: 0;
  content: '';
  border-left: 2px solid rgb(210 190 150 / 45%);
}

.pt__evoSenkrecht.is-ab::before {
  top: calc(50% - 1px);
  bottom: -6px;
}

.pt__evoSenkrecht.is-durch::before {
  top: 0;
  bottom: 0;
}

.pt__evoSenkrecht.is-auf::before {
  top: -6px;
  bottom: calc(50% - 1px);
}

.pt__evoSenkrecht.is-kreuzt::before {
  border-left-color: rgb(235 160 70 / 80%);
}

/* --- Der Block: Pet groß neben den Zutaten ---------------------------------- */

.pt__evoBlock {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 1px 6px;
  align-items: start;
  align-self: start;
  min-width: 0;
}

.pt__evoFigur {
  display: inline-flex;
  grid-row: span 3;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
}

.pt__figurknopf {
  display: contents;
  cursor: zoom-in;
}

.pt__figurknopf > * {
  cursor: zoom-in;
}

.pt__figurzoom {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 70%;
}

.pt__evoLeinwand {
  display: block;
  width: 100%;
  height: 100%;
}

.pt__evoZutaten {
  display: flex;
  flex-direction: column;
  grid-row: 1 / span 4;
  grid-column: 2;
  gap: 1px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt__evoZutat {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 24px;
}

.pt__evoZutatname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt__evoMenge {
  flex: none;
  margin-left: auto;
  color: rgb(210 190 150 / 62%);
  font-size: 0.6875rem;
}

.pt__evoEvent {
  color: var(--gold);
  font-size: 0.6875rem;
}

.pt__evoKombihinweis {
  color: rgb(210 190 150 / 70%);
  font-size: 0.6875rem;
}

/* --- Ei-Tausch am Start-Pet ------------------------------------------------- */

.pt__evoTausch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.pt__evoTauschzeile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.pt__evoTauschkopf {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pt__evoTauschzeichen {
  color: var(--gold);
  font-size: 0.875rem;
  line-height: 1;
}

/* --- Farbgruppe (die fünf Teddys) ------------------------------------------ */

.pt__evoFarbgruppe {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-self: start start;
  min-width: 0;
  max-width: 100%;
}

.pt__evoFarbreihe {
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.pt__evoFarbe {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.pt__evoFarbreihe > .pt__evoFarbe {
  flex: 1 1 0;
  max-width: 110px;
}

.pt__evoFarbe > .pt__evoStufe {
  max-width: 100%;
}

.pt__evoFarbklammer {
  width: 80%;
  height: 10px;
  border: 2px solid rgb(210 190 150 / 45%);
  border-top: none;
  pointer-events: none;
}

.pt__evoFarbspitze {
  margin: 0 0 2px;
  line-height: 1;
}

/* Renés Versuch vom 05.10.2026: in den Evolutionsstufen etwas größere Bilder
   (92 statt 78 Punkte, "minimal"). Nur hier; Skills und Launcher bleiben bei 78. */
.pt__evoRaster .pt__evoBlock {
  grid-template-columns: 92px minmax(0, 1fr);
}

.pt__evoRaster .pt__evoFigur {
  width: 92px;
  height: 92px;
}
