/* =========================================================================
   Der Charakter-Simulator, Teil 3: Klassenwahl, Haarauswahl und der
   pulsierende Klapp-Pfeil. Werte aus launcher/src/styles/bereiche.css,
   skillbaum.css und anprobe.css, nur gelesen. Siehe Kopf von simulator.css.
   ========================================================================= */

/* -------------------------------------------- Klassenwahl (bereiche.css) */

.ap-konfigfeld {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.ap-konfigfeld-titel {
  font-size: calc(0.5625rem * var(--asg-schrift-skala));
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgb(232 195 122 / 55%);
}

.ap-buildwahl-kopf {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 6px;
  border: 1px solid rgb(232 195 122 / 28%);
  border-radius: 6px;
  font-family: inherit;
  font-size: calc(0.6875rem * var(--asg-schrift-skala));
  color: var(--asg-gold);
  text-align: left;
  background: rgb(12 10 8 / 75%);
  cursor: pointer;
}

.ap-buildwahl-wert {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-buildwahl-pfeil {
  flex: none;
  border-top: 4px solid var(--asg-gold);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.7;
}

.ap-buildwahl-liste {
  position: fixed;
  z-index: 40;
  max-height: 220px;
  margin: 0;
  padding: 3px;
  overflow-y: auto;
  border: 1px solid rgb(232 195 122 / 40%);
  border-radius: 6px;
  list-style: none;
  background: #17130e;
  box-shadow: 0 6px 18px rgb(0 0 0 / 55%);
  scrollbar-width: thin;
  scrollbar-color: rgb(232 195 122 / 45%) transparent;
  animation: ap-einblenden 0.25s ease-out;
}

.ap-buildwahl-gruppe {
  padding: 6px 6px 2px;
  font-size: calc(0.625rem * var(--asg-schrift-skala));
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a8945f;
  text-transform: uppercase;
}

.ap-buildwahl-eintrag {
  display: block;
  width: 100%;
  padding: 4px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: calc(0.6875rem * var(--asg-schrift-skala));
  color: #f0e2c4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.ap-buildwahl-eintrag:hover {
  background: rgb(232 195 122 / 14%);
}

.ap-buildwahl-eintrag.is-an {
  color: #ffdf9d;
  font-weight: 700;
}

@keyframes ap-einblenden {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------- Haarauswahl (skillbaum.css) */

.ap-sb-leise {
  font-size: calc(0.65rem * var(--asg-schrift-skala));
  color: #a89a7c;
}

.ap-haarkopf {
  flex: none;
  margin: 2px 0;
}

.ap-frisuren + .ap-haarkopf {
  margin-top: -4px;
  margin-bottom: -2px;
}

.ap-frisuren,
.ap-farben {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden auto;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgb(232 195 122 / 45%) transparent;
}

.ap-frisuren {
  flex: 1 1 auto;
  min-height: 96px;
}

.ap-farben {
  flex: 0 0 auto;
  height: 96px;
}

.ap-haar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 6px;
}

.ap-haar:hover {
  border-color: rgb(232 195 122 / 45%);
}

.ap-haar.is-an {
  background: rgb(232 195 122 / 12%);
  border-color: rgb(232 195 122 / 60%);
}

.ap-haarbild {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ap-haarbild canvas {
  animation: ap-einblenden 0.4s ease-out;
}

/* ------------------------------------------------------- Klapp-Pfeil */

.ap-klapp {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 0 5px;
  line-height: 16px;
  cursor: pointer;
  background: rgb(12 10 8 / 55%);
  border: 1px solid rgb(232 195 122 / 16%);
  border-radius: 5px;
  color: rgb(207 194 164 / 85%);
  font-family: inherit;
  font-size: calc(0.6rem * var(--asg-schrift-skala));
}

.ap-klapp:hover {
  color: var(--asg-gold);
  border-color: rgb(232 195 122 / 45%);
}

/* Zu: Der Pfeil pulsiert golden, bis jemand aufklappt (Renés Auftrag 07.09.2026). */
.ap-klapp.ap-klapp-puls {
  color: var(--asg-gold);
  border-color: rgb(232 195 122 / 55%);
  animation: ap-klapp-puls 1.6s ease-in-out infinite;
}

@keyframes ap-klapp-puls {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(232 195 122 / 0%);
    background: rgb(12 10 8 / 55%);
  }

  50% {
    box-shadow: 0 0 10px 2px rgb(232 195 122 / 45%);
    background: rgb(232 195 122 / 22%);
  }
}
