/* Estilos só da tela Heróis. Toda classe nova começa com .he- para não brigar com as outras telas.
   A cara é a do lobby: pedra azul-escura, fio de ouro, títulos em Cinzel. O kit (kit.css) dá o painel, os botões, o preço e as barras. */

/* as duas caixas da tela: a lista e o detalhe por cima */
.he-raiz { display: flex; flex-direction: column; gap: 14px; flex: none; min-width: 0; }
.he-sobre:empty { display: none; }

/* ---------- botões de cima ---------- */
.he-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.he-acoes .k-botao { flex: 1 1 160px; min-width: 0; }
.k-botao.he-ligado { border-color: #ffe7a3; color: #fff8e1; background: linear-gradient(#3b4470, #1c2240); }

/* ---------- filtro e ordem ---------- */
.he-filtros { display: flex; flex-direction: column; gap: 6px; }
.he-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.he-rotulo { flex: none; min-width: 46px; font-family: var(--titulo); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #c9a85a; }
.he-ficha { min-height: 32px; padding: 4px 11px; border-radius: 16px; font: 600 12.5px/1.2 system-ui, sans-serif; color: #c9cde0; cursor: pointer;
            background: rgba(16, 20, 36, .9); border: 1px solid #4a5170; box-shadow: none; transition: filter .12s; }
.he-ficha:hover { filter: brightness(1.25); }
.he-ficha i { font-style: normal; font-weight: 700; color: #8f96b0; margin-left: 3px; font-variant-numeric: tabular-nums; }
.he-ficha.he-aqui { color: #fff3c4; border-color: #e0b04a; background: linear-gradient(rgba(199, 154, 52, .38), rgba(122, 90, 22, .28)); }
.he-ficha.he-aqui i { color: #ffe08a; }

/* ---------- painéis e grade ---------- */
.he-painel { padding: 12px; }
.he-painel > h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 10px; }
.he-conta { font: 600 12px/1.2 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #c9cde0; }
.he-grupo { border-color: #e0b04a; background: linear-gradient(rgba(34, 36, 58, .95), rgba(10, 12, 22, .97)); }
.he-vazio { margin: 4px 0; padding: 16px 10px; text-align: center; color: #c9cde0; font-size: 14px; border: 1px dashed #4a5170; border-radius: 10px; }
.he-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 560px) {
  .he-painel { padding: 10px; }
  .he-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }   /* celular em pé: sempre 2 cartões por linha */
}

/* ---------- cartão do herói ---------- */
.he-cartao { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: linear-gradient(#1b2139, #0a0c16); transition: opacity .2s; }
.he-toque { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.he-toque:focus-visible { outline-offset: -3px; }
.he-toque[aria-disabled="true"] { cursor: default; }
.he-arte { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
           background: radial-gradient(ellipse 70% 55% at 50% 82%, color-mix(in srgb, var(--rar, #b9bcc6) 42%, transparent), transparent 100%), linear-gradient(#182040, #070910); }
.he-arte::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 3%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
.he-arte img { position: absolute; left: 4%; top: 7%; width: 92%; height: 89%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%;
               filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .6)); user-select: none; -webkit-user-drag: none;
               animation: he-respira 6s ease-in-out infinite; animation-delay: calc((var(--he-t, 0) + var(--n, 0)) * -1s); }
/* respiração contínua e bem leve (sem troca de quadros); o atraso negativo faz ela continuar de onde estava quando a tela é refeita */
@keyframes he-respira { 0%, 100% { transform: scale(1, 1) rotate(-.3deg); } 50% { transform: scale(1.006, 1.018) rotate(.3deg); } }
.he-toque:not([aria-disabled="true"]):hover .he-arte { filter: brightness(1.14); }
.he-nv, .he-max, .he-estado, .he-marca, .he-motivo { position: absolute; border-radius: 9px; font: 700 11px/1 system-ui, sans-serif; white-space: nowrap; }
.he-nv { left: 6px; top: 6px; padding: 4px 7px; font-family: var(--titulo); font-size: 12px; letter-spacing: .03em; color: #fff3c4; background: rgba(5, 6, 10, .82); border: 1px solid #8f7741; }
.he-max { right: 6px; top: 6px; padding: 4px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #1c1404; background: linear-gradient(#ffe08a, #c79a34); }
.he-estado { left: 50%; bottom: 6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: var(--he-cor, #c9cde0);
             background: rgba(5, 6, 10, .82); border: 1px solid color-mix(in srgb, var(--he-cor, #c9cde0) 55%, transparent); }
.he-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--he-cor, #c9cde0); flex: none; }
.he-s-luta { --he-cor: #ffab5c; }
.he-s-luta::before { animation: he-pulsa 2s ease-in-out infinite; animation-delay: calc(var(--he-t, 0) * -1s); }
@keyframes he-pulsa { 0%, 100% { transform: scale(.75); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
.he-s-cama { --he-cor: #9db8ff; }
.he-s-pronto { --he-cor: #7be07a; }
.he-s-caido { --he-cor: #ff7a6a; }
.he-s-descanso { --he-cor: #c9cde0; }
.he-info { display: block; padding: 8px 8px 0; }
.he-nome { display: block; font-family: var(--titulo); font-weight: 800; font-size: 15px; letter-spacing: .03em; color: #fff3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.he-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; margin-top: 4px; font-size: 12px; color: #c9cde0; }
.he-barras { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 7px; padding: 8px;
             font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9aa0b4; }
.he-cheio { color: #ffe08a; letter-spacing: .03em; }
.k-barra.he-ruim::before { background: linear-gradient(#ff8a7a, #c0392b); }
.he-subir { flex-wrap: wrap; gap: 2px 8px; }
.he-cartao > .he-subir { margin: auto 8px 8px; }
.he-subir .k-preco { font-family: system-ui, sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; text-shadow: 0 1px 2px #000; color: #fff3c4; }
.he-subir .k-preco.livre { color: #b5fff4; }

/* fusão: marcado, fora da escolha, recém-nascido */
.he-marca, .he-motivo { left: 50%; top: 44%; transform: translate(-50%, -50%); padding: 6px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.he-marca { color: #1c1404; background: linear-gradient(#ffe9a8, #d9a93c); box-shadow: 0 0 0 1px #2a1904, 0 0 14px rgba(255, 214, 120, .8); }
.he-motivo { color: #e3e6f2; background: rgba(5, 6, 10, .88); border: 1px solid #5a6284; }
.he-cartao.he-marcado, .he-cartao.he-novo { border-color: #ffe08a; box-shadow: 0 0 0 1px #05060a, 0 0 0 3px rgba(255, 224, 138, .55), 0 0 20px rgba(255, 214, 120, .75); }
.he-cartao.he-fora .he-arte img { filter: grayscale(.85) brightness(.45); }
.he-cartao.he-fora .he-info, .he-cartao.he-fora .he-barras { opacity: .45; }

/* ---------- bandeja de fusão: fica presa no alto enquanto se rola a lista ---------- */
.he-bandeja { position: sticky; top: 0; z-index: 4; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-color: #e0b04a;
              background: linear-gradient(#1f2648, #0b0d18); box-shadow: 0 0 0 1px #05060a, 0 10px 22px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(160, 180, 255, .16); }
.he-b-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.he-tit { margin: 0; font-family: var(--titulo); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ouro2); }
.he-b-linha { display: flex; align-items: center; justify-content: center; gap: 8px; }
.he-vaga { position: relative; flex: 0 1 62px; min-width: 0; aspect-ratio: 1 / 1; margin: 0; padding: 0; overflow: hidden; display: grid; place-items: center; border-radius: 10px;
           border: 2px dashed #5a6284; background: #0c0f1c; box-shadow: none; color: #6f7696; font: inherit; }
.he-vaga b { font-family: var(--titulo); font-weight: 800; font-size: 20px; }
.he-vaga i { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font: 700 10px/1.1 system-ui, sans-serif; text-align: center; color: #ffe9b0; background: rgba(5, 6, 10, .8);
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.he-vaga img { position: absolute; left: 3%; top: 5%; width: 94%; height: 95%; object-fit: contain; object-position: 50% 100%; }
.he-vaga.he-cheia { border-style: solid; border-color: var(--rar, #b9bcc6); background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--rar, #b9bcc6) 40%, transparent), transparent 75%), #0c0f1c; }
button.he-vaga { cursor: pointer; }
.he-vaga.he-v-luta { border-color: #ff7a6a; }
.he-vaga.he-v-luta i { color: #ffb3a8; }
.he-vaga.he-sai { border-style: solid; border-color: var(--rar, #5a6284); color: var(--rar, #6f7696); box-shadow: 0 0 14px color-mix(in srgb, var(--rar, #5a6284) 55%, transparent); }
.he-vaga.he-sai b { margin-bottom: 10px; }
.he-seta { flex: none; width: 0; height: 0; border-block: 9px solid transparent; border-left: 13px solid var(--ouro2); filter: drop-shadow(0 2px 2px #000); }
.he-b-texto { margin: 0; text-align: center; font-size: 13px; color: #e3e6f2; }
.he-b-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.he-b-custo { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #c9cde0; }
.he-bandeja .k-aviso { margin: 0; text-align: center; }

/* ---------- detalhe de um herói: folha que sobe no celular, janela no meio no computador ---------- */
.he-det { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.he-det-fundo { position: absolute; inset: 0; background: rgba(3, 4, 8, .76); cursor: pointer; }
.he-folha { position: relative; width: min(560px, 100%); max-height: 92%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
            padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: linear-gradient(#1c2240, #090b14); }
@media (min-width: 700px) {
  .he-det { align-items: center; padding: 20px; }
  .he-folha { border-radius: 14px; max-height: 100%; padding-bottom: 16px; }
}
.he-folha > * { flex: none; margin: 0; }
.he-x { position: absolute; right: 8px; top: 8px; z-index: 1; width: 38px; height: 38px; padding: 0; border-radius: 50%; font: 700 22px/1 system-ui, sans-serif; color: #ffe9b0; cursor: pointer;
        background: rgba(5, 6, 10, .7); border: 1px solid #8f7741; box-shadow: none; }
.he-d-topo { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: center; padding-right: 38px; }
.he-d-arte { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden;
             background: radial-gradient(ellipse 75% 55% at 50% 82%, color-mix(in srgb, var(--rar, #b9bcc6) 45%, transparent), transparent 100%), linear-gradient(#182040, #070910); }
.he-d-arte img { position: absolute; left: 4%; top: 6%; width: 92%; height: 92%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%;
                 filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .6)); animation: he-respira 6s ease-in-out infinite; animation-delay: calc(var(--he-t, 0) * -1s); }
.he-d-quem { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.he-d-quem p { margin: 0; }
.he-d-nome { margin: 0; font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: #fff3c4; }
.he-d-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: #c9cde0; }
.he-d-linha .he-estado { position: static; transform: none; }
.he-d-nv { font-size: 13px; color: #c9cde0; }
.he-d-nv b { font-family: var(--titulo); font-size: 18px; color: #fff3c4; }
.he-d-papel { font-size: 12.5px; color: #9aa0b4; }
.he-d-barras { display: flex; flex-direction: column; gap: 5px; }
.he-d-barras .k-barra { height: 10px; border-radius: 5px; margin-bottom: 5px; }
.he-d-rot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; color: #e3e6f2; font-variant-numeric: tabular-nums; }
.he-d-rot > :first-child { font-weight: 700; color: #c9a85a; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; align-self: center; }
.he-d-subir { display: flex; flex-direction: column; gap: 6px; }
.he-d-subir:empty { display: none; }
.he-d-subir p { margin: 0; }
.he-d-subir .he-subir { align-self: stretch; }
.he-custo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: #c9cde0; }
.he-attrs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.he-attr { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: rgba(8, 10, 20, .7); border: 1px solid #353c5a; }
.he-attr span { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9aa0b4; }
.he-attr b { font-family: var(--titulo); font-size: 18px; color: #fff3c4; font-variant-numeric: tabular-nums; }
.he-attr.he-forte { border-color: #8f7741; background: rgba(199, 154, 52, .14); }
.he-attr.he-zero b { color: #5d6480; }
.he-tracos { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.he-tracos li { padding: 5px 10px; border-radius: 9px; font-size: 13px; color: #e3e6f2; background: rgba(8, 10, 20, .7); border: 1px solid #353c5a; }
.he-hab { font-size: 13px; color: #c9cde0; padding: 8px 10px; border-radius: 10px; background: rgba(8, 10, 20, .7); border: 1px solid #353c5a; }
.he-hab b { font-family: var(--titulo); color: var(--ouro2); letter-spacing: .03em; }
.he-hab span { color: #9aa0b4; font-size: 12px; margin-left: 4px; }
.he-folha .he-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 2px; font-size: 13px; }
.he-pecas { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.he-peca { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 7px 9px; border-radius: 10px; font-size: 13px;
           background: rgba(8, 10, 20, .7); border: 1px solid color-mix(in srgb, var(--rar, #353c5a) 70%, #353c5a); }
.he-peca b { font-weight: 600; color: #e3e6f2; }
.he-peca.he-vazia { border-style: dashed; }
.he-peca.he-vazia b { color: #9aa0b4; }
.he-peca.he-vazia span { font-size: 12px; color: #6f7696; }
.he-d-pe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

@media (max-width: 380px) {
  .he-d-topo { grid-template-columns: 96px minmax(0, 1fr); }
  .he-attr b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .he-arte img, .he-d-arte img, .he-s-luta::before { animation: none; }
}

/* (19/11/2026, versão 45) botão de pôr o herói na vaga livre do grupo */
.he-juntar { width: 100%; margin-top: 6px; }

/* (19/11/2026, versão 46) estrela de titular no canto do cartão */
.he-cartao { position: relative; }
.he-estrela { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 3px 7px 3px 6px; border-radius: 999px; border: 1px solid #4a5075; background: rgba(8, 10, 20, .78); color: #aab0c8; font: 600 15px/1 system-ui, sans-serif; cursor: pointer; }
.he-estrela span { font-size: 10.5px; letter-spacing: .02em; }
.he-estrela:hover { filter: brightness(1.3); }
.he-estrela.he-titular { color: #ffd76a; border-color: #c9a85a; background: rgba(60, 44, 10, .85); }
.he-max { right: auto; left: 6px; top: 32px; }   /* o selo "Máximo" desceu para baixo do nível: o canto de cima à direita é da estrela */
