/* =========================================================================
   LOGIN-BELOHNUNG: GESCHENKCODES UND HINWEIS (07.10.2026)
   =========================================================================
   Aus login-rewards.css herausgelöst (Größenwächter). Werte wie dort aus dem
   Dashboard (`dash-rag-code*`, `dash-tip`) übernommen.
   ========================================================================= */

/* ------------------------------------------------------- Geschenkcodes */

.lb-codes__note {
  max-width: 40rem;
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lb-codes__form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  max-width: 26rem;
  margin: 0 auto;
}

.lb-codes__form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: rgb(6 10 18 / 45%);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink);
  font-family: ui-monospace, 'Cascadia Mono', consolas, monospace;
  letter-spacing: 1.5px;
  transition: box-shadow 0.3s ease;
}

.lb-codes__form input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.lb-codes__form input::placeholder {
  color: var(--ink-dim);
  letter-spacing: 0.5px;
}

.lb-codes__form .btn--primary {
  padding: 7px 16px;
  font-size: 0.8125rem;
}

.lb-codes__meldung {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #ffb3a8;
}

.lb-codes__meldung[data-kind='ok'] {
  color: #9fe6bf;
}

.lb-codes__meldung[hidden] {
  display: none;
}

.lb-codes__liste {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.lb-codes__leer {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.lb-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(to bottom, var(--glass-top), var(--glass-bottom));
  box-shadow:
    inset 0 0 0 1px rgb(232 195 122 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
}

.lb-code.is-done {
  opacity: 0.6;
}

.lb-code__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.lb-code__wert {
  font-family: ui-monospace, 'Cascadia Mono', consolas, monospace;
  font-size: 1rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: var(--gold-bright);
}

.lb-code__titel {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.lb-code__items {
  display: flex;
  gap: 0.45rem;
  outline: none;
}

/* Jeder Gegenstand ist eine eigene Fläche für seinen Hinweis (Renés Wunsch 08.10.2026, wie im Dashboard). */
.lb-code__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border-radius: 6px;
  outline: none;
}

/* Die Menge unter dem Bild (Renés Wunsch 08.10.2026, wie im Dashboard). */
.lb-code__anzahl {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright, #f3d48a);
  font-variant-numeric: tabular-nums;
}

.lb-code__item:focus-visible {
  box-shadow: 0 0 0 1px rgb(232 195 122 / 60%);
}

.lb-code__items .lb-icon--klein {
  width: 48px;
  height: 48px;
}

.lb-code__items .lb-icon img.lb-icon__sammel {
  max-width: 48px;
  max-height: 48px;
}

.lb-code__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lb-code__einloesen {
  padding: 7px 12px;
  font-size: 0.8125rem;
}

.lb-code__schon {
  font-size: 0.82rem;
  color: #9fe6bf;
}

.lb-iconbtn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.lb-iconbtn:hover,
.lb-iconbtn:focus-visible {
  color: var(--gold);
  background: rgb(255 255 255 / 6%);
}

.lb-iconbtn.is-kopiert {
  color: #9fe6bf;
}

@media (width <= 760px) {
  .lb-code {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
}

/* ------------------------------------------------- Hinweis beim Überfahren */

.lb-tip {
  position: fixed;
  top: 0;
  left: -9999px;
  z-index: 60;
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 14px;
  background: linear-gradient(to bottom, rgb(14 22 34 / 96%), rgb(8 12 20 / 97%));
  box-shadow:
    inset 0 0 0 1px rgb(232 195 122 / 38%),
    0 18px 44px -12px rgb(0 0 0 / 80%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.lb-tip.is-shown {
  opacity: 1;
  transform: none;

  /* Seit 07.10.2026 anfahrbar: Darin steht der Link zur Anleitung. */
  pointer-events: auto;
}

/* Das zweite Fenster mit der Anleitung, unter oder über dem Hinweis. */
.lb-tip--anleitung {
  z-index: 61;
  display: block;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
}

/* Der Link "Anleitung zur Verwendung": goldene Schrift mit feiner Linie, wie die Links der Seite. */
.lb-tip__link {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.lb-tip__link:hover,
.lb-tip__link:focus-visible {
  outline: none;
  color: var(--gold-bright);
  border-color: var(--gold);
}

.lb-tip__eintrag {
  display: flex;
  gap: 0.9rem;
}

.lb-tip__eintrag + .lb-tip__eintrag {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.lb-tip__bild {
  display: grid;
  place-items: center;
  flex: none;
  align-self: flex-start;
  box-sizing: border-box;
  width: 128px;
  height: 128px;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 40%, rgb(232 195 122 / 12%), transparent 70%);
}

/* Das Sammelbild auf Weiß wie im Beschreibungsfenster des Spiels (Dashboard `dash-tip__image`). */
.lb-tip__bild:has(img.lb-tip__sammel:not(.lb-tip__klein)) {
  padding: 8px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--gold-deep),
    0 4px 14px -6px rgb(0 0 0 / 70%);
}

.lb-tip__bild img {
  max-width: 75px;
  max-height: 100px;
}

.lb-tip__bild img.lb-tip__klein {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.lb-tip__rumpf {
  min-width: 0;
}

.lb-tip__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.lb-tip__art {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: var(--gold);
}

.lb-tip__text {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--ink);
}
