/* Lutadores da arena (Fase 116): cartões "Seus lutadores", barra de XP e o "Subir de nível". */

.ftr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }

.ftr-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0;
  border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface);
}
.ftr-card.on { border-color: var(--gold-lo); box-shadow: 0 0 0 3px var(--gold-soft), 0 10px 24px var(--gold-glow); }
.ftr-card.stored { opacity: 0.78; border-style: dashed; }

.ftr-pick {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-m, 10px);
}
.ftr-pick:focus-visible { outline: 2px solid var(--gold-lo); outline-offset: 4px; }

.ftr-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ftr-head .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ftr-head strong { font: 600 17px/1.2 var(--f-titulo); overflow-wrap: anywhere; }
.ftr-head small { font-size: 13px; color: var(--muted, inherit); }
.ftr-level {
  align-self: flex-start; margin-top: 2px; padding: 2px 9px; border-radius: 999px;
  font: 700 12px/1.5 var(--f-titulo); letter-spacing: 0.04em;
  color: var(--on-gold, #1B1407); background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo));
}

.ftr-xp { display: flex; flex-direction: column; gap: 4px; }
.ftr-xp-bar { height: 8px; border-radius: 999px; background: var(--surface-3, var(--surface-2)); overflow: hidden; }
.ftr-xp-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.ftr-xp small { font-size: 12.5px; }

.ftr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ftr-levelup { animation: ftr-glow 2.4s ease-in-out infinite; }
@keyframes ftr-glow { 50% { box-shadow: 0 0 0 4px var(--gold-soft), 0 6px 18px var(--gold-glow); } }
@media (prefers-reduced-motion: reduce) { .ftr-levelup { animation: none; } }
.ftr-tag {
  padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px dashed var(--line); color: var(--muted, inherit);
}

.ftr-new {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px;
  padding: 16px; border-radius: var(--r-l); border: 1.5px dashed var(--gold-lo); background: var(--gold-soft);
  color: var(--text); font: inherit; text-align: center; cursor: pointer;
}
.ftr-new svg { width: 26px; height: 26px; color: var(--gold); }
.ftr-new strong { font: 600 16px var(--f-titulo); }
.ftr-new.full { cursor: default; border-color: var(--line); background: var(--surface); gap: 10px; }

.ftr-retired summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.ftr-sheet .seg { align-self: stretch; }

/* Fase 121: desgaste (PV, espaços de magia), selo "Abatido" e os descansos pagos. */
.ftr-card.downed { border-color: var(--ember); }
.ftr-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ftr-down {
  margin-top: 2px; padding: 2px 9px; border-radius: 999px; font: 700 12px/1.5 var(--f-titulo);
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--ember);
}
.ftr-down-note { font-size: 13px; color: var(--ember); font-weight: 600; }
.ftr-hp { display: flex; flex-direction: column; gap: 4px; }
.ftr-hp-bar { height: 10px; border-radius: 999px; background: var(--surface-3, var(--surface-2)); overflow: hidden; }
.ftr-hp-bar b { display: block; height: 100%; border-radius: inherit; background: #3f9a5a; transition: width .3s; }
.ftr-hp.hurt .ftr-hp-bar b { background: #c9a227; }
.ftr-hp.low .ftr-hp-bar b, .ftr-hp.down .ftr-hp-bar b { background: var(--ember); }
.ftr-hp small { font-size: 12.5px; color: var(--muted, inherit); }
.ftr-hp small b { color: var(--text); font-weight: 700; }
.ftr-slots { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ftr-slot { display: inline-flex; align-items: center; gap: 3px; }
.ftr-slot small { font-size: 12px; color: var(--muted, inherit); margin-right: 2px; }
.ftr-slot i {
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold-lo);
  background: transparent; display: inline-block;
}
.ftr-slot i.on { background: var(--gold-lo); }
.ftr-rest { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
/* Fase 132: cada descanso com o que recupera (ou o motivo de estar desabilitado) logo abaixo */
.ftr-rest-opt { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ftr-rest-opt .btn { width: 100%; min-height: 40px; }
.ftr-rest-opt .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ftr-rest-opt small { font-size: 12px; line-height: 1.3; }
.ftr-rest-gain { color: var(--ok); }
.ftr-rest-why { color: var(--text-2); font-style: italic; }
.ftr-gains small { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.8; }
.ftr-gains ul { margin: 4px 0 0; padding-left: 18px; }
.ftr-free { flex-basis: 100%; font-size: 12px; }
.ftr-dice { display: flex; align-items: center; gap: 10px; }
.ftr-dice > span { flex: 1; font-weight: 600; }
.ftr-dice .btn { min-width: 44px; min-height: 44px; justify-content: center; }
.ftr-dice-n { min-width: 4.5em; text-align: center; font: 700 16px var(--f-titulo); }
.pick-card.downed, .squad-chip.downed { opacity: 0.6; }
.pick-card .ftr-down-note, .squad-chip .ftr-down-note { font-size: 12px; }
.ftr-slots-label { font-size: 12.5px; color: var(--muted, inherit); }

/* Fase 127: o equipamento do lutador (itens da conta, bolsa e a prévia na ficha). */
.ftr-gear-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.ftr-gear-line svg { width: 14px; height: 14px; flex: none; color: var(--gold); }
.ftr-gear-line span { overflow-wrap: anywhere; }
.eq-sheet .stack { gap: 12px; }
.eq-stats { display: flex; gap: 14px; align-items: flex-start; }
.eq-ac {
  flex: none; display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 8px 10px;
  border-radius: var(--r-m); border: 1.5px solid var(--gold-lo); background: var(--gold-soft);
}
.eq-ac b { font: 700 28px/1 var(--f-titulo); }
.eq-ac small { font-size: 11.5px; text-align: center; }
.eq-attacks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eq-attacks li { display: flex; flex-direction: column; font-size: 13.5px; }
.eq-attacks li span { color: var(--text-2); font-size: 12.5px; }
.eq-warn { margin: 0; padding: 8px 12px 8px 26px; border-radius: var(--r-s); background: var(--ember-soft); color: var(--ember); font-size: 12.5px; }
.eq-h { margin: 4px 0 0; font: 600 14px var(--f-titulo); letter-spacing: 0.03em; }
.eq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eq-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0;
  border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface);
}
.eq-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.eq-item strong { font-size: 14.5px; overflow-wrap: anywhere; }
.eq-item small { font-size: 12px; }
.eq-item .btn { flex: none; min-height: 40px; }
.eq-item.r-incomum { border-color: #3f9a5a; }
.eq-item.r-raro { border-color: #3b6fd1; }
.eq-item.r-muito_raro { border-color: var(--arcane); }
.eq-slot {
  flex: none; min-width: 64px; padding: 2px 8px; border-radius: 999px; text-align: center;
  font: 700 11px/1.6 var(--f-titulo); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--on-gold); background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo));
}
.eq-slot:empty { display: none; }
.eq-detail { display: flex; flex-direction: column; gap: 2px; }
.eq-preview { color: var(--ok); font-weight: 600; }
.eq-warn-line { color: var(--ember); }
.eq-useless summary { cursor: pointer; font-weight: 600; padding: 4px 0; font-size: 13.5px; }
@media (max-width: 420px) {
  .eq-item { flex-wrap: wrap; }
  .eq-item .btn { flex: 1 1 100%; }
}

/* Fase 132: acesso à ficha completa no cabeçalho da luta */
.arena-sheet-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; flex: none;
  border: 1px solid rgb(240 203 130 / 0.4); background: rgb(240 203 130 / 0.08); color: var(--arena-ink); font: 700 13.5px var(--f-ui);
}
.arena-sheet-btn svg { width: 16px; height: 16px; }
