/* Hunter pets: a sticky control bar (level slider + family picker) over a grid of ability cards.
   Each card's rank strip is the heart of the page: one chip per rank, labelled with the pet level it needs,
   lit when the chosen level reaches it. Colours come from app.css only. */

.pt { max-width: 1100px; }
.pt h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.pt-guides { margin: -4px 0 8px; font-size: 14px; }
.pt-lede { margin: 4px 0 14px; color: var(--muted); font-size: 14px; max-width: 75ch; line-height: 1.55; }
.pt a { color: var(--field); }

.pt-controls {
  position: sticky; top: 8px; z-index: 4; padding: 12px 14px 10px; margin-bottom: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.pt-level { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pt-level input { flex: 1; max-width: 420px; accent-color: var(--gold); }
.pt-level output { font: 600 20px var(--code); color: var(--gold); min-width: 2ch; text-align: right; }

.pt-famlist { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-fam {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  font: 13px var(--ui); color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.pt-fam img { width: 22px; height: 22px; border-radius: 50%; }
.pt-fam-all { padding: 5px 12px; }
.pt-fam:hover { border-color: var(--muted); }
.pt-fam[aria-pressed="true"] { border-color: var(--gold); background: var(--raise); }
.pt-fam:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.pt-family {
  display: flex; gap: 14px; align-items: center; margin: 0 0 16px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px;
}
.pt-family img { width: 48px; height: 48px; border-radius: 6px; }
.pt-family h2 { margin: 0 0 4px; font-size: 19px; }
.pt-family p { margin: 2px 0; font-size: 14px; }
.pt-k { color: var(--muted); margin-right: 4px; }
.pt-food { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--raise); font-size: 12.5px; margin: 1px 0; }

.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pt-ab {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.pt-ab-later { opacity: .62; }
.pt-ab header { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pt-ab header > div { min-width: 0; }
.pt-ic { width: 36px; height: 36px; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.pt-ab h3 { margin: 0; font-size: 15.5px; }
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; }
.pt-tag { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--raise); color: var(--muted); }
.pt-tag-tame { color: var(--str); }
.pt-tag-new { color: var(--bg); background: var(--gold); font-weight: 600; }
.pt-fams { display: inline-flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.pt-fams img { width: 18px; height: 18px; border-radius: 50%; }
.pt-allfam { font-size: 12px; color: var(--muted); }
.pt-desc { margin: 0; font-size: 13.5px; color: var(--str); line-height: 1.45; }
.pt-status { margin: 0; font-size: 13px; }
.pt-now { color: var(--text); font-weight: 600; }
.pt-next { color: var(--muted); }
.pt-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* rank strip: number on top, pet level underneath */
.pt-ranks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pt-rk {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; padding: 3px 4px;
  border: 1px solid var(--line); border-radius: 5px; text-decoration: none; color: var(--text);
  background: var(--raise); line-height: 1.1;
}
.pt-rk b { font: 600 13px var(--code); }
.pt-rk small { font-size: 10.5px; color: var(--muted); }
a.pt-rk:hover { border-color: var(--field); }
.pt-rk-later { opacity: .45; }
.pt-rk-now { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pt-rk-now b { color: var(--gold); }
.pt-rk-new { border-style: dashed; }

.pt-how { margin-top: 34px; max-width: 75ch; }
.pt-how h2 { font-size: 19px; color: var(--gold); margin: 0 0 8px; }
.pt-how p { line-height: 1.6; margin: 0 0 10px; }
.pt-credit { color: var(--muted); font-size: 13.5px; }

@media (max-width: 760px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-level input { max-width: none; }
}
/* tameable beasts near the chosen level */
.pt-near h3 { font-size: 15px; margin: 18px 0 6px; }
.pt-nearl { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; font-size: 13.5px; }
.pt-dim { color: var(--muted); }

/* rare tames: pointers to their guide pages (guideTeaser) */
.pt-rare { margin: 6px 0 24px; max-width: 80ch; }
.pt-rare h2 { font-size: 19px; color: var(--gold); margin: 0 0 8px; }
/* every rare tameable beast (showRares): small portrait cards, the first nine until "Show all" */
.pt-rare { max-width: none; }
.pt-rare .rt-teaser { margin-bottom: 10px; }
.pt-rare h3 { font-size: 15px; margin: 14px 0 8px; }
.pt-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.pt-rgrid[data-open="false"] .pt-rmore { display: none; }
.pt-rcard { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 6px 8px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text) !important; }
.pt-rcard:hover { border-color: var(--gold); }
.pt-rcard img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; background: #0b0f18; }
.pt-rcard span { min-width: 0; }
.pt-rcard b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-rcard small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-rk { font-style: normal; font-size: 11px; font-weight: 600; color: #c0c0d8; }
.pt-rk-rareelite { color: var(--gold); }
.pt-rshow { margin: 10px 0 0; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--field); cursor: pointer; font: inherit; font-size: 13.5px; }
.pt-rshow:hover { border-color: var(--gold); }
.pt-rnote { font-size: 12.5px; margin: 8px 0 0; }
