@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #edf4f2;
  --muted: #99abb7;
  --dim: #6e8795;
  --page: #080f18;
  --surface: #0c1925;
  --surface-2: #102331;
  --line: #28424f;
  --accent: #76e9cf;
  --accent-rgb: 118, 233, 207;
  --gold: #f2bd58;
  --world-x: 0%;
  --world-y: 0%;
  --body-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --pixel-font: "Cascadia Code", "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body-font); font-size: 14px; line-height: 1.5; min-width: 280px; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% -12%, rgba(var(--accent-rgb), .09), transparent 55%); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a { touch-action: manipulation; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
button { border-radius: 2px; }
[hidden] { display: none !important; }
img, svg, canvas { max-width: 100%; }
canvas { image-rendering: pixelated; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
ul { padding-left: 20px; }
fieldset { padding: 0; border: 0; margin: 18px 0; min-width: 0; }
legend, .form-label { font-weight: 650; font-size: 13px; color: #d8e7e9; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 30; background: var(--gold); color: #19170f; padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.app-shell { width: min(1480px, calc(100% - 64px)); margin: 0 auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #1d303f; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; flex-shrink: 0; }
.brand-mark { flex-shrink: 0; filter: drop-shadow(0 0 12px #f2bd5820); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { color: #f5e6bf; font: 800 19px/1.2 var(--pixel-font); letter-spacing: .055em; }
.brand-copy > span { color: var(--dim); font-size: 11px; letter-spacing: .045em; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-link.current { color: var(--accent); }
.button { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 13px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; box-shadow: inset 0 1px #ffffff08; transition: border-color .16s, background .16s, transform .16s; }
.button:hover { border-color: var(--accent); background: #152e3c; }
.button:active { transform: translateY(1px); }
.button-quiet { color: #d9e8ea; background: #0e1b26; border-color: #2a4050; }
.pixel-person { color: var(--accent); font-size: 21px; line-height: 1; }
.button-primary { background: var(--gold); color: #241c0c; border: 1px solid #ffe2a0; box-shadow: inset 0 -3px #ad782d, 0 0 0 2px #6a512133; text-shadow: 0 1px #ffdfa0; }
.button-primary:hover { background: #ffd078; border-color: #ffecbd; }
.button-outline { color: var(--muted); background: transparent; }
.text-button { background: none; border: 0; padding: 3px 0; font-size: 12px; line-height: 1.5; color: var(--accent); text-decoration: none; }
.text-button:hover { color: #f5faf9; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: 22px; line-height: 1; }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--gold); border-color: #b28d49; background: #f2bd5810; }
.eyebrow { font: 700 10px/1.4 var(--pixel-font); letter-spacing: .11em; color: var(--dim); }
.status-dot { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; background: var(--accent); box-shadow: 0 0 7px rgba(var(--accent-rgb), .45); }
.explore-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 24px; }
.explore-intro .eyebrow { color: var(--accent); margin-bottom: 8px; }
.explore-intro h1 { font-size: clamp(23px, 2.25vw, 32px); font-weight: 720; letter-spacing: -.045em; }
.intro-copy { margin-top: 7px; color: var(--muted); font-size: 13px; }
.search-wrap { flex: 0 1 280px; position: relative; min-width: 200px; }
.search-wrap input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 32px 10px 38px; background: #0d1a26; color: var(--ink); font-size: 13px; }
.search-wrap input::placeholder { color: var(--dim); opacity: 1; }
.search-icon { position: absolute; top: 5px; left: 12px; color: var(--dim); font-size: 26px; pointer-events: none; }
.search-results { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: max(100%, 300px); max-width: min(420px, calc(100vw - 32px)); max-height: 390px; overflow-y: auto; padding: 6px; background: #10212e; border: 1px solid #476472; border-radius: 3px; box-shadow: 0 18px 50px #0008; }
.search-results button, .search-result { width: 100%; border: 0; text-align: left; padding: 12px; background: transparent; display: flex; flex-direction: column; gap: 3px; color: #e1eff0; }
.search-results button:hover, .search-result:hover { background: rgba(var(--accent-rgb), .1); }
.search-results small, .search-result small { color: var(--muted); font-size: 11px; }
.search-results p { color: var(--muted); padding: 12px; font-size: 13px; }
.area-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 24px; }
.area-card { --area-color: var(--accent); min-height: 64px; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 11px 14px; text-align: left; background: #0d1b27; border: 1px solid #263c4c; box-shadow: inset 0 1px #ffffff05; color: #a7bac4; position: relative; transition: border-color .17s, background .17s, transform .17s; }
.area-card::before { position: absolute; inset: 4px; content: ""; border: 1px solid transparent; pointer-events: none; }
.area-card:hover { background: #152633; border-color: var(--area-color); transform: translateY(-1px); }
.area-card.active, .area-card.selected, .area-card[aria-pressed="true"] { background: rgba(var(--accent-rgb), .075); border-color: var(--accent); color: var(--ink); box-shadow: 0 0 16px rgba(var(--accent-rgb), .05), inset 0 0 20px rgba(var(--accent-rgb), .035); }
.area-card.active::before, .area-card[aria-pressed="true"]::before { border-color: rgba(var(--accent-rgb), .2); }
.area-card svg { width: 25px; height: 25px; flex: 0 0 25px; color: var(--area-color); }
.area-card .area-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--area-color); flex: 0 0 29px; font-size: 20px; }
.area-card .area-name, .area-card > span:last-child, .area-card strong { font-size: 12px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.world-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 15px; }
.world-label .eyebrow { font-size: 9px; margin-bottom: 5px; }
.world-label h2 { font: 700 22px/1.2 var(--pixel-font); color: var(--accent); letter-spacing: -.035em; }
.world-label p:last-child { margin-top: 5px; font-size: 12px; color: var(--muted); max-width: 760px; }
.exploration-counter { display: flex; gap: 10px; align-items: center; padding: 0 4px 0 18px; flex-shrink: 0; border-left: 1px solid #28414f; }
.exploration-counter > span:first-child { color: var(--accent); font: 700 27px/1 var(--pixel-font); }
.exploration-counter > span:last-child { color: var(--dim); font-size: 10px; line-height: 1.35; }
.explorer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 390px); align-items: stretch; gap: 16px; }
.panel { border: 1px solid #385564; border-radius: 3px; background: #0b1a25; box-shadow: inset 0 0 0 4px #08141f, inset 0 0 0 5px #1c3543, 0 8px 24px #0002; }
.tree-panel { min-height: 680px; position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.world-backdrop, .world-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.world-backdrop { background-image: url("./assets/worlds-atlas.webp"); background-size: 500% 200%; background-position: var(--world-x) var(--world-y); image-rendering: pixelated; opacity: .61; transition: opacity .2s; }
.world-shade { z-index: -1; background: linear-gradient(180deg, #071320f5 0%, #071320c9 21%, #07132075 58%, #07132055 77%, #071320e8 100%); }
.tree-toolbar { display: flex; justify-content: space-between; gap: 14px; padding: 20px 22px 12px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 11px; color: #a7bdc7; }
.breadcrumbs button { border: none; background: none; color: var(--accent); padding: 0; font: inherit; }
.breadcrumbs .separator { color: #5c7a8a; }
.world-tag { font: 600 8px/1.5 var(--pixel-font); letter-spacing: .1em; color: #86a7b8; flex-shrink: 0; }
.tree-title { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 15px 22px 18px; }
.tree-title h3 { font: 700 17px/1.4 var(--pixel-font); letter-spacing: -.03em; color: #e6efdf; text-align: center; }
.map-spark { color: var(--gold); font-size: 14px; opacity: .8; }
.tree-canvas { position: relative; padding: 0 24px 30px; flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
.tree-branches { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; grid-column: 1 / -1; }
.tree-root { grid-column: 1 / -1; justify-self: center; text-align: center; margin-bottom: 6px; padding: 9px 18px; background: #102a35e8; border: 1px solid var(--accent); color: var(--accent); box-shadow: 0 0 0 3px #071522, 0 0 0 4px #335965; min-width: 110px; font: 700 12px/1.4 var(--pixel-font); }
.tree-root::after { content: ""; position: absolute; width: 1px; height: 24px; background: var(--accent); top: 45px; left: 50%; opacity: .6; }
.field-group { min-width: 0; display: flex; flex-direction: column; align-items: stretch; position: relative; }
.field-node { border: 1px solid #4a7d88; box-shadow: inset 0 0 0 3px #0b1f2c, inset 0 0 0 4px #294653, 0 5px 15px #0003; background: #0c2330ed; padding: 15px 13px; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; color: #d5e9e9; position: relative; }
.field-node .node-icon, .field-node > svg { color: var(--accent); }
.field-node h3, .field-node h4, .field-node strong { margin: 0; font-size: 13px; font-weight: 650; }
.field-node p { color: #91acb7; font-size: 10px; line-height: 1.45; }
.field-node small, .node-type { font: 600 8px/1 var(--pixel-font); letter-spacing: .07em; color: #98bbc9; }
.field-node::after { content: ""; position: absolute; bottom: -23px; left: 50%; width: 2px; height: 22px; background: rgba(var(--accent-rgb), .6); }
.career-list { display: flex; flex-direction: column; gap: 12px; margin-top: 23px; position: relative; }
.career-list::before { content: ""; position: absolute; top: 0; bottom: 30px; left: 50%; width: 2px; background: rgba(var(--accent-rgb), .48); z-index: -1; }
.career-node { width: 100%; min-width: 0; min-height: 70px; border: 1px solid #507080; padding: 12px 14px; background: #0b1d2aef; box-shadow: inset 0 0 0 3px #0a1823, inset 0 0 0 4px #253d4b, 0 5px 12px #0003; color: #cedee5; display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 11px; position: relative; transition: background .15s, border-color .15s, transform .15s; }
.career-node:hover { border-color: var(--accent); background: #173740f5; transform: translateY(-2px); }
.career-node.selected, .career-node.active, .career-node[aria-pressed="true"] { border-color: var(--gold); color: #ffe6ac; background: #332b1eef; box-shadow: inset 0 0 0 3px #1b211f, inset 0 0 0 4px #ac8c47, 0 0 18px #e3b5561c; }
.career-node.selected::after, .career-node[aria-pressed="true"]::after { position: absolute; right: 9px; top: 8px; content: "◆"; color: var(--gold); font-size: 7px; }
.career-node strong, .career-node .node-name { font-size: 12px; line-height: 1.35; font-weight: 650; }
.career-node small { display: block; color: #89a6b3; font-size: 9px; margin-top: 4px; }
.career-node.selected small { color: #c1ab7c; }
.career-node .node-icon, .career-node > svg { color: var(--accent); flex-shrink: 0; width: 24px; height: 24px; }
.career-node.selected .node-icon, .career-node.selected > svg { color: var(--gold); }
.tree-links { pointer-events: none; fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .55; }
.node-icon svg { width: 24px; height: 24px; }
.tree-bottom { margin-top: auto; padding: 18px 22px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; position: relative; }
.character-card { display: flex; align-items: center; gap: 9px; border: 1px solid #416171; background: #0a1b29ed; min-width: 205px; padding: 5px 13px 5px 4px; box-shadow: inset 0 0 0 3px #0b1b28, inset 0 0 0 4px #203746; }
.avatar-plinth { width: 65px; height: 92px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center 84%, #8fe7d52b, transparent 60%); flex: 0 0 65px; }
.avatar-plinth canvas { width: 65px; height: 87px; object-fit: contain; }
.character-card .eyebrow { font-size: 8px; color: #88afbe; }
.character-card p { font-size: 10px; color: #d4e3e7; max-width: 135px; margin: 5px 0 5px; }
.character-card .text-button { font-size: 10px; }
.map-note { font-size: 9px; line-height: 1.6; color: #a1b7bd; text-shadow: 0 1px 3px #000; text-align: right; }
.map-note > span { color: var(--gold); }
.career-panel { padding: 22px; position: relative; min-width: 0; background: linear-gradient(145deg, #102432, #0b1823 55%); }
.career-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.career-topline .eyebrow { font-size: 8px; }
.career-topline .icon-button { width: 29px; height: 29px; min-width: 29px; font-size: 21px; }
.career-meta { font-size: 10px; color: var(--accent); margin-bottom: 7px; }
.career-meta > span, .career-meta .badge { border: 1px solid #385767; padding: 2px 7px; color: #a6c6d2; font: 600 8px/1.4 var(--pixel-font); letter-spacing: .05em; }
.career-panel > h2 { font: 750 23px/1.2 var(--pixel-font); color: #f3e8c9; letter-spacing: -.045em; overflow-wrap: anywhere; }
.career-summary { color: #afc2cc; font-size: 12px; line-height: 1.65; margin-top: 10px; }
.details-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border-bottom: 1px solid #375363; margin: 20px 0 12px; }
.details-tabs button { background: #102330; color: #91aab7; border: 1px solid #294553; border-bottom: 0; font-size: 10px; font-weight: 650; padding: 9px 5px; border-radius: 2px 2px 0 0; }
.details-tabs button.active, .details-tabs button[aria-selected="true"] { color: var(--accent); background: rgba(var(--accent-rgb),.09); border-color: #4a7d83; box-shadow: inset 0 2px rgba(var(--accent-rgb),.6); }
.detail-content { color: #c4d3db; font-size: 11px; line-height: 1.65; min-height: 94px; }
.detail-content ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.detail-content li { position: relative; padding-left: 14px; }
.detail-content li::before { content: ""; position: absolute; top: .67em; left: 1px; width: 4px; height: 4px; background: var(--accent); opacity: .8; }
.detail-content h3, .detail-content h4 { font-size: 12px; color: var(--ink); margin: 0 0 9px; }
.mission-trigger { width: 100%; margin: 16px 0 21px; min-height: 44px; font-size: 11px; }
.mission-trigger > span:first-child { font-size: 10px; }
.mission-trigger > span:last-child { margin-left: auto; font-size: 17px; }
.stats-section { border-top: 1px solid #2c4656; padding-top: 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading h3 { color: #c8dbe3; font-size: 11px; font-weight: 650; }
.example-badge { color: #9cb6c2; font: 600 7px/1.4 var(--pixel-font); letter-spacing: .04em; background: #213644; padding: 2px 5px; }
.stats-caption { margin: 6px 0 14px; color: var(--dim); font-size: 9px; }
.stats-bars { display: grid; gap: 10px; }
.stat-row { min-width: 0; }
.stat-head { display: flex; align-items: center; gap: 7px; justify-content: space-between; margin-bottom: 5px; font-size: 10px; color: #c2d5de; }
.stat-head .stat-name, .stat-label { display: flex; align-items: center; gap: 7px; }
.stat-head svg, .stat-label svg { height: 12px; width: 12px; color: var(--accent); }
.stat-value, .stat-head > span:last-child, .stat-head > strong:last-child { color: var(--accent); font: 700 10px/1 var(--pixel-font); }
.stat-track { height: 6px; background: #273f50; border: 1px solid #324c5a; overflow: hidden; }
.stat-fill { display: block; height: 100%; background: var(--accent); box-shadow: inset 0 1px #ffffff55; transition: width .25s; position: relative; }
.stat-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 10px, #07151e38 10px, #07151e38 12px); }
.stats-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 11px; border-top: 1px solid #213b4b; font-size: 9px; color: #9ab5c4; }
.stat-ticks { color: var(--accent); opacity: .55; letter-spacing: 2px; }
.compare-trigger { width: 100%; min-height: 37px; margin-top: 15px; font-size: 10px; }
.compare-trigger.active, .compare-trigger[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.compare-tray { margin-top: 24px; padding: 23px; }
.compare-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.compare-heading h2 { margin-top: 6px; font-size: 20px; }
.compare-content { overflow-x: auto; }
.compare-content table { border-collapse: collapse; width: 100%; font-size: 12px; }
.compare-content th, .compare-content td { padding: 11px 14px; border-bottom: 1px solid #274453; text-align: left; }
.compare-content th { color: #e4d7ae; background: #102432; }
.compare-content td { color: #b9d0d9; }
.compare-content td:not(:first-child) { color: var(--accent); }
.compare-content p { color: var(--muted); font-size: 12px; }
.compare-card { padding: 16px; background: #102431; border: 1px solid #314e5e; }
.compare-card h3 { font-size: 15px; color: #f3e1b1; margin-bottom: 8px; }
.compare-empty { padding: 18px 0; }
.site-footer { margin-top: 28px; padding: 20px 0 26px; border-top: 1px solid #1e3342; display: flex; justify-content: space-between; gap: 20px; color: var(--dim); font-size: 10px; }
.site-footer > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.site-footer .text-button { font-size: 10px; color: #91a9b5; }
.dialog { color: var(--ink); border: 1px solid #4e7885; border-radius: 4px; padding: 26px; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 40px); background: #0b1b29; box-shadow: inset 0 0 0 4px #0a1622, inset 0 0 0 5px #264757, 0 20px 100px #0009; }
.dialog::backdrop { background: #030a12cf; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.dialog-top .eyebrow { color: var(--accent); font-size: 9px; margin-bottom: 7px; }
.dialog-top h2 { font: 700 23px/1.2 var(--pixel-font); color: #f1e5c4; letter-spacing: -.04em; }
.close-button { font-family: var(--body-font); font-size: 28px; flex-shrink: 0; }
.character-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.character-stage { min-height: 300px; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #385a69; background: #091523; }
.character-stage-world { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(#08172944,#07121ab3), url("./assets/worlds-atlas.webp"); background-size: cover, 500% 200%; background-position: center, var(--world-x) var(--world-y); image-rendering: pixelated; opacity: .7; }
.character-stage canvas { width: 180px; height: 240px; position: relative; z-index: 1; filter: drop-shadow(0 4px 2px #0008); }
.stage-floor { position: absolute; width: 140px; height: 23px; border: 1px solid #8ed7c744; background: #6ed5b324; border-radius: 50%; bottom: 32px; }
.character-options { padding-top: 3px; }
.form-label { display: block; }
select { min-height: 40px; width: 100%; background: #122b3a; border: 1px solid #3f6070; border-radius: 2px; padding: 8px 10px; font-size: 12px; color: var(--ink); }
.swatch-list { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-list button, .swatch { width: 29px; height: 29px; padding: 0; border: 1px solid #c3d3d355; box-shadow: inset 0 1px #ffffff38; border-radius: 2px; position: relative; }
.swatch-list button.active, .swatch-list button.selected, .swatch-list button[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-note { color: #8fa8b7; font-size: 11px; line-height: 1.6; margin-top: 18px; }
.mission-dialog { width: min(580px, calc(100% - 32px)); }
.mission-prompt { font-size: 14px; color: #c9dbe2; line-height: 1.8; }
.mission-options { display: grid; gap: 10px; margin-top: 23px; }
.mission-options button, .mission-option { border: 1px solid #355a6a; background: #102735; padding: 14px 16px; font-size: 12px; color: #d0e2e7; text-align: left; line-height: 1.6; }
.mission-options button:hover, .mission-options button.selected { background: #163b43; border-color: var(--accent); }
.mission-feedback { border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb),.07); padding: 15px 17px; font-size: 13px; line-height: 1.7; margin-top: 20px; color: #d2e6e9; }
.sources-dialog { width: min(660px, calc(100% - 32px)); }
.sources-dialog > p { color: #b3cbd5; font-size: 13px; line-height: 1.8; margin-bottom: 15px; }
.sources-dialog h3 { margin-top: 23px; font-size: 14px; }
.sources-list { color: #b3cbd5; font-size: 13px; line-height: 1.8; display: grid; gap: 9px; }
.sources-list a { text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Shared hooks for the generated career catalogue. */
.area-card { display: grid; grid-template-columns: 29px minmax(0,1fr); column-gap: 11px; row-gap: 3px; align-content: center; }
.area-card .area-icon { grid-row: 1 / 3; align-self: center; }
.area-card .area-name { grid-column: 2; align-self: end; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.area-card .area-count { grid-column: 2; align-self: start; color: #6f8b9b; font: 500 8px/1.3 var(--pixel-font); }
.area-card.active .area-count { color: var(--accent); opacity: .75; }
.tree-root { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; max-width: 100%; }
.tree-root > svg { width: 32px; height: 32px; flex: 0 0 32px; }
.tree-root h3 { font-size: 14px; line-height: 1.35; margin-top: 4px; }
.tree-root::after { top: 100%; height: 26px; }
.node-kind { display: block; font: 600 8px/1.3 var(--pixel-font); text-transform: uppercase; letter-spacing: .06em; color: #8daeba; }
.node-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.node-symbol { display: grid; place-items: center; color: var(--accent); width: 24px; height: 24px; flex: 0 0 24px; }
.node-symbol svg { display: block; width: 24px; height: 24px; }
.career-node.selected .node-symbol { color: var(--gold); }
.career-node.selected .node-kind { color: #b8a978; }
.node-arrow { margin-left: auto; color: #7297a7; font-size: 22px; line-height: 1; }
.favorite-mark { color: var(--gold); font-size: 11px; }
.tree-note { grid-column: 1 / -1; justify-self: center; text-align: center; color: #acc3cc; font-size: 9px; line-height: 1.6; padding: 8px 12px; max-width: 450px; background: #071824a8; border: 1px solid #2d4b5955; }
.career-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.career-meta > span:not(.career-badge) { border: 0; color: var(--dim); font-family: var(--body-font); font-weight: 400; font-size: 10px; padding: 0; }
.stat-value small { font: 400 8px/1 var(--body-font); color: var(--dim); }
.detail-note { color: #8ca8b8; font-size: 10px; line-height: 1.65; margin-top: 12px; }
.related-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; border-top: 1px solid #274452; margin-top: 12px; padding-top: 10px; }
.related-links > span { width: 100%; color: #7193a6; font-size: 9px; }
.related-links button { border: 0; padding: 2px 0; background: transparent; color: var(--accent); font-size: 10px; text-align: left; }
.related-links button:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-results button > span { color: var(--muted); font-size: 10px; }
.compare-selected { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.compare-chip { display: inline-flex; align-items: center; gap: 13px; border: 1px solid #3a5869; padding: 7px 8px 7px 12px; background: #102737; }
.compare-chip > span { font-size: 12px; font-weight: 600; }
.compare-chip button { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #385869; color: #b8cfd9; background: transparent; font-size: 20px; line-height: 1; }
.compare-chip button:hover { color: #fff; border-color: var(--gold); }
.comparison-scroll { width: 100%; overflow-x: auto; }
.comparison-table { table-layout: fixed; min-width: 380px; }
.comparison-table caption { caption-side: top; text-align: left; color: #829fae; font-size: 10px; padding: 0 0 10px; }
.comparison-table thead th { font-size: 12px; color: #e5d5b0; }
.comparison-table tbody th { font-weight: 500; color: #c3d8e1; background: #0e2230; }
.compare-value { display: block; font: 600 11px/1.4 var(--pixel-font); }
.compare-mini-track { display: block; width: 100%; height: 5px; margin-top: 6px; background: #243f50; }
.compare-mini-track i { display: block; height: 100%; }
.color-swatch { background: var(--swatch); }
.mission-option { display: flex; align-items: flex-start; gap: 13px; }
.option-letter { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; border: 1px solid #426476; color: var(--accent); font: 700 11px/1 var(--pixel-font); }
.sources-list > p { font-size: 12px; line-height: 1.7; color: #9eb8c5; }
.sources-list > ul { margin: 0; display: grid; gap: 7px; }

@media (min-width: 1500px) {
  .app-shell { width: min(1540px, calc(100% - 100px)); }
  .explorer-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; }
  .tree-canvas { padding-left: 42px; padding-right: 42px; gap: 38px; }
  .tree-branches { gap: 38px; }
  .career-panel { padding: 26px; }
  .detail-content { font-size: 12px; }
}
@media (max-width: 1090px) {
  .app-shell { width: calc(100% - 40px); }
  .area-nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .area-card { gap: 8px; padding: 9px 10px; }
  .area-card .area-name, .area-card > span:last-child, .area-card strong { font-size: 11px; }
  .area-card svg { width: 22px; height: 22px; flex-basis: 22px; }
  .explorer-layout { grid-template-columns: minmax(0,1fr) 335px; gap: 12px; }
  .career-panel { padding: 20px; }
  .tree-canvas { padding: 0 18px 24px; gap: 16px; }
  .tree-branches { gap: 16px; }
  .tree-toolbar { padding-left: 18px; padding-right: 18px; }
  .world-tag { display: none; }
  .career-node { padding: 12px; gap: 8px; }
  .career-node .node-icon, .career-node > svg { width: 19px; height: 19px; }
  .career-node strong, .career-node .node-name { font-size: 11px; }
  .field-node { padding: 13px 10px; }
  .tree-bottom { flex-direction: column; align-items: stretch; padding: 18px; }
  .character-card { width: fit-content; }
  .map-note { text-align: left; }
  .map-note br { display: none; }
  .career-panel > h2 { font-size: 21px; }
}
@media (max-width: 1050px) {
  .app-shell { width: calc(100% - 36px); }
  .site-header { min-height: 76px; }
  .brand-copy strong { font-size: 16px; }
  .header-actions { gap: 16px; }
  .explore-intro { padding: 24px 0 20px; }
  .explore-intro h1 { font-size: 25px; }
  .search-wrap { min-width: 175px; flex-basis: 220px; }
  .area-card { min-height: 69px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .area-card .area-icon { width: 20px; height: 20px; flex-basis: 20px; }
  .area-card svg { width: 20px; height: 20px; }
  .area-card .area-name, .area-card > span:last-child, .area-card strong { font-size: 10px; }
  .area-card .area-count { font-size: 8px; }
  .explorer-layout { grid-template-columns: minmax(0,1fr); }
  .tree-panel { min-height: 570px; }
  .tree-canvas { padding-left: 30px; padding-right: 30px; gap: 30px; }
  .tree-branches { gap: 30px; }
  .field-node h3, .field-node h4, .field-node strong { font-size: 14px; }
  .career-node strong, .career-node .node-name { font-size: 13px; }
  .career-node .node-icon, .career-node > svg { width: 24px; height: 24px; }
  .tree-bottom { flex-direction: row; align-items: flex-end; }
  .map-note { text-align: right; }
  .map-note br { display: initial; }
  .career-panel { padding: 25px; }
  .career-panel > h2 { font-size: 26px; }
  .career-summary, .detail-content { font-size: 13px; }
  .detail-content { min-height: 72px; }
  .details-tabs button { font-size: 12px; padding: 12px 8px; }
  .mission-trigger { min-height: 46px; font-size: 13px; }
  .section-heading h3 { font-size: 13px; }
  .stats-caption { font-size: 11px; }
  .stats-bars { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; row-gap: 15px; }
  .stat-head { font-size: 12px; }
  .stat-value, .stat-head > span:last-child, .stat-head > strong:last-child { font-size: 12px; }
  .stat-track { height: 8px; }
  .stats-footer { font-size: 11px; }
  .compare-trigger { min-height: 40px; font-size: 12px; }
}
@media (max-width: 590px) {
  .app-shell { width: calc(100% - 28px); }
  .site-header { gap: 10px; min-height: 72px; }
  .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-copy strong { font-size: 13px; letter-spacing: .02em; }
  .brand-copy > span { font-size: 8px; }
  .nav-link { display: none; }
  .character-toggle { min-height: 36px; padding: 7px 9px; font-size: 10px; gap: 5px; }
  .character-toggle .pixel-person { font-size: 16px; }
  .explore-intro { align-items: stretch; flex-direction: column; gap: 17px; padding: 23px 0 18px; }
  .explore-intro h1 { font-size: 26px; max-width: 340px; }
  .intro-copy { font-size: 12px; max-width: 320px; }
  .search-wrap { flex-basis: auto; min-width: 0; width: 100%; }
  .search-wrap input { font-size: 12px; min-height: 42px; }
  .search-results { width: 100%; max-width: 100%; }
  .area-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 23px; }
  .area-card { flex-direction: row; align-items: center; gap: 9px; min-height: 52px; padding: 8px 11px; }
  .area-card .area-name, .area-card > span:last-child, .area-card strong { font-size: 10px; }
  .area-card .area-count { font-size: 8px; }
  .area-card .area-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .world-header { align-items: flex-start; gap: 10px; }
  .world-label h2 { font-size: 20px; }
  .world-label p:last-child { font-size: 11px; }
  .exploration-counter { padding: 0 0 0 10px; gap: 6px; }
  .exploration-counter > span:first-child { font-size: 23px; }
  .exploration-counter > span:last-child { font-size: 8px; }
  .tree-panel { min-height: 600px; }
  .tree-toolbar { padding: 16px 15px 8px; }
  .breadcrumbs { font-size: 9px; gap: 5px; }
  .tree-title { margin: 14px 15px 22px; gap: 10px; }
  .tree-title h3 { font-size: 14px; }
  .tree-canvas { padding: 0 14px 20px; gap: 13px; }
  .tree-branches { gap: 13px; }
  .field-node { min-height: 89px; padding: 12px 8px; }
  .field-node h3, .field-node h4, .field-node strong { font-size: 11px; }
  .field-node p { font-size: 9px; }
  .career-node { padding: 12px 10px; min-height: 86px; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .career-node strong, .career-node .node-name { font-size: 10px; }
  .career-node small { font-size: 8px; }
  .career-node .node-icon, .career-node > svg { width: 22px; height: 22px; }
  .career-node .node-arrow { display: none; }
  .career-node .node-symbol { width: 22px; height: 22px; flex-basis: 22px; }
  .career-node .node-symbol svg { width: 22px; height: 22px; }
  .career-node .favorite-mark { position: absolute; right: 9px; bottom: 7px; }
  .node-copy { flex: 0 1 auto; }
  .tree-bottom { flex-direction: column; align-items: stretch; padding: 15px; gap: 12px; }
  .character-card { width: 100%; max-width: 260px; padding: 4px 12px 4px 4px; }
  .avatar-plinth { height: 80px; width: 57px; flex-basis: 57px; }
  .avatar-plinth canvas { height: 76px; width: 57px; }
  .character-card p { max-width: 180px; }
  .map-note { text-align: left; font-size: 9px; }
  .map-note br { display: none; }
  .career-panel { padding: 21px; }
  .career-panel > h2 { font-size: 23px; }
  .career-summary { font-size: 12px; }
  .detail-content { font-size: 12px; }
  .details-tabs button { font-size: 10px; }
  .stats-bars { column-gap: 18px; }
  .stat-head { font-size: 10px; }
  .stat-value, .stat-head > span:last-child, .stat-head > strong:last-child { font-size: 10px; }
  .section-heading h3 { font-size: 11px; }
  .stats-caption { font-size: 9px; }
  .stats-footer { font-size: 10px; }
  .site-footer { flex-direction: column; gap: 10px; margin-top: 23px; padding-top: 17px; }
  .compare-tray { padding: 20px; }
  .compare-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .compare-content th, .compare-content td { font-size: 10px; padding: 9px; }
  .dialog { padding: 23px; max-height: calc(100dvh - 24px); width: calc(100% - 24px); }
  .dialog-top h2 { font-size: 20px; }
  .character-editor { gap: 16px; }
  .character-stage { min-height: 280px; }
  .character-stage canvas { width: 140px; height: 187px; }
  .stage-floor { width: 100px; bottom: 60px; }
  .swatch-list { gap: 7px; }
  .swatch-list button, .swatch { width: 24px; height: 24px; }
  .form-label, legend { font-size: 11px; }
  select { font-size: 11px; padding: 8px; }
  .form-note { font-size: 10px; }
}
@media (max-width: 365px) {
  .app-shell { width: calc(100% - 20px); }
  .brand-mark { width: 24px; height: 24px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy > span { font-size: 7px; }
  .character-toggle { font-size: 9px; padding: 7px; }
  .character-toggle .pixel-person { display: none; }
  .explore-intro h1 { font-size: 24px; }
  .area-card { padding: 8px; gap: 7px; }
  .world-label h2 { font-size: 18px; }
  .career-panel { padding: 18px; }
  .stats-bars { grid-template-columns: minmax(0,1fr); }
  .character-editor { grid-template-columns: minmax(0,1fr); }
  .character-stage { min-height: 210px; }
  .stage-floor { bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

button.area-card > span.area-count { font: 500 8px/1.3 var(--pixel-font); }
