/* =========================================================================
   DER WARENTIPP DES MARKTPLATZES (01.10.2026, Aufgaben 1049 und 1082)
   =========================================================================
   Werte aus dem Launcher: `.asg-mo-itemtipp` (monster.css), `.asg-db-mt-*`
   (datenbank.css) und `.asg-markt-wt-*` (markt.css). Fest positioniert,
   feste Höhe; Code: assets/js/features/market/market-tip.js
   ========================================================================= */

.mp-tip {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgb(232 195 122 / 34%);
  border-radius: 10px;
  background: linear-gradient(180deg, rgb(26 21 16 / 97%), rgb(17 14 10 / 97%));
  box-shadow: 0 18px 50px rgb(0 0 0 / 60%);
  color: rgb(238 228 208 / 92%);
  font-size: 0.75rem;
  animation: mp-tip-ein 160ms ease;
}

.mp-tip[hidden] {
  display: none;
}

@keyframes mp-tip-ein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.mp-tip__kopf {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mp-tip__gross .mp-icon {
  width: 48px;
  height: 48px;
}

/* Das große Sammelbild (06.10.2026) ist gemalt und glatt: nicht hart rastern, nur einpassen. */
.mp-icon img.mp-tip__sammel {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

/* Ohne Sammelbild steht das Icon darin, dann wieder pixelgenau wie überall im Markt. */
.mp-icon img.mp-tip__sammel--icon {
  width: auto;
  height: auto;
  image-rendering: pixelated;
}

.mp-tip__titel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mp-tip__name {
  overflow: hidden;
  color: rgb(240 224 186 / 96%);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-tip__fassung {
  color: rgb(214 178 106 / 90%);
  font-size: 0.6875rem;
  line-height: 1.25;
}

.mp-tip__nummer {
  color: rgb(255 255 255 / 40%);
  font-size: 0.625rem;
}

/* Die Beschreibung: feste Höhe, innen rollbar. */
.mp-tip__text {
  flex: 0 0 84px;
  padding: 4px 6px;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 8%);
  background: rgb(255 255 255 / 3%);
  color: rgb(230 220 200 / 85%);
  font-size: 0.6875rem;
  line-height: 1.35;
  white-space: pre-line;
}

/* Ohne jede Quelle bekommt die Beschreibung den frei gewordenen Platz. */
.mp-tip__text--gross {
  flex-basis: 204px;
}

.mp-tip__block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mp-tip__marke {
  overflow: hidden;
  color: rgb(210 190 150 / 62%);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mp-tip__bilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mp-tip__bild {
  position: relative;
  display: grid;
  height: 96px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 6px;
  background: rgb(0 0 0 / 35%);
}

.mp-tip__bild .mp-icon {
  width: 56px;
  height: 56px;
}

.mp-tip__karte img {
  max-width: 100%;
  max-height: 100%;
}

.mp-tip__buehne {
  width: 100%;
  height: 100%;
}

.mp-tip__leer,
.mp-tip__leerzeile {
  color: rgb(255 255 255 / 45%);
  font-style: italic;
  text-align: center;
}

.mp-tip__zeile {
  min-height: 16px;
  overflow: hidden;
  color: rgb(230 220 200 / 85%);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-tip__liste {
  min-height: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-tip__liste li {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  height: 19px;
  border-top: 1px solid rgb(255 255 255 / 6%);
  font-size: 0.6875rem;
  line-height: 19px;
}

.mp-tip__zname {
  min-width: 0;
  overflow: hidden;
  color: rgb(240 224 186 / 92%);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-tip__zwert {
  flex: 0 0 auto;
  color: rgb(210 190 150 / 70%);
  font-variant-numeric: tabular-nums;
}

/* Namen, die in die Datenbank führen: wie Text, erst beim Überfahren Gold. */
.mp-tip__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.mp-tip__link:hover,
.mp-tip__link:focus-visible {
  outline: none;
  color: var(--gold);
  text-decoration: underline;
}
