:root {
  --zoom: 3;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% -10%, #1d2f47 0%, #0b1018 55%, #070a10 100%);
  color: #cfe3ff;
  /* Fonte de interface limpa: legível em tamanhos pequenos no Windows. */
  font-family: "Segoe UI", system-ui, -apple-system, "Trebuchet MS", Verdana, sans-serif;
  user-select: none;
}

.console {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.cabecalho {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 8px;
  color: #f2f8ff;
  text-shadow: 0 3px 0 #1f4f9e, 0 0 24px rgba(91, 156, 255, 0.35);
}

h1 span {
  color: #ffd75e;
  text-shadow: 0 3px 0 #8a6a10, 0 0 24px rgba(255, 215, 94, 0.35);
}

.subtitulo {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6f8bb0;
}

/* ---- moldura da tela ---- */
.tela-moldura {
  position: relative;
  line-height: 0;
  border: 6px solid #222b3d;
  border-radius: 12px;
  background: #0a0e15;
  box-shadow:
    0 0 0 3px #0c1018,
    0 28px 70px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px #3a4a66;
  overflow: hidden;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ---- caixa de mensagem ---- */
.mensagem {
  position: absolute;
  left: calc(5px * var(--zoom));
  right: calc(5px * var(--zoom));
  bottom: calc(5px * var(--zoom));
  background: rgba(8, 13, 24, 0.96);
  border: calc(1px * var(--zoom)) solid #6fd0f2;
  border-radius: calc(3px * var(--zoom));
  padding: calc(4px * var(--zoom)) calc(6px * var(--zoom)) calc(3px * var(--zoom));
  line-height: 1.5;
  font-size: calc(5px * var(--zoom));
  color: #eaf4ff;
  box-shadow: 0 0 calc(10px * var(--zoom)) rgba(111, 208, 242, 0.25);
}

.mensagem p {
  margin: 0;
}

.continuar {
  display: block;
  margin-top: calc(2px * var(--zoom));
  font-size: calc(4px * var(--zoom));
  letter-spacing: 1px;
  text-align: right;
  text-transform: uppercase;
  color: #6fd0f2;
}

.escondido {
  display: none;
}

/* ---- barra de ações (atalhos) ---- */
.acoes-jogo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: min(1120px, 97vw);
}

.acoes-mover {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: #8fa8c8;
}

.acao-jogo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid #33415a;
  border-radius: 7px;
  background: #101826;
  color: #c6d8f0;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.acao-jogo:hover {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.1);
  color: #eaf4ff;
}

.acao-jogo.secundario {
  border-color: #223149;
  color: #7f99bb;
  font-size: 13px;
}

.acao-jogo kbd {
  min-width: 19px;
  padding: 1px 5px;
  font-size: 13px;
}

/* ---- botões do encontro selvagem ---- */
.encontro-acoes {
  position: absolute;
  left: 50%;
  bottom: 2.2%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 92%;
  padding: 6px 8px;
  border: 1px solid #2a3a54;
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.encontro-acoes .botao {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  font-size: clamp(12px, 1.15vw, 20px);
  letter-spacing: 1px;
}

.encontro-acoes .botao small {
  font-size: clamp(9px, 0.85vw, 14px);
  letter-spacing: 0.3px;
  color: #a9bdd8;
}

.encontro-acoes .botao.principal small {
  color: #c8a93e;
}

.encontro-acoes .botao:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.encontro-acoes.escondido {
  display: none;
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  margin: 0 1px;
  border: 1px solid #33415a;
  border-bottom-width: 3px;
  border-radius: 4px;
  background: #141b28;
  color: #d7e6ff;
  font: inherit;
  font-size: 13px;
  text-align: center;
}

/* ============================================================
   PAINÉIS (DigiDex e Rede Digi)
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(4px);
}

/* precisa vencer a regra .overlay acima */
.overlay.escondido {
  display: none;
}

.painel {
  display: flex;
  flex-direction: column;
  width: min(980px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid #2e405e;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(24, 36, 56, 0.9), rgba(10, 16, 26, 0.98));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(111, 208, 242, 0.08);
}

.painel-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #223149;
}

.painel-topo h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 4px;
  color: #f2f8ff;
}

.painel-sub {
  margin: 5px 0 0;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #7f99bb;
}

.fechar {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid #33415a;
  border-radius: 8px;
  background: #141b28;
  color: #cfe3ff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.fechar:hover {
  border-color: #6fd0f2;
  color: #6fd0f2;
}

.ferramentas-teste {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.ferramentas-teste.escondido {
  display: none;
}

/* ---- filtros ---- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid #1b273b;
}

.filtro {
  padding: 5px 9px;
  border: 1px solid #2a3a54;
  border-radius: 999px;
  background: #101826;
  color: #8fa8c8;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.filtro:hover {
  border-color: #4a6a92;
  color: #d7e6ff;
}

.filtro.ativo {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.12);
  color: #6fd0f2;
}

/* ---- grade da Dex ---- */
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  padding: 14px 18px 20px;
  overflow-y: auto;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: #0e1622;
}

.card.pronto {
  border-color: #ffd75e;
  box-shadow: 0 0 18px rgba(255, 215, 94, 0.12);
}

.card-topo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sprite-dex {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #223149;
  border-radius: 8px;
  background: #0a1018;
}

.card-topo strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: #eaf4ff;
}

.tag {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: #7f99bb;
}

.barra {
  height: 7px;
  overflow: hidden;
  border: 1px solid #223149;
  border-radius: 4px;
  background: #080d16;
}

.barra > div {
  height: 100%;
  background: linear-gradient(90deg, #3a7bd5, #6fd0f2);
  transition: width 0.25s ease;
}

.card.pronto .barra > div {
  background: linear-gradient(90deg, #b8860b, #ffd75e);
}

.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9fb8d8;
}

.card-rodape {
  font-size: 11.5px;
  line-height: 1.4;
  color: #66809f;
}

.botao {
  padding: 6px 8px;
  border: 1px solid #6fd0f2;
  border-radius: 6px;
  background: rgba(111, 208, 242, 0.1);
  color: #6fd0f2;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.botao:hover {
  background: rgba(111, 208, 242, 0.2);
}

.materializar {
  border-color: #ffd75e;
  color: #ffd75e;
  background: rgba(255, 215, 94, 0.1);
}

.materializar:hover {
  background: rgba(255, 215, 94, 0.2);
}

/* ---- lista de mapas ---- */
.lista-mapas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding: 14px 18px 20px;
  overflow-y: auto;
}

.mapa-card {
  display: grid;
  grid-template-columns: 38px 1fr 74px;
  grid-template-rows: auto auto auto;
  gap: 2px 10px;
  padding: 11px 12px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: #0e1622;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mapa-card .numero {
  grid-column: 1;
}

.mapa-card .nome,
.mapa-card .tag,
.mapa-card .tiers {
  grid-column: 2;
}

/* miniatura da área (etapa 4B) */
.mapa-card .miniatura {
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: stretch;
  min-height: 54px;
  border: 1px solid #223149;
  border-radius: 7px;
  background-color: #0a1018;
  background-size: cover;
  background-position: 50% 38%;
  background-repeat: no-repeat;
}

.mapa-card.atual .miniatura {
  border-color: #3d6c92;
}

.mapa-card.bloqueado .miniatura {
  filter: grayscale(0.9) brightness(0.5);
}

.mapa-card:hover {
  border-color: #4a6a92;
  background: #121d2e;
}

.mapa-card.atual {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.08);
}

.mapa-card .numero {
  grid-row: 1 / 4;
  align-self: center;
  font-size: 20px;
  font-weight: bold;
  color: #3e5a7c;
}

.mapa-card.atual .numero {
  color: #6fd0f2;
}

.mapa-card .nome {
  font-size: 14px;
  color: #eaf4ff;
}

.mapa-card .tiers {
  font-size: 11.5px;
  line-height: 1.35;
  color: #66809f;
}

/* ---- grupos de mapas (etapas 4A/4B) ---- */
.grupo-mapas {
  grid-column: 1 / -1;
}

.grupo-mapas h3 {
  margin: 6px 0 8px;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #5f7c9e;
}

.grade-mapas-grupo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.mapa-card.bloqueado {
  opacity: 0.55;
  cursor: not-allowed;
}

.mapa-card.bloqueado:hover {
  border-color: #223149;
  background: #0e1622;
}

/* ---- scrollbars ---- */
.grade::-webkit-scrollbar,
.lista-mapas::-webkit-scrollbar {
  width: 8px;
}

.grade::-webkit-scrollbar-thumb,
.lista-mapas::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #2a3a54;
}

/* ============================================================
   ETAPA 3A — EQUIPE, NPC E BATALHA
   ============================================================ */
.painel-equipe {
  width: min(1120px, 96vw);
}

.abas {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 18px;
  border-bottom: 1px solid #1b273b;
}

.aba-equipe,
.aba-membro {
  padding: 6px 12px;
  border: 1px solid #2a3a54;
  border-radius: 999px;
  background: #101826;
  color: #8fa8c8;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.aba-equipe:hover,
.aba-membro:hover {
  border-color: #4a6a92;
  color: #d7e6ff;
}

.aba-equipe.ativa,
.aba-membro.ativa {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.12);
  color: #6fd0f2;
}

.conteudo-equipe {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 15px 18px 20px;
  overflow-y: auto;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.membro-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 1px solid #223149;
  border-radius: 12px;
  background: #0e1622;
}

.membro-card.ativo {
  border-color: #ffd75e;
  box-shadow: 0 0 20px rgba(255, 215, 94, 0.10);
}

.membro-topo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sprite-moldura {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #223149;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(111, 208, 242, 0.14), transparent 65%),
    #0a1018;
}

.sprite-moldura.grande {
  width: 76px;
  height: 76px;
}

.sprite-equipe {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
}

.sprite-moldura.grande .sprite-equipe {
  width: 68px;
  height: 68px;
}

.membro-topo h3,
.digimon-equip-topo h3 {
  margin: 2px 0 2px;
  font-size: 15px;
  color: #eaf4ff;
}

.selo {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #2a3a54;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #7f99bb;
}

.selo.ativo {
  border-color: #ffd75e;
  color: #ffd75e;
  background: rgba(255, 215, 94, 0.08);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #7f99bb;
}

select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #2a3a54;
  border-radius: 7px;
  background: #0a1018;
  color: #d7e6ff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

select:hover,
select:focus {
  outline: none;
  border-color: #6fd0f2;
}

.nivel-linha {
  margin: 0;
  font-size: 13px;
  color: #9fb8d8;
}

.nivel-linha strong {
  color: #ffd75e;
}

.exp-linha {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #66809f;
}

.barra.exp {
  height: 5px;
}

.barra.exp > div {
  background: linear-gradient(90deg, #b8860b, #ffd75e);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.status-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #1b273b;
  border-radius: 6px;
  background: #0a1018;
  font-size: 11.5px;
}

.status-grid span {
  color: #66809f;
}

.status-grid strong {
  color: #eaf4ff;
  font-weight: normal;
}

.buff-digivice {
  margin: 0;
  font-size: 11px;
  color: #ffd75e;
}

.membro-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aviso-equipe {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #66809f;
}

.equip-resumo {
  padding: 10px 12px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: rgba(111, 208, 242, 0.05);
}

.equip-resumo h3 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #6fd0f2;
}

.equip-resumo p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9fb8d8;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.equip-linha,
.equip-bloco {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #1b273b;
  border-radius: 9px;
  background: #0e1622;
}

.equip-rotulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.equip-rotulo span {
  font-size: 12.5px;
  color: #cfe3ff;
}

.equip-rotulo small {
  font-size: 11px;
  color: #66809f;
  text-align: right;
}

.digivice-bloco {
  grid-column: span 2;
}

.equip-titulo {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ffd75e;
}

.digivice-efeito {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9fb8d8;
}

.digivice-efeito strong {
  color: #ffd75e;
}

.digimon-equip-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: #0e1622;
}

.digimon-equip-corpo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.abas-membros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---- diálogo do NPC ---- */
.painel-dialogo {
  width: min(720px, 96vw);
}

.dialogo-corpo {
  padding: 15px 18px;
  overflow-y: auto;
}

.dialogo-corpo > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cfe3ff;
}

.dialogo-time {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.dialogo-membro {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #223149;
  border-radius: 9px;
  background: #0a1018;
}

.dialogo-membro canvas {
  flex: none;
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border: 1px solid #1b273b;
  border-radius: 7px;
  background: #0e1622;
}

.dialogo-membro strong {
  display: block;
  font-size: 13px;
  color: #eaf4ff;
}

.dialogo-membro span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: #7f99bb;
}

.dialogo-recompensa {
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid #3f3518;
  border-radius: 8px;
  background: rgba(255, 215, 94, 0.06);
  color: #ffd75e !important;
  font-size: 9.5px !important;
}

.dialogo-acoes {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #223149;
}

.botao.principal {
  border-color: #ffd75e;
  color: #ffd75e;
  background: rgba(255, 215, 94, 0.1);
}

.botao.principal:hover {
  background: rgba(255, 215, 94, 0.2);
}

.botao.extra {
  border-color: #8fa8c8;
  color: #8fa8c8;
}

/* ---- batalha ---- */
.painel-batalha {
  width: min(1180px, 97vw);
  max-height: 96vh;
}

.campo-batalha {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 14px 24px 12px;
  border-bottom: 1px solid #223149;
  background: #0a1018;
}

#batalha-fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.campo-batalha .lado-batalha,
.campo-batalha .versus {
  position: relative;
  z-index: 1;
}

.lado-batalha {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.lado-batalha canvas {
  width: 160px;
  height: 160px;
  image-rendering: auto;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.retrato-batalha {
  position: relative;
  display: grid;
  place-items: center;
}

.retrato-batalha::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -3px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(3px);
}

.lado-batalha.inimigo canvas {
  transform: scaleX(-1);
}

.lado-batalha h3 {
  margin: 4px 0 0;
  font-size: 16px;
  color: #f2f8ff;
}

.barra-linha {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(300px, 100%);
  margin-top: 2px;
}

.barra-rotulo {
  flex: none;
  width: 24px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: right;
  color: #7cf0b8;
}

.barra-rotulo.ds {
  color: #6fd0f2;
}

.barra-vida,
.barra-mana {
  flex: 1;
  height: 12px;
  overflow: hidden;
  border: 1px solid #223149;
  border-radius: 5px;
  background: #080d16;
}

.barra-vida > div,
.barra-mana > div {
  height: 100%;
  transition: width 0.3s ease;
}

.barra-vida > div {
  background: linear-gradient(90deg, #36b37e, #7cf0b8);
}

.barra-mana > div {
  background: linear-gradient(90deg, #3a7bd5, #6fd0f2);
}

.barra-texto {
  font-size: 13px;
  color: #9fb8d8;
}

.buffs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  min-height: 15px;
  margin-top: 2px;
}

.buff-tag {
  padding: 1px 6px;
  border: 1px solid rgba(255, 215, 94, 0.4);
  border-radius: 999px;
  background: rgba(255, 215, 94, 0.1);
  color: #ffd75e;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

.versus {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffd75e;
  text-shadow: 0 2px 0 #6d4e08, 0 0 18px rgba(255, 215, 94, 0.45);
}

.batalha-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 9px 18px;
  border-bottom: 1px solid #223149;
}

.grupo-time-batalha h4 {
  margin: 0 0 5px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: #66809f;
}

.mini-lista {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-membro {
  font-size: 12.5px;
  color: #7f99bb;
}

.mini-membro.ativo {
  color: #eaf4ff;
}

.mini-membro.nocauteado {
  opacity: 0.35;
  text-decoration: line-through;
}

.barra.mini {
  height: 3px;
  margin-top: 2px;
  border: 0;
  border-radius: 2px;
}

.barra.mini > div {
  background: linear-gradient(90deg, #36b37e, #7cf0b8);
}

.batalha-log {
  flex: 1 1 auto;
  min-height: 100px;
  max-height: 170px;
  overflow-y: auto;
  padding: 9px 18px;
  background: #080d16;
  font-size: 13px;
  line-height: 1.45;
}

.log-linha {
  margin: 0 0 3px;
  color: #9fb8d8;
}

.log-titulo,
.log-vitoria,
.log-nivel {
  color: #ffd75e;
}

.log-bom,
.log-item,
.log-recompensa {
  color: #7cf0b8;
}

.log-ruim,
.log-derrota,
.log-nocaute {
  color: #ff8f8f;
}

.log-critico {
  color: #ffb347;
  font-weight: bold;
}

.log-tecnica {
  color: #6fd0f2;
}

.log-troca,
.log-defesa {
  color: #b9a3ff;
}

.batalha-acoes {
  flex: none;
  padding: 10px 18px 12px;
  border-top: 1px solid #223149;
  background: rgba(14, 22, 34, 0.8);
}

.acao-batalha {
  padding: 8px 12px;
  border: 1px solid #33415a;
  border-radius: 8px;
  background: #101826;
  color: #cfe3ff;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.acao-batalha:hover:not(:disabled) {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.12);
  color: #6fd0f2;
}

.acao-batalha:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* menu principal: Batalha, Mochila, Equipe, Correr */
.batalha-acoes > .acao-principal {
  display: inline-grid;
  grid-template-rows: auto auto;
  gap: 2px;
  width: calc(25% - 8px);
  min-width: 150px;
  margin: 4px 4px 0 0;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.acao-principal strong {
  font-size: 15.5px;
  letter-spacing: 1.5px;
  color: #eaf4ff;
}

.acao-principal small {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #6f8bb0;
}

.acao-principal:hover:not(:disabled) strong {
  color: #6fd0f2;
}

.acao-principal:hover:not(:disabled) small {
  color: #9fd8f2;
}

.menu-titulo {
  margin: 2px 0 8px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7f99bb;
}

.menu-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.menu-vazio {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #8fa8c8;
}

.menu-aviso {
  margin: 7px 0 0;
  font-size: 11px;
  color: #66809f;
}

.grade-tecnicas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.grade-tecnicas .acao-tecnica {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  text-align: left;
}

.tecnica-slot {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #33415a;
  border-radius: 4px;
  font-size: 12px;
  color: #6f8bb0;
}

.tecnica-nome {
  font-size: 13px;
  color: #dbeaff;
}

.tecnica-tipo {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #7fa4c8;
}

.tecnica-custo {
  font-size: 12px;
  color: #6fd0f2;
}

.acao-tecnica.acao-buff .tecnica-custo {
  color: #ffd75e;
}

.grade-mochila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.acao-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  text-align: left;
}

.item-nome {
  font-size: 13px;
  color: #dbeaff;
}

.item-desc {
  grid-column: 1;
  font-size: 12px;
  color: #7f99bb;
}

.item-qtd {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 14px;
  color: #ffd75e;
}

.grade-equipe-batalha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.acao-troca {
  display: grid;
  gap: 2px;
  text-align: left;
}

.equipe-nome {
  font-size: 13.5px;
  color: #dbeaff;
}

.equipe-info {
  font-size: 12px;
  color: #7f99bb;
}

.equipe-status {
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: #6fd0f2;
}

.acao-troca:disabled .equipe-status {
  color: #8fa8c8;
}

.acao-correr {
  border-color: #ff8f8f;
  color: #ffb3b3;
  background: rgba(255, 107, 107, 0.08);
}

.acao-correr:hover:not(:disabled) {
  border-color: #ff8f8f;
  background: rgba(255, 107, 107, 0.2);
  color: #ffd0d0;
}

.continuar-batalha {
  display: block;
  width: min(360px, 100%);
  margin-left: auto;
  border-color: #ffd75e;
  color: #ffd75e;
  background: rgba(255, 215, 94, 0.1);
  text-align: center;
}

.continuar-batalha:hover {
  background: rgba(255, 215, 94, 0.2);
}

.log-buff {
  color: #ffd75e;
}

.log-fuga {
  color: #b9a3ff;
}

/* ---- aprender técnica ---- */
.painel-aprender {
  width: min(760px, 96vw);
}

.aprender-corpo {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  overflow-y: auto;
}

.aprender-tecnica {
  padding: 12px 14px;
  border: 1px solid rgba(255, 215, 94, 0.35);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 215, 94, 0.08), rgba(255, 215, 94, 0.02));
}

.aprender-tecnica h3 {
  margin: 4px 0 4px;
  font-size: 16px;
  color: #ffe9a8;
}

.aprender-tecnica p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #b8cce8;
}

.selo-novo {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(255, 215, 94, 0.5);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #ffd75e;
}

.aprender-slots h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7f99bb;
}

.grade-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slot-tecnica {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 3px 9px;
  padding: 9px 11px;
  border: 1px solid #33415a;
  border-radius: 8px;
  background: #101826;
  color: #cfe3ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.slot-tecnica:hover {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.1);
}

.slot-numero {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #33415a;
  border-radius: 4px;
  font-size: 11px;
  color: #6f8bb0;
}

.slot-nome {
  font-size: 12.5px;
  color: #dbeaff;
}

.slot-custo {
  font-size: 11px;
  color: #6fd0f2;
}

.slot-trocar {
  grid-column: 1 / -1;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #ffd75e;
}

.aprender-acoes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px 16px;
}

.ignorar-tecnica {
  width: min(280px, 100%);
  border-color: #33415a;
  color: #8fa8c8;
  background: #101826;
}

.ignorar-tecnica:hover {
  border-color: #ff8f8f;
  color: #ffb3b3;
}

/* ---- técnicas na tela de equipe ---- */
.tecnicas-bloco {
  padding: 8px 10px;
  border: 1px solid #1b273b;
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.45);
}

.tecnicas-titulo {
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: #66809f;
}

.tecnicas-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tecnica-chip {
  padding: 3px 7px;
  border: 1px solid #2a3a54;
  border-radius: 6px;
  background: #0d1420;
  font-size: 11px;
  color: #b8cce8;
}

.tecnica-chip b {
  color: #6fd0f2;
  font-weight: normal;
}

.tecnica-chip small {
  margin-left: 4px;
  color: #6f8bb0;
}

.tecnicas-pendentes {
  margin: 7px 0 0;
  font-size: 11px;
  color: #ffd75e;
}

.tecnicas-proxima {
  margin: 7px 0 0;
  font-size: 11px;
  color: #7fa4c8;
}

/* ---- ajuda dentro da batalha ---- */
.batalha-ajuda {
  margin: 0;
  padding: 7px 18px 0;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: #7f99bb;
  text-align: right;
}

.batalha-ajuda kbd {
  min-width: 16px;
  padding: 1px 4px;
  font-size: 12px;
}

/* foco do teclado no menu de batalha */
.acao-batalha.foco {
  border-color: #ffd75e;
  background: rgba(255, 215, 94, 0.14);
  box-shadow:
    0 0 0 2px rgba(255, 215, 94, 0.28),
    0 0 16px rgba(255, 215, 94, 0.18);
  color: #ffe9a8;
}

.acao-batalha.foco strong,
.acao-batalha.foco .slot-nome {
  color: #ffe9a8;
}

/* ---- mochila fora da batalha ---- */
.painel-mochila {
  width: min(780px, 96vw);
  max-height: 90vh;
}

.lista-mochila {
  display: grid;
  gap: 14px;
  padding: 14px 18px 20px;
  overflow-y: auto;
}

.mochila-secao h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6fd0f2;
}

.grade-mochila {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.mochila-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 9px 11px;
  border: 1px solid #223149;
  border-radius: 8px;
  background: #0e1622;
}

.mochila-nome {
  font-size: 13px;
  color: #eaf4ff;
}

.mochila-qtd {
  font-size: 13px;
  color: #ffd75e;
}

.mochila-desc {
  grid-column: 1 / -1;
  font-size: 11.5px;
  line-height: 1.4;
  color: #7f99bb;
}

/* ---- Tamer: escolha visual, retrato e caminhada ---- */
.tamer-escolha {
  padding: 10px 11px 11px;
  border: 1px solid #223149;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 208, 242, 0.08), transparent 55%),
    #0b1220;
}

.tamer-escolha-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tamer-escolha-topo span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #d7e6ff;
}

.tamer-escolha-topo small {
  font-size: 11px;
  color: #66809f;
}

.tamer-escolha-topo strong {
  color: #ffd75e;
}

.tamer-galeria {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.tamer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 5px 4px 6px;
  border: 1px solid #223149;
  border-radius: 10px;
  background: #0e1622;
  color: #8fa8c8;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.tamer-card:hover {
  border-color: #4a6a92;
  background: #111c2c;
  transform: translateY(-2px);
}

.tamer-card.ativo {
  border-color: var(--cor-tamer, #ffd75e);
  background: #152033;
  box-shadow:
    0 0 0 1px var(--cor-tamer, #ffd75e),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.tamer-card:focus-visible {
  outline: 2px solid #ffd75e;
  outline-offset: 2px;
}

.tamer-card-retrato {
  display: grid;
  place-items: center;
  width: 64px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(111, 208, 242, 0.15), transparent 70%),
    #0a1018;
}

.tamer-card-retrato img {
  display: block;
  width: 64px;
  height: auto;
  max-height: 72px;
  image-rendering: pixelated;
}

.tamer-card-nome {
  max-width: 100%;
  overflow: hidden;
  color: #d7e6ff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tamer-card-titulo {
  max-width: 100%;
  overflow: hidden;
  color: #66809f;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tamer-card.ativo .tamer-card-nome {
  color: #fff;
}

.tamer-card-check {
  position: absolute;
  top: 4px;
  right: 5px;
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cor-tamer, #ffd75e);
  color: #0a1018;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.tamer-card.ativo .tamer-card-check {
  display: block;
}

.time-tamer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  padding: 8px 10px;
  border: 1px solid #223149;
  border-left: 3px solid #ffd75e;
  border-radius: 10px;
  background: #0e1622;
}

.time-tamer-retrato {
  flex: none;
  width: 64px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #2a3a54;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(111, 208, 242, 0.16), transparent 70%),
    #0a1018;
  image-rendering: pixelated;
}

.time-tamer-info {
  flex: 1;
  min-width: 0;
}

.time-tamer-info span {
  display: block;
  color: #ffd75e;
  font-size: 10.5px;
  letter-spacing: 1.2px;
}

.time-tamer-info strong {
  display: block;
  color: #f2f8ff;
  font-size: 15px;
}

.time-tamer-info small {
  display: block;
  overflow: hidden;
  color: #66809f;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.time-tamer .botao {
  flex: none;
}

.tamer-guia {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tamer-perfil {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #223149;
  border-left: 3px solid var(--cor-tamer, #6fd0f2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 25%, rgba(111, 208, 242, 0.10), transparent 42%),
    #0e1622;
}

.tamer-retrato-moldura {
  display: grid;
  place-items: center;
  width: 176px;
  height: 194px;
  border: 1px solid #2a3a54;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(111, 208, 242, 0.18), transparent 65%),
    #0a1018;
  box-shadow: inset 0 0 0 1px rgba(111, 208, 242, 0.08);
}

.tamer-retrato {
  width: 160px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
}

.tamer-identidade h3 {
  margin: 2px 0 2px;
  font-size: 17px;
  color: #f2f8ff;
}

.tamer-identidade .tag {
  margin: 0 0 7px;
}

.tamer-identidade .campo {
  max-width: 280px;
}

.tamer-nota {
  margin: 6px 0 0;
  max-width: 420px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #66809f;
}

.tamer-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tamer-preview-canvas {
  width: 150px;
  height: 206px;
  border: 1px solid #223149;
  border-radius: 10px;
  background:
    linear-gradient(rgba(111, 208, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 208, 242, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 75%, rgba(111, 208, 242, 0.12), transparent 60%),
    #0a1018;
  background-size: 16px 16px, 16px 16px, auto, auto;
  image-rendering: pixelated;
}

.tamer-preview-botoes {
  display: flex;
  gap: 5px;
}

.tamer-preview-botao {
  padding: 4px 8px;
  border: 1px solid #2a3a54;
  border-radius: 999px;
  background: #101826;
  color: #8fa8c8;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.tamer-preview-botao:hover {
  border-color: #4a6a92;
  color: #d7e6ff;
}

.tamer-preview-botao.ativo {
  border-color: #6fd0f2;
  background: rgba(111, 208, 242, 0.12);
  color: #6fd0f2;
}

.tamer-esqueleto {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.tamer-corpo {
  padding: 10px;
  border: 1px solid #223149;
  border-radius: 12px;
  background:
    linear-gradient(rgba(111, 208, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 208, 242, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 25%, rgba(111, 208, 242, 0.08), transparent 60%),
    #0a1018;
  background-size: 20px 20px, 20px 20px, auto, auto;
}

.tamer-corpo-topo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 4px;
}

.tamer-corpo-topo span {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #6fd0f2;
}

.tamer-corpo-topo small {
  font-size: 10.5px;
  color: #66809f;
  text-align: left;
}

.tamer-esqueleto-svg {
  display: block;
  width: 100%;
  height: auto;
}

.esqueleto-parte {
  fill: rgba(111, 208, 242, 0.09);
  stroke: #3f8aa5;
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.15s, stroke 0.15s;
}

.esqueleto-parte:hover {
  fill: rgba(111, 208, 242, 0.28);
  stroke: #9fe8ff;
}

.esqueleto-parte.equipado {
  fill: rgba(111, 208, 242, 0.18);
  stroke: #ffd75e;
}

.esqueleto-parte.destacado {
  fill: rgba(255, 215, 94, 0.36);
  stroke: #ffe98a;
}

.esqueleto-no {
  stroke-width: 1;
}

.esqueleto-osso {
  fill: none;
  stroke: #2a5a70;
  stroke-width: 1.1;
  pointer-events: none;
}

.tamer-rotulos {
  fill: #6fd0f2;
  font-size: 10px;
  font-family: inherit;
  letter-spacing: 0.6px;
  opacity: 0.85;
  pointer-events: none;
}

.tamer-rotulos text {
  paint-order: stroke;
  stroke: #0a1018;
  stroke-width: 2px;
  stroke-linejoin: round;
}

.tamer-equipamentos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tamer-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #1b273b;
  border-radius: 9px;
  background: #0e1622;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tamer-grupo.destacado {
  border-color: #ffd75e;
  box-shadow: 0 0 0 1px rgba(255, 215, 94, 0.22);
}

.tamer-grupo-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tamer-grupo-topo span {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #6fd0f2;
}

.tamer-grupo-topo small {
  font-size: 10.5px;
  line-height: 1.35;
  color: #66809f;
  text-align: right;
}

.tamer-grupo-item {
  font-size: 12.5px;
  color: #eaf4ff;
}

.tamer-grupo-item small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: #7f99bb;
}

.tamer-grupo-acessorios,
.tamer-grupo[data-slot="digivice"] {
  grid-column: span 2;
}

.tamer-acessorios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tamer-acessorio {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid #1b273b;
  border-radius: 7px;
  background: #0a1018;
}

.tamer-acessorio span {
  font-size: 11px;
  color: #7f99bb;
}

.tamer-acessorio select {
  padding: 4px 6px;
  font-size: 11px;
}

.tamer-acessorio.destacado {
  border-color: #ffd75e;
  box-shadow: 0 0 0 1px rgba(255, 215, 94, 0.22);
}

@media (max-width: 860px) {
  .time-grid {
    grid-template-columns: 1fr;
  }

  .tamer-perfil {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tamer-preview {
    grid-column: span 2;
    flex-direction: row;
    justify-content: center;
  }

  .tamer-esqueleto {
    grid-template-columns: 1fr;
  }

  .tamer-corpo {
    max-width: 300px;
    margin: 0 auto;
  }

  .tamer-equipamentos {
    grid-template-columns: 1fr;
  }

  .tamer-grupo-acessorios,
  .tamer-grupo[data-slot="digivice"] {
    grid-column: auto;
  }

  .tamer-acessorios-grid {
    grid-template-columns: 1fr;
  }

  .equip-grid {
    grid-template-columns: 1fr;
  }

  .digivice-bloco {
    grid-column: auto;
  }

  .campo-batalha {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 10px;
  }

  .lado-batalha canvas {
    width: 110px;
    height: 110px;
  }

  .versus {
    font-size: 15px;
  }

  .dialogo-time {
    grid-template-columns: 1fr;
  }

  .batalha-acoes > .acao-principal {
    width: calc(50% - 8px);
  }

  .grade-tecnicas,
  .grade-mochila,
  .grade-slots {
    grid-template-columns: 1fr;
  }

  .grade-equipe-batalha {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .overlay {
    padding: 8px;
  }

  .tamer-perfil {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tamer-identidade {
    text-align: center;
  }

  .tamer-identidade .campo {
    margin: 0 auto;
    text-align: left;
  }

  .tamer-preview {
    grid-column: auto;
  }

  .painel {
    max-height: 94vh;
  }

  .grade {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: 10px;
  }

  .lista-mapas {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .batalha-times {
    grid-template-columns: 1fr;
  }

  .lado-batalha canvas {
    width: 84px;
    height: 84px;
  }

  .lado-batalha h3 {
    font-size: 13px;
  }

  .batalha-acoes {
    padding: 8px;
  }

  .batalha-acoes > .acao-principal {
    width: 100%;
    margin-right: 0;
  }

  .acao-batalha {
    width: 100%;
  }
}

/* ---- Tamer: galeria responsiva ---- */
@media (max-width: 1180px) {
  .tamer-galeria {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tamer-card-retrato {
    width: 96px;
    height: 108px;
  }

  .tamer-card-retrato img {
    width: 96px;
    max-height: 108px;
  }

  .tamer-card-nome {
    font-size: 12px;
  }

  .tamer-card-titulo {
    font-size: 10.5px;
  }
}

@media (max-width: 620px) {
  .tamer-galeria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tamer-escolha-topo {
    flex-direction: column;
    gap: 2px;
  }

  .time-tamer {
    flex-wrap: wrap;
  }

  .time-tamer .botao {
    width: 100%;
  }
}
/* ============================================================
   LOGIN, CADASTRO E SAVE NA NUVEM
   ============================================================ */

body.auth-bloqueado {
  overflow: hidden;
}

body.auth-bloqueado .console {
  display: none;
}

.tela-auth {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(41, 82, 135, 0.48), transparent 52%),
    linear-gradient(145deg, #08101c 0%, #0c1523 48%, #05080e 100%);
}

.tela-auth.escondido {
  display: none;
}

.tela-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(111, 208, 242, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 208, 242, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}

.auth-brilho {
  position: fixed;
  top: -180px;
  left: 50%;
  width: 620px;
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(111, 208, 242, 0.2), transparent 68%);
  filter: blur(10px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid #2e405e;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(22, 34, 53, 0.97), rgba(8, 14, 24, 0.99));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(111, 208, 242, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-topo {
  padding: 28px 28px 22px;
  text-align: center;
  border-bottom: 1px solid #223149;
}

.auth-kicker {
  margin: 0 0 8px;
  color: #6f8bb0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
}

.auth-topo h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 8px;
  color: #f2f8ff;
  text-shadow: 0 3px 0 #1f4f9e, 0 0 24px rgba(91, 156, 255, 0.35);
}

.auth-topo h1 span {
  color: #ffd75e;
  text-shadow: 0 3px 0 #8a6a10, 0 0 24px rgba(255, 215, 94, 0.35);
}

.auth-sub {
  margin: 9px 0 0;
  color: #7f99bb;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-painel {
  display: block;
  padding: 22px 28px 24px;
}

.auth-painel.escondido {
  display: none;
}

.auth-painel-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-painel-topo h2 {
  margin: 0;
  color: #f2f8ff;
  font-size: 18px;
  letter-spacing: 1.2px;
}

.auth-painel-topo p {
  margin: 5px 0 0;
  color: #7f99bb;
  font-size: 12px;
  line-height: 1.45;
}

.auth-voltar {
  flex: none;
  padding: 4px 8px;
  border: 1px solid #33415a;
  border-radius: 6px;
  background: #101826;
  color: #9db4d1;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.auth-voltar:hover {
  border-color: #6fd0f2;
  color: #eaf4ff;
}

.auth-painel label {
  display: block;
  margin: 13px 0 6px;
  color: #a9c1df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.auth-painel input {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #30425f;
  border-radius: 8px;
  outline: none;
  background: #0a111c;
  color: #ecf5ff;
  font: inherit;
  font-size: 14px;
  user-select: text;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-painel input::placeholder {
  color: #526b89;
}

.auth-painel input:focus {
  border-color: #6fd0f2;
  background: #0c1521;
  box-shadow: 0 0 0 3px rgba(111, 208, 242, 0.12);
}

.auth-dica {
  margin: 6px 0 0;
  color: #5e7897;
  font-size: 10.5px;
  line-height: 1.4;
}

.auth-msg {
  min-height: 18px;
  margin: 14px 0 0;
  color: #8fa8c8;
  font-size: 12px;
  line-height: 1.45;
}

.auth-msg.erro {
  color: #ff8f8f;
}

.auth-msg.sucesso {
  color: #8fe8c0;
}

.auth-msg.info {
  color: #6fd0f2;
}

.auth-botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.auth-botao {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #3a4d6b;
  border-radius: 8px;
  background: #121d2d;
  color: #b9cde6;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.auth-botao:hover:not(:disabled) {
  border-color: #6fd0f2;
  background: #172538;
  color: #edf7ff;
  transform: translateY(-1px);
}

.auth-botao.principal {
  border-color: #ffd75e;
  background: rgba(255, 215, 94, 0.12);
  color: #ffd75e;
}

.auth-botao.principal:hover:not(:disabled) {
  background: rgba(255, 215, 94, 0.2);
  color: #fff0b8;
}

.auth-botao:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.auth-link {
  display: block;
  margin: 15px auto 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #7fb7d8;
  font: inherit;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link:hover {
  color: #b8ecff;
}

.auth-rodape {
  margin: 0;
  padding: 0 28px 20px;
  color: #526b89;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.auth-conflito-opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.auth-conflito-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid #2e405e;
  border-radius: 8px;
  background: #0a111c;
}

.auth-conflito-card strong {
  color: #dbe9fb;
  font-size: 11.5px;
}

.auth-conflito-card span {
  color: #6f8bb0;
  font-size: 10.5px;
  line-height: 1.4;
}

.auth-config-corpo {
  color: #9db4d1;
  font-size: 12px;
  line-height: 1.55;
  user-select: text;
}

.auth-config-corpo p {
  margin: 0 0 12px;
}

.auth-config-corpo ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.auth-config-corpo li {
  margin-bottom: 6px;
}

.auth-config-corpo code,
.auth-painel code {
  padding: 1px 5px;
  border: 1px solid #2a3b55;
  border-radius: 4px;
  background: #0a111c;
  color: #8fe8c0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

.usuario-logado {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 12px;
  border: 1px solid #2e405e;
  border-radius: 999px;
  background: rgba(10, 17, 28, 0.88);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.usuario-nome {
  max-width: 150px;
  overflow: hidden;
  color: #dbe9fb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-nuvem {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(111, 208, 242, 0.1);
  color: #6fd0f2;
  font-size: 9.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.status-nuvem.ok {
  background: rgba(143, 232, 192, 0.1);
  color: #8fe8c0;
}

.status-nuvem.sincronizando {
  background: rgba(255, 215, 94, 0.1);
  color: #ffd75e;
}

.status-nuvem.erro {
  background: rgba(255, 143, 143, 0.12);
  color: #ff8f8f;
}

.sair {
  padding: 4px 9px;
  border: 1px solid #3a4d6b;
  border-radius: 999px;
  background: #121d2d;
  color: #9db4d1;
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

.sair:hover {
  border-color: #ff8f8f;
  color: #ffb8b8;
}

.auth-noscript {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #08101c;
  color: #ffb8b8;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 480px) {
  .tela-auth {
    padding: 12px;
    place-items: start center;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    margin: 8px 0;
    max-height: none;
  }

  .auth-topo {
    padding: 24px 20px 18px;
  }

  .auth-painel {
    padding: 20px;
  }

  .auth-botoes,
  .auth-conflito-opcoes {
    grid-template-columns: 1fr;
  }

  .auth-rodape {
    padding: 0 20px 18px;
  }

  .usuario-logado {
    top: 8px;
    right: 8px;
    padding: 5px 6px 5px 9px;
  }

  .usuario-nome {
    max-width: 105px;
    font-size: 11px;
  }

  .status-nuvem {
    font-size: 9px;
  }
}
