@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  color-scheme: dark;
  --night: #191529;
  --depth: #141020;
  --surface: #231d35;
  --surface-raised: #2d263e;
  --bone: #eee6d1;
  --body: #d0cad7;
  --muted: #b0a6bc;
  --brass: #d5b66c;
  --blue: #425b83;
  --blue-light: #b1c4e4;
  --rose: #bd7593;
  --rose-light: #e0b0c5;
  --sage: #9aa981;
  --line: #49405a;
  --display: 'Spectral', Georgia, serif;
  --sans: 'Golos Text', 'Segoe UI', sans-serif;
  --content: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--night); color: var(--body); font: 400 15px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #d5b66c; color: #211a2d; }
button, input, select, textarea { font: inherit; }
button, input, select { color: inherit; }
button, select, summary { cursor: pointer; }
button { background: var(--surface); border: 1px solid var(--line); }
button:disabled { cursor: default; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, input, select { border-radius: 8px; }
button { transition: background-color .15s, border-color .15s, color .15s; }
a { color: var(--brass); text-decoration-color: #7d6a47; text-underline-offset: 4px; }
a:hover { color: #f2d794; text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid #b9ccef; outline-offset: 5px; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg { flex-shrink: 0; }
.wordmark svg, .path-tabs svg, .talent-icon svg, .spell-icon svg, .inspector-top > svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.small { font-size: 12px; }
[hidden] { display: none !important; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--bone); font-weight: 600; }
em { font-style: italic; }
small { font-size: .82em; }
h1, h2, h3, h4 { color: var(--bone); margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(3.2rem, 6.6vw, 6.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 3.5vw, 3.25rem); letter-spacing: -.025em; margin-bottom: 25px; }
h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; font-weight: 500; margin-bottom: 16px; }
h4 { font-size: 1rem; font-weight: 600; margin: 28px 0 12px; }
ul, ol { margin: 18px 0 24px; padding-left: 24px; }
li { margin: 9px 0; padding-left: 4px; }
li::marker { color: var(--brass); }
hr { border: 0; margin: 36px 0; height: 1px; background: var(--line); }
code { font: .86em/1.7 Consolas, monospace; color: #e0cfa1; background: #31293d; padding: .2em .4em; border-radius: 4px; }
pre { margin: 20px 0 0; padding: 24px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--depth); border-radius: 12px; border: 1px solid #3a304a; color: #e2d9be; font: 12px/1.9 Consolas, monospace; }
pre code { background: none; padding: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 18px; background: var(--bone); color: var(--night); transform: translateY(-180%); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }

.site-header { width: min(calc(100% - 96px), var(--content)); margin: auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-family: var(--display); font-size: 22px; color: var(--bone); text-decoration: none; line-height: 1.25; }
.wordmark svg { width: 30px; height: 36px; color: var(--brass); }
.wordmark small { display: block; font-family: var(--sans); color: var(--muted); font-size: 10px; margin-top: 4px; }
.header-links { display: flex; align-items: center; gap: 30px; }
.header-links a { font-size: 12px; color: #d0c4da; text-decoration: none; }
.header-links a:hover { color: var(--brass); }
.header-links .button { padding: 8px 16px; }
.hero-v2 { width: min(calc(100% - 96px), var(--content)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: clamp(32px, 6vw, 90px); padding: 28px 0 64px; }
.hero-copy { padding: 18px 0 20px; }
.hero-tag { color: #c6b3d3; font-size: 14px; margin-bottom: 21px; }
.hero-credit { font-size: 12px; color: #aa99bb; margin-top: 23px; }
.hero-credit a { color: #c5b1d2; }
.hero-copy h1 { max-width: 730px; }
.hero-copy h1 span, .hero-copy h1 em { color: inherit; font-weight: inherit; font-style: normal; }
.hero-intro { color: #c3b9d0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; max-width: 580px; margin-top: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 13px 22px; border: 1px solid #6d5e79; border-radius: 6px; color: var(--bone); background: #29213c; text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.5; }
.button:hover { color: var(--bone); background: #372d4c; border-color: #a193ad; }
.button.primary { background: var(--brass); color: #2a2131; border-color: var(--brass); }
.button.primary:hover { background: #e3c783; color: #2a2131; }
.button.secondary { background: transparent; }
.hero-art { position: relative; max-width: 430px; width: 100%; justify-self: end; margin: 0; padding: 0; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; object-position: center; }
.hero-art figcaption { color: var(--muted); text-align: center; font-size: 11px; margin: 10px 0 3px; }
.edition-note { width: min(calc(100% - 96px), var(--content)); max-width: none; display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 24px; background: #292133; border-radius: 9px; color: #b7a8c5; font-size: 12px; line-height: 1.7; margin: 0 auto 36px; }
.edition-note > span { color: #d0bddb; font-weight: 500; }
.edition-note p { margin: 0; max-width: 78ch; }
.edition-note a { color: #cbb894; white-space: nowrap; }
.edition-note strong { color: #c5b6d1; font-weight: 500; }

.workbench { width: min(calc(100% - 64px), 1344px); margin: 0 auto 76px; padding: 44px 46px 38px; background: #231c34; border-radius: 24px 24px 13px 13px; border: 1px solid #4b3e5c; box-shadow: 0 14px 50px #0c081d40; scroll-margin-top: 25px; }
.workbench-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 30px; }
.workbench-heading h2 { margin-bottom: 10px; font-size: clamp(2.1rem, 3vw, 2.8rem); }
.workbench-heading p { max-width: 660px; color: var(--muted); font-size: 14px; margin: 0; }
.workbench-heading > p { max-width: 330px; }
.section-kicker { font-size: 12px; color: #b8a6c7; margin: 0 0 11px !important; }
.planner-controls { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.path-tabs { display: inline-flex; flex-wrap: wrap; padding: 5px; gap: 5px; background: #151021; border-radius: 10px; }
.path-tabs button { display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; border: 1px solid transparent; padding: 13px 17px; color: #b6a8c7; font-size: 13px; line-height: 1.35; }
.path-tabs button svg { width: 30px; height: 30px; color: #c6afd3; }
.path-tabs button small { display: block; margin-top: 5px; font-size: 10px; color: #b4a4c2; }
.path-tabs button[aria-pressed='true'] small { color: #e0c8e5; }
.path-tabs button[aria-pressed='true'] { background: #574261; border-color: #806685; color: #fff0f5; }
.path-tabs button:hover { color: var(--bone); background: #352840; }
.path-tabs button[aria-pressed='true']:hover { background: #60496b; }
.level-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; min-width: 300px; }
.level-control > label { grid-column: 1; grid-row: 1; font-size: 12px; color: var(--muted); }
.level-input-row { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; }
.level-input-row > span { color: #a894bc; font-size: 11px; margin-left: 4px; }
.level-input-row input { width: 54px; height: 38px; border: 1px solid #79628a; background: #151021; color: var(--bone); text-align: center; font-size: 19px; border-radius: 6px; padding: 3px; appearance: textfield; -moz-appearance: textfield; }
.level-input-row input::-webkit-inner-spin-button, .level-input-row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.level-control button { min-width: 34px; height: 34px; border-color: #5c4c6d; background: #33273f; font-size: 18px; line-height: 1; }
.level-control button:hover:not(:disabled) { background: #4b3858; border-color: #b09ac4; }
.level-control button:disabled { opacity: .45; }
.level-control input[type='range'] { grid-column: 1 / -1; width: 100%; min-width: 0; accent-color: var(--brass); cursor: pointer; height: 28px; background: transparent; border: 0; }
.milestones { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 27px; }
.milestones button { border: 0; background: #32273f; color: #c4b5d3; padding: 7px 12px; font-size: 11px; border-radius: 5px; line-height: 1.45; }
.milestones button:hover { background: #48364f; color: var(--bone); }
.milestones button[aria-pressed='true'], .milestones button.active { background: #d5b66c; color: #271e30; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 28px; align-items: start; }
.talent-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.talent-school { min-width: 0; padding: 19px 0 0; border-top: 2px solid #8b6c8d; }
.talent-school[data-school='holy'], .talent-school.holy { border-color: var(--brass); }
.talent-school[data-school='protection'], .talent-school.protection { border-color: #819dc6; }
.talent-school[data-school='retribution'], .talent-school.retribution { border-color: var(--rose); }
.talent-school h3 { margin: 0 0 20px; font-size: 23px; }
.talent-school h3 span, .talent-school h3 small { font-family: var(--sans); font-size: 11px; color: #a795b8; margin-left: 8px; }
.talent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.talent-node { min-height: 142px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 6px 10px; border: 1px solid #504260; border-radius: 8px; background: #2c233a; color: #d5c8df; font-size: 11px; line-height: 1.35; position: relative; }
.talent-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 8px; background: #20192b; color: #baa8ce; margin-bottom: 9px; }
.talent-icon svg { display: block; width: 25px; height: 25px; }
.talent-name { display: block; overflow-wrap: anywhere; }
.talent-level { display: block; color: #aa99ba; font-size: 9px; margin-top: 5px; }
.talent-node[data-state='learned'] .talent-level { color: #c6b99b; }
.talent-node[data-state='partial'] .talent-level { color: #c7adce; }
.talent-node[data-state='next'] .talent-level { color: #b7c7e0; }
.talent-rank { display: block; padding-top: 9px; margin-top: auto; font-size: 10px; font-weight: 600; color: #a996be; }
.talent-node[data-state='learned'] { background: #3e352f; color: #f3e8cd; border-color: #9c8255; }
.talent-node[data-state='learned'] .talent-icon { background: #29241f; color: #e8c87b; }
.talent-node[data-state='learned'] .talent-rank { color: #d5c18c; }
.talent-node[data-state='partial'] { background: #363045; border-color: #ac83b2; color: #eed8f2; }
.talent-node[data-state='partial'] .talent-icon { color: #d6a7dd; }
.talent-node[data-state='partial'] .talent-rank { color: #dfb8e6; }
.talent-node[data-state='locked'] { background: #211a2e; color: #b7a9c7; border-color: #42354f; }
.talent-node[data-state='locked'] .talent-icon { color: #8b7c9b; background: #1a1425; }
.talent-node[data-state='locked'] .talent-rank { color: #aa9bb9; }
.talent-node[data-state='next'] { background: #2d3545; border: 1px dashed #b4c5e2; color: #e3eafd; }
.talent-node[data-state='next'] .talent-icon { background: #202839; color: #b4cff5; }
.talent-node[data-state='next'] .talent-rank { color: #c5d5f2; }
.talent-node:hover { border-color: #ddd1e4; background: #443550; }
.talent-node[aria-pressed='true'] { outline: 2px solid #efe2c7; outline-offset: 3px; }
.talent-node:focus-visible { outline: 3px solid #b9ccef; outline-offset: 3px; }
.talent-inspector { position: sticky; top: 28px; background: #191325; border-radius: 15px; padding: 25px; min-width: 0; }
.inspector-top { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.inspector-top .talent-icon { width: 52px; height: 52px; margin: 0; background: #33263e; color: var(--brass); }
.inspector-top .talent-icon svg { width: 34px; height: 34px; }
.inspector-top > svg { width: 39px; height: 39px; color: var(--brass); }
.inspector-top h3 { margin: 0; font-size: 23px; }
.inspector-top small, .inspector-top p { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.inspector-body { font-size: 13px; color: #bdb0ce; line-height: 1.8; }
.inspector-body strong { color: #ede2d3; }
.inspector-body ul { padding-left: 18px; }
.inspector-body .source { font-size: 11px; }
.inspector-body .badge { margin-bottom: 15px; }
.rank-pips { display: flex; gap: 7px; margin: 18px 0; }
.rank-pips span { display: block; width: 25px; height: 7px; border-radius: 2px; background: #49364f; border: 1px solid #675174; }
.rank-pips span.is-filled { background: #d5b66c; border-color: #e5c982; }
.inspector-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #b7a6c7; font-size: 11px; margin: 17px 0; }
.inspector-stats p { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.inspector-stats strong { color: #d9c8e2; }
.point-summary { display: flex; flex-wrap: wrap; gap: 11px 20px; padding: 18px 0 0; margin: 19px 0 0; color: #b5a7c6; font-size: 12px; border-top: 1px solid #45344f; }
.point-summary strong { display: block; color: var(--bone); font-family: var(--display); font-size: 27px; line-height: 1.25; font-weight: 500; }
.point-summary span { color: #bdadcd; }
.workbench > .point-summary { margin: 0 0 27px; padding: 12px 0 19px; border-top: 0; border-bottom: 1px solid #46354f; }
.workbench > .point-summary strong { display: inline; font: 500 14px/1.5 var(--sans); margin-right: 5px; }
.next-point { padding: 17px; margin-top: 20px; background: #30374b; border-radius: 8px; color: #cbd7f1; font-size: 12px; line-height: 1.65; }
.next-point strong { display: block; color: #e0eafd; font-weight: 500; margin-bottom: 5px; }
.planner-note { margin: 22px 0 0; font-size: 12px; color: #aa9ab9; max-width: 850px; line-height: 1.75; }
.planner-warning { background: #432b3c; color: #e7c7d8; padding: 18px 22px; border-radius: 8px; font-size: 13px; margin: 25px 0 0; }
#copy-build { width: 100%; font-size: 11px; padding: 11px 12px; margin-top: 21px; }
#copy-build-status { margin: 8px 0 0; min-height: 18px; font-size: 10px; }
.talent-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 11px; color: #bcadcb; margin: 23px 0 0; }
.talent-legend span { display: inline-flex; align-items: center; gap: 7px; }
.talent-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: #9c8255; }
.route-strip { width: min(calc(100% - 96px), var(--content)); margin: -20px auto 90px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.route-strip > * { padding: 18px 0 0; border-top: 3px solid #6f5a78; min-width: 0; }
.route-strip strong, .route-strip .level { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--bone); }
.route-strip h3 { font-family: var(--sans); font-size: 13px; font-weight: 500; margin: 9px 0; }
.route-strip p { color: #aa9cb9; font-size: 12px; line-height: 1.75; }
.route-strip > :nth-child(1) { border-color: #667fa9; }
.route-strip > :nth-child(2) { border-color: #bf86a0; }
.route-strip > :nth-child(3) { border-color: #bba565; }
.route-strip > :nth-child(4) { border-color: #8c9d77; }

#main { width: 100%; max-width: none; margin: 0; padding: 0; }
.reading-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); width: min(calc(100% - 96px), var(--content)); margin: 0 auto; align-items: start; }
#sidebar, .sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); padding: 0 0 28px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #665278 transparent; }
#sidebar .brand { display: none; }
.brand { color: var(--bone); text-decoration: none; }
.search-wrap label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
#guide-search { width: 100%; min-height: 43px; border: 1px solid #564464; background: #21182f; padding: 10px 12px; color: var(--bone); border-radius: 7px; font-size: 12px; }
#guide-search::placeholder { color: #ac9bbb; }
#search-status { color: #b7a4c9; font-size: 11px; line-height: 1.55; min-height: 20px; margin: 7px 0; }
.nav { display: grid; gap: 3px; margin-top: 18px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 13px; margin-left: -13px; border-radius: 6px; color: #aa9aba; text-decoration: none; font-size: 12px; line-height: 1.55; }
.nav a:hover { color: #e2d8ec; background: #2a203a; }
.nav a.active, .nav a[aria-current='location'] { background: #3a2a44; color: #e6c28d; }
.nav a > span:first-child:not(:last-child) { display: none; }
.nav-label, .sidebar-label { color: #b5a7c1; font-size: 12px; font-weight: 500; margin: 25px 0 9px; text-transform: none; letter-spacing: 0; }
.sidebar-footer { margin-top: 25px; font-size: 11px; color: #a38fb3; line-height: 1.8; }
.sidebar-title { font-family: var(--display); color: #d7c4e2; font-size: 21px; margin-bottom: 23px; }
#guide-content { margin: 0; padding: 0; max-width: 100%; min-width: 0; }
#guide-content > section { padding: 0 0 82px; scroll-margin-top: 28px; }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { margin: 0; }
.section-number, .eyebrow { display: none; }
.section-intro { max-width: 760px; font-size: 16px; line-height: 1.85; color: #baacc8; margin-bottom: 32px; }
#guide-content p { max-width: 80ch; }
.grid, .grid-2, .grid-3, .source-cards { display: grid; gap: 30px; }
.grid-2, .source-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; background: #241b33; padding: 27px; border-radius: 13px; }
.card h3 { font-size: 24px; }
.card p, .card li { color: #bcaccb; font-size: 14px; }
.card > .badge { margin-bottom: 20px; }
.card.ret { background: #332139; }
.card.holy { background: #2e2934; }
.card .level { font-size: 12px; display: block; margin-bottom: 13px; color: var(--brass); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; color: #ccb7db; font-size: 10px; line-height: 1.5; background: #3a2c47; border-radius: 4px; }
.badge.ret, .badge.pink { color: #edbdd2; background: #502e45; }
.badge.holy, .badge.gold { color: #e7d49e; background: #48402e; }
.badge.green { color: #d5e0c4; background: #35402e; }
.callout { background: #30283d; color: #d4c8de; padding: 25px 28px; margin: 30px 0; border-radius: 5px 16px 16px 5px; border-left: 4px solid #ab8bb7; }
.callout h3 { font-size: 24px; }
.callout.correction, .callout.warning { background: #382435; border-left-color: var(--rose); color: #dec1d0; }
.callout.tip { background: #29312e; border-left-color: var(--sage); color: #c5d0bd; }
.callout p { font-size: 14px; }
.muted { color: var(--muted); }
.source { color: #b4a9ca; font-size: 11px; line-height: 1.7; text-decoration-color: #655775; white-space: nowrap; }
.source:hover { color: #e3cadf; }
.source-line, .sources-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; margin-top: 22px; font-size: 11px; line-height: 1.7; }
.source-line { max-width: none !important; }
.source-line a { color: #b9a7c9; }
.ability { color: #e3cb95; font-weight: 500; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; color: var(--muted); }
.table-wrap { width: 100%; margin: 27px 0; overflow: auto; border-radius: 9px; background: #20172d; scrollbar-color: #745d86 #241a32; border: 1px solid #463551; }
table { width: 100%; border-collapse: collapse; text-align: left; line-height: 1.7; font-size: 13px; }
th, td { padding: 18px 20px; vertical-align: top; }
th { background: #35273e; color: #d1bfd9; font-weight: 500; font-size: 12px; }
td { border-top: 1px solid #3e2e49; color: #bcafc9; }
td:first-child { color: #e2d6cb; font-weight: 500; }
tbody tr:nth-child(even) { background: #271c34; }
td .source { display: inline-block; margin-top: 6px; }
.comparison td, .comparison th { width: 33.333%; }
.timeline { margin: 30px 0 0 8px; padding-left: 32px; border-left: 2px solid #5c455e; }
.timeline-item, .talent-step { position: relative; padding-bottom: 32px; }
.timeline-item:last-child, .talent-step:last-child { padding-bottom: 0; }
.timeline-item::before, .talent-step::before { content: ''; position: absolute; width: 12px; height: 12px; top: 9px; left: -39px; border-radius: 50%; background: #b38aa0; border: 3px solid #191529; box-shadow: 0 0 0 1px #b38aa0; }
.level { color: var(--brass); font-size: 13px; font-weight: 500; }
.timeline-item h3, .talent-step h3 { margin: 7px 0 13px; }
.timeline-item p, .talent-step p { color: #b4a7c1; }
.steps, .numbered { padding: 0; list-style: none; counter-reset: guide-step; }
.steps > li, .numbered > li { position: relative; padding-left: 45px; margin: 20px 0; counter-increment: guide-step; }
.steps > li::before, .numbered > li::before { content: counter(guide-step); display: grid; place-items: center; position: absolute; left: 0; top: 0; width: 28px; height: 28px; font-family: var(--display); font-size: 18px; color: var(--bone); background: #49324e; border-radius: 50%; line-height: 1; }
details { background: #241b32; border-radius: 9px; margin-top: 15px; overflow: hidden; }
summary { padding: 21px 24px; color: #decee4; font-size: 14px; font-weight: 500; line-height: 1.55; }
summary::marker { color: #b99bc8; }
details[open] summary { background: #30223c; margin-bottom: 20px; }
details > :not(summary) { margin-left: 24px; margin-right: 24px; }
details > :last-child { margin-bottom: 24px; }
details .table-wrap { width: calc(100% - 48px); }
details img { max-width: calc(100% - 48px); height: auto; border-radius: 5px; margin-bottom: 20px; }
.quick-sheet { background: #30362f; color: #dbe0cd; border-radius: 15px 15px 4px 15px; padding: 32px; margin-top: 24px; }
.quick-sheet h3, .quick-sheet strong { color: #ecedd9; }
.quick-sheet p, .quick-sheet li { color: #ccd4bd; }
.quick-sheet a, .quick-sheet .source { color: #b8ca9d; }
.quick-sheet .muted { color: #b0bc9f; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; color: #d6dec8; font-size: 14px; line-height: 1.7; }
.checklist label + label { border-top: 1px solid #4b5643; }
.checklist input { flex: 0 0 18px; width: 18px; height: 18px; margin: 4px 0 0; accent-color: #bbc99a; }
.checklist input:checked + span { text-decoration: line-through; color: #aeb89f; }
.checklist li { margin: 0; padding: 0; list-style: none; }
.macro-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.macro-header h3 { margin: 0; }
.copy-button { font-size: 11px; padding: 8px 13px; color: #e4cf9b; background: #3a2c45; border-color: #5c4767; white-space: nowrap; }
.copy-button:hover { background: #4d3a59; }
.source-card { display: block; color: var(--body); background: #251b34; text-decoration: none; padding: 18px 18px 23px; border-radius: 13px; }
.source-card:hover { color: var(--body); background: #2c203d; }
.source-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; margin-bottom: 20px; }
.source-card h3 { font-size: 23px; margin-bottom: 13px; }
.source-card p { font-size: 13px; color: #bcadcb; }
.source-card .author { color: #d1ba96; font-size: 11px; margin-bottom: 13px; text-transform: none; }
.source-card .source { display: inline-block; color: #dbc28c; margin-top: 7px; }
.footer, footer { font-size: 11px; line-height: 1.8; color: #a895ba; padding: 15px 0 45px; }
body > footer { width: min(calc(100% - 96px), var(--content)); margin: auto; }
.footer-meta { display: flex; gap: 30px; justify-content: space-between; }

#combat-lab { scroll-margin-top: 28px; width: min(calc(100% - 96px), var(--content)); margin: 0 auto 90px; }
#combat-lab > p { max-width: 78ch; }
.combat-controls { display: flex; flex-wrap: wrap; gap: 20px; margin: 28px 0 24px; align-items: end; }
#combat-context { flex: 1 1 400px; margin: 0; color: #b8a8c7; font-size: 13px; }
.combat-controls > label { flex: 0 1 320px; }
.combat-controls label { display: grid; gap: 8px; color: #bcaecb; font-size: 12px; flex: 1 1 200px; }
.combat-controls select { width: 100%; padding: 11px 36px 11px 14px; border: 1px solid #604c6f; background: #2b1f3b; color: #e6dceb; min-height: 46px; font-size: 13px; }
.combat-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 13px; margin: 24px 0; align-items: stretch; }
.combat-steps button { display: flex; align-items: center; flex-direction: column; position: relative; gap: 10px; min-height: 154px; padding: 17px 12px 14px; background: #30203b; border: 1px solid #674b70; color: #e4cce8; line-height: 1.45; border-radius: 11px; }
.combat-steps button:hover { background: #452c50; border-color: #af89ba; }
.combat-steps button[aria-pressed='true'], .combat-steps button.active { background: #41374b; border-color: #e4ca8c; color: #f1e7d0; outline: 2px solid #9b825b; outline-offset: 2px; }
.spell-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #dcc18a; background: #21172c; border-radius: 10px; }
.spell-icon svg { width: 29px; height: 29px; }
.step-label { font-size: 12px; overflow-wrap: anywhere; }
.step-index { position: absolute; top: 9px; left: 10px; font-size: 10px; color: #bca6ca; }
.combat-detail { padding: 27px 29px; border-radius: 13px; background: #29334a; color: #cbd6eb; font-size: 14px; }
.combat-detail h3 { color: #e6ebf6; margin-bottom: 14px; }
.combat-detail strong { color: #ecf0f8; }
.combat-detail .source { color: #b7caea; }
.combat-nav { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; }
.combat-nav .button { font-size: 12px; }
.combat-nav button:disabled { opacity: .45; cursor: default; }
.mana-hint { color: #b4c7e4; font-size: 13px; margin: 21px 0 0; padding-left: 17px; border-left: 3px solid #708bb7; }
.seal-demo { display: block; margin: 26px 0; padding: 0; background: #261b34; border-radius: 12px; }
.seal-demo-body { padding: 5px 0 6px; }
.seal-demo-body > p { font-size: 13px; }
.seal-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin: 23px 0; }
.seal-demo > h3, .seal-demo > p, .seal-demo > .seal-controls { grid-column: 1 / -1; }
.seal-demo h3 { margin-bottom: 0; }
.seal-state, .echo-state { padding: 20px; background: #3b2946; border-radius: 9px; color: #e1c6e6; min-width: 0; }
.echo-state { background: #2b3845; color: #bed2e8; }
.seal-state strong, .echo-state strong { display: block; color: #f0dbec; font-family: var(--display); font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.echo-state strong { color: #dce7f6; }
.seal-state p, .echo-state p { font-size: 13px; }
.seal-state > span, .echo-state > span { display: block; font-size: 11px; margin-bottom: 9px; }
.seal-controls, .seal-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.seal-controls button, .seal-actions button, .seal-demo > button { padding: 10px 15px; font-size: 12px; border-color: #695272; background: #392741; color: #e6d0ed; }
.seal-controls button:hover, .seal-actions button:hover, .seal-demo > button:hover { background: #513658; }
.seal-controls button[aria-pressed='true'] { background: #d5b66c; color: #292035; }
#seal-feedback { margin-top: 20px; color: #d7c3e2; }

dialog { color: var(--body); background: #251b34; border: 1px solid #79628b; border-radius: 16px; padding: 54px 28px 28px; max-height: calc(100dvh - 36px); max-width: calc(100vw - 32px); overflow: auto; box-shadow: 0 24px 100px #08050dbb; }
dialog::backdrop { background: #100b1cd9; backdrop-filter: blur(5px); }
dialog > button:first-child, dialog .dialog-close, #close-talent, #close-image { position: absolute; right: 17px; top: 16px; padding: 7px 12px; font-size: 11px; background: #483252; border-color: #8a6b98; color: #f0def4; }
#talent-dialog { width: 480px; }
#talent-dialog .inspector-body { font-size: 14px; }
#talent-dialog h3 { font-size: 26px; }
#image-dialog { width: min(1200px, calc(100vw - 32px)); padding: 57px 20px 18px; background: #15101f; }
#image-dialog img { max-height: calc(100dvh - 140px); width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; border-radius: 4px; }
#image-dialog p { font-size: 11px; color: #b7a5c9; margin: 14px 0 0; text-align: center; }
[data-zoom] { cursor: zoom-in; }

.mobile-bar { display: none; }
#menu-toggle { display: none; }

@media (min-width: 1600px) {
  .hero-v2 { padding-top: 36px; padding-bottom: 84px; }
  .hero-art { max-width: 450px; }
}
@media (max-width: 1180px) {
  .site-header, .hero-v2, .route-strip, .reading-layout, #combat-lab, .edition-note, body > footer { width: calc(100% - 64px); }
  .hero-v2 { gap: 40px; }
  .workbench { padding: 35px 30px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 22px; }
  .talent-map { gap: 16px; }
  .talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .talent-node { min-height: 129px; }
  .talent-inspector { padding: 23px 20px; }
  .reading-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 37px; }
  .grid-3 { gap: 16px; }
  .grid-3 .card { padding: 21px; }
  .grid-3 .card h3 { font-size: 21px; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 82px; }
  .site-header { min-height: 82px; position: sticky; top: 0; z-index: 70; width: 100%; padding: 0 32px; background: #191529f5; backdrop-filter: blur(14px); }
  .header-links { gap: 20px; }
  .header-links a { font-size: 11px; }
  .hero-v2 { grid-template-columns: minmax(0, 1fr) 285px; gap: 34px; padding-top: 25px; padding-bottom: 58px; }
  .hero-copy h1 { font-size: 4rem; }
  .hero-intro { font-size: 16px; }
  .planner-controls { align-items: start; flex-direction: column; gap: 22px; }
  .level-control { width: 100%; }
  .planner-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 21px; }
  .talent-node { min-height: 140px; font-size: 10px; }
  .talent-map { gap: 14px; }
  .talent-grid { gap: 9px; }
  .talent-school h3 { font-size: 20px; }
  .workbench-heading { display: block; }
  .workbench-heading > p { margin-top: 14px; max-width: 650px; }
  .route-strip { gap: 20px; margin-bottom: 70px; }
  .reading-layout { display: block; }
  #sidebar, .sidebar { position: fixed; inset: 0 auto 0 0; top: 0; max-height: 100dvh; width: 285px; z-index: 60; padding: 85px 24px 35px; background: #21172f; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 60px #0b071d80; }
  #sidebar.is-open, .sidebar.is-open { transform: translateX(0); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; position: sticky; top: 0; z-index: 70; background: #21182ff5; padding: 10px 23px; margin: 0 -32px 34px; backdrop-filter: blur(14px); min-height: 59px; }
  .mobile-bar .brand { font-family: var(--display); font-size: 17px; }
  #menu-toggle { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 80; min-height: 40px; gap: 8px; font-size: 12px; padding: 8px 13px; background: #38263f; border-color: #795785; color: #ead5ef; }
  .site-header #menu-toggle { margin-left: auto; }
  #guide-content > section, #talent-planner, #combat-lab, #guide-content { scroll-margin-top: 100px; }
}
@media (max-width: 780px) {
  body { font-size: 14px; }
  .hero-v2, .route-strip, .reading-layout, #combat-lab, .edition-note, body > footer { width: calc(100% - 44px); }
  .site-header { min-height: 74px; gap: 18px; padding-inline: 22px; }
  .wordmark { font-size: 20px; }
  .header-links a:not(.button) { display: none; }
  .hero-v2 { grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; }
  .hero-copy h1 { font-size: 3.2rem; }
  .hero-intro { font-size: 14px; margin-top: 20px; }
  .hero-buttons { gap: 10px; margin-top: 23px; }
  .hero-buttons .button { padding: 11px 15px; font-size: 12px; }
  .edition-note { font-size: 11px; grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .workbench { width: calc(100% - 28px); padding: 30px 23px; border-radius: 19px 19px 10px 10px; margin-bottom: 54px; }
  .planner-layout { grid-template-columns: 1fr; }
  .talent-inspector { position: static; padding: 24px; }
  .talent-map { gap: 24px; }
  .talent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .talent-node { min-height: 137px; }
  .point-summary { gap: 18px 28px; }
  .route-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 0; margin-bottom: 60px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-3 .card { display: block; padding: 23px; }
  .mobile-bar { margin-inline: -22px; }
  .grid-2, .source-cards { gap: 24px; }
  .card { padding: 23px; }
  .card h3 { font-size: 22px; }
  .card p { font-size: 13px; }
  #guide-content > section { padding-bottom: 62px; }
  .section-intro { font-size: 15px; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.4rem; }
  .combat-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .talent-inspector #talent-detail { display: none; }
  .talent-inspector .next-point { margin-top: 0; }
}
@media (max-width: 560px) {
  .site-header { min-height: 77px; }
  .wordmark { font-size: 18px; gap: 10px; }
  .wordmark svg { width: 25px; }
  .header-links .button { padding: 8px 11px; font-size: 11px; }
  .hero-v2 { grid-template-columns: 1fr; padding-top: 15px; padding-bottom: 45px; gap: 31px; }
  .hero-copy { padding: 8px 0 0; }
  .hero-copy h1 { font-size: clamp(3.1rem, 12vw, 4.3rem); max-width: 490px; }
  .hero-intro { font-size: 16px; line-height: 1.8; margin-top: 21px; }
  .hero-buttons .button { padding: 12px 18px; font-size: 12px; }
  .hero-art { justify-self: center; max-width: 330px; padding: 0; }
  .edition-note { font-size: 11px; max-width: none; }
  .workbench { padding: 27px 18px; }
  .workbench-heading { margin-bottom: 23px; }
  .workbench-heading h2 { font-size: 2rem; }
  .workbench-heading p { font-size: 13px; }
  .planner-controls { gap: 18px; }
  .path-tabs { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .path-tabs button { padding: 11px 8px; font-size: 11px; gap: 8px; }
  .path-tabs button svg { width: 23px; height: 23px; }
  .path-tabs button small { font-size: 9px; line-height: 1.5; }
  .level-control { min-width: 0; }
  .level-control output { font-size: 24px; }
  .milestones { gap: 6px; margin-bottom: 23px; }
  .milestones button { font-size: 10px; padding: 7px 9px; }
  .talent-map { gap: 26px; grid-template-columns: 1fr; }
  .talent-school { padding-top: 17px; }
  .talent-school h3 { margin-bottom: 17px; font-size: 23px; }
  .talent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .talent-node { font-size: 11px; min-height: 133px; padding-inline: 7px; }
  .talent-inspector { padding: 23px; }
  .planner-note { font-size: 11px; }
  .route-strip { gap: 24px 22px; }
  .route-strip strong, .route-strip .level { font-size: 24px; }
  .route-strip p { font-size: 11px; }
  h2 { font-size: 2.12rem; }
  h3 { font-size: 1.4rem; }
  .section-heading { margin-bottom: 22px; }
  .section-intro { font-size: 14px; }
  .grid, .grid-2, .grid-3, .source-cards { grid-template-columns: 1fr; gap: 20px; }
  .quick-sheet { padding: 25px 22px; }
  .quick-sheet .grid-2 { gap: 20px; }
  .callout { padding: 23px 22px; }
  .callout h3 { font-size: 23px; }
  .callout p { font-size: 13px; }
  table { min-width: 600px; font-size: 12px; }
  th, td { padding: 15px 17px; }
  .table-wrap { margin-block: 23px; }
  summary { font-size: 13px; padding: 19px; }
  details > :not(summary) { margin-inline: 18px; }
  details .table-wrap { width: calc(100% - 36px); }
  details img { max-width: calc(100% - 36px); }
  .timeline { padding-left: 27px; }
  .timeline-item::before, .talent-step::before { left: -34px; }
  .checklist label { font-size: 13px; gap: 12px; }
  .macro-header { align-items: start; flex-direction: column; gap: 14px; }
  pre { padding: 20px; font-size: 11px; }
  .footer-meta { display: block; }
  .combat-controls { gap: 15px; }
  .combat-controls label { flex-basis: 100%; }
  .combat-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .combat-steps button { min-height: 137px; }
  .combat-detail { padding: 23px; font-size: 13px; }
  .seal-demo { padding: 0; }
  .seal-states { grid-template-columns: 1fr; gap: 13px; }
  .seal-state, .echo-state { padding: 20px; }
  .mobile-bar .brand { font-size: 15px; }
  #menu-toggle { font-size: 11px; padding-inline: 11px; }
  .combat-nav .button { font-size: 11px; padding: 11px 13px; }
  dialog { padding: 53px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { color-scheme: light; --night: white; --bone: #191529; --body: #272331; --muted: #55505b; --brass: #665020; --line: #c8c0ce; }
  body { background: white; color: #222; font-size: 10pt; line-height: 1.55; }
  .site-header, #sidebar, .sidebar, .mobile-bar, #menu-toggle, .hero-buttons, .header-links, .copy-button, #print-button, .skip-link { display: none !important; }
  .hero-v2, .workbench, .route-strip, .reading-layout { width: 100%; margin: 0 0 25px; padding: 0; display: block; box-shadow: none; border: 0; }
  .hero-copy h1 { font-size: 34pt; }
  .hero-art { display: none; }
  .hero-intro, .edition-note, .section-intro, .planner-note, .route-strip p { color: #444; }
  .hero-copy { padding: 0; }
  .route-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
  h2 { font-size: 24pt; }
  h3 { font-size: 15pt; break-after: avoid; }
  #guide-content > section { padding-bottom: 25px; }
  #combat-lab { width: 100%; margin: 0 0 25px; }
  .grid-2, .grid-3, .source-cards { grid-template-columns: 1fr 1fr; gap: 15px; }
  .card, .quick-sheet, .callout, .source-card, .table-wrap, details, pre, .combat-detail { background: white !important; color: #333; box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .card p, .card li, .quick-sheet p, .quick-sheet li, .callout p, .source-card p, .timeline-item p, .talent-step p, .checklist label, td, td:first-child, strong, .ability { color: #333; }
  .quick-sheet h3, .quick-sheet strong, .callout h3, .combat-detail h3, .combat-detail strong { color: #222; }
  .source, .source-line a, .muted, .footer, footer { color: #555; }
  table { min-width: 0; font-size: 8pt; }
  th, td { padding: 9px; }
  th { background: #eee; color: #333; }
  tbody tr:nth-child(even) { background: #fafafa; }
  .table-wrap { overflow: visible; }
  .source-card img { height: 90px; width: auto; }
  .source-card h3 { font-size: 14pt; }
  details:not([open]) > :not(summary) { display: block; }
  summary, details[open] summary { background: #f5f3f5; color: #333; padding: 10px; }
  .planner-controls, .milestones, .talent-map, .combat-controls, .combat-steps, .seal-controls { display: none; }
  .planner-layout { display: block; }
  .talent-inspector, .next-point, .seal-demo, .seal-state, .echo-state { background: white; color: #333; border: 1px solid #ccc; }
  .inspector-body, .inspector-top p, .next-point strong, .point-summary span, .point-summary strong { color: #333; }
  .talent-inspector { position: static; }
  .mana-hint { color: #444; }
}
