.knowledge{max-width:1320px}
.knowledge [hidden]{display:none!important}
.knowledge-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px 0 36px}
.knowledge-heading .eyebrow{margin-bottom:15px}
.knowledge-heading h1{font-size:clamp(36px,4.5vw,62px);margin-bottom:14px}
.knowledge-heading>div>p:last-child{color:var(--muted);margin:0}
.reference-link{color:var(--green);font-size:14px;white-space:nowrap}
.game-picture{display:inline-block;flex:none;object-fit:contain;image-rendering:pixelated}
.atlas{display:inline-block;width:76px;height:76px;flex:none;background-image:url('/research-atlas.png');background-size:400% 400%;background-repeat:no-repeat}
.icon-0{background-position:0 0}.icon-1{background-position:33.333333% 0}.icon-2{background-position:66.666667% 0}.icon-3{background-position:100% 0}
.icon-4{background-position:0 33.333333%}.icon-5{background-position:33.333333% 33.333333%}.icon-6{background-position:66.666667% 33.333333%}.icon-7{background-position:100% 33.333333%}
.icon-8{background-position:0 66.666667%}.icon-9{background-position:33.333333% 66.666667%}.icon-10{background-position:66.666667% 66.666667%}.icon-11{background-position:100% 66.666667%}
.icon-12{background-position:0 100%}.icon-13{background-position:33.333333% 100%}.icon-14{background-position:66.666667% 100%}.icon-15{background-position:100% 100%}
.tree-explorer{border:1px solid var(--line);background:#101f17;border-radius:16px;overflow:hidden}
.tree-heading{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);background:linear-gradient(100deg,#253c2a,var(--panel))}
.tree-heading .game-picture{width:58px;height:58px}
.tree-heading h2{font-size:23px;letter-spacing:-.5px;margin:0 0 4px}
.tree-heading p{font-size:13px;color:var(--muted);margin:0}
.tree-heading>a{margin-left:auto;color:var(--green);font-size:13px;flex:none}
.branch-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel);margin-top:22px}
.branch-button{display:flex;align-items:center;gap:12px;padding:15px 20px;background:transparent;color:var(--muted);text-align:left;cursor:pointer;border:0;border-right:1px solid var(--line);font-family:inherit;font-size:15px;font-weight:600;line-height:1.35;min-width:0}
.branch-button:last-child{border-right:0}
.branch-button :is(.atlas,.game-picture){width:62px;height:62px;filter:saturate(.55);opacity:.7}
.branch-button small{display:block;font-size:11px;letter-spacing:.6px;margin-top:6px;font-weight:400}
.branch-button[aria-pressed=true]{background:#243c26;color:var(--ink);box-shadow:inset 0 -3px var(--green)}
.branch-button[aria-pressed=true] :is(.atlas,.game-picture),.branch-button:hover :is(.atlas,.game-picture){filter:none;opacity:1}
.branch-button[aria-pressed=true] small{color:var(--green)}
.tree-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 6px}
.skill-search{display:flex;gap:14px;align-items:center;font-size:12px;color:var(--muted)}
.skill-search input{font:inherit;font-size:14px;color:var(--ink);background:#09160f;border:1px solid var(--line);border-radius:8px;padding:11px 14px;width:230px;min-width:0}
.zoom-controls{display:flex;gap:5px}
.zoom-controls button,.workshop-picker button{border:1px solid var(--line);border-radius:7px;background:#172b1e;color:var(--ink);cursor:pointer;font:inherit;padding:9px 13px;min-width:44px;min-height:44px}
.zoom-controls button:nth-child(2){font-size:12px;min-width:66px}
.zoom-controls button:disabled{opacity:.4;cursor:default}
.graph-help{font-size:12px;color:var(--muted);margin:7px 24px 0}
.tree-viewport{overflow:auto;max-height:680px;background-image:radial-gradient(#354734 1px,transparent 1px);background-size:22px 22px;overscroll-behavior:contain;scrollbar-color:#60774b #112119;scrollbar-width:thin}
#research-graph{display:block;width:100%;height:auto;min-width:780px}
.tree-viewport.zoom-1 #research-graph{width:125%}.tree-viewport.zoom-2 #research-graph{width:160%}.tree-viewport.zoom-3 #research-graph{width:200%}
.tree-edge{fill:none;stroke:#536347;stroke-width:2.4}
#tree-arrow path{fill:#849c62}
.tree-edge.in-route{stroke:var(--green);stroke-width:3.5}
.node-bg{fill:#1c3021;stroke:#506246;stroke-width:1.5}
.node-picture{image-rendering:pixelated}
.node-picture,.node-name,.node-time{pointer-events:none}
.skill-node{outline:none;cursor:pointer}
.node-name{fill:var(--ink);font-size:13px;font-weight:600;font-family:inherit}
.node-time{fill:#a6b397;font-size:10px;font-family:inherit}
.skill-node:hover .node-bg,.skill-node:focus .node-bg,.skill-node.is-selected .node-bg{fill:#2a4329;stroke:#d0ed8a;stroke-width:3}
.skill-node.in-route .node-bg{stroke:var(--green);fill:#223925}
.skill-node.is-dimmed{opacity:.25}
.tree-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.tree-legend i{display:inline-block;width:8px;height:8px;background:var(--green);border-radius:2px;margin-right:7px}
.pack-note{font-size:11px;color:var(--muted);margin:0;padding:0 24px 14px}
.future-panel{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;gap:32px;padding:32px}
.future-panel .future-picture{width:160px;height:160px;filter:saturate(.65)}
.future-panel h2{font-size:36px}
.future-panel p{color:var(--muted)}
.future-path{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:25px 0}
.future-path span{border:1px dashed #647459;padding:10px 14px;border-radius:8px;color:#c0cdb3;font-size:13px}
.future-path b{color:#738b5c;font-weight:400}
.discovery-section{padding:58px 0;border-bottom:1px solid var(--line)}
.compact-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:30px}
.compact-heading .eyebrow{margin-bottom:12px}
.compact-heading h2{font-size:38px;margin:0;letter-spacing:-1.3px}
.compact-heading>p{color:var(--muted);font-size:14px;margin:0}
.first-discovery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.first-discovery article{position:relative;background:linear-gradient(145deg,#22372a70,var(--panel));border:1px solid var(--line);border-radius:12px;padding:26px 26px 26px 178px;min-height:192px}
.first-discovery .game-picture{width:120px;height:120px;position:absolute;left:28px;top:46px}
.first-discovery .step-number{position:absolute;top:22px;left:22px;font-size:11px;color:var(--green)}
.first-discovery h3{font-size:21px;letter-spacing:-.4px;margin-bottom:10px}
.first-discovery p{font-size:14px;color:var(--muted);margin-bottom:12px}
.first-discovery a,.knowledge-bottom a{font-size:13px;color:var(--green)}
.first-discovery .crafting-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;padding:32px}
.crafting-card h3{font-size:30px;margin-top:16px}.crafting-card .crafting-recipe{margin:0}
.knowledge-facts{display:flex;flex-wrap:wrap;gap:18px 36px;justify-content:center;margin:26px 0 0;color:var(--muted);font-size:13px}
.workshop-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#14251b}
.workshop-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:40px;background:radial-gradient(ellipse at center,#30462b,#101f17 74%)}
.workshop-art .game-picture{width:270px;height:270px;max-width:100%}
.workshop-size{font-size:12px;color:var(--muted);border:1px solid #53664a;border-radius:20px;padding:7px 15px}
.workshop-info{padding:34px;min-width:0}
.workshop-picker{display:flex;gap:8px;margin-bottom:24px}
.workshop-picker.loadout-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.workshop-picker button[aria-pressed=true]{color:#102013;background:var(--green);border-color:var(--green)}
.workshop-info h3{font-size:23px;margin-bottom:16px}
.module-list{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.module-list li{display:flex;align-items:center;gap:8px;font-size:13px;min-height:38px;padding:8px;background:#1b3021;border-radius:5px}
.module-list .recipe-icon{width:32px;height:32px}
.module-list li>span{color:var(--green);font-size:16px;flex:none}
.module-list .kept-module{color:var(--muted)}
.module-list .new-module{color:#e4eccf;border:1px solid #4e6341}
.small-note{font-size:12px!important;color:var(--muted)}
.knowledge-bottom{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding:42px 0}
.knowledge-bottom h2{font-size:28px;letter-spacing:-.6px}
.knowledge-bottom p{font-size:14px;color:var(--muted);max-width:490px}
.skill-directory{margin-bottom:0}
.future-directory{margin-bottom:44px}
.skill-directory>summary{font-size:16px}
.skill-directory .skill-picture{float:right;width:94px;height:94px;margin:0 0 15px 15px}
.skill-dialog{color:var(--ink);background:var(--panel);border:1px solid #6a8255;border-radius:16px;width:min(680px,calc(100% - 28px));max-height:88vh;padding:28px;box-shadow:0 20px 100px #0009;overscroll-behavior:contain}
.skill-dialog::backdrop{background:#031008c9;backdrop-filter:blur(4px)}
.dialog-close{position:sticky;display:block;float:right;top:0;width:44px;height:44px;z-index:4;border:1px solid #506445;border-radius:8px;background:#263e29;color:var(--ink);font-size:26px;cursor:pointer}
.skill-dialog .skill-card{border:0;background:none;padding:0;scroll-margin:0}
.skill-dialog .skill-picture{float:left;width:80px;height:80px;margin:0 20px 20px 0}
.skill-dialog .eyebrow{font-size:10px;margin-bottom:10px}
.skill-dialog h3{font-size:28px;letter-spacing:-.6px;margin:0 48px 24px 0}
.skill-dialog .cost-label{clear:both}
.skill-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.skill-dialog dl>div{margin:0}
.skill-dialog dl>div:last-child{grid-column:1/-1}
.skill-dialog dl a,.skill-dialog details a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.skill-dialog .recipe-list{max-height:none;font-size:13px;grid-template-columns:repeat(2,minmax(0,1fr))}
.skill-dialog .recipe-list li{padding:8px;gap:8px}
.dialog-note{border-top:1px solid var(--line);padding-top:18px;margin:22px 0 0;font-size:12px;color:var(--muted)}
@media(max-width:1000px){.branch-button{padding:13px 12px;gap:8px;font-size:13px}.branch-button :is(.atlas,.game-picture){width:44px;height:44px}.knowledge-heading{align-items:start}.knowledge-heading .reference-link{padding-top:8px}.workshop-art{padding:25px}.workshop-info{padding:26px}.module-list{grid-template-columns:1fr}}
@media(max-width:760px){
.knowledge-heading{display:block;padding:18px 0 25px}.knowledge-heading h1{font-size:41px;letter-spacing:-1.5px}.knowledge-heading>div>p:last-child{font-size:14px;margin-bottom:12px}.knowledge-heading .eyebrow{font-size:9px}
.tree-heading{padding:16px 14px;gap:10px;flex-wrap:wrap}.tree-heading h2{font-size:21px}.tree-heading p{font-size:11px}.tree-heading .game-picture{width:48px;height:48px}.tree-heading>a{min-height:36px;display:flex;align-items:center}
.branch-picker{grid-template-columns:1fr}.branch-button{border:0;border-bottom:1px solid var(--line);min-height:70px}.branch-button:last-child{border-bottom:0}.branch-button :is(.atlas,.game-picture){width:46px;height:46px}.branch-button small{font-size:10px;margin-top:4px}
.tree-toolbar{padding:15px 12px 6px;gap:10px}.skill-search{display:block;min-width:0;flex:1}.skill-search>span{display:block;margin-bottom:5px;font-size:10px}.skill-search input{width:100%;font-size:12px;padding:11px 9px}.zoom-controls{gap:3px;align-self:end}.zoom-controls button{padding:7px;min-width:34px}.zoom-controls button:nth-child(2){min-width:49px;font-size:11px}
.graph-help{font-size:11px;margin:10px 14px}.tree-viewport{max-height:650px}#research-graph{min-width:0}.tree-legend{padding:12px;align-items:start;font-size:10px}.tree-legend>span:first-child{max-width:210px}.pack-note{font-size:10px;padding:0 12px 12px}
.future-panel{display:block;padding:25px 10px}.future-panel .future-picture{display:block;width:140px;height:140px;margin:0 auto 18px}.future-panel h2{font-size:30px}.future-panel .eyebrow{margin-bottom:12px}
.discovery-section{padding:36px 0}.compact-heading{display:block;margin-bottom:24px}.compact-heading h2{font-size:30px}.compact-heading>p{font-size:13px;margin-top:12px}
.first-discovery{grid-template-columns:1fr;gap:14px}.first-discovery article{padding:22px 22px 22px 130px;min-height:176px}.first-discovery .game-picture{position:absolute;left:16px;top:40px;width:102px;height:102px;margin:0}.first-discovery .step-number{top:18px;left:22px}.first-discovery h3{font-size:20px}.first-discovery p{font-size:13px}.knowledge-facts{justify-content:start;gap:12px;font-size:12px}
.first-discovery .crafting-card{display:block;padding:34px 14px 22px}.crafting-card h3{font-size:25px}.crafting-card .crafting-recipe{margin:22px auto 0}
.workshop-preview{grid-template-columns:1fr}.workshop-art{padding:22px;gap:8px}.workshop-art .game-picture{width:170px;height:170px}.workshop-info{padding:22px}.module-list{grid-template-columns:repeat(2,minmax(0,1fr))}.module-list li{font-size:11px;padding:6px}.workshop-info .reference-link{white-space:normal}.workshop-picker{margin-bottom:18px}
.knowledge-bottom{grid-template-columns:1fr;gap:30px;padding:34px 0}.knowledge-bottom h2{font-size:26px}.knowledge-bottom p{font-size:13px}.skill-dialog{padding:20px;max-height:88vh}.skill-dialog h3{font-size:23px;clear:left;margin-right:0}.skill-dialog .skill-picture{width:64px;height:64px;margin-bottom:12px}.skill-dialog dl{grid-template-columns:1fr;gap:12px}.skill-dialog .recipe-list{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:no-preference){.node-bg,.skill-node,.tree-edge,.branch-button{transition:fill .15s,stroke .15s,opacity .15s,background .15s}}
