/* =========================================================================
   AUSRÜSTUNGSRECHNER IM GUIDE (07.10.2026)
   Code: assets/js/features/gear-calc/. Präfix `gc-`. Optik wie die Kästen
   des Guide-Rechners (guide-rechner.css), Felder kompakt wie ein Arbeitsplatz.
   ========================================================================= */

.gc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.gc__auf {
  align-self: flex-start;
}

.gc__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgb(232 195 122 / 22%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 3.5%), rgb(255 255 255 / 1%));
  animation: gc-ein 0.25s ease;
}

.gc__panel[hidden] {
  display: none;
}

@keyframes gc-ein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gc__leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc__diff {
  font-size: 0.72rem;
  font-weight: 600;
}

.gc__diff.is-mehr {
  color: #7fd18b;
}

.gc__diff.is-weniger {
  color: #e98a7a;
}

.gc__abschnitt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc__abschnitt > .bg-unter {
  margin: 0;
}

.gc-gruppe {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc-reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 10px;
}

.gc-feld {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
}

.gc-feld--haken {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  height: 28px;
}

.gc-feld__name {
  color: var(--ink-dim);
}

.gc-zahl,
.gc-wahl,
.gc-pick__feld {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(0 0 0 / 35%);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
}

.gc-zahl {
  width: 76px;
}

.gc-zahl--refine {
  width: 52px;
}

.gc-pick__feld {
  width: 100%;
}

.gc-zahl:focus,
.gc-wahl:focus,
.gc-pick__feld:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.gc__slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 8px;
  background: rgb(0 0 0 / 18%);
}

.gc-slot__kopf,
.gc-slot__mehr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.gc-slot__mehr:empty {
  display: none;
}

.gc-slot__titel {
  width: 150px;
  color: var(--gold);
  font-size: 0.8rem;
}

.gc-slot__refine {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-dim);
  font-size: 0.8rem;
}

.gc-slot__refine[hidden],
.gc-wahl[hidden] {
  display: none;
}

.gc-pick {
  position: relative;
  width: 320px;
}

.gc-pick--klein {
  width: 230px;
}

.gc-pick__liste {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  width: max(100%, 320px);
  max-height: 300px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  background: rgb(12 16 24 / 98%);
  box-shadow: 0 16px 40px rgb(0 0 0 / 55%);
  list-style: none;
}

.gc-pick__liste[hidden] {
  display: none;
}

.gc-pick__eintrag {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
}

.gc-pick__eintrag:hover {
  background: rgb(232 195 122 / 14%);
}

.gc-pick__eintrag--leer,
.gc-pick__eintrag--nichts,
.gc-pick__nr {
  color: var(--ink-dim);
}

.gc-optionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.gc-option {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gc-option .gc-wahl {
  max-width: 220px;
}

.gc-option .gc-zahl {
  width: 64px;
}

.gc-mini {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(0 0 0 / 30%);
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.gc-mini:hover,
.gc-mini:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  color: var(--gold-bright);
}

.gc__fehlt {
  margin-top: 6px;
}

.gc__fehlt summary {
  color: var(--gold);
  cursor: pointer;
}

/* GM-Übersicht: Teile ohne Spielerquelle und ihre Bedeutung für den Build */
.gc-gm__liste {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.gc-gm__zeile {
  display: grid;
  grid-template-columns: 150px 110px minmax(0, 1fr) 150px;
  gap: 10px;
  padding: 4px 8px;
  border-bottom: 1px dashed rgb(233 138 122 / 25%);
  font-size: 0.8rem;
}

.gc-gm__ort,
.gc-gm__art {
  color: var(--ink-dim);
}

.gc-gm__wert {
  color: #e98a7a;
  text-align: right;
}
