/* ============================================================
   STATUS.CSS — Ninja Revolution 2026 — Painel de Status (v2)
   Escopo: SOMENTE o conteúdo abaixo do header/saldo-bar existente.
   Não redefine .np-topbar, .np-saldo-bar, .dash-wrap (antigo) etc.
   ============================================================ */

.st2-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px 60px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.st2-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st2-col:nth-child(1) { flex: 0 0 300px; }
.st2-col:nth-child(2) { flex: 2 1 480px; }
.st2-col:nth-child(3) { flex: 1 1 320px; max-width: 340px; }

/* ── CARD BASE ──────────────────────────────────────────────── */
.st2-card {
  background: #F4F2ED;
  border: 1px solid #D9D5CC;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.st2-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #e67e22, transparent);
  opacity: .8;
}
.st2-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.st2-card-titulo {
  font-family: 'Chakra Petch', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .6px;
  color: #20212A;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.st2-link {
  font-size: .68rem;
  font-weight: 700;
  color: #e67e22;
  white-space: nowrap;
}
.st2-link:hover { color: #f39c42; }
.st2-arte-link {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: #e67e22;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 4px;
}
.st2-arte-link:hover { color: #f39c42; text-decoration: underline; }
.st2-btn-treinar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 6px;
  transition: filter .15s ease;
}
.st2-btn-treinar-img { display: block; height: 24px; width: auto; }
.st2-btn-treinar:hover { filter: brightness(1.15); }

/* ── COLUNA ESQUERDA: PERSONAGEM ───────────────────────────── */
.st2-nivel-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  background: #D9D5CCee;
  border: 1px solid #e67e2255;
  border-radius: 8px;
  padding: 4px 10px;
}
.st2-nivel-badge span:first-child { font-size: .58rem; color: #e67e22; font-weight: 700; letter-spacing: .5px; }
.st2-nivel-badge span:last-child  { font-size: 1.2rem; color: #20212A; font-weight: 800; line-height: 1; }

.st2-personagem-img-wrap {
  position: relative;
  width: calc(100% + 32px);
  height: 300px;
  margin: -16px -16px 6px;
  background: radial-gradient(ellipse at 50% 30%, #F4F2ED, #E8E4D7 75%);
  overflow: hidden;
}
.st2-personagem-img-wrap .dash-avatar-wrap { position: static; inset: 0; }
.st2-personagem-img-wrap .st2-moldura {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}
.st2-personagem-img-wrap .st2-foto,
.st2-personagem-img-wrap .st2-emoji-fallback {
  position: absolute;
  left: 15.7%; top: 16.0%;
  width: 67.1%; height: 67.1%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}
.st2-personagem-img-wrap .st2-foto { object-fit: cover; object-position: center center; }

/* ── Ajuste fino POR MOLDURA (o buraco muda de tamanho/posição em cada uma) ──
   st2RenderAll() (game-status.js) adiciona uma destas classes ao
   .dash-avatar-wrap conforme a graduação atual. Sem classe = usa os
   valores acima (calibrados para ANBU) como padrão.
   Ajuste cada bloco comparando com a moldura real — veja comentário
   no game-status.js sobre como medir o "buraco" transparente. */
.moldura-estudante .st2-foto, .moldura-estudante .st2-emoji-fallback { left:20.2%; top:20.2%; width:58.9%; height:58.9%; }
.moldura-genin     .st2-foto, .moldura-genin     .st2-emoji-fallback { left:20.2%; top:20.7%; width:58.9%; height:60.0%; }
.moldura-chunin    .st2-foto, .moldura-chunin    .st2-emoji-fallback { left:17.6%; top:16.6%; width:64.1%; height:66.7%; }
.moldura-jonin     .st2-foto, .moldura-jonin     .st2-emoji-fallback { left:15.6%; top:15.6%; width:68.3%; height:68.6%; }
.moldura-anbu      .st2-foto, .moldura-anbu      .st2-emoji-fallback { left:15.7%; top:16.0%; width:67.1%; height:67.1%; }
.moldura-sannin    .st2-foto, .moldura-sannin    .st2-emoji-fallback { left:17.6%; top:13.7%; width:64.4%; height:69.7%; }
.moldura-akatsuki  .st2-foto, .moldura-akatsuki  .st2-emoji-fallback { left:15.3%; top:14.7%; width:68.9%; height:69.9%; }
.moldura-kage      .st2-foto, .moldura-kage      .st2-emoji-fallback { left:17.9%; top:19.0%; width:63.5%; height:66.0%; }
.moldura-jinchuuriki .st2-foto, .moldura-jinchuuriki .st2-emoji-fallback { left:15.1%; top:16.9%; width:69.0%; height:65.9%; }
.moldura-seis-caminhos .st2-foto, .moldura-seis-caminhos .st2-emoji-fallback { left:17.5%; top:15.0%; width:65.4%; height:68.9%; }
.moldura-otsutsuki .st2-foto, .moldura-otsutsuki .st2-emoji-fallback { left:20.4%; top:19.5%; width:60.9%; height:63.2%; }
.st2-personagem-img-wrap .st2-emoji-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: #FFFFFF;
}

.st2-nome { text-align: center; font-family: 'Chakra Petch', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 1px; color: #20212A; }
/* Bloco Nome de usuário / Vila / Graduação — alinhado à esquerda, um
   dado por linha, embaixo da moldura do personagem. */
.st2-info-block { text-align: left; margin: 4px 2px 12px; }
.st2-info-row { font-size: .78rem; line-height: 1.5; }
.st2-info-lbl { font-weight: 700; color: #666873; margin-right: 4px; }
.st2-info-val { font-weight: 800; color: #20212A; }
.st2-vip-selo {
  display: flex;
  width: fit-content;
  margin: 4px auto 0;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.st2-sub  { text-align: center; font-size: .74rem; color: #666873; margin: 3px 0 12px; }
.st2-sub b { color: #e67e22; font-weight: 700; }

.st2-rank-xp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.st2-mini-box { background: #FFFFFF; border: 1px solid #D9D5CC; border-radius: 8px; padding: 8px 10px; text-align: center; }
.st2-mini-label { font-size: .6rem; color: #666873; font-weight: 700; letter-spacing: .5px; display: block; margin-bottom: 2px; }
.st2-mini-val { font-size: .95rem; font-weight: 800; color: #20212A; }

.st2-xp-bar-wrap { margin-bottom: 14px; }
.st2-xp-bar-head { display: flex; justify-content: space-between; font-size: .64rem; color: #666873; margin-bottom: 4px; }

.st2-bar-track { height: 8px; border-radius: 5px; background: #FFFFFF; border: 1px solid #D9D5CC; overflow: hidden; }
.st2-bar-fill  { height: 100%; border-radius: 5px; transition: width .3s ease; }
.st2-bar-fill.gold  { background: linear-gradient(90deg,#f1c40f,#e67e22); }
.st2-bar-fill.red   { background: linear-gradient(90deg,#c0392b,#ff5a5a); }
.st2-bar-fill.blue  { background: linear-gradient(90deg,#2980b9,#4fd1ff); }
.st2-bar-fill.green { background: linear-gradient(90deg,#1e8449,#2ecc71); }
.st2-bar-fill.purple{ background: linear-gradient(90deg,#6c3483,#9b59b6); }
.st2-bar-fill.cyan  { background: linear-gradient(90deg,#148f9c,#4fd1ff); }

.st2-status-bars { display: flex; flex-direction: column; gap: 8px; }
.st2-status-row-head { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; margin-bottom: 3px; }
.st2-status-row-head .lbl-red  { color: #ff6b6b; }
.st2-status-row-head .lbl-blue { color: #4fd1ff; }
.st2-status-row-head .lbl-gold { color: #f1c40f; }
.st2-status-row-head .val { color: #20212A; font-weight: 700; font-family: 'Space Mono', monospace; }

/* ── PROGRESSÃO ─────────────────────────────────────────────── */
.st2-prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.st2-prog-item {
  background: #FFFFFF; border: 1px solid #D9D5CC; border-radius: 8px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.st2-prog-item .lbl { font-size: .6rem; color: #666873; font-weight: 700; display: block; }
.st2-prog-item .val { font-size: .92rem; font-weight: 800; color: #20212A; }
.st2-prog-item .val small { font-size: .7rem; color: #666873; font-weight: 600; }
#st2ProgLvl { font-size: 1.7rem; margin-top: 2px; }
.st2-rank-atual-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.st2-rank-img { height: 56px; width: auto; max-width: 100%; object-fit: contain; display: block; }

.st2-poder-box {
  position: relative;
  container-type: inline-size;
  line-height: 0;
  margin-bottom: 10px;
}
.st2-poder-img { display: block; width: 100%; height: auto; }
/* Número encaixado dentro da placa vazia à direita da arte — a posição
   (esquerda/topo em %) foi medida direto na imagem poder_total.png. */
.st2-poder-box .val {
  position: absolute;
  left: 72.8%; top: 52.5%;
  transform: translate(-50%, -50%);
  width: 27%;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  font-size: 6.2cqw;
  font-weight: 800;
  color: #ffd76a;
  text-shadow: 0 0 6px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.9), 0 1px 1px #000;
  white-space: nowrap;
}

.st2-progresso-geral { margin-top: 10px; }
.st2-progresso-geral-head { display: flex; justify-content: space-between; font-size: .68rem; color: #666873; font-weight: 700; margin-bottom: 4px; }
.st2-nivel-hint { font-size: .68rem; color: #666873; margin-top: 8px; line-height: 1.5; }
.st2-nivel-hint b { color: #e67e22; }

/* ── ATRIBUTOS ──────────────────────────────────────────────── */
.st2-attr-row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #D9D5CC; }
.st2-attr-row:first-of-type { border-top: none; padding-top: 2px; }

.st2-attr-body { flex: 1; min-width: 0; }
.st2-attr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st2-attr-nome { font-size: .8rem; font-weight: 800; letter-spacing: .4px; color: #20212A; }
.st2-attr-desc { font-size: .68rem; color: #666873; margin: 1px 0 6px; }
.st2-attr-mid { display: flex; align-items: center; gap: 10px; }
.st2-attr-mid .st2-bar-track { flex: 0 1 50%; }
.st2-attr-nivel { font-size: .85rem; font-weight: 800; color: #20212A; width: auto; min-width: 34px; flex-shrink: 0; white-space: nowrap; text-align: right; }
.st2-attr-efeito { font-size: .66rem; color: #666873; margin-top: 4px; }
.st2-attr-efeito b { font-weight: 800; }
.st2-attr-efeito.tai b { color: #ff6b6b; }
.st2-attr-efeito.nin b { color: #4fd1ff; }
.st2-attr-efeito.dou b { color: #b57bd6; }
.st2-attr-efeito.int b { color: #e5c80d; }
.st2-attr-efeito.def b { color: #52d98a; }

.st2-attr-treinar-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #D9D5CC;
}
.st2-btn-treinar-big {
  display: inline-flex;
  transition: filter .15s ease, transform .12s ease;
}
.st2-btn-treinar-big:hover { filter: brightness(1.15); transform: translateY(-1px); }
.st2-btn-treinar-big-img { display: block; height: 56px; width: auto; }

/* ── LINHA DUPLA (Doujutsus/Invocações, Equipamentos/Bijuus) ── */
.st2-row-2 { display: flex; gap: 16px; }
.st2-row-2 > .st2-card { flex: 1 1 0; min-width: 0; }
@media (max-width: 1200px) { .st2-row-2 { flex-direction: column; } }

/* Doujutsus — exatamente 2 slots */
/* .st2-card-fill: faz o card esticar (row-2 já estica pela altura do maior
   irmão) mas centraliza o conteúdo verticalmente no espaço sobrado, em vez
   de deixar tudo colado no topo com um vazio embaixo. */
.st2-card-fill { display: flex; flex-direction: column; }
.st2-card-fill #st2DouSlots, .st2-card-fill #st2InvocBody { flex: 1; display: flex; }
.st2-card-fill #st2InvocBody { flex-direction: column; }

.st2-dou-slots { display: flex; gap: 10px; align-items: center; }
.st2-dou-slot { flex: 1 1 0; min-width: 0;
  background: #FFFFFF; border: 1px solid #D9D5CC; border-radius: 10px;
  padding: 8px; text-align: center;
}
.st2-dou-slot.vazio { opacity: .55; }
.st2-dou-img-wrap {
  width: 68px; height: 68px; margin: 0 auto 6px;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #D9D5CC; border: 2px solid #9b59b655;
  font-size: 1.6rem;
}
.st2-dou-slot.vazio .st2-dou-img-wrap { border-color: #D9D5CC; color: #666873; }
.st2-dou-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.st2-dou-nome { font-size: .76rem; font-weight: 800; color: #20212A; }
.st2-dou-nivel { font-size: .64rem; color: #b57bd6; font-weight: 700; margin: 2px 0 6px; }
.st2-dou-slot.vazio .st2-dou-nome { color: #666873; font-size: .7rem; }

/* Invocações / Bijuus — estado com/sem item */
.st2-showcase-item { display: flex; align-items: center; gap: 12px; }
.st2-showcase-img {
  width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0;
  background: #EDE9DE; border: 1px solid #D9D5CC;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  overflow: hidden;
}
.st2-showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.st2-showcase-nome { font-size: .88rem; font-weight: 800; color: #20212A; }
.st2-showcase-sub  { font-size: .68rem; color: #666873; margin-top: 2px; }

/* Invocação ativa — card grande (só existe 1 ativa por vez, então vale
   ocupar bem o espaço em vez do resumo pequeno de antes). */
.st2-invoc-card {
  display: flex; flex-direction: column; align-items: center;
  height: 100%; justify-content: center;
  padding: 6px 4px;
}
.st2-invoc-img {
  width: 128px; height: 128px; border-radius: 14px; flex-shrink: 0;
  background: #EDE9DE; border: 1px solid #D9D5CC;
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
  overflow: hidden; margin-bottom: 10px;
}
.st2-invoc-img img { width: 100%; height: 100%; object-fit: cover; }
.st2-invoc-nome { font-size: 1.05rem; font-weight: 800; color: #20212A; text-align: center; }
.st2-invoc-rank { font-size: .74rem; font-weight: 700; margin: 2px 0 12px; }
.st2-invoc-bonus-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.st2-invoc-bonus-chip {
  font-size: .72rem; font-weight: 700; color: #7ee787;
  background: rgba(126,231,135,.1); border: 1px solid rgba(126,231,135,.3);
  border-radius: 20px; padding: 4px 10px;
}

/* Selo Amaldiçoado — nível atual + bônus de status que ele dá */
.st2-selo-item { display: flex; align-items: center; gap: 16px; }
.st2-selo-img {
  width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0;
  background: #D9D5CC; border: 1px solid #6c348355;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  overflow: hidden;
}
.st2-selo-img img { width: 100%; height: 100%; object-fit: cover; }
.st2-selo-info { flex: 1; min-width: 0; }
.st2-selo-nome { font-size: .92rem; font-weight: 800; color: #20212A; }
.st2-selo-sub { font-size: .7rem; color: #b57bd6; font-weight: 700; margin: 2px 0 8px; }
.st2-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 10px 4px; color: #666873;
}
.st2-empty .ico { font-size: 1.8rem; opacity: .4; }
.st2-empty .titulo { font-size: .74rem; font-weight: 800; color: #666873; }
.st2-empty .desc { font-size: .66rem; }

/* Bijuus — grade fixa de 10 slots (1 a 10 caudas), só imagem */
.st2-bijuu-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.st2-bijuu-slot {
  flex: 1 1 calc(20% - 8px); min-width: 64px; aspect-ratio: 1 / 1;
  background: #EDE9DE; border: 2px solid #D9D5CC; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; overflow: hidden;
}
.st2-bijuu-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st2-bijuu-slot.vazio { opacity: .45; color: #666873; }
.st2-bijuu-slot.sincronizada { border-color: #e0663f; box-shadow: 0 0 8px #e0663f66; }

/* Equipamentos — grid de slots (usa classes .es-* geradas por renderGameEquipamentos) */
.st2-equip-grid #gameEquipSlots { display: flex; flex-wrap: wrap; gap: 8px; }
.st2-equip-grid #gameEquipSlots .es-slot { flex: 1 1 calc(25% - 6px); min-width: 70px; }
.es-slot {
  background: #FFFFFF; border: 1px solid #D9D5CC; border-radius: 8px;
  padding: 8px 6px; text-align: center; min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.es-slot-label { font-size: .58rem; font-weight: 700; margin-bottom: 4px; }
.es-slot-corpo { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.es-img-wrap { position: relative; width: 34px; height: 34px; border: 1px solid; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.es-info { display: flex; flex-direction: column; align-items: center; }
.es-nome { font-size: .6rem; font-weight: 700; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-bonus-item { font-size: .56rem; color: #666873; display: block; }
.equip-refino-badge { position: absolute; bottom: -4px; right: -4px; font-size: .5rem; font-weight: 800; background: #D9D5CC; border: 1px solid; border-radius: 4px; padding: 0 3px; }
.es-slot-vazio { font-size: .62rem; color: #666873; }

/* ── DESEMPENHO SHINOBI ─────────────────────────────────────── */
.st2-perf-item { padding: 10px 0; border-top: 1px solid #D9D5CC; }
.st2-perf-item:first-of-type { border-top: none; padding-top: 2px; }
.st2-perf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.st2-perf-label { font-size: .62rem; color: #666873; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 5px; }
.st2-perf-btn {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #e67e2222; color: #e67e22; border: 1px solid #e67e2244;
  font-size: .7rem; flex-shrink: 0;
}
.st2-perf-titulo { font-size: .84rem; font-weight: 800; color: #20212A; margin-bottom: 3px; }
.st2-perf-sub { font-size: .68rem; color: #666873; margin-bottom: 6px; }
.st2-perf-big { font-size: 1.4rem; font-weight: 800; color: #20212A; }

/* ── MISSÕES ────────────────────────────────────────────────── */
.st2-missao-card {
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF; border: 1px solid #D9D5CC; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
}
.st2-missao-rank {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; background: #D9D5CC; border: 1px solid;
}
.st2-missao-body { flex: 1; min-width: 0; }
.st2-missao-nome { font-size: .8rem; font-weight: 700; color: #20212A; }
.st2-missao-rewards { display: flex; gap: 8px; flex-wrap: wrap; font-size: .64rem; color: #666873; margin-top: 3px; }
.st2-missao-btn {
  flex-shrink: 0;
  font-size: .68rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg,#e74c3c,#c0392b);
  border: none; border-radius: 7px; padding: 8px 12px;
}
.st2-missao-btn:hover { filter: brightness(1.1); }
.st2-missao-btn:disabled { opacity: .4; filter: grayscale(.5); }
.st2-missoes-footer { text-align: center; margin-top: 4px; }
.st2-missoes-footer a {
  display: inline-block; width: 100%;
  font-size: .74rem; font-weight: 800; color: #e67e22;
  border: 1px solid #e67e2244; border-radius: 8px; padding: 9px;
}
.st2-missoes-footer a:hover { background: #e67e2214; }

/* ── FOOTER dica ────────────────────────────────────────────── */
.st2-footer-dica {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .7rem;
  color: #666873;
  padding: 10px 0 0;
}

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .st2-col:nth-child(1) { flex: 1 1 280px; }
  .st2-col:nth-child(3) { flex: 1 1 100%; max-width: none; }
}
@media (max-width: 760px) {
  .st2-wrap { padding: 14px 12px 40px; }
  .st2-col, .st2-col:nth-child(1), .st2-col:nth-child(2), .st2-col:nth-child(3) { flex: 1 1 100%; max-width: none; }
  .st2-row-2 { grid-template-columns: 1fr; }
}
