/* =========================================================================
   Der Charakter-Simulator, Teil 4: das Fenster für die eigenen Figuren.
   Werte aus launcher/src/styles/anprobe.css und bereiche.css, nur gelesen.
   ========================================================================= */

/* ------------------------------------------------- Figuren-Fenster */

.ap-modalgrund {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgb(8 6 4 / 62%);
  backdrop-filter: blur(2px);
}

.ap-modal {
  max-height: 86%;
  overflow-y: auto;
  padding: 16px 18px 14px;
  border: 1px solid rgb(232 195 122 / 30%);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(26 21 16 / 98%), rgb(17 14 10 / 98%));
  box-shadow: 0 18px 50px rgb(0 0 0 / 60%);
}

.ap-uebernehmen {
  width: min(460px, 94%);
}

.ap-modalkopf {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ap-modaltitel {
  flex: 1;
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: calc(1.0625rem * var(--asg-schrift-skala));
  color: var(--asg-gold);
}

.ap-grossschliessen {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--asg-schrift-leise);
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.ap-grossschliessen:hover {
  background: #c0392b;
  color: #fff;
}

.ap-kontenliste {
  height: 320px;
  margin-top: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(232 195 122 / 45%) transparent;
}

.ap-kontenblock + .ap-kontenblock {
  margin-top: 10px;
}

.ap-kontoname {
  margin: 0 0 4px;
  color: rgb(210 190 150 / 70%);
  font-size: calc(0.625rem * var(--asg-schrift-skala));
  font-weight: normal;
}

.ap-figurenliste {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-figurknopf {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 5px 8px;
  cursor: pointer;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 6px;
  color: rgb(238 228 208 / 88%);
  font: inherit;
  font-size: calc(0.6875rem * var(--asg-schrift-skala));
  text-align: left;
}

.ap-figurknopf:hover:not(:disabled) {
  background: rgb(214 176 106 / 14%);
  border-color: rgb(214 176 106 / 40%);
}

.ap-figurknopf:disabled {
  cursor: default;
  opacity: 0.4;
}

.ap-figurname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Der Link aus der Gegenstands-Datenbank (simulator-link.js). */
.ap-dblink {
  display: inline-block;
  margin-top: 6px;
}
