/* ROB RUN collection checker — edit styles here. */
:root {
  --item-size: 120px;
  --bg: #0b0906;
  --line: #251f18;
  --line-strong: #3a3125;
  --text: #f6efe3;
  --muted: #a3977f;
  --accent: #f2a94b;
  --display: "Atlas Display", "Barlow Condensed", "Arial Narrow", Impact, system-ui, sans-serif;
  --r-common: #94a3b8;
  --r-uncommon: #34d399;
  --r-epic: #a78bfa;
  --r-legendary: #fbbf24;
  --r-exotic: #f472b6;
  font-family: ui-sans-serif, "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(242, 169, 75, .09), transparent 62%),
    radial-gradient(900px 460px at 88% -4%, rgba(120, 88, 40, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 9, 7, .9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px) saturate(130%);}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 58px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;}

h1 {
  margin: 0 6px 0 0;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #ffffff;
  white-space: nowrap;
}

h1 b {
  color: var(--accent);
  font-weight: 800;
}

/* Base button */
button {
  font: inherit;
  color: var(--text);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease, filter .12s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,

.brand .sub {
  font-size: 10.5px;
  color: #a3977f;
  margin-top: 1px;
  white-space: nowrap;
  opacity: .9;
}

/* Rarity filters */
.filterrow {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 13, 10, .84);
}

.rarity {
  color: #d3c5ad;
  padding: 5px 9px;
  font-size: 10.5px;
}

.rarity::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #7d7263;
  vertical-align: 1px;
}

.rarity[data-val=All]::before {
  background: var(--accent);
}

.rarity[data-val=Common]::before {
  background: var(--r-common);
}

.rarity[data-val=Uncommon]::before {
  background: var(--r-uncommon);
}

.rarity[data-val=Epic]::before {
  background: var(--r-epic);
}

.rarity[data-val=Legendary]::before {
  background: var(--r-legendary);
}

.rarity:not([aria-pressed="true"]):hover {
  background: rgba(255, 255, 255, .06);
}

.rarity[aria-pressed="true"] {
  color: #ffffff;
}

.rarity[data-val=All][aria-pressed="true"] {
  background: #2c251c;
  border-color: #4a3c2a;
}

.rarity[data-val=Common][aria-pressed="true"] {
  background: rgba(148, 163, 184, .2);
  border-color: rgba(148, 163, 184, .45);
}

.rarity[data-val=Uncommon][aria-pressed="true"] {
  background: rgba(52, 211, 153, .16);
  border-color: rgba(52, 211, 153, .42);
}

.rarity[data-val=Epic][aria-pressed="true"] {
  background: rgba(167, 139, 250, .18);
  border-color: rgba(167, 139, 250, .45);
}

.rarity[data-val=Legendary][aria-pressed="true"] {
  background: rgba(251, 191, 36, .16);
  border-color: rgba(251, 191, 36, .45);
}

.rarity[aria-pressed="true"]:hover {
  filter: brightness(1.12);
}

.fcount {
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #b3a68f;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.rarity[aria-pressed="true"] .fcount {
  background: rgba(0, 0, 0, .28);
  color: #f3ead9;
}

.count-chip {
  min-width: 36px;
  padding: 4px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #100d0a;
  color: #e6dbc7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.select-config {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #100d0a;
  color: #bcae98;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.select-config select {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1e1811;
  color: #f3ead9;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  max-width: 150px;
}

button.ghost {
  padding: 6px 11px;
  border-color: var(--line);
  border-radius: 9px;
  background: #100d0a;
  color: #bcae98;
  font-size: 11.5px;
  font-weight: 650;
}

button.ghost:hover {
  border-color: var(--line-strong);
  background: #1e1811;
  color: #f3ead9;
}

button.icon-button {
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 54px;
}

/* Page shell */
.shell {
  padding: 10px 14px;
  max-width: none;
  margin: auto;
}

/* Cards */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, calc(var(--item-size) * .08), 14px);
}

.item {
  position: relative;
  flex: 0 0 auto;
  width: var(--item-size);
  min-width: 0;
  background: linear-gradient(180deg, #191410, #100d0a);
  border: 1px solid #2c251c;
  border-radius: clamp(9px, calc(var(--item-size) * .1), 16px);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.item:hover {
  transform: translateY(-2px);
  border-color: #4a3c2a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .38);
}

.item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: transparent;
  z-index: 2;
}

.item[data-r=Common]::after {
  background: var(--r-common);
}

.item[data-r=Uncommon]::after {
  background: var(--r-uncommon);
}

.item[data-r=Epic]::after {
  background: var(--r-epic);
}

.item[data-r=Legendary]::after {
  background: var(--r-legendary);
}

.item[data-r=Review]::after {
  background: #f59e0b;
}

.sprite {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 176 / 157;
  object-fit: contain;
  background: radial-gradient(circle at 50% 45%, #221a12, #0d0b09 72%);
}

.item[data-r=Common] .sprite {
  background: radial-gradient(circle at 50% 45%, rgba(148, 163, 184, .14), #0d0b09 72%);
}

.item[data-r=Uncommon] .sprite {
  background: radial-gradient(circle at 50% 45%, rgba(52, 211, 153, .13), #0d0b09 72%);
}

.item[data-r=Epic] .sprite {
  background: radial-gradient(circle at 50% 45%, rgba(167, 139, 250, .14), #0d0b09 72%);
}

.item[data-r=Legendary] .sprite {
  background: radial-gradient(circle at 50% 45%, rgba(251, 191, 36, .14), #0d0b09 72%);
}

.sprite-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 176 / 157;
  background: #191410;
  color: #8d8271;
  font-size: 22px;
  font-weight: 900;
}

/* Keep / sell / review badges */
.verdict {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.verdict.keep {
  background: rgba(52, 211, 153, .16);
  border: 1px solid rgba(52, 211, 153, .4);
  color: #f7c98d;
}

.verdict.review {
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(245, 158, 11, .4);
  color: #fcd34d;
}

.verdict.sell {
  background: rgba(248, 113, 113, .16);
  border: 1px solid rgba(248, 113, 113, .4);
  color: #fecaca;
}

/* Dialog header with item icon */
.dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dialog-img {
  width: 76px;
  height: 68px;
  flex: none;
  object-fit: contain;
  border: 1px solid #2c251c;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, #221a12, #0d0b09 72%);
}

.dialog-head h2 {
  margin: 0;
  font-size: 18px;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: #ffdc97;
  text-align: center;
}

/* Site footer */
/* ---------- Shared footer ---------- */
.sitefoot {
  border-top: 1px solid var(--line);
  color: #8d8271;
  font-size: 11px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 16px;
}

.foot-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-brand b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #f3ead9;
}

.foot-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.link {
  padding: 0;
  border: none;
  background: none;
  border-radius: 4px;
  color: #a19583;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  color: var(--accent);
  text-decoration: underline;
  filter: none;
}

.foot-meta {
  color: #a19583;
  font-variant-numeric: tabular-nums;
}

.noscript {
  padding: 16px;
  border: 1px solid #3a3125;
  border-radius: 10px;
  background: #100d0a;
  color: #ffdc97;
  font-size: 13px;
}

/* About dialog */
.about h3 {
  margin: 14px 0 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a89b86;
}

.about p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #cdbfa8;
}

.about b {
  color: #f6efe3;
}

.about p + p {
  margin-top: 7px;
}

/* Rarity sections */
.sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.fit-mode .sections {
  gap: 8px;
}

.rarity-section {
  min-width: 0;
}

.rarity-section h2,
.group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  background: #191410;
  color: #e6dbc7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rarity-section h2::before,
.group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d7263;
}

.rarity-section[data-r=Common] h2::before,
.group-title[data-r=Common]::before {
  background: var(--r-common);
}

.rarity-section[data-r=Uncommon] h2::before,
.group-title[data-r=Uncommon]::before {
  background: var(--r-uncommon);
}

.rarity-section[data-r=Epic] h2::before,
.group-title[data-r=Epic]::before {
  background: var(--r-epic);
}

.rarity-section[data-r=Legendary] h2::before,
.group-title[data-r=Legendary]::before {
  background: var(--r-legendary);
}

.rarity-section[data-r=Review] h2::before,
.group-title[data-r=Review]::before {
  background: #f59e0b;
}

.rarity-section h2 small,
.group-title small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  color: #b3a68f;
}

.flag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.flag.Common {
  background: rgba(148, 163, 184, .16);
  color: #ded3bf;
}

.flag.Uncommon {
  background: rgba(52, 211, 153, .14);
  color: #f7c98d;
}

.flag.Epic {
  background: rgba(167, 139, 250, .16);
  color: #ddd6fe;
}

.flag.Legendary {
  background: rgba(251, 191, 36, .14);
  color: #fde68a;
}

.flag.Exotic {
  background: rgba(244, 114, 182, .16);
  color: #fbcfe8;
}

.flag.Review {
  background: rgba(245, 158, 11, .16);
  color: #fcd34d;
}

/* Dialogs */
.dialogbg {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 6, 11, .72);
  backdrop-filter: blur(6px);
}

.dialogbg.show {
  display: flex;
}

.dialog {
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #3a3125;
  border-radius: 16px;
  background: linear-gradient(180deg, #191410, #141110);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.dialog-wide {
  width: min(760px, 100%);
}

.dialog h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -.01em;
}

.dialog .muted {
  font-size: 11.5px;
  color: #a89b86;
  line-height: 1.5;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #2c251c;
  border-radius: 9px;
  background: #100d0a;
}

.fact span {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8d8271;
}

.fact b {
  font-size: 13px;
  font-weight: 700;
  color: #f6efe3;
}

.memberships {
  margin: 0 0 14px;
}

.memberships-title {
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8d8271;
}

.membership {
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid #2c251c;
  border-left: 3px solid #34d399;
  border-radius: 9px;
  background: #100d0a;
}

.membership-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f3ead9;
}

.membership-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #8d8271;
}

.membership-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  color: #b3a68f;
}

.membership-facts b {
  color: #f7c98d;
}

.membership-empty {
  padding: 10px;
  border: 1px dashed rgba(245, 158, 11, .45);
  border-radius: 9px;
  background: rgba(245, 158, 11, .08);
  color: #fcd34d;
  font-size: 11.5px;
}

.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.actions button {
  padding: 8px 13px;
  border-color: var(--line);
  border-radius: 9px;
  background: #100d0a;
  color: #d3c5ad;
  font-size: 12px;
  font-weight: 700;
}

.actions button:hover {
  border-color: var(--line-strong);
  background: #1e1811;
}

/* Collections list */
.collections-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 16px;
}

.collection-card {
  padding: 10px 12px;
  border: 1px solid #2c251c;
  border-left: 3px solid #34d399;
  border-radius: 10px;
  background: #100d0a;
}

.collection-card.sell {
  border-left-color: #f87171;
}

.collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #f6efe3;
}

.collection-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  font-size: 11px;
  color: #b3a68f;
}

.collection-facts b {
  color: #f7c98d;
}

.collection-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.collection-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 88px;
  gap: 8px;
  font-size: 11px;
  color: #bcae98;
}

.collection-items li span:nth-child(2) {
  color: #8d8271;
  text-align: right;
}

.collection-items li span:nth-child(3) {
  color: #f7c98d;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Fit-to-screen: compact section headers so more rows stay visible */
body.fit-mode .sections {
  gap: 10px;
}

body.fit-mode .rarity-section h2,
body.fit-mode .group-title {
  padding: 2px 8px;
  margin-bottom: 6px;
  font-size: 9.5px;
}

body.fit-mode .shell {
  padding: 8px 14px 8px;
}

/* Responsive */
@media (max-width: 980px) {
  .filterrow {
    overflow-x: auto;
  }

  .navbar {
    gap: 6px;
  }

  .select-config select {
    max-width: 120px;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 8px 10px;
  }

  .navbar {
    padding: 0 14px;
    gap: 8px;
  }

  h1 {
    font-size: 15px;
  }

  .grid {
    gap: 7px;
  }

}

@media (max-width: 650px) {
    .facts {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   Multi-page additions: search field, nav links, sub pages,
   calculator and collection page
   ============================================================ */

a.ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #100d0a;
  color: #bcae98;
  font-size: 11.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

a.ghost:hover {
  border-color: var(--line-strong);
  background: #1e1811;
  color: #f3ead9;
}

a.navlink {
  padding: 6px 10px;
}

.search-config {
  display: inline-flex;
  align-items: center;
}

.search-config input {
  width: 150px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #100d0a;
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
}

.search-config input::placeholder {
  color: #8d8271;
}

.search-config input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

a.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #3a3125;
  border-radius: 9px;
  background: #100d0a;
  color: #d3c5ad;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

a.btn:hover {
  border-color: var(--line-strong);
  background: #1e1811;
  color: #f6efe3;
}

/* Sub pages */
.brand-link {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  color: inherit;}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;}

.brand-name b {
  color: var(--accent);}

.pagenav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;}

.pagenav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #a99d89;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .12s ease, background .12s ease;}

.pagenav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);}

.pagenav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(242, 169, 75, .1);}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 20px 30px;
}

.page-h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.page-h2 {
  margin: 22px 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #a89b86;
}

.page-lede {
  margin: 0 0 18px;
  max-width: 760px;
  color: #ac9f8a;
  font-size: 13.5px;
  line-height: 1.6;
}

.page-note {
  margin-top: 22px;
  max-width: 760px;
  color: #8d8271;
  font-size: 12px;
  line-height: 1.6;
}

.page-note a,
.about a,
.collection-items a {
  color: #f2c48a;
  text-decoration: none;
}

.page-note a:hover,
.about a:hover,
.collection-items a:hover {
  text-decoration: underline;
}

.crumbs {
  margin: 0 0 14px;
  color: #8d8271;
  font-size: 11.5px;
}

.crumbs a {
  color: #a89b86;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.item-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #2c251c;
  border-radius: 14px;
  background: linear-gradient(180deg, #191410, #100d0a);
}

.item-hero > img {
  width: 168px;
  height: 150px;
  flex: none;
  object-fit: contain;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, #221a12, #0d0b09 72%);
}

.item-hero-body {
  min-width: 0;
  flex: 1;
}

.item-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.02em;
}

.hero-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.item-hero .facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.crate-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #16120d;
  color: #bcae98;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--line-strong);
  background: #1e1811;
  color: #f3ead9;
}

.membership-link {
  display: inline-block;
  margin-top: 6px;
  color: #f2c48a;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.membership-link:hover {
  text-decoration: underline;
}

/* Collection page */
.crate-summary .fact b {
  font-size: 16px;
}

/* Calculator */
.calc {
  max-width: 820px;
  padding: 16px;
  border: 1px solid #2c251c;
  border-radius: 14px;
  background: #100d0a;
}

.calc-add {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 320px;
}

.field span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8d8271;
}

.field select,
.field input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #3a3125;
  border-radius: 9px;
  background: #100d0a;
  color: #f6efe3;
  font: inherit;
  font-size: 12.5px;
}

.field-qty {
  flex: 0 0 96px;
}

button.primary {
  padding: 9px 16px;
  border: 1px solid #ffc470;
  border-radius: 9px;
  background: linear-gradient(180deg, #f2a94b, #e2912f);
  color: #241503;
  font-size: 12px;
  font-weight: 700;
}

button.primary:hover {
  filter: brightness(1.08);
}

.calc-hint {
  min-height: 16px;
  margin: 12px 0 0;
  color: #fbbf24;
  font-size: 11.5px;
}

.calc-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.calc-table th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  color: #8d8271;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.calc-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(37, 31, 24, .6);
  color: #d3c5ad;
}

.calc-table td a {
  color: #cdbfa8;
  text-decoration: none;
}

.calc-table td a:hover {
  color: var(--accent);
}

.calc-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.qty-input {
  width: 64px;
  padding: 3px 6px;
  border: 1px solid #3a3125;
  border-radius: 6px;
  background: #100d0a;
  color: #f6efe3;
  font: inherit;
  font-size: 12px;
  text-align: right;
}

.calc-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #f7c98d;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .item-hero {
    flex-direction: column;
  }

  .item-hero > img {
    width: 132px;
    height: 118px;
  }

  .item-hero .facts,
  .crate-summary {
    grid-template-columns: 1fr 1fr;
  }

  .search-config input {
    width: 130px;
  }
}

/* Keep the top bar on one row on smaller screens */
@media (max-width: 1400px) {
  a.navlink {
    display: none;
  }
}

@media (max-width: 1600px) {
  .filterrow {
    gap: 1px;
  }

  .rarity {
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .rarity::before {
    width: 6px;
    height: 6px;
    margin-right: 4px;
  }

  .fcount {
    margin-left: 4px;
    padding: 0 4px;
    font-size: 9px;
  }

  .search-config input {
    width: 118px;
  }

  .select-config {
    padding: 3px 6px;
  }

  .select-config select {
    max-width: 116px;
  }
}

@media (max-width: 1240px) {
  .count-chip {
    display: none;
  }

  .search-config input {
    width: 120px;
  }
}

/* Centre each rarity block (headers included) so short groups look intentional */
.rarity-section {
  width: 100%;
  margin-inline: auto;
  padding: 6px 12px 8px;
  border: 1px solid #251f18;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 19, 14, .55), rgba(11, 9, 6, .55));
  text-align: center;
}

#grid {
  max-width: 1600px;
  margin-inline: auto;
}

/* ============================================================
   Site skin — hub and info pages (body.subpage)
   ============================================================ */

@font-face {
  font-family: "Atlas Display";
  src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Atlas Display";
  src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

body.subpage {
  --accent-soft: #f7c98d;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(242, 169, 75, .10), transparent 62%),
    radial-gradient(700px 400px at 6% -6%, rgba(120, 88, 40, .12), transparent 64%),
    var(--bg);
}

body.subpage main.site,
body.subpage main.page {
  flex: 1 0 auto;
  width: 100%;
}

/* Header */
body.subpage .header {
  background: rgba(10, 9, 7, .82);
  border-bottom: 1px solid var(--line);
}

body.subpage .brand-name b {
  color: var(--accent);
}

/* Page headings on info pages */
body.subpage .page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

body.subpage h1 {
  white-space: normal;
}

body.subpage .page-h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

body.subpage .page-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .16em;
  color: #cdbfa6;
}

body.subpage .page-lede {
  color: #b8ab94;
}

body.subpage .crumbs,
body.subpage .crumbs a {
  color: #8f8471;
}

body.subpage .sitefoot {
  background: #070605;
  border-top: 1px solid var(--line);
}

/* ---------- Hub shell ---------- */
main.site {
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 9, 6, .28) 0%, rgba(11, 9, 6, .55) 55%, #0b0906 100%);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 76px 20px 122px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid rgba(242, 169, 75, .38);
  border-radius: 999px;
  background: rgba(242, 169, 75, .10);
  color: #f6cf9b;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(242, 169, 75, .9);
}

.hero-title {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 8.4vw, 104px);
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .75);
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  max-width: 580px;
  margin: 16px auto 0;
  color: #d9cdb8;
  font-size: 14.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.btn-solid {
  background: linear-gradient(180deg, #ffc470, #e2912f);
  color: #241503;
  box-shadow: 0 12px 26px rgba(226, 145, 47, .3);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(226, 145, 47, .38);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(16, 13, 10, .55);
  color: #f0e7d8;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .38);
  transform: translateY(-2px);
}

/* Stat strip */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 15px 17px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 23, 18, .94), rgba(16, 13, 10, .96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
}

.stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9c9080;
}

.stat b {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.stat-sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #8d8271;
}

/* Bands */
.band {
  margin-top: 42px;
}

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.band-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #f7f2e8;
}

.band-head a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.band-head a:hover {
  color: #ffd39a;
}

/* Tool tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  aspect-ratio: 16 / 7;
  padding: 16px 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background-color: #14110d;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, .1) 34%, rgba(8, 7, 6, .86) 100%);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: #6d5735;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

.tile-label,
.tile-note,
.tile-eyebrow {
  position: relative;
  z-index: 1;
}

.tile-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .8);
}

.tile-note {
  font-size: 11px;
  color: #c3b7a4;
}

.tile-eyebrow {
  position: absolute;
  top: 11px;
  left: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(9, 8, 6, .55);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #eadcc4;
  backdrop-filter: blur(4px);
}

.tile.is-soon {
  filter: saturate(.5);
  border-style: dashed;
}

.tile.is-soon .tile-label {
  color: #d8cdba;
}

.tile-flag {
  position: absolute;
  top: 11px;
  right: 12px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(242, 169, 75, .16);
  color: #f7c98d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* Rarity breakdown */
.rarity-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rarity-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #100d0a;
}

.rarity-row span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c6b8a1;
}

.rarity-row i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #221c15;
  overflow: hidden;
}

.rarity-row i b {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.rarity-row em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 17px;
  color: #f7f2e8;
  font-variant-numeric: tabular-nums;
}

/* Spotlight cards */
.spotlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spot-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(38, 30, 20, .85), rgba(15, 12, 9, .95));
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}

.spot-card:hover {
  border-color: #6d5735;
  transform: translateY(-2px);
}

.spot-card img {
  width: 68px;
  height: 61px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
}

.spot-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spot-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.spot-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-sub {
  font-size: 11.5px;
  color: #b3a68f;
}

/* Quick answer list */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #100d0a;
  font-size: 12.5px;
  color: #cdbfa8;
}

.qa-list a {
  color: #f3e7d4;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 169, 75, .35);
}

.qa-list a:hover {
  color: var(--accent-soft);
}

.qa-list span {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #100d0a;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 10.5px;
  color: #8d8271;
  font-variant-numeric: tabular-nums;
}

.tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(242, 169, 75, .14);
  color: var(--accent-soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f6efe3;
}

.news-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #ac9f8a;
}

.news-diff {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: #8d8271 !important;
  font-variant-numeric: tabular-nums;
}

.page-note {
  margin: 12px 0 0;
  font-size: 12px;
}

.page-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

/* Placeholder panel (maps) */
.placeholder-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed rgba(242, 169, 75, .45);
  border-radius: 12px;
  background: rgba(242, 169, 75, .06);
}

.placeholder-panel b {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-soft);
  font-size: 13px;
}

.placeholder-panel p {
  margin: 0;
  color: #c3b7a4;
  font-size: 12.5px;
  line-height: 1.55;
}

.hub-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-links li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #100d0a;
  font-size: 12.5px;
  color: #c3b7a4;
}

@media (max-width: 980px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .hero-inner {
    padding: 54px 20px 96px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    aspect-ratio: 16 / 6;
  }
}

/* ---------- Info-page components in the warm palette ---------- */
body.subpage .fact,
body.subpage .membership,
body.subpage .collection-card,
body.subpage .actions button {
  border-color: var(--line);
  background: #100d0a;
}

body.subpage .fact span,
body.subpage .memberships-title,
body.subpage .membership-name small,
body.subpage .collection-items li span:nth-child(2) {
  color: #8d8271;
}

body.subpage .fact b,
body.subpage .membership-name,
body.subpage .collection-head {
  color: #f3ead9;
}

body.subpage .membership-facts,
body.subpage .collection-facts,
body.subpage .collection-items li {
  color: #ac9f8a;
}

body.subpage .membership-facts b,
body.subpage .collection-facts b,
body.subpage .collection-items li span:nth-child(3) {
  color: #f2c48a;
}

body.subpage .item-hero {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #191410, #100d0a);
}

body.subpage .item-hero > img {
  background: radial-gradient(circle at 50% 45%, #221a12, #0d0b09 72%);
}

body.subpage .item-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

body.subpage .chip {
  border-color: var(--line-strong);
  background: #16120d;
  color: #d3c5ad;
}

body.subpage .chip:hover {
  border-color: #6d5735;
  background: #1e1811;
  color: #fff;
}

body.subpage .membership-link {
  color: var(--accent);
}

body.subpage .calc {
  border-color: var(--line-strong);
  background: #100d0a;
}

body.subpage .field span {
  color: #8d8271;
}

body.subpage .field select,
body.subpage .field input {
  border-color: var(--line-strong);
  background: #0c0a08;
  color: #f3ead9;
}

body.subpage .calc-table th {
  color: #8d8271;
  border-bottom-color: var(--line);
}

body.subpage .calc-table td {
  border-bottom-color: var(--line);
  color: #d3c5ad;
}

body.subpage .calc-table td a {
  color: #f3ead9;
}

body.subpage .calc-total {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #191410, #100d0a);
}

body.subpage .calc-total b {
  color: var(--accent);
}

body.subpage .calc-hint,
body.subpage .page-note {
  color: #8d8271;
}

body.subpage .btn {
  border-color: var(--line-strong);
  background: #16120d;
  color: #e9dcc6;
}

body.subpage .btn:hover {
  border-color: #6d5735;
  background: #1e1811;
}

.stats .stat:nth-child(4) b {
  font-size: 28px;
  white-space: nowrap;
}

body.subpage button.primary {
  border-color: #c9822c;
  background: linear-gradient(180deg, #ffc470, #e2912f);
  color: #241503;
  font-weight: 800;
}

body.subpage button.primary:hover {
  filter: brightness(1.05);
}

body.subpage button.ghost {
  border-color: var(--line-strong);
  background: #16120d;
  color: #e9dcc6;
}

body.subpage button.ghost:hover {
  border-color: #6d5735;
  background: #1e1811;
}

body.subpage .page-lede a,
body.subpage .placeholder-panel a,
body.subpage .news-item a,
body.subpage .hub-links a {
  color: #f2c48a;
}

body.subpage .page-lede a:hover,
body.subpage .placeholder-panel a:hover,
body.subpage .news-item a:hover,
body.subpage .hub-links a:hover {
  color: #ffd9a8;
}

/* Hub spacing + small-screen nav */
main.site .band:last-child {
  margin-bottom: 56px;
}

@media (max-width: 620px) {
  .stats .stat:nth-child(4) b {
    font-size: 22px;
  }
}

body.subpage .calc {
  max-width: min(820px, 100%);
}

body.subpage .calc-add,
body.subpage .field {
  min-width: 0;
}

body.subpage .field select,
body.subpage .field input {
  min-width: 0;
  max-width: 100%;
}

body.subpage .foot-meta {
  color: #a19583;
}

body.subpage .foot-brand span {
  color: #a19583;
}

/* ---------- Tracker tuned to the site style ---------- */
h1 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rarity-section h2,
.group-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 13px;
}

.rarity-section h2 small,
.group-title small {
  font-family: inherit;
  letter-spacing: .1em;
}

.dialog h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.subpage-lead,
.section-title {
  font-family: var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.count-chip {
  font-family: var(--display);
  letter-spacing: .1em;
}

.dialog-img {
  background: radial-gradient(circle at 50% 45%, #221a12, #0d0b09 72%);
}

/* Active rarity pill: amber, like the hub primary button */
.rarity[aria-pressed="true"],
.rarity[data-val="All"][aria-pressed="true"] {
  background: linear-gradient(180deg, #ffc470, #e2912f);
  border-color: #c9822c;
  color: #241503;
  box-shadow: 0 4px 14px rgba(226, 145, 47, .25);
}

.rarity[aria-pressed="true"] .fcount,
.rarity[data-val="All"][aria-pressed="true"] .fcount {
  color: rgba(36, 21, 3, .72);
}

.rarity[aria-pressed="true"]::before {
  box-shadow: 0 0 0 1.5px rgba(36, 21, 3, .45);
}

@media (max-width: 720px) {
  .filterrow {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 3px;
    border-radius: 14px;
  }

  .rarity {
    font-size: 10px;
  }
}

/* Tracker filter strip: sits under the shared header and sticks while scrolling. */
.toolbar {
  position: sticky;
  top: 58px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 13, 10, .94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

/* ============================================================
   Item database (/items/) and collections (/collections/)
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Toolbar */
.db-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #100d0a;
}

.db-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.db-field span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d8271;
}

.db-field input,
.db-field select {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0c0a08;
  color: #f3ead9;
  font: inherit;
  font-size: 12.5px;
}

.db-search {
  flex: 1 1 220px;
}

.db-search input {
  width: 100%;
}

.db-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  font-size: 12px;
  color: #cbbfa9;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 700px) {
  .db-field,
  .db-field select,
  .db-field input {
    min-width: 0;
    width: 100%;
  }

  .db-field {
    flex: 1 1 calc(50% - 5px);
  }

  .db-search,
  .db-toggle {
    flex: 1 1 100%;
  }

  .db-toggle {
    padding-bottom: 0;
  }

  .db-count {
    margin: 0;
  }
}

.db-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  margin: 0;
}

.db-count {
  margin: 0 0 2px auto;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a19583;
  white-space: nowrap;
}

/* Table */
.db-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
  background: #0d0b09;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.db-table thead th {
  position: sticky;
  top: 58px;
  z-index: 2;
  padding: 0;
  background: #17130e;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  font-weight: 700;
}

.db-table thead th button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: #cdbfa8;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.db-table thead th button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.db-table th.num button {
  justify-content: flex-end;
}

.db-table th[aria-sort="ascending"] button,
.db-table th[aria-sort="descending"] button {
  color: var(--accent);
}

.sort-mark::after {
  content: "↕";
  font-size: 10px;
  opacity: .45;
}

th[aria-sort="ascending"] .sort-mark::after {
  content: "↑";
  opacity: 1;
}

th[aria-sort="descending"] .sort-mark::after {
  content: "↓";
  opacity: 1;
}

.db-table tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(37, 31, 24, .7);
  color: #d3c5ad;
  vertical-align: middle;
}

.db-table tbody tr:hover td {
  background: rgba(242, 169, 75, .05);
}

.db-table tbody tr.is-hidden {
  display: none;
}

.db-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.db-item img {
  width: 26px;
  height: 23px;
  object-fit: contain;
  flex: none;
}

.db-item a {
  color: #f6efe3;
  font-weight: 650;
  text-decoration: none;
}

.db-item a:hover {
  color: var(--accent);
}

.db-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.db-cat,
.db-market {
  color: #a19583;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .db-table .db-cat-col,
  .db-table .db-cat,
  .db-table .db-market-col,
  .db-table .db-market {
    display: none;
  }

  .db-table thead th {
    top: 0;
  }
}

/* Collections */
.crate-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.crate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crate-row a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #34d399;
  border-radius: 11px;
  background: #100d0a;
  color: inherit;
  text-decoration: none;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.crate-row.sell a {
  border-left-color: #f87171;
}

.crate-row a:hover {
  border-color: #4a3c2a;
  border-left-color: var(--accent);
  background: #16120d;
  transform: translateY(-1px);
}

.crate-rank {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #8a6f43;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.crate-row a:hover .crate-rank {
  color: var(--accent);
}

.crate-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f6efe3;
  min-width: 0;
}

.crate-name small {
  font-size: 11.5px;
  font-weight: 500;
  color: #8d8271;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crate-figs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  font-family: var(--display);
  font-size: 15px;
  color: #d3c5ad;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.crate-figs small {
  display: block;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7d7263;
}

.crate-figs span {
  text-align: right;
}

.crate-gain {
  color: var(--accent);
}

.crate-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: #a19583;
  font-size: 12.5px;
}

.crate-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.crate-items thead th {
  padding: 9px 12px;
  background: #17130e;
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d8271;
  text-align: left;
}

.crate-items tbody td,
.crate-items tbody th {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(37, 31, 24, .7);
  color: #d3c5ad;
}

.crate-items tbody tr:last-child td {
  border-bottom: 0;
}

.crate-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crate-item img {
  width: 32px;
  height: 29px;
  object-fit: contain;
}

.crate-item a {
  color: #f6efe3;
  font-weight: 650;
  text-decoration: none;
}

.crate-item a:hover {
  color: var(--accent);
}

.crate-items .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.crate-items tfoot th,
.crate-items tfoot td {
  padding: 9px 12px;
  border-top: 1px solid var(--line-strong);
  background: #14110d;
  font-size: 12px;
  color: #a19583;
  text-align: left;
}

.crate-items tfoot .total th,
.crate-items tfoot .total td {
  color: var(--accent);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .04em;
}

.crate-nav {
  margin: 18px 0 0;
}

@media (max-width: 760px) {
  .crate-row a {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 8px;
  }

  .crate-figs {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 10px;
  }

  .crate-row .verdict {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Live Steam count */
.stat-live .stat-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #34d399;
  vertical-align: 1px;
  box-shadow: 0 0 8px rgba(52, 211, 153, .8);
}

.stat-live b {
  transition: color .2s ease;
}

.stat-live b.is-live {
  color: var(--accent);
}

/* ============================================================
   Categories and guides
   ============================================================ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
  align-items: stretch;
}

.cat-grid .cat-card {
  height: 100%;
}

.cat-card,
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid #4a3c2a;
  border-radius: 12px;
  background: #100d0a;
  color: inherit;
  text-decoration: none;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.cat-card:hover,
.guide-card:hover {
  border-color: #4a3c2a;
  border-left-color: var(--accent);
  background: #16120d;
  transform: translateY(-2px);
}

.cat-head,
.guide-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #f6efe3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-head small {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #8d8271;
}

.cat-figs {
  display: flex;
  gap: 16px;
  font-family: var(--display);
  font-size: 15px;
  color: #d3c5ad;
  font-variant-numeric: tabular-nums;
}

.cat-figs small {
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7d7263;
}

.cat-note,
.guide-blurb {
  font-size: 12.5px;
  line-height: 1.5;
  color: #a19583;
}

.guide-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-p,
.guide-list {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #c1b39c;
}

.guide-p b,
.guide-list b {
  color: #f3ead9;
}

.guide-list {
  padding-left: 20px;
}

.guide-list li {
  margin-bottom: 6px;
}

.guide-stamp {
  max-width: 760px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #8d8271;
}

.guide-stamp a {
  color: var(--accent);
}

/* Links inside the data tables and guide copy */
.db-table td a,
.crate-items td a {
  color: #f6efe3;
  font-weight: 650;
  text-decoration: none;
}

.db-table td a:hover,
.crate-items td a:hover {
  color: var(--accent);
}

.guide-p a,
.guide-list a,
.guide-stamp a {
  color: #f2c48a;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 169, 75, .35);
}

.guide-p a:hover,
.guide-list a:hover {
  color: #ffd9a8;
}

/* ---------- Header search ---------- */
.navsearch {
  position: relative;
  flex: 0 1 280px;
  min-width: 160px;
}

.navsearch input {
  width: 100%;
  padding: 7px 12px 7px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #100d0a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a19583' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.4'/%3E%3Cpath d='M10.4 10.6L14 14.2'/%3E%3C/svg%3E") no-repeat 9px center / 14px 14px;
  color: #f3ead9;
  font: inherit;
  font-size: 12px;
}

.navsearch input::placeholder {
  color: #8d8271;
}

.navsearch input:focus {
  outline: none;
  border-color: #6d5735;
  background-color: #16120d;
}

.navsearch-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 330px;
  z-index: 40;
  max-height: 60vh;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #14110d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.navsearch-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 7px 9px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.navsearch-result:hover,
.navsearch-result.is-active {
  background: rgba(242, 169, 75, .12);
}

.navsearch-type {
  grid-row: span 2;
  align-self: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: #a19583;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.navsearch-name {
  font-size: 12.5px;
  font-weight: 650;
  color: #f6efe3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navsearch-sub {
  grid-column: 2;
  font-size: 10.5px;
  color: #8d8271;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .navbar {
    padding: 8px 14px;
  }

  .navsearch {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
  }

  .pagenav {
    order: 2;
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .navsearch-results {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .navsearch {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .navsearch input {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .pagenav {
    order: 2;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pagenav::-webkit-scrollbar {
    display: none;
  }

  .pagenav a {
    padding: 7px 9px;
    font-size: 10.5px;
    white-space: nowrap;
  }
}

/* Item database extras: weapon stat grid, market chip, section counts. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #100d0a;
}

.stat-cell span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d8271;
}

.stat-cell b {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .02em;
  color: #f6efe3;
}

.hero-market {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b7a68c;
}

.h2-count {
  margin-left: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d8271;
}

/* View toggle, item card grid and empty state */
.db-views {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #0c0a08;
}

.db-view {
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a19583;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.db-view:hover {
  color: #f6efe3;
}

.db-view.is-on {
  background: var(--accent);
  color: #17120c;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.ig-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #100d0a;
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease, transform .12s ease;
}

.ig-card:hover,
.ig-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ig-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
}

.ig-art img {
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.ig-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ig-name {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  color: #f6efe3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ig-cat {
  font-size: 10px;
  color: #8d8271;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid #ffffff0d;
}

.ig-price {
  margin-left: auto;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .02em;
  color: #f0c78a;
  font-variant-numeric: tabular-nums;
}

.ig-crate {
  flex-basis: 100%;
  font-size: 9.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7f7466;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #0d0b09;
  text-align: center;
}

.empty-state b {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f6efe3;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
  color: #a19583;
}

.empty-state .btn-solid {
  margin-top: 4px;
}

/* Category mosaic thumbnails */
.cat-card {
  position: relative;
  overflow: hidden;
}

.cat-mosaic {
  display: flex;
  gap: 4px;
  margin: -4px 0 2px;
}

.cat-mosaic img {
  width: 42px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
  background: #0b0906;
  border: 1px solid #ffffff0f;
  padding: 2px;
}

/* Crate grid */
.crate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.crate-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #4a3c2a;
  border-radius: 12px;
  background: #100d0a;
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease, transform .12s ease;
}

.crate-card:hover,
.crate-card:focus-visible {
  border-color: var(--accent);
  border-left-color: var(--accent);
  transform: translateY(-1px);
}

.crate-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.crate-card-rank {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a8b76;
}

.crate-card-gain {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: .02em;
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
}

.crate-mosaic {
  display: flex;
  gap: 5px;
}

.crate-mosaic img {
  width: 46px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #0b0906;
  border: 1px solid #ffffff0f;
  padding: 2px;
}

.crate-card-name {
  font-size: 13px;
  font-weight: 650;
  color: #f6efe3;
}

.crate-card-facts {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #9a8b76;
}

.crate-card-facts b {
  color: #d8cbae;
  font-weight: 700;
}

/* Item tiles used on category pages */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 9px;
  margin: 12px 0 18px;
}

.tile-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #100d0a;
  color: inherit;
  text-decoration: none;
}

.tile-item:hover,
.tile-item:focus-visible {
  border-color: var(--accent);
}

.tile-item-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}

.tile-item-art img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.tile-item-name {
  font-size: 12px;
  font-weight: 650;
  color: #f6efe3;
  line-height: 1.25;
}

.tile-item-price {
  font-family: var(--display);
  font-size: 15px;
  color: #f0c78a;
  font-variant-numeric: tabular-nums;
}

/* Guide banners */
.guide-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-card-thumb {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #ffffff0f;
}

.notfound-search {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #100d0a;
  max-width: 620px;
}

.notfound-search .db-search {
  flex: 1 1 260px;
}

.guide-card-thumb {
  height: auto;
  aspect-ratio: 3 / 1;
}

/* Weapon comparison picker */
.db-pick {
  width: 34px;
  padding-left: 8px !important;
}

.db-pick input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.db-pick input:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.cmp {
  position: sticky;
  top: 58px;
  z-index: 6;
  margin: 0 0 14px;
  padding: 12px 14px 10px;
  border: 1px solid var(--accent-border, var(--line-strong));
  border-top: 2px solid var(--accent);
  border-radius: 12px;
  background: #120f0c;
  box-shadow: 0 14px 32px #000000a6;
}

.cmp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cmp-head b {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f6efe3;
}

.cmp-clear {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: #cbbfa9;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cmp-clear:hover {
  border-color: var(--accent);
  color: #f6efe3;
}

.cmp-wrap {
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.cmp-table th,
.cmp-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #ffffff0d;
  white-space: nowrap;
}

.cmp-table thead th {
  font-size: 12px;
  font-weight: 700;
  color: #f6efe3;
  vertical-align: bottom;
}

.cmp-table thead th a {
  color: #f6efe3;
  text-decoration: none;
  border-bottom: 1px solid #ffffff26;
}

.cmp-table thead th a:hover {
  color: var(--accent);
}

.cmp-corner {
  color: #8d8271 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmp-type {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #9a8b76;
}

.cmp-table tbody th {
  font-weight: 600;
  color: #a19583;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cmp-table tbody td {
  font-variant-numeric: tabular-nums;
  color: #e9dfcd;
}

.cmp-best {
  color: #6ee7b7 !important;
  font-weight: 700;
}

.cmp-note {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: #8d8271;
}

@media (max-width: 700px) {
  .cmp {
    position: static;
  }
}

/* hidden must beat the layout rules on cards and rows */
.ig-card[hidden],
.db-table tr[hidden] {
  display: none;
}

/* Accessibility: skip link, focus rings and a readable muted tone */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 9px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: #17120c;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: top .12s ease;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.db-table tr:focus-within,
.ig-card:focus-visible,
.crate-card:focus-visible,
.tile-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ig-crate {
  color: #8d8271;
}

.navsearch-empty {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 2px 10px;
  padding: 10px 12px;
  border-top: 1px solid #ffffff0f;
}

.navsearch-empty .navsearch-type {
  color: #8d8271;
}

.navsearch-empty .navsearch-sub {
  grid-column: 2;
  font-size: 11px;
  color: #a19583;
}

.navsearch-empty a {
  color: var(--accent);
}

/* Loot guide */
.loot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}

.loot-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid #4a3c2a;
  border-radius: 12px;
  background: #100d0a;
}

.loot-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.loot-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f6efe3;
}

.loot-count {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d8271;
}

.loot-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  font-size: 12.5px;
  color: #d8cbae;
}

.loot-facts small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d8271;
}

.loot-facts a {
  color: #f0c78a;
  text-decoration: none;
}

.loot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.loot-asset {
  display: block;
  font-size: 10px;
  color: #7f7466;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* Fence ladder on item pages */
.fence-table tbody th {
  text-align: left;
  font-weight: 650;
  color: #d8cbae;
  font-variant-numeric: tabular-nums;
}

.fence-table tbody tr:last-child th,
.fence-table tbody tr:last-child td {
  color: #f0c78a;
  font-weight: 700;
}
