
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

:root {
  /* ── Logo navy: the pin's own blue, warmed with parchment ink ──
     Blue holds the structure, orange marks what matters. */

  /* surfaces */
  --bg: #0c1521;
  --surface: #111e2c;
  --surface2: #16273a;
  --band: #111e2c;
  --panel: #0a121c;
  --border: #22334a;
  --line: #2f4560;

  /* text — parchment cream, never pure white */
  --text: #eee0c4;
  --text-dim: #8fa3b8;

  /* the logo's two voices */
  --gold: #f0863a;        /* emphasis: headings, active tab, drop rates */
  --brass: #2b8fe0;       /* structure: labels, counts, borders */
  --brass-dim: #2b6a9e;

  --accent: #2b8fe0;
  --accent-hover: #5fa8dd;

  /* drop quality on harvest nodes */
  --common: #8fa3b8;
  --good: #5fb87a;
  --rare: #2b8fe0;
  --epic: #a05fd0;
  --legendary: #f0863a;
  --red: #e2564a;
  --green: #5fb87a;

  /* type */
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-data: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --hair: 1px solid var(--border);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  width: 100%;
  overflow: visible;
}

.header-banner {
  text-align: center;
  background: #000;
  overflow: hidden;
}

.header-banner a {
  display: block;
}

.banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 5%;
  display: block;
  transition: opacity 0.2s;
}

.banner-img:hover {
  opacity: 0.85;
}

.header-inner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 24px;
  padding-left: calc(24px + env(safe-area-inset-left, 0px));
  padding-right: calc(24px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
  overflow: visible;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#main-nav, nav.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-menu-toggle:hover {
  background: var(--border);
  border-color: var(--accent);
}

.nav-menu-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#site-header.nav-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#site-header.nav-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#site-header.nav-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.hidden {
  display: none;
}

#site-header {
  position: relative;
  z-index: 200;
  width: 100%;
  overflow: visible;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-display);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav-btn:hover {
  color: var(--gold);
  background: #16273a;
}

.nav-btn.active {
  color: #08131f;
  background: var(--brass);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px 60px;
  padding-left: calc(24px + env(safe-area-inset-left, 0px));
  padding-right: calc(24px + env(safe-area-inset-right, 0px));
  padding-bottom: max(60px, env(safe-area-inset-bottom, 0px));
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

#search {
  flex: 1;
  max-width: 400px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}

#search::placeholder {
  color: var(--text-dim);
}

#search:focus {
  outline: none;
  border-color: var(--accent);
}

#filter-type {
  padding: 10px 14px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  min-width: 160px;
  cursor: pointer;
}

#filter-type:focus {
  outline: none;
  border-color: var(--accent);
}

.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.loading.hidden {
  display: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  background: var(--band);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: rgba(201, 162, 39, 0.15);
}

.card:hover {
  border-color: var(--brass);
  transform: none;
  background: #16273a;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.item-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: auto;
}

.item-img-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  padding: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.modal-header-row h2 {
  margin-bottom: 0;
  padding-right: 0;
}

.card-title {
  font-weight: 500;
  font-size: 1.02rem;
  font-family: var(--font-display);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin: 8px 0;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-family: var(--font-data);
}

.badge-type {
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
}

.quality-common {
  color: var(--common);
  border-color: var(--common);
}

.quality-good {
  color: var(--good);
  border-color: var(--good);
}

.quality-uncommon {
  color: var(--good);
  border-color: var(--good);
}

.quality-rare {
  color: var(--rare);
  border-color: var(--rare);
}

.quality-epic {
  color: var(--epic);
  border-color: var(--epic);
}

.quality-legendary {
  color: var(--legendary);
  border-color: var(--legendary);
}

.badge-quality {
  background: transparent;
  border: 1px solid;
}

.badge-tier {
  border: 1px solid var(--border);
  background: var(--surface2);
}

.tier-passive {
  color: var(--green);
  border-color: var(--green);
}

.tier-neutral {
  color: var(--common);
  border-color: var(--common);
}

.tier-aggressive {
  color: var(--legendary);
  border-color: var(--legendary);
}

.tier-elite {
  color: var(--epic);
  border-color: var(--epic);
}

.tier-boss {
  color: var(--red);
  border-color: var(--red);
}

.card-stats {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-data);
}

.card-stats span {
  margin-right: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  background: transparent;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-left: calc(20px + env(safe-area-inset-left, 0px));
  padding-right: calc(20px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 28px;
  position: relative;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-right: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-section {
  margin-bottom: 18px;
}

.detail-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 3px 0;
}

.detail-row .label {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-row .value {
  font-weight: 500;
  text-align: right;
}

.loot-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--surface2);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.loot-item > span:first-child {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.loot-item .loot-chance {
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
}

.status-effect {
  background: var(--surface2);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.status-effect .effect-name {
  color: var(--red);
  font-weight: 600;
}

.recipe-material {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  background: var(--surface2);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.material-link {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}

.material-link:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.no-results {
  text-align: center;
  padding: 34px 18px;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* Section headers for loot tables */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--brass-dim);
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title:first-child {
  margin-top: 0;
}

.stat-group .stat-table, .modal .stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stat-group .stat-table th, .stat-group .stat-table td, .modal .stat-table th, .modal .stat-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.stat-group {
  max-width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .logo {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .nav-menu-toggle {
    display: flex;
  }
  #main-nav,
  nav.main-nav {
    flex: 1 1 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-self: stretch;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 0;
    overflow-x: visible;
    overflow-y: hidden;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 0 10px 10px;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-sizing: border-box;
  }
  #site-header.nav-open #main-nav,
  #site-header.nav-open nav.main-nav {
    max-height: min(70vh, 420px);
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 0;
    padding-right: 0;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .nav-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1rem;
    text-align: left;
    border-radius: 8px;
    flex-shrink: 0;
  }
  /* Prevent grid min-width from forcing horizontal page scroll on narrow screens */
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  }
  .guides-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  #main-nav,
  nav.main-nav {
    transition: none;
  }
  .hamburger-line {
    transition: none;
  }
}

@media (max-width: 640px) {
  .banner-img {
    height: 140px;
    object-position: center 15%;
  }
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .logo {
    flex: 1;
    min-width: 0;
    width: auto;
    text-align: left;
    font-size: 1.25rem;
  }
  main {
    padding: 12px 16px 48px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #search {
    max-width: 100%;
    width: 100%;
  }
  #filter-type {
    width: 100%;
    max-width: 100%;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .modal {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    padding: 20px 16px 24px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }
  .modal-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .modal-header-row h2 {
    padding-right: 0;
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .allocatable-stats {
    grid-template-columns: 1fr;
  }
  .building-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .building-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .materials-grid {
    gap: 8px;
  }
  .mat-chip {
    max-width: 100%;
    overflow: hidden;
  }
  .mat-name {
    white-space: normal;
    word-break: break-word;
  }
  .beta-banner {
    font-size: 0.82rem;
    padding: 10px 12px;
  }
}
.card-desc {
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 0 12px 10px;
  line-height: 1.4;
}
/* ===================== loot: collapsible sections ===================== */

.loot-section {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--band);
  margin-bottom: 10px;
  overflow: hidden;
}
.loot-section[open] { border-color: var(--line); }

.loot-section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  min-height: 52px;
}
.loot-section-head::-webkit-details-marker { display: none; }
.loot-section-head:hover { background: #16273a; }
.loot-section:focus-within .loot-section-head { outline: none; }
.loot-section-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.loot-section-icon { font-size: 1.15rem; flex: 0 0 auto; }

.loot-section-name {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
}

.loot-section-count {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  padding: 2px 9px;
  flex: 0 0 auto;
}

/* chevron: the only rotation on the page, so it reads as "this opens" */
.loot-section-head::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s;
}
.loot-section[open] .loot-section-head::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.loot-section .card-grid { padding: 0 16px 16px; }

@media (prefers-reduced-motion: reduce) {
  .loot-section-head::after { transition: none; }
}

/* â”€â”€ Building Accordion â”€â”€ */
.building-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.building-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.building-header:hover {
  background: var(--surface2);
}

.building-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.building-icon {
  font-size: 1.6rem;
}

.building-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.building-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.building-summary {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.accordion-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.building-accordion.open .accordion-chevron {
  transform: rotate(-135deg);
}

.building-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.building-accordion.open .building-body {
  max-height: 5000px;
}

.upgrade-level {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.upgrade-level-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.upgrade-level-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.upgrade-time {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.upgrade-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.4;
}

.upgrade-section {
  margin-bottom: 10px;
}

.upgrade-section:last-child {
  margin-bottom: 0;
}

.upgrade-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: var(--text);
}

.mat-name {
  white-space: nowrap;
}

.mat-qty {
  color: var(--accent);
  font-weight: 600;
}

.unlocks-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.6;
}

/* â”€â”€ Class Guides â”€â”€ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--band);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.guide-card:hover {
  transform: none;
  border-color: var(--brass);
  box-shadow: none;
  background: #16273a;
}

.guide-card-icon {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.guide-card-name {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.guide-card-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
}

.guide-card-stats {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stat-priority-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-data);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.priority-0 {
  background: var(--accent);
}

.priority-1 {
  background: #6366f1;
}

.priority-2 {
  background: #64748b;
}

.priority-3 {
  background: #475569;
}

.guide-stat-priority {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.guide-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.7;
}

.balance-warning {
  background: #92400e;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 2px solid var(--brass-dim);
  line-height: 1.4;
  font-family: var(--font-data);
  letter-spacing: 0.4px;
  padding-left: 10px;
}

.bonus-value {
  color: var(--brass);
  font-weight: 700;
}

.beta-banner {
  background: var(--band);
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.85rem;
  text-align: left;
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  border: 2px solid var(--brass-dim);
  letter-spacing: 0;
  border-left: 4px solid var(--gold);
  font-family: var(--font-body);
  line-height: 1.5;
}

.guides-info-box {
  background: var(--band);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.guides-info-box h3 {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.guides-info-box p {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.alloc-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alloc-stat strong {
  color: var(--text);
  font-size: 0.9rem;
}

.alloc-stat-desc {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.guide-card-scaling {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

/* â”€â”€ Wiki â”€â”€ */
.wiki-intro p {
  margin: 0;
}

.wiki-card-updated {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.wiki-updated {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.wiki-section h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brass);
}

.wiki-body {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 68ch;
}

.wiki-body p {
  margin: 0 0 12px;
}

.wiki-body p:last-child {
  margin-bottom: 0;
}

.wiki-body ul.guide-list {
  margin-top: 0;
}

/* â”€â”€ Tool progression chart â”€â”€ */
.wiki-section-progression {
  padding: 0;
  overflow: hidden;
}

.tool-progression-chart {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.tool-progression-banner {
  background: #111;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  letter-spacing: 0.3px;
}

.tool-progression-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.tool-progression-col {
  padding: 0;
}

.tool-progression-col.col-chop {
  background: rgba(74, 222, 128, 0.12);
  border-right: 1px solid var(--border);
}

.tool-progression-col.col-mine {
  background: rgba(96, 165, 250, 0.12);
}

.tool-progression-col-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.col-chop .tool-progression-col-title {
  color: var(--brass);
}

.col-mine .tool-progression-col-title {
  color: var(--gold);
}

.tool-progression-list-header, .tool-progression-list li {
  display: grid;
  grid-template-columns: 32px 1fr 56px;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 0.88rem;
  color: var(--text);
}

.tool-progression-list-header {
  padding-top: 10px;
  padding-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.tool-progression-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.tool-progression-list li {
  padding-top: 6px;
  padding-bottom: 6px;
}

.tool-level {
  font-weight: 700;
  color: var(--text-dim);
  text-align: right;
}

.tool-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tool-progression-list .item-img-sm {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.tool-name {
  min-width: 0;
}

.tool-power {
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.col-chop .tool-power {
  color: var(--brass);
}

.col-mine .tool-power {
  color: var(--gold);
}

.tool-name .material-link {
  cursor: pointer;
  color: var(--accent);
}

.tool-name .material-link:hover {
  text-decoration: underline;
}

.tool-progression-notes {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.tool-progression-notes .guide-list {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .tool-progression-columns {
    grid-template-columns: 1fr;
  }

  .tool-progression-col.col-chop {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
.wiki-images {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wiki-section-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.biome-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
}

.biome-forest {
  background: #2f8f57;
}

.biome-rainforest {
  background: #0f6d42;
}

.biome-grass {
  background: #76b947;
}

.biome-alpine {
  background: #4d8bc7;
}

.biome-desert {
  background: #c9983a;
}

.biome-tundra {
  background: #6fa9d8;
}

.biome-taiga {
  background: #3b7a57;
}

.biome-wetland {
  background: #2b8078;
}

.biome-water {
  background: #2b6cb0;
}

.biome-abyss {
  background: #473c8b;
}

.biome-barren {
  background: #666;
}

.biome-savanna {
  background: #b58d28;
}

.biome-farm {
  background: #7bb35d;
}

.biome-med {
  background: #4fa66d;
}

.biome-urban {
  background: #666b7a;
}

.biome-event {
  background: #b53a7d;
}

.biome-dry_forest {
  background: #8a6f2f;
}

.biome-mangrove {
  background: #7c3aed;
}

.biome-universal {
  background: linear-gradient(90deg, #4f46e5, #2563eb);
  color: #fff;
}

.biome-more {
  background: #555;
  color: #fff;
}

.biome-freshwater {
  background: #168aad;
}

.biome-ocean_coastal {
  background: #2a9d8f;
}

.biome-ocean_shelf {
  background: #277da1;
}

.biome-ocean_deep {
  background: #1d4e89;
}

.biome-ocean_abyssal {
  background: #4c1d95;
}

.biome-ocean_void {
  background: #18122b;
  border: 1px solid #7c3aed;
}

.biome-filter-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.biome-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--border);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.15s,
    transform 0.15s,
    border-color 0.15s;
}

.biome-filter-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.biome-filter-btn.active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.4);
}

.biome-filter-btn[data-biome=""] {
  background: var(--border);
}

@media (max-width: 640px) {
  .biome-filter-bar {
    gap: 6px;
  }

  .biome-filter-btn {
    min-height: 32px;
    padding: 4px 9px;
    font-size: 0.72rem;
  }
}
/* PKE Wiki — theme layer
   ===========================================================================
   Promotes the Buildings tab's visual language (black panels, brass + gold,
   condensed caps, mono for data) into shared tokens the whole wiki can use.

   Load LAST, after style.css and the tab stylesheets:

     <link rel="stylesheet" href="style.css">
     <link rel="stylesheet" href="buildings-tab.css">
     <link rel="stylesheet" href="drops-tab.css">
     <link rel="stylesheet" href="theme.css">

   And add the fonts to <head> — buildings-tab.css already asks for these but
   nothing was loading them, so it has been falling back to Arial Narrow:

     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap">
   =========================================================================== */

/* ===================== nav ===================== */
.nav-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===================== toolbar ===================== */
#search, #filter-type {
  background: var(--band);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

#search:focus, #filter-type:focus {
  border-color: var(--brass);
}

/* ===================== cards ===================== */
.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* numbers are data — set them in the data face so they align and scan */

/* ===================== badges ===================== */
.badge-quality, .badge-tier {
  background: transparent;
  border: 1px solid currentColor;
}

/* ===================== section headers ===================== */

/* ===================== modal ===================== */
.detail-section h3, .stat-group h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brass);
}

.detail-row .value, .loot-chance, .stat-table .bonus-value {
  font-family: var(--font-data);
  font-weight: 600;
}

/* ===================== empty state ===================== */

/* ===================== drops tab: use the shared tokens ===================== */
.dt-wrap {
  --dt-line: var(--border);
  --dt-band: var(--band);
  --dt-gold: var(--gold);
  --dt-brass: var(--brass);
  --dt-dim: var(--text-dim);
}

.dt-count, .dt-type, .dt-n, .dt-src-slot, .dt-src-amt, .dt-src-chance {
  font-family: var(--font-data);
}

.dt-name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--brass-dim);
  text-underline-offset: 3px;
}

/* ===================== buildings tab: inherit rather than redefine =========
   buildings-tab.css scopes its own tokens to .bt-wrap so they can't leak.
   Now that the same values live on :root, point them at the shared set so
   there is one place to change the palette. Safe to delete the matching
   lines from buildings-tab.css afterwards.
   ========================================================================= */
.bt-wrap {
  --bt-void: var(--bg);
  --bt-panel: var(--panel);
  --bt-band: var(--band);
  --bt-gold: var(--gold);
  --bt-brass: var(--brass);
  --bt-brass-dim: var(--brass-dim);
  --bt-line: var(--line);
  --bt-hair: var(--border);
  --bt-dim: var(--text-dim);
  --bt-paper: var(--text);
  --bt-display: var(--font-display);
  --bt-body: var(--font-body);
  --bt-data: var(--font-data);
}

/* ===================== accessibility floor ===================== */

@media (prefers-reduced-motion: reduce) {
  .card,
  .nav-btn,
  .banner-img {
    transition: none !important;
  }
}
/* ===================== item card: drop source ===================== */
.card-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
  font-size: 0.74rem;
  min-width: 0;
}

.card-source-icon {
  flex: 0 0 auto;
  font-size: 0.85rem;
}

.card-source-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.card-source-chance {
  color: var(--brass);
  font-weight: 600;
  white-space: nowrap;
}

.card-source-more {
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 6px;
  white-space: nowrap;
}

.card-source.is-crafted {
  color: var(--text-dim);
}

/* ===================== wiki + guide cards ================================== These were a separate component: centred, 2.8rem icon, drop shadow. Pulled onto the same box as .card so every tab reads as one site. ========================================================================= */ .guides-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.guide-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.guide-card-scaling, .wiki-card-updated, .wiki-updated {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  color: var(--brass);
}

.wiki-card-updated, .wiki-updated {
  color: var(--text-dim);
}

/* Wiki articles are documents, not class picks — a growing list reads better
   left-aligned with a small icon than centred under a big one. Structure is
   unchanged; this is layout only. */
.wiki-card {
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
}

.wiki-card .guide-card-icon {
  font-size: 1.7rem;
  margin: 0;
  grid-column: 1;
}

.wiki-card .guide-card-name {
  grid-column: 2;
  margin: 0;
  font-size: 1.05rem;
}

.wiki-card .guide-card-desc, .wiki-card .wiki-card-updated {
  grid-column: 1 / -1;
}

.wiki-card .guide-card-desc {
  margin: 10px 0 0;
}

/* ===================== panels + banners ===================== */

/* the orange banner was the loudest thing on the page and fought the brass */

/* ===================== wiki article body ===================== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.sort-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}

.sort-btn {
  appearance: none;
  cursor: pointer;
  background: var(--band);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  padding: 6px 14px;
  min-height: 34px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.sort-btn:hover {
  border-color: var(--brass-dim);
  color: var(--text);
}

.sort-btn.active {
  background: var(--brass);
  border-color: var(--brass);
  color: #08131f;
}

.sort-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .sort-bar { gap: 5px; }
  .sort-btn { padding: 6px 11px; font-size: 0.78rem; }
}
.sort-count {
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-left: 5px;
  padding-left: 6px;
  border-left: 1px solid var(--border);
}

.sort-btn.active .sort-count {
  color: #08131f;
  border-left-color: rgba(11, 14, 19, 0.35);
  opacity: 0.75;
}

.dt-name:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.dt-sum {
  cursor: pointer;
}
.elev-pill-row:empty { display: none; }

.elev-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.3px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* dim at the bottom, brass at the top — height reads as intensity */
.elev-pill.elev-lowland  { color: #7d8a72; border-color: #2f3a2c; }
.elev-pill.elev-montane  { color: #8f9a86; border-color: #35402f; }
.elev-pill.elev-highland { color: #a89a72; border-color: #4a4226; }
.elev-pill.elev-alpine   { color: var(--brass); border-color: var(--brass-dim); }

/* ═══════════════ Logo navy — component tuning ═══════════════
   Loads last so it wins. Only the places where the old brass-on-black
   palette carried a meaning that has now split in two. */

body { font-family: var(--font-body); }

/* the active tab is the one warm thing in the chrome */
.nav-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100a;
}
.nav-btn:hover { color: var(--gold); background: #16273a; }

/* sort and filter pills are structure, so they take the blue */
.sort-btn.active {
  background: var(--brass);
  border-color: var(--brass);
  color: #08131f;
}
.sort-btn.active .sort-count {
  color: #08131f;
  border-left-color: rgba(8, 19, 31, 0.35);
}
.sort-btn:hover { border-color: var(--brass-dim); color: var(--text); }

/* card and section hover: blue, so orange stays meaningful */
.card:hover,
.guide-card:hover,
.loot-section-head:hover { background: #16273a; border-color: var(--brass); }
.loot-section[open] { border-color: #2f4560; }

/* drop rate is the payoff number — it gets the ember */
.card-source-chance { color: var(--gold); }
.dt-src-chance { color: var(--gold); }
.dt-src-chance.is-sure { color: var(--green); }

/* type badge reads blue; subtype stays quiet */
.badge-type { border-color: var(--brass-dim); color: var(--brass); }

/* elevation: cool at sea level, ember at altitude */
.elev-pill.elev-lowland  { color: #7f93a6; border-color: #22334a; }
.elev-pill.elev-highland { color: #6aa8cf; border-color: #2b5a7e; }
.elev-pill.elev-montane  { color: #c8925a; border-color: #6b4f2e; }
.elev-pill.elev-alpine   { color: var(--gold); border-color: #8a4a1c; }

/* serif headings want a little more air than the sans did */
.card-title, .loot-section-name, .guide-card-name, .dt-name {
  letter-spacing: 0.6px;
}
.modal h2, .bt-h1, .bt-name { letter-spacing: 0.8px; }

/* ═══════════ Sprites and source line ═══════════
   Sprites sit directly on the card; the drop source is a rule, not a box. */

.card-icon, .modal-img, .dt-icon { border: 0; }

.card-source {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 0 0;
  margin-top: 9px;
}
.dt-src:hover { background: #16273a; border-color: var(--brass); }
.dt-sum:hover { background: #16273a; }

/* ═══════════ Wiki charts and tables ═══════════
   The tool-progression chart and class tables kept the old GitHub palette. */

.tool-progression-chart {
  border: 2px solid var(--border);
  background: transparent;
}
.tool-progression-banner {
  background: transparent;
  border-bottom: 2px solid var(--brass-dim);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1px;
}
.tool-progression-col.col-chop,
.tool-progression-col.col-mine {
  background: transparent;
  border-right: 1px solid var(--border);
}
.tool-progression-col-title {
  font-family: var(--font-display);
  letter-spacing: 0.8px;
  color: var(--brass);
}
.tool-progression-list-header {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.tool-level, .tool-power { font-family: var(--font-data); }
.tool-power { color: var(--gold); }

/* stat priority chips: one hue, weight carries the ranking */
.stat-priority-badge {
  background: transparent;
  border: 1px solid var(--brass-dim);
  color: var(--brass);
}
.priority-0 { background: var(--brass); border-color: var(--brass); color: #08131f; }
.priority-1 { background: transparent; border-color: var(--brass); color: var(--brass); }
.priority-2 { background: transparent; border-color: var(--brass-dim); color: var(--text-dim); }
.priority-3 { background: transparent; border-color: var(--border); color: var(--text-dim); }
.priority-arrow { color: var(--text-dim); }

/* class stat tables */
.stat-group .stat-table th,
.modal .stat-table th {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-table .bonus-value { color: var(--gold); }

/* ── class guides: gear focus (replaces the numeric bonus tables) ── */
.gear-lede{font-size:.85rem;color:var(--text-dim);margin:0 0 10px}
.gear-focus{margin:0;padding-left:1.1rem;font-size:.95rem;line-height:1.9}
.gear-focus li::marker{color:var(--brass);font-family:var(--font-data);font-size:.8em}

/* ── class guides: playstyle + gear ── */
.playstyle-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.ps-head{font-family:var(--font-data);font-size:.7rem;letter-spacing:1px;text-transform:uppercase;margin:0 0 6px}
.ps-head.is-good{color:var(--green)}
.ps-head.is-bad{color:var(--red)}
.offhand-name{font-family:var(--font-display);font-size:1.05rem;letter-spacing:.5px;color:var(--gold)}
.gear-note{font-size:.85rem;line-height:1.6;color:var(--text-dim);margin:10px 0 0}
.gear-tier-note td{font-size:.78rem;color:var(--text-dim);padding-top:0!important;border-bottom:1px solid var(--border)}
.slot-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.slot-name{font-family:var(--font-display);font-size:1.05rem;letter-spacing:.5px;color:var(--gold);margin:0}
.slot-stat{font-family:var(--font-data);font-size:.72rem;letter-spacing:.5px;color:var(--text-dim);margin:3px 0 0}
.gear-chase{margin:12px 0 0;font-size:.95rem;line-height:1.6}
.gear-chase .ps-head{display:block;color:var(--brass)}
.endgame-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:12px 0 0}
.stat-group.is-endgame{border-left:3px solid var(--gold);border-radius:0;padding-left:14px}
