/* AO Wiki — Style Sheet v2 — includes legacy detail-page classes */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:      #0c0c13;
  --bg2:     #13131c;
  --bg3:     #1a1a26;
  --bg4:     #202030;
  --border:  #272738;
  --border2: #333348;
  --accent:  #d4a84a;
  --accent2: #f0c860;
  --accent-glow: rgba(212,168,74,.18);
  --blue:    #72aad8;
  --green:   #4dab7a;
  --red:     #c05050;
  --purple:  #9b72c8;
  --orange:  #d4874a;
  --text:    #eae6dd;
  --text2:   #b8b5ae;
  --text3:   #8c8aa2;
  --nav-h:   50px;
  --sb:      228px;
  --surface: var(--bg2);
  --gold:    var(--accent);
  --muted:   var(--text3);
  --radius:  5px;
  --font-head: 'Cinzel', Georgia, serif;
  --font-body: 'Exo 2', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(110,70,210,.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 85%, rgba(212,168,74,.05) 0%, transparent 50%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Webkit scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; color: var(--text); }
strong { font-weight: 600; }

/* ── ACCESSIBILITY: foco de teclado visible (WCAG) ────────── */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
::selection { background: var(--accent-glow); color: var(--text); }

/* ── ACCESSIBILITY: respetar prefers-reduced-motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700; line-height: 1.25; color: var(--text);
  letter-spacing: .02em;
}
h1 { font-size: 1.55rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; }

/* ── PAGE LOAD ANIMATION ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── TOPNAV ─────────────────────────────────────────────── */
#topnav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  background: linear-gradient(180deg, rgba(16,14,26,.98) 0%, rgba(12,12,19,.99) 100%);
  border-bottom: 1px solid rgba(212,168,74,.18);
  display: flex; align-items: center;
  box-shadow: 0 1px 28px rgba(0,0,0,.7), 0 0 0 0 transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
  width: var(--sb); flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  height: 100%; text-decoration: none;
  transition: background .15s;
}
.nav-brand:hover { background: rgba(212,168,74,.05); text-decoration: none; }
.nav-brand-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-title {
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 900;
  color: var(--accent2); letter-spacing: .04em;
  text-shadow: 0 0 16px rgba(240,200,96,.3);
}
.nav-brand-sub {
  font-size: .6rem; color: var(--text3);
  display: block; line-height: 1; letter-spacing: .05em;
  text-transform: uppercase;
}

.nav-body {
  flex: 1; display: flex; align-items: center;
  padding: 0 18px; gap: 10px;
}

#gsearch {
  width: 100%; max-width: 460px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 7px 14px;
  color: var(--text); font-size: .82rem; font-family: var(--font-body);
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
#gsearch:focus {
  border-color: rgba(212,168,74,.5);
  background: rgba(212,168,74,.04);
  box-shadow: 0 0 0 2px rgba(212,168,74,.08);
}
#gsearch::placeholder { color: var(--text3); }

.nav-links {
  display: flex; gap: 2px; margin-left: auto; padding-right: 8px;
}
.nav-link {
  font-size: .75rem; color: var(--text3); padding: 4px 10px;
  border-radius: var(--radius); text-decoration: none;
  transition: color .1s, background .1s; font-family: var(--font-body);
}
.nav-link:hover { color: var(--text); background: var(--bg3); text-decoration: none; }

/* search dropdown */
.gsdrop {
  position: fixed;
  background: var(--bg3); border: 1px solid var(--border2);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.7);
  display: none; z-index: 300; overflow: hidden;
}
.gsdrop.on { display: block; }
.gsr {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background .08s;
}
.gsr:last-child { border-bottom: none; }
.gsr:hover, .gsr.hover { background: var(--bg4); text-decoration: none; }
.gsr-type {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 2px 6px; border-radius: 3px;
  flex-shrink: 0; min-width: 52px; text-align: center;
  background: var(--bg2); color: var(--text3);
}
.gsr-type.monster  { background: rgba(192,80,80,.18); color: #d88080; }
.gsr-type.item     { background: rgba(106,163,212,.18); color: #88b8de; }
.gsr-type.zone     { background: rgba(77,171,122,.18); color: #6dc89a; }
.gsr-type.skill    { background: rgba(155,114,200,.18); color: #b890e0; }
.gsr-type.npc      { background: rgba(212,168,74,.18); color: var(--accent); }
.gsr-type.quest    { background: rgba(212,135,74,.18); color: var(--orange); }
.gsr-type.stance   { background: rgba(106,163,212,.14); color: #88b8de; }
.gsr-type.pet      { background: rgba(77,171,122,.14); color: #6dc89a; }
.gsr-name { font-size: .83rem; color: var(--text); }
.gsr-sub  { font-size: .73rem; color: var(--text3); margin-left: auto; }

/* ── LAYOUT ──────────────────────────────────────────────── */
#wrap {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
#sidebar {
  width: var(--sb); flex-shrink: 0;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; overflow-x: hidden;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #111120 0%, var(--bg) 100%);
  scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}

.sb-group { padding-top: 10px; }
.sb-group:first-child { padding-top: 8px; }

.sb-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 14px; font-size: .79rem; color: var(--text2);
  border-left: 2px solid transparent;
  text-decoration: none; transition: color .12s, background .12s, border-color .12s;
  line-height: 1.4;
}
.sb-item:hover {
  color: var(--text); background: rgba(255,255,255,.05);
  border-left-color: rgba(212,168,74,.15);
  text-decoration: none;
}
.sb-item.on {
  color: var(--accent2);
  background: rgba(212,168,74,.08);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sb-n {
  font-size: .65rem; color: var(--text3);
  font-variant-numeric: tabular-nums;
}
.sb-item.on .sb-n { color: rgba(212,168,74,.45); }
.sb-sub {
  padding: 7px 14px 2px;
  font-size: .6rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text3); opacity: .65;
}
.sb-div {
  margin: 5px 14px;
  border: none; border-top: 1px solid var(--border);
}
.sb-item.soon { opacity: .3; pointer-events: none; }

/* ── MAIN ────────────────────────────────────────────────── */
#main {
  flex: 1; min-width: 0;
  padding: 28px 32px 80px;
  max-width: 1320px;
  animation: fadeUp .45s cubic-bezier(.22,.68,0,1.2) both;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 72px; height: 2px;
  background: linear-gradient(90deg, var(--accent2) 0%, var(--accent) 40%, transparent 100%);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(240,200,96,.35);
}
.page-title {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  letter-spacing: .03em;
  text-shadow: 0 0 28px rgba(240,200,96,.1);
}
.page-sub    { font-size: .83rem; color: var(--text2); margin-top: 5px; line-height: 1.55; }
.page-chips  { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip        { font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); letter-spacing: .05em; }
.chip.gold   { background: rgba(212,168,74,.1); border-color: rgba(212,168,74,.25); color: var(--accent); }
.chip.blue   { background: rgba(106,163,212,.1); border-color: rgba(106,163,212,.22); color: var(--blue); }
.chip.green  { background: rgba(77,171,122,.1);  border-color: rgba(77,171,122,.22);  color: var(--green); }
.chip.red    { background: rgba(192,80,80,.1);   border-color: rgba(192,80,80,.22);   color: var(--red); }

/* ── TOOLBAR ─────────────────────────────────────────────── */
.filter-bar, .toolbar {
  display: flex; gap: 7px; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.filter-input, .tb-input, .tb-in {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 6px 12px; color: var(--text);
  font-size: .81rem; font-family: var(--font-body);
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
  min-width: 200px; flex: 1; max-width: 340px;
}
.filter-select, .tb-select, .tb-sel {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 6px 12px; color: var(--text);
  font-size: .81rem; font-family: var(--font-body);
  outline: none; cursor: pointer; min-width: 140px;
}
.filter-input:focus, .filter-select:focus,
.tb-input:focus, .tb-select:focus, .tb-in:focus, .tb-sel:focus {
  border-color: rgba(212,168,74,.5);
  background: rgba(212,168,74,.04);
  box-shadow: 0 0 0 2px rgba(212,168,74,.08);
}
.filter-input::placeholder, .tb-input::placeholder, .tb-in::placeholder { color: var(--text3); }
.result-info, .tb-info, .tinfo { font-size: .74rem; color: var(--text3); margin-top: 8px; line-height: 1.5; }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap, .tbl-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--bg2);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.data-table, table.tbl {
  width: 100%; border-collapse: collapse; font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.data-table th, table.tbl th {
  background: linear-gradient(180deg, var(--bg4) 0%, var(--bg3) 100%);
  color: var(--text2);
  padding: 9px 14px; text-align: left;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 1px solid var(--border2);
  white-space: nowrap; user-select: none;
  font-family: var(--font-body);
  position: sticky; top: 0; z-index: 5;
}
.data-table th.sortable { cursor: pointer; transition: color .1s; }
.data-table th.sortable:hover { color: var(--accent2); }
.data-table th.sort-asc::after  { content: ' ▲'; color: var(--accent); font-size: .55rem; }
.data-table th.sort-desc::after { content: ' ▼'; color: var(--accent); font-size: .55rem; }
.data-table td, table.tbl td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.data-table tbody tr:last-child td,
table.tbl tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even),
table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.022); }
.data-table tbody tr:hover,
table.tbl tbody tr:hover {
  background: rgba(212,168,74,.09);
}
.data-table tbody tr.expandable { cursor: pointer; }
.data-table tbody tr.expanded-row td { padding: 0; border: none; }
.expanded-inner {
  padding: 10px 14px; background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  font-size: .79rem;
}
td.muted, td.id { color: var(--text3); font-size: .76rem; }
td.right, th.right { text-align: right; }

/* ── RARITY / BADGES ─────────────────────────────────────── */
.rar, .badge {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  font-size: .64rem; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap; font-family: var(--font-body);
}
.rar-common,   .badge-common    { background: rgba(150,150,150,.1); color: #aaa; border: 1px solid rgba(150,150,150,.18); }
.rar-excellent,.badge-excellent  { background: rgba(106,163,212,.14); color: #88b8de; border: 1px solid rgba(106,163,212,.24); }
.rar-rare,     .badge-rare       { background: rgba(155,114,200,.15); color: #b890e0; border: 1px solid rgba(155,114,200,.28); }
.rar-legendary,.badge-legendary  { background: rgba(212,168,74,.14); color: var(--accent2); border: 1px solid rgba(212,168,74,.28); }
.rar-unique,   .badge-unique     { background: rgba(192,80,80,.14); color: #d88080; border: 1px solid rgba(192,80,80,.28); }
.badge-gold    { background: rgba(212,168,74,.12); color: var(--accent2); border: 1px solid rgba(212,168,74,.24); }
.badge-outline { background: transparent; color: var(--text3); border: 1px solid var(--border2); }
.badge-drop    { background: rgba(77,171,122,.12); color: var(--green); border: 1px solid rgba(77,171,122,.22); }
.badge-score   { background: rgba(212,168,74,.1); color: var(--accent); border: 1px solid rgba(212,168,74,.2); }
.badge-boss    { background: rgba(192,80,80,.14); color: #d88080; border: 1px solid rgba(192,80,80,.26); }
.badge-type    { background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.type-fire        { background: rgba(212,135,74,.14); color: #e89a60; border: 1px solid rgba(212,135,74,.26); }
.type-ice         { background: rgba(106,163,212,.14); color: #88b8de; border: 1px solid rgba(106,163,212,.24); }
.type-lightning   { background: rgba(212,168,74,.14); color: var(--accent2); border: 1px solid rgba(212,168,74,.26); }
.type-life        { background: rgba(77,171,122,.14); color: #6dc89a; border: 1px solid rgba(77,171,122,.26); }
.type-rotten      { background: rgba(155,114,200,.14); color: #b890e0; border: 1px solid rgba(155,114,200,.26); }
.type-energy      { background: rgba(106,163,212,.1); color: #7ab5d8; border: 1px solid rgba(106,163,212,.2); }
.type-neutral     { background: rgba(150,150,150,.1); color: #aaa; border: 1px solid rgba(150,150,150,.18); }

/* ── DROP RATE ───────────────────────────────────────────── */
.pct, .drop-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.drop-chance    { font-weight: 700; font-variant-numeric: tabular-nums; }
.pct-hi,   .pct-high  { color: #5dd88a; }
.pct-mid,  .pct-mid   { color: var(--accent2); }
.pct-lo,   .pct-low   { color: var(--text3); }
.pct-rare             { color: #9b72c8; }

/* ── DROP BLOCK ──────────────────────────────────────────── */
.drop-block {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.drop-block:hover {
  border-color: rgba(212,168,74,.25);
  box-shadow: 0 0 0 1px rgba(212,168,74,.08);
}
.drop-monster { font-weight: 700; font-size: .86rem; margin-bottom: 8px; }
.drop-monster span { color: var(--text3); font-weight: 400; font-size: .76rem; margin-left: 6px; }
.drop-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; border-bottom: 1px solid var(--border); font-size: .79rem;
}
.drop-row:last-child { border-bottom: none; }

/* ── CARDS ───────────────────────────────────────────────── */
.cards, .recipe-grid, .rgrid, .card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 8px;
}
.card, .recipe-card, .rc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover, .recipe-card:hover, .rc:hover {
  border-color: rgba(212,168,74,.3);
  box-shadow: 0 6px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(212,168,74,.08);
  transform: translateY(-2px);
}
.card-title, .recipe-result, .rc-out {
  font-size: .86rem; font-weight: 700; color: var(--accent); margin-bottom: 6px;
}
.rc-type, .recipe-type { font-size: .68rem; color: var(--text3); font-weight: 400; margin-left: 5px; }
.ing-list, .rc-ing { list-style: none; }
.ing-list li, .rc-ing li {
  font-size: .77rem; color: var(--text2); padding: 3px 0;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between;
}
.ing-list li:last-child, .rc-ing li:last-child { border-bottom: none; }
.ing-qty, .rc-qty { color: var(--text3); }

/* ── WIKI SECTIONS (item/monster detail pages) ───────────── */
.wiki-main { flex: 1; min-width: 0; padding: 28px 32px 80px; max-width: 1320px; }
.wiki-section { margin-top: 22px; }
.wiki-section h2 {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 700; color: var(--accent2);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.wiki-section h2::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 36px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(212,168,74,.5);
}
.breadcrumb {
  font-size: .74rem; color: var(--text3); margin-bottom: 16px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }

/* ── INFOBOX ─────────────────────────────────────────────── */
.infobox {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  min-width: 200px;
}
.infobox-title {
  font-family: var(--font-head);
  background: linear-gradient(135deg, #1e1c2e 0%, #191826 100%);
  border-bottom: 1px solid rgba(212,168,74,.2);
  padding: 10px 14px; font-size: .88rem; font-weight: 700;
  color: var(--accent2); letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(240,200,96,.2);
}
.infobox-table { width: 100%; border-collapse: collapse; }
.infobox-table th {
  background: var(--bg3); color: var(--text3);
  padding: 6px 12px; font-size: .7rem;
  font-weight: 600; text-align: left;
  border-bottom: 1px solid var(--border);
  width: 38%; font-family: var(--font-body);
  letter-spacing: .03em;
}
.infobox-table td {
  padding: 6px 12px; font-size: .8rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.infobox-table tr:last-child th,
.infobox-table tr:last-child td { border-bottom: none; }

/* mob layout (monster & item detail) */
.mob-layout {
  display: flex; gap: 20px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 6px;
}
.mob-image-wrap {
  width: 120px; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; padding: 12px; min-height: 100px;
}
.mob-image-wrap img { max-width: 96px; max-height: 96px; image-rendering: pixelated; }
.item-image-placeholder { font-size: 2.5rem; opacity: .35; }
.mob-stats { flex: 1; min-width: 200px; }

/* page header meta */
.page-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ── STANCE CARDS ───────────────────────────────────────── */
.stance-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden;
}
.stance-header {
  padding: 10px 15px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background .12s;
}
.stance-header:hover { background: var(--bg3); }
.stance-name { font-size: .88rem; font-weight: 700; color: var(--text); flex: 1; }
.stance-desc { font-size: .76rem; color: var(--text2); margin-top: 2px; }
.stance-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.stance-tag  { font-size: .61rem; padding: 1px 5px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.stance-toggle { color: var(--text3); font-size: .65rem; flex-shrink: 0; }
.stance-body { display: none; border-top: 1px solid var(--border); overflow-x: auto; }
.stance-body.open { display: block; }
.stance-body table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.stance-body th {
  background: var(--bg3); color: var(--text3); padding: 5px 10px;
  font-size: .61rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; border-bottom: 1px solid var(--border2);
  white-space: nowrap;
}
.stance-body td { padding: 5px 10px; border-bottom: 1px solid var(--border); color: var(--text2); }
.stance-body tr:last-child td { border-bottom: none; }
.stance-body tr:hover td { background: var(--bg4); }

/* ── SHOP GRID ───────────────────────────────────────────── */
.shop-grid, .sgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 8px;
}
.shop-card, .sc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 15px;
  transition: border-color .15s, transform .15s;
}
.shop-card:hover, .sc:hover {
  border-color: rgba(212,168,74,.25);
  transform: translateY(-1px);
}
.shop-name, .sc-name { font-weight: 700; font-size: .86rem; color: var(--accent); margin-bottom: 8px; }
.shop-items, .sc-list { list-style: none; }
.shop-items li, .sc-list li {
  font-size: .77rem; color: var(--text2); padding: 3px 0;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between;
}
.shop-items li:last-child, .sc-list li:last-child { border-bottom: none; }
.shop-more, .sc-more { font-size: .7rem; color: var(--text3); margin-top: 5px; }

/* ── CLASS CARDS ─────────────────────────────────────────── */
.class-card, .cc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 17px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.class-card:hover, .cc:hover {
  border-color: rgba(212,168,74,.28);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.class-name, .cc-name  { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.class-desc, .cc-desc  { font-size: .79rem; color: var(--text2); line-height: 1.55; margin-bottom: 10px; }
.class-stats, .cc-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.class-stat, .cc-stat  { font-size: .74rem; color: var(--text3); }
.class-stat b, .cc-stat b { color: var(--text2); }

/* ── ZONE CARD ────────────────────────────────────────────── */
.zone-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 15px; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.zone-card:hover {
  border-color: rgba(77,171,122,.25);
  box-shadow: 0 0 0 1px rgba(77,171,122,.06);
}
.zone-name  { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 4px; }
.zone-range { font-size: .75rem; color: var(--accent); font-weight: 600; }
.zone-mobs  { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.zone-mob   {
  font-size: .67rem; padding: 2px 7px; border-radius: 3px;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text2);
}
.zone-mob.aggressive { border-color: rgba(192,80,80,.3); color: #d88080; }
.zone-mob.boss { border-color: rgba(212,168,74,.3); color: var(--accent); }

/* ── HOMEPAGE ────────────────────────────────────────────── */
.home-intro {
  padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
  position: relative;
}
.home-intro h1 {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 900; color: var(--text);
  letter-spacing: .04em; line-height: 1.1;
}
.home-intro h1 em {
  color: var(--accent2); font-style: normal;
  text-shadow: 0 0 24px rgba(240,200,96,.25);
}
.home-intro p { font-size: .84rem; color: var(--text2); margin-top: 9px; max-width: 560px; line-height: 1.7; }

.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  background: var(--border);
  gap: 1px; margin-bottom: 30px;
}
.num-item {
  background: var(--bg2); padding: 16px 18px;
  transition: background .15s;
}
.num-item:hover { background: var(--bg3); }
.num-item .n {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.num-item .l { font-size: .69rem; color: var(--text3); margin-top: 5px; letter-spacing: .04em; text-transform: uppercase; }
.num-item.a .n { color: var(--accent2); text-shadow: 0 0 16px rgba(240,200,96,.2); }
.num-item.b .n { color: var(--blue); }
.num-item.c .n { color: var(--green); }
.num-item.d .n { color: var(--purple); }

.sec-label {
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--text3); margin-bottom: 8px; margin-top: 26px;
  padding-bottom: 5px; border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(172px,1fr)); gap: 1px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--border); overflow: hidden;
}
.cat-item {
  background: var(--bg2); padding: 13px 16px;
  text-decoration: none; display: block;
  transition: background .12s, transform .12s;
}
.cat-item:hover {
  background: rgba(212,168,74,.07);
  text-decoration: none;
}
.cat-item .ci-icon { font-size: 1.15rem; margin-bottom: 6px; }
.cat-item .ci-label { font-size: .84rem; font-weight: 600; color: var(--text); }
.cat-item .ci-cnt   { font-size: .7rem; color: var(--text3); margin-top: 3px; line-height: 1.4; }

/* ── UTIL ────────────────────────────────────────────────── */
.muted  { color: var(--text3); }
.muted2 { color: var(--text2); }
.small  { font-size: .77rem; }
.right  { text-align: right; }
.nowrap { white-space: nowrap; }
.empty  { text-align: center; padding: 52px 20px; color: var(--text3); font-size: .86rem; letter-spacing: .02em; }
.gold   { color: var(--accent); }
.text2  { color: var(--text2); }
.text3  { color: var(--text3); }
.green  { color: var(--green); }
.red    { color: var(--red); }
.blue   { color: var(--blue); }
.tag    { font-size: .66rem; font-weight: 600; padding: 2px 7px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.tag.gold  { background: rgba(212,168,74,.1); border-color: rgba(212,168,74,.24); color: var(--accent); }
.tag.blue  { background: rgba(106,163,212,.1); border-color: rgba(106,163,212,.22); color: var(--blue); }
.tag.green { background: rgba(77,171,122,.1); border-color: rgba(77,171,122,.22); color: var(--green); }
.score-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .66rem; font-weight: 700; background: rgba(212,168,74,.1); color: var(--accent); border: 1px solid rgba(212,168,74,.22); }
.drop-pill   { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: .67rem; font-weight: 600; background: rgba(77,171,122,.11); color: var(--green); border: 1px solid rgba(77,171,122,.22); white-space: nowrap; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; }

/* ── INFO PANEL ──────────────────────────────────────────── */
.detail-panel {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 15px 17px;
}
.detail-panel h3 { font-family: var(--font-head); font-size: .9rem; color: var(--accent); margin-bottom: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 6px; margin-bottom: 10px; }
.stat-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 11px; }
.stat-label { font-size: .6rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-size: .88rem; font-weight: 600; color: var(--text); margin-top: 2px; }

/* ── MONSTER SHEET ───────────────────────────────────────── */
.sheet-info { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; font-size: .79rem; }
.sheet-label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text3);
  border-bottom: 1px solid var(--border2); padding-bottom: 4px;
  margin: 10px 0 5px;
}
.sheet-tbl { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.sheet-tbl .sh-head td {
  background: var(--bg2); color: var(--text3);
  font-size: .63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 3px 8px;
  border: 1px solid var(--border);
}
.sheet-tbl .sh-val td {
  background: var(--bg); color: var(--text);
  padding: 5px 8px; border: 1px solid var(--border);
  font-weight: 600; font-size: .82rem;
}
.sheet-tbl .sh-val td.green { color: var(--green); }
.sheet-tbl .sh-val td.red   { color: var(--red); }
.sheet-tbl .sh-val td.pct-hi  { color: #5dd88a; }
.sheet-tbl .sh-val td.pct-mid { color: var(--accent); }
.sheet-tbl .sh-val td.pct-lo  { color: var(--text3); }
.sheet-spells {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 11px;
  font-size: .75rem; line-height: 1.6; margin-bottom: 4px;
}

/* ── WIKI LAYOUT (detail pages) ──────────────────────────── */
.wiki-layout { display: flex; padding-top: 0; min-height: calc(100vh - var(--nav-h)); }
.wiki-sidebar {
  width: 220px; flex-shrink: 0; padding: 20px 0;
  border-right: 1px solid var(--border);
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
  background: var(--bg);
}
.sidebar-section { margin-bottom: 18px; }
.sidebar-heading {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text3);
  padding: 0 14px 6px; font-family: var(--font-body);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block; padding: 5px 14px; font-size: .79rem; color: var(--text2);
  text-decoration: none; transition: color .1s, background .1s;
}
.sidebar-nav li a:hover { color: var(--text); background: rgba(255,255,255,.04); text-decoration: none; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  #sidebar, .wiki-sidebar { display: none; }
  #main, .wiki-main { padding: 14px 14px 48px; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   LEGACY / DETAIL PAGE CLASSES
   (pages/ — site-header + container + page-layout structure)
   ══════════════════════════════════════════════════════════ */

/* Old nav (bestiary pages) */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; height: 48px;
  background: rgba(14,14,20,.97); border-bottom: 1px solid rgba(212,168,74,.14);
  backdrop-filter: blur(8px);
}
nav .logo {
  font-family: var(--font-head); font-size: .88rem; font-weight: 700;
  color: var(--accent2); text-decoration: none; margin-right: auto;
  letter-spacing: .04em;
}
nav a { color: var(--text3); font-size: .78rem; text-decoration: none; transition: color .1s; }
nav a:hover { color: var(--text); text-decoration: none; }
#search-wrap { position: relative; margin-left: auto; }
#search, .search-input {
  background: rgba(255,255,255,.04); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 5px 12px; width: 220px;
  color: var(--text); font-size: .78rem; font-family: var(--font-body); outline: none;
}
#search:focus { border-color: rgba(212,168,74,.4); }
#search::placeholder { color: var(--text3); }
#results, .search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  background: var(--bg3); border: 1px solid var(--border2); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.6); max-height: 320px; overflow-y: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-bottom: 1px solid var(--border); text-decoration: none;
  transition: background .08s; cursor: pointer;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg4); }
.sri-type { font-size: .6rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px; background: var(--bg2); color: var(--text3); flex-shrink: 0; }
.sri-name { font-size: .8rem; color: var(--text); }
.sri-meta { font-size: .72rem; color: var(--text3); margin-left: auto; }
#search-icon { color: var(--text3); font-size: .8rem; }

/* New site-header (generated detail pages) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,20,.97); border-bottom: 1px solid rgba(212,168,74,.14);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 48px;
}
.site-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; margin-right: auto;
}
.site-logo:hover { text-decoration: none; }
.logo-icon { display: flex; align-items: center; }
.logo-text {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--accent2); letter-spacing: .04em;
}
.logo-badge {
  font-size: .6rem; background: rgba(212,168,74,.15);
  border: 1px solid rgba(212,168,74,.25); color: var(--accent);
  border-radius: 3px; padding: 1px 5px; font-weight: 700;
}
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  font-size: .75rem; color: var(--text3); padding: 4px 10px;
  border-radius: var(--radius); text-decoration: none; transition: color .1s, background .1s;
}
.header-nav a:hover { color: var(--text); background: var(--bg3); }
.header-nav a.active { color: var(--accent); background: rgba(212,168,74,.08); }
.header-search { position: relative; }

/* Container + page-layout (sidebar + content) */
.container {
  max-width: 1380px; margin: 0 auto; padding: 20px 24px 60px;
}
.page-layout {
  display: flex; gap: 22px; align-items: flex-start;
}
.page-layout aside {
  width: 200px; flex-shrink: 0; position: sticky; top: 68px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 0; overflow: hidden;
}
.page-layout aside h3 {
  font-family: var(--font-body); font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text3);
  padding: 0 14px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--border);
}
.page-layout aside ul { list-style: none; padding: 6px 0; }
.page-layout aside ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 14px; font-size: .77rem; color: var(--text2);
  text-decoration: none; transition: color .1s, background .1s;
  border-left: 2px solid transparent;
}
.page-layout aside ul li a:hover {
  color: var(--text); background: rgba(255,255,255,.04);
  border-left-color: var(--c, var(--border2));
}
.page-layout article { flex: 1; min-width: 0; }
.page-layout article h1 {
  font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 12px;
}
.count {
  font-size: .65rem; color: var(--text3); font-variant-numeric: tabular-nums;
  margin-left: 6px; font-weight: 400;
}

/* Wiki content area */
.wiki-content { font-size: .82rem; line-height: 1.7; color: var(--text2); }
.wiki-content h1, .wiki-content h2, .wiki-content h3 { color: var(--text); margin: 16px 0 8px; }
.wiki-content h2 {
  font-family: var(--font-head); font-size: .95rem; color: var(--accent2);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); padding-bottom: 5px;
}
.wiki-content p { margin-bottom: 8px; }
.wiki-content a { color: var(--blue); }
.wiki-content a:hover { color: var(--text); }
.wiki-content strong { color: var(--text); font-weight: 600; }
.wiki-content hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.wiki-content-table {
  width: 100%; border-collapse: collapse; font-size: .79rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.wiki-content-table th {
  background: var(--bg3); color: var(--text3); padding: 6px 12px;
  font-size: .65rem; text-align: left; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid var(--border2);
}
.wiki-content-table td {
  padding: 6px 12px; border-bottom: 1px solid var(--border); color: var(--text);
  vertical-align: middle;
}
.wiki-content-table tr:last-child td { border-bottom: none; }
.wiki-content-table tr:nth-child(even) td { background: rgba(255,255,255,.01); }
.wiki-content-table tr:hover td { background: rgba(212,168,74,.06); }
.wiki-content-table img.image {
  max-width: 120px; max-height: 120px; display: block;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg3);
}
.description { margin-bottom: 14px; }

/* Old wiki utility classes */
.localizer { font-size: .72rem; color: var(--text3); margin-bottom: 10px; }
.localizer a { color: var(--text3); }
.full-size, .back { font-size: .78rem; }
.back { text-align: right; margin-bottom: 6px; }
.back a { color: var(--text3); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.image { max-width: 100%; border-radius: var(--radius); display: block; }
.selected { font-weight: 600; color: var(--accent) !important; }

/* YUI tab widget */
.yui-navset { margin-bottom: 14px; }
.yui-nav {
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none;
  border-bottom: 1px solid var(--border); padding-bottom: 0; margin-bottom: 0;
}
.yui-nav li { margin: 0; }
.yui-nav li a {
  display: inline-block; padding: 5px 14px; font-size: .76rem;
  color: var(--text3); background: var(--bg3); border: 1px solid var(--border2);
  border-bottom: none; border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer; text-decoration: none; transition: color .1s, background .1s;
}
.yui-nav li.selected a,
.yui-nav li a:hover { background: var(--bg4); color: var(--accent); border-color: rgba(212,168,74,.3); }
.yui-content {
  background: var(--bg2); border: 1px solid var(--border2); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius); padding: 12px 14px;
  font-size: .79rem;
}
.monster-list { font-size: .79rem; }

/* Footer */
footer {
  text-align: center; font-size: .7rem; color: var(--text3);
  padding: 24px 0; border-top: 1px solid var(--border); margin-top: 32px;
}

/* ── EXTRA UTILITY (used across many pages) ──────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--radius); cursor: pointer;
  font-size: .78rem; font-family: var(--font-body); border: 1px solid transparent;
  transition: background .12s, border-color .12s; text-decoration: none;
}
.btn-primary {
  background: rgba(212,168,74,.15); border-color: rgba(212,168,74,.3); color: var(--accent2);
}
.btn-primary:hover { background: rgba(212,168,74,.25); text-decoration: none; }
.btn-sm, .btn-small { font-size: .7rem; padding: 4px 10px; }

.info-box, .info-bar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: .8rem;
}
.info-banner {
  background: rgba(106,163,212,.07); border: 1px solid rgba(106,163,212,.2);
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px;
  font-size: .79rem; color: var(--blue);
}
.well {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 15px; margin-bottom: 10px;
}
.note { font-size: .75rem; color: var(--text3); font-style: italic; }
.wiki-note { background: rgba(212,168,74,.07); border-left: 2px solid var(--accent);
  padding: 8px 12px; font-size: .79rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 10px; }

.tab-btn, .slot-btn, .cat-btn, .filter-btn, .tier-tab, .group-btn {
  padding: 5px 12px; border-radius: var(--radius); cursor: pointer;
  font-size: .75rem; font-family: var(--font-body); font-weight: 600;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text3);
  transition: color .1s, background .1s, border-color .1s;
}
.tab-btn:hover, .slot-btn:hover, .cat-btn:hover, .filter-btn:hover, .tier-tab:hover, .group-btn:hover,
.tab-btn.active, .slot-btn.active, .cat-btn.active, .filter-btn.active, .tier-tab.active, .group-btn.active {
  background: rgba(212,168,74,.1); border-color: rgba(212,168,74,.3); color: var(--accent);
}
.slot-tabs, .cat-tabs, .slot-chip, .tier-tabs, .skill-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.section-title, .skill-group-title, .sb-title {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  color: var(--accent2); text-transform: uppercase; letter-spacing: .07em;
  margin: 14px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border);
}
.simple-list { list-style: none; font-size: .8rem; }
.simple-list li { padding: 4px 0; border-bottom: 1px solid var(--border); color: var(--text2); }
.simple-list li:last-child { border-bottom: none; }
.sb-section { margin-bottom: 14px; }
.sb-link { display: block; padding: 4px 0; font-size: .79rem; color: var(--text2); text-decoration: none; }
.sb-link:hover { color: var(--accent); text-decoration: none; }
.sb-count { font-size: .68rem; color: var(--text3); margin-left: 5px; }

/* Hero section */
.hero-banner {
  background: linear-gradient(135deg, rgba(30,25,50,.9) 0%, rgba(18,18,28,.95) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.hero-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; color: var(--text); line-height: 1.1; }
.hero-sub { font-size: .83rem; color: var(--text2); margin-top: 8px; line-height: 1.6; max-width: 540px; }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.hs { display: flex; flex-direction: column; }
.hs-n { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.hs-l { font-size: .65rem; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; }
.hero-icons-deco { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); opacity: .06; font-size: 5rem; user-select: none; }

/* Stat bars / pills */
.stat-bar-wrap { background: var(--bg3); border-radius: 2px; height: 5px; overflow: hidden; margin-top: 4px; }
.stat-bar { height: 100%; border-radius: 2px; background: var(--accent); transition: width .3s; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px; font-size: .67rem; font-weight: 600;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text2);
}
.stat-pills { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.stat-tag { font-size: .67rem; padding: 1px 6px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.stat-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
.stat-table th { background: var(--bg3); color: var(--text3); padding: 5px 10px; font-size: .63rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border2); }
.stat-table td { padding: 5px 10px; border-bottom: 1px solid var(--border); color: var(--text2); }
.stat-table tr:last-child td { border-bottom: none; }
.stat-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .66rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }

/* HP / prize bars */
.hp-bar-wrap, .prize-bar-wrap { background: var(--bg3); border-radius: 2px; height: 6px; overflow: hidden; margin-top: 3px; }
.hp-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--green), #3a8f60); }
.prize-bar { height: 100%; border-radius: 2px; background: var(--accent); }

/* Skill styles */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 8px; }
.sk-body { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.sk-name { font-weight: 700; font-size: .86rem; color: var(--accent); margin-bottom: 4px; }
.sk-desc { font-size: .76rem; color: var(--text2); margin-bottom: 8px; line-height: 1.5; }
.sk-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-lvlup { font-size: .7rem; color: var(--text3); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.sk-icon-ph { width: 36px; height: 36px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.sk-excl { font-size: .67rem; color: var(--red); font-style: italic; }
.skill-list { list-style: none; }
.skill-info { font-size: .78rem; color: var(--text2); line-height: 1.55; }
.skill-group { margin-bottom: 16px; }

/* Card styles */
.card-list, .card-list2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 8px; }
.card-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: .79rem; }
.card-row:last-child { border-bottom: none; }
.card-name { font-weight: 600; color: var(--text); flex: 1; }
.card-lv { font-size: .7rem; color: var(--text3); }
.card-set { font-size: .7rem; color: var(--accent); }
.card-src { font-size: .7rem; color: var(--text3); }
.card-desc { font-size: .75rem; color: var(--text2); margin-top: 4px; }
.cardset-list { list-style: none; }
.set-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.set-header { padding: 10px 14px; display: flex; align-items: center; gap: 8px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.set-name { font-weight: 700; font-size: .88rem; color: var(--accent); flex: 1; }
.set-count { font-size: .7rem; color: var(--text3); }
.set-body { padding: 10px 14px; }
.set-meta { font-size: .73rem; color: var(--text3); margin-top: 6px; }
.exp-card-name { font-weight: 700; color: var(--text); font-size: .84rem; margin-bottom: 4px; }
.exp-card-meta { font-size: .72rem; color: var(--text3); }
.exp-card-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .63rem; font-weight: 700; background: rgba(212,168,74,.1); color: var(--accent); border: 1px solid rgba(212,168,74,.2); margin-right: 4px; }
.exp-card-btn { margin-top: 8px; }
.exp-card-icon { font-size: 1.2rem; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 8px; }
.exp-detail { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.exp-detail-title { font-family: var(--font-head); font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.exp-detail-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.exp-detail-badge { font-size: .65rem; padding: 1px 6px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.exp-detail-desc { font-size: .78rem; color: var(--text2); line-height: 1.55; }
.exp-detail-hero { font-size: 2rem; margin-bottom: 10px; }
.exp-detail-img { max-width: 100%; border-radius: var(--radius); }
.exp-detail-img-ph { width: 80px; height: 80px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; opacity: .4; }
.exp-detail-info { font-size: .77rem; color: var(--text2); }
.exp-detail-nav { display: flex; gap: 8px; margin-top: 10px; }
.exp-detail-nav-label { font-size: .65rem; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; }
.exp-section-title { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin: 14px 0 7px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.exp-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .79rem; }
.exp-row:last-child { border-bottom: none; }
.exp-name { color: var(--text); }
.exp-count-label { color: var(--text3); font-size: .73rem; }
.exp-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.exp-search-bar { margin-bottom: 10px; }
.exp-cell { padding: 5px 10px; border-bottom: 1px solid var(--border); font-size: .79rem; }

/* Fashion / appearance */
.fashion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 8px; }
.fashion-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; transition: border-color .15s; }
.fashion-card:hover { border-color: rgba(212,168,74,.25); }
.fashion-name { font-weight: 700; font-size: .84rem; color: var(--text); margin-bottom: 4px; }
.fashion-slot { font-size: .7rem; color: var(--accent); }
.fashion-color { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.1); vertical-align: middle; margin-right: 4px; }
.fashion-meta { font-size: .7rem; color: var(--text3); margin-top: 5px; }
.fc-icon { font-size: 1.1rem; margin-bottom: 4px; }
.fc-name { font-weight: 600; font-size: .82rem; color: var(--text); }
.fc-slot { font-size: .68rem; color: var(--accent); }
.fc-color { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.1); }
.fc-trade { font-size: .68rem; color: var(--text3); }

/* Quest / zone extras */
.quest-list, .con-list, .pro-list, .order-list { list-style: none; }
.quest-list li, .con-list li, .pro-list li, .order-list li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .79rem; color: var(--text2); }
.quest-list li:last-child, .con-list li:last-child, .pro-list li:last-child, .order-list li:last-child { border-bottom: none; }
.quest-rich { font-size: .79rem; line-height: 1.6; color: var(--text2); }
.sec-req, .sec-rew { margin-bottom: 10px; }
.req-tag { display: inline-block; font-size: .65rem; padding: 1px 6px; border-radius: 3px; background: rgba(106,163,212,.1); border: 1px solid rgba(106,163,212,.2); color: var(--blue); margin: 2px; }
.see-also { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .78rem; }
.related-pages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.related-link { font-size: .75rem; color: var(--blue); padding: 2px 8px; border-radius: 3px; background: rgba(106,163,212,.07); border: 1px solid rgba(106,163,212,.15); text-decoration: none; }
.related-link:hover { background: rgba(106,163,212,.15); text-decoration: none; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 6px; }
.zone-nav { display: flex; justify-content: space-between; margin-top: 16px; font-size: .78rem; }
.zone-nav-next, .zone-nav-prev { color: var(--blue); text-decoration: none; }
.zone-pill { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .67rem; background: rgba(77,171,122,.1); border: 1px solid rgba(77,171,122,.2); color: var(--green); margin: 2px; }
.zone-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.zone-desc { font-size: .8rem; color: var(--text2); margin-bottom: 12px; line-height: 1.6; }
.zone-nav-next:hover, .zone-nav-prev:hover { text-decoration: none; color: var(--text); }
.zone-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 8px; }
.zone-card-header { padding: 10px 13px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.zone-card-name { font-weight: 700; font-size: .86rem; color: var(--text); }
.zone-card-meta { font-size: .7rem; color: var(--text3); margin-top: 2px; }

/* Scroll / NPC ability pages */
.scroll-header { font-weight: 700; font-size: .86rem; color: var(--accent); margin-bottom: 6px; }
.scroll-list { list-style: none; }
.scroll-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .79rem; }
.scroll-row:last-child { border-bottom: none; }
.scroll-name { flex: 1; color: var(--text); }
.scroll-lv { font-size: .7rem; color: var(--text3); }
.scroll-skill { font-size: .7rem; color: var(--blue); }

/* Build / calculator */
.calc-section { margin-bottom: 14px; }
.calc-title { font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--accent2); margin-bottom: 8px; letter-spacing: .04em; }
.calc-row { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.calc-label { font-size: .76rem; color: var(--text3); min-width: 80px; }
.calc-input { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 4px 10px; color: var(--text); font-size: .78rem; font-family: var(--font-body); outline: none; width: 100px; }
.calc-input:focus { border-color: rgba(212,168,74,.4); }
.calc-result { font-size: .82rem; font-weight: 700; color: var(--accent); margin-top: 8px; }
.build-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 15px; margin-bottom: 8px; }
.build-title { font-weight: 700; font-size: .86rem; color: var(--accent); margin-bottom: 8px; }
.formula-box { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 10px 13px; margin-bottom: 8px; font-size: .8rem; }
.formula-label { font-size: .65rem; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.formula-type { font-size: .7rem; color: var(--accent); font-weight: 700; }
.formula-type-title { font-weight: 600; color: var(--text); font-size: .82rem; margin-bottom: 4px; }

/* Pet / mount */
.pet-mount { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.pet1, .pet2, .pet3, .pet4 { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: .67rem; font-weight: 700; }
.pet1 { background: rgba(77,171,122,.12); color: var(--green); border: 1px solid rgba(77,171,122,.22); }
.pet2 { background: rgba(106,163,212,.12); color: var(--blue); border: 1px solid rgba(106,163,212,.22); }
.pet3 { background: rgba(155,114,200,.12); color: var(--purple); border: 1px solid rgba(155,114,200,.22); }
.pet4 { background: rgba(212,168,74,.12); color: var(--accent); border: 1px solid rgba(212,168,74,.22); }

/* Prestige */
.prestige-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 8px; }
.prestige-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.prestige-id { font-size: .65rem; color: var(--text3); margin-bottom: 4px; }
.prestige-effect { font-size: .79rem; color: var(--text); font-weight: 600; }

/* Bonuses */
.bonus-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.bonus-chip { font-size: .67rem; padding: 1px 7px; border-radius: 3px; background: rgba(77,171,122,.1); border: 1px solid rgba(77,171,122,.2); color: var(--green); }
.bonus-tag { font-size: .67rem; padding: 1px 6px; border-radius: 3px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.bonus-n { font-weight: 700; }
.bonuses { margin-top: 8px; }

/* Item list */
.item-list { list-style: none; }
.item-list li, .item-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 13px; margin-bottom: 6px; }
.item-name, .itemname { font-weight: 700; color: var(--text); font-size: .84rem; }
.item-desc { font-size: .75rem; color: var(--text2); margin-top: 3px; }
.item-icon { font-size: 1.1rem; margin-right: 6px; }

/* Collapsible */
.collapsible-block { margin-bottom: 8px; }
.collapsible-block-folded .collapsible-block-content { display: none; }
.collapsible-block-unfolded-link { cursor: pointer; color: var(--blue); font-size: .78rem; }

/* Miscellaneous layout */
.col-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pros-cons { display: flex; gap: 14px; }
.pro-list li { color: var(--green); }
.con-list li { color: var(--red); }
.countdown { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--accent2); }
.countdown-label { font-size: .65rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-align: center; }
.day-num { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.day-items { font-size: .68rem; color: var(--text3); margin-top: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); display: inline-block; }
.dot-active { background: var(--accent); }
.dot-upcoming { background: var(--border2); }
.dots { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 4px; }
.timed-badge { font-size: .65rem; padding: 1px 6px; border-radius: 3px; background: rgba(212,135,74,.12); border: 1px solid rgba(212,135,74,.25); color: var(--orange); }
.plan-basic, .plan-advanced, .plan-expert { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .65rem; font-weight: 700; }
.plan-basic { background: rgba(150,150,150,.1); color: #aaa; border: 1px solid rgba(150,150,150,.2); }
.plan-advanced { background: rgba(106,163,212,.1); color: var(--blue); border: 1px solid rgba(106,163,212,.22); }
.plan-expert { background: rgba(212,168,74,.12); color: var(--accent); border: 1px solid rgba(212,168,74,.25); }

/* Tips */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 8px; }
.tip-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 15px; transition: border-color .15s; }
.tip-card:hover { border-color: rgba(212,168,74,.25); }

/* Scrollable containers */
.scroll { overflow-x: auto; }

/* Tower */
.tower-group { margin-bottom: 14px; }
.tower-group-header { font-family: var(--font-head); font-size: .85rem; color: var(--accent2); margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border); letter-spacing: .04em; }
.tower-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .79rem; }
.tower-row:last-child { border-bottom: none; }
.tower-name { flex: 1; color: var(--text); }
.tower-meta { font-size: .7rem; color: var(--text3); }
.tower-desc { font-size: .75rem; color: var(--text2); }

/* Drop utility */
.drop-chip { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: .67rem; font-weight: 600; background: rgba(77,171,122,.1); border: 1px solid rgba(77,171,122,.2); color: var(--green); }
.drop-item { font-size: .79rem; color: var(--text); }
.mob-drops { margin-top: 10px; }
.mob-empty { font-size: .78rem; color: var(--text3); padding: 8px 0; }
.mob-search { margin-bottom: 10px; }
.mob-hp { font-size: .75rem; color: var(--text3); }
.mob-thumb { width: 40px; height: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.mob-thumb-placeholder { opacity: .4; }
.mob-chip { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .65rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.mob-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
.mob-table th { background: var(--bg3); color: var(--text3); padding: 5px 10px; font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border2); }
.mob-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text2); }
.mob-table tr:last-child td { border-bottom: none; }
.mob-table tr:hover td { background: rgba(212,168,74,.05); }
.mob-name { font-weight: 700; color: var(--text); }
.mob-lvl { font-size: .72rem; color: var(--text3); }

/* Paragraph / description styles */
.section { margin-bottom: 18px; }
.subtitle, .page-subtitle { font-size: .82rem; color: var(--text3); margin-top: 4px; }
.title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.sub { font-size: .75rem; color: var(--text3); }
.description-block { font-size: .8rem; color: var(--text2); line-height: 1.65; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }

/* Filter chip */
.filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 10px; font-size: .72rem; font-weight: 600; cursor: pointer; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); transition: all .1s; }
.filter-chip.active { background: rgba(212,168,74,.1); border-color: rgba(212,168,74,.3); color: var(--accent); }
.filter-check { accent-color: var(--accent); }

/* NPC */
.npc { font-size: .79rem; }

/* Table alignment */
.table { width: 100%; border-collapse: collapse; }
.pieces-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.pieces-table th { background: var(--bg3); color: var(--text3); padding: 5px 10px; font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border2); }
.pieces-table td { padding: 5px 10px; border-bottom: 1px solid var(--border); color: var(--text2); }
.float-right, .floatright { float: right; margin-left: 12px; margin-bottom: 8px; }
.floatleft { float: left; margin-right: 12px; margin-bottom: 8px; }
.aligncenter { text-align: center; }
.alignleft  { text-align: left; }
.size-limit { max-width: 100%; }
.logo-icon-ph { width: 24px; height: 24px; background: var(--bg3); border-radius: 50%; }
.icon-cell { width: 36px; }
.icon-placeholder { width: 28px; height: 28px; background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.image-container { display: flex; align-items: center; justify-content: center; }
.mob-image { max-width: 80px; max-height: 80px; image-rendering: pixelated; }

/* Misc generated classes */
.special-cell { font-weight: 700; color: var(--accent); }
.special-tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .65rem; font-weight: 700; background: rgba(212,168,74,.12); border: 1px solid rgba(212,168,74,.24); color: var(--accent); }
.speed-bar { height: 4px; background: var(--blue); border-radius: 2px; }
.star-gain { color: var(--accent); font-weight: 700; }
.token { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .65rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.target { background: rgba(212,168,74,.06); }
.zero { color: var(--text3); opacity: .5; }
.updated { font-size: .65rem; color: var(--text3); float: right; }
.no-data { text-align: center; padding: 40px; color: var(--text3); font-size: .82rem; }
.last { border-bottom: none !important; }
.on { color: var(--accent); }
.open .stance-toggle::before { content: '▲'; }
.stance-toggle::before { content: '▼'; }
.disabled { opacity: .4; pointer-events: none; }
.current { background: rgba(212,168,74,.08) !important; }
.started { color: var(--green); }
.has-series { border-left: 2px solid var(--accent); }
.auto { color: var(--text3); font-size: .7rem; }
.highlight { background: rgba(240,200,96,.08); }
.smap { position: relative; display: inline-block; }
.smap-hide { display: none; }
.tree { font-family: monospace; font-size: .78rem; color: var(--text3); white-space: pre; }
.statistics { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.mat-chip { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: .67rem; background: rgba(155,114,200,.1); border: 1px solid rgba(155,114,200,.2); color: var(--purple); }
.mat-list { list-style: none; }
.mat-list li { padding: 4px 0; border-bottom: 1px solid var(--border); font-size: .79rem; }
.mat-list li:last-child { border-bottom: none; }
.material { font-size: .78rem; color: var(--text2); }
.food-card, .dial-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.dial-id { font-size: .65rem; color: var(--text3); margin-bottom: 4px; }
.dial-text { font-size: .8rem; color: var(--text); }
.dial-choices { margin-top: 8px; }
.fi { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.fi:last-child { border-bottom: none; }
.fi-label { color: var(--text3); }
.fi-val { color: var(--text); font-weight: 600; }
.grp-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .79rem; }
.grp-row:last-child { border-bottom: none; }
.grp-lv { font-size: .68rem; color: var(--text3); min-width: 40px; }
.grp-series { font-size: .7rem; color: var(--accent); }
.grp-wpn { flex: 1; color: var(--text2); }
.loc { font-size: .72rem; color: var(--text3); }
.qty-badge { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: .65rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.bind-badge { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: .64rem; background: rgba(192,80,80,.1); border: 1px solid rgba(192,80,80,.2); color: var(--red); }
.forum-breadcrumbs, .forum-category-box { font-size: .76rem; color: var(--text3); margin-bottom: 8px; }
.spell-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 13px; margin-bottom: 6px; }
.spell-list { list-style: none; }
.spell-meta { font-size: .7rem; color: var(--text3); margin-top: 4px; }
.spell-types { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.spellname { font-weight: 700; font-size: .82rem; color: var(--text); }
.mob-image-placeholder { width: 60px; height: 60px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; opacity: .35; }
.emo { font-size: 1rem; }
.odate, .timestr { font-size: .7rem; color: var(--text3); }
.new-post, .news { font-size: .75rem; color: var(--accent); font-weight: 600; }
.posts { font-size: .73rem; color: var(--text3); }
.rss-icon { color: var(--orange); }
.printuser, .wiki-email { font-size: .75rem; color: var(--blue); }
.angel-baby-list, .housemonster-list { list-style: none; font-size: .79rem; }
.angel-baby-list li, .housemonster-list li { padding: 4px 0; border-bottom: 1px solid var(--border); color: var(--text2); }
.wing, .armor, .weapon, .helmet, .boots, .gloves, .shield, .accessory, .fashion { font-size: .7rem; color: var(--accent); }
.capoo-tbl, .capoo-detail { font-size: .79rem; }
.agg-yes { color: var(--red); font-weight: 700; }
.agg-no  { color: var(--green); }
.boss { color: var(--accent); font-weight: 700; }
.bosses { font-size: .72rem; color: var(--accent); }
.monsters { font-size: .72rem; color: var(--text3); }
.monster { font-size: .72rem; color: var(--red); }
.monster-header { margin-bottom: 14px; }
.monster-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.monster-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.tag-item, .tag-monster, .tag-zone, .tag-row { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: .65rem; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.tag-monster { background: rgba(192,80,80,.1); border-color: rgba(192,80,80,.2); color: #d88080; }
.tag-item    { background: rgba(106,163,212,.1); border-color: rgba(106,163,212,.2); color: var(--blue); }
.tag-zone    { background: rgba(77,171,122,.1); border-color: rgba(77,171,122,.2); color: var(--green); }
.arc-logo { display: flex; align-items: center; gap: 8px; }
.logo-badge-arc { font-size: .58rem; color: var(--accent); }
.pager { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pager a, .pager-no { padding: 4px 10px; border-radius: var(--radius); font-size: .75rem; text-decoration: none; background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); }
.pager a:hover { background: var(--bg4); color: var(--text); }
.pager a.current { background: rgba(212,168,74,.1); border-color: rgba(212,168,74,.25); color: var(--accent); }
.pager-no { color: var(--text3); cursor: default; }
.nav-next, .nav-prev { font-size: .78rem; color: var(--blue); text-decoration: none; }
.nav-next:hover, .nav-prev:hover { color: var(--text); text-decoration: none; }
.box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.box-header { padding: 8px 12px; background: var(--bg3); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.box-name { font-weight: 700; font-size: .84rem; color: var(--text); }
.box-card { padding: 10px 12px; }
.box-meta { font-size: .7rem; color: var(--text3); margin-top: 4px; }
.box-toggle { cursor: pointer; color: var(--text3); font-size: .7rem; }
.box-dates { font-size: .7rem; color: var(--text3); }
.prize-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .79rem; }
.prize-row:last-child { border-bottom: none; }
.prize-qty { font-size: .7rem; color: var(--text3); }
.prize-pct { font-size: .72rem; font-weight: 700; color: var(--green); }
.prizes-body { padding: 6px 0; }
.number { font-variant-numeric: tabular-nums; }
.con { font-size: .72rem; color: var(--text3); }
.hg { font-weight: 700; }
.hg1 { color: var(--accent2); }
.hg2 { color: var(--blue); }
.hg3 { color: var(--green); }

/* ── RESPONSIVE (legacy pages) ───────────────────────────── */
@media (max-width: 860px) {
  .page-layout { flex-direction: column; }
  .page-layout aside { width: 100%; position: static; }
  .container { padding: 14px 14px 40px; }
  .header-inner { padding: 0 14px; }
  .header-nav { display: none; }
  .day-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   ATMOSPHERE v3 — celestial dark fantasy upgrade
   ══════════════════════════════════════════════════════════ */

@keyframes glowBeat {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212,168,74,.3)); }
  50%       { filter: drop-shadow(0 0 24px rgba(240,200,96,.7)); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

/* ── STAR FIELD ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at  8% 18%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 17% 74%, rgba(255,255,255,.30) 0%, transparent 100%),
    radial-gradient(1px   1px   at 27% 42%, rgba(255,255,255,.20) 0%, transparent 100%),
    radial-gradient(2px   2px   at 35% 87%, rgba(212,168,74,.50)  0%, transparent 100%),
    radial-gradient(1px   1px   at 44%  9%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 54% 55%, rgba(155,114,200,.45) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 28%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 71% 81%, rgba(255,255,255,.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 14%, rgba(212,168,74,.40)  0%, transparent 100%),
    radial-gradient(1px   1px   at 89% 62%, rgba(255,255,255,.30) 0%, transparent 100%),
    radial-gradient(1px   1px   at 94% 37%, rgba(255,255,255,.20) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at  3% 51%, rgba(255,255,255,.40) 0%, transparent 100%),
    radial-gradient(1px   1px   at 22% 94%, rgba(155,114,200,.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 48% 67%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 76% 93%, rgba(255,255,255,.38) 0%, transparent 100%),
    radial-gradient(1px   1px   at 33% 30%, rgba(212,168,74,.28)  0%, transparent 100%),
    radial-gradient(1px   1px   at 60% 78%, rgba(255,255,255,.18) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,.32) 0%, transparent 100%);
}

/* lift content above star field */
#wrap, #topnav, #sidebar, #main, .wiki-main, .container, .site-header, nav, footer {
  position: relative; z-index: 1;
}

/* Enhanced body atmosphere */
body {
  background-image:
    radial-gradient(ellipse 110% 60% at 50% -20%, rgba(90,40,180,.15) 0%, transparent 68%),
    radial-gradient(ellipse 70%  50% at 85%  95%, rgba(212,168,74,.07) 0%, transparent 55%),
    radial-gradient(ellipse 50%  40% at  5%  65%, rgba(40,20,100,.10)  0%, transparent 55%);
}

/* ── HOMEPAGE HERO ───────────────────────────────────────── */
.home-intro {
  padding: 44px 0 34px;
  overflow: hidden;
}

.home-intro h1 {
  font-size: 2.6rem;
  line-height: 1.05;
}

.home-intro h1 em {
  display: inline-block;
  background: linear-gradient(135deg, #f4da68 0%, #d4a84a 45%, #a07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: glowBeat 4s ease-in-out infinite;
}

.home-intro p {
  font-size: .9rem;
  border-left: 2px solid rgba(212,168,74,.28);
  padding-left: 14px;
  color: var(--text2);
  max-width: 520px;
  margin-top: 13px;
  line-height: 1.75;
}

/* Hero wings SVG */
.hero-wings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  width: 720px; max-width: 145%;
  animation: floatUp 8s ease-in-out infinite;
}
.home-intro > *:not(.hero-wings) { position: relative; z-index: 1; }

/* ── SECTION LABELS ──────────────────────────────────────── */
.sec-label::before {
  content: '✦  ';
  color: var(--accent);
  opacity: .6;
  font-size: .55rem;
  letter-spacing: 0;
}

/* ── CAT ITEMS ───────────────────────────────────────────── */
.cat-item {
  transition: background .15s, transform .15s, box-shadow .15s;
}
.cat-item:hover {
  background: rgba(212,168,74,.09);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(212,168,74,.14);
  text-decoration: none;
}
.cat-item .ci-icon { transition: transform .2s; }
.cat-item:hover .ci-icon { transform: scale(1.18); }

/* ── NUM GRID GLOW ───────────────────────────────────────── */
.num-item { transition: background .15s; }
.num-item.a:hover .n { filter: drop-shadow(0 0 8px rgba(240,200,96,.6)); }
.num-item.b:hover .n { filter: drop-shadow(0 0 8px rgba(106,163,212,.6)); }
.num-item.c:hover .n { filter: drop-shadow(0 0 8px rgba(77,171,122,.6)); }
.num-item.d:hover .n { filter: drop-shadow(0 0 8px rgba(155,114,200,.6)); }

/* ── NAV BRAND ───────────────────────────────────────────── */
.nav-brand-title {
  text-shadow: 0 0 20px rgba(240,200,96,.45);
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header::after {
  width: 90px;
  box-shadow: 0 0 14px rgba(240,200,96,.55);
}

/* ── SIDEBAR REDESIGN ────────────────────────────────────── */

/* Group header — gold accent bar */
.sb-head {
  padding: 4px 14px 3px 12px;
  font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(212,168,74,.75);
  background: linear-gradient(90deg, rgba(212,168,74,.07) 0%, transparent 80%);
  border-left: 2px solid rgba(212,168,74,.3);
  margin: 0 0 1px;
}

/* Group spacing — subtle top separator (not on the very first group) */
.sb-group + .sb-group {
  border-top: 1px solid rgba(255,255,255,.04);
  padding-top: 8px;
}

/* Items */
.sb-item {
  padding: 3px 14px 3px 16px;
  font-size: .78rem;
  border-left: 2px solid transparent;
  transition: color .1s, background .1s, border-color .1s;
}
.sb-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-left-color: rgba(212,168,74,.2);
}

/* Active item */
.sb-item.on {
  color: var(--accent2);
  background: rgba(212,168,74,.09);
  border-left-color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(212,168,74,.4);
}

/* Count badge */
.sb-n {
  font-size: .63rem;
  color: var(--text3);
  background: rgba(255,255,255,.04);
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.06);
}

/* Collapsible groups */
.sb-head {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.sb-head:hover { color: var(--accent2); }
.sb-arrow {
  font-size: .6rem;
  color: rgba(212,168,74,.4);
  transition: transform .15s;
  margin-left: 4px;
  flex-shrink: 0;
}
.sb-group.collapsed .sb-arrow { transform: rotate(-90deg); }
.sb-group-body { overflow: hidden; }
.sb-group.collapsed .sb-group-body { display: none; }

/* ── INFOBOX TITLE GLOW ──────────────────────────────────── */
.infobox-title {
  text-shadow: 0 0 16px rgba(240,200,96,.25);
}

/* ── WIKI SECTION H2 GLOW ────────────────────────────────── */
.wiki-section h2 {
  text-shadow: 0 0 16px rgba(240,200,96,.2);
}

/* ── HERO BANNER ENHANCEMENT ─────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, rgba(28,22,48,.95) 0%, rgba(16,14,24,.98) 100%);
  border-color: rgba(212,168,74,.18);
  box-shadow: 0 0 40px rgba(80,40,160,.12);
}

/* ── TWINKLE STARS (gold accent dots) ────────────────────── */
.home-intro::after {
  content: '✦';
  position: absolute;
  right: 12%; top: 20%;
  color: var(--accent2);
  font-size: .75rem;
  opacity: .4;
  animation: twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 860px) {
  .home-intro h1 { font-size: 1.9rem; }
  .hero-wings { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   UPGRADE v4 — scrollbar · particles · tooltips · search · spotlight
   ══════════════════════════════════════════════════════════ */

/* ── GLOBAL SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,168,74,.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,74,.45); }

/* ── GOLD DUST PARTICLES ───────────────────────────────────── */
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
  6%   { opacity: .9; transform: translateY(-6vh) translateX(2px) scale(1); }
  92%  { opacity: .35; }
  100% { transform: translateY(-102vh) translateX(var(--pdx,18px)) scale(.4); opacity: 0; }
}
.ao-particle {
  position: fixed; bottom: -6px;
  width: var(--psz,2.5px); height: var(--psz,2.5px);
  border-radius: 50%;
  background: radial-gradient(circle, #f4da68 0%, #d4a84a 60%, transparent 100%);
  pointer-events: none; z-index: 998;
  animation: particleFloat var(--pdur,26s) linear infinite;
  box-shadow: 0 0 5px rgba(212,168,74,.75);
}

/* ── TOOLTIP ───────────────────────────────────────────────── */
#ao-tip {
  position: fixed; z-index: 9999; pointer-events: none;
  background: linear-gradient(150deg, #1c1c2e 0%, #0e0e14 100%);
  border: 1px solid rgba(212,168,74,.28);
  border-radius: 7px;
  padding: 10px 13px;
  min-width: 175px; max-width: 235px;
  box-shadow: 0 10px 36px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03);
  opacity: 0; transform: translateY(5px);
  transition: opacity .13s, transform .13s;
}
#ao-tip.vis { opacity: 1; transform: translateY(0); }
.tip-cat {
  font-size: .55rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(212,168,74,.6); margin-bottom: 5px;
}
.tip-name {
  font-family: var(--font-head); font-size: .83rem; font-weight: 700;
  color: var(--text); margin-bottom: 7px; line-height: 1.2;
}
.tip-lv {
  display: inline-block; font-size: .58rem; font-weight: 700;
  background: rgba(212,168,74,.12); border: 1px solid rgba(212,168,74,.22);
  color: var(--accent); border-radius: 3px; padding: 1px 5px;
  margin-left: 5px; vertical-align: middle;
}
.tip-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px 8px; font-size: .71rem;
}
.tip-stat { display: flex; justify-content: space-between; gap: 6px; }
.tip-stat-l { color: var(--text3); }
.tip-stat-v { color: var(--text2); font-weight: 600; font-variant-numeric: tabular-nums; }
.tip-zone {
  font-size: .64rem; color: var(--text3); margin-top: 6px;
  padding-top: 5px; border-top: 1px solid rgba(255,255,255,.05);
}

/* ── SEARCH: new type badges + stat + footer ───────────────── */
.gsr-type.recipe      { background: rgba(212,135,74,.14); color: var(--orange); }
.gsr-type.achievement { background: rgba(212,168,74,.14); color: var(--accent2); }
.gsr-type.crown       { background: rgba(212,168,74,.18); color: var(--accent); }
.gsr-type.guide       { background: rgba(77,171,122,.14); color: var(--green); }
.gsr-type.faction     { background: rgba(155,114,200,.14); color: var(--purple); }
.gsr-stat {
  font-size: .64rem; color: var(--text3);
  margin-left: auto; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.gsdrop-footer {
  padding: 6px 14px; font-size: .65rem; color: var(--text3);
  border-top: 1px solid var(--border); background: rgba(0,0,0,.35);
  display: flex; justify-content: space-between; align-items: center;
}
.gsdrop-footer a {
  color: var(--accent); text-decoration: none; font-size: .65rem;
}
.gsdrop-footer a:hover { text-decoration: underline; }

/* ── MONSTER SPOTLIGHT ─────────────────────────────────────── */
.spotlight {
  margin: 24px 0 4px;
  background: linear-gradient(135deg, rgba(212,168,74,.05) 0%, rgba(155,114,200,.03) 100%);
  border: 1px solid rgba(212,168,74,.15);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; gap: 16px; align-items: center;
  position: relative; overflow: hidden;
  transition: border-color .2s;
}
.spotlight:hover { border-color: rgba(212,168,74,.28); }
.spotlight::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 95% 50%, rgba(212,168,74,.06) 0%, transparent 70%);
  pointer-events: none;
}
.spotlight-info { flex: 1; position: relative; z-index: 1; }
.spotlight-badge {
  font-size: .54rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(212,168,74,.55); margin-bottom: 5px;
}
.spotlight-name {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.15; margin-bottom: 2px;
}
.spotlight-type {
  font-size: .65rem; color: var(--text3); margin-bottom: 8px;
}
.spotlight-zone { font-size: .68rem; color: var(--text3); margin-bottom: 8px; }
.spotlight-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.spotlight-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,.28); border-radius: 5px;
  padding: 5px 10px; min-width: 48px;
  border: 1px solid rgba(255,255,255,.04);
}
.spotlight-stat-l { font-size: .55rem; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.spotlight-stat-v { font-size: .84rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.spotlight-actions { display: flex; gap: 7px; align-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.spotlight-link {
  font-size: .7rem; color: var(--accent); text-decoration: none;
  border: 1px solid rgba(212,168,74,.22); border-radius: 5px;
  padding: 5px 11px; transition: all .15s;
}
.spotlight-link:hover { background: rgba(212,168,74,.08); border-color: rgba(212,168,74,.45); text-decoration: none; }
.spotlight-reroll {
  background: transparent; border: 1px solid rgba(255,255,255,.1);
  color: var(--text3); border-radius: 5px; padding: 5px 10px;
  font-size: .75rem; cursor: pointer; transition: all .15s;
  font-family: var(--font-body);
}
.spotlight-reroll:hover { border-color: rgba(212,168,74,.3); color: var(--accent); }

/* ── FULL SEARCH PAGE ──────────────────────────────────────── */
.search-bar-full {
  margin-bottom: 14px;
}
.search-bar-full input {
  width: 100%; max-width: 620px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 10px 16px;
  color: var(--text); font-size: .9rem; font-family: var(--font-body);
  outline: none; transition: border-color .15s, box-shadow .15s;
  margin-bottom: 12px; display: block;
}
.search-bar-full input:focus {
  border-color: rgba(212,168,74,.5);
  box-shadow: 0 0 0 2px rgba(212,168,74,.08);
}
.search-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.scat {
  padding: 4px 12px; border-radius: 20px; font-size: .71rem; font-weight: 600;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text3);
  cursor: pointer; transition: all .1s; font-family: var(--font-body);
}
.scat:hover { background: var(--bg4); color: var(--text); }
.scat.active { background: rgba(212,168,74,.1); border-color: rgba(212,168,74,.3); color: var(--accent); }
.sresult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 7px; margin-bottom: 18px;
}
.sresult {
  display: block;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  text-decoration: none; transition: background .1s, border-color .1s, transform .1s;
}
.sresult:hover {
  background: rgba(212,168,74,.05); border-color: rgba(212,168,74,.22);
  text-decoration: none; transform: translateY(-1px);
}
.sresult-top { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.sresult-lv { font-size: .6rem; color: var(--text3); }
.sresult-name { font-size: .83rem; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 3px; }
.sresult-sub { font-size: .67rem; color: var(--text3); margin-bottom: 4px; }
.sresult-stats { display: flex; gap: 8px; font-size: .64rem; color: var(--text3); }

/* ══════════════════════════════════════════════════════════
   ATMOSPHERE v5 — polish, depth & micro-magic
   ══════════════════════════════════════════════════════════ */

/* Fix: home-intro needs position:relative so hero wings
   and the twinkle star ::after are contained correctly */
.home-intro { position: relative; }

/* Gold text selection */
::selection       { background: rgba(212,168,74,.22); color: var(--text); }
::-moz-selection  { background: rgba(212,168,74,.22); color: var(--text); }

/* ── TOPNAV animated gold sweep line ──────────────────────── */
@keyframes navSweep {
  0%, 100% { opacity: .4; transform: scaleX(.6) translateX(-20%); }
  50%       { opacity: .9; transform: scaleX(1)  translateX(0); }
}
#topnav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(212,168,74,.5) 25%,
    rgba(240,200,96,.9) 50%, rgba(212,168,74,.5) 75%, transparent 100%);
  animation: navSweep 7s ease-in-out infinite;
  pointer-events: none;
}

/* ── PAGE TITLE subtle warmth ──────────────────────────────── */
.page-title {
  text-shadow: 0 1px 20px rgba(240,200,96,.1), 0 0 40px rgba(120,60,200,.06);
}

/* ── NUM GRID — gradient shimmer on the big numbers ─────── */
@keyframes numShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.num-item.a .n {
  background: linear-gradient(90deg, #d4a84a 0%, #fff4b8 35%, #f0c860 55%, #d4a84a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: numShimmer 5s linear infinite;
}
.num-item.b .n {
  background: linear-gradient(90deg, #72aad8 0%, #c0dcf4 35%, #88bce0 55%, #72aad8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: numShimmer 6s linear infinite;
}
.num-item.c .n {
  background: linear-gradient(90deg, #4dab7a 0%, #90ddb0 35%, #62c890 55%, #4dab7a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: numShimmer 7s linear infinite;
}
.num-item.d .n {
  background: linear-gradient(90deg, #9b72c8 0%, #cca8f4 35%, #b088e0 55%, #9b72c8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: numShimmer 8s linear infinite;
}

/* ── CAT-ITEM icon celestial glow ───────────────────────── */
.cat-item:hover .ci-icon {
  filter: drop-shadow(0 0 7px rgba(240,200,96,.55));
}

/* ── TABLE rows — smooth transition ───────────────────────── */
.data-table tbody tr td, table.tbl tbody tr td { transition: background .12s; }

/* ── CAT-GRID staggered entrance ─────────────────────────── */
.cat-grid .cat-item {
  animation: fadeUp .42s cubic-bezier(.22,.68,0,1.2) both;
}
.cat-grid .cat-item:nth-child(1)  { animation-delay: .03s; }
.cat-grid .cat-item:nth-child(2)  { animation-delay: .06s; }
.cat-grid .cat-item:nth-child(3)  { animation-delay: .09s; }
.cat-grid .cat-item:nth-child(4)  { animation-delay: .12s; }
.cat-grid .cat-item:nth-child(5)  { animation-delay: .15s; }
.cat-grid .cat-item:nth-child(6)  { animation-delay: .18s; }
.cat-grid .cat-item:nth-child(7)  { animation-delay: .21s; }
.cat-grid .cat-item:nth-child(8)  { animation-delay: .24s; }
.cat-grid .cat-item:nth-child(9)  { animation-delay: .27s; }
.cat-grid .cat-item:nth-child(10) { animation-delay: .30s; }
.cat-grid .cat-item:nth-child(11) { animation-delay: .33s; }
.cat-grid .cat-item:nth-child(12) { animation-delay: .36s; }

/* ── SPOTLIGHT entrance ──────────────────────────────────── */
@keyframes spotIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.spotlight { animation: spotIn .55s cubic-bezier(.22,.68,0,1.2) both .08s; }

/* ── INFOBOX — accent top edge ───────────────────────────── */
.infobox { border-top: 2px solid rgba(212,168,74,.32); }

/* ── WIKI SECTION H2 — wider glow underline ─────────────── */
.wiki-section h2::after { width: 54px; box-shadow: 0 0 12px rgba(212,168,74,.65); }

/* ── FOOTER celestial ornament ───────────────────────────── */
footer::before {
  content: '✦  ·  ✦  ·  ✦';
  display: block; text-align: center;
  color: rgba(212,168,74,.18); font-size: .6rem;
  letter-spacing: .6em; margin-bottom: 14px;
}

/* ── CARD hover depth glow (all card types) ──────────────── */
.card:hover, .recipe-card:hover, .rc:hover,
.shop-card:hover, .sc:hover,
.class-card:hover, .cc:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 24px rgba(212,168,74,.06), 0 0 0 1px rgba(212,168,74,.1);
}

/* ── INFOBOX title gradient depth ────────────────────────── */
.infobox-title {
  background: linear-gradient(135deg, rgba(30,24,52,1) 0%, rgba(18,15,30,1) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .num-item.a .n, .num-item.b .n, .num-item.c .n, .num-item.d .n { animation: none; }
  #topnav::after { animation: none; }
}

/* ══════════════════════════════════════════════════════════
   UPGRADE v6 — scroll reveals · section accents · particles
   ══════════════════════════════════════════════════════════ */

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22,.68,0,1.2), transform .55s cubic-bezier(.22,.68,0,1.2);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .07s; }
.reveal-delay-2 { transition-delay: .14s; }
.reveal-delay-3 { transition-delay: .21s; }
.reveal-delay-4 { transition-delay: .28s; }

/* ── SECTION COLOR ACCENTS ON CAT-GRID ─────────────────────── */
/* Apply data-sect attribute to cat-grid wrapper in HTML */
[data-sect="combat"]  .cat-item { border-top: 2px solid rgba(192,80,80,.4); }
[data-sect="items"]   .cat-item { border-top: 2px solid rgba(91,155,213,.4); }
[data-sect="craft"]   .cat-item { border-top: 2px solid rgba(77,171,122,.4); }
[data-sect="social"]  .cat-item { border-top: 2px solid rgba(155,114,200,.4); }
[data-sect="cards"]   .cat-item { border-top: 2px solid rgba(212,168,74,.4); }
[data-sect="event"]   .cat-item { border-top: 2px solid rgba(212,135,74,.4); }

[data-sect="combat"]  .cat-item:hover { border-top-color: rgba(192,80,80,.8); }
[data-sect="items"]   .cat-item:hover { border-top-color: rgba(91,155,213,.8); }
[data-sect="craft"]   .cat-item:hover { border-top-color: rgba(77,171,122,.8); }
[data-sect="social"]  .cat-item:hover { border-top-color: rgba(155,114,200,.8); }
[data-sect="cards"]   .cat-item:hover { border-top-color: rgba(212,168,74,.8); }
[data-sect="event"]   .cat-item:hover { border-top-color: rgba(212,135,74,.8); }

/* ── SPARKLE PARTICLES (hero background) ───────────────────── */
@keyframes sparkFloat {
  0%   { opacity: 0; transform: translateY(0) scale(.6); }
  20%  { opacity: .7; }
  80%  { opacity: .4; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

.home-intro .spark {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent2);
  pointer-events: none;
  animation: sparkFloat linear infinite;
  box-shadow: 0 0 4px 1px rgba(240,200,96,.5);
}

/* ── TOPNAV ACTIVE LINK INDICATOR ──────────────────────────── */
.nav-link.active {
  color: var(--accent);
  background: rgba(212,168,74,.08);
}

/* ── PAGE HEADER BOTTOM RULE GLOW ──────────────────────────── */
.page-header {
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  box-shadow: 0 0 12px rgba(212,168,74,.4);
}

/* ── BACK-TO-TOP button ─────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text3); font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, background .15s, color .15s, transform .15s;
  z-index: 180;
}
#back-top.vis { opacity: 1; pointer-events: auto; }
#back-top:hover { background: rgba(212,168,74,.1); color: var(--accent); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   DARK FANTASY v7 — divine light · ornamental depth · cinematic
   ══════════════════════════════════════════════════════════ */

/* ── DIVINE LIGHT SHAFT ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: -5%; left: 50%; transform: translateX(-50%);
  width: 2px; height: 78vh;
  background: linear-gradient(180deg,
    rgba(212,168,74,.28) 0%,
    rgba(200,140,60,.10) 40%,
    transparent 100%);
  filter: blur(22px);
  pointer-events: none; z-index: 0;
}

/* ── SEC-LABEL — ornamental trailing line ──────────────────── */
.sec-label {
  display: flex; align-items: center; gap: 10px;
}
.sec-label::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(212,168,74,.22) 0%, transparent 100%);
}

/* ── SEC-LABEL — widen top spacing for the first in a block ── */
.cat-grid + .sec-label { margin-top: 28px; }

/* ── TABLE HEADERS — deep atmospheric gradient ─────────────── */
.data-table th, table.tbl th {
  background: linear-gradient(180deg, rgba(28,26,45,1) 0%, var(--bg3) 100%);
  letter-spacing: .065em;
}

/* ── TABLE ROWS — gold left accent on hover ─────────────────── */
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover td:first-child,
table.tbl tbody tr:hover td:first-child {
  border-left: 2px solid rgba(212,168,74,.38);
  padding-left: 12px;
}

/* ── FILTER INPUT — cinematic focus glow ──────────────────── */
.filter-input:focus,
.filter-input:focus-visible {
  border-color: rgba(212,168,74,.55);
  box-shadow: 0 0 0 3px rgba(212,168,74,.07),
              0 0 28px rgba(212,168,74,.1);
  outline: none;
}
#gsearch:focus {
  box-shadow: 0 0 0 3px rgba(212,168,74,.07),
              0 0 28px rgba(212,168,74,.1);
}

/* ── PAGE TITLE — breathing glow ──────────────────────────── */
@keyframes titleBreath {
  0%, 100% { text-shadow: 0 0 18px rgba(240,200,96,.10), 0 1px 24px rgba(100,50,200,.06); }
  50%       { text-shadow: 0 0 30px rgba(240,200,96,.22), 0 1px 38px rgba(100,50,200,.12); }
}
.page-title {
  animation: titleBreath 7s ease-in-out infinite;
}

/* ── NUM-GRID — glow frame ─────────────────────────────────── */
.num-grid {
  box-shadow: 0 0 0 1px rgba(212,168,74,.09),
              0 12px 48px rgba(0,0,0,.45),
              inset 0 1px 0 rgba(212,168,74,.08);
}

/* ── SIDEBAR missing sub/div utilities ────────────────────── */
.sb-div {
  height: 1px; margin: 5px 14px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
}
.sb-sub {
  font-size: .56rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; color: rgba(212,168,74,.45);
  padding: 8px 14px 2px; font-family: var(--font-body);
}

/* ── SIDEBAR active item — subtle side glow ────────────────── */
@keyframes sideGlow {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: inset 3px 0 10px rgba(212,168,74,.1); }
}
.sb-item.on { animation: sideGlow 5s ease-in-out infinite; }

/* ── HERO BANNER — vertical light accent ──────────────────── */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner::after {
  content: '';
  position: absolute; top: 0; right: 18%; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%, rgba(212,168,74,.18) 40%,
    rgba(212,168,74,.18) 60%, transparent 100%);
  filter: blur(10px);
  pointer-events: none;
}

/* ── CARDS — subtle inner light on hover ──────────────────── */
.card:hover, .recipe-card:hover, .rc:hover,
.shop-card:hover, .sc:hover,
.class-card:hover, .cc:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.5),
              0 0 24px rgba(212,168,74,.06),
              0 0 0 1px rgba(212,168,74,.12),
              inset 0 1px 0 rgba(212,168,74,.08);
}

/* ── CHIP gold variant — luminous ─────────────────────────── */
.chip.gold {
  background: linear-gradient(135deg,
    rgba(212,168,74,.22) 0%, rgba(240,200,96,.12) 100%);
  border-color: rgba(212,168,74,.45);
  box-shadow: 0 0 12px rgba(212,168,74,.12);
}

/* ── RUNE DIVIDER utility class ────────────────────────────── */
.rune-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0 22px; color: rgba(212,168,74,.35);
  font-size: .55rem; letter-spacing: .5em; text-transform: uppercase;
  font-family: var(--font-head);
}
.rune-divider::before, .rune-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,74,.22), transparent);
}

/* ── SKILL CARDS — element accent top ─────────────────────── */
[data-element="fire"]      .sk-body { border-top: 2px solid rgba(212,135,74,.55); }
[data-element="ice"]       .sk-body { border-top: 2px solid rgba(106,163,212,.55); }
[data-element="lightning"] .sk-body { border-top: 2px solid rgba(212,168,74,.55); }
[data-element="life"]      .sk-body { border-top: 2px solid rgba(77,171,122,.55); }
[data-element="rotten"]    .sk-body { border-top: 2px solid rgba(155,114,200,.55); }

/* ── ZONE CARDS — region color accent ─────────────────────── */
.zone-card {
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.zone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4), 0 0 0 1px rgba(77,171,122,.1);
}

/* ── STANCE CARD — expand animation ──────────────────────── */
.stance-body.open { animation: fadeUp .2s ease both; }

/* ── DATA TABLE — full alternating row depth ──────────────── */
.data-table tbody tr:nth-child(even) td,
table.tbl tbody tr:nth-child(even) td {
  background: rgba(212,168,74,.014);
}

/* ── SEARCH RESULTS — gold left accent on hover ───────────── */
.search-result-item:hover {
  background: var(--bg4);
  border-left: 2px solid rgba(212,168,74,.3);
  padding-left: 10px;
}

/* ── TOPNAV — gold inner shadow ───────────────────────────── */
#topnav {
  box-shadow: 0 1px 28px rgba(0,0,0,.7),
              inset 0 -1px 0 rgba(212,168,74,.06),
              0 0 60px rgba(60,30,120,.12);
}

/* ── MONSTER TITLE — Cinzel glow ──────────────────────────── */
.monster-title, .page-title {
  font-family: var(--font-head);
}

/* ── FILTER BAR submit hint ──────────────────────────────── */
.filter-bar {
  position: relative;
}

/* ── BOSS / LEGENDARY label — pulse ──────────────────────── */
@keyframes bossGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(212,168,74,.4); }
  50%       { text-shadow: 0 0 16px rgba(240,200,96,.8); }
}
.boss, .badge-legendary, .rar-legendary {
  animation: bossGlow 3s ease-in-out infinite;
}

/* ── SPOTLIGHT — deeper atmosphere ────────────────────────── */
.spotlight {
  background: linear-gradient(135deg,
    rgba(24,18,44,.97) 0%,
    rgba(14,12,22,.99) 100%);
  border-color: rgba(212,168,74,.2);
  box-shadow: 0 2px 40px rgba(0,0,0,.5), 0 0 60px rgba(80,40,160,.08);
}

/* ── FOOTER — deeper ornament ─────────────────────────────── */
footer {
  background: linear-gradient(180deg, transparent 0%, rgba(212,168,74,.02) 100%);
}

/* ── SCROLLBAR — thicker gold ─────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212,168,74,.3), rgba(180,130,50,.2));
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(212,168,74,.6), rgba(212,168,74,.4));
}

/* ── PAGE-HEADER — left atmospheric radial ────────────────── */
.page-header {
  background: radial-gradient(ellipse 55% 120% at 0% 50%,
    rgba(212,168,74,.04) 0%, transparent 70%);
}

/* ── NAV BRAND ICON — celestial glow ──────────────────────── */
.nav-brand-icon svg {
  filter: drop-shadow(0 0 5px rgba(212,168,74,.4));
  transition: filter .25s;
}
.nav-brand:hover .nav-brand-icon svg {
  filter: drop-shadow(0 0 10px rgba(240,200,96,.7));
}

/* ── CHIP glow variants ────────────────────────────────────── */
.chip.gold {
  text-shadow: 0 0 8px rgba(212,168,74,.4);
}

/* ── SEARCH DROPDOWN — top accent ─────────────────────────── */
.gsdrop {
  border-top: 1px solid rgba(212,168,74,.2);
}

/* ── TABLE WRAP — gold inner top edge ─────────────────────── */
.table-wrap, .tbl-wrap {
  border-top-color: rgba(212,168,74,.15);
}

/* ── MONSTER/ITEM NAME on rows — subtle glow on hover ─────── */
.data-table tbody tr:hover .mob-name,
.data-table tbody tr:hover td:first-child strong {
  color: var(--accent2);
  text-shadow: 0 0 12px rgba(240,200,96,.25);
}

@media (prefers-reduced-motion: reduce) {
  .page-title { animation: none; }
  .boss, .badge-legendary, .rar-legendary { animation: none; }
  .sb-item.on { animation: none; }
  body::after { display: none; }
}

/* ── UI/UX PRO MAX — AO WIKI UPGRADE ── */
:root {
  --card:           rgba(255,255,255,.03);
  --card-border:    rgba(255,255,255,.07);
  --text-secondary: var(--text2);
  --input-bg:       var(--bg3);
  --tag-bg:         rgba(212,168,74,.12);
  --tag-border:     rgba(212,168,74,.25);
}
.glass-card { background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--card-border); border-radius: 10px; }
.callout-wiki { border-left: 3px solid var(--accent); background: linear-gradient(135deg, rgba(212,168,74,.06), transparent); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.callout-wiki p { color: var(--text2); margin: 0; font-size: .9rem; line-height: 1.7; }
.wiki-tag { display: inline-flex; align-items: center; background: var(--tag-bg); border: 1px solid var(--tag-border); color: var(--accent2); border-radius: 4px; padding: 2px 8px; font-size: .72rem; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.stat-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.stat-bar-label { font-size: .75rem; color: var(--text2); width: 80px; flex-shrink: 0; }
.stat-bar-track { flex: 1; height: 5px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.stat-bar-val { font-size: .75rem; font-weight: 700; color: var(--text); width: 36px; text-align: right; }
