:root {
  --black: #000;
  --nav-bg: #0c0a19;
  --nav-border: #c8902a;
  --page-bg: #0d1418;
  --panel: #161f25;
  --panel-2: #1d2830;
  --line: #2a3843;
  --text: #e6ecef;
  --muted: #93a3ad;
  --cyan: #1fd0f0;
  --gold: #f7b733;
  --link: #5fd6f5;

  --c-warrior: #c69b6d;
  --c-hunter: #aad372;
  --c-mage: #3fc7eb;
  --c-rogue: #fff468;
  --c-priest: #ffffff;
  --c-warlock: #8788ee;
  --c-paladin: #f48cba;
  --c-druid: #ff7c0a;
  --c-shaman: #0070dd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); font-size: 15px; }
.topbar .container { display: flex; align-items: center; justify-content: flex-end; height: 48px; }
.topbar .account { display: flex; gap: 30px; align-items: center; }
.topbar .account a { color: #7fa2c9; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.topbar .account a:hover { color: #fff; text-decoration: none; }

/* ---------- Main nav ---------- */
/* The whole header is sticky, offset by the top bar's height: the top bar
   scrolls away and the main nav stays pinned. */
#site-header { position: sticky; top: -48px; z-index: 50; }
.mainnav {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--nav-border);
  transition: box-shadow .25s;
}
.mainnav .container { display: flex; align-items: center; justify-content: space-between; height: 92px; transition: height .25s; }
.logo {
  font-family: "Lilita One", "Inter", sans-serif;
  font-size: 36px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--cyan); white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  transition: font-size .25s;
}
#site-header.scrolled .mainnav { box-shadow: 0 6px 18px rgba(0,0,0,.45); }
#site-header.scrolled .mainnav .container { height: 64px; }
#site-header.scrolled .logo { font-size: 28px; }
.logo .for { color: #f6ff00; }
.logo:hover { text-decoration: none; }
.mainnav .logo { display: flex; align-items: center; }
.mainnav .logo img { height: 68px; width: auto; display: block; transition: height .25s; }
#site-header.scrolled .mainnav .logo img { height: 54px; }
.menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  color: #f1ece6; font: 500 19px "Inter", sans-serif;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; white-space: nowrap;
}
.menu > li > a:hover, .menu > li > button:hover { color: #fff; text-decoration: none; }
.menu .menu-icon { width: 24px; height: 24px; border-radius: 4px; }
.menu .caret { font-size: 12px; margin-left: 2px; }
.menu .fire { color: #ff7a1a; }
.menu .search-btn { color: var(--gold); font-size: 20px; }
.dropdown {
  display: none; position: absolute; top: 100%; left: -12px; min-width: 240px;
  background: #2b241f; border: 1px solid #5a4a3c; border-top: 3px solid var(--nav-border);
  list-style: none; margin: 0; padding: 8px 0; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.menu > li:hover .dropdown, .menu > li:focus-within .dropdown { display: block; }
.dropdown a { display: flex; gap: 10px; align-items: center; color: #e9e2da; padding: 8px 18px; font-size: 15px; }
.dropdown a:hover { background: #3d332c; color: #fff; text-decoration: none; }
.dropdown img { width: 22px; height: 22px; border-radius: 3px; }
.dropdown .sep { border-top: 1px solid #4a3d32; margin: 6px 0; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Home ---------- */
main.home { position: relative; padding: 36px 0 64px; overflow: hidden; }
.home-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/hero.jpg") center / cover no-repeat; opacity: .13;
}
main.home .container { position: relative; z-index: 1; }
.home-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.panel { background: rgba(16, 25, 30, .82); border: 1px solid #2a3942; border-radius: 14px; padding: 22px 18px; backdrop-filter: blur(3px); }
.panel .section-title { font-size: 24px; }
.panel .list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.panel .card { padding: 8px 12px; }
.panel .card img { width: 36px; height: 36px; }
@media (max-width: 900px) { .home-cols { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block:nth-of-type(even) { background: #10191e; }
.section-title {
  font-family: "Lilita One", sans-serif; font-weight: 400;
  font-size: 30px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 6px;
}
.section-title .accent { color: #f6ff00; }
.section-sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--text); transition: transform .15s, border-color .15s, background .15s;
  position: relative;
}
.card:hover { transform: translateY(-2px); border-color: var(--cc, var(--gold)); background: var(--panel-2); text-decoration: none; }
.card img { width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--cc, #555); flex-shrink: 0; }
.card .name { font-weight: 700; font-size: 17px; color: var(--cc, var(--text)); }
.card .meta { font-size: 13px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 99px; background: #26333c; color: var(--muted);
}
.badge.ready { background: #1b4d2c; color: #8ff0a8; }

/* ---------- Guide page ---------- */
.crumbs { background: #0a1014; border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 0; padding: 8px 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.class-bar { background: #0a1014; border-bottom: 1px solid var(--line); overflow-x: auto; }
.class-bar .container { display: flex; gap: 6px; padding: 10px 0; }
.class-bar a { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; min-width: 76px; }
.class-bar a img { width: 38px; height: 38px; border-radius: 6px; border: 2px solid transparent; opacity: .75; }
.class-bar a:hover, .class-bar a.active { background: #16222a; text-decoration: none; color: var(--cc); }
.class-bar a.active img, .class-bar a:hover img { border-color: var(--cc); opacity: 1; }

.guide-head {
  padding: 40px 0 30px;
  background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--cc) 25%, transparent), transparent 60%), #0b1216;
  border-bottom: 1px solid var(--line);
}
.guide-head .container { display: flex; gap: 22px; align-items: center; }
.guide-head .big-icon { width: 84px; height: 84px; border-radius: 12px; border: 3px solid var(--cc); }
.guide-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.2; }
.guide-head h1 span { color: var(--cc); }
.guide-head .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.guide-head .tags .badge { background: #1d2a32; color: #c9d6dd; }

.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 36px 0 64px; }
.toc { position: sticky; top: 112px; align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.toc h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; font-size: 14px; }
.toc a { color: #cfdbe2; }
.toc a:hover { color: var(--cc); }

.guide-body h2 {
  font-size: 24px; margin: 44px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--cc) 50%, transparent);
  scroll-margin-top: 112px;
}
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 18px; margin: 26px 0 8px; color: var(--gold); }
.guide-body p, .guide-body li { color: #d3dde3; }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body li { margin: 6px 0; }

.spell { color: var(--cc); font-weight: 600; white-space: nowrap; }
.spell img { width: 18px; height: 18px; border-radius: 3px; vertical-align: -3px; margin-right: 4px; border: 1px solid #000; }

.callout { border-left: 4px solid var(--gold); background: #1b1f17; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; }
.callout.info { border-color: var(--cyan); background: #0f1f26; }
.callout strong { color: #fff; }

.talent-summary { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.talent-summary div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; text-align: center; min-width: 120px; }
.talent-summary b { display: block; font-size: 22px; color: var(--cc); }
.talent-summary span { font-size: 13px; color: var(--muted); }

table.talents { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15px; }
table.talents th, table.talents td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.talents th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
table.talents td:first-child { color: var(--gold); font-weight: 700; white-space: nowrap; }
table.talents img { width: 28px; height: 28px; border-radius: 4px; vertical-align: middle; margin-right: 10px; border: 1px solid #000; }
table.talents .pts { font-weight: 700; color: #fff; }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--cc); color: #111; font-weight: 800; display: grid; place-items: center; font-size: 14px; }

pre.macro { background: #05090b; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; color: #ffd27a; overflow-x: auto; font-size: 14px; }

.cards-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 14px 0; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.info-card h4 { margin: 0 0 6px; display: flex; gap: 10px; align-items: center; font-size: 16px; }
.info-card h4 img { width: 32px; height: 32px; border-radius: 6px; border: 1px solid #000; }
.info-card p { margin: 0; font-size: 14px; }
.info-card .tag { font-size: 12px; color: var(--gold); font-weight: 700; }
.info-card.faction-alliance, .info-card.faction-horde { text-align: center; }
.info-card.faction-alliance h4, .info-card.faction-horde h4 { justify-content: center; }
.info-card.faction-alliance h4 { color: #3d8bfd; }
.info-card.faction-horde h4 { color: #e5483c; }

ol.stats { counter-reset: st; list-style: none; padding: 0 !important; }
ol.stats li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
ol.stats li::before { content: counter(st); font-weight: 800; color: var(--cc); font-size: 20px; }

.placeholder { text-align: center; padding: 60px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; }
.placeholder i { font-size: 40px; color: var(--gold); }

.source { font-size: 13px; color: var(--muted); margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: none; z-index: 100; padding: 12vh 16px; }
.search-overlay.open { display: block; }
.search-box { max-width: 620px; margin: 0 auto; background: #1a1612; border: 1px solid #5a4a3c; border-top: 3px solid var(--nav-border); border-radius: 10px; overflow: hidden; }
.search-box input { width: 100%; padding: 18px 20px; font-size: 18px; background: transparent; border: 0; color: #fff; outline: none; border-bottom: 1px solid #3d332c; }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 20px; color: #e9e2da; }
.search-results a:hover, .search-results a.sel { background: #3d332c; text-decoration: none; }
.search-results img { width: 28px; height: 28px; border-radius: 4px; }
.search-results .empty { padding: 16px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
footer { background: #07090b; border-top: 3px solid var(--nav-border); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .logo { font-size: 24px; }
footer .logo img { height: 56px; width: auto; display: block; }
footer .container > div:first-child { max-width: 520px; text-align: justify; }
footer .container > div:last-child { max-width: 420px; text-align: justify; padding-top: 64px; }
footer p { margin: 8px 0 0; line-height: 1.5; }
footer .container > div:last-child p { margin-top: 0; }
@media (max-width: 720px) { footer .container > div:last-child { text-align: left; padding-top: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #2b241f; padding: 8px 16px 16px; border-bottom: 3px solid var(--nav-border); }
  .menu.open { display: flex; }
  .menu > li > a, .menu > li > button { width: 100%; padding: 12px 0; }
  .dropdown { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 6px 12px; }
  .burger { display: block; }
  .mainnav .container { height: 72px; }
  .logo { font-size: 26px; }
  #site-header.scrolled .mainnav .container { height: 58px; }
  #site-header.scrolled .logo { font-size: 22px; }
  .mainnav .logo img { height: 48px; }
  #site-header.scrolled .mainnav .logo img { height: 40px; }
}
@media (max-width: 640px) {
  .topbar .account .label { display: none; }
  .topbar .account { gap: 18px; }
  .guide-head .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Talent calculator ---------- */
.tcalc { --cell: 46px; --gap: 14px; --pad: 14px; background: #0a1014; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 18px 0 24px; }
.tc-title { font-weight: 700; color: var(--gold); margin: 0 0 12px; text-align: center; }
.tc-trees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tc-tree { background: #111a20; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tc-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #151f26; border-bottom: 1px solid var(--line); }
.tc-head img { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #000; }
.tc-name { font-weight: 700; flex: 1; }
.tc-count { font-weight: 800; color: var(--cc, var(--gold)); font-size: 18px; }
.tc-body { flex: 1; background-size: cover; background-position: center; }
.tc-grid {
  position: relative; display: grid; width: max-content; margin: 0 auto;
  grid-template-columns: repeat(4, var(--cell)); grid-template-rows: repeat(7, var(--cell));
  gap: var(--gap); padding: var(--pad);
}
.tc-talent { position: relative; width: var(--cell); height: var(--cell); padding: 0; border: 2px solid #3a464e; border-radius: 8px; background: #000; cursor: default; z-index: 1; }
.tc-talent img { width: 100%; height: 100%; border-radius: 6px; display: block; }
.tc-talent.locked img { filter: grayscale(1) brightness(.55); }
.tc-talent.available { border-color: #3fbf5a; }
.tc-talent.available img { filter: brightness(.9); }
.tc-talent.partial { border-color: #3fbf5a; box-shadow: 0 0 8px rgba(63,191,90,.5); }
.tc-talent.maxed { border-color: var(--gold); box-shadow: 0 0 8px rgba(247,183,51,.55); }
.tc-rank { position: absolute; right: -8px; bottom: -8px; background: #0b0f12; border: 1px solid #3a464e; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 0 4px; color: #c9d3d9; line-height: 16px; }
.tc-talent.partial .tc-rank { color: #6ff08a; border-color: #3fbf5a; }
.tc-talent.maxed .tc-rank { color: var(--gold); border-color: var(--gold); }
.tc-talent.locked .tc-rank { color: #6b777e; }
.tcalc.editable .tc-talent { cursor: pointer; }
.tcalc.editable .tc-talent:hover { transform: scale(1.06); }
.tc-arrow {
  position: absolute; width: 6px; border-radius: 3px; background: linear-gradient(#5a6a74, #8a9aa4); z-index: 0;
  left: calc(var(--pad) + var(--col) * (var(--cell) + var(--gap)) + var(--cell) / 2 - 3px);
  top: calc(var(--pad) + var(--from) * (var(--cell) + var(--gap)) + var(--cell));
  height: calc((var(--to) - var(--from)) * (var(--cell) + var(--gap)) - var(--cell));
}
.tc-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.tc-foot strong { color: var(--text); }
.tc-spent { color: var(--cc, var(--gold)); font-weight: 700; }
.tc-actions { display: flex; gap: 8px; }
.tc-btn { display: inline-flex; align-items: center; gap: 6px; background: #1d2a32; border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: 8px; font: 600 13px "Inter", sans-serif; cursor: pointer; }
.tc-btn:hover { background: #26363f; text-decoration: none; }
.tc-help { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }

#tc-tooltip { position: fixed; z-index: 200; display: none; max-width: 300px; background: rgba(6,10,14,.97); border: 1px solid #5a6a74; border-radius: 8px; padding: 10px 12px; font-size: 13px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
#tc-tooltip .tt-name { font-weight: 700; font-size: 15px; color: #fff; }
#tc-tooltip .tt-rank { color: var(--muted); margin-bottom: 6px; }
#tc-tooltip p { margin: 4px 0; }
#tc-tooltip .tt-req { color: #ff5c5c; }
#tc-tooltip .tt-desc { color: var(--gold); }
#tc-tooltip .tt-next { color: #fff; margin-top: 8px; }

.tc-order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 20px; }
.tc-order-step { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: 64px; text-align: center; }
.tc-order-step img { width: 40px; height: 40px; border-radius: 6px; border: 2px solid var(--gold); }
.tc-order-pts { font-weight: 800; font-size: 13px; color: var(--gold); }
.tc-order-name { font-size: 11px; color: var(--muted); line-height: 1.2; }
.tc-order-sep { color: #5a6a74; font-size: 11px; margin-bottom: 30px; }

.rot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 18px; }
.rot .step { display: inline-flex; flex-direction: column; align-items: center; width: 72px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.2; }
.rot .step img { width: 40px; height: 40px; border-radius: 6px; border: 2px solid #3a464e; margin-bottom: 4px; }
.rot .step .auto { width: 40px; height: 40px; border-radius: 6px; border: 2px dashed #3a464e; display: grid; place-items: center; margin-bottom: 4px; color: var(--muted); font-size: 16px; }
.rot .sep { color: var(--gold); font-size: 12px; margin-bottom: 20px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tabs button { background: #1d2a32; border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 8px 8px 0 0; font: 600 14px "Inter", sans-serif; cursor: pointer; }
.tabs button.active { background: var(--panel); color: var(--cc, var(--gold)); border-bottom-color: var(--panel); }
.tab-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0 8px 8px 8px; padding: 14px 16px; }
.tab-panel[hidden] { display: none; }

@media (max-width: 1100px) {
  .guide-body .tc-trees { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .tc-trees { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .tcalc { --cell: 40px; --gap: 12px; --pad: 10px; padding: 8px; }
}
.guide-layout > * { min-width: 0; }
.tab-panel { overflow-x: auto; }
.tc-order-lvl { font-size: 10px; color: var(--cyan); font-weight: 700; margin-top: 2px; }

/* ---------- Specialization picker ---------- */
.spec-picker { background: #0d161b; border-bottom: 1px solid var(--line); padding: 16px 0; }
.spec-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.spec-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.spec-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 2px solid var(--line); border-radius: 10px; color: var(--text); transition: border-color .15s, background .15s, transform .15s; }
.spec-option:hover { text-decoration: none; border-color: color-mix(in srgb, var(--cc) 60%, var(--line)); transform: translateY(-1px); }
.spec-option.active { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, var(--panel)); }
.spec-option img { width: 44px; height: 44px; border-radius: 8px; border: 2px solid #000; flex-shrink: 0; }
.spec-option b { display: block; font-size: 16px; }
.spec-option small { color: var(--muted); font-size: 12px; }
.spec-option.active small { color: #c9d6dd; }

/* ---------- Dungeons page ---------- */
.dungeon-head .big-icon { object-fit: cover; }
.dg-wrap { padding: 28px 0 64px; --alliance: #3d8bfd; --horde: #e5483c; --both: #c8a24a; }
.dg-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dg-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.dg-filters button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.dg-filters button.alliance { border-color: var(--alliance); }
.dg-filters button.horde { border-color: var(--horde); }
.dg-filters button.neutral { border-color: var(--both); }
.dg-filters button.on { background: #fff; color: #111; }
#dg-search { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 14px; font: inherit; min-width: 240px; }
.dg-legend { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.new { background: var(--gold); color: #1a1205; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; vertical-align: middle; letter-spacing: .04em; }
.dg-band h2 { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 22px; color: var(--gold); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dg { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--both); border-radius: 10px; margin-bottom: 10px; }
.dg.alliance { border-left-color: var(--alliance); }
.dg.horde { border-left-color: var(--horde); }
.dg[hidden], .dg-band[hidden] { display: none; }
.dg summary { display: flex; align-items: center; gap: 16px; padding: 12px 16px; cursor: pointer; list-style: none; }
.dg summary::-webkit-details-marker { display: none; }
.dg summary:hover { background: var(--panel-2); border-radius: 10px; }
.dg-lvl { display: flex; flex-direction: column; align-items: center; min-width: 64px; font-size: 11px; color: var(--muted); text-transform: uppercase; line-height: 1.2; }
.dg-lvl b { font-size: 20px; color: #fff; }
.dg-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dg-name { font-weight: 700; font-size: 18px; }
.dg-where { color: var(--muted); font-size: 14px; }
.dg-where i, .qstart i { font-size: 11px; margin-right: 3px; }
.dg-side { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: rgba(200,162,74,.18); color: var(--both); }
.dg-side.alliance { background: rgba(61,139,253,.18); color: #7db3ff; }
.dg-side.horde { background: rgba(229,72,60,.18); color: #ff8a80; }
.dg-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.dg-count i { margin-left: 6px; transition: transform .2s; }
.dg[open] .dg-count i { transform: rotate(180deg); }
.dg-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.dg-note { color: #c9d6dd; margin: 12px 0; }
.dg-body h4 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #202c34; }
.qlist li:last-child { border-bottom: 0; }
.qside { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--both); opacity: .55; }
.qside.alliance { background: var(--alliance); opacity: 1; }
.qside.horde { background: var(--horde); opacity: 1; }
.qlvl { flex: none; width: 30px; text-align: center; font-weight: 700; color: var(--gold); }
.qmain { display: flex; flex-direction: column; min-width: 0; }
.qstart { color: var(--muted); font-size: 13.5px; }
.qnote { color: #9fb3be; font-size: 13px; font-style: italic; }
.qtag { align-self: flex-start; font-size: 11px; font-weight: 700; background: #2b2f4a; color: #b9b9ff; padding: 1px 7px; border-radius: 4px; margin: 2px 0; }
.no-quests, .dg-empty { color: var(--muted); font-style: italic; }
@media (max-width: 720px) {
  .dg summary { flex-wrap: wrap; gap: 8px 12px; }
  .dg-main { flex-basis: 60%; }
  .dg-count { margin-left: auto; }
}
.qstart a.npc { color: var(--link); font-weight: 600; }
.qstart .coords { color: var(--gold); font-variant-numeric: tabular-nums; }
.qtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.qtitle .qtag { margin: 0; }
.share { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: rgba(120,140,150,.15); color: var(--muted); }
.share.yes { background: rgba(70,200,120,.16); color: #7be0a2; }
.share.pre, .share.pre-drop { background: rgba(240,190,70,.15); color: #f2c75c; }
.share.drop { background: rgba(240,190,70,.15); color: #f2c75c; }
.share.class { background: rgba(160,130,255,.16); color: #bba6ff; }
.share.esc { background: rgba(70,190,230,.15); color: #6fd0ee; }
.share.no, .share.item { background: rgba(229,72,60,.14); color: #ff8a80; }

/* Profession guides */
.table-wrap { overflow-x: auto; margin: 10px 0 18px; }
.table-wrap table.talents { margin: 0; }
table.prof-table td { vertical-align: top; }
table.prof-table td:first-child { white-space: nowrap; }
table.prof-table td b { color: var(--gold); }
table.prof-table .note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
table.prof-table td:first-child b { color: inherit; }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; }
ul.plain li { margin: 4px 0; font-size: 14px; }
pre.code { background: #0c1216; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-size: 13px; }
.way { font: 600 13px "Inter", sans-serif; background: #1d2a32; color: var(--cyan); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.way:hover { border-color: var(--cyan); }
.way.copied { color: #7ddc7d; border-color: #7ddc7d; }
a.wh { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
a.wh:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Class quiz ---------- */
.quiz-head .big-icon { object-fit: cover; background: #0b1216; }
.quiz-wrap { padding: 32px 0 64px; }
.quiz {
  max-width: 820px; margin: 0 auto; padding: 30px 32px 32px; outline: none;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--nav-border); border-radius: 12px;
}
.quiz :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.quiz [tabindex="-1"]:focus { outline: none; }
.qz-lead { color: #d3dde3; margin: 6px 0 0; max-width: 62ch; }
.qz-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.qz-small { color: var(--muted); font-size: 13px; margin: 10px 0 0 !important; }
.qz-classes { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }
.qz-classes img { width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--cc); display: block; }

.qz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.qz-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px;
  background: var(--cc, var(--gold)); border: 1px solid var(--cc, var(--gold)); color: #111;
  font: 700 15px "Inter", sans-serif; cursor: pointer; transition: filter .15s, transform .15s;
}
.qz-btn:hover { filter: brightness(1.12); transform: translateY(-1px); text-decoration: none; }
.qz-btn.ghost { background: #1d2a32; border-color: var(--line); color: var(--text); }
.qz-btn.ghost:hover { background: #26363f; }

.qz-progress { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.qz-progress b { color: var(--gold); }
.qz-theme { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 700; }
.qz-gauge { height: 6px; margin-top: 10px; background: #0a1014; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.qz-gauge span { display: block; height: 100%; background: linear-gradient(90deg, var(--nav-border), var(--gold)); transition: width .25s ease; }
.qz-question { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; margin: 26px 0 18px; }
.qz-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-answer {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left;
  background: #111a20; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: 500 16px "Inter", sans-serif; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.qz-answer:hover { border-color: var(--gold); background: var(--panel-2); transform: translateX(2px); }
.qz-answer[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); }
.qz-key {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px;
  background: #1d2a32; border: 1px solid var(--line); color: var(--gold); font-weight: 800; font-size: 13px;
}
.qz-answer:hover .qz-key, .qz-answer[aria-pressed="true"] .qz-key { background: var(--gold); border-color: var(--gold); color: #111; }
.qz-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.qz-link { background: none; border: 0; padding: 4px 0; color: var(--link); font: inherit; cursor: pointer; }
.qz-link:hover { text-decoration: underline; }
.qz-link[disabled] { visibility: hidden; }

.quiz.is-result { border-top-color: var(--cc); }
.qz-result-head {
  display: flex; align-items: center; gap: 22px; margin: -30px -32px 0; padding: 30px 32px 24px; border-radius: 12px 12px 0 0;
  background: radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--cc) 28%, transparent), transparent 65%);
}
.qz-result-icon { width: 96px; height: 96px; border-radius: 14px; border: 3px solid var(--cc); flex: none; }
.qz-over { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.qz-class { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 46px; line-height: 1.05; margin: 2px 0; color: var(--cc); letter-spacing: .5px; text-transform: uppercase; }
.qz-tagline { margin: 0 0 8px; font-style: italic; color: #d3dde3; }
.qz-match { background: color-mix(in srgb, var(--cc) 22%, #1d2a32); color: #fff; }
.qz-desc { color: #d3dde3; margin: 20px 0 0; }
.qz-h { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin: 30px 0 10px; }
.qz-specs .spec-option { cursor: default; }
.qz-specs .spec-option:hover { transform: none; }
.qz-specs .badge { vertical-align: 2px; margin-left: 4px; }
.quiz .cards-2 { margin-top: 24px; }
.qz-sheet { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; font-size: 14px; }
.qz-sheet dt { color: var(--muted); }
.qz-sheet dd { margin: 0; color: #d3dde3; }
.qz-sheet .qz-alliance { color: #7db3ff; font-weight: 600; }
.qz-sheet .qz-horde { color: #ff8a80; font-weight: 600; }
.qz-forever { list-style: none; padding: 0; margin: 0; }
.qz-forever li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px dashed var(--line); color: #d3dde3; }
.qz-forever li:last-child { border-bottom: 0; }
.qz-forever li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; background: var(--cc); transform: rotate(45deg); }
.qz-bars { list-style: none; padding: 0; margin: 0; }
.qz-bars li { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.qz-bar-name { display: inline-flex; align-items: center; gap: 8px; color: var(--cc); font-weight: 600; }
.qz-bar-name img { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #000; }
.qz-bar { height: 8px; background: #0a1014; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.qz-bar span { display: block; height: 100%; background: var(--cc); }
.qz-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-all { margin-top: 12px; font-size: 14px; }
.qz-all summary { cursor: pointer; color: var(--link); }
.qz-all .qz-bars { margin-top: 8px; }

@media (max-width: 640px) {
  .quiz { padding: 22px 16px 24px; }
  .qz-result-head { margin: -25px -16px 0; padding: 24px 16px 18px; gap: 14px; }
  .qz-result-icon { width: 68px; height: 68px; }
  .qz-class { font-size: 34px; }
  .qz-hint { display: none; }
  .qz-btn { width: 100%; justify-content: center; }
  .qz-bars li { grid-template-columns: 104px 1fr 40px; gap: 8px; }
}
.qtitle a.quest { color: inherit; font-weight: 700; }
.qtitle a.quest:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Language switcher ---------- */
.topbar .lang { position: relative; }
.topbar .lang-btn { background: none; border: 0; font: inherit; font-weight: 600; color: #7fa2c9; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 4px 0; text-transform: lowercase; }
.topbar .lang-btn:hover, .topbar .lang.open .lang-btn { color: #fff; }
.topbar .lang-btn .caret { font-size: 11px; }
.lang-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 150px; list-style: none; margin: 6px 0 0; padding: 6px 0; background: #2d2520; border: 1px solid #4a3d32; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 80; }
.lang.open .lang-menu { display: block; }
.lang-menu button, .lang-menu a { display: block; box-sizing: border-box; text-decoration: none; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 15px; color: #e9e2da; padding: 8px 18px; cursor: pointer; }
.lang-menu button:hover, .lang-menu a:hover { background: #3d332c; color: #fff; }
.lang-menu button.on, .lang-menu a.on { color: var(--gold, #f0b840); font-weight: 700; }
