/* =============================================================================
   pokemonsurvivor.online â€” standalone PokÃ©dex page
   Depends on site.css (header, shell, buttons, cards, footer).
   ============================================================================= */

.dex-head { padding: 46px 0 26px; }
.dex-head h1 { max-width: 20ch; }
.dex-head .lead { max-width: 66ch; }

.gens { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.gens a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: .84rem; font-weight: 700;
  transition: color .2s, border-color .2s, background .2s;
}
.gens a:hover { color: var(--brand); border-color: rgba(255,203,5,.5); background: var(--brand-soft); }

/* ---------- filter bar ---------- */
.dex-filters {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(7,12,26,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 16px 24px 12px; margin-bottom: 30px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.field input, .field select {
  height: 44px; padding: 0 14px; min-width: 260px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font: inherit; font-size: .92rem;
}
.field select { min-width: 200px; cursor: pointer; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,203,5,.15);
}
.toggle {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--muted); font-size: .86rem; font-weight: 700; cursor: pointer;
}
.toggle input { accent-color: var(--brand); width: 16px; height: 16px; }
.toggle:has(input:checked) { color: var(--brand); border-color: rgba(255,203,5,.55); }

.chips {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.tychip {
  flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-2);
  color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.tychip:hover { color: var(--ink); border-color: var(--c, var(--brand)); }
.tychip.active {
  color: var(--c, var(--brand));
  border-color: var(--c, var(--brand));
  background: color-mix(in srgb, var(--c, #ffcb05) 16%, transparent);
}
.count { margin: 10px 0 0; color: var(--faint); font-size: .82rem; font-weight: 700; }

/* ---------- regions & grid ---------- */
.dex-region { padding: 8px 0 34px; scroll-margin-top: 210px; }
.dex-region[hidden] { display: none; }
.region-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.region-title span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.region-title small { color: var(--faint); font-size: .88rem; font-weight: 700; }

.dex-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.dex-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-soft);
  text-align: center;
  transition: transform .16s, border-color .16s, background .16s;
}
.dex-card:hover {
  transform: translateY(-3px); border-color: rgba(255,203,5,.45);
  background: var(--card-2);
}
.dex-card[hidden] { display: none; }
.dex-card img {
  width: 88px; height: 88px; object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
}
.dex-card .n { color: var(--faint); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.dex-card .nm { font-size: .92rem; font-weight: 700; line-height: 1.25; }
.dex-card .tys { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 2px; }
.dex-card .ty {
  font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 999px; color: #0b0d14;
}
.dex-card .st {
  margin-top: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  border: 1px solid rgba(255,203,5,.4); border-radius: 999px; padding: 1px 8px;
}
.dex-empty {
  display: none; padding: 40px 0 60px; text-align: center; color: var(--faint);
}
.dex-empty.show { display: block; }

/* ---------- outro ---------- */
.dex-outro { padding: 26px 0 70px; max-width: 76ch; }
.dex-outro p { color: var(--muted); }
.dex-outro .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 940px) {
  .dex-filters { position: static; }
  .dex-region { scroll-margin-top: 20px; }
  .field input, .field select { min-width: 0; width: 100%; }
  .filter-row > .field { flex: 1 1 200px; }
}
@media (max-width: 560px) {
  .dex-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
  .dex-card img { width: 72px; height: 72px; }
}
