/* Roam website, look B (chosen by Kris, 2026-11-16): modern, professional, sleek. Near-black in dark mode, light
   mode for computers set to light. Inter type, hairline borders, the talent icons doing the color. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --text: #09090b;
  --muted: #4b4b55;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --gold: #b7860b;
  --green: #16a34a;
  --red: #dc2626;
  --tree: #ffffff;
  --head: rgba(250, 250, 250, 0.8);
  --shadow: rgba(9, 9, 11, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --surface: #18181b; --surface2: #212125; --line: #2c2c31; --line-strong: #3a3a40;
    --text: #f4f4f5; --muted: #b4b4bd; --accent: #5b8cff; --accent-text: #050506; --gold: #e3b341;
    --green: #34d27a; --red: #f26b62; --tree: #141416; --head: rgba(17, 17, 19, 0.78); --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --surface: #18181b; --surface2: #212125; --line: #2c2c31; --line-strong: #3a3a40;
  --text: #f4f4f5; --muted: #b4b4bd; --accent: #5b8cff; --accent-text: #050506; --gold: #e3b341;
  --green: #34d27a; --red: #f26b62; --tree: #141416; --head: rgba(17, 17, 19, 0.78); --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15.5px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 1.4rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 600; }

.sample-bar { background: var(--surface2); color: var(--muted); text-align: center; font-size: 0.85rem; padding: 6px 16px;
  border-bottom: 1px solid var(--line); }

.site-head {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 24px; background: var(--head); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-size: 1.25rem; font-weight: 750; }
nav { display: flex; flex-wrap: wrap; gap: 2px; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-weight: 550; }
nav a:hover { background: var(--surface2); color: var(--text); }
nav a.here { background: var(--surface2); color: var(--text); }
nav small { font-size: 0.7rem; color: var(--muted); font-weight: 400; }

main { max-width: 1080px; margin: 0 auto; padding: 32px 16px 48px; }
main.wide { max-width: 1320px; }
section { margin: 0 0 44px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  box-shadow: 0 1px 2px var(--shadow); }
.card { transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.hero { display: flex; align-items: center; gap: 32px; padding: 36px;
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), var(--surface); }
.hero-logo { width: 120px; height: 120px; border-radius: 22px; flex: none; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 18px; max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn { display: inline-block; cursor: pointer; text-decoration: none; text-align: center; font: 600 0.92rem system-ui, sans-serif;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.disabled { color: var(--muted); cursor: default; background: var(--surface2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card img { width: 56px; height: 56px; border-radius: 12px; }
.card p { flex: 1; margin: 0; color: var(--muted); }

.note { color: var(--muted); margin-top: 0; }

.class-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.class-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; text-decoration: none;
  padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.class-card:hover { border-color: var(--accent); }
.class-card img { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 8px; }
.class-name { font-weight: 650; }
.class-trees { color: var(--muted); font-size: 0.8rem; }
.class-card::before { content: none; }
.cls-druid { border-left: 4px solid #ff7d0a; } .cls-hunter { border-left: 4px solid #abd473; }
.cls-mage { border-left: 4px solid #69ccf0; } .cls-paladin { border-left: 4px solid #f58cba; }
.cls-priest { border-left: 4px solid #bfc5cf; } .cls-rogue { border-left: 4px solid #e8d848; }
.cls-shaman { border-left: 4px solid #0070de; } .cls-warlock { border-left: 4px solid #9482c9; }
.cls-warrior { border-left: 4px solid #c79c6e; }

.soon { text-align: center; }
.soon p { color: var(--muted); margin: 0; }

.site-foot { text-align: center; color: var(--muted); padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.site-foot p { margin: 4px 0; }
.small { font-size: 0.8rem; }

/* ---- Talent planner ---- */
.planner { padding: 16px; }
.classes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.class-btn { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 10px 4px 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: 550 0.88rem system-ui, sans-serif; }
.class-btn .class-icon { width: 24px; height: 24px; border-radius: 50%; }
.class-btn:hover { background: var(--surface2); }
.class-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.summary { font-weight: 600; margin: 0 0 12px; }

.planner-body { display: grid; grid-template-columns: 1fr 250px; gap: 14px; }
.trees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tree { background: var(--tree); border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; }
.tree-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tree-head h3 { margin: 0; flex: 1; font-size: 0.98rem; }
.tree-icon { width: 26px; height: 26px; border-radius: 6px; }
.tree-points { font-weight: 750; font-size: 1.05rem; color: var(--accent); }

.grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(7, auto);
  gap: 24px 10px; justify-items: center; padding: 6px 0 10px; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.link { stroke: var(--line); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.link.met { stroke: var(--gold); }

.talent { position: relative; width: 54px; height: 54px; padding: 0; cursor: pointer; border-radius: 8px; background: #000;
  border: 2px solid var(--line); }
.talent-icon { width: 100%; height: 100%; border-radius: 6px; display: block; }
.noicon { display: flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--muted);
  font: 700 0.78rem system-ui, sans-serif; }
.talent.locked { opacity: 0.6; }
.talent.locked .talent-icon { filter: saturate(0.8); }
.talent.locked:hover { opacity: 0.85; }
.talent.open, .talent.some { border-color: var(--green); }
.talent.full { border-color: var(--gold); }
.rank { position: absolute; right: -8px; bottom: -8px; min-width: 26px; padding: 0 4px; font: 700 0.7rem/16px system-ui, sans-serif;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.talent.open .rank, .talent.some .rank { color: var(--green); border-color: var(--green); }
.talent.full .rank { color: var(--gold); border-color: var(--gold); }

.order { background: var(--tree); border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 860px; overflow: auto; }
.order h3 { margin: 0 0 8px; font-size: 0.98rem; }
.order-list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.order-list li { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.order-list .lvl { width: 24px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.order-icon { width: 20px; height: 20px; border-radius: 4px; font-size: 0.55rem; }
.order-list .empty { color: var(--muted); border: none; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.import { flex: 1; min-width: 220px; padding: 8px 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; font: 0.88rem ui-monospace, monospace; }
.message { min-height: 1.5em; margin-top: 8px; color: var(--green); }
.message.bad { color: var(--red); }

.tip { display: none; position: fixed; z-index: 10; max-width: 300px; padding: 10px 12px; pointer-events: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 0.85rem/1.45 system-ui, sans-serif;
  box-shadow: 0 8px 24px var(--shadow); }
.tip-name { font-weight: 700; font-size: 0.95rem; }
.tip-rank { color: var(--muted); }
.tip-text { margin-top: 4px; white-space: pre-line; }
.tip-next-label { margin-top: 6px; color: var(--muted); }
.tip-why { margin-top: 6px; color: var(--red); }

@media (max-width: 1000px) {
  .planner-body { grid-template-columns: 1fr; }
  .order { max-height: 300px; }
}
@media (max-width: 760px) {
  .trees { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .site-head { padding: 10px 16px; position: static; }
}

/* Roam default builds row */
.default-builds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.default-label { color: var(--muted); font-size: 0.85rem; margin-right: 2px; }
.build-btn { cursor: pointer; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2);
  color: var(--text); font: 550 0.85rem "Inter", system-ui, sans-serif; }
.build-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===================================================================================================== */
/* Site pages (website 0.2)                                                                               */
/* ===================================================================================================== */
.muted { color: var(--muted); }
.small, td.small { font-size: 0.82rem; }
code { font: 0.88em ui-monospace, "Cascadia Code", monospace; background: var(--surface2); padding: 1px 5px; border-radius: 5px; }
.credits-line a { color: var(--muted); }

/* home */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature { text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; }
.feature.soon h2::after { content: "Soon"; margin-left: 10px; font-size: 0.7rem; font-weight: 600; vertical-align: middle;
  padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.class-row.big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.class-row.big .class-card { padding: 14px; }
.class-row.big .class-card img, .class-row.big .class-card .noicon { width: 48px; height: 48px; }

/* class page */
.class-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.class-head > div { flex: 1; min-width: 200px; }
.class-head-icon { width: 64px; height: 64px; border-radius: 14px; }
.class-title { margin: 0; }
.class-head .note { margin: 4px 0 0; }
.cls-druid .class-title { color: #ff7d0a; } .cls-hunter .class-title { color: #9ccc5f; } .cls-mage .class-title { color: #3fc7eb; }
.cls-paladin .class-title { color: #f58cba; } .cls-priest .class-title { color: var(--text); } .cls-rogue .class-title { color: #e8d020; }
.cls-shaman .class-title { color: #0070de; } .cls-warlock .class-title { color: #8788ee; } .cls-warrior .class-title { color: #c69b6d; }
.class-head.cls-druid, .class-head.cls-hunter, .class-head.cls-mage, .class-head.cls-paladin, .class-head.cls-priest,
.class-head.cls-rogue, .class-head.cls-shaman, .class-head.cls-warlock, .class-head.cls-warrior { border-left: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 36px; }
.fact { padding: 16px; }
.fact h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.fact .note { margin: 0; font-size: 0.88rem; }
.facts-note { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; }
.small-fact .fact-value { margin: 0; font-size: 1.15rem; font-weight: 650; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: 0.86rem; }

.build-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.build-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--text);
  transition: border-color 0.15s; }
.build-card:hover { border-color: var(--accent); }
.build-card > div { display: flex; flex-direction: column; }
.build-card .note { margin: 0; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.build-icon { width: 40px; height: 40px; border-radius: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.search, .filters select { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 0.92rem "Inter", system-ui, sans-serif; }
.search { flex: 1; min-width: 220px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; cursor: pointer; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--surface2) 60%, transparent); }
.data-table td.lvl, .data-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong-link { font-weight: 600; text-decoration: none; }
.strong-link:hover { text-decoration: underline; }
.spell { display: flex; gap: 12px; align-items: flex-start; min-width: 280px; }
.row-icon { width: 34px; height: 34px; border-radius: 7px; flex: none; }
.row-icon.noicon { font-size: 0.7rem; }
.spell-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.rank-text { color: var(--muted); font-size: 0.86rem; }
.spell-desc { color: var(--muted); font-size: 0.86rem; margin-top: 3px; white-space: pre-line; max-width: 60ch; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.muted-badge { background: var(--surface2); color: var(--muted); }
.count { margin-top: 8px; }

/* dungeon page */
.crumbs { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.crumbs a { color: var(--muted); }
.notice { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted);
  margin: 0 0 24px; }
.notice.good { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 36px; }
.boss-list, .loot-list { margin: 0; padding-left: 1.3em; }
.boss-list li, .loot-list li { padding: 3px 0; }
.loot-list .note { display: block; font-size: 0.85rem; margin: 0; }

/* addons page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  font-weight: 550; font-size: 0.92rem; }
.jump a:hover { border-color: var(--accent); }
.addon { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.addon-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.addon-head img { width: 72px; height: 72px; border-radius: 16px; }
.addon-head > div { flex: 1; min-width: 220px; }
.addon-head h2 { margin: 0; font-size: 1.7rem; }
.addon-head .note { margin: 4px 0 0; }
.features { margin: 0 0 24px; padding-left: 1.2em; max-width: 70ch; }
.features li { margin: 6px 0; }
.shot { margin: 0 0 16px; }
.shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 28px var(--shadow)); }
.shot figcaption { color: var(--muted); font-size: 0.86rem; margin-top: 8px; text-align: center; }
.shot-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.shot-pair .shot.narrow { max-width: 340px; justify-self: center; }
.install ol { margin: 0 0 8px; padding-left: 1.3em; }
.install li { margin: 6px 0; }

/* text pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.soon-page { text-align: center; padding: 56px 24px; }
.soon-page .lead { margin: 0 auto 22px; }

@media (max-width: 760px) {
  .data-table th, .data-table td { padding: 8px 10px; }
  .spell { min-width: 220px; }
  .addon-head img { width: 56px; height: 56px; }
}

/* home banner (website 0.2.3) */
.banner { text-align: center; padding: 56px 16px 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); }
.banner h1 { font-size: 3.2rem; margin-bottom: 12px; }
.banner .lead { margin: 0 auto 24px; max-width: 36em; }
.banner .actions { justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
@media (max-width: 760px) { .banner h1 { font-size: 2.3rem; } }

/* class facts as plain rows of pills */
.fact-rows { margin: 0 0 36px; }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; }
.fact-label { min-width: 150px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.fact-row .chips li { font-size: 0.9rem; }
.fact-empty { color: var(--muted); font-size: 0.9rem; }

/* collapsible spells */
.collapser { display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; text-align: left; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: 600 1.2rem "Inter", system-ui, sans-serif; }
.collapser:hover { border-color: var(--line-strong); }
.collapser .chev { transition: transform 0.15s; color: var(--muted); }
.collapser[aria-expanded="true"] .chev { transform: rotate(90deg); }
.collapser .count-pill { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.collapsible-body { margin-top: 14px; }
.collapsible-body[hidden] { display: none; }

/* boss page */
.boss-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.speech-list { margin: 0; padding-left: 1.1em; color: var(--muted); font-style: italic; }
.speech-list li { margin: 6px 0; }
.boss-title { margin: -6px 0 8px; color: var(--muted); }

/* class picture */
.class-art { margin: 0 0 22px; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.class-art img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: center 22%; }
.class-art figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 0.72rem; color: #e6e6ea; background: rgba(0,0,0,0.55); padding: 2px 8px; border-radius: 6px; }
.class-art figcaption a { color: inherit; }
@media (max-width: 760px) { .class-art img { height: 220px; } }

/* class picture shown whole beside the details (website 0.2.17) */
.class-top { margin-bottom: 36px; }
.class-top.has-art { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 32px; align-items: start; }
.class-top .class-art { margin: 0; }
.class-top .class-art img { height: auto; object-fit: initial; }
.class-info .fact-rows { margin-bottom: 24px; }
.class-info .build-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 900px) {
  .class-top.has-art { grid-template-columns: 1fr; }
  .class-top .class-art { max-width: 420px; justify-self: center; }
}

/* abilities bar: easier to spot (website 0.2.18) */
.collapser { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.collapser:hover { border-color: var(--accent); }
.collapser .chev { color: var(--accent); font-size: 1.4rem; line-height: 1; }
.collapser-hint { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.collapser[aria-expanded="true"] .collapser-hint { display: none; }

/* professions (website 0.3) */
.prof-desc { margin: 0 0 18px; max-width: 70ch; }
.recipes-sec { margin-top: 28px; }
.skill-cell { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.sk { margin-right: 6px; }
.sk-orange { color: #ff8040; }
.sk-yellow { color: #e8c020; }
.sk-green { color: #40c040; }
.sk-grey { color: #9a9aa2; }
:root[data-theme="light"] .sk-yellow { color: #a88600; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sk-yellow { color: #a88600; } }
.q-poor { color: #9d9d9d; } .q-common { color: var(--text); } .q-uncommon { color: #1eff00; }
.q-rare { color: #3c9cff; } .q-epic { color: #b45cff; } .q-legendary { color: #ff8000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .q-uncommon { color: #13901a; } }
.reagents-cell { min-width: 220px; }
.reagent { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 0.86rem; color: var(--muted); }
.reagent-icon { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.reagent-icon.noicon { font-size: 0.55rem; }
.learned-cell { min-width: 180px; }
.learned-cell .ways { font-weight: 600; }
.learned-cell .note { margin: 2px 0 0; }
.prof-card .class-name { color: var(--text); }

/* recipe categories */
.cat-row td { padding: 0; background: var(--surface2); }
.cat-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: none; background: none; color: var(--text); cursor: pointer; font: 600 0.95rem "Inter", system-ui, sans-serif; text-align: left; }
.cat-toggle:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cat-toggle .chev { color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform 0.15s; }
.cat-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.cat-toggle .count-pill { margin-left: auto; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.data-table tbody tr.cat-row:hover td { background: var(--surface2); }

/* class summary, specs and the ability grid (website 0.4) */
.class-summary { font-size: 1.02rem; line-height: 1.65; margin: 0 0 18px; max-width: 62ch; }
.spec-section { margin: 8px 0 40px; }
.spec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.spec-card { padding: 18px; }
.spec-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.spec-top h3 { margin: 0; }
.spec-icon { width: 36px; height: 36px; border-radius: 8px; }
.spec-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.ability-section { margin-bottom: 40px; }
.ability-line { margin: 0 0 22px; }
.ability-line h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.ability-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.ability-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px;
  text-decoration: none; color: var(--text); border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.ability-tile:hover { background: var(--surface); border-color: var(--line); }
.ability-icon { width: 52px; height: 52px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--class-color) 55%, #000);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 6px 16px var(--shadow); transition: transform 0.15s, border-color 0.15s; }
.ability-tile:hover .ability-icon { transform: translateY(-2px); border-color: var(--class-color); }
.ability-icon.noicon { font-size: 0.85rem; }
.ability-name { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.25; }
.ability-ranks { font-size: 0.7rem; color: var(--muted); }

.ability-tip { display: none; position: fixed; z-index: 20; max-width: 330px; padding: 12px 14px; pointer-events: none;
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px; color: var(--text);
  font: 0.86rem/1.5 "Inter", system-ui, sans-serif; box-shadow: 0 12px 32px var(--shadow); }
.at-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.at-name { font-weight: 700; font-size: 1rem; }
.at-rank { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.at-facts { color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.at-desc { white-space: pre-line; }
.at-new { margin-top: 8px; color: var(--accent); font-weight: 600; font-size: 0.8rem; }
.at-extra { margin-top: 8px; color: var(--muted); font-size: 0.78rem; font-style: italic; }

.ability-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; }
.ability-head h1 { margin: 0; }
.ability-head .note { margin: 4px 0 6px; }
.ability-head-icon { width: 72px; height: 72px; border-radius: 14px; border: 2px solid var(--class-color);
  box-shadow: 0 8px 22px var(--shadow); }
.ability-desc { max-width: 62ch; white-space: pre-line; }
.rank-desc { white-space: pre-line; color: var(--muted); }

.gather-sec { margin-top: 28px; }

/* ability group headings (website 0.4.2) */
.ability-line h3.line-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px;
  text-transform: none; letter-spacing: -0.01em; font-size: 1.15rem; font-weight: 700; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--class-color) 22%, transparent), transparent 70%);
  border-left: 3px solid var(--class-color); }
.line-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 14px color-mix(in srgb, var(--class-color) 45%, transparent); }
.line-name { color: var(--class-color); text-shadow: 0 1px 10px color-mix(in srgb, var(--class-color) 35%, transparent); }
.line-count { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--muted); }

/* talent planner style pass (website 0.4.3): class color throughout, like the class pages */
.at-next { margin-top: 8px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.at-why { margin-top: 8px; color: var(--red); font-weight: 600; font-size: 0.82rem; }

.planner { padding: 20px; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--class-color, var(--accent)) 9%, transparent), transparent 55%), var(--surface); }
.planner .classes { gap: 8px; margin-bottom: 16px; }
.planner .class-btn { padding: 5px 12px 5px 5px; border-color: var(--line); transition: border-color 0.15s, background 0.15s; }
.planner .class-btn .class-icon { width: 26px; height: 26px; }
.planner .class-btn:hover { border-color: var(--line-strong); }
.planner .class-btn.active { background: var(--class-color, var(--accent)); border-color: var(--class-color, var(--accent)); color: #111; font-weight: 700; }

.planner .default-builds .build-btn:hover { border-color: var(--class-color); color: var(--class-color); }
.planner .summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 0 0 16px; border-radius: 10px;
  background: var(--surface2); border-left: 3px solid var(--class-color, var(--accent)); font-variant-numeric: tabular-nums; }

.planner .tree { padding: 0 12px 14px; overflow: hidden; border-top: 3px solid var(--class-color, var(--accent));
  background: linear-gradient(180deg, color-mix(in srgb, var(--class-color, var(--accent)) 12%, var(--tree)) 0, var(--tree) 120px); }
.planner .tree-head { margin: 0 -12px 12px; padding: 12px 14px; gap: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--class-color, var(--accent)) 20%, transparent), transparent 80%); }
.planner .tree-head h3 { color: var(--class-color, var(--text)); font-size: 1.05rem; font-weight: 700;
  text-shadow: 0 1px 10px color-mix(in srgb, var(--class-color, transparent) 35%, transparent); }
.planner .tree-icon { width: 32px; height: 32px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 14px color-mix(in srgb, var(--class-color, transparent) 45%, transparent); }
.planner .tree-points { min-width: 34px; text-align: center; padding: 2px 10px; border-radius: 999px; font-size: 0.95rem;
  background: var(--surface2); color: var(--text); }

.planner .talent { transition: transform 0.12s, box-shadow 0.12s; box-shadow: 0 3px 8px var(--shadow); }
.planner .talent:hover { transform: translateY(-2px); }
.planner .talent.full { box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 14px rgba(227, 179, 65, 0.35); }
.planner .talent.open, .planner .talent.some { box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 10px rgba(52, 210, 122, 0.25); }

.planner .order { border-top: 3px solid var(--class-color, var(--accent)); }
.planner .order h3 { font-size: 1rem; }
.planner .order-list .lvl { color: var(--class-color, var(--muted)); font-weight: 700; }
.planner .tools .btn.primary { background: var(--class-color, var(--accent)); border-color: var(--class-color, var(--accent)); color: #111; }

/* races by faction (website 0.4.4) */
.races-row { align-items: flex-start; }
.faction-groups { display: flex; flex-direction: column; gap: 8px; }
.faction-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.faction-name { width: 64px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.faction-alliance .faction-name { color: #4a8cff; }
.faction-horde .faction-name { color: #e5483e; }
.faction-alliance .chips li { background: color-mix(in srgb, #2f6ce0 22%, var(--surface)); border-color: color-mix(in srgb, #2f6ce0 55%, var(--line)); color: #cfe0ff; }
.faction-horde .chips li { background: color-mix(in srgb, #c42b2b 22%, var(--surface)); border-color: color-mix(in srgb, #c42b2b 55%, var(--line)); color: #ffd6d2; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .faction-alliance .chips li { color: #133d8a; } :root:not([data-theme="dark"]) .faction-horde .chips li { color: #7a1610; } }

/* pick order matches the trees height and scrolls inside (website 0.4.5) */
.planner .planner-body { align-items: stretch; }
.planner .order { position: relative; max-height: none; min-height: 320px; overflow: hidden; }
.planner .order .order-list { position: absolute; top: 44px; left: 10px; right: 6px; bottom: 10px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 1000px) {
  .planner .order { min-height: 0; overflow: visible; }
  .planner .order .order-list { position: static; max-height: 300px; }
}
.tools-hint { margin: 10px 0 0; }

/* what Forever changed, recent changes (website 0.5) */
.new-section, .changes-section { margin: 8px 0 40px; }
.new-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.new-col { padding: 16px; border-top: 3px solid var(--class-color); }
.new-head { display: flex; align-items: center; margin: 0 0 10px; color: var(--class-color); }
.new-list { list-style: none; margin: 0; padding: 0; }
.new-item { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: default; }
.new-item:hover { background: var(--surface2); }
.new-item > div { display: flex; flex-direction: column; }
.new-item .note { margin: 0; }
.new-icon { width: 30px; height: 30px; border-radius: 7px; flex: none; border: 1px solid color-mix(in srgb, var(--class-color) 55%, #000); }
.timeline { list-style: none; margin: 0 0 18px; padding: 0; border-left: 2px solid color-mix(in srgb, var(--class-color) 55%, var(--line)); }
.timeline li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 8px 0 8px 18px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--class-color); }
.tl-date { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 92px; }
.tl-text { flex: 1 1 320px; }
.tl-link { font-size: 0.82rem; }
.kind-launch { background: color-mix(in srgb, #e3b341 22%, transparent); color: #e3b341; }
.kind-hotfix { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.dir-buff { background: color-mix(in srgb, #34d27a 20%, transparent); color: #34d27a; }
.dir-nerf { background: color-mix(in srgb, #f26b62 20%, transparent); color: #f26b62; }
.dir-new { background: color-mix(in srgb, #e3b341 22%, transparent); color: #e3b341; }

/* home page style pass (website 0.5.1) */
.home-banner { position: relative; overflow: hidden; padding: 0; min-height: 360px; display: flex; align-items: center; justify-content: center;
  border-radius: 0 0 24px 24px; border-bottom: 1px solid var(--line); margin: -32px -16px 36px; }
.banner-art { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(9, 1fr); opacity: 0.32; filter: saturate(0.9); }
.banner-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.home-banner::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--bg) 55%, transparent) 0%, var(--bg) 85%),
              linear-gradient(180deg, transparent 50%, var(--bg) 100%); }
.banner-inner { position: relative; z-index: 1; text-align: center; padding: 64px 16px 52px; }
.home-banner h1 { font-size: 3.6rem; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.home-banner .lead { color: var(--text); opacity: 0.85; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 44px; }
.quick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s; }
.quick:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 6px 14px var(--shadow); flex: none; }
.quick span { display: flex; flex-direction: column; }
.quick small { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

.addon-card { gap: 12px; }
.addon-card-top { display: flex; align-items: center; gap: 14px; }
.addon-card-top img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 8px 18px var(--shadow); }
.addon-card-top h3 { margin: 0 0 4px; }
.status { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.status.live { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.status.soon { background: var(--surface2); color: var(--muted); }

.class-row.portraits { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.class-card.has-portrait { position: relative; display: block; padding: 0; overflow: hidden; height: 230px; border-radius: 14px; border-left: 1px solid var(--line); }
.class-card.has-portrait .class-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform 0.3s; }
.class-card.has-portrait:hover .class-portrait { transform: scale(1.05); }
.class-card.has-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.85) 100%); }
.portrait-label { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 10px; }
.portrait-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,0.7); flex: none; }
.portrait-words { display: flex; flex-direction: column; }
.class-card.has-portrait .class-name { font-size: 1.1rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.class-card.has-portrait .class-trees { color: #d4d4d8; font-size: 0.76rem; }
.cls-druid.has-portrait .class-name { color: #ff7d0a; } .cls-hunter.has-portrait .class-name { color: #abd473; }
.cls-mage.has-portrait .class-name { color: #3fc7eb; } .cls-paladin.has-portrait .class-name { color: #f58cba; }
.cls-priest.has-portrait .class-name { color: #ffffff; } .cls-rogue.has-portrait .class-name { color: #fff569; }
.cls-shaman.has-portrait .class-name { color: #3d9cff; } .cls-warlock.has-portrait .class-name { color: #a593e0; }
.cls-warrior.has-portrait .class-name { color: #d8ad7c; }

.feature { position: relative; overflow: hidden; padding-left: 86px; min-height: 120px; }
.feature-icon { position: absolute; left: 22px; top: 24px; width: 48px; height: 48px; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 8px 18px var(--shadow); }
@media (max-width: 760px) {
  .home-banner { margin: -32px -16px 28px; min-height: 300px; }
  .banner-art { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .home-banner h1 { font-size: 2.4rem; }
}

.banner-art { opacity: 0.45; }

.section-collapser { font-size: 1.3rem; margin-bottom: 4px; }
.ability-section, .new-section { margin-bottom: 24px; }

/* addons page style pass (website 0.5.3) */
.addons-hero { text-align: center; padding: 40px 16px 36px; margin: -32px -16px 36px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, color-mix(in srgb, #f07a1e 14%, transparent), transparent 65%); }
.hero-logos { display: flex; justify-content: center; margin-bottom: 18px; }
.hero-logos img { width: 76px; height: 76px; border-radius: 18px; margin: 0 -8px; box-shadow: 0 0 0 3px var(--bg), 0 10px 24px var(--shadow); }
.hero-logos img:nth-child(2) { width: 92px; height: 92px; position: relative; z-index: 1; margin-top: -8px; }
.addons-hero .lead { margin: 0 auto 20px; }
.addons-hero .jump { justify-content: center; margin: 0; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; }
.jump a img { width: 26px; height: 26px; border-radius: 7px; }

.addon { position: relative; padding: 26px 26px 18px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--addon-color) 12%, transparent), transparent 55%), var(--surface);
  border-top: 3px solid var(--addon-color); }
.addon-head img { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 26px color-mix(in srgb, var(--addon-color) 35%, transparent); }
.addon-head h2 { color: var(--text); }
.features { list-style: none; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 22px; margin: 4px 0 24px; }
.features li { position: relative; padding-left: 30px; margin: 0; line-height: 1.55; }
.features li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #111; background: var(--addon-color); }
.features li strong { color: var(--text); }
.addon .shot img { border-radius: 10px; }
.install { border-top: 3px solid var(--accent); }
.install ol { counter-reset: step; list-style: none; padding: 0; }
.install li { counter-increment: step; position: relative; padding-left: 36px; margin: 10px 0; }
.install li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: var(--accent); color: var(--accent-text); }

/* every change page */
.day-head { margin: 22px 0 6px; font-size: 0.95rem; color: var(--class-color, var(--text)); }
.data-change { align-items: center !important; }
.data-change .reagent-icon { width: 22px; height: 22px; }
.all-changes { margin: 12px 0 0; }

/* build planner: gear (website 0.6) */
.gear-planner { padding: 20px; margin-bottom: 30px; }
.build-talents-head { margin-top: 10px; }
.paperdoll { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 300px) minmax(220px, 1fr); gap: 16px; align-items: start; }
.pd-col, .pd-bottom { display: flex; flex-direction: column; gap: 8px; }
.pd-bottom { flex-direction: row; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pd-bottom .pd-slot { width: 260px; }
.pd-slot { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px 6px 6px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--line); color: var(--text); text-align: left; font: inherit;
  transition: border-color 0.15s, background 0.15s; }
.pd-slot:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface2) 70%, var(--surface)); }
.pd-right .pd-slot { flex-direction: row-reverse; text-align: right; padding: 6px 6px 6px 10px; }
.pd-icon { width: 40px; height: 40px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.6); }
.pd-empty-icon { width: 40px; height: 40px; border-radius: 8px; flex: none; border: 1px dashed var(--line-strong); background: var(--bg); }
.pd-words { display: flex; flex-direction: column; min-width: 0; }
.pd-item { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-slotname { font-size: 0.74rem; color: var(--muted); }
.pd-slot.filled.q-border-uncommon { border-color: color-mix(in srgb, #1eff00 45%, var(--line)); }
.pd-slot.filled.q-border-rare { border-color: color-mix(in srgb, #3c9cff 55%, var(--line)); }
.pd-slot.filled.q-border-epic { border-color: color-mix(in srgb, #b45cff 55%, var(--line)); }
.pd-slot.filled.q-border-legendary { border-color: color-mix(in srgb, #ff8000 55%, var(--line)); }
.pd-center { display: flex; flex-direction: column; gap: 12px; }
.pd-portrait { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface2); border: 1px solid var(--line); }
.pd-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.pd-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.8)); }
.pd-class { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 1; text-align: center; font-size: 1.3rem; font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9); }
.pd-stats { padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.pd-stats h3 { margin: 0 0 8px; font-size: 0.95rem; }
.stat-list { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 0; font-size: 0.86rem; }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pd-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.item-tip .at-name { font-size: 1rem; font-weight: 700; }
.item-tip.q-border-uncommon { border-color: #1eff00; } .item-tip.q-border-rare { border-color: #3c9cff; }
.item-tip.q-border-epic { border-color: #b45cff; } .item-tip.q-border-legendary { border-color: #ff8000; }
.it-line { display: flex; justify-content: space-between; gap: 14px; }
.it-right { color: var(--muted); }
.it-green { color: var(--green); }
.it-set { margin-top: 6px; color: #e3b341; font-size: 0.82rem; }

.picker-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.picker-backdrop[hidden] { display: none; }
.picker { width: min(720px, 100%); max-height: 86vh; display: flex; flex-direction: column; padding: 18px; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.picker-head h3 { margin: 0; }
.lvl-input { flex: 0 0 120px; min-width: 0; }
.picker-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; min-height: 120px; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid transparent; color: var(--text); text-align: left; font: inherit; }
.picker-row:hover { border-color: var(--line-strong); }
.picker-row.chosen { border-color: var(--accent); }
@media (max-width: 900px) {
  .paperdoll { grid-template-columns: 1fr; }
  .pd-right .pd-slot { flex-direction: row; text-align: left; }
  .pd-center { order: -1; }
  .pd-portrait { aspect-ratio: 16 / 9; }
}

/* leveling page (website 0.7) */
.leveling-hero { padding: 26px 0 8px; }
.leveling-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 4px 0 10px; letter-spacing: -0.02em; }
.leveling-general { padding: 22px 24px; margin: 18px 0 34px; }
.leveling-general h2 { margin-top: 0; }
.tip-list { list-style: none; counter-reset: tip; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.tip-list li { counter-increment: tip; position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.tip-list li::before { content: counter(tip); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
  background: color-mix(in srgb, var(--class-color, var(--accent)) 22%, var(--surface)); color: var(--class-color, var(--accent)); }
.tip-list strong { font-size: 0.95rem; }
.tip-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.level-class .tip-list { grid-template-columns: 1fr; }
.level-class-head { margin: 0 0 12px; }
.level-classes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.level-class-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 600; transition: border-color .15s, background .15s; }
.level-class-btn .class-icon { width: 26px; height: 26px; border-radius: 50%; }
.level-class-btn:hover { border-color: var(--class-color); }
.level-class-btn.active { border-color: var(--class-color); background: color-mix(in srgb, var(--class-color) 16%, var(--surface)); color: var(--class-color); }
.level-class-top { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 22px; align-items: start; margin-bottom: 20px; }
.level-art { width: 100%; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--class-color) 45%, var(--line)); display: block; }
.level-class-side h2 { margin-top: 0; }
.level-build { padding: 20px 22px; border-top: 3px solid var(--class-color); }
.level-build h3 { margin-top: 0; }
.build-select { min-width: 240px; }
.path-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.path-grid li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 9px; background: var(--surface2); border: 1px solid var(--line); }
.path-lvl { flex: none; width: 26px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--class-color); font-size: 0.85rem; }
.path-icon { width: 30px; height: 30px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.path-icon.noicon { display: flex; align-items: center; justify-content: center; font-size: 0.7rem; background: var(--bg); }
.path-words { display: flex; flex-direction: column; min-width: 0; }
.path-words strong { font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leveling-sources { margin: 34px 0 10px; }
.leveling-sources ul { columns: 2 300px; padding-left: 18px; }
.leveling-sources li { margin-bottom: 4px; font-size: 0.88rem; }
@media (max-width: 800px) { .level-class-top { grid-template-columns: 1fr; } }

/* build planner: item tooltips sit above the item picker, framed in the item's quality color (website 0.7) */
.item-tip { z-index: 50; border-width: 2px; min-width: 240px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tip-q, var(--line)) 10%, var(--surface)), var(--surface) 70px); }
.item-tip.q-border-poor { --tip-q: #9d9d9d; border-color: #9d9d9d; }
.item-tip.q-border-common { --tip-q: #d8d8d8; border-color: color-mix(in srgb, #ffffff 55%, var(--line)); }
.item-tip.q-border-uncommon { --tip-q: #1eff00; } .item-tip.q-border-rare { --tip-q: #3c9cff; }
.item-tip.q-border-epic { --tip-q: #b45cff; } .item-tip.q-border-legendary { --tip-q: #ff8000; }
.item-tip.q-border-artifact { --tip-q: #e6cc80; border-color: #e6cc80; }
.item-tip { box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 22px color-mix(in srgb, var(--tip-q, transparent) 22%, transparent), 0 12px 32px var(--shadow); }

/* item picker: main-stat filter and sort */
.stat-filters { margin-top: -4px; }
.filter-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-chip { padding: 5px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.stat-chip:hover { border-color: var(--line-strong); color: var(--text); }
.stat-chip.on { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); border-color: var(--accent); color: var(--text); }
.sort-wrap { margin-left: auto; }

/* build guide boxes */
.build-overview { margin: 0 0 22px; }
.build-notes { padding: 22px; margin: 26px 0 30px; }
.notes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.notes-head h2 { margin: 0 0 4px; }
.notes-head .note { margin: 0; max-width: 44em; }
.notes-count.over { color: var(--red); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.note-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; border-radius: 12px; background: var(--surface2);
  border: 1px solid var(--line); border-top: 3px solid var(--class-color, var(--accent)); min-width: 0; }
.note-overview { background: var(--surface); padding: 20px 22px 22px; border-radius: 14px; }
.note-overview h3 { font-size: 1.25rem; }
.note-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-card-head h3 { margin: 0; font-size: 1rem; color: var(--class-color, var(--text)); }
.note-tabs { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.note-tab { padding: 3px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 600; }
.note-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px var(--shadow); }
.note-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.note-toolbar[hidden], .note-input[hidden], .note-preview[hidden] { display: none; }
.tb { padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; font: inherit; font-size: 0.8rem; }
.tb:hover { border-color: var(--line-strong); }
.tb-b { font-weight: 800; } .tb-i { font-style: italic; font-family: Georgia, serif; }
.note-input { width: 100%; box-sizing: border-box; resize: vertical; min-height: 60px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 0.92rem/1.55 "Inter", system-ui, sans-serif; }
.note-input:focus { outline: none; border-color: var(--class-color, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--class-color, var(--accent)) 22%, transparent); }
.note-preview { min-height: 40px; cursor: text; }
.note-view { font-size: 0.93rem; line-height: 1.6; overflow-wrap: anywhere; }
.note-view > :first-child { margin-top: 0; } .note-view > :last-child { margin-bottom: 0; }
.note-view p { margin: 0 0 8px; }
.note-view h4 { margin: 12px 0 4px; font-size: 0.95rem; color: var(--class-color, var(--text)); }
.note-view ul, .note-view ol { margin: 0 0 8px; padding-left: 20px; }
.note-view li { margin-bottom: 2px; }
.note-view blockquote { margin: 0 0 8px; padding: 6px 12px; border-left: 3px solid var(--class-color, var(--accent)); background: var(--bg); border-radius: 0 8px 8px 0; color: var(--muted); }
.empty-note { font-style: italic; margin: 0; }
.race-picks { display: flex; flex-direction: column; gap: 6px; }
.race-picks .note { margin: 0; }
.race-pick { padding: 4px 11px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.84rem; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); opacity: .75; transition: all .15s; }
.race-pick:hover { opacity: 1; }
.faction-alliance .race-pick.on { opacity: 1; background: color-mix(in srgb, #2f6ce0 26%, var(--surface)); border-color: color-mix(in srgb, #2f6ce0 65%, var(--line)); color: var(--text); font-weight: 600; }
.faction-horde .race-pick.on { opacity: 1; background: color-mix(in srgb, #c42b2b 26%, var(--surface)); border-color: color-mix(in srgb, #c42b2b 65%, var(--line)); color: var(--text); font-weight: 600; }

/* class cards: the picture fills the whole card on the Classes page too (the .big row's icon size used to win) */
.class-row .class-card.has-portrait img.class-portrait { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; grid-row: auto; }
.class-row .class-card.has-portrait img.portrait-icon { position: static; width: 40px; height: 40px; border-radius: 8px; }

/* dungeons (website 0.7): cards on the list, a hero, tips, bosses and loot tiles on each page */
.dungeon-changes { padding: 16px 20px; margin: 0 0 26px; border-left: 3px solid var(--accent); }
.dungeon-changes h2 { margin: 0 0 6px; font-size: 1rem; }
.dungeon-changes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.dungeon-group { margin-bottom: 34px; --grp: var(--accent); }
.group-forever { --grp: #34d27a; } .group-classic { --grp: #d9a441; } .group-raids { --grp: #e2483a; } .group-unannounced { --grp: #8a8a96; }
.dungeon-group-head { display: flex; align-items: center; gap: 12px; }
.dungeon-group-head h2 { margin: 0; }
.dungeon-group-head::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--grp); }
details.dungeon-group > summary { cursor: pointer; list-style: none; }
details.dungeon-group > summary::-webkit-details-marker { display: none; }
details.dungeon-group > summary::after { content: "\203A"; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
details.dungeon-group[open] > summary::after { transform: rotate(90deg); }
.dungeon-group > .note { margin: 6px 0 14px; }
.dungeon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.dungeon-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--grp); transition: transform .15s, border-color .15s, box-shadow .15s; }
.dungeon-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--grp) 50%, var(--line)); box-shadow: 0 10px 26px var(--shadow); }
.dc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dc-levels { font-weight: 700; font-size: 0.82rem; padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--grp) 18%, var(--surface)); color: var(--grp); }
.dc-kind { font-size: 0.76rem; color: var(--muted); }
.dc-name { margin: 2px 0 0; font-size: 1.08rem; }
.dc-zone { margin: 0; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.dc-blurb { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }

#dungeon-page, #boss-page { --grp: var(--accent); }
#dungeon-page.group-forever { --grp: #34d27a; } #dungeon-page.group-classic { --grp: #d9a441; }
#dungeon-page.group-raids { --grp: #e2483a; } #dungeon-page.group-unannounced { --grp: #8a8a96; }
.dungeon-hero { position: relative; padding: 26px 28px; margin: 4px 0 22px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--grp) 16%, transparent), transparent 60%), var(--surface); }
.dungeon-hero .eyebrow { color: var(--grp); }
.dungeon-hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.dungeon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dchip { display: inline-flex; flex-direction: column; padding: 6px 14px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.dchip-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.dchip-value { font-weight: 700; font-size: 0.98rem; }
.dchip.empty .dchip-value { color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.dungeon-overview { font-size: 1.04rem; line-height: 1.65; margin: 0 0 12px; max-width: 52em; }
.dungeon-where { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 52em; }
.dungeon-where strong { color: var(--text); }
.dungeon-hero .notice { margin: 14px 0 0; }
.dungeon-row { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 30px; align-items: start; }
.dungeon-row > :only-child { grid-column: 1 / -1; }
.dungeon-row h2 { margin-top: 0; font-size: 1.1rem; }
.dungeon-tips { --class-color: var(--grp); }
.dungeon-tips .tip-list { grid-template-columns: 1fr; gap: 8px; }
.tip-list .tip-only { margin: 2px 0; color: var(--text); font-size: 0.92rem; }
.dungeon-forever { border-top: 3px solid var(--grp); }
.forever-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.forever-list li { padding: 8px 12px; border-radius: 9px; background: var(--surface2); font-size: 0.88rem; color: var(--muted); }
.forever-list li.forever-own { color: var(--text); border-left: 3px solid var(--grp); }
.dungeon-section { margin-bottom: 32px; }
.dungeon-section > h2 { display: flex; align-items: center; gap: 10px; }
.dungeon-section > h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--grp); }
.boss-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.boss-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.boss-card:hover { border-color: var(--grp); transform: translateY(-1px); }
.boss-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
  background: color-mix(in srgb, var(--grp) 18%, var(--surface)); color: var(--grp); }
.boss-words { display: flex; flex-direction: column; min-width: 0; }
.boss-grid li:last-child .boss-card { border-color: color-mix(in srgb, var(--grp) 45%, var(--line)); }
.loot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 8px; }
.loot-tile { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: default; outline: none; }
.loot-tile:hover, .loot-tile:focus { background: var(--surface2); }
.loot-tile.q-border-uncommon { border-color: color-mix(in srgb, #1eff00 35%, var(--line)); }
.loot-tile.q-border-rare { border-color: color-mix(in srgb, #3c9cff 45%, var(--line)); }
.loot-tile.q-border-epic { border-color: color-mix(in srgb, #b45cff 45%, var(--line)); }
.loot-tile.q-border-legendary { border-color: color-mix(in srgb, #ff8000 45%, var(--line)); }
.loot-icon { width: 38px; height: 38px; border-radius: 7px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.loot-noicon { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }
.loot-words { display: flex; flex-direction: column; min-width: 0; }
.loot-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-sub { font-size: 0.76rem; color: var(--muted); }
.panel.flush { padding: 0; overflow: hidden; }
.side-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: var(--surface2); color: var(--muted); }
.side-a { background: color-mix(in srgb, #2f6ce0 22%, var(--surface)); color: #8fb4ff; }
.side-h { background: color-mix(in srgb, #c42b2b 22%, var(--surface)); color: #ff9b92; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .side-a { color: #133d8a; } :root:not([data-theme="dark"]) .side-h { color: #7a1610; } }
.dungeon-sources { margin: 10px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.dungeon-sources h3 { margin: 0 0 6px; font-size: 0.9rem; }
.dungeon-sources ul { margin: 0 0 6px; padding-left: 18px; font-size: 0.84rem; }
.boss-hero .boss-title { margin: -8px 0 14px; color: var(--muted); }
.speech-list { margin: 0; padding-left: 18px; font-style: italic; }
@media (max-width: 860px) { .dungeon-row { grid-template-columns: 1fr; } .dungeon-hero { padding: 20px; } }

/* talent search (as in Roam Talents): gold mark on matches, the rest dimmed */
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary-row .summary { margin: 0; }
.talent-search .search { width: 220px; padding: 7px 12px; }
.match-count { color: #ffd100; font-weight: 700; }
.talent.dim { opacity: 0.3; }
.talent.match { opacity: 1; box-shadow: 0 0 0 2px #ffd100, 0 0 14px rgba(255, 209, 0, 0.55); }
.talent.match::after { content: ""; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3a8, #ffd100 55%, #b88a00); box-shadow: 0 0 6px rgba(255, 209, 0, 0.9); z-index: 2; }

/* build planner: level sections, starter builds, class fan (website 0.7) */
.build-stages { position: sticky; top: var(--head-h, 64px); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 12px 14px; margin: 0 0 18px; border-top: 3px solid var(--class-color, var(--accent)); backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 92%, transparent); }
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 7px 14px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; transition: all .15s; }
.stage-tab:hover { border-color: var(--line-strong); }
.stage-tab.active { border-color: var(--class-color); background: color-mix(in srgb, var(--class-color) 16%, var(--surface)); }
.stage-tab.active .stage-lvl { color: var(--class-color); }
.stage-lvl { font-weight: 700; font-size: 0.95rem; }
.stage-pts { font-size: 0.72rem; color: var(--muted); }
.stage-tab.filled::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--class-color); }
.stage-side { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.starter-select { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; max-width: 300px; }
.stage-note { flex-basis: 100%; margin: 0; }
.stage-tag { margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; vertical-align: middle;
  background: color-mix(in srgb, var(--class-color, var(--accent)) 18%, var(--surface)); color: var(--class-color, var(--accent)); }
.stage-tag:empty { display: none; }
.planner.follows-build .classes, .planner.follows-build .default-builds { display: none; }

.pd-portrait-wrap { position: relative; }
button.pd-portrait { display: block; width: 100%; padding: 0; cursor: pointer; font: inherit; color: inherit; }
button.pd-portrait:hover img { transform: scale(1.04); }
.pd-portrait img { transition: transform .3s; }
.pd-change { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 3px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; color: #fff; background: rgba(0,0,0,0.55); opacity: 0; transition: opacity .2s; white-space: nowrap; }
button.pd-portrait:hover .pd-change, button.pd-portrait:focus-visible .pd-change { opacity: 1; }
.class-fan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 12; }
.class-fan[hidden] { display: none; }
.class-fan::before { content: ""; position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.75), rgba(0,0,0,0.35) 60%, transparent 72%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.class-fan.open::before { opacity: 1; }
.fan-class { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; padding: 0; border-radius: 50%; cursor: pointer; overflow: visible;
  border: 2px solid var(--class-color); background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.6);
  transform: translate(0, 0) scale(0.3); opacity: 0; transition: transform .28s cubic-bezier(.2,.9,.3,1.25), opacity .2s, box-shadow .15s; }
.class-fan.open .fan-class { opacity: 1; transform: translate(calc(var(--fx) * 190px), calc(var(--fy) * 190px)) scale(1); }
.fan-class img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 50%; display: block; }
.fan-class .fan-icon { width: 100%; height: 100%; border-radius: 50%; }
.fan-name { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; color: var(--class-color); background: rgba(0,0,0,0.85); }
.fan-class:hover { box-shadow: 0 0 0 3px var(--class-color), 0 0 22px var(--class-color); z-index: 2; }
.class-fan.open .fan-class:hover { transform: translate(calc(var(--fx) * 190px), calc(var(--fy) * 190px)) scale(1.12); }
.fan-class.current { box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(0,0,0,.6); }
@media (max-width: 600px) {
  .class-fan.open .fan-class, .class-fan.open .fan-class:hover { transform: translate(calc(var(--fx) * 130px), calc(var(--fy) * 130px)) scale(0.8); }
  .build-stages { position: static; }
}

/* back to the top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 25; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  font: 600 0.88rem "Inter", system-ui, sans-serif; color: var(--accent-text); background: var(--accent); border: 0;
  box-shadow: 0 8px 22px var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.08); }
@media (max-width: 600px) { .to-top { right: 12px; bottom: 12px; padding: 9px 13px; } }

/* blue posts (website 0.8): a forum-style page in Blizzard blue, clearly fan-made */
.bp-page { --bp-blue: #00aeff; --bp-navy: #0b1424; --bp-navy2: #101c31; --bp-line: #1d2d48; }
:root[data-theme="light"] .bp-page { --bp-blue: #0074e0; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .bp-page { --bp-blue: #0074e0; } }
.bp-hero { position: relative; padding: 30px 30px 24px; margin: 6px 0 18px; border-radius: 18px; overflow: hidden; color: #e8eef8;
  border: 1px solid var(--bp-line);
  background: radial-gradient(90% 140% at 100% 0%, rgba(0, 174, 255, 0.28), transparent 60%),
              radial-gradient(60% 120% at 0% 100%, rgba(0, 90, 200, 0.25), transparent 60%), var(--bp-navy); }
.bp-eyebrow { margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7fd3ff; }
.bp-hero h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); color: #00b4ff; letter-spacing: -0.01em; text-shadow: 0 0 24px rgba(0, 180, 255, 0.35); }
.bp-lead { margin: 0 0 16px; max-width: 46em; color: #c3cfe2; font-size: 1.02rem; }
.bp-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-stat { padding: 4px 12px; border-radius: 999px; font-size: 0.84rem; background: rgba(255,255,255,0.07); border: 1px solid rgba(127, 211, 255, 0.25); color: #d6e2f3; }
.bp-stat strong { color: #00b4ff; }
.bp-stat.muted { color: #9fb0c8; }
.bp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.bp-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-kind { padding: 6px 13px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.bp-kind:hover { color: var(--text); border-color: var(--line-strong); }
.bp-kind.active { color: #fff; background: #0a6ed1; border-color: #0a6ed1; }
.bp-class-select { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.bp-search { margin-left: auto; min-width: 240px; }
.bp-threads { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.bp-thread { display: grid; grid-template-columns: 1fr 120px 130px; gap: 14px; align-items: start; padding: 14px 18px; text-decoration: none; color: var(--text);
  border-top: 1px solid var(--line); transition: background .15s; }
a.bp-thread:hover { background: var(--surface2); }
a.bp-thread:hover .bp-title { text-decoration: underline; }
.bp-thread-head { border-top: 0; padding: 10px 18px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface2); }
.bp-month { padding: 8px 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-blue);
  background: color-mix(in srgb, var(--bp-blue) 7%, var(--surface)); border-top: 1px solid var(--line); }
.bp-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-title { color: var(--bp-blue); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.8rem; }
.bp-author { color: var(--bp-blue); font-weight: 600; }
.bp-author::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--bp-blue); vertical-align: 1px; box-shadow: 0 0 6px var(--bp-blue); }
.bp-summary { color: var(--muted); font-size: 0.88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-classes { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bp-class { padding: 0 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--class-color);
  background: color-mix(in srgb, var(--class-color) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--class-color) 40%, var(--line)); }
.bp-addon { padding: 0 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; background: var(--surface2); border: 1px solid var(--line); }
.bp-kind-tag { justify-self: start; padding: 2px 10px; border-radius: 6px; font-size: 0.74rem; font-weight: 700; white-space: nowrap;
  background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.kind-hotfix { color: #ff9c5b; border-color: color-mix(in srgb, #ff9c5b 40%, var(--line)); background: color-mix(in srgb, #ff9c5b 10%, var(--surface)); }
.kind-patch-notes { color: #c78bff; border-color: color-mix(in srgb, #c78bff 40%, var(--line)); background: color-mix(in srgb, #c78bff 10%, var(--surface)); }
.kind-news { color: var(--bp-blue); border-color: color-mix(in srgb, #00aeff 40%, var(--line)); background: color-mix(in srgb, #00aeff 10%, var(--surface)); }
.kind-update { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.bp-date { font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-empty { padding: 30px; text-align: center; color: var(--muted); }
.bp-disclaimer { margin: 22px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 0.82rem; color: var(--muted); background: var(--surface2); border: 1px dashed var(--line-strong); }
.bp-card { margin: 4px 0 18px; padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--bp-blue); box-shadow: 0 10px 30px var(--shadow); }
.bp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bp-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
  color: #fff; background: radial-gradient(circle at 30% 30%, #4cc9ff, #0a5bb5); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--bp-blue) 50%, transparent); }
.bp-who { display: flex; flex-direction: column; margin-right: auto; }
.bp-author.big { font-size: 1rem; }
.bp-role { font-size: 0.78rem; color: var(--muted); }
.bp-post-title { margin: 0 0 4px; color: var(--bp-blue); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.bp-post-date { margin: 0 0 20px; color: var(--muted); font-size: 0.88rem; }
.bp-post-summary { padding: 16px 18px; border-radius: 12px; background: var(--surface2); border-left: 3px solid var(--bp-blue); margin-bottom: 18px; }
.bp-post-summary h2 { margin: 0 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bp-post-summary p { margin: 0; font-size: 1.04rem; line-height: 1.65; }
.bp-affects { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 20px; }
.bp-affects > div { display: flex; flex-direction: column; gap: 6px; }
.bp-aff-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.btn.bp-read { background: #0a6ed1; border-color: #0a6ed1; color: #fff; }
.btn.bp-read:hover { filter: brightness(1.1); background: #0a6ed1; }
.bp-nav { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) {
  .bp-thread { grid-template-columns: 1fr auto; }
  .bp-thread .bp-date { grid-column: 2; grid-row: 1; }
  .bp-thread .bp-kind-tag { grid-column: 2; grid-row: 1; margin-top: 22px; }
  .bp-thread-head { display: none; }
  .bp-search { margin-left: 0; min-width: 0; flex: 1 1 100%; }
  .bp-hero, .bp-card { padding: 20px; }
}

/* dungeon guides (website 0.8.1) */
.guide-note { margin: -4px 0 14px; font-size: 0.86rem; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--line-strong); }
.guide-note.conf-low { border-left-color: #e3a341; }
.guide-row { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; }
.guide-route h3 { margin: 0 0 10px; font-size: 1rem; }
.route-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.route-steps li { counter-increment: step; position: relative; padding: 9px 12px 9px 46px; border-radius: 10px; background: var(--surface2); font-size: 0.92rem; line-height: 1.5; }
.route-steps li::before { content: counter(step); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
  background: color-mix(in srgb, var(--grp) 20%, var(--surface)); color: var(--grp); }
.guide-side { display: flex; flex-direction: column; gap: 8px; }
.role-card { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.role-card p { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.role-name { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.role-tank { border-left-color: #4a8cff; } .role-tank .role-name { color: #6fa3ff; }
.role-healer { border-left-color: #34d27a; } .role-healer .role-name { color: #34d27a; }
.role-dps { border-left-color: #e5483e; } .role-dps .role-name { color: #f2786f; }
.role-group { border-left-color: var(--grp); } .role-group .role-name { color: var(--grp); }
.boss-grid.with-guide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: stretch; }
.boss-grid.with-guide li { display: flex; }
.boss-grid.with-guide .boss-card { align-items: flex-start; width: 100%; padding: 12px 14px 12px 12px; }
.boss-grid .badge { margin-left: 8px; vertical-align: 1px; }
.boss-summary { margin-top: 4px; font-size: 0.86rem; color: var(--text); line-height: 1.45; }
.boss-tactics { margin: 6px 0 0; padding-left: 16px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.boss-tactics li { margin-bottom: 2px; }
.boss-fight-summary { font-size: 1rem; line-height: 1.6; margin: 0 0 12px; max-width: 52em; }
.boss-fight .guide-note { margin-top: 12px; }
@media (max-width: 860px) { .guide-row { grid-template-columns: 1fr; } }

/* build planner: Roam build buttons, undo note */
.starter-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.starter-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.starter-btn { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 6px 14px; border-radius: 10px; cursor: pointer; font: inherit; text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: all .15s; }
.starter-btn:hover { border-color: var(--class-color); }
.starter-btn.active { border-color: var(--class-color); background: color-mix(in srgb, var(--class-color) 16%, var(--surface)); }
.starter-btn.active .starter-name { color: var(--class-color); }
.starter-name { font-weight: 700; font-size: 0.92rem; }
.starter-kind { font-size: 0.7rem; color: var(--muted); }
.undo-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px var(--shadow); font-size: 0.9rem; }
.undo-bar[hidden] { display: none; }

/* screenshot viewer */
.shot img.zoomable { cursor: zoom-in; transition: transform .2s; }
.shot img.zoomable:hover { transform: scale(1.01); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px 64px;
  background: rgba(5, 5, 8, 0.9); backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox-img { max-width: min(1600px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); cursor: zoom-out; }
.lightbox-cap { margin: 0; color: #d4d4d8; font-size: 0.92rem; text-align: center; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.7rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,0.12); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 2.2rem; color: #fff; background: rgba(255,255,255,0.1); }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav.prev { left: 12px; } .lightbox-nav.next { right: 12px; }
.lightbox-nav[hidden] { display: none; }
body.no-scroll { overflow: hidden; }
@media (max-width: 600px) { .lightbox { padding: 16px 8px 60px; } .lightbox-nav { top: auto; bottom: 10px; transform: none; } }

/* build planner: class buttons above the levels */
.build-class-row { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.build-class-btn { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.build-class-btn .class-icon { width: 24px; height: 24px; border-radius: 50%; }
.build-class-btn:hover { color: var(--class-color); border-color: color-mix(in srgb, var(--class-color) 60%, var(--line)); }
.build-class-btn.active { color: var(--class-color); border-color: var(--class-color); background: color-mix(in srgb, var(--class-color) 16%, var(--surface)); }
@media (max-width: 700px) { .build-class-btn span { display: none; } .build-class-btn { padding: 4px; } }

/* progress bars: how full the Roam database is (website 0.9) */
.progress-hero { padding: 24px 0 10px; }
.progress-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 4px 0 10px; letter-spacing: -0.02em; }
.progress-big { display: flex; align-items: center; gap: 22px; margin: 12px 0 26px; }
.progress-ring { --p: 0; position: relative; width: 132px; height: 132px; border-radius: 50%; flex: none;
  background: conic-gradient(#f0a03a calc(var(--p) * 1%), var(--surface2) 0); box-shadow: 0 10px 30px var(--shadow); }
.progress-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg); }
.progress-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800; }
.progress-big-words { display: flex; flex-direction: column; gap: 2px; }
.progress-big-words strong { font-size: 1.3rem; }
.progress-group { padding: 22px 24px; margin-bottom: 20px; }
.progress-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.progress-group-icon { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.progress-row { margin-bottom: 18px; }
.progress-row:last-child { margin-bottom: 0; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.progress-label { font-weight: 700; }
.progress-count { font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-track { position: relative; height: 22px; border-radius: 999px; overflow: hidden; background: var(--surface2);
  border: 1px solid var(--line); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }
.progress-fill { height: 100%; border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(90deg, #c9761e, #f0a03a 60%, #ffd27a); box-shadow: 0 0 14px rgba(240, 160, 58, .45);
  background-size: 200% 100%; animation: progress-shine 3.5s linear infinite; }
@keyframes progress-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.progress-row.full .progress-fill { background: linear-gradient(90deg, #1f9d55, #34d27a, #9ff0c0); box-shadow: 0 0 14px rgba(52, 210, 122, .5); }
.progress-pct { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 0.76rem; font-weight: 800; color: var(--text); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.progress-notch { position: absolute; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.12); }
.progress-how { margin: 6px 0 0; font-size: 0.84rem; color: var(--muted); }
.progress-row.empty .progress-label::after { content: "Needs players"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem;
  font-weight: 700; vertical-align: 2px; color: #f0a03a; background: color-mix(in srgb, #f0a03a 14%, var(--surface)); }
.progress-help { margin: 30px 0 10px; }
.progress-help .tip-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; animation: none; } }

/* talent planner: trees reach the pick order's bottom, a cleaner points line and search (website 0.9.1) */
.planner .tree { margin: 0; }
.planner .summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 8px 10px; margin: 0;
  background: var(--surface2); border: 1px solid var(--line); border-left: 3px solid var(--class-color, var(--accent)); border-radius: 12px; }
.summary-row { margin-bottom: 16px; align-items: stretch; }
.summary-row .summary { flex: 1 1 auto; }
.sum-trees { display: flex; flex-wrap: wrap; gap: 6px; }
.sum-tree { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 0.86rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.sum-tree.some { color: var(--text); border-color: color-mix(in srgb, var(--class-color, var(--accent)) 50%, var(--line)); }
.sum-tree strong { min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; color: var(--text); }
.sum-tree.some strong { color: var(--class-color, var(--accent)); }
.sum-icon { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.sum-tree:not(.some) .sum-icon { filter: grayscale(0.7); opacity: .7; }
.sum-points { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sum-points strong { color: var(--text); font-size: 1.05rem; }
.sum-meter { width: 90px; height: 6px; margin-left: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.sum-meter-fill { display: block; height: 100%; background: var(--class-color, var(--accent)); }
.sum-level { margin-left: auto; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.86rem;
  color: var(--class-color, var(--accent)); background: color-mix(in srgb, var(--class-color, var(--accent)) 14%, var(--surface)); }
.sum-level.none { color: var(--muted); background: var(--surface); font-weight: 600; }
.summary .match-count { padding: 4px 6px; }
.talent-search { position: relative; display: flex; align-items: center; }
.talent-search .search { width: 240px; height: 100%; min-height: 42px; padding: 8px 14px 8px 38px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 0.92rem; }
.talent-search .search:focus { outline: none; border-color: var(--class-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--class-color, var(--accent)) 22%, transparent); }
.search-glass { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none;
  background: var(--class-color, var(--accent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 700px) { .talent-search, .talent-search .search { width: 100%; } .sum-level { margin-left: 0; } .sum-tree-name { display: none; } }

/* progress bars fill without moving (Kris, 2026-11-16) */
.progress-fill { transition: none; animation: none; background-size: auto; }

.progress-help { margin: 0 0 26px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid #f0a03a; }
.progress-help h2 { margin-top: 0; }
.progress-help .btn { margin: 0; }

/* community page (website 0.10) */
.community-hero { padding: 24px 0 8px; }
.community-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 4px 0 10px; letter-spacing: -0.02em; }
.community-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 26px; }
.community-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid #f0a03a; }
.community-tile.raid { border-top-color: #e2483a; }
.ct-value { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ct-label { font-weight: 700; }
.ct-note { font-size: 0.8rem; color: var(--muted); }
.community-empty { padding: 20px 22px; margin-bottom: 26px; border-left: 3px solid #f0a03a; }
.community-empty h2 { margin-top: 0; }
.community-section { margin-bottom: 30px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ach-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ach-card:not(.done) .ach-icon { filter: grayscale(1) brightness(.6); }
.ach-card.done { border-color: color-mix(in srgb, #e3b341 55%, var(--line)); background: color-mix(in srgb, #e3b341 7%, var(--surface)); }
.ach-icon { width: 44px; height: 44px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.ach-card.done .ach-icon { box-shadow: 0 0 0 2px #e3b341, 0 0 14px rgba(227, 179, 65, .4); }
.ach-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ach-text { font-size: 0.86rem; color: var(--muted); }
.ach-bar { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; margin-top: 4px; }
.ach-fill { display: block; height: 100%; background: #f0a03a; }
.ach-count { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ach-state { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ach-card.done .ach-state { color: #e3b341; }
.community-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.community-list { padding: 18px 20px; }
.community-list h2 { margin-top: 0; font-size: 1.1rem; }
.rank-list { margin: 0; padding-left: 22px; }
.rank-list li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.rank-list li .note { flex: 1; }
.rank-kills { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: #f0a03a; }
.kill-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 0.9rem; }
.kill-bar { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.kill-bar span { display: block; height: 100%; background: #f0a03a; }
@media (max-width: 760px) { .community-two { grid-template-columns: 1fr; } .kill-row { grid-template-columns: 1fr auto; } .kill-bar { display: none; } }

/* call to join in */
.cta-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; margin: 40px 0 10px;
  padding: 28px 30px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(80% 160% at 100% 0%, rgba(240, 160, 58, 0.22), transparent 60%), radial-gradient(60% 140% at 0% 100%, rgba(240, 122, 30, 0.14), transparent 60%), var(--surface); }
.cta-words { flex: 1 1 420px; max-width: 46em; }
.cta-eyebrow { margin: 0 0 6px; font-size: 0.76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f0a03a; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
.cta-band p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.cta-main { background: #f07a1e; border-color: #f07a1e; color: #111; padding-left: 22px; padding-right: 22px; }
.btn.cta-main:hover { background: #f58a33; }
.cta-band.cta-top { margin: -18px 0 34px; }

/* progress hero: words beside one tidy card (website 0.10.4) */
.progress-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; align-items: center; padding: 26px 0 22px; }
.progress-hero-text .lead { margin-bottom: 0; }
.progress-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--line); border-top: 3px solid #f0a03a; box-shadow: 0 14px 34px var(--shadow);
  background: radial-gradient(120% 120% at 0% 0%, rgba(240, 160, 58, 0.14), transparent 55%), var(--surface); }
.progress-card .progress-ring { width: 128px; height: 128px; box-shadow: none; }
.progress-card .progress-ring::before { inset: 11px; background: var(--surface); }
.progress-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.progress-card .progress-ring-num { position: static; font-size: 1.65rem; font-weight: 800; }
.progress-ring-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.progress-card-words { min-width: 0; }
.progress-card-big { margin: 0; font-size: 1.05rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-card-big strong { font-size: 1.9rem; color: var(--text); letter-spacing: -0.02em; margin-right: 2px; }
.progress-card-sub { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.progress-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.progress-chip { padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); }
.progress-chip strong { color: var(--text); }
.progress-card-foot { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .progress-hero { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .progress-card { grid-template-columns: 1fr; justify-items: start; } }

/* dungeons: the journey from 10 to 60, dungeon doors colored by your level (website 0.11) */
.dg-hero { position: relative; padding: 30px 30px 22px; margin: 6px 0 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 140% at 100% 0%, rgba(240, 122, 30, 0.22), transparent 60%),
              radial-gradient(60% 120% at 0% 100%, rgba(120, 60, 200, 0.16), transparent 60%), var(--surface); }
.dg-hero h1 { margin: 2px 0 8px; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
.dg-hero .lead { max-width: 44em; }
.dg-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 6px 0 12px; }
.dg-level { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-weight: 700; }
.dg-level span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .08em; color: #f0a03a; }
.dg-level input { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 800 1.1rem "Inter", system-ui, sans-serif; text-align: center; }
.dg-bar .search { flex: 1 1 260px; }
.dg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--muted); }
.dg-key { display: inline-flex; align-items: center; gap: 6px; }
.dg-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--dc); box-shadow: 0 0 8px var(--dc); }
.diff-red { --dc: #ff4b3e; } .diff-orange { --dc: #ff8a1e; } .diff-yellow { --dc: #ffd100; } .diff-green { --dc: #3fcf6a; } .diff-grey { --dc: #8d8d94; }
details.dungeon-changes { padding: 12px 18px; }
details.dungeon-changes > summary { cursor: pointer; font-weight: 700; }
details.dungeon-changes ul { margin-top: 8px; }

.dg-road { position: relative; padding-left: 34px; margin-top: 10px; }
.dg-road::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #1eff00, #0070dd 50%, #a335ee); opacity: .7; }
.dg-stage { position: relative; margin: 0 0 30px; }
.dg-stage-head { display: flex; align-items: center; gap: 14px; margin: 0 0 12px -34px; }
.dg-stage-num { flex: none; width: 31px; height: 31px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); z-index: 1; }
.dg-stage.here .dg-stage-num { border-color: #ffd100; color: #ffd100; box-shadow: 0 0 0 4px rgba(255, 209, 0, .15), 0 0 16px rgba(255, 209, 0, .5); }
.dg-stage-head h2 { margin: 0; }
.dg-stage-head .note { margin: 2px 0 0; }
.dg-stage.here .dg-stage-head .note { color: #ffd100; font-weight: 600; }
.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.dg-card { --dc: var(--line-strong); position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 190px; padding: 18px 18px 14px;
  text-decoration: none; color: var(--text); overflow: hidden;
  border-radius: 90px 90px 14px 14px / 46px 46px 14px 14px;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--dc) 20%, transparent), transparent 60%),
              linear-gradient(180deg, #1c1c21, #121215);
  border: 1px solid color-mix(in srgb, var(--dc) 55%, var(--line));
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.35), inset 0 0 30px rgba(0,0,0,.5);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
:root[data-theme="light"] .dg-card { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--dc) 22%, transparent), transparent 60%), linear-gradient(180deg, #2a2a31, #1a1a1f); color: #f2f2f4; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dg-card { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--dc) 22%, transparent), transparent 60%), linear-gradient(180deg, #2a2a31, #1a1a1f); color: #f2f2f4; } }
.dg-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 4px rgba(0,0,0,.35), 0 0 0 1px var(--dc), 0 14px 34px rgba(0,0,0,.5), 0 0 26px color-mix(in srgb, var(--dc) 45%, transparent); }
.dg-card.diff-yellow { box-shadow: inset 0 0 0 4px rgba(0,0,0,.35), 0 0 18px rgba(255, 209, 0, .25); }
.dg-card.is-raid { min-height: 210px; border-width: 2px; }
.dg-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px; }
.dg-lvl { font-weight: 800; font-size: 0.82rem; padding: 2px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
  color: #111; background: var(--dc); }
.dg-card:not([class*="diff-"]) .dg-lvl { color: var(--text); background: rgba(255,255,255,.1); }
.dg-size { font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a9a9b3; }
.dg-new { align-self: center; margin-top: 2px; font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3fcf6a; }
.dg-name { margin: 6px 0 0; text-align: center; font-size: 1.12rem; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.dg-zone { margin: 0; text-align: center; font-size: 0.8rem; color: #a9a9b3; }
.dg-diff { align-self: center; margin-top: 4px; font-size: 0.74rem; font-weight: 800; color: var(--dc); text-transform: uppercase; letter-spacing: .06em; }
.dg-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.dg-skulls { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.dg-skulls i { width: 13px; height: 13px; background: #55555e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 3 5.8 3 10.6c0 2.7 1.2 4.6 3 5.8V20a1 1 0 0 0 1 1h2v-2h2v2h2v-2h2v2h2a1 1 0 0 0 1-1v-3.6c1.8-1.2 3-3.1 3-5.8C21 5.8 17.5 2 12 2zm-3.5 12a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4zm7 0a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 3 5.8 3 10.6c0 2.7 1.2 4.6 3 5.8V20a1 1 0 0 0 1 1h2v-2h2v2h2v-2h2v2h2a1 1 0 0 0 1-1v-3.6c1.8-1.2 3-3.1 3-5.8C21 5.8 17.5 2 12 2zm-3.5 12a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4zm7 0a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dg-skulls i.down { background: #f0a03a; filter: drop-shadow(0 0 3px rgba(240, 160, 58, .8)); }
.dg-more { font-size: 0.7rem; color: #a9a9b3; margin-left: 2px; }
.dg-quests { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 700; color: #e8e8ec; }
.dg-quests b { color: #ffd100; font-size: 1.05rem; text-shadow: 0 0 6px rgba(255, 209, 0, .6), 0 1px 0 #000; }
.dg-sealed { margin: 10px 0 30px; }
.dg-sealed > summary { cursor: pointer; list-style: none; }
.dg-sealed > summary::-webkit-details-marker { display: none; }
.dg-sealed .dg-card { filter: grayscale(.85) brightness(.75); }
.dg-sealed .dg-card:hover { filter: none; }
@media (max-width: 600px) { .dg-road { padding-left: 0; } .dg-road::before { display: none; } .dg-stage-head { margin-left: 0; } .dg-hero { padding: 22px 18px; } }
.dg-card.diff-red { --dc: #ff4b3e; } .dg-card.diff-orange { --dc: #ff8a1e; } .dg-card.diff-yellow { --dc: #ffd100; } .dg-card.diff-green { --dc: #3fcf6a; } .dg-card.diff-grey { --dc: #8d8d94; }
.dg-card.group-forever:not([class*="diff-"]) { --dc: #3fcf6a; } .dg-card.is-raid:not([class*="diff-"]) { --dc: #e2483a; }

/* the header (website 0.12): grouped menus with dropdowns, a Join Roam button */
.site-head { display: block; padding: 0; z-index: 30; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)); }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 122, 30, .55) 30%, rgba(163, 53, 238, .45) 70%, transparent); }
.head-inner { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 24px; }
.brand { gap: 11px; padding: 4px 8px 4px 4px; border-radius: 12px; transition: background .15s; }
.brand:hover { background: var(--surface2); }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 16px rgba(240, 122, 30, .35); }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #f0a03a; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font: 600 0.95rem "Inter", system-ui, sans-serif; text-decoration: none; position: relative; transition: color .15s, background .15s; }
.nav-top:hover, .nav-group.open > .nav-top { color: var(--text); background: var(--surface2); }
.nav-top.here { color: var(--text); }
.nav-top.here::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #f07a1e, #f0a03a); box-shadow: 0 0 8px rgba(240, 122, 30, .7); }
.nav-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
  opacity: .7; transition: transform .2s; }
.nav-group.open .nav-caret { transform: translateY(1px) rotate(225deg); }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 320px; padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 22px 50px var(--shadow), 0 0 0 1px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .16s, transform .16s, visibility .16s; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-group.open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background .12s; }
.nav-item:hover { background: var(--surface2); }
.nav-item.here { background: color-mix(in srgb, #f07a1e 12%, var(--surface)); }
.nav-icon { width: 36px; height: 36px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.nav-words { display: flex; flex-direction: column; min-width: 0; }
.nav-words strong { font-size: 0.95rem; }
.nav-words span { font-size: 0.8rem; color: var(--muted); }
.head-join { flex: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; text-decoration: none; color: #111;
  background: linear-gradient(135deg, #f07a1e, #f0a03a); box-shadow: 0 6px 18px rgba(240, 122, 30, .35); transition: transform .15s, box-shadow .15s; }
.head-join:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(240, 122, 30, .5); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: var(--text); content: ""; }
.nav-toggle span { top: 19px; } .nav-toggle span::before { top: -6px; left: 0; } .nav-toggle span::after { top: 6px; left: 0; }
@media (max-width: 900px) {
  .site-head { position: sticky; }
  .head-inner { flex-wrap: wrap; padding: 8px 16px; gap: 10px; }
  .nav-toggle { display: block; }
  .head-join { order: 2; }
  .main-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 4px 0 6px; }
  .site-head.nav-open .main-nav { display: flex; }
  .nav-menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 10px; background: transparent; display: none; }
  .nav-group.open .nav-menu { display: block; transform: none; }
  .nav-top { justify-content: space-between; width: 100%; }
}
@media (max-width: 480px) { .brand-sub { display: none; } .head-join { padding: 8px 14px; } }

/* First Blood grid */
.fb-head { display: flex; align-items: center; gap: 12px; }
.fb-head h2 { margin: 0; }
.fb-dungeons { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fb-dungeon { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fb-dungeon > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 700; }
.fb-dungeon > summary::-webkit-details-marker { display: none; }
.fb-dungeon > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; }
.fb-dungeon[open] > summary::before { transform: rotate(45deg); }
.fb-dungeon.raid .fb-dname { color: #ff8a7a; }
.fb-score { margin-left: auto; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fb-score.done { color: #e3b341; }
.fb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; padding: 0 12px 12px; }
.fb-tile { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--text);
  background: var(--surface2); border: 1px dashed var(--line-strong); }
.fb-tile.claimed { border: 1px solid color-mix(in srgb, #e3b341 55%, var(--line)); background: color-mix(in srgb, #e3b341 8%, var(--surface2)); }
.fb-boss { font-weight: 600; font-size: 0.88rem; }
.fb-who { font-weight: 800; font-size: 0.86rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.fb-date { font-size: 0.72rem; color: var(--muted); }
.fb-open { font-size: 0.76rem; color: var(--muted); font-style: italic; }

/* one dungeon as a journey, top to bottom (website 0.12) */
.journey { position: relative; padding-left: 46px; margin-top: 6px; }
.journey::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 30px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #1eff00, #0070dd 50%, #a335ee); opacity: .7; }
.journey-step { position: relative; margin: 0 0 34px; }
.journey-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px -46px; }
.journey-num { flex: none; width: 37px; height: 37px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1;
  font-weight: 800; font-size: 1.05rem; color: var(--text); background: var(--surface); border: 2px solid var(--grp, var(--accent));
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px color-mix(in srgb, var(--grp, var(--accent)) 45%, transparent); }
.journey-head h2 { margin: 0; font-size: 1.35rem; }
.journey-head .note { margin: 2px 0 0; }
.journey-step > .dungeon-section { margin-bottom: 0; }
.journey-step > .dungeon-section > h2 { display: none; }
.journey-step > .dungeon-row { margin-bottom: 0; }
.journey .boss-grid.with-guide { grid-template-columns: 1fr; gap: 10px; counter-reset: none; }
.journey .boss-grid > li { position: relative; }
.journey .boss-grid > li::before { content: ""; position: absolute; left: -27.5px; transform: translateX(-50%); box-sizing: border-box; top: 22px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--grp, var(--accent)); z-index: 1; }
.journey .boss-grid > li:last-child::before { width: 15px; height: 15px; top: 20px; background: var(--grp, var(--accent)); box-shadow: 0 0 12px var(--grp, var(--accent)); }
.journey .boss-grid.with-guide .boss-card { padding: 14px 16px 14px 14px; }
.journey .boss-grid > li:last-child .boss-card { border-width: 2px; border-color: color-mix(in srgb, var(--grp, var(--accent)) 60%, var(--line));
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--grp, var(--accent)) 12%, transparent), transparent 60%), var(--surface); }
.journey .boss-summary { font-size: 0.92rem; }
.journey .boss-tactics { font-size: 0.86rem; }
@media (max-width: 600px) { .journey { padding-left: 0; } .journey::before, .journey .boss-grid > li::before { display: none; } .journey-head { margin-left: 0; } }
.journey-num, .dg-stage-num { box-sizing: border-box; }

/* dungeon doors: frame in the rarity fade (--dc, set per card), difficulty for your level on the pill and label (--df) */
.dg-card.diff-red { --df: #ff4b3e; } .dg-card.diff-orange { --df: #ff8a1e; } .dg-card.diff-yellow { --df: #ffd100; }
.dg-card.diff-green { --df: #3fcf6a; } .dg-card.diff-grey { --df: #8d8d94; }
.dg-card .dg-lvl { background: var(--df, rgba(255,255,255,.12)); color: #111; }
.dg-card:not([class*="diff-"]) .dg-lvl { color: #f2f2f4; }
.dg-card .dg-diff { color: var(--df); }
.dg-card.diff-yellow { box-shadow: inset 0 0 0 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255, 209, 0, .5), 0 0 18px rgba(255, 209, 0, .25); }

/* a dungeon's community progress, in its banner */
.dg-progress { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line); max-width: 760px; }
.dg-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dg-progress-title { font-size: 0.78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f0a03a; }
.dg-progress-pct { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dg-progress .progress-track { height: 16px; }
.dg-progress-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dg-progress-part { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); }
.dg-progress-part strong { color: var(--text); font-variant-numeric: tabular-nums; }
.dg-progress-part.done { border-color: color-mix(in srgb, #34d27a 50%, var(--line)); }
.dg-progress-part.done strong { color: #34d27a; }
.dg-progress-help { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }

/* build planner: the build's spec */
.build-spec-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.spec-btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.spec-btn:hover { border-color: var(--class-color); color: var(--text); }
.spec-btn.active { color: var(--class-color); border-color: var(--class-color); background: color-mix(in srgb, var(--class-color) 14%, var(--surface)); }
.spec-btn.auto { border-style: dashed; }
.spec-icon { width: 22px; height: 22px; border-radius: 50%; }

/* community builds (website 0.13) */
.cb-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 0 10px; }
.cb-hero h1 { margin: 2px 0 8px; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
.cb-hero .lead { margin: 0; }
.cb-make { white-space: nowrap; }
.cb-soon { margin: 6px 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid #a335ee; }
.cb-soon strong { color: var(--text); }
.cb-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.cb-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-class { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.cb-class:first-child { padding-left: 12px; }
.cb-class .class-icon { width: 24px; height: 24px; border-radius: 50%; }
.cb-class:hover { color: var(--class-color, var(--text)); }
.cb-class.active { color: var(--class-color, var(--text)); border-color: var(--class-color, var(--accent)); background: color-mix(in srgb, var(--class-color, var(--accent)) 14%, var(--surface)); }
.cb-row2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-select { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; }
.cb-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.cb-search { margin-left: auto; min-width: 220px; }
.cb-count { margin: 4px 0 10px; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 20px; }
.cb-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--class-color); transition: transform .15s, box-shadow .15s; }
.cb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--shadow); }
.cb-card-top { display: flex; align-items: center; gap: 12px; }
.cb-spec-icon { width: 42px; height: 42px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 12px color-mix(in srgb, var(--class-color) 40%, transparent); }
.cb-card-words { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cb-name { font-weight: 700; font-size: 1.02rem; color: var(--text); text-decoration: none; }
.cb-name:hover { color: var(--class-color); }
.cb-meta { font-size: 0.82rem; color: var(--muted); }
.cb-classname { font-weight: 700; }
.cb-fav { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.cb-fav .cb-star { font-size: 1rem; line-height: 1; }
.cb-fav:hover { color: #ffd100; border-color: color-mix(in srgb, #ffd100 50%, var(--line)); }
.cb-fav.on { color: #ffd100; border-color: #ffd100; background: color-mix(in srgb, #ffd100 12%, var(--surface)); }
.cb-by { margin: 0; font-size: 0.84rem; color: var(--muted); }
.cb-by strong { color: var(--text); }
.cb-official { color: #f0a03a !important; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 600px) { .cb-search { margin-left: 0; flex: 1 1 100%; } }

/* quest page, laid out like the game's quest log (website 0.14) */
.quest-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.quest-page > .crumbs, .quest-page > .ql-wait, .quest-page > .cta-band { grid-column: 1 / -1; }
.quest-log { padding: 24px 26px; border-radius: 16px; border: 1px solid #5a4a2a; color: #2b1d0e;
  background: linear-gradient(180deg, #f3e6c4, #e8d6a8); box-shadow: inset 0 0 40px rgba(120, 80, 20, .25), 0 14px 34px var(--shadow); }
.ql-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(90, 60, 20, .3); }
.ql-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900;
  color: #ffd100; background: #2b1d0e; text-shadow: 0 0 8px rgba(255, 209, 0, .8); }
.quest-log h1 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3vw, 2rem); color: #3a2208; }
.ql-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ql-tag { padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(90, 60, 20, .14); color: #4a3216; }
.ql-tag.side-a { background: rgba(47, 108, 224, .2); color: #173f8c; }
.ql-tag.side-h { background: rgba(196, 43, 43, .2); color: #7a1610; }
.ql-tag.ql-classic { background: rgba(160, 100, 0, .2); color: #6b4300; }
.ql-block { margin: 14px 0 0; }
.ql-block h2 { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; color: #5a1e00; }
.ql-block p { margin: 0 0 8px; line-height: 1.65; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
.ql-objectives { margin: 0; padding-left: 20px; font-family: Georgia, serif; }
.ql-rewards .loot-grid { margin: 6px 0 8px; }
.ql-rewards .loot-tile { background: rgba(43, 29, 14, .9); }
.ql-money { font-weight: 700; color: #3a2208; }
.ql-side { display: flex; flex-direction: column; gap: 12px; }
.ql-side h2 { margin: 0 0 8px; font-size: 1rem; }
.ql-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 0.9rem; }
.ql-dl dt { color: var(--muted); font-weight: 700; }
.ql-dl dd { margin: 0; }
.ql-chain h3 { margin: 8px 0 4px; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ql-chain ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
@media (max-width: 860px) { .quest-page { grid-template-columns: 1fr; } }

/* copy fallback: only the string, selected */
.copy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface2); border: 1px solid #f0a03a; }
.copy-box-label { font-size: 0.84rem; color: var(--muted); }
.copy-box-input { flex: 1 1 280px; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 0.86rem ui-monospace, Consolas, monospace; }

/* professions style pass (website 0.15) */
.kind-primary { --pk: #f0a03a; } .kind-gathering { --pk: #3fcf6a; } .kind-secondary { --pk: #3c9cff; }
.prof-hero-list { padding: 28px 30px 22px; margin: 6px 0 22px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(70% 140% at 100% 0%, rgba(240, 160, 58, .18), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(63, 207, 106, .12), transparent 60%), var(--surface); }
.prof-hero-list h1 { margin: 2px 0 8px; font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; }
.prof-totals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.prof-total { padding: 4px 12px; border-radius: 999px; font-size: 0.86rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); }
.prof-total strong { color: var(--text); }
.prof-group { margin-bottom: 30px; }
.prof-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.prof-group-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.prof-group-head h2::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--pk); }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.prof-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--pk) 12%, transparent), transparent 55%), var(--surface);
  border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.prof-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pk) 55%, var(--line)); box-shadow: 0 12px 28px var(--shadow); }
.prof-tile-icon { width: 52px; height: 52px; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 16px color-mix(in srgb, var(--pk) 40%, transparent); }
.prof-tile-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prof-tile-name { font-weight: 800; font-size: 1.08rem; }
.prof-tile-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; color: var(--muted); }
.prof-tile-new { font-size: 0.72rem; font-weight: 700; color: #3fcf6a; }

.prof-hero { padding: 26px 28px; margin: 4px 0 26px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(110% 140% at 100% 0%, color-mix(in srgb, var(--pk) 18%, transparent), transparent 60%), var(--surface); }
.prof-hero-top { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.prof-hero-top .eyebrow { color: var(--pk); margin: 0 0 4px; }
.prof-hero-top h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.prof-hero-icon { width: 72px; height: 72px; border-radius: 16px; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 24px color-mix(in srgb, var(--pk) 45%, transparent); }
.prof-desc { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.6; color: var(--muted); max-width: 52em; }
.rank-ladder { display: flex; gap: 4px; margin-top: 4px; }
.rank-step { position: relative; flex-basis: 0; min-width: 90px; padding: 8px 10px 9px; border-radius: 9px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--pk) calc(12% + var(--rank-i) * 9%), var(--surface2)); border: 1px solid color-mix(in srgb, var(--pk) 40%, var(--line)); }
.rank-name { font-weight: 800; font-size: 0.86rem; }
.rank-range { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.prof-page > section:not(.prof-hero):not(.cta-band) > h2,
.prof-page .gather-sec > h2, .prof-page .recipes-sec > h2 { display: flex; align-items: center; gap: 10px; }
.prof-page > section:not(.prof-hero):not(.cta-band) > h2::before,
.prof-page .gather-sec > h2::before, .prof-page .recipes-sec > h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--pk); }
.prof-page .table-wrap { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: auto; }
.prof-page .data-table thead th { background: var(--surface2); position: sticky; top: 0; }
.prof-page .recipes-sec .filters { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 600px) { .rank-ladder { flex-wrap: wrap; } .rank-step { flex: 1 1 45% !important; } .prof-hero { padding: 20px; } }

/* quest log in dark mode: aged dark parchment instead of bright paper (Kris, 2026-11-16) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quest-log { color: #e6d7b5; border-color: #4a3a22;
  background: radial-gradient(120% 90% at 50% 0%, rgba(120, 85, 35, .28), transparent 65%), linear-gradient(180deg, #2a2116, #1d1710);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .55), 0 14px 34px var(--shadow); } }
:root[data-theme="dark"] .quest-log { color: #e6d7b5; border-color: #4a3a22;
  background: radial-gradient(120% 90% at 50% 0%, rgba(120, 85, 35, .28), transparent 65%), linear-gradient(180deg, #2a2116, #1d1710);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .55), 0 14px 34px var(--shadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quest-log h1 { color: #f3dfae; }
  :root:not([data-theme="light"]) .ql-block h2 { color: #e8b04a; }
  :root:not([data-theme="light"]) .ql-head { border-bottom-color: rgba(232, 176, 74, .25); }
  :root:not([data-theme="light"]) .ql-tag { background: rgba(232, 176, 74, .14); color: #e6d7b5; }
  :root:not([data-theme="light"]) .ql-tag.side-a { background: rgba(47, 108, 224, .25); color: #a9c4ff; }
  :root:not([data-theme="light"]) .ql-tag.side-h { background: rgba(196, 43, 43, .25); color: #ffb0a8; }
  :root:not([data-theme="light"]) .ql-tag.ql-classic { background: rgba(200, 140, 30, .22); color: #f0c879; }
  :root:not([data-theme="light"]) .ql-money { color: #f3dfae; }
  :root:not([data-theme="light"]) .ql-mark { background: #120d07; box-shadow: 0 0 0 2px rgba(255, 209, 0, .35); } }
:root[data-theme="dark"] .quest-log h1 { color: #f3dfae; } :root[data-theme="dark"] .ql-block h2 { color: #e8b04a; }
:root[data-theme="dark"] .ql-tag { background: rgba(232, 176, 74, .14); color: #e6d7b5; } :root[data-theme="dark"] .ql-money { color: #f3dfae; }

/* between-boss events: indented panels on the road */
.boss-grid .boss-event { padding-left: 34px; }
.boss-grid.with-guide .boss-event { display: block; }
.event-card { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--grp, var(--accent)) 6%, var(--surface2));
  border: 1px dashed color-mix(in srgb, var(--grp, var(--accent)) 45%, var(--line)); }
.event-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-top strong { font-size: 0.92rem; }
.event-icon { font-size: 0.95rem; }
.event-card p { margin: 4px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.event-card .badge { margin-left: 0; }
.journey .boss-grid > li.boss-event::before { width: 9px; height: 9px; top: 16px; border-radius: 2px; transform: translateX(-50%) rotate(45deg); background: var(--surface2); }
.journey .boss-grid > li.boss-event:last-child::before { width: 9px; height: 9px; top: 16px; background: var(--surface2); box-shadow: none; }
.event-icon { font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  color: var(--grp, var(--accent)); background: color-mix(in srgb, var(--grp, var(--accent)) 16%, var(--surface)); }
.kind-warning .event-icon { color: #ff8a1e; background: color-mix(in srgb, #ff8a1e 16%, var(--surface)); }
.kind-key .event-icon { color: #ffd100; background: color-mix(in srgb, #ffd100 14%, var(--surface)); }

/* community: the adventurers who chose to be shown */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.member-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--class-color); }
.member-top { display: flex; align-items: center; gap: 10px; }
.member-level { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
  background: color-mix(in srgb, var(--class-color) 18%, var(--surface)); color: var(--class-color); border: 2px solid color-mix(in srgb, var(--class-color) 55%, var(--line)); }
.member-words { display: flex; flex-direction: column; min-width: 0; }
.member-name { color: var(--class-color); font-size: 1.02rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.member-class { font-size: 0.78rem; color: var(--muted); }
.member-profs, .member-ach { display: flex; flex-wrap: wrap; gap: 5px; }
.member-prof { padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); }
.member-prof strong { color: var(--text); }
.member-prof.maxed { border-color: color-mix(in srgb, #e3b341 55%, var(--line)); }
.member-prof.maxed strong { color: #e3b341; }
.member-badge { padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #e3b341; background: color-mix(in srgb, #e3b341 12%, var(--surface)); }
.members-empty { font-style: italic; }
.ql-complete, .ql-missing { grid-column: 1; margin: -6px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 0.86rem; }
.ql-complete { color: #34d27a; background: color-mix(in srgb, #34d27a 10%, var(--surface)); border: 1px solid color-mix(in srgb, #34d27a 40%, var(--line)); }
.ql-missing { color: var(--muted); background: var(--surface2); border: 1px dashed #f0a03a; }

/* progress: plain counts where there's no honest total */
.progress-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.progress-countbox { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.pc-value { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #f0a03a; }
.pc-label { font-size: 0.82rem; color: var(--muted); }
.dg-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dg-count { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.dg-count-n { font-size: 1.2rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.dg-count.on .dg-count-n { color: #f0a03a; }
.dg-count-l { font-size: 0.76rem; color: var(--muted); }

/* quest text not yet unlocked by the community */
.ql-locked { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(90, 60, 20, .45); background: rgba(90, 60, 20, .08); }
.ql-locked h2 { margin: 0 0 2px; }
.ql-locked p { margin: 0; font-style: italic; }
.ql-lock-icon { flex: none; width: 34px; height: 34px; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ql-locked { border-color: rgba(232, 176, 74, .35); background: rgba(232, 176, 74, .06); } }
.dg-wings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.dg-wings-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.dg-wing { padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dg-wing strong { color: var(--text); }

/* the community lock: sealed, chained, glowing (website 0.17) */
.roam-seal { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px;
  min-height: 150px; margin: 16px 0 4px; padding: 22px 24px; border-radius: 14px; isolation: isolate;
  color: #f2e2b8; border: 1px solid rgba(240, 176, 74, .45);
  background: radial-gradient(70% 120% at 15% 50%, rgba(240, 160, 58, .22), transparent 60%),
              linear-gradient(160deg, #1b140b, #0f0b06 70%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.6), 0 10px 26px rgba(0,0,0,.35); }
.seal-ghost { position: absolute; inset: 18px 24px; display: flex; flex-direction: column; gap: 11px; z-index: -2; filter: blur(3.5px); opacity: .35; }
.seal-ghost span { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #c9a46a, #8a6a3a); }
.seal-chains { position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(32deg, transparent 0 46%, rgba(170, 140, 90, .55) 46% 47.2%, rgba(60, 45, 25, .9) 47.2% 48.4%, transparent 48.4% 100%),
    repeating-linear-gradient(-32deg, transparent 0 46%, rgba(170, 140, 90, .45) 46% 47.2%, rgba(60, 45, 25, .9) 47.2% 48.4%, transparent 48.4% 100%); }
.seal-emblem { width: 78px; height: 78px; color: #f0b04a; filter: drop-shadow(0 0 10px rgba(240, 160, 58, .75)) drop-shadow(0 0 22px rgba(240, 120, 30, .35));
  animation: seal-glow 3.2s ease-in-out infinite; }
.seal-emblem svg { width: 100%; height: 100%; display: block; }
.seal-emblem svg circle:first-child { transform-origin: 32px 32px; animation: seal-spin 24s linear infinite; }
@keyframes seal-glow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(240, 160, 58, .6)) drop-shadow(0 0 18px rgba(240, 120, 30, .25)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 190, 90, .95)) drop-shadow(0 0 30px rgba(240, 120, 30, .5)); } }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.seal-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f0b04a; }
.seal-words strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; color: #fff1cf; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.seal-words p { margin: 0; color: #d9c8a0; font-size: 0.92rem; line-height: 1.5; max-width: 40em; }
.roam-seal::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 220, 150, .12), transparent); transition: left .9s ease; }
.roam-seal:hover::after { left: 120%; }
.roam-seal.small { min-height: 0; padding: 12px 14px; gap: 12px; margin: 0; }
.roam-seal.small .seal-emblem { width: 40px; height: 40px; }
.roam-seal.small .seal-words strong { font-size: 0.98rem; }
.roam-seal.small .seal-words p { font-size: 0.8rem; }
@media (prefers-reduced-motion: reduce) { .seal-emblem, .seal-emblem svg circle:first-child { animation: none; } .roam-seal::after { display: none; } }
@media (max-width: 520px) { .roam-seal { grid-template-columns: 1fr; justify-items: start; } }

/* achievements: the game-style window (website 0.17) */
.ach-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 24px 0 14px; }
.ach-hero h1 { margin: 2px 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.ach-hero .lead { margin: 0; max-width: 44em; }
.ach-score { display: flex; flex-direction: column; align-items: flex-end; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(227, 179, 65, .45);
  background: radial-gradient(120% 120% at 100% 0%, rgba(227, 179, 65, .18), transparent 60%), var(--surface); }
.ach-score-n { font-size: 1.9rem; font-weight: 800; color: #e3b341; font-variant-numeric: tabular-nums; }
.ach-score-l { font-size: 0.78rem; color: var(--muted); }
.ach-window { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.ach-nav { position: sticky; top: calc(var(--head-h, 64px) + 12px); display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px;
  background: linear-gradient(180deg, #1c160d, #120e08); border: 1px solid rgba(227, 179, 65, .35); }
.ach-tab { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent;
  color: #d8c9a2; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; }
.ach-tab:hover { background: rgba(227, 179, 65, .08); }
.ach-tab.active { color: #fff1cf; border-color: rgba(227, 179, 65, .55); background: rgba(227, 179, 65, .14); }
.ach-tab-icon { width: 28px; height: 28px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.ach-tab-n { margin-left: auto; font-size: 0.74rem; color: #a99a74; }
.ach-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ach-sec-title { margin: 0 0 4px; }
.ach-card { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ach-card.earned { border-color: rgba(227, 179, 65, .55); background: radial-gradient(120% 120% at 0% 0%, rgba(227, 179, 65, .1), transparent 55%), var(--surface); }
.ach-card-top { display: flex; align-items: center; gap: 12px; }
.ach-card-icon { width: 46px; height: 46px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.ach-card:not(.earned) .ach-card-icon { filter: grayscale(1) brightness(.6); }
.ach-card.earned .ach-card-icon { box-shadow: 0 0 0 2px #e3b341, 0 0 14px rgba(227, 179, 65, .45); }
.ach-card-words { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ach-card-words strong { font-size: 1.02rem; }
.ach-card-text { font-size: 0.86rem; color: var(--muted); }
.ach-tiers { display: flex; flex-direction: column; gap: 6px; }
.ach-tiers.dim { flex-direction: row; flex-wrap: wrap; opacity: .7; }
.ach-tier-row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--surface2); }
.ach-tier-row.done { border-left: 3px solid #e3b341; }
.ach-tier { font-weight: 700; font-size: 0.86rem; }
.ach-tiers.dim .ach-tier { padding: 2px 9px; border-radius: 999px; background: var(--surface2); font-weight: 600; font-size: 0.78rem; }
.ach-tier-goal { font-size: 0.8rem; color: var(--muted); }
.ach-tier-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ach-tier-who:empty { display: none; }
.ach-who { font-weight: 800; font-size: 0.84rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ach-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ach-chip { padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; color: var(--muted); background: var(--surface2); border: 1px dashed var(--line-strong); }
.ach-chip.done { color: #e3b341; border: 1px solid rgba(227, 179, 65, .6); background: rgba(227, 179, 65, .1); }
@media (max-width: 800px) { .ach-window { grid-template-columns: 1fr; } .ach-nav { position: static; flex-direction: row; flex-wrap: wrap; } .ach-tab-n { display: none; } }

/* community lock, cleaner (Kris, 2026-11-17: no chains or blurred lines behind the words) */
.roam-seal .seal-ghost, .roam-seal .seal-chains { display: none; }
.roam-seal { background: radial-gradient(60% 140% at 0% 50%, rgba(240, 160, 58, .16), transparent 55%), linear-gradient(180deg, #17120b, #100c07);
  border-color: rgba(240, 176, 74, .35); }
.roam-seal::before { content: ""; position: absolute; inset: 7px; pointer-events: none; border-radius: 10px;
  background:
    linear-gradient(#c9934a, #c9934a) top left / 16px 1.5px no-repeat, linear-gradient(#c9934a, #c9934a) top left / 1.5px 16px no-repeat,
    linear-gradient(#c9934a, #c9934a) top right / 16px 1.5px no-repeat, linear-gradient(#c9934a, #c9934a) top right / 1.5px 16px no-repeat,
    linear-gradient(#c9934a, #c9934a) bottom left / 16px 1.5px no-repeat, linear-gradient(#c9934a, #c9934a) bottom left / 1.5px 16px no-repeat,
    linear-gradient(#c9934a, #c9934a) bottom right / 16px 1.5px no-repeat, linear-gradient(#c9934a, #c9934a) bottom right / 1.5px 16px no-repeat;
  opacity: .55; }

/* the achievements goblet (Kris, 2026-11-17: Earthen Goblet) */
.ach-h1 { display: flex; align-items: center; gap: 14px; }
.ach-h1-icon { width: 52px; height: 52px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(227, 179, 65, .55), 0 6px 18px rgba(0,0,0,.35); }

/* first, second and third to earn an achievement: gold, silver, bronze (Kris, 2026-11-17) */
.ach-who { display: inline-flex; align-items: center; gap: 6px; }
.ach-who.medal { padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--m-edge); background: var(--m-bg); }
.ach-medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.72rem; font-weight: 900;
  color: #2a1a05; background: radial-gradient(circle at 35% 30%, var(--m-hi), var(--m-mid) 55%, var(--m-lo));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -2px 3px rgba(0,0,0,.35), 0 0 8px var(--m-glow); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.ach-who.gold   { --m-hi: #fff4c2; --m-mid: #e8b33a; --m-lo: #9a6a12; --m-glow: rgba(240, 180, 60, .6);  --m-edge: rgba(232, 179, 58, .6);  --m-bg: rgba(232, 179, 58, .12); }
.ach-who.silver { --m-hi: #ffffff; --m-mid: #c3c9d1; --m-lo: #7c838d; --m-glow: rgba(200, 210, 225, .5); --m-edge: rgba(195, 201, 209, .55); --m-bg: rgba(195, 201, 209, .1); }
.ach-who.bronze { --m-hi: #ffd9b0; --m-mid: #c27a3e; --m-lo: #6e3f17; --m-glow: rgba(200, 120, 60, .5);  --m-edge: rgba(194, 122, 62, .55); --m-bg: rgba(194, 122, 62, .1); }

/* game first, ForeverDB fills (Kris, 2026-11-17) */
.src-cover { margin: 4px 0 14px; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 6px; background: rgba(127,127,127,.08); font-size: 0.88rem; color: var(--muted); }
.src-cover.done { border-left-color: #5fbf5f; }
.src-cover strong { color: var(--text); }
.src-tag { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 0.62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed rgba(127,127,127,.6); vertical-align: middle; }
.ability-tile .src-tag { position: absolute; top: 4px; right: 4px; }
.ability-tile.from-fdb { position: relative; }
.src-cell { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.src-cell.game { color: #5fbf5f; font-weight: 700; }

/* Roam-only preview bar (Kris, 2026-11-17) */
.roam-only-bar { position: sticky; top: var(--head-h, 0); z-index: 40; padding: 8px 16px; text-align: center; font-size: 0.86rem;
  color: #1a1206; background: linear-gradient(90deg, #e3b341, #f0c860); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.roam-only-bar strong { margin-right: 4px; }
.roam-only-bar a { color: #1a1206; font-weight: 700; text-decoration: underline; }

/* the spoils, sealed until every boss is looted 10 times (Kris, 2026-11-17) */
.spoils-progress { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.spoils-boss { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; font-size: 0.82rem;
  border: 1px solid rgba(127,127,127,.35); background: rgba(127,127,127,.08); }
.spoils-boss .spoils-n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.spoils-boss.done { border-color: rgba(95,191,95,.6); }
.spoils-boss.done .spoils-n { color: #5fbf5f; }

/* Blizzard press art (Kris, 2026-11-17) */
.banner-art.single { display: block; opacity: 0.55; filter: none; }
.banner-art.single img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.banner-credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: 0.68rem; color: #e6e6ea; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 6px; }
.dungeon-hero.has-art { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.dungeon-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.dungeon-hero.has-art::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,10,14,.92) 0%, rgba(10,10,14,.72) 45%, rgba(10,10,14,.25) 100%),
              linear-gradient(0deg, rgba(10,10,14,.85) 0%, transparent 55%); }
.dungeon-hero.has-art > *:not(.dungeon-hero-art) { position: relative; z-index: 1; }
.dungeon-hero.has-art h1, .dungeon-hero.has-art .eyebrow, .dungeon-hero.has-art p { text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.dungeon-hero.has-art { color: #f2f2f4; }
.dungeon-hero-credit { position: absolute !important; right: 12px; bottom: 8px; z-index: 2 !important; font-size: 0.68rem; color: #e6e6ea; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 6px; }
.home-banner.has-photo { min-height: 440px; }
.home-banner.has-photo .banner-art.single { opacity: 1; }
.home-banner.has-photo::after { background: radial-gradient(ellipse at center, rgba(8,8,12,.62) 0%, rgba(8,8,12,.38) 55%, rgba(8,8,12,.2) 100%),
  linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
.home-banner.has-photo .banner-inner { color: #fff; }
.home-banner.has-photo .lead { color: #f0f0f2; opacity: 1; text-shadow: 0 2px 12px rgba(0,0,0,.8); }

/* WoW: Forever backdrop behind the top of each page (Kris, 2026-11-17), faded into the page color */
body.has-backdrop { position: relative; isolation: isolate; }
.page-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 620px; z-index: -1; overflow: hidden; pointer-events: none; }
.page-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 40%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 40%, transparent 100%); }
.page-backdrop::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 20%, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .page-backdrop img { opacity: .28; } }
:root[data-theme="light"] .page-backdrop img { opacity: .28; }
@media (max-width: 700px) { .page-backdrop { height: 420px; } }
/* stronger backdrop, and the hero panels let it show through */
.page-backdrop img { opacity: .72; }
body.has-backdrop .dg-hero, body.has-backdrop .bp-hero { background:
  radial-gradient(70% 140% at 100% 0%, rgba(240, 122, 30, 0.18), transparent 60%),
  color-mix(in srgb, var(--surface) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.has-backdrop main h1 { text-shadow: 0 2px 16px color-mix(in srgb, var(--bg) 80%, transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .page-backdrop img { opacity: .48; } }
:root[data-theme="light"] .page-backdrop img { opacity: .48; }
/* Dungeons: let the backdrop read through its big title panel (Kris, 2026-11-17) */
body.has-backdrop .dg-hero { background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 70%, transparent) 0%,
  color-mix(in srgb, var(--surface) 35%, transparent) 60%, color-mix(in srgb, var(--surface) 12%, transparent) 100%);
  -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }

/* dungeon cards with the dungeon's own art (Kris, 2026-11-17) */
.dg-card.has-art { isolation: isolate; }
.dg-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: opacity .2s, transform .4s; }
.dg-card.has-art::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 55%, transparent) 0%, color-mix(in srgb, var(--surface) 88%, transparent) 70%); }
.dg-card.has-art:hover .dg-card-art { opacity: .8; transform: scale(1.04); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dg-card-art { opacity: .4; } }
:root[data-theme="light"] .dg-card-art { opacity: .4; }
.dg-card-art { opacity: .9; filter: brightness(1.35) saturate(1.1); }
.dg-card.has-art::before { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 20%, transparent) 0%,
  color-mix(in srgb, var(--surface) 45%, transparent) 45%, color-mix(in srgb, var(--surface) 85%, transparent) 100%); }
.dg-card.has-art .dg-name, .dg-card.has-art .dg-zone { text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.dg-card.has-art:hover .dg-card-art { opacity: 1; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dg-card-art { opacity: .55; filter: none; } }
:root[data-theme="light"] .dg-card-art { opacity: .55; filter: none; }

/* each class's own talent tree backgrounds from the game, behind its trees (Kris, 2026-11-17) */
.planner .tree.has-bg { position: relative; isolation: isolate; }
.planner .tree.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--tree-bg) center top / cover no-repeat; opacity: .55; }
.planner .tree.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tree) 35%, transparent) 0%, color-mix(in srgb, var(--tree) 60%, transparent) 100%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .planner .tree.has-bg::before { opacity: .3; } }
:root[data-theme="light"] .planner .tree.has-bg::before { opacity: .3; }

/* where an item comes from, at the foot of its tooltip: green if Roam's database knows, red if not (Kris, 2026-11-17) */
.it-origin { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.8rem; }
.it-origin-known { color: #1eff00; }
.it-origin-unknown { color: #ff2020; }

/* class armor and weapons: confirmed by Roam players' characters vs from the class guide (Kris, 2026-11-17) */
.gear-chips li.confirmed { border-color: rgba(95, 191, 95, .7); }
.gear-chips li.confirmed::before { content: "✓ "; color: #5fbf5f; font-weight: 800; }
.gear-chips li.guide { opacity: .78; border-style: dashed; }

/* profession guides (Kris, 2026-11-17) */
.prof-guide { margin: 8px 0 28px; }
.prof-guide-row { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; }
.prof-guide-main, .prof-guide-side { padding: 18px 20px; }
.prof-guide-intro { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.6; }
.prof-guide-facts { display: grid; gap: 10px; }
.prof-fact { display: flex; flex-direction: column; gap: 2px; }
.prof-guide-side h3 { margin: 0 0 8px; font-size: 1rem; }
.prof-guide-side h3 + .guide-list + h3 { margin-top: 14px; }
.guide-list { margin: 0; padding-left: 18px; line-height: 1.55; }
.guide-list li + li { margin-top: 4px; }
.prof-general { margin: 14px 0 0; padding: 14px 20px; }
.prof-general summary { cursor: pointer; font-weight: 700; }
.prof-general[open] summary { margin-bottom: 10px; }
.prof-hero-list + .prof-general { margin: 0 0 24px; }
.prof-forever { --class-color: var(--accent); }
.prof-forever .new-item > div .small { color: var(--text); opacity: .85; }
.prof-forever .cat-count { justify-content: space-between; }
.prof-forever .new-head + .timeline, .prof-forever .new-list + .new-head { margin-top: 14px; }
@media (max-width: 860px) { .prof-guide-row { grid-template-columns: 1fr; } }
.has-tip { cursor: default; }
.item-tip .it-made { margin-top: 6px; color: #ffd100; }
.item-tip .it-line.muted { color: var(--muted); font-size: 0.85rem; }

/* item pages (Kris, 2026-11-17) */
.item-hero { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 18px; align-items: start; margin: 6px 0 26px; }
.item-card { position: static; display: block; max-width: none; pointer-events: auto; }
.item-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.item-card-head h1 { margin: 0; font-size: 1.4rem; }
.item-card-icon { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.item-side { display: flex; flex-direction: column; gap: 12px; }
.item-origin-panel { padding: 14px 18px; }
.item-origin-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.item-recipes { margin: 0 0 28px; }
a.item-link { text-decoration: none; color: inherit; }
a.item-link:hover .reagent-text { text-decoration: underline; }
@media (max-width: 760px) { .item-hero { grid-template-columns: 1fr; } }
.pd-hint { margin: 0 0 12px; font-size: 0.86rem; color: var(--muted); text-align: center; }
.pd-hint kbd { font: inherit; font-weight: 600; color: var(--text); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface2); }

/* quest list (Kris, 2026-11-17) */
.quest-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.quest-filters .search { flex: 1 1 260px; }
.quest-filters .level-box { width: 110px; }
.quest-table td.qfac-a { color: #4f9cff; } .quest-table td.qfac-h { color: #e0473c; }
.quest-more { margin: 14px auto 0; display: block; }

/* auction prices on item pages (Kris, 2026-11-17) */
.auction-sec { margin: 0 0 28px; }
.auction-row { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.auction-stats { display: flex; flex-direction: column; gap: 10px; }
.auction-stat { padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.auction-stat .coins { font-size: 1.25rem; font-weight: 700; }
.coins span + span { margin-left: 4px; }
.coin-g { color: #e3b341; } .coin-s { color: #c0c4cc; } .coin-c { color: #c47b45; }
.auction-chart { padding: 12px 14px 6px; }
.auction-chart svg { width: 100%; height: auto; display: block; }
.ac-grid { stroke: var(--line); stroke-width: 1; }
.ac-axis { fill: var(--muted); font-size: 11px; }
.ac-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ac-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.ac-avg { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ac-cross { stroke: var(--line-strong); stroke-width: 1; }
.ac-tip { position: absolute; display: none; pointer-events: none; min-width: 150px; z-index: 5; }
.ac-key { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.ac-key-line { display: inline-block; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.ac-key-avg { display: inline-block; width: 18px; border-top: 2px dashed var(--muted); margin-left: 10px; }
@media (max-width: 760px) { .auction-row { grid-template-columns: 1fr; } }

/* camping guide (Kris, 2026-11-17) */
.camp-how { padding: 18px 22px; margin: 0 0 24px; }
.camp-how h2 { margin-top: 0; }
.camp-items, .camp-fixes { margin: 0 0 28px; }
.camp-table .camp-does { max-width: 420px; line-height: 1.5; }

/* site-wide search (Kris, 2026-11-17) */
.head-search { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface2); color: var(--text); cursor: pointer; margin-right: 10px; }
.head-search:hover { border-color: var(--accent); }
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.55); display: flex; justify-content: center; padding: 72px 16px 16px; }
.search-overlay[hidden] { display: none; }
.search-panel { width: min(640px, 100%); max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); overflow: hidden; }
.search-input { font: inherit; font-size: 1.05rem; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); outline: none; }
.search-results { overflow-y: auto; padding: 6px; }
.search-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-hit:hover, .search-hit.active { background: var(--surface2); }
.search-icon { width: 30px; height: 30px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; background: var(--surface2); color: var(--muted); }
.search-words { display: flex; flex-direction: column; min-width: 0; }
.search-words strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-words span { font-size: 0.8rem; color: var(--muted); }
.search-note { margin: 10px 12px; color: var(--muted); font-size: 0.9rem; }
body.search-open { overflow: hidden; }

/* item sets (Kris, 2026-11-17) */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.set-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: var(--text); border-top: 3px solid var(--line-strong); }
.set-card:hover { border-color: var(--accent); }
.set-card.q-border-uncommon { border-top-color: #1eff00; } .set-card.q-border-rare { border-top-color: #3c9cff; } .set-card.q-border-epic { border-top-color: #b45cff; }
.set-icons { display: flex; gap: 3px; flex-wrap: wrap; }
.set-icon { width: 24px; height: 24px; border-radius: 5px; }
.set-pieces { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.set-bonuses { padding: 16px 18px; }
.set-bonuses h3 { margin: 0 0 10px; }
.set-bonus { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.set-count { flex: none; min-width: 24px; text-align: center; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 0.85rem; }

/* consumables (Kris, 2026-11-17) */
.cons-sec { margin: 0 0 26px; }
.cons-sec h2 { display: flex; align-items: center; gap: 8px; }
.cons-table .cons-use { max-width: 460px; line-height: 1.5; }

/* the World section (Kris, 2026-11-17) */
.world-tabs { display: flex; gap: 6px; margin: 0 0 20px; flex-wrap: wrap; }
.world-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.world-tab.here, .world-tab:hover { border-color: var(--accent); color: var(--accent); }
.world-factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 0 0 20px; }
.world-faction { padding: 20px 22px; border-top: 4px solid var(--line-strong); }
.world-faction h2 { margin-top: 0; }
.fac-alliance { --fac: #4f9cff; } .fac-horde { --fac: #e0473c; }
.world-faction.fac-alliance, .world-race.fac-alliance { border-top-color: var(--fac); } .world-faction.fac-horde, .world-race.fac-horde { border-top-color: var(--fac); }
.world-faction h2, .fac-title { color: var(--fac); }
.world-race-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.world-notes { padding: 16px 20px; margin: 0 0 22px; }
.world-notes h2 { margin-top: 0; }
.world-race-group { margin: 0 0 26px; }
.world-races { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.world-race { padding: 18px 20px; border-top: 4px solid var(--line-strong); scroll-margin-top: 80px; }
.world-race h3 { margin: 0 0 8px; font-size: 1.15rem; }
.world-race-facts { display: grid; gap: 8px; margin: 10px 0 12px; }
.world-race-facts > div { display: flex; flex-direction: column; gap: 2px; }
.world-class { text-decoration: none; font-weight: 600; }
.world-racials td { vertical-align: top; }
.world-racial-name { font-weight: 600; white-space: nowrap; }
.badge-cell { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.story-road { list-style: none; margin: 0 0 20px; padding: 0 0 0 26px; position: relative; max-width: 820px; }
.story-road::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--line-strong); }
.story-step { position: relative; margin: 0 0 22px; }
.story-step::before { content: ""; position: absolute; left: -24px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.story-step.story-new::before { border-color: #e3b341; }
.story-era { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.story-new .story-era { color: #e3b341; }
.story-step h2 { margin: 2px 0 6px; font-size: 1.2rem; }
.story-step p { margin: 0; line-height: 1.65; }
.world-sources { margin-top: 18px; }
.world-racials { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.world-racial-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.world-racial-text { color: var(--muted); font-size: 0.9rem; }

/* the Legacy guide (Kris, 2026-11-17) */
.legacy-top { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; margin: 0 0 24px; }
.legacy-rules, .legacy-earn, .legacy-tips { padding: 18px 22px; }
.legacy-rules h2, .legacy-earn h2, .legacy-tips h2 { margin-top: 0; }
.legacy-earn-row { padding: 8px 0; border-top: 1px solid var(--line); }
.legacy-earn-row:first-of-type { border-top: 0; }
.legacy-earn-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.legacy-earn-row .note { margin: 4px 0 0; }
.legacy-trees { margin: 0 0 24px; }
.legacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.legacy-tree { padding: 16px; border-top: 3px solid var(--accent); }
.legacy-tree .new-head { color: var(--accent); }
.legacy-perk { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.legacy-icon { width: 34px; height: 34px; border-radius: 7px; flex: none; }
.legacy-perk-name { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.legacy-perk-text { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
@media (max-width: 860px) { .legacy-top { grid-template-columns: 1fr; } }
/* eight quick links in two even rows (Kris, 2026-11-17) */
.quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .quick-links { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .head-search { width: 34px; height: 34px; margin-right: 6px; } .head-join { padding: 7px 12px; font-size: 0.85rem; } .brand-name { font-size: 1.05rem; } .head-inner { gap: 6px; padding: 8px 12px; } .nav-toggle { width: 38px; height: 38px; } }
.race-link { color: inherit; text-decoration: none; } .race-link:hover { text-decoration: underline; }

/* the Build planner's parts (Kris, 2026-11-17) */
.build-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.build-jump a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem; background: var(--surface); }
.build-jump a:hover { border-color: var(--accent); color: var(--accent); }
.build-part { margin: 0 0 22px; scroll-margin-top: calc(var(--head-h, 64px) + 90px); }
.build-part-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 2px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 1.35rem; font-weight: 700; cursor: pointer; text-align: left; margin-bottom: 14px; }
.build-part-head .chev { display: inline-block; transition: transform .15s; color: var(--muted); transform: rotate(90deg); }
.build-part.folded .build-part-head .chev { transform: rotate(0deg); }
.build-part.folded .build-part-head { margin-bottom: 0; }
.build-part-head:hover span:last-child { color: var(--accent); }
/* the parts' own titles are the headings above them now */
.build-part .build-overview .note-card-head h3 { display: none; }
.build-part .notes-head h2 { font-size: 0; margin: 0; }
.build-part .notes-head h2 .stage-tag { font-size: 0.9rem; }
.build-part .build-notes { margin-top: 0; }
@media (max-width: 900px) { .build-part { scroll-margin-top: 80px; } }
.ability-line-passives .ability-grid { opacity: .92; }
.gear-note { color: #e3b341; }
.community-discord { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 0; }

/* the Roam Discord buttons (Kris, 2026-11-17) */
.btn.discord-btn { display: inline-flex; align-items: center; gap: 8px; background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord-btn:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.head-discord.btn { flex: none; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 999px; margin-right: 10px; }
.addon-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.addon-actions #roam-discord-slot:empty { display: none; }
@media (max-width: 520px) { .head-discord.btn { width: 34px; height: 34px; margin-right: 6px; } }
@media (max-width: 400px) { .head-join { padding: 6px 10px; font-size: 0.8rem; } .head-search, .head-discord.btn { margin-right: 2px; } .head-inner { gap: 4px; padding: 8px 10px; } }

/* enchant and consumable pickers in the Build planner (Kris, 2026-11-17) */
.pd-enchants { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pd-enchants h3 { margin: 0 0 4px; }
.pd-enchant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 8px; }
.pd-enchant { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pd-enchant:hover { border-color: var(--accent); }
.pd-enchant-slot { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.pd-enchant-pick { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.picks-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.picks-head strong { flex: 1; }
.picks-hit { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.picks-hit .search-words span { white-space: normal; }
.picks-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.picks-chip { display: inline-flex; align-items: center; gap: 4px; }
.picks-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 4px; }
.picks-remove:hover { color: #e0473c; }
.picks-add { margin-bottom: 6px; }
.pd-enchant-tag { display: inline-block; align-self: flex-start; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: #1eff00; background: rgba(30, 255, 0, 0.1); border: 1px solid rgba(30, 255, 0, 0.35); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pd-enchant-tag { color: #13901a; background: rgba(19, 144, 26, 0.08); border-color: rgba(19, 144, 26, 0.35); } }
/* race cards: the race's wallpaper portrait from Blizzard's original World of Warcraft site (ArchiveCraft) */
.world-race.has-art { overflow: hidden; }
.world-race-art { display: block; width: calc(100% + 40px); margin: -18px -20px 14px; height: 190px; object-fit: cover; object-position: center 12%; }
/* camping: camp items in one panel per profession (Kris, 2026-11-17) */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin: 12px 0; }
.camp-prof { padding: 14px 16px; }
.camp-prof-head { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-bottom: 10px; }
.camp-prof-head h3 { margin: 0; font-size: 1.1rem; }
.camp-prof-head:hover h3 { text-decoration: underline; }
.camp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: camp; }
.camp-step { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 12px; }
.camp-step:last-child { border-left-color: var(--gold); }
.camp-step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.camp-step .camp-does { margin: 4px 0 2px; font-size: .9rem; }
.camp-how-get { font-size: .8rem; color: var(--muted); }
/* consumables: grouped by profession, then by kind (Kris, 2026-11-17) */
.cons-prof { margin: 22px 0 30px; }
.cons-prof-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.cons-prof-head a { color: inherit; }
.cons-prof .cons-sec h3 { margin: 16px 0 8px; font-size: 1rem; }
/* quests by place (Kris, 2026-11-17) */
.qz-group { margin: 22px 0; }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.qz-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel, rgba(255,255,255,.03)); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.qz-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.qz-card strong { font-size: 1rem; }
.qz-meta { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); }
.qz-fac { display: flex; gap: 10px; font-size: .78rem; }
.qz-fac .qfac-a { color: #4f9cff; } .qz-fac .qfac-h { color: #e0473c; }
.qz-back { margin: 8px 0 4px; display: inline-block; }
.qz-title { margin: 10px 0 4px; }
/* profession leveling route (Kris, 2026-11-17) */
.prof-route { margin: 22px 0; }
.route-table td.route-needs { font-size: .88rem; }
.route-table tr.route-rank td { background: rgba(227, 179, 65, .1); color: var(--gold); font-weight: 600; font-size: .88rem; }
.route-shop { margin-top: 10px; }
.route-shop summary { cursor: pointer; font-weight: 600; }
.route-shop-list { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.route-shop-list li { display: flex; gap: 8px; align-items: center; }
/* World pages: faction banners and story pictures (Kris, 2026-11-17) */
.world-faction { position: relative; }
.world-banner { float: right; width: 96px; height: 140px; object-fit: cover; object-position: center top; margin: -6px 0 10px 16px;
  border-radius: 0 0 8px 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@media (max-width: 520px) { .world-banner { width: 70px; height: 102px; } }
.story-art { display: block; width: 100%; max-width: 640px; height: 200px; object-fit: cover; border-radius: 10px; margin: 6px 0 10px;
  border: 1px solid var(--line); }
@media (max-width: 600px) { .story-art { height: 150px; } }
/* buttons side by side line up, Discord logo or not (Kris, 2026-11-17) */
.btn { vertical-align: middle; line-height: 18px; }
.btn.discord-btn svg { flex: none; display: block; }
/* consumables: professions fold open and shut */
details.cons-prof { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); }
details.cons-prof > summary.cons-prof-head { cursor: pointer; list-style: none; padding: 12px 0; border-bottom: 0; font-size: 1.15rem; font-weight: 700; }
details.cons-prof > summary::-webkit-details-marker { display: none; }
details.cons-prof > summary::before { content: "▸"; color: var(--muted); margin-right: 2px; transition: transform .15s; display: inline-block; }
details.cons-prof[open] > summary::before { transform: rotate(90deg); }
details.cons-prof[open] > summary { border-bottom: 1px solid var(--line); }
.cons-prof-link { margin-left: auto; font-size: .82rem; font-weight: 600; }
details.cons-prof .cons-sec:last-child { padding-bottom: 12px; }
/* item sets by armor type */
.set-group { margin: 18px 0 26px; }
.set-group h2 { margin: 0 0 10px; }
/* community builds grouped by class, tidier cards (Kris, 2026-11-17) */
.cb-class-group { margin: 6px 0 22px; }
.cb-class-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.2rem;
  padding-bottom: 6px; border-bottom: 2px solid color-mix(in srgb, var(--class-color) 45%, transparent); }
.cb-class-head .class-icon { width: 28px; height: 28px; border-radius: 50%; }
.cb-class-head a { text-decoration: none; }
.cb-class-group .cb-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 0; }
.cb-card { border-top: 3px solid var(--class-color); }
.cb-purpose { align-self: flex-start; margin-top: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--class-color) 16%, transparent); color: var(--text); }
.cb-purpose-dungeons { background: rgba(163, 53, 238, .18); }
.cb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.cb-foot .cb-actions { margin-top: 0; align-items: center; gap: 12px; }
.cb-talents { font-size: .84rem; font-weight: 600; }
.cb-open { padding: 6px 12px; }
/* a little room between buttons that sit side by side outside a flex row */
p > .btn + .btn, .community-empty > .btn + .btn { margin-left: 8px; }
details.set-group { margin: 12px 0; }
details.set-group .set-grid { padding: 12px 0 14px; }
/* coming soon (Kris, 2026-11-17) */
.soon-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.soon-item { padding: 22px 24px; margin: 18px 0; scroll-margin-top: 80px; }
.soon-head { display: flex; align-items: center; gap: 14px; }
.soon-head h2 { margin: 4px 0 0; font-size: 1.5rem; }
.soon-icon { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 16px rgba(227,179,65,.25); }
.soon-when { background: rgba(227, 179, 65, .14); color: var(--gold); }
.soon-lead { margin: 12px 0 16px; }
.soon-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.soon-feature { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface2, rgba(255,255,255,.03)); border: 1px solid var(--line); }
.soon-feature-icon { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.soon-feature strong { display: block; margin-bottom: 4px; }
.soon-feature p { margin: 0; font-size: .9rem; color: var(--muted); }
.soon-hear { padding: 20px 24px; margin: 18px 0 30px; text-align: center; }
/* community quest log (Kris, 2026-11-17) */
.qbars { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.qbar-top { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-bottom: 2px; }
.qbar-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.qbar-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.qbar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a87b17, #ffd100); min-width: 0; transition: width .4s; }
.qbar-a .qbar-fill { background: linear-gradient(90deg, #1f4fa8, #4f9cff); }
.qbar-h .qbar-fill { background: linear-gradient(90deg, #8f1f17, #e0473c); }
.qbar.full .qbar-fill { background: linear-gradient(90deg, #2f8f3a, #5ee36f); }
.qbar-big .qbar-top, .qbars-big .qbar-top { font-size: .9rem; }
.qbar-big .qbar-track, .qbars-big .qbar-track { height: 12px; }
.qlog-head { padding: 16px 18px; margin: 10px 0 14px; }
.qlog-head h2 { margin: 0 0 10px; }
.qlog-lore { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.qlog-lore.open { color: var(--gold); font-weight: 600; }
.qz-card.qz-done { border-color: #5ee36f; }
.quest-table td.q-state { width: 26px; text-align: center; font-weight: 700; color: var(--muted); }
.quest-table tr.q-done td.q-state { color: #5ee36f; }
/* Merchant's Favor */
.favor-sec { padding: 20px 22px; margin: 22px 0; scroll-margin-top: 80px; }
.favor-head { display: flex; align-items: center; gap: 12px; }
.favor-head h2 { margin: 2px 0 0; }
.favor-steps { margin: 6px 0 12px; padding-left: 22px; }
.favor-steps li { margin: 4px 0; }
.favor-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0; }
.price-line .coins { margin-left: 2px; }
/* the Quests page as a journey (Kris, 2026-11-17: "exploring through the world and unlocking special ... lore") */
.qz-section-head { margin: 26px 0 6px; }
.qz-section-head h2 { margin: 0; }
.qz-road { margin-top: 14px; }
.qz-card { position: relative; overflow: hidden; isolation: isolate; min-height: 118px; }
.qz-card.has-art { border-color: rgba(255,255,255,.12); }
.qz-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .42; transition: opacity .25s, transform .5s; }
.qz-card.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,14,.15), rgba(10,10,14,.88) 70%); }
.qz-card.has-art:hover .qz-card-art { opacity: .7; transform: scale(1.04); }
.qz-card .qz-name { font-size: 1.05rem; text-shadow: 0 1px 2px #000; }
.qz-card.has-art .qz-meta { color: #d6d6dc; }
.qz-seals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qz-seal { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); color: #c9c9d1; }
.qz-seal.open { color: #ffd100; border-color: rgba(255,209,0,.6); box-shadow: 0 0 10px rgba(255,209,0,.35); }
.qz-seal-icon { font-size: .8rem; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .qz-card.has-art::after { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.9) 70%); }
  :root:not([data-theme="dark"]) .qz-card.has-art .qz-meta { color: var(--muted); } :root:not([data-theme="dark"]) .qz-card .qz-name { text-shadow: none; } }
:root[data-theme="light"] .qz-card.has-art::after { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.9) 70%); }
:root[data-theme="light"] .qz-card.has-art .qz-meta { color: var(--muted); } :root[data-theme="light"] .qz-card .qz-name { text-shadow: none; }
.qz-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; border: 1px solid var(--line); padding: 26px 24px; margin: 10px 0 18px; background: var(--surface); }
.qz-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.qz-hero.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,14,.92), rgba(10,10,14,.55) 60%, rgba(10,10,14,.2)); }
.qz-hero .qz-title { margin: 2px 0 4px; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.qz-hero.has-art .qz-title, .qz-hero.has-art .note, .qz-hero.has-art .qbar-top { color: #f0f0f3; }
.qz-hero .qbars { max-width: 460px; margin-top: 12px; }
.qz-lore { margin: 6px 0 22px; }
.qz-lore-parts { display: grid; gap: 14px; }
.qz-lore-parts.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lore-chapter { padding: 22px 24px; border-radius: 14px; border: 1px solid #5a4a2a; color: #2b1d0e;
  background: radial-gradient(ellipse at top, #f6ead0, #e9d6ad 70%, #dcc595); box-shadow: inset 0 0 40px rgba(120,80,20,.25), 0 10px 26px rgba(0,0,0,.3); }
.lore-chapter h3 { margin: 2px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; color: #3a2208; }
.lore-chapter p { font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.lore-chapter .eyebrow { color: #8a5a12; }
.lore-chapter .lore-sources { font-family: inherit; color: #6b5532; }
.lore-chapter .lore-sources a { color: #7a3d00; }
.lore-chapter.lore-a { border-top: 4px solid #4f9cff; } .lore-chapter.lore-h { border-top: 4px solid #e0473c; }
.qz-log-title { margin: 20px 0 4px; }
/* lore book */
.lore-group { margin: 22px 0; }
.lore-group > h2 { margin: 0 0 12px; }
.lore-group .lore-chapter { margin: 0 0 16px; position: relative; overflow: hidden; }
.lore-chapter-art { display: block; width: calc(100% + 48px); max-width: none; margin: -22px -24px 14px; height: 160px; object-fit: cover; }
/* quest lists without a picture: their icon in the corner (Kris, 2026-11-17) */
.qz-card.has-icon { padding-right: 76px; }
.qz-card-icon { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 14px rgba(255,209,0,.18); }
.qz-card-icon.q-epic { box-shadow: 0 0 0 2px #a335ee, 0 0 14px rgba(163,53,238,.5); }
.qz-card-icon.q-legendary { box-shadow: 0 0 0 2px #ff8000, 0 0 14px rgba(255,128,0,.5); }
.qz-card-bang { display: flex; align-items: center; justify-content: center; font: 900 2.4rem Georgia, serif; color: #ffd100;
  background: radial-gradient(circle, #3a2a08, #120d02); text-shadow: 0 0 8px rgba(255,209,0,.8), 0 2px 0 #000; }
/* race portraits used as zone pictures are tall: keep the face in view */
.qz-card-art[src*="/races/"], .qz-hero-art[src*="/races/"], .lore-chapter-art[src*="/races/"] { object-position: center 12%; }
