:root {
  color-scheme:dark;
  --bg:#11161c;
  --panel:#1b222b;
  --line:#343d47;
  --ink:#eef0f3;
  --muted:#a7b1bc;
  --gold:#dfbe83;
  font-family:Inter,"Segoe UI","Noto Sans",Arial,sans-serif;
  font-size:16px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6
}
a {
  color:inherit;
  text-decoration:none
}
a:hover {
  color:var(--gold)
}
button,input,select {
  font:inherit
}
button,select,.button {
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--ink);
  border-radius:6px;
  padding:9px 14px;
  cursor:pointer
}
button:hover,.button:hover {
  border-color:var(--gold)
}
button:disabled {
  opacity:.4;
  cursor:default
}
input {
  width:100%;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--bg);
  color:var(--ink);
  padding:10px 14px
}
input:focus,select:focus,button:focus-visible,a:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:3px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-family:Georgia,"Noto Serif",serif;
  font-size:clamp(1.9rem,3vw,2.7rem);
  font-weight:500;
  line-height:1.2
}
h2 {
  font-size:1.25rem;
  font-weight:600;
  line-height:1.5
}
h3 {
  font-size:1rem;
  font-weight:600
}
small {
  font-size:.875rem;
  color:var(--muted)
}
#sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:232px;
  border-right:1px solid var(--line);
  background:#151b22;
  display:flex;
  flex-direction:column;
  padding:35px 24px;
  z-index:20
}
.brand {
  font-family:Georgia,serif;
  letter-spacing:.08em;
  color:var(--gold);
  font-size:1.75rem;
  line-height:1.2
}
.brand span {
  display:block;
  font:500 .875rem "Segoe UI",sans-serif;
  letter-spacing:.3em;
  color:var(--ink);
  margin-top:8px
}
.game-title {
  font-size:.875rem;
  color:var(--muted);
  margin:20px 0 32px
}
#navigation {
  display:grid;
  gap:5px
}
#navigation a {
  padding:10px 12px;
  border-radius:5px;
  font-size:.95rem
}
#navigation a[aria-current] {
  background:#2a3037;
  color:var(--gold);
  box-shadow:inset 2px 0 var(--gold)
}
.sidebar-foot {
  margin-top:auto;
  padding-top:24px;
  border-top:1px solid var(--line);
  display:grid;
  gap:10px;
  font-size:.875rem;
  color:var(--muted)
}
.shell {
  margin-left:232px
}
header {
  height:84px;
  display:flex;
  gap:24px;
  align-items:center;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  background:#141a21
}
#crumb {
  color:var(--muted);
  font-size:.875rem
}
#search-launch {
  margin-left:auto;
  min-width:130px;
  text-align:left;
  color:var(--muted)
}
.language {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.875rem;
  color:var(--muted)
}
.language select {
  max-width:195px
}
#menu {
  display:none
}
main {
  max-width:1500px;
  margin:auto;
  padding:40px;
  min-height:80vh
}
.page-heading {
  margin-bottom:32px
}
.page-heading p {
  color:var(--muted);
  margin-top:12px;
  max-width:780px
}
.stat-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-block:1px solid var(--line);
  margin-bottom:40px
}
.stat-strip a {
  padding:20px 24px;
  border-right:1px solid var(--line)
}
.stat-strip a:first-child {
  padding-left:0
}
.stat-strip a:last-child {
  border:0
}
.stat-strip strong {
  font:500 1.8rem Georgia,serif;
  display:block
}
.stat-strip span {
  font-size:.875rem;
  color:var(--muted)
}
.section-title {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  margin:30px 0 18px
}
.section-title a {
  font-size:.875rem;
  color:var(--gold)
}
.area-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px
}
.area-card {
  position:relative;
  display:block;
  padding:10px 16px 20px;
  background:linear-gradient(145deg,#242b32,#191f26);
  border:1px solid var(--line);
  border-radius:8px;
  transition:border-color .15s
}
.area-card:hover {
  border-color:var(--gold)
}
.area-card img {
  display:block;
  width:100%;
  height:150px;
  object-fit:contain;
  margin:6px 0 16px
}
.area-card span {
  font-size:.875rem;
  color:var(--gold)
}
.area-card h3 {
  margin-top:5px
}
.battlefield-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap:16px
}
.battlefield-card {
  position:relative;
  display:block;
  min-height:300px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#151b21;
  isolation:isolate;
  transition:transform .18s,border-color .15s
}
.battlefield-card:hover {
  transform:translateY(-3px);
  border-color:var(--gold)
}
.battlefield-art {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s
}
.battlefield-card:hover .battlefield-art {
  transform:scale(1.04)
}
.battlefield-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,12,16,.02) 12%,rgba(8,12,16,.48) 48%,rgba(8,12,16,.98) 100%)
}
.battlefield-content {
  position:absolute;
  right:18px;
  bottom:16px;
  left:18px;
  display:grid;
  gap:9px
}
.battlefield-heading {
  display:flex;
  align-items:center;
  gap:11px;
  color:#f3ead5;
  font-family:Georgia,serif;
  font-size:1.28rem;
  letter-spacing:.02em;
  text-shadow:0 2px 5px #000
}
.battlefield-heading img {
  width:46px;
  height:46px;
  object-fit:contain;
  filter:drop-shadow(0 2px 3px #000)
}
.battlefield-guide {
  color:#c7cbd0;
  font-size:.875rem;
  line-height:1.45;
  text-shadow:0 1px 3px #000
}
.battlefield-cta {
  color:var(--gold);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase
}
.battlefield-index-card {
  min-height:340px
}
.battlefield-detail-hero {
  position:relative;
  min-height:260px;
  margin-bottom:24px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:#11161c
}
.battlefield-detail-hero>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.battlefield-detail-hero>span {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(8,12,16,.97) 0%,rgba(8,12,16,.9) 48%,rgba(8,12,16,.5) 72%,rgba(8,12,16,.12) 100%)
}
.battlefield-detail-hero>div {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:26px;
  width:min(780px,100%);
  min-height:260px;
  padding:30px 34px
}
.battlefield-detail-hero>div img {
  width:72px;
  height:72px;
  flex:0 0 auto;
  object-fit:contain
}
.battlefield-detail-hero p {
  color:#eef0f2;
  font-size:1rem;
  line-height:1.6;
  max-width:58ch;
  text-shadow:0 1px 3px #000
}
.battlefield-detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:30px
}
.battlefield-detail-grid .card {
  margin:0
}
.battlefield-guide-card h3 {
  margin:20px 0 8px;
  color:var(--gold);
  font-size:1rem
}
.battlefield-guide-card h3:first-of-type {
  margin-top:4px
}
.battlefield-guide-card ul,
.battlefield-guide-card ol {
  margin:0 0 12px;
  padding-left:20px;
  color:var(--muted)
}
.battlefield-guide-card li {
  margin:6px 0;
  line-height:1.45
}
.battlefield-guide-card p {
  color:var(--muted);
  line-height:1.55
}
.achievement-row {
  display:grid;
  gap:5px;
  margin:12px 0
}
.achievement-row b,
.achievement-row small {
  display:block
}
.achievement-row small {
  color:var(--muted);
  line-height:1.45
}
.battlefield-league {
  padding:0;
  overflow:hidden
}
.battlefield-league>summary {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  cursor:pointer;
  color:var(--gold)
}
.battlefield-league>summary span {
  color:var(--muted);
  font-size:.875rem
}
.battlefield-league>.table-wrap {
  margin:0 20px 20px
}
.gold-feature {
  border:1px solid var(--line);
  border-radius:8px;
  padding:24px;
  display:flex;
  gap:24px;
  align-items:center;
  background:var(--panel)
}
.gold-feature p {
  margin:8px 0;
  color:var(--muted)
}
.gold-feature a {
  color:var(--gold)
}
.item-image {
  width:64px;
  height:64px;
  object-fit:contain;
  flex-shrink:0
}
.hero-image {
  width:96px;
  height:96px;
  object-fit:contain
}
.toolbar {
  display:flex;
  gap:16px;
  margin-bottom:20px;
  align-items:flex-end;
  flex-wrap:wrap
}
.toolbar label {
  font-size:.875rem;
  color:var(--muted);
  display:grid;
  gap:7px;
  flex:1;
  min-width:140px
}
.toolbar label:first-child {
  flex:2;
  min-width:220px
}
.toolbar select {
  width:100%
}
.results-count {
  font-size:.875rem;
  color:var(--muted);
  margin:18px 0
}
.table-wrap {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:7px
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left
}
th {
  font-size:.875rem;
  font-weight:500;
  color:var(--muted);
  background:#202731;
  padding:14px 18px;
  white-space:nowrap
}
td {
  padding:15px 18px;
  border-top:1px solid var(--line);
  font-size:.95rem
}
td a {
  color:var(--gold)
}
td small {
  display:block;
  margin-top:4px;
  font-size:.8rem
}
tbody tr:hover {
  background:#1b222a
}
.loot-icon {
  display:inline-flex;
  margin-right:6px
}
.loot-icon img {
  width:34px;
  height:34px
}
.loot-icon span {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}
.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  margin:24px 0;
  color:var(--muted)
}
.item-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.item-card {
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:7px;
  min-width:0
}
.item-card h3 {
  overflow-wrap:anywhere
}
.item-card:hover,.hero-card:hover {
  border-color:var(--gold)
}
.hero-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px
}
.hero-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:7px;
  text-align:center;
  padding:24px 16px
}
.hero-card img {
  margin-bottom:14px
}
.hero-card small {
  display:block;
  margin-top:5px
}
.back {
  display:inline-block;
  margin-bottom:24px;
  color:var(--muted);
  font-size:.875rem
}
.stage-layout {
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:32px
}
.stage-panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:24px;
  align-self:start
}
.map-image {
  width:100%;
  height:200px;
  object-fit:contain
}
.stage-panel h2 {
  margin-top:20px
}
.stage-panel p {
  color:var(--gold);
  margin:6px 0 20px
}
.stage-nodes {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px
}
.stage-nodes a {
  border:1px solid var(--line);
  text-align:center;
  padding:9px 0;
  border-radius:4px;
  font-size:.875rem
}
.stage-nodes a[aria-current] {
  background:var(--gold);
  color:#171b20;
  border-color:var(--gold)
}
.stage-summary {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);
  padding-bottom:24px;
  gap:16px
}
.stage-summary strong {
  display:block;
  font-size:1.5rem;
  font-weight:500;
  margin-top:5px
}
.stage-content section {
  margin-top:28px
}
.stage-content h2 {
  margin-bottom:14px
}
.stage-content .item-grid {
  grid-template-columns:repeat(2,1fr)
}
.monster-row {
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.monster-row span {
  color:var(--muted);
  font-size:.875rem
}
.monster-row strong {
  font-weight:500
}
.detail-heading {
  display:flex;
  align-items:center;
  gap:24px;
  margin-bottom:32px
}
.detail-heading .page-heading {
  margin:0
}
.detail-heading img {
  width:112px;
  height:112px
}
.article {
  max-width:850px;
  line-height:1.8
}
.article p {
  margin:0 0 20px;
  color:#c4cbd3
}
.article section {
  margin-bottom:32px
}
.article h2 {
  margin-bottom:12px
}
.native-copy {
  white-space:pre-line
}
.article a {
  color:var(--gold)
}
.section-copy {
  margin:26px 0
}
.button {
  display:inline-block;
  margin:10px 0
}
.guide-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px
}
.guide-card {
  padding:28px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px
}
.guide-card p {
  color:var(--muted);
  margin-top:12px
}
.hash {
  font-size:.8rem;
  overflow-wrap:anywhere;
  display:block;
  min-width:160px
}
.empty {
  padding:48px;
  text-align:center;
  color:var(--muted)
}
footer {
  border-top:1px solid var(--line);
  padding:24px 40px;
  color:var(--muted);
  font-size:.875rem
}
dialog {
  width:min(640px,90vw);
  max-height:80vh;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  color:var(--ink);
  padding:24px
}
dialog::backdrop {
  background:#0009
}
.dialog-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px
}
#search-results a {
  display:block;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
#search-results small {
  display:block
}
.skip {
  position:absolute;
  top:-80px;
  left:250px;
  z-index:50;
  background:var(--gold);
  color:#111;
  padding:12px
}
.skip:focus {
  top:10px
}
@media(min-width:1600px) {
  main {
  padding:48px 56px
}

}
@media(max-width:1150px) {
  #sidebar {
  width:204px;
  padding:30px 18px
}
.shell {
  margin-left:204px
}
main {
  padding:30px
}
header {
  padding:0 30px
}
.area-grid {
  grid-template-columns:repeat(2,1fr)
}
.battlefield-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.item-grid {
  grid-template-columns:repeat(2,1fr)
}
.stage-layout {
  grid-template-columns:260px minmax(0,1fr);
  gap:24px
}
.stage-content .item-grid {
  grid-template-columns:1fr
}
.hero-grid {
  grid-template-columns:repeat(3,1fr)
}

}
@media(max-width:800px) {
  #sidebar {
  transform:translateX(-100%);
  transition:transform .2s
}
#sidebar.open {
  transform:translateX(0);
  top:75px
}
.shell {
  margin:0
}
#menu {
  display:block
}
header {
  height:auto;
  min-height:75px;
  padding:14px 20px;
  gap:12px;
  position:sticky;
  top:0;
  z-index:30
}
#crumb,.language>span {
  display:none
}
#search-launch {
  min-width:0
}
main {
  padding:26px 20px
}
.stage-layout {
  grid-template-columns:1fr
}
.stage-panel {
  display:grid;
  grid-template-columns:130px 1fr;
  gap:0 20px
}
.map-image {
  height:100px;
  grid-row:span 3
}
.stage-panel h2 {
  margin:0
}
.stage-panel p {
  margin:5px 0 10px
}
.stage-nodes {
  grid-column:1/-1;
  margin-top:14px;
  grid-template-columns:repeat(10,1fr)
}
.stage-content .item-grid {
  grid-template-columns:repeat(2,1fr)
}
footer {
  padding:24px 20px
}
.stat-strip strong {
  font-size:1.5rem
}
.stat-strip a {
  padding:16px
}
.hero-grid {
  grid-template-columns:repeat(3,1fr)
}

}
@media(max-width:500px) {
  .language select {
  max-width:125px;
  padding:9px
}
.stat-strip {
  grid-template-columns:repeat(2,1fr)
}
.stat-strip a:nth-child(2) {
  border-right:0
}
.stat-strip a:nth-child(3) {
  padding-left:0;
  border-top:1px solid var(--line)
}
.stat-strip a:nth-child(4) {
  border-top:1px solid var(--line)
}
.area-grid {
  gap:12px
}
.area-card {
  padding:10px 12px 16px
}
.area-card img {
  height:105px
}
.area-card h3 {
  font-size:.95rem
}
.battlefield-grid {
  grid-template-columns:1fr
}
.battlefield-card {
  min-height:280px
}
.battlefield-index-card {
  min-height:310px
}
.battlefield-detail-grid {
  grid-template-columns:1fr
}
.battlefield-detail-hero {
  min-height:280px
}
.battlefield-detail-hero>div {
  width:100%;
  min-height:280px;
  padding:24px
}
.item-grid,.stage-content .item-grid,.guide-grid {
  grid-template-columns:1fr
}
.hero-grid {
  grid-template-columns:repeat(2,1fr)
}
.stage-nodes {
  grid-template-columns:repeat(5,1fr)
}
.monster-row {
  flex-wrap:wrap;
  gap:4px
}
.gold-feature {
  padding:18px;
  gap:16px
}
.detail-heading {
  gap:16px
}
.detail-heading img {
  width:80px;
  height:80px
}
.toolbar label {
  min-width:100%
}
.section-title {
  align-items:start
}
.section-title a {
  max-width:140px;
  text-align:right
}

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

}


/* v2: database pages */
.muted {
  color:var(--muted)
}
.small {
  font-size:.875rem
}
.big {
  font-size:1.1rem;
  max-width:900px;
  margin-bottom:24px
}

.two-col {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  margin-bottom:28px
}
.two-col>section {
  min-width:0
}

section {
  margin-bottom:32px
}
section h2 {
  margin-bottom:12px
}
section h3 {
  margin:16px 0 8px;
  color:var(--gold);
  font-weight:500
}

.card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:20px 22px
}
.card-head {
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:10px
}

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

table.stats th {
  width:46%;
  font-weight:500;
  color:var(--muted);
  background:transparent;
  white-space:normal
}
table.stats td {
  font-variant-numeric:tabular-nums
}

table.compact th,table.compact td {
  padding:9px 12px;
  font-size:.9rem;
  vertical-align:top
}
td small,th small {
  display:block;
  font-size:.75rem;
  color:var(--muted);
  margin-top:2px
}
.drop-summary>b { color:var(--gold); font-variant-numeric:tabular-nums }
.drop-tooltip { display:inline-grid; place-items:center; width:1.15rem; height:1.15rem; margin-left:.25rem; border:1px solid var(--muted); border-radius:50%; color:var(--muted); font-size:.72rem; font-weight:700; line-height:1; cursor:help; vertical-align:text-bottom }
.drop-tooltip:hover,.drop-tooltip:focus-visible { color:var(--gold); border-color:var(--gold); outline:none }

tr.current td {
  background:#262d36
}

.icon,.row-icon,.chip-icon,.ab-icon,.skill-icon,.mon-icon,.item-image,.hero-image,.portrait {
  object-fit:contain;
  vertical-align:middle;
  background:#0d1116;
  border-radius:6px
}
.row-icon {
  width:32px;
  height:32px;
  margin-right:8px
}
.chip-icon {
  width:28px;
  height:28px
}
.ab-icon {
  width:20px;
  height:20px;
  margin-right:6px
}
.portrait {
  width:112px;
  height:112px;
  flex-shrink:0
}
.no-icon {
  display:inline-block;
  width:1em;
  height:1em
}

.ab-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px
}
.ab-list li {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:6px
}
.ab-list li small {
  margin-left:auto;
  font-size:.75rem;
  color:var(--muted)
}

.item-chip,.chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 10px 5px 6px;
  margin:3px 4px 3px 0;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel);
  font-size:.9rem;
  color:var(--ink)
}
.item-chip b {
  color:var(--gold)
}
.chip {
  padding:5px 10px
}

.drop-rows {
  display:flex;
  flex-wrap:wrap;
  gap:4px
}
.drop-row {
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 0
}
.drop-row>span {
  font-size:.9rem;
  color:var(--muted)
}
.drop-group {
  margin-bottom:18px
}
.drop-group h3 {
  margin-top:8px
}

.stage-chips {
  display:flex;
  flex-wrap:wrap;
  gap:4px
}
.tag {
  font-size:.7rem;
  padding:2px 6px;
  border-radius:4px;
  background:var(--gold);
  color:#171b20;
  vertical-align:middle;
  margin-left:4px
}

.grade-1 {
  --g:#d9d9d5
}
.grade-2 {
  --g:#b8e89e
}
.grade-3 {
  --g:#91b8f5
}
.grade-4 {
  --g:#f37b70
}
.grade-5 {
  --g:#ed73ed
}
.grade-6 {
  --g:#e4bf69
}
.grade-7 {
  --g:#75dfc0
}
.grade-8 {
  --g:#e866c5
}
.grade-9 {
  --g:#ec6155
}
.grade-10 {
  --g:#ffffff
}

span.grade {
  color:var(--g,var(--ink));
  font-weight:600
}
.item-chip.grade,.item-card.grade,.hero-card.grade,.skill-card.grade,.card.grade {
  border-left:3px solid var(--g,var(--line))
}

.mon-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px
}
.mon-card {
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
  min-width:0
}
.mon-card h3 {
  font-size:.95rem
}
.mon-icon {
  width:56px;
  height:56px;
  flex-shrink:0
}
.mini-stats {
  display:flex;
  gap:10px;
  font-size:.8rem;
  color:var(--muted);
  margin-top:4px;
  flex-wrap:wrap
}

.skill-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.skill-card {
  display:flex;
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
  min-width:0
}
.skill-card .skill-icon {
  width:48px;
  height:48px;
  flex-shrink:0
}
.skill-card p {
  font-size:.875rem;
  color:#c4cbd3;
  margin-top:6px
}
.skill-card:hover,.mon-card:hover {
  border-color:var(--gold)
}
.skill-block {
  margin-bottom:16px
}

.nav-pair {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 24px;
  font-size:.9rem
}
.nav-pair a {
  color:var(--gold)
}

details {
  margin-top:12px
}
summary {
  cursor:pointer;
  color:var(--gold);
  font-size:.9rem
}
details .table-wrap {
  margin-top:10px
}

.formula-list {
  display:grid;
  gap:10px
}
.formula {
  padding:12px 14px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:6px
}
.formula b {
  display:block;
  color:var(--gold)
}
.formula span {
  display:block;
  font-size:.85rem;
  color:var(--muted)
}
.formula code {
  display:block;
  margin-top:6px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:.85rem;
  color:#c4cbd3
}

.calc {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-bottom:28px
}
.calc-col {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:20px
}
.calc-col label {
  display:grid;
  gap:6px;
  font-size:.875rem;
  color:var(--muted);
  margin-bottom:12px
}
.calc-col label.check {
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:10px
}
.calc-col select,.calc-col input {
  width:100%
}
.calc-col input[type=checkbox] {
  width:auto
}
.calc-col h2 {
  margin-bottom:14px
}
.calc-col h3 {
  margin-top:20px
}

.bonus-row {
  display:grid;
  grid-template-columns:1fr 110px 40px;
  gap:8px;
  margin-bottom:8px
}
.bonus-row button {
  padding:6px
}

.hero-card small {
  display:block;
  margin-top:4px
}
.item-card p {
  margin-top:4px;
  color:var(--muted)
}

code {
  font-size:.85em;
  color:#c4cbd3
}

@media(max-width:1150px) {
  .two-col,.passive-grid,.skill-grid,.calc {
  grid-template-columns:1fr
}

}

@media(max-width:800px) {
  .bonus-row {
  grid-template-columns:1fr 90px 36px
}
.portrait {
  width:80px;
  height:80px
}

}

.donate-header {
  white-space:nowrap
}
@media(max-width:800px) {
  header {
  flex-wrap:wrap
}
.donate-header {
  font-size:.8rem;
  padding:7px 10px
}

}

/* in-game style equipment tooltip card */
.eq-layout { align-items: start }
.eq-card { border: 1px solid var(--line); border-left: 4px solid var(--g,var(--line)); border-radius: 10px; background: var(--panel); overflow: hidden; max-width: 440px }
.eq-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--g,#889) 30%, var(--panel)), var(--panel) 70%) }
.eq-head h1 { font: 600 1.35rem/1.25 Inter,"Segoe UI","Noto Sans",Arial,sans-serif; overflow-wrap: anywhere }
.eq-tier { color: var(--g,var(--gold)); font-weight: 600; margin-top: 6px }
.eq-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px }
.eq-slot-icon, .eq-class-icon { width: auto; height: 22px; background: transparent; border-radius: 0; vertical-align: middle }
.eq-class-icon { height: 18px }
.eq-icon { position: relative; width: 72px; height: 72px; flex-shrink: 0 }
.eq-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 8px }
.eq-icon .eq-item { padding: 6px; background: #0d1116 }
.eq-icon .eq-frame { background: transparent }
.eq-level { padding: 10px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--gold); font-size: .95rem }
.eq-level b { font-size: 1.05rem; margin-left: 4px }
.eq-abs { list-style: none; margin: 0; padding: 14px 20px; display: grid; gap: 10px }
.eq-abs li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem }
.eq-abs li b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums }
.eq-jewels { padding: 12px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px }
.eq-jewel { display: flex; align-items: center; gap: 10px; color: var(--muted) }
.eq-jewel-slot { width: 28px; height: 28px; background: transparent; border-radius: 0 }
.eq-trade { padding: 12px 20px; border-top: 1px solid var(--line); color: #e78b8b; font-weight: 500 }
.eq-trade.ok { color: #8fd47c }

/* competition key art and medals */
.league-card { position: relative; overflow: hidden }
.league-card > * { position: relative }
.league-card > .league-art { position: absolute; top: 0; right: 0; width: 200px; height: 100%; object-fit: cover; object-position: top; border-radius: 0; background: transparent; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%) }
.medal { width: 28px; height: 28px; margin-right: 6px; background: transparent; border-radius: 0; vertical-align: middle }

/* ---- Battlefield detail: boss scaling explorer ---- */
.battlefield-detail-hero>div img.bf-portrait{width:136px;height:136px;object-fit:cover;object-position:top;border-radius:12px;border:2px solid var(--gold);background:#0d1116;box-shadow:0 6px 18px rgba(0,0,0,.6)}
.battlefield-detail-hero .native-copy{margin:0 0 8px;white-space:normal}
.battlefield-detail-hero>div>div{min-width:0}
.bm-label{display:flex;align-items:center;gap:6px}
.bm-icon{width:20px;height:20px;object-fit:contain;background:none;vertical-align:middle}
.bm-stat{min-width:0}
.bm-stat .item-chip{margin-top:4px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.bm-stat .bm-val{overflow-wrap:anywhere}
.bf-panel{padding:18px 20px;margin:12px 0 20px}
.bf-level-control{display:grid;grid-template-columns:auto minmax(0,1fr) 84px;gap:14px;align-items:center;margin-bottom:14px}
.bf-level-control label{color:var(--gold);font-weight:700}
.bf-level-control input[type=range]{width:100%;accent-color:var(--gold);cursor:pointer}
.bf-level-control input[type=number]{padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);font-size:1rem;text-align:center}
.bf-level-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.bf-level-head h3{margin:0;color:var(--gold);font-size:1.15rem}
.bf-level-links{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.bf-note{margin:12px 0 0;line-height:1.5}
.bf-two{display:grid;grid-template-columns:3fr 2fr;gap:20px;align-items:start;margin-top:16px}
.bf-two h4{margin:0 0 6px;color:var(--gold);font-size:.9rem}
.bf-growth{margin:0 0 20px}
.bf-growth h3{margin:0 0 8px}
.bf-chart{margin:0;padding:12px 14px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.bf-chart svg{width:100%;height:auto;display:block}
.bf-chart .grid line{stroke:var(--line);stroke-dasharray:3 4}
.bf-chart text{fill:var(--muted);font-size:11px;font-family:inherit}
.bf-chart figcaption{display:flex;gap:16px;flex-wrap:wrap;align-items:center;font-size:.8rem;color:var(--ink);margin-top:6px}
.bf-chart figcaption i{display:inline-block;width:14px;height:3px;margin-right:6px;vertical-align:middle;border-radius:2px}
.bf-scale td:first-child a{color:var(--gold);font-weight:700}
.bf-reward span{display:inline-flex;align-items:center;gap:4px;margin-right:8px;white-space:nowrap}
.bf-insights{margin:0;padding-left:20px}
.bf-insights li{margin:8px 0;line-height:1.5;color:var(--muted)}
.bf-pass{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.bf-pass-banner{width:100%;max-width:384px;height:auto;border-radius:8px;border:1px solid var(--line)}
.bf-pass>div{flex:1;min-width:min(100%,260px)}
.bf-pass h2{margin-top:0}
@media(max-width:900px){
  .battlefield-detail-grid,.bf-two{grid-template-columns:1fr}
  .battlefield-detail-hero{min-height:0}
  .battlefield-detail-hero>div{width:auto;min-height:0;padding:22px;flex-wrap:wrap}
  .battlefield-detail-hero>div img.bf-portrait{width:96px;height:96px}
  .battlefield-detail-hero p{font-size:.95rem}
  .bf-level-control{grid-template-columns:1fr 84px}
  .bf-level-control label{grid-column:1/-1}
}

/* calculator v2 */
.calc{align-items:start}
.calc-target{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto}
.calc-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.calc-modes{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.calc-mode{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:6px;padding:6px 12px;cursor:pointer;color:inherit}
.calc-mode.active{background:var(--gold);color:#111;font-weight:600}
.calc-chips{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 14px}
.calc-chips .chip{cursor:pointer;background:transparent;font:inherit;font-size:.8rem}
.calc-adv{margin-bottom:12px;font-size:.85rem;color:var(--muted)}
.calc-adv summary{cursor:pointer}
.calc-adv input{margin-top:6px;width:100%}
.calc-links{margin:8px 0 0}
.calc-links a{color:var(--gold)}
.calc-summary{margin-top:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.calc-summary .bm-val{font-size:1.1rem}
.calc-summary .val-pass .bm-val{color:#10b981}
.calc-summary .val-warn .bm-val{color:#ef4444}
.calc-meter{padding:10px 12px;margin:10px 0 0}
.skill-slot{display:grid;grid-template-columns:22px 36px minmax(0,1fr) 84px;gap:10px;align-items:center;padding:8px 10px;margin-bottom:8px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.15)}
.skill-slot:has(.p-del){grid-template-columns:22px 36px minmax(0,1fr) 84px 32px}
.skill-slot:has(.p-remove){grid-template-columns:22px 36px minmax(0,1fr) 70px 28px;align-items:start}
.skill-slot .p-remove{padding:4px;min-width:0}
.skill-slot .p-uptime{width:100%;min-width:0}
@media(max-width:600px){.skill-slot:has(.p-remove){grid-template-columns:22px 36px minmax(0,1fr)}.skill-slot .p-remove{grid-column:1/-1;justify-self:end}}
.skill-slot.slot-empty{border-style:dashed;background:transparent}
.skill-slot .slot-n{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.08);color:var(--muted);font-size:.75rem;font-weight:700;display:grid;place-items:center}
.skill-slot .skill-icon{width:36px;height:36px;border-radius:6px}
.skill-slot .no-icon{border:1px dashed var(--line)}
.skill-slot .slot-body{display:grid;gap:4px;min-width:0}
.skill-slot .slot-body b{font-size:.95rem}
.skill-slot .slot-body small{color:var(--muted);font-size:.78rem;line-height:1.35}
.skill-slot .slot-body small b{color:var(--ink)}
.calc-col .skill-slot select{width:100%;padding:6px 8px}
.calc-col .skill-slot .a-lv,.calc-col .skill-slot .p-lv{width:100%;min-width:0;padding-right:26px!important;background-position:right 8px center;background-size:11px 8px}
.skill-slot .p-del{padding:4px 0}
.calc-tree{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.calc-tree-item{display:grid;grid-template-columns:22px 1fr 64px;align-items:center;gap:8px;margin:0;padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:.8rem}
.calc-tree-item span{min-width:0;display:grid}
.calc-tree-item b,.calc-tree-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calc-tree-item small{color:var(--muted)}
.calc-col .calc-tree-item input{width:100%;padding:4px}
@media(max-width:1150px){.calc-target{position:static;max-height:none}}
@media(max-width:600px){.calc-pair{grid-template-columns:1fr}.skill-slot{grid-template-columns:22px 36px minmax(0,1fr)}.skill-slot .a-lv,.skill-slot .p-lv{grid-column:3}.skill-slot .p-del{grid-column:1/-1;justify-self:end}}

/* callout */
.callout{border-left:4px solid var(--gold);background:rgba(223,190,131,.08);border-radius:6px;padding:10px 14px;margin:12px 0;line-height:1.5}
.callout-warn{border-left-color:#f59e0b;background:rgba(245,158,11,.1)}
.callout.small{font-size:.85rem}

.calc-h3-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.calc-col h3 label.inline{display:flex;align-items:center;gap:8px;margin:0;font-size:.8rem;font-weight:400}
.calc-col h3 label.inline select{width:auto;padding:2px 6px}

.calc-stats{border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin:4px 0 16px;background:rgba(0,0,0,.15)}
.calc-stats summary{cursor:pointer;font-weight:600}
.calc-stats summary small{display:block;font-weight:400;color:var(--muted);margin-top:2px}
.calc-stats summary small b{color:var(--ink)}
.calc-stats>div{margin-top:10px}
.calc-stats h4{margin:12px 0 6px;color:var(--gold);font-size:.9rem}

.gear-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}
.gear-slot{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center;margin:0;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.15)}
.gear-slot>span{display:grid;gap:3px;min-width:0}
.gear-slot small{font-size:.72rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calc-col .gear-slot select{width:100%;padding:4px 6px;font-size:.85rem}
.gear-slot .skill-icon{width:36px;height:36px;border-radius:6px}
.gear-slot .no-icon{border:1px dashed var(--line)}
@media(max-width:600px){.gear-grid{grid-template-columns:1fr}}

.stat-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.stat-row{display:grid;grid-template-columns:minmax(0,1fr) 84px 14px;align-items:center;gap:6px;margin:0;padding:5px 8px;border:1px solid var(--line);border-radius:6px;font-size:.8rem;background:rgba(0,0,0,.15)}
.stat-row.final{border-left:3px solid var(--gold)}
.stat-row>span{display:grid;min-width:0}
.stat-row small{color:var(--muted);font-size:.68rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stat-row i{color:var(--muted);font-style:normal;font-size:.75rem}
.calc-col .stat-row input{width:100%;padding:4px 6px;text-align:right}
@media(max-width:600px){.stat-form{grid-template-columns:1fr}}

.calc-col [hidden],.calc [hidden]{display:none!important}

.calc-target .mon-grid{grid-template-columns:1fr}
.calc-meter small{display:block;text-align:right;margin-top:4px;font-size:.75rem}
