:root {
  color-scheme: dark;
  --bg: #141010;
  --panel: #1c1616;
  --panel-high: #261c1b;
  --line: #392b29;
  --line-strong: #4f3833;
  --cream: #fbebd7;
  --text: #f3e6dc;
  --muted: #b5a29a;
  --accent: #edbc82;
  --accent-ink: #2d1d13;
  --red: #9e503d;
  --sans: "Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  --serif: "Songti SC","STSong","SimSun","Noto Serif CJK SC",serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1240px,calc(100% - 112px));
  margin: auto;
}

.skip {
  position: fixed;
  z-index: 12;
  top: 8px;
  left: 8px;
  transform: translateY(-130%);
  padding: 10px 16px;
  color: var(--accent-ink);
  background: var(--accent);
}

.skip:focus {
  transform: none;
}

.header {
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #151011f2;
  border-bottom: 1px solid #44312a;
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cream);
}

.brand-logo {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 5px;
  object-fit: contain;
  background: #08090b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}

.friend-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 7px;
  border-radius: 6px;
  border: 1px solid rgba(228, 56, 40, .34);
  background: rgba(11, 9, 11, .86);
  color: #f7f7f7;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.friend-link:hover {
  border-color: rgba(246, 91, 77, .78);
  background: rgba(28, 16, 17, .96);
  box-shadow: 0 4px 14px rgba(228, 56, 40, .2);
  transform: translateY(-1px);
}

.friend-link-logo {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 4px;
  object-fit: contain;
  background: #08090b;
}

.friend-link-name {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .025em;
  color: #f7f7f7;
}

.friend-link-sub {
  font-size: 11px;
  color: #b7a299;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.nav {
  height: 100%;
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.nav a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding: 0 1px;
  white-space: nowrap;
}

.nav a:hover,.nav a:focus-visible,.nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--accent);
}

.nav a[aria-current="page"] {
  font-weight: 700;
}

.banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid #594035;
  background: #271717;
  min-height: 210px;
}

.banner::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("assets/cover.webp"),radial-gradient(ellipse at 76% 44%,#a35f49 0,#581e28 36%,#1c1318 72%);
  background-position: center 52%;
  background-size: cover;
}

.banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#170f12 2%,#1c1215ed 25%,#2316188c 49%,transparent 75%),linear-gradient(0deg,#161010 0%,transparent 29%,transparent 82%,#15101247 100%);
}

.banner-inner {
  padding: 34px 0 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #e9b78a;
  font-size: 12px;
  letter-spacing: .24em;
  font-weight: 750;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font: 750 clamp(46px,6.15vw,82px)/1.09 var(--serif);
  color: var(--cream);
  letter-spacing: .045em;
  text-shadow: 0 4px 22px #1b0d0a80;
}

h1 span {
  color: #edbc82;
}

.intro {
  color: #e3cfc1;
  margin-top: 17px;
  font-size: 15px;
  max-width: 37ch;
}

.banner-actions {
  margin-top: 23px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta,.quiet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 5px;
  padding: 9px 15px;
  min-height: 43px;
  font-weight: 700;
  font-size: 13px;
}

.cta {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid #f4c998;
}

.cta:hover {
  background: #f6cfa1;
}

.quiet-cta {
  border: 1px solid #987159;
  color: #f3dfcc;
  background: #1b1414b8;
}

.quiet-cta:hover {
  background: #392319;
}

main {
  background: radial-gradient(ellipse at 30% 0,#201515 0,transparent 42%),var(--bg);
}

.hero-strip {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 13px;
}

.section-head > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.attr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-head h2 {
  font-size: 17px;
  letter-spacing: .035em;
}

.subtle {
  color: var(--muted);
  font-size: 12px;
}

.portraits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
  gap: 10px;
}

.portrait {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  text-align: left;
  overflow: hidden;
  min-height: 82px;
  border-radius: 6px;
  background: #211818;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 8px 10px;
  font-weight: 750;
  line-height: 1.2;
}

.portrait img,.portrait::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.portrait::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg,#191011ed,transparent 75%);
}

.portrait:hover,.portrait[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px #edbc8255;
}

.portrait[aria-pressed="true"] span {
  color: #ffd4a4;
}

.catalog {
  padding: 22px 0 34px;
}

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

.catalog-head h2 {
  font: 750 30px/1.2 var(--serif);
  color: var(--cream);
  letter-spacing: .06em;
}

.hero-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #2d201d;
  color: var(--cream);
}

.hero-context-identity,.hero-context-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-context-identity img {
  width: 62px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
}

.hero-context-identity strong {
  display: block;
}

.hero-context-actions a,.hero-context-actions button {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
}

.hero-context-actions a:hover,.hero-context-actions button:hover {
  border-color: var(--accent);
  background: #382622;
}

.hero-pools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.hero-pool {
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #241916;
}

.hero-pool.full-span {
  grid-column: 1 / -1;
}

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

.hero-pool-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
}

.hero-pool-count {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero-pool-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr));
  align-items: stretch;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.hero-pool-items li {
  display: flex;
}

.hero-pool-items .relation {
  width: 100%;
  min-height: 36px;
  height: 100%;
  align-items: center;
  line-height: 1.3;
}

.hero-pool.full-span .hero-pool-items {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.pool-chip-text {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-augment-types,.subcategory-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-augment-types {
  margin-top: 8px;
}

.subcategory-filters {
  display: grid;
  gap: 7px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
}

.filterbar {
  display: grid;
  grid-template-columns: minmax(220px,1fr) minmax(128px,.24fr) auto;
  gap: 9px;
}

.filterbar:has(#tier[hidden]) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #1a1414;
  color: var(--muted);
}

.search-field {
  padding: 0 11px;
}

.search-field:focus-within {
  border-color: var(--accent);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-field input:focus-visible {
  outline: 0;
}

.search-field input::placeholder {
  color: #a8958c;
}

.magnifier {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 100%;
  border: 1.5px solid #d7ae90;
  position: relative;
  margin-right: 4px;
}

.magnifier::after {
  content: "";
  width: 6px;
  height: 1.5px;
  background: #d7ae90;
  position: absolute;
  transform: rotate(45deg);
  right: -4px;
  bottom: -2px;
}

kbd {
  color: #cfb5a7;
  background: #2c2220;
  border: 1px solid #4c3833;
  border-radius: 4px;
  padding: 0 5px;
  font: 12px/20px var(--sans);
}

select.field {
  width: 100%;
  color: var(--text);
  padding: 0 10px;
}

.clear {
  padding: 0 13px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.clear:hover {
  background: var(--panel-high);
}

.filter-row {
  position: sticky;
  top: 60px;
  z-index: 9;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 13px -12px 12px;
  padding: 10px 12px;
  background: rgba(20, 16, 16, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.category {
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #211919;
  color: var(--muted);
  padding: 5px 11px;
  white-space: nowrap;
}

.category:hover,.category[aria-pressed="true"] {
  color: var(--cream);
  border-color: #8d5944;
  background: #422921;
}

.result-count {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.results-area {
  display: block;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.list-grid .result {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  border-left: 2px solid var(--line);
}

.list-grid .result:hover {
  border-color: var(--line-strong);
  border-left-color: var(--accent);
  background: #28201f;
}

.list-grid .empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.hero-attr-panel {
  position: static;
  max-height: none;
  overflow: visible;
}

.list,.detail {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  overflow: hidden;
}

.result {
  color: var(--text);
  text-align: left;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 10px 13px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}

.result:last-child {
  border-bottom: 0;
}

.result:hover {
  background: #28201f;
}

.result img,.detail-icon {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #735248;
  border-radius: 5px;
  background: #1d1717;
}

.result img {
  width: 42px;
  height: 42px;
}

.result-name {
  display: block;
  color: var(--cream);
  line-height: 1.35;
  font-weight: 720;
}

.result-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.result-value {
  font: 650 12px/1.3 var(--sans);
  font-variant-numeric: tabular-nums;
  color: #dfb99e;
  text-align: right;
  white-space: nowrap;
}

.detail {
  position: sticky;
  top: 118px;
  padding: 16px 17px;
  background: linear-gradient(155deg,#302120 0,#221919 63%);
}

.detail-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-icon {
  width: 54px;
  height: 54px;
}

.detail h3 {
  font-size: 19px;
  line-height: 1.35;
  color: var(--cream);
}

.detail-category {
  color: #dbb89e;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}

.detail-description {
  color: #ddc9be;
  margin: 11px 0 13px;
  font-size: 13px;
}

.values {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
}

.tier {
  padding: 7px 3px 6px;
  text-align: center;
  border: 1px solid #594537;
  border-top: 2px solid var(--tier);
  background: #1a1516;
  border-radius: 4px;
}

.tier.focus-tier {
  background: #432c23;
  border-color: var(--tier);
}

.tier span {
  display: block;
  font-size: 11px;
  color: var(--tier);
}

.tier strong {
  font: 650 clamp(17px,2.2vw,25px)/1.35 system-ui,sans-serif;
  color: #f8ece4;
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 22px;
  color: var(--muted);
}

.closing {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 13px;
}

.closing p+p {
  margin-top: 4px;
}

@media(max-width:1100px) {
  .wrap {
    width: calc(100% - 72px);
  }
}

@media(max-width:790px) {
  .wrap {
    width: calc(100% - 42px);
  }
  .header-inner {
    gap: 20px;
  }
  .nav {
    gap: 16px;
  }
  .banner {
    min-height: 0;
  }
  .banner-inner {
    padding: 46px 0 42px;
  }
  .filterbar {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  }
  .filterbar:has(#tier[hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .portraits {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
  }
  .portrait {
    min-height: 66px;
  }
  .result {
    grid-template-columns: 37px minmax(0,1fr);
  }
  .result img {
    width: 37px;
    height: 37px;
  }
  .result-value {
    display: none;
  }
}

@media(max-width:620px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header {
    height: auto;
    padding: 8px 0 0;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
    padding-bottom: 6px;
  }
  .brand-logo {
    width: 24px;
    height: 24px;
  }
  .friend-link {
    padding: 3px 8px 3px 5px;
    margin-bottom: 6px;
    gap: 5px;
  }
  .friend-link-logo {
    width: 18px;
    height: 18px;
  }
  .friend-link-name {
    font-size: 12px;
  }
  .friend-link-sub {
    display: none;
  }
  .nav {
    order: 3;
    display: flex;
    width: 100%;
    height: 38px;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid #2e2120;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .banner-inner {
    padding: 40px 0 31px;
  }
  .banner::before {
    background-position: 61% 50%;
  }
  .banner::after {
    background: linear-gradient(90deg,#190f13f2 0,#201518c7 50%,#24191a42 100%),linear-gradient(0deg,#161010 0%,transparent 23%);
  }
  .intro {
    font-size: 13px;
    max-width: 31ch;
  }
  .hero-strip {
    padding: 18px 0 20px;
  }
  .hero-pools {
    grid-template-columns: 1fr;
  }
  .portraits {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 88px), 1fr));
    gap: 8px;
  }
  .catalog-head h2 {
    font-size: 24px;
  }
  .list-grid {
    grid-template-columns: 1fr;
  }
  .result {
    grid-template-columns: 38px minmax(0,1fr) auto;
  }
  .result-value {
    display: block;
  }
  .result-value,.category {
    font-size: 11px;
  }
  .filter-row {
    top: 84px;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    margin: 10px -16px 12px;
    padding: 8px 16px;
  }
  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
  .hero-pool-items,
  .hero-pool.full-span .hero-pool-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-pool {
    padding: 10px 11px 12px;
  }
  .hero-pool-items .relation {
    font-size: 12px;
    padding: 4px 6px;
    min-height: 38px;
  }
  .hero-pool-header .subtle {
    display: none;
  }
}

@media(max-width:370px) {
  .result-value {
    display: none;
  }
  .result {
    grid-template-columns: 38px minmax(0,1fr);
  }
  .portrait {
    min-height: 60px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

[hidden] {
  display: none!important;
}

.version {
  margin-left: auto;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #674634;
  border-radius: 4px;
  color: #e6c3a6;
  font-size: 12px;
}

.version:hover {
  background: #382824;
}

.portrait img {
  max-width: none;
}

.portrait.placeholder {
  color: #cfb5a7;
}

.category {
  font-size: 13px;
}

.category small {
  font-size: 11px;
  margin-left: 5px;
  opacity: .82;
  font-variant-numeric: tabular-nums;
}

.filterbar input,.filterbar select,.filterbar .clear {
  font-size: 14px;
}

select.field {
  padding: 0 10px;
}

.result .missing-icon {
  width: 42px;
  height: 42px;
}

.missing-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #1a1414;
  color: #ce9b7e;
  font-size: 17px;
  font-weight: 700;
}

.result-name {
  overflow-wrap: anywhere;
}

.result-meta {
  line-height: 1.45;
}

.result-value {
  max-width: 19ch;
  white-space: normal;
}

.detail {
  max-height: calc(100dvh - 134px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #795044 #281a18;
}

.detail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.detail-icon {
  flex: none;
}

.detail h3 {
  overflow-wrap: anywhere;
}

.detail-description {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border-radius: 6px;
  border: 1px solid rgba(237, 188, 130, .28);
  border-left: 3px solid var(--accent);
  background: rgba(237, 188, 130, .09);
  color: #fbf0e4;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-description.augment-desc {
  background: linear-gradient(90deg, rgba(237, 188, 130, .15), rgba(237, 188, 130, .06));
  border-color: rgba(237, 188, 130, .42);
  border-left-width: 4px;
  color: #fff6ec;
  font-weight: 500;
}

.detail h4 {
  margin: 15px 0 8px;
  color: var(--cream);
  font-size: 14px;
}

.detail .section-note {
  margin: 7px 0;
  color: #dfd0c4;
  font-size: 13px;
}

.detail .summary-stat {
  margin: 10px 0 7px;
  color: #f6e2cf;
  font-size: 15px;
  font-weight: 700;
}

.detail .price {
  margin: 10px 0;
  color: #f1c992;
  font-variant-numeric: tabular-nums;
}

.tier {
  min-width: 0;
}

.tier strong {
  word-break: break-word;
}

.tabular {
  margin-top: 9px;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  table-layout: auto;
}

.tabular th,.tabular td {
  border-bottom: 1px solid #4a3632;
  padding: 7px 5px;
  overflow-wrap: anywhere;
}

.tabular th {
  color: #d9bda7;
  font-size: 12px;
  font-weight: 600;
}

.tabular td:not(:first-child),.tabular th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tabular .selected-tier {
  background: #452d24;
  color: #ffddb7;
}

.paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.paging .clear {
  min-height: 32px;
}

.paging .clear:disabled {
  cursor: default;
  color: #8b7870;
  background: transparent;
  opacity: .7;
}

.detail .relations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.relation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 7px;
  background: #231818;
  color: #f5deca;
  font-size: 13px;
}

.relation:hover {
  border-color: var(--accent);
  color: #ffe1bd;
}

/* 英雄专属纪念品鎏金边框与专属徽章 */
.relation.is-exclusive {
  border-color: rgba(237, 188, 130, .72);
  background: linear-gradient(135deg, rgba(237, 188, 130, .17) 0%, rgba(45, 29, 21, .92) 55%, rgba(31, 21, 19, .95) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 224, 175, .14), 0 2px 10px rgba(0, 0, 0, .28);
  color: #fff2de;
}

.relation.is-exclusive:hover {
  border-color: #ffd9a0;
  background: linear-gradient(135deg, rgba(237, 188, 130, .26) 0%, rgba(56, 36, 25, .95) 60%, rgba(38, 25, 22, .96) 100%);
}

.excl-badge {
  flex: none;
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 228, 175, .75);
  background: linear-gradient(135deg, #f6cc86 0%, #c9863a 100%);
  color: #1f1106;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  white-space: nowrap;
}

.result.is-exclusive {
  border-color: rgba(237, 188, 130, .48);
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(237, 188, 130, .13) 0%, rgba(34, 24, 21, .95) 42%, var(--panel) 100%);
}

.result.is-exclusive:hover {
  border-color: rgba(255, 217, 160, .72);
  border-left-color: #ffd9a0;
  background: linear-gradient(90deg, rgba(237, 188, 130, .2) 0%, rgba(44, 30, 25, .96) 45%, #28201f 100%);
}

.result-name .excl-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.relation img,.relation .missing-icon {
  width: 23px;
  height: 23px;
  border-radius: 3px;
  object-fit: cover;
}

.recipes {
  margin: 0;
  padding-left: 20px;
  color: #e1cdbe;
  font-size: 14px;
}

.recipes li {
  margin: 0 0 5px;
}

.recipes img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 3px;
}

.recipe-ingredient {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media(max-width:790px) {
  .result .missing-icon {
    width: 37px;
    height: 37px;
  }
}

@media(max-width:620px) {
  .version {
    font-size: 11px;
  }
  .detail {
    max-height: none;
    overflow: visible;
  }
  .result .missing-icon {
    width: 38px;
    height: 38px;
  }
  .filterbar input,.filterbar select,.filterbar .clear {
    font-size: 13px;
  }
  .tabular th,.tabular td {
    padding: 6px 4px;
  }
}

.result[aria-current="true"] {
  background: linear-gradient(90deg,#3b2723,#2b201e);
  border-left-color: var(--accent);
}

.detail .other-fields td:last-child {
  width: 58%;
}

.result .missing-icon {
  font-size: 13px;
}

.field-scale {
  display: block;
  color: #c8ad9a;
}

.relation-group {
  margin: 14px 0;
}

.relation-group > summary {
  cursor: pointer;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.relation-group[open] > summary {
  margin-bottom: 8px;
}

.tier.is-zero {
  opacity: .42;
}

.tier.is-zero strong {
  color: var(--muted);
}

.recipe-ingredient-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #231818;
  color: #f5deca;
  font-size: 13px;
}

.recipe-ingredient-btn:hover {
  border-color: var(--accent);
  color: #ffe1bd;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(12, 8, 9, .68);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}

.drawer-shell {
  width: min(540px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #1a1314;
  border-left: 1px solid var(--line-strong);
  box-shadow: -12px 0 36px rgba(0, 0, 0, .5);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #151011;
}

.drawer-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.drawer-back {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  color: var(--accent);
}

.drawer-close {
  min-height: 30px;
  padding: 0 11px;
}

.drawer-detail {
  position: static;
  max-height: none;
  flex: 1;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
}

.drawer-foot {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #151011;
}

.drawer-foot-close {
  min-height: 38px;
  padding: 0 22px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  background: #3b2621;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.drawer-foot-close:hover {
  background: #4d3129;
}

/* 紧凑多列属性网格，显著减少纵向高度 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.stat-cell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(20, 15, 15, .62);
  min-width: 0;
}

.stat-cell.wide {
  grid-column: 1 / -1;
}

.stat-label {
  color: #cbb6a8;
  font-size: 12px;
  line-height: 1.35;
}

.stat-val-wrap {
  text-align: right;
  flex-shrink: 0;
}

.stat-val {
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-scale {
  display: block;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.25;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #8a624b;
  background: rgba(34, 23, 22, .94);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
}

.back-to-top:hover {
  border-color: var(--accent);
  background: #422a22;
  color: #ffe3be;
}

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

@media(max-width:620px) {
  .drawer-foot-close {
    min-height: 42px;
    padding: 0 26px;
  }
  .back-to-top {
    right: 14px;
    bottom: 18px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* ========== 专题页面公共排版（贴合暗黑狂欢极简风） ========== */
.topic-page {
  padding: 26px 0 36px;
}

.topic-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.topic-head h2 {
  font: 750 28px/1.2 var(--serif);
  color: var(--cream);
  letter-spacing: .05em;
}

.topic-head .subtle {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.topic-subnav {
  position: sticky;
  top: 60px;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 -12px 18px;
  padding: 10px 12px;
  background: rgba(20, 16, 16, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topic-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 10px;
  font-size: 16px;
  color: var(--cream);
}

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

.topic-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.topic-card {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(160deg, #251a18 0%, #1c1515 70%);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-card.eldritch-card {
  border-color: rgba(188, 134, 240, .38);
  background: linear-gradient(160deg, #241928 0%, #1a141c 75%);
}

.topic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topic-card-head h3 {
  font-size: 15px;
  color: var(--cream);
  line-height: 1.3;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: #281d1b;
  color: #e6cbb3;
  white-space: nowrap;
}

.pill-tag.gold {
  border-color: rgba(237, 188, 130, .48);
  background: rgba(237, 188, 130, .14);
  color: #f8d4a4;
}

.pill-tag.violet {
  border-color: rgba(196, 146, 255, .45);
  background: rgba(196, 146, 255, .14);
  color: #ddb8ff;
}

.pill-tag.crimson {
  border-color: rgba(214, 102, 86, .45);
  background: rgba(214, 102, 86, .14);
  color: #f5aba0;
}

.pill-tag.green {
  border-color: rgba(138, 209, 147, .42);
  background: rgba(138, 209, 147, .12);
  color: #a9e3b0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.npc-options {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.npc-options li {
  padding: 7px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(18, 13, 14, .65);
  font-size: 12.5px;
}

.npc-options strong {
  display: block;
  color: #f3d7ba;
  font-size: 13px;
}

.npc-options span {
  display: block;
  color: #cbb8ad;
  margin-top: 2px;
  line-height: 1.45;
}

.eldritch-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 2px;
}

.eldritch-tier-cell {
  text-align: center;
  padding: 5px 4px;
  border-radius: 4px;
  border: 1px solid rgba(188, 134, 240, .28);
  background: rgba(20, 14, 24, .7);
}

.eldritch-tier-cell span {
  display: block;
  font-size: 10px;
  color: #bca9c9;
}

.eldritch-tier-cell strong {
  display: block;
  font-size: 13px;
  color: #e4c6ff;
  font-variant-numeric: tabular-nums;
}

/* ========== 塔罗牌画廊 ========== */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.tarot-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #594138;
  border-radius: 8px;
  background: linear-gradient(180deg, #241918 0%, #191213 100%);
  overflow: hidden;
  transition: border-color .16s, transform .16s;
}

.tarot-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tarot-art-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #120d0e;
  overflow: hidden;
  border-bottom: 1px solid #48342e;
}

.tarot-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-roman {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 11, 12, .86);
  border: 1px solid rgba(237, 188, 130, .48);
  color: var(--accent);
  font: 700 12px/1.3 var(--serif);
  letter-spacing: .08em;
}

.tarot-card.is-permanent {
  border-color: rgba(237, 188, 130, .56);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 224, 175, .14);
}

.tarot-scope {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: .03em;
  white-space: nowrap;
}

.tarot-scope.is-permanent {
  background: linear-gradient(135deg, #ffe2a8 0%, #eab564 48%, #c47d34 100%);
  border: 1px solid #fff0cd;
  color: #1f1106;
  font-weight: 800;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, .86),
    0 0 14px rgba(237, 188, 130, .55),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

.tarot-scope-sigil {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.tarot-scope.is-round {
  background: rgba(16, 12, 15, .92);
  border: 1px solid rgba(215, 192, 176, .48);
  color: #f0dfd1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .78);
}

.tarot-scope.is-unimplemented {
  background: rgba(28, 25, 29, .92);
  border: 1px solid rgba(154, 142, 148, .48);
  color: #b8adb2;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .72);
}

.tarot-card.is-unimplemented {
  opacity: .84;
  border-color: #3e3233;
}

.tarot-card.is-unimplemented:hover {
  opacity: 1;
}

.tarot-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.tarot-body h3 {
  font: 700 16px/1.25 var(--serif);
  color: var(--cream);
  letter-spacing: .04em;
}

.tarot-effects {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}

.tarot-line-pro {
  color: #b4e2ba;
}

.tarot-line-con {
  color: #f0ada3;
}

.tarot-line-neutral {
  color: #d6c3b6;
}

/* ========== 祝福树 ========== */
.blessing-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-kpi {
  padding: 11px 13px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #231917;
}

.summary-kpi small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.summary-kpi strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.blessing-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.blessing-item {
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(18, 13, 14, .62);
}

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

.blessing-item-top strong {
  font-size: 13px;
  color: var(--cream);
}

.blessing-item-top span {
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.blessing-item p {
  margin-top: 3px;
  font-size: 12px;
  color: #cbb8ad;
  line-height: 1.45;
}

/* ========== 关卡与首领 ========== */
.boss-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.boss-stat {
  padding: 6px 4px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(16, 12, 13, .68);
  text-align: center;
  min-width: 0;
}

.boss-stat small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.boss-stat strong {
  display: block;
  font-size: 12px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.boss-skills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.boss-skill-row {
  padding: 6px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(20, 14, 15, .58);
  font-size: 12px;
}

.boss-skill-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.boss-skill-head strong {
  color: #f3d8bc;
  font-size: 12.5px;
}

.boss-skill-head span {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.boss-skill-row p {
  margin-top: 2px;
  color: #c9b5aa;
  line-height: 1.45;
}

.round-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #211716;
}

.round-row.is-boss {
  border-color: rgba(214, 102, 86, .52);
  background: linear-gradient(90deg, #2b1918, #1e1515);
}

.round-row.is-bonus {
  border-color: rgba(237, 188, 130, .42);
}

.round-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.round-title strong {
  display: block;
  font-size: 14px;
  color: var(--cream);
}

.round-numbers {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #dfc3a9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.achievement-item {
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #1f1716;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.achievement-num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}

@media(max-width:960px) {
  .topic-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blessing-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:720px) {
  .topic-grid-2,
  .topic-grid-3,
  .achievement-list {
    grid-template-columns: 1fr;
  }
  .round-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .round-numbers {
    flex-wrap: wrap;
  }
}

@media(max-width:620px) {
  .topic-subnav {
    top: 84px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 14px;
    padding: 8px 16px;
    scrollbar-width: none;
  }
  .topic-subnav::-webkit-scrollbar {
    display: none;
  }
  .tarot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tarot-body {
    padding: 9px 9px 11px;
  }
  .tarot-body h3 {
    font-size: 14px;
  }
  .tarot-effects {
    font-size: 11.5px;
  }
}

/* ========== 首页 Banner 下方仪表盘卡片 ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin-top: 22px;
}

.dash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 13px 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(237, 188, 130, .24);
  border-top: 2px solid var(--dash-accent, var(--accent));
  background: linear-gradient(165deg, rgba(36, 22, 23, .84) 0%, rgba(20, 14, 15, .88) 100%);
  backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.dash-card.dash-gold { --dash-accent: #edbc82; --dash-rgb: 237, 188, 130; }
.dash-card.dash-violet { --dash-accent: #c492ff; --dash-rgb: 196, 146, 255; }
.dash-card.dash-cyan { --dash-accent: #5cd6dc; --dash-rgb: 92, 214, 220; }
.dash-card.dash-crimson { --dash-accent: #e07668; --dash-rgb: 224, 118, 104; }

.dash-card:hover {
  transform: translateY(-2px);
  border-color: var(--dash-accent, var(--accent));
  background: linear-gradient(165deg, rgba(49, 30, 29, .92) 0%, rgba(25, 17, 18, .94) 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .44);
}

.dash-card[aria-pressed="true"] {
  border-color: var(--dash-accent, var(--accent));
  border-top-width: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--dash-rgb, 237, 188, 130), .22) 0%, transparent 72%),
    linear-gradient(165deg, rgba(54, 33, 30, .95) 0%, rgba(26, 17, 18, .96) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--dash-rgb, 237, 188, 130), .42),
    0 10px 28px rgba(0, 0, 0, .5);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dash-kicker {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  color: #e9d1be;
}

.dash-card[aria-pressed="true"] .dash-kicker {
  color: var(--cream);
}

.dash-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--dash-rgb, 237, 188, 130), .5);
  background: transparent;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dash-card:hover .dash-indicator {
  border-color: var(--dash-accent, var(--accent));
}

.dash-card[aria-pressed="true"] .dash-indicator {
  background: var(--dash-accent, var(--accent));
  border-color: var(--dash-accent, var(--accent));
  box-shadow: 0 0 8px rgba(var(--dash-rgb, 237, 188, 130), .85);
  transform: scale(1.15);
}

.dash-metric {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.1;
}

.dash-metric strong {
  font: 750 28px/1.1 var(--serif);
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.dash-metric span {
  font-size: 12px;
  color: var(--dash-accent, var(--accent));
  font-weight: 700;
}

.dash-detail {
  font-size: 11.5px;
  line-height: 1.45;
  color: #bfa99e;
  margin-top: auto;
}

/* ========== 奇遇与邪异紧凑卡片化 ========== */
.npc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.npc-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.npc-compact-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #251a18 0%, #1c1515 72%);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.npc-compact-card:hover {
  border-color: var(--accent);
  background: linear-gradient(160deg, #31211d 0%, #221817 75%);
  transform: translateY(-1px);
}

.npc-compact-summary {
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbb8ad;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.npc-compact-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(79, 56, 51, .55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}

.npc-compact-more {
  color: var(--accent);
  font-weight: 700;
}

.compact-card {
  padding: 11px 12px;
  gap: 7px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.offer-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.offer-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 5px;
  border: 1px solid #735248;
  object-fit: cover;
}

.offer-info {
  min-width: 0;
}

.offer-info h3 {
  font-size: 13.5px;
  color: var(--cream);
  line-height: 1.3;
}

.compact-rel {
  min-height: 26px;
  padding: 2px 6px;
  font-size: 11.5px;
}

.compact-rel img {
  width: 18px;
  height: 18px;
}

/* ========== 祝福树（官方 Dota 2 Panorama 齿轮路线布局） ========== */
.blessing-tree-stage {
  border: 1px solid #594035;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 60, 44, .18) 0%, transparent 55%),
    linear-gradient(180deg, #1b1315 0%, #130e10 100%);
  padding: 16px 18px 20px;
  box-shadow: inset 0 1px 0 rgba(237, 188, 130, .14), 0 12px 32px rgba(0, 0, 0, .35);
}

.blessing-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(79, 56, 51, .65);
}

.blessing-legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blessing-rows-scroll {
  overflow-x: auto;
  padding: 6px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #795044 #1c1415;
}

.blessing-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 780px;
}

.blessing-row {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg,
    rgba(var(--row-rgb, 237, 188, 130), .12) 0%,
    rgba(var(--row-rgb, 237, 188, 130), .045) 45%,
    rgba(18, 13, 15, .28) 100%);
  border: 1px solid rgba(var(--row-rgb, 237, 188, 130), .16);
}

.blessing-row-title {
  text-align: right;
  padding-right: 4px;
}

.blessing-row-title strong {
  display: block;
  font: 700 15px/1.25 var(--serif);
  color: var(--cream);
  letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.blessing-row-title small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(var(--row-rgb, 237, 188, 130), .92);
  font-variant-numeric: tabular-nums;
}

.blessing-row-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blessing-connector {
  flex: 1 1 16px;
  min-width: 14px;
  height: 3px;
  margin: 0 -4px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    rgba(237, 188, 130, .28),
    rgba(var(--row-rgb, 237, 188, 130), .52),
    rgba(237, 188, 130, .28));
  box-shadow: 0 0 6px rgba(0, 0, 0, .7);
}

.blessing-node {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  z-index: 1;
  transition: transform .13s cubic-bezier(0, .9, 0, .9), filter .13s ease;
}

.blessing-node.is-keystone {
  width: 66px;
  height: 66px;
}

.blessing-node:hover,
.blessing-node.is-active,
.blessing-node:focus-visible {
  transform: scale(1.12);
  z-index: 3;
  outline: none;
}

.blessing-node-glow {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--row-rgb, 237, 188, 130), .65) 0%, rgba(237, 188, 130, .2) 52%, transparent 72%);
  opacity: 0;
  transition: opacity .16s ease;
  pointer-events: none;
}

.blessing-node.is-keystone .blessing-node-glow {
  opacity: .24;
}

.blessing-node:hover .blessing-node-glow,
.blessing-node.is-active .blessing-node-glow,
.blessing-node:focus-visible .blessing-node-glow {
  opacity: .88;
}

.blessing-node-cog {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #c9a777 0%, #5e4437 52%, #8b664b 100%);
  -webkit-mask-image: var(--cog-mask);
  mask-image: var(--cog-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .82));
  transition: filter .15s ease, background .15s ease;
}

.blessing-node.is-keystone .blessing-node-cog {
  background: linear-gradient(155deg, #f3cfa0 0%, #9b6c3e 52%, #cfa06c 100%);
}

.blessing-node:hover .blessing-node-cog,
.blessing-node.is-active .blessing-node-cog,
.blessing-node:focus-visible .blessing-node-cog {
  background: linear-gradient(155deg, #ffe7c2 0%, #d4964c 52%, #f4c88c 100%);
  filter: drop-shadow(0 0 10px rgba(237, 188, 130, .55));
}

.blessing-node-core {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 85%, #27304d 0%, #131624 58%, #090a10 100%);
  border: 1px solid rgba(0, 0, 0, .88);
  box-shadow: inset 0 1px 3px rgba(255, 224, 185, .14);
}

.blessing-node.is-keystone .blessing-node-core {
  background: radial-gradient(circle at 50% 85%, #372c50 0%, #171426 58%, #0a0912 100%);
  border-color: rgba(237, 188, 130, .38);
}

.blessing-node-icon-wrap {
  position: relative;
  z-index: 1;
  width: 46%;
  height: 46%;
  display: grid;
  place-items: center;
}

.blessing-node-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blessing-node-icon.is-svg {
  filter: brightness(0) invert(92%) sepia(18%) saturate(580%) hue-rotate(334deg) drop-shadow(0 1px 4px rgba(0, 0, 0, .9));
}

.blessing-node:hover .blessing-node-icon.is-svg,
.blessing-node.is-active .blessing-node-icon.is-svg {
  filter: brightness(0) invert(98%) sepia(28%) saturate(900%) hue-rotate(334deg) drop-shadow(0 0 6px rgba(255, 210, 150, .85));
}

.blessing-node-icon.is-tex {
  width: 118%;
  height: 118%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(237, 188, 130, .4);
}

.blessing-node-cost {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #141012;
  border: 1px solid rgba(237, 188, 130, .52);
  color: #f4d6b0;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .85);
}

.blessing-node.is-keystone .blessing-node-cost {
  background: #2f1b18;
  border-color: var(--accent);
  color: #ffe3ba;
}

/* 官方 Panorama 风格悬停提示框 */
.blessing-tooltip {
  position: fixed;
  z-index: 45;
  width: min(350px, calc(100vw - 24px));
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(237, 188, 130, .58);
  background: linear-gradient(160deg, rgba(24, 18, 22, .97) 0%, rgba(13, 11, 14, .98) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 226, 188, .15);
  pointer-events: none;
}

.btip-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.btip-icon-box {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  border: 1px solid rgba(237, 188, 130, .42);
  background: radial-gradient(circle at 50% 80%, #2b3252 0%, #14141f 75%);
  display: grid;
  place-items: center;
  padding: 7px;
}

.btip-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btip-icon.is-svg {
  filter: brightness(0) invert(93%) sepia(24%) saturate(650%) hue-rotate(334deg) drop-shadow(0 1px 4px rgba(0, 0, 0, .85));
}

.btip-icon.is-tex {
  border-radius: 4px;
  object-fit: cover;
}

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

.btip-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btip-name {
  font-size: 16px;
  line-height: 1.25;
  color: var(--cream);
}

.btip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.btip-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #efe1d6;
}

.btip-total {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(79, 56, 51, .65);
  font-size: 12px;
  color: var(--accent);
}

/* ========== 首领档案怪物图片 ========== */
.boss-top {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.boss-top.has-art {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.boss-art-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #6b4b3e;
  background: #120d0e;
  aspect-ratio: 256 / 170;
  align-self: center;
}

.boss-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boss-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

@media(max-width:1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media(max-width:900px) {
  .npc-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:620px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }
  .dash-card {
    padding: 10px 11px;
  }
  .dash-card:first-child {
    grid-column: 1 / -1;
  }
  .dash-metric strong {
    font-size: 23px;
  }
  .npc-compact-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .boss-top.has-art {
    grid-template-columns: 1fr;
  }
  .boss-art-wrap {
    max-width: 240px;
  }
  .blessing-tree-stage {
    padding: 12px 10px 14px;
  }
}
