/* Categorias do Catálogo de Ameaças, compartilhadas com o painel do mestre. */
.npc-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #343b36;
  background: #111612;
}
.npc-category-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #444f45;
  background: #192019;
  color: #b6c0b4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.npc-category-tab[aria-selected='true'],
.npc-category-tab[aria-pressed='true'] {
  color: #f1db9a;
  border-color: #b89a50;
  background: linear-gradient(135deg, #393522, #20271f);
  box-shadow: inset 0 -2px #d3b966;
}
.npc-category-tab:focus-visible,
.npc-guide details > summary:focus-visible {
  outline: 2px solid #91dce6;
  outline-offset: 3px;
}
.npc-category-panel[hidden] {
  display: none !important;
}
.npc-guide {
  --npc-accent: #d4b875;
  color: #d9ddcf;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.65;
  margin-bottom: 24px;
}
.npc-guide--hollow {
  --npc-accent: #9ad9bd;
}
.npc-guide-header {
  padding: 20px 22px;
  border: 1px solid #3e493e;
  background: linear-gradient(120deg, #242a22, #121913);
}
.npc-guide-eyebrow {
  margin: 0 0 7px;
  color: var(--npc-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.npc-guide h3 {
  margin: 0 0 9px;
  color: #f0e9d6;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 750;
  line-height: 1.2;
}
.npc-guide-description {
  max-width: 78ch;
  margin: 0;
  font-size: 13px;
  color: #c0c9ba;
}
.npc-guide-art {
  margin: 0;
  border: 1px solid #4a4437;
  border-top: 0;
  background: #0c0e0e;
}
.npc-guide-art img {
  display: block;
  width: 100%;
  height: auto;
}
.npc-guide-art figcaption {
  padding: 8px 14px;
  color: #c4b8a9;
  font-size: 11px;
  border-top: 1px solid #39352e;
}
.npc-guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.npc-guide-card {
  min-width: 0;
  padding: 18px;
  background: #151c16;
  border: 1px solid #3e493e;
}
.npc-guide-card--weakness {
  background: #211a18;
  border-color: #594139;
}
.npc-guide h4 {
  margin: 0 0 11px;
  color: var(--npc-accent);
  font-size: 13px;
  font-weight: 700;
}
.npc-guide ul {
  padding: 0 0 0 17px;
  margin: 0;
  list-style: disc;
  font-size: 12px;
}
.npc-guide li + li {
  margin-top: 9px;
}
.npc-guide li strong {
  color: #efe8d8;
}
.npc-guide-rules {
  margin-top: 14px;
  padding: 16px 18px;
  background: #111712;
  border: 1px solid #3b493c;
}
.npc-guide-rules > summary {
  color: #e5d5a6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.npc-guide-rules ul {
  margin-top: 14px;
}
.npc-guide-note {
  padding: 11px 14px;
  margin: 14px 0 0;
  border-left: 2px solid var(--npc-accent);
  background: #1b2119;
  color: #bfc5b3;
  font-size: 11px;
}
.npc-guide-dialog {
  width: min(1000px, calc(100vw - 28px));
  max-width: 1000px;
}
.npc-guide-dialog .npc-guide {
  margin-bottom: 0;
}
/* Fichas de consulta com organização de bestiário e os atributos do RPG. */
.npc-guide-subtitle {
  margin: 0;
  color: #bdc6b4;
  font-size: 13px;
}
.npc-classifications {
  margin-top: 16px;
}
.npc-classification-options {
  display: grid;
  grid-template-columns: repeat(var(--npc-classification-count, 5), minmax(0, 1fr));
  gap: 8px;
}
.npc-guide .npc-classification-title {
  margin: 20px 0 0;
  font-size: 23px;
}
.npc-classification-title + .npc-specimen-body {
  margin-top: 14px;
}
.npc-specimen-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
}
.npc-specimen-button {
  padding: 9px 13px;
  min-width: 0;
  border: 1px solid #465348;
  background: #131b15;
  color: #c6cebf;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.npc-specimen-button[aria-pressed='true'] {
  color: #f3dda5;
  background: #342c1c;
  border-color: #b29a61;
  box-shadow: inset 0 -2px #c4a86b;
}
.npc-specimen-button:focus-visible,
.npc-open-full:focus-visible {
  outline: 2px solid #91dce6;
  outline-offset: 3px;
}
.npc-specimen-body {
  padding: 22px;
  border: 1px solid #4d5143;
  border-top: 3px solid var(--npc-accent);
  background: linear-gradient(135deg, #1c211a, #101713 70%);
}
.npc-specimen-body--empty {
  overflow: hidden;
}
.npc-specimen-title {
  padding-bottom: 17px;
  margin-bottom: 20px;
  border-bottom: 1px solid #86634d;
}
.npc-specimen-title h3 {
  color: #f0d7a8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 400;
}
.npc-specimen-role {
  color: #bfc4b3;
  font-size: 12px;
  font-style: italic;
  margin: 0;
}
.npc-dossier-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}
.npc-dossier-layout > * {
  min-width: 0;
}
.npc-dossier-portrait .npc-guide-art {
  border-top: 1px solid #4a4437;
}
.npc-specimen-description {
  margin: 16px 0;
  font-size: 13px;
  color: #c6cbbd;
  line-height: 1.8;
}
.npc-sheet-section + .npc-sheet-section {
  margin-top: 22px;
}
.npc-sheet-section h4 {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #86634d;
  color: #e2c594;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
}
.npc-sheet-section p {
  margin: 0 0 12px;
  color: #c7cebf;
  font-size: 13px;
  line-height: 1.75;
}
.npc-sheet-section p strong {
  color: #f1e3c9;
}
.npc-clan-history {
  margin: 20px 0;
}
.npc-clan-history > summary {
  cursor: pointer;
  color: #e5e4da;
  font-weight: 700;
}
.npc-clan-history > .npc-sheet-section {
  margin-top: 16px;
}
.npc-guide--lobisomem .npc-guide-art img {
  aspect-ratio: 2 / 3;
  max-height: none;
  object-fit: contain;
}
.npc-sheet-pending {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #6c5b3d;
  background: #282719;
  font-size: 12px;
}
.npc-sheet-pending strong {
  color: #ead7a9;
}
.npc-sheet-pending p {
  margin: 5px 0 0;
  color: #c7c4ac;
}
.npc-sheet-numbers {
  margin-bottom: 22px;
}
.npc-resource-grid,
.npc-attribute-grid {
  display: grid;
  gap: 5px;
  margin: 0;
}
.npc-resource-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 12px;
}
.npc-attribute-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #86634d;
  border-bottom: 1px solid #86634d;
  padding: 12px 0;
}
.npc-resource-grid > div,
.npc-attribute-grid > div {
  text-align: center;
  min-width: 0;
  padding: 8px 2px;
  background: #0d1510;
}
.npc-resource-grid dt,
.npc-attribute-grid dt {
  color: #c3bd9e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.npc-resource-grid dd,
.npc-attribute-grid dd {
  margin: 4px 0 0;
  color: #f1e4c4;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
}
.npc-doll-reference {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #4c5548;
}
.npc-doll-reference > .npc-sheet-section {
  margin-top: 0;
}
.npc-drain-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12px;
  color: #d8dccf;
}
.npc-drain-table caption {
  text-align: left;
  color: #b5bca9;
  font-size: 11px;
  margin-bottom: 10px;
}
.npc-drain-table th,
.npc-drain-table td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #354033;
}
.npc-drain-table th {
  color: #dfcc9b;
  background: #242b20;
}
.npc-drain-table tbody tr:last-child {
  color: #e8baad;
}
.npc-open-full {
  display: inline-block;
  padding: 14px 0 2px;
  color: #ddc593;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Mostruário independente: a mesma ficha pode ser lida fora das janelas do jogo. */
.mostruario-page {
  margin: 0;
  padding: 32px 24px;
  min-height: 100vh;
  color: #dedfce;
  color-scheme: dark;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(ellipse at 20% 0, #263430, #0b110e 60%);
}
.mostruario-page *,
.mostruario-page *::before,
.mostruario-page *::after {
  box-sizing: border-box;
}
.mostruario-shell {
  max-width: 1260px;
  margin: auto;
  padding: 32px;
  border: 1px solid #6c725d;
  outline: 5px solid #111a13;
  background: #131b15;
  box-shadow: 0 20px 70px #0008;
}
.mostruario-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #5f634c;
}
.mostruario-header img {
  display: block;
  width: 138px;
  height: 94px;
  object-fit: contain;
}
.mostruario-header h1 {
  margin: 0 0 8px;
  color: #f0d7a8;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(29px, 4vw, 44px);
}
.mostruario-header p:last-child {
  color: #b6c3af;
  font-size: 13px;
  margin: 0;
}
.mostruario-back {
  margin-left: auto;
  color: #e3c98e;
  white-space: nowrap;
  font-size: 12px;
}
.mostruario-page .npc-category-tabs {
  padding: 18px 0;
  border-bottom: 0;
  background: transparent;
}
.mostruario-page .npc-category-tab {
  flex: 0 1 180px;
}
.mostruario-page .npc-open-full {
  display: none;
}
.mostruario-footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #46513e;
  font-size: 11px;
  color: #9fad94;
}
@media (max-width: 800px) {
  .npc-dossier-layout,
  .npc-doll-reference {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .mostruario-page {
    padding: 14px 10px;
  }
  .mostruario-shell {
    padding: 18px;
  }
  .mostruario-header {
    flex-wrap: wrap;
    gap: 18px;
  }
  .mostruario-header img {
    width: 100px;
    height: 68px;
  }
  .mostruario-header > div {
    flex: 1;
  }
  .mostruario-back {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .npc-classification-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .npc-guide-columns {
    grid-template-columns: 1fr;
  }
  .npc-guide-header {
    padding: 18px 16px;
  }
  .npc-guide-card {
    padding: 16px;
  }
  .npc-category-tabs {
    padding: 10px 12px;
  }
  .npc-category-tab {
    flex-basis: calc(50% - 4px);
  }
  .mostruario-page .npc-category-tab {
    flex: 1 1 calc(50% - 4px);
  }
  .npc-specimen-body {
    padding: 16px;
  }
  .npc-specimen-nav {
    gap: 6px;
  }
  .npc-specimen-button {
    flex: 1 1 130px;
    padding: 9px 10px;
  }
  .npc-attribute-grid {
    gap: 3px;
  }
  .npc-attribute-grid dt {
    font-size: 9px;
  }
  .npc-attribute-grid dd {
    font-size: 18px;
  }
  .mostruario-footer {
    flex-direction: column;
  }
}
