/* =========================================================
   MECHKAWAII — Cartes personnages (charlist.css)
   ========================================================= */

#charList.charlist-upgraded {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px 0 80px;
  justify-content: center;
}

/* === Carte ================================================= */
.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 280px;
  text-decoration: none;
  color: var(--text);
  background: rgba(19, 19, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.char-card.camp-mechkawaii { border-color: rgba(255, 159, 80, 0.25); }
.char-card.camp-mechkawaii:hover { border-color: rgba(255, 159, 80, 0.7); box-shadow: 0 16px 40px rgba(255, 159, 80, 0.12); }
.char-card.camp-prodrome { border-color: rgba(134, 247, 119, 0.25); }
.char-card.camp-prodrome:hover { border-color: rgba(134, 247, 119, 0.7); box-shadow: 0 16px 40px rgba(134, 247, 119, 0.12); }
.char-card.is-ko { opacity: 0.5; filter: grayscale(0.6); }

/* === Image plein corps ==================================== */
.char-card-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.char-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.char-card-initial {
  font-size: 56px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
}

/* === Infos (logo + nom + classe) ========================= */
.char-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.char-card-class-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.char-card-name {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  color: var(--text);
}

.char-card.camp-mechkawaii .char-card-name { color: #FF9F50; }
.char-card.camp-prodrome .char-card-name   { color: #86F777; }

.char-card-class-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* HP bar */
.char-card-hpbar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.char-card-hpbar-fill {
  height: 100%;
  background: var(--ok);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.char-card-hpbar-fill.low { background: var(--danger); }
.char-card.camp-mechkawaii .char-card-hpbar-fill { background: #FF9F50; }
.char-card.camp-prodrome   .char-card-hpbar-fill { background: #86F777; }
.char-card.camp-mechkawaii .char-card-hpbar-fill.low { background: var(--danger); }
.char-card.camp-prodrome   .char-card-hpbar-fill.low { background: var(--danger); }

/* Mobile : colonne si très petit écran */
@media (max-width: 480px) {
  #charList.charlist-upgraded {
    flex-direction: column;
    align-items: center;
  }
  .char-card {
    width: 100%;
    max-width: 100%;
  }
}
