/* ============================================
   ADOPT ME CALCULATOR - Estilos da Calculadora
   ============================================ */

/* ============================================
   BADGES DE ÍCONES (Base + Extras)
   ============================================ */
.badges-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}

.badge-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.badge-esquerda {
  position: absolute;
  top: 4px;
  left: 4px;
}

.badge-icone-grupo.badge-direita {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  /* gap: 2px; */
  /* border-radius: 10px; */
}

.badge-neon  {background: #8cc63f;}
.badge-mega  {background: #8128ec;}
.badge-montar {background: #c40da5;border-radius: 10px;}
.badge-voar   {background: #1c7ff2;border-radius: 10px;}
.badge-adulto {background: #fdcb58;color: #333;border-radius: 10px;}

/* Badges menores dentro dos slots */
.slot-pet .badge-icone {
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
}

/* ============================================
   LAYOUT PRINCIPAL - 3 COLUNAS
   ============================================ */
#calculadora-troca {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
  min-width: 300px;
}

/* ============================================
   COLUNAS DE SELEÇÃO (A e B)
   ============================================ */
.coluna-selecao {
  position: sticky;
  top: 90px;
  height: fit-content;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.selecao-container {
  background: var(--bg-card);
  border-radius: var(--borda-radius);
  padding: 1rem;
  box-shadow: var(--sombra-card);
}

.selecao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.selecao-header h2 {
  font-size: 1.1rem;
  color: var(--texto-principal);
}

.selecao-total-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0 1rem 0;
}

.selecao-total-top .total-label {
  font-size: 0.75rem;
  color: var(--texto-muted);
}

.selecao-total-top .total-valor {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cor-destaque);
  margin: auto;
}

/* Botão Check */
.btn-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secundario);
  color: var(--texto-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicao-rapida);
  box-shadow: none;
  display: none;
}

.btn-check.inativo {
  opacity: 0.8;
}

.btn-check:hover {
  transform: scale(1.1);
}

.btn-check.inativo:hover {
  background: var(--bg-hover);
  color: var(--texto-principal);
}

/* Destacar todo o quadro de slots quando ativo */
.selecao-container.ativa {
  border: 2px solid var(--cor-destaque);
  box-shadow: 0 0 0 6px rgba(107,78,230,0.06), 0 8px 24px rgba(0,0,0,0.2);
}

/* Slots Container */
.slots-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Slot de Pet */
.slot-pet {
  aspect-ratio: 1;
  background: var(--bg-secundario);
  /* keep border width/style constant to avoid layout shift when hovering */
  border: 2px solid transparent;
  border-radius: var(--borda-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  /* only animate specific properties to avoid repaints */
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, box-shadow;
  -webkit-transform: translateZ(0);
  transform-origin: center center;
}

.slot-pet.vazio::before {
  content: '+';
  font-size: 1.5rem;
  color: var(--texto-muted);
}

.slot-pet.vazio:hover {
  border-color: var(--cor-primaria);
  background: var(--bg-hover);
}

.slot-pet.preenchido {
  /* only change color (border already present) to avoid layout shift */
  border-color: var(--cor-primaria);
  background: var(--bg-card);
  cursor: pointer;
}

.slot-pet.preenchido:hover {
  transform: scale(1.00);
  box-shadow: var(--sombra-hover);
  z-index: 3; /* lift above siblings so shadow doesn't affect siblings layout */
}

.slot-pet img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.slot-pet .slot-valor {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--cor-destaque);
  font-size: 0.65rem;
  text-align: center;
  padding: 2px;
  border-radius: 4px;
  font-weight: 600;
}
/* botão de remover foi removido; remoção agora via clique no slot */

/* Footer da Seleção */
.selecao-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.total-container {
  display: flex;
  flex-direction: column;
  display: none;
}

.total-label {
  font-size: 0.75rem;
  color: var(--texto-muted);
}

.total-valor {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cor-destaque);
}

.btn-limpar {
  background: rgb(255 96 79);
  color: var(--cor-erro);
  padding: 0.5rem 0.75rem;
  border-radius: var(--borda-radius-sm);
  font-size: 0.8rem;
  transition: var(--transicao-rapida);
  margin: auto;
}

.btn-limpar:hover {
  background: var(--cor-erro);
  color: white;
}

/* ============================================
   COLUNA CENTRAL - LISTAGEM
   ============================================ */
.coluna-listagem {
  background: var(--bg-card);
  border-radius: var(--borda-radius);
  padding: 1rem;
  box-shadow: var(--sombra-card);
  min-height: 600px;
}

/* Barra Comparativa (A x B) */
.barra-comparativa-container {
  width: 100%;
  margin-bottom: 1rem;
}

.barra-comparativa {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  background: var(--bg-secundario);
}

.barra-comparativa {
  position: relative;
}

.barra-centro {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  color: var(--texto-principal);
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.barra-comp {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 0.8rem;
  transition: width 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.barra-comp.parte-a {
  background-color: #4CAF50; /* Verde */
  color: white;
  justify-content: flex-start;
}

.barra-comp.parte-b {
  background-color: #FFC107; /* Amarelo */
  color: #333;
  justify-content: flex-end;
}

/* Barra de Busca */
#barra-busca {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#campo_busca {
  flex: 1;
  background: var(--bg-secundario);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--borda-radius-sm);
  padding: 0.75rem 1rem;
  color: var(--texto-principal);
  font-size: 0.95rem;
  transition: var(--transicao-rapida);
}

#campo_busca:focus {
  outline: none;
  border-color: var(--cor-primaria);
}

#campo_busca::placeholder {
  color: var(--texto-muted);
}

#btn_buscar {
  background: var(--cor-primaria);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--borda-radius-sm);
  font-weight: 600;
  transition: var(--transicao-rapida);
}

#btn_buscar:hover {
  background: var(--cor-primaria-escura);
}

#btn_limpar_busca {
  background: var(--bg-secundario);
  color: var(--texto-muted);
  width: 40px;
  border-radius: var(--borda-radius-sm);
  font-size: 1.1rem;
  transition: var(--transicao-rapida);
}

#btn_limpar_busca:hover {
  background: var(--cor-erro);
  color: white;
}

/* Filtros */
#filtros-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: -2rem;
  /* padding: 0.5rem 0.75rem; */
  /* background: var(--bg-secundario); */
  border-radius: var(--borda-radius-sm);
}

.filtro-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Melhor distribuição do painel de filtros */
#filtros-container .painel-header {
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#filtros-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem 1rem 1rem;
  /* height: 37px; */
  overflow: hidden;
}

/* Esconder filtros quando o container estiver colapsado (usa !important para sobrescrever regras globais) */
#filtros-container.colapsado #filtros-content {
  display: none !important;
}

.filtros-faixa {
  width: 100%;
  display: grid;
  gap: 0.9rem;
}

.filtros-faixa-superior {
  grid-template-columns: minmax(0, 20.5fr) minmax(0, 1fr);
}

.filtros-faixa-inferior {
  grid-template-columns: minmax(0, 1fr);
}

/* Ajustes finos para inputs e selects dentro dos filtros */
#filtros-content .filtro-grupo select,
#filtros-content .filtro-grupo input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .filtros-faixa-superior {
    grid-template-columns: 1fr;
  }
}

.filtro-grupo label {
  font-size: 0.8rem;
  color: var(--texto-muted);
  font-weight: 600;
  display: none;
}

.classe-opcoes,
.cores-opcoes,
.tipo2-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.classe-btn {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transicao-rapida);
}

.classe-btn:hover {
  transform: translateY(-1px);
}

.classe-btn.ativo {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.classe-common {
  background: #0000ff;
  color: #fff;
}

.classe-uncommon {
  background: #6000ff;
  color: #fff;
}

.classe-rare {
  background: #00ff00;
  color: #fff;
}

.classe-ultra-rare {
  background: #ff0000;
  color: #fff;
}

.classe-legendary {
  background: #000;
  color: #fff;
}

/* Filtro de Cores */
.cores-grupo {
  width: 100%;
}

.cor-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid transparent;
  font-size: 1rem;
  transition: var(--transicao-rapida);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cor-btn:hover {
  transform: scale(1.15);
  border-color: var(--cor-primaria);
}

.cor-btn.ativo {
  border-color: var(--cor-destaque);
  box-shadow: 0 0 10px var(--cor-destaque);
}

.btn-limpar-cores {
  background: transparent;
  color: var(--texto-muted);
  font-size: 0.75rem;
  text-decoration: underline;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.btn-limpar-cores:hover {
  color: var(--cor-erro);
}

/* Resultados Info */
#resultados-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#contador-pets {
  font-size: 0.9rem;
  color: var(--texto-secundario);
}

#btn_toggle_detalhes {
  background: transparent;
  color: var(--cor-primaria);
  font-size: 0.85rem;
  transition: var(--transicao-rapida);
  display: none;
}

#btn_toggle_detalhes:hover {
  color: var(--cor-secundaria);
}

/* Grid de Pets */
#grid-pets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Card de Pet */
.pet-card {
  background: var(--bg-secundario);
  border-radius: var(--borda-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transicao-normal);
  border: 2px solid transparent;
  position: relative;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
  border-color: var(--cor-primaria);
}

.pet-card:active {
  transform: translateY(-2px);
}

.pet-imagem {
  /* position: relative; */
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secundario));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.pet-imagem img {
  width: 100%;
  height: 100%;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  transition: var(--transicao-rapida);
}

.pet-card:hover .pet-imagem img {
  transform: scale(1.1);
}

.badge-novo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, var(--cor-secundaria), #ff4081);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  animation: pulse 2s infinite;
}

.pet-info {
  padding: 0.5rem;
}

.pet-nome {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto-principal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pet-nomebr,
.pet-nome-en {
  font-size: 0.75rem;
  color: var(--texto-secundario);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
}

.pet-detalhes {
  display: flex;
  /* gap: 0.4rem; */
  /* margin-bottom: 0.4rem; */
  margin-top: 7px;
  /* position: absolute; */
  /* top: 146px; */
  bottom: 0px;
}

.pet-classe {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px 0px 0px 4px;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classe-legendary {
  background: #111111;
  color: #ffffff;
  /* border: 1px solid #ff8c00; */
}

.classe-ultra-rare {
  background: #ff0000;
  color: #ffffff;
  /* left: 10px; */
  width: 40px;
  display: flex;
  justify-content: center;
}

.classe-rare {
  background: #3bc100;
  color: #ffffff;
}

.classe-uncommon {
  background: #6000ff;
  color: #ffffff;
}

.classe-common {
  background: #0000ff;
  color: #ffffff;
}

.pet-valor {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cor-destaque);
  text-align: center;
  background: rgb(0 0 0 / 30%);
  padding: 4px;
  border-radius: 0px 4px 4px 0px;
  /* margin-top: 10px; */
  width: 100%;
}

/* Sem resultados */
.sem-resultados {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--texto-muted);
}

.sem-resultados p {
  font-size: 1.2rem;
}

/* ============================================
   PAINEL DE VALORES (próximo aos filtros)
   ============================================ */
#painel-valores-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.valor-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-badge-group {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.custom-badge-label {
  display: inline-block;
  cursor: pointer;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
}

.custom-badge-label input[type="radio"],
.custom-badge-label input[type="checkbox"] {
  display: none;
}

.badge-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.badge-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.cor-cinza { background-color: #808080; }
.cor-verde {background-color: #8cc63f;color: #000;}
.cor-roxo {background-color: #8128ec;}
.cor-rosa {background-color: #c40da5;}
.cor-azul {background-color: #1c7ff2;}
.cor-amarelo {background-color: #fdcb58;color: #333333;FONT-SIZE: 1rem;}

.custom-badge-label input:checked + .badge-square,
.custom-badge-label input:checked + .badge-circle {
  border-color: #FFF;
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  /* transform: scale(1.1); */
}

/* ============================================
   BARRA INFERIOR MOBILE - SLOTS
   ============================================ */
#mobile-slot-bar {
  display: none; /* visível apenas no mobile via media query */
}

.mobile-slot-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
}

.mobile-slot-overlay.active {
  display: block;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1200px) {
  #calculadora-troca {
    grid-template-columns: 240px 1fr 240px;
    gap: 1rem;
  }
  
  .slots-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .slots-container {
    grid-template-columns: repeat(6, 1fr);
  }
  
  #filtros-container {
    flex-direction: column;
  }
  
  .filtro-grupo select {
    width: 100%;
  }
  
  .painel-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .opcoes-base,
  .opcoes-extras {
    flex-wrap: wrap;
  }

  /* --- MOBILE: esconder colunas de slots --- */
  #calculadora-troca {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-bottom: 85px; /* espaço para a barra inferior */
  }

  .coluna-selecao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 200;
    max-height: none;
    height: auto;
    overflow-y: auto;
    background: var(--bg-principal);
    padding: 1rem;
    animation: slideUp 0.25s ease;
  }

  .coluna-selecao.mobile-open {
    display: block;
  }

  .coluna-listagem {
    order: 1;
  }

  #grid-pets {
    max-height: none;
  }

  /* Botão fechar no topo do slot */
  .coluna-selecao.mobile-open .selecao-container::before {
    content: '✕ Fechar';
    display: block;
    text-align: right;
    color: var(--cor-erro);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
  }

  /* --- BARRA INFERIOR MOBILE --- */
  #mobile-slot-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    background: rgba(15, 52, 96, 0.97);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--cor-primaria);
    padding: 0;
  }

  /* Barra comparativa dentro da mobile bar */
  .mobile-barra-comparativa {
    padding: 4px 8px 0;
  }

  .mobile-barra-comparativa .barra-comparativa {
    height: 14px;
    border-radius: 7px;
  }

  .mobile-barra-comparativa .barra-comp {
    font-size: 0.6rem;
    padding: 0 4px;
  }

  .mobile-barra-comparativa .barra-centro {
    font-size: 0.7rem;
  }

  /* Container dos dois lados */
  .mobile-slot-buttons {
    display: flex;
    height: 56px;
  }

  .mobile-slot-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    overflow: hidden;
  }

  .mobile-slot-side:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-slot-side.selected {
    background: rgba(107, 78, 230, 0.25);
    box-shadow: inset 0 0 0 2px var(--cor-destaque);
  }

  .mobile-slot-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cor-destaque);
    white-space: nowrap;
    padding-left: 8px;
    flex: 1;
  }

  .mobile-slot-count {
    position: absolute;
    top: 4px;
    right: 22%;
    background: var(--cor-primaria);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .mobile-btn-ver {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
    border: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s ease;
  }

  .mobile-btn-ver:active {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Barra comparativa fica mais fina no mobile */
  .barra-comparativa {
    height: 18px;
  }

  .barra-comp {
    font-size: 0.65rem;
    padding: 0 6px;
  }

  /* Publish/offer bar sobre a barra mobile */
  #publish-trade-bar,
  #offer-mode-bar {
    margin-bottom: 85px;
  }
}

/* ============================================
   BOTÃO DE FILTROS (ícone simples)
   ============================================ */
.btn-toggle-filtros {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 38px;
  background: var(--bg-terciario, rgba(255,255,255,0.07));
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--texto-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-toggle-filtros:hover {
  background: var(--cor-primaria, #1565c0);
  color: #fff;
  border-color: var(--cor-primaria, #1565c0);
}
.btn-toggle-filtros.ativo {
  background: var(--cor-primaria, #1565c0);
  color: #fff;
  border-color: var(--cor-primaria, #1565c0);
}

/* Label lateral A/B nos cabeçalhos de seleção */
.slot-side-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  margin-right: 4px;
}
.slot-side-label.label-a {
  background: var(--cor-slot-a, #1565c0);
}
.slot-side-label.label-b {
  background: var(--cor-slot-b, #b71c1c);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .slots-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #grid-pets {
    grid-template-columns: repeat(2, 1fr);
  }

  #calculadora-troca {
    zoom: 0.85;
  }
}

@media (max-width: 360px) {
  #calculadora-troca {
    zoom: 0.75;
  }
}

@media (max-width: 320px) {
  .slots-container {
    grid-template-columns: repeat(3, 1fr);
  }

  #grid-pets {
    /* grid-template-columns: 1fr; */
  }
}

/* ============================================
   ANIMAÇÕES ESPECÍFICAS
   ============================================ */
@keyframes slotFill {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.slot-pet.preenchido {
  animation: slotFill 0.3s ease;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pet-card {
  animation: cardAppear 0.3s ease;
}

/* Scrollbar específica para slots */
.coluna-selecao::-webkit-scrollbar {
  width: 4px;
}

.coluna-selecao::-webkit-scrollbar-track {
  background: transparent;
}

.coluna-selecao::-webkit-scrollbar-thumb {
  background: var(--cor-primaria);
  border-radius: 2px;
}



.amarelo { background-color: #FFD700; }
.laranja { background-color: #FFA500; }
.vermelho { background-color: #FF0000; }
.roxo { background-color: #800080; }
.azul { background-color: #0000FF; }
.verde { background-color: #008000; }
.marrom { background-color: #8B4513; }
.branco { background-color: #FFFFFF; border: 2px solid #999; }
.preto { background-color: #000000; }
.cinza { background-color: #808080; }
.rosa { background-color: #FF69B4; }
.pele { background-color: #FFCC99; }

/* Filtro de Tipo2 (botões) */
.tipo2-grupo {
  min-width: 0;
}

.tipo2-btn {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--texto-secundario);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transicao-rapida);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tipo2-btn:hover {
  border-color: var(--cor-primaria);
  background: var(--bg-hover);
  color: var(--texto-principal);
}

.tipo2-btn.ativo {
  border-color: var(--cor-destaque);
  box-shadow: 0 0 10px var(--cor-destaque);
  color: var(--texto-principal);
}

.btn-limpar-tipo2 {
  background: transparent;
  color: var(--texto-muted);
  font-size: 0.75rem;
  text-decoration: underline;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.btn-limpar-tipo2:hover {
  color: var(--cor-erro);
}

.fclasse-legendary{background-color: #000000;}
.fclasse-ultra-rare{background-color: #310707;}
.fclasse-rare{background-color: #03160e;}
.fclasse-uncommon{background-color: #1f0731;}
.fclasse-common{background-color: #061525;}