/* ===== Tokens ===== */
:root {
  --bg: #0e1014;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2c313c;
  --text: #ece6d6;
  --muted: #a39d8c;
  --gold: #e0b252;
  --gold-soft: rgba(224, 178, 82, 0.12);
  --danger: #e2705a;
  --ok: #7cc47f;

  /* Class colors */
  --warrior: #c79c6e;
  --paladin: #f58cba;
  --hunter: #abd473;
  --rogue: #fff569;
  --priest: #ffffff;
  --shaman: #2f8cf0;
  --mage: #69ccf0;
  --warlock: #9482c9;
  --druid: #ff7d0a;

  --accent: var(--gold);
  --radius: 14px;
  --max: 1100px;
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark; /* single dark theme by design */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
section[id] { scroll-margin-top: 80px; }
.guide-hero ~ .section[id] { scroll-margin-top: 120px; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin-bottom: 8px; }

/* ===== Header / footer ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 16, 20, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-family: var(--font-head); font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 20px; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav a:not(.nav-keep) { display: none; } }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: .85rem; }

/* ===== Buttons / chips ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--gold); color: #1a1408; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip.ready { background: rgba(124, 196, 127, .12); color: var(--ok); border-color: rgba(124, 196, 127, .35); }
.chip.verify { background: rgba(226, 112, 90, .1); color: var(--danger); border-color: rgba(226, 112, 90, .35); cursor: help; }

/* ===== Hero ===== */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(ellipse at top, rgba(224,178,82,.14), transparent 60%); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0 auto 8px; }
.countdown { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* ===== Path cards (home) ===== */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.path {
  display: block; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s;
}
.path:hover { transform: translateY(-3px); border-color: var(--gold); }
.path .num { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); }
.path h3 { margin-top: 6px; }
.path p { color: var(--muted); margin: 0; font-size: .95rem; }
.path .go { display: block; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: .9rem; }

/* ===== Journey strip ===== */
.journey { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.journey .step { padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.journey .step small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.journey .arrow { color: var(--gold); font-size: 1.2rem; }
@media (max-width: 640px) { .journey { flex-direction: column; } .journey .arrow { transform: rotate(90deg); } }

/* ===== Class grid ===== */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.class-card {
  position: relative; display: block; padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c);
  color: var(--text); text-decoration: none;
}
a.class-card:hover { border-color: var(--c); }
.class-card.soon { opacity: .6; }
.class-card h3 { color: var(--c); margin-bottom: 4px; }
.class-card p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.class-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.class-card .chip { position: absolute; top: 14px; right: 14px; }
.roles { display: flex; gap: 6px; flex-wrap: wrap; }
.role { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.role.tank { color: #8fb3ff; }
.role.heal { color: var(--ok); }
.role.dps { color: var(--danger); }
.dots { letter-spacing: 2px; color: var(--gold); }
.dots i { font-style: normal; color: var(--border); }

/* ===== Rule cards ===== */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rule { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.rule .n { font-family: var(--font-head); color: var(--gold); font-size: .9rem; }
.rule dl { margin: 10px 0 0; font-size: .92rem; }
.rule dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.rule dd { margin: 0; }

/* ===== Class guide ===== */
.guide-hero {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  border-bottom: 1px solid var(--border);
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.guide-hero h1 { color: var(--accent); margin-bottom: 6px; }
.guide-hero .pitch { font-size: 1.2rem; max-width: 50ch; }
.verified { font-size: .82rem; color: var(--muted); margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.jump { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; position: sticky; top: 60px; background: var(--bg); z-index: 10; border-bottom: 1px solid var(--border); }
.jump { scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: .85rem; }
.jump a:hover { color: var(--text); border-color: var(--accent); }

.tldr { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.tldr h2 { font-size: 1.15rem; }
.tldr ol { margin: 0; padding-left: 20px; }
.tldr li { margin: 6px 0; }

.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; }
.stat .label span:last-child { color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.stat small { display: block; color: var(--muted); margin-top: 8px; font-size: .8rem; }

/* Keybar */
.keybar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 720px) { .keybar { grid-template-columns: repeat(3, 1fr); } }
.key {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 10px; text-align: center; position: relative;
}
.key .slot {
  width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(145deg, var(--surface-2), #11141a);
  border: 2px solid var(--accent); color: var(--accent);
}
.key .bind { position: absolute; top: 8px; left: 10px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.key strong { display: block; font-size: .88rem; }
.key small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; margin-top: 4px; }
.key .lvl { display: inline-block; margin-top: 6px; font-size: .7rem; color: var(--accent); }
.key .job { position: absolute; top: 8px; right: 8px; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.key .then { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 6px; font-size: .7rem; color: var(--muted); }
.key .then img { width: 16px; height: 16px; border-radius: 3px; }
.key.empty { opacity: .45; }
.key.empty .slot { border-style: dashed; border-color: var(--border); }
.key small { min-height: 2.7em; }

/* Flowchart */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.node {
  width: min(420px, 100%); padding: 12px 16px; border-radius: 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); font-size: .95rem;
}
.node small { display: block; color: var(--muted); font-size: .8rem; }
.node.start { border-color: var(--accent); }
.node.decision { background: var(--gold-soft); border-color: var(--gold); font-weight: 600; }
.node.end { background: rgba(124, 196, 127, .1); border-color: rgba(124, 196, 127, .45); }
.down { width: 2px; height: 22px; background: var(--border); position: relative; }
.down::after { content: ""; position: absolute; bottom: -2px; left: -4px; border: 5px solid transparent; border-top-color: var(--border); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(620px, 100%); margin-top: 0; }
.branch { display: flex; flex-direction: column; align-items: center; }
.branch .tag { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; margin: 6px 0; }
.branch .tag.yes { background: rgba(226,112,90,.15); color: var(--danger); }
.branch .tag.no { background: rgba(124,196,127,.15); color: var(--ok); }
.branch .node { width: 100%; }
.loop-note { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: center; }

/* Two-column helper */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split > svg { width: 100%; max-width: 320px; justify-self: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding-top: 28px; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; }
.mile { position: relative; }
.mile::before { content: ""; position: absolute; top: -26px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.mile .lv { font-family: var(--font-head); color: var(--accent); font-weight: 700; }
.mile p { font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 16px; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent), var(--gold)); }
  .mile::before { top: 4px; left: -28px; }
}

/* Specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.spec.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.spec .chip { margin-bottom: 10px; }
.spec p { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.spec ul { margin: 0; padding-left: 18px; font-size: .9rem; }

/* Priority list */
.priority { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.priority li { counter-increment: p; display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.priority li::before { content: counter(p); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .9rem; }
.priority li span { color: var(--muted); display: block; font-size: .88rem; }
.priority li span.kb { display: inline-block; color: var(--text); font-size: .8em; margin-left: 4px; }

/* Mistake cards */
.mistakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mistake { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: var(--radius); padding: 16px 18px; }
.mistake h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.mistake p { color: var(--muted); font-size: .9rem; margin: 0; }
.mistake .fix { color: var(--text); margin-top: 8px; }
.mistake .fix::before { content: "Fix: "; color: var(--ok); font-weight: 700; }

/* Details / expanders */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-top: 14px; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details[open] summary { margin-bottom: 8px; }

/* Glossary tooltips */
.term { border-bottom: 1px dashed var(--gold); cursor: help; color: inherit; }
.tip {
  position: absolute; z-index: 50; max-width: 280px; padding: 10px 12px; border-radius: 10px;
  background: #262b35; border: 1px solid var(--gold); color: var(--text);
  font-size: .85rem; line-height: 1.45; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  pointer-events: none;
}
.tip b { color: var(--gold); display: block; margin-bottom: 2px; }

/* Spell icons (assets/icons, from Wowhead's icon CDN) */
.ico { width: 20px; height: 20px; border-radius: 4px; vertical-align: -5px; margin-right: 6px; border: 1px solid rgba(0,0,0,.6); }
.ico-lg { width: 40px; height: 40px; float: left; margin: 2px 12px 0 0; border-radius: 6px; }
.key .slot { padding: 0; overflow: hidden; }
.key .slot img { width: 100%; height: 100%; display: block; }
.priority li .ico { width: 30px; height: 30px; flex: none; margin: 0; vertical-align: middle; }
.priority.icons li::before { display: none; }
.totem .el .ico { width: 28px; height: 28px; vertical-align: -8px; }
.class-card h3 .ico { width: 28px; height: 28px; vertical-align: -7px; margin-right: 8px; border-radius: 6px; }
.spec h3 .ico { width: 28px; height: 28px; vertical-align: -7px; margin-right: 8px; border-radius: 6px; }

/* Keybind chips (filled from KEYBINDS in site.js) */
.kb { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; font: 700 .8em/1.6 var(--font-body); text-align: center; color: var(--text); }

/* Talent path */
.lvl-picker { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.lvl-picker label { font-weight: 700; }
.lvl-picker input[type=range] { flex: 1 1 200px; accent-color: var(--accent); }
.lvl-picker output { font: 800 1.4rem var(--font-head); color: var(--accent); min-width: 2.5ch; }
.lvl-answer { flex-basis: 100%; margin: 0; font-size: 1.02rem; }
.lvl-answer strong { color: var(--accent); }
.phases { display: grid; gap: 10px; }
.phase { display: grid; grid-template-columns: 92px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.phase.current { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.phase .range { font: 800 1rem var(--font-head); color: var(--accent); }
.phase .range small { display: block; font: 400 .75rem var(--font-body); color: var(--muted); }
.phase .picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pick-pill .ico { width: 18px; height: 18px; vertical-align: -4px; margin-right: 5px; }
.pick-pill { padding: 3px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; }
.pick-pill.mm { border-style: dashed; }
.pick-pill.new { border-color: var(--gold); color: var(--gold); }
.phase p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .phase { grid-template-columns: 1fr; gap: 6px; } }

/* Keyboard diagram */
.keyboard { display: grid; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.krow { display: flex; gap: 6px; }
.krow:nth-child(2) { padding-left: 18px; }
.krow:nth-child(3) { padding-left: 30px; }
.krow:nth-child(4) { padding-left: 48px; }
.kk { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; position: relative; font-weight: 700; font-size: .95rem; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 3px; color: var(--muted); }
.kk small { position: absolute; bottom: 2px; font-size: .55rem; font-weight: 600; opacity: .85; }
.kk.act { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.kk.move { background: rgba(143,179,255,.14); border-color: #8fb3ff; color: #8fb3ff; }
.kk.dim { opacity: .35; }
.kb-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.kb-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 520px) { .kk { width: 34px; height: 38px; font-size: .8rem; } .kk small { display: none; } .keyboard { padding: 10px; gap: 4px; } .krow { gap: 4px; } }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps > li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.steps > li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a1408; font-weight: 800; }
.steps h3 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.steps p + p { margin-top: 6px; }
.bind-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .9rem; }
.bind-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.bind-table td:first-child { color: var(--muted); }

.callout { background: var(--gold-soft); border: 1px solid rgba(224,178,82,.4); border-radius: 12px; padding: 14px 18px; margin-top: 16px; }
.callout strong { color: var(--gold); }

/* Rules page */
.rule-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.rule-index a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.rule-index a:hover { border-color: var(--gold); }
.rule-index b { color: var(--gold); font-family: var(--font-head); min-width: 1.4em; }
.rule-block { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 36px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.rule-block .big { font: 800 3rem/1 var(--font-head); color: var(--gold); opacity: .9; }
.rule-block h2 { margin-bottom: 14px; }
.why-do { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.why-do > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.why-do .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 4px; }
.why-do .why .lbl { color: var(--muted); }
.why-do .do { border-color: rgba(124,196,127,.4); }
.why-do .do .lbl { color: var(--ok); }
.why-do p { margin: 0; }
.visual { margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.visual svg { display: block; margin: 0 auto; }
@media (max-width: 640px) { .rule-block { grid-template-columns: 1fr; gap: 6px; } .rule-block .big { font-size: 2rem; } .why-do { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.choice .q { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.choice .a { font-weight: 700; color: var(--gold); }
.choice small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; }

.hflow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.hflow .node { width: auto; flex: 1 1 140px; font-size: .88rem; }
.hflow .arr { align-self: center; color: var(--gold); }
@media (max-width: 640px) { .hflow { flex-direction: column; } .hflow .node { flex: none; } .hflow .arr { transform: rotate(90deg); } }

.pulls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pull { flex: 1 1 150px; text-align: center; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.pull .mobs { font-size: 1.4rem; letter-spacing: 4px; }
.pull.good { border-color: rgba(124,196,127,.5); }
.pull.ok { border-color: rgba(224,178,82,.5); }
.pull.bad { border-color: rgba(226,112,90,.5); }
.pull strong { display: block; margin-top: 6px; font-size: .9rem; }
.pull.good strong { color: var(--ok); } .pull.ok strong { color: var(--gold); } .pull.bad strong { color: var(--danger); }
.pull small { color: var(--muted); font-size: .8rem; }

.basics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.basics > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.basics h3 { font-family: var(--font-body); font-size: 1rem; }
.basics p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Totem grid (Shaman) */
.totems { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.totem { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--el); border-radius: 12px; padding: 16px; }
.totem .el { font: 800 1.05rem var(--font-head); color: var(--el); }
.totem .unlock { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.totem p { margin: 0; font-size: .9rem; }
.totem small { display: block; color: var(--muted); margin-top: 6px; font-size: .82rem; }

/* Class Picker quiz */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; min-height: 70vh; }
.qprog { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.qprog > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .25s; }
.qcount { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.qtitle { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0 6px; }
.qsub { color: var(--muted); margin-bottom: 20px; }
.qnote { background: var(--gold-soft); border: 1px solid rgba(224,178,82,.4); border-radius: 12px; padding: 12px 16px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.answers.heroes { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .answers { grid-template-columns: 1fr; } .answers.heroes { grid-template-columns: 1fr 1fr; } }
.answer {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  padding: 14px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); transition: transform .12s, border-color .12s;
}
.answer:hover, .answer:focus-visible { border-color: var(--c, var(--gold)); transform: translateY(-2px); outline: none; }
.answer.chosen { border-color: var(--c, var(--gold)); box-shadow: 0 0 0 1px var(--c, var(--gold)) inset; }
.answer.hero { flex-direction: column; text-align: center; padding: 16px 10px; border-top: 3px solid var(--c, var(--border)); }
.answer.hero strong { color: var(--c, var(--text)); }
.ans-ico { width: 44px; height: 44px; border-radius: 10px; flex: none; margin: 0; vertical-align: middle; }
.answer.hero .ans-ico { width: 56px; height: 56px; }
.ans-blank { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.ans-text strong { display: block; font-size: 1rem; }
.ans-text small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.qback { margin-top: 22px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 0; text-decoration: none; }
.qback:hover { color: var(--text); }
.qactions { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.match { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c); color: var(--text); text-decoration: none; }
.match:hover { border-color: var(--c); }
.match.big { padding: 22px; margin: 18px 0; box-shadow: 0 0 40px -12px var(--c); }
.match-ico { width: 48px; height: 48px; border-radius: 10px; flex: none; margin: 0; }
.match.big .match-ico { width: 72px; height: 72px; border-radius: 14px; }
.match-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.match-name { font: 800 1.15rem var(--font-head); color: var(--c); }
.match.big .match-name { font-size: 1.5rem; }
.match-pitch { color: var(--muted); font-size: .92rem; }
.match .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.matches { display: grid; gap: 10px; }
/* Quiz: hero art cards (question 1) */
.heroes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
@media (max-width: 640px) { .heroes-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.answer.hero-card { position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 4 / 5; border: 2px solid var(--border); border-radius: 14px; background: #0e1014; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.hero-card:hover img, .hero-card:focus-visible img { transform: scale(1.05); }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,11,14,.92) 85%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px; text-align: left; color: #f1ead8; font-weight: 600; font-size: .9rem; line-height: 1.3; text-shadow: 0 2px 8px #000; }
.answer.hero-card:hover, .answer.hero-card:focus-visible, .answer.hero-card.chosen { border-color: var(--c); box-shadow: 0 0 24px -6px var(--c); }
.answer.hero-skip { justify-content: center; margin-top: 12px; padding: 12px; color: var(--muted); }
.art-note { margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Quiz: result art + race step */
.match-art { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; flex: none; }
@media (max-width: 520px) { .match-art { width: 88px; height: 110px; } }
.race-step { margin: 8px 0 24px; }
.race-step h2 { font-size: 1.3rem; margin-bottom: 4px; }
.factions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .factions { grid-template-columns: 1fr; } }
.faction h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
.faction.alliance h3 { color: #6fa8ff; }
.faction.horde h3 { color: #ff6f5e; }
.race-card { display: block; width: 100%; padding: 0; margin-bottom: 10px; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: 12px; transition: border-color .12s, transform .12s; }
.race-card img { display: block; width: 100%; aspect-ratio: 560 / 380; object-fit: cover; }
.race-card:hover, .race-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); outline: none; }
.race-card.chosen { border-color: var(--gold); box-shadow: 0 0 24px -8px var(--gold); }
.race-text { display: block; padding: 10px 12px; }
.race-text strong { display: block; font-size: 1rem; }
.race-text small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.race-text .race-meta { font-size: .75rem; }
.chip.new { background: var(--gold-soft); color: var(--gold); border-color: rgba(224,178,82,.4); vertical-align: 2px; margin-left: 4px; }

.why { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.why h2 { font-size: 1.05rem; margin-bottom: 6px; }
.why ul { margin: 0; padding-left: 20px; }
.why li { margin: 4px 0; }
.also { font-size: 1.1rem; margin: 32px 0 12px; }

.sources { display: flex; flex-wrap: wrap; gap: 10px; }
.sources a { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-size: .9rem; }
