:root{color-scheme:dark;--ink:#090f12;--panel:#101c20;--border:#34433f;--text:#e5e3cf;--muted:#99aaa3;--gold:#d8bd7f;--green:#86c8b2;--red:#db9581;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--text)}button{font:inherit;color:inherit;background:#182522;border:1px solid #536057;border-radius:0;min-height:45px;padding:12px 18px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s;letter-spacing:.075em;font-size:12px;font-weight:700}button:hover:not(:disabled){background:#263932;border-color:var(--gold)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible{outline:2px solid #e4c687;outline-offset:4px}h1,h2,h3,p{margin:0}p{font-size:16px;line-height:1.65;color:#b7c2b8}h2{font-family:var(--font-ui);font-weight:400;font-size:36px}h3{font-family:var(--font-ui);font-size:23px;font-weight:400;line-height:1.3}small{font-size:12px;color:var(--muted)}svg{width:30px;height:30px;flex-shrink:0}.eyebrow{font-family:monospace;font-size:11px;font-weight:400;letter-spacing:.15em;color:var(--muted)}.primary{color:#18221e;background:var(--gold);border-color:var(--gold)}.primary:hover:not(:disabled){background:#eed49d;border-color:#f6deaa}.text-button{border:0;background:none;color:#bdc5b5;padding:0;min-height:40px;font-family:monospace;font-weight:400}.text-button:hover:not(:disabled){background:none;color:var(--gold)}.text-button span{border:1px solid #778477;padding:3px 6px;margin-left:14px}.muted{color:var(--muted);font-size:14px}#game,#world,#hud,#overlay{position:absolute;inset:0;width:100%;height:100%}#world{touch-action:none;display:block}#hud{pointer-events:none}#hud button{pointer-events:auto}#overlay{display:none;z-index:10}#overlay.visible{display:block;overflow:auto}.camp-art{position:fixed;inset:0;background:#0c181d url('/xscape/frontier.png') center center/cover no-repeat;pointer-events:none}.camp-vignette{position:fixed;inset:0;background:linear-gradient(90deg,#061115e8 0%,#081217ac 33%,#09131a08 65%),linear-gradient(0deg,#061014f5 0%,transparent 25%,transparent 85%,#081318a0 100%);pointer-events:none}.camp-shell{position:relative;min-height:100%;display:flex;flex-direction:column;padding:30px 4.5vw 24px}.camp-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.camp-main{padding:clamp(30px,6vh,75px) 0 20px;width:550px;max-width:57%;margin-bottom:auto}.edition{display:flex;align-items:center;gap:10px;font-family:monospace;font-size:11px;letter-spacing:.18em;color:#c4b98e;margin-bottom:23px}.edition>span{width:22px;height:1px;background:var(--gold)}h1{font:400 clamp(72px,8.3vw,128px)/.8 var(--font-ui);letter-spacing:-.075em;color:#efecd6;text-shadow:0 4px 20px #050d11}h1 em{font-style:normal;color:var(--gold)}.tagline{margin:27px 0 28px;font-family:var(--font-ui);font-size:18px;letter-spacing:.01em;color:#c9cec0}.camp-actions{width:365px;max-width:100%}.large{display:flex;width:100%;align-items:center;justify-content:space-between;padding:17px 23px;font-size:13px;min-height:58px}.large span{font-size:22px;font-weight:400}.secondary-actions{display:flex;gap:9px;margin-top:10px}.secondary-actions button{flex:1;padding:11px 8px;background:#0a171aaa;font-size:10px;min-height:43px}.loadout-label{margin:28px 0 11px}.weapon-picker{display:flex;gap:8px;width:540px;max-width:100%}.weapon-choice{display:flex;gap:6px;align-items:center;padding:12px 10px;flex:1;background:#0b191dcc;border:1px solid #354b4c;letter-spacing:0;text-align:left;min-width:0;font-size:11px;font-weight:400;color:#aebbb2}.weapon-choice svg{width:27px;height:30px;color:#83978d}.weapon-choice small{display:block;font:9px monospace;letter-spacing:.025em;margin-top:6px;white-space:nowrap;color:#8a9c95}.weapon-choice.chosen{border-color:#b19e6b;background:#26332dc7;color:#ece0b7}.weapon-choice.chosen svg{color:#d9bd7c}.weapon-choice:disabled{opacity:.8}.weapon-detail{font-size:12px;margin-top:10px;color:#a0b3a8}.camp-note{position:absolute;bottom:155px;right:4.5vw;width:270px;text-shadow:0 2px 9px #000}.camp-note h2{font-size:28px;line-height:1.22;margin:16px 0;color:#e1e3cc}.camp-note p{font-size:14px;line-height:1.7;color:#b8c9c0}.rare-note{display:flex;gap:12px;border-top:1px solid #76928545;margin-top:26px;padding-top:18px;font-family:var(--font-ui);font-size:14px;color:#d8cfaa;line-height:1.5}.rare-star{font-size:28px;color:var(--gold)}.rare-note small{display:block;margin-top:7px;font:9px/1.5 monospace;letter-spacing:.025em;color:#bdba9f}.camp-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #60766c55;padding-top:20px;min-height:77px}.profile{display:flex;align-items:center;gap:13px}.level-medal{height:42px;width:38px;display:flex;align-items:center;justify-content:center;font:22px var(--font-ui);border:1px solid #9e9167;color:var(--gold);background:#192723}.profile b{font-family:monospace;font-weight:400;font-size:12px;letter-spacing:.12em}.profile small{display:block;font-family:monospace;font-size:10px;margin-top:7px;letter-spacing:.05em}.resources{display:flex;align-items:center;gap:25px;font-family:monospace;font-size:11px;color:var(--muted)}.resources span{display:flex;gap:7px;align-items:center;white-space:nowrap}.resources b{font-weight:400;color:var(--text);font-size:18px}.ash-glyph{display:inline-block;width:9px;height:13px;background:var(--gold);clip-path:polygon(45% 0,100% 60%,65% 100%,0 83%,10% 40%);margin-right:3px}.ore-glyph{display:inline-block;width:10px;height:12px;transform:rotate(25deg);background:#82b8af;margin-right:3px}.local-label{font:10px/1.8 monospace;color:#7f9991;text-align:right}.hud-top{position:absolute;top:24px;left:26px;right:24px;display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.vitals{width:245px;filter:drop-shadow(0 2px 8px #071216)}.vital-label{display:flex;justify-content:space-between;font:11px monospace;color:#e2e2cb;letter-spacing:.05em;margin-bottom:9px}.vital-label b{font-weight:400}.vital-label span{color:#9fbbab}.health-track{height:9px;background:#23312e;border:1px solid #607365;padding:1px;box-shadow:0 0 0 3px #09141055}.health-track>div{height:100%;background:linear-gradient(90deg,#6c8e64,#a1b57b);transform-origin:left;transition:transform 100ms cubic-bezier(.22,1,.36,1)}.run-resources{display:flex;gap:18px;margin-top:11px;font:10px monospace;color:#c4ccb4;text-shadow:0 2px 4px #000}.depth{margin-left:auto;text-align:right;text-shadow:0 2px 9px #000}.depth span{display:block;font:22px var(--font-ui);color:var(--gold);letter-spacing:.1em}.depth b{display:block;font:10px monospace;letter-spacing:.12em;margin-top:8px;color:#a4b7a9}.pause-button{padding:0;min-width:34px;min-height:34px;width:34px;background:#0d1b1de0;border-color:#5f7264;color:#d5d8bd;font-size:17px}.mission{position:absolute;top:110px;left:26px;text-shadow:0 2px 9px #000}.mission span{font:11px monospace;letter-spacing:.1em;color:#d3c492}.mission small{display:block;font-size:11px;margin-top:8px;color:#9aafa6}.hud-bottom{position:absolute;bottom:24px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.keybinds{display:flex;gap:18px;flex-wrap:wrap;font:9px monospace;color:#9eb3a9;max-width:420px}.keybinds span{display:flex;align-items:center;gap:7px}kbd{font:10px monospace;letter-spacing:.025em;border:1px solid #5a6c6266;background:#0c191bcf;color:#c0c8b4;padding:4px 6px;white-space:nowrap}.abilities{display:flex;gap:8px;pointer-events:auto}.abilities button{position:relative;width:86px;padding:11px 4px 9px;text-align:center;background:#0b191de0;border-color:#465d53}.abilities kbd{position:absolute;top:-13px;left:50%;transform:translateX(-50%);font-size:9px;padding:2px 5px;border-color:#465d53}.abilities b{font:10px monospace;display:block;color:#dbd5b9}.abilities small{font:9px monospace;display:block;margin-top:7px}.interact-prompt{position:absolute;bottom:125px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#0c1c21eb;border:1px solid #d4bd7a70;color:#e8d7a4;font:11px monospace;letter-spacing:.06em;box-shadow:0 0 25px #0005}.interact-prompt:active:not(:disabled){transform:translateX(-50%) translateY(1px)}.interact-prompt kbd{margin-right:12px;border-color:#9c9261;color:#f3e1aa}.boss-vitals{position:absolute;bottom:125px;left:50%;transform:translateX(-50%);width:340px;text-align:center}.boss-vitals span{font:12px var(--font-ui);letter-spacing:.2em;color:#ead1a4}.boss-vitals>div{height:5px;background:#312826;margin-top:10px}.boss-vitals i{display:block;height:100%;background:#c39669}.modal-shade{position:fixed;inset:0;background:#040b10c9;backdrop-filter:blur(5px)}.panel{position:relative;width:min(850px,calc(100% - 40px));max-height:calc(100% - 80px);margin:40px auto;background:#101c20;border:1px solid #526256;box-shadow:0 18px 100px #000a;display:flex;flex-direction:column}.panel>header,.workshop>header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 32px;border-bottom:1px solid #3c4d44}.panel>header h2{margin-top:9px;font-size:33px}.close-button{background:transparent;border:0;font-size:25px;font-weight:400;color:#aabbad;min-width:40px;min-height:40px;padding:4px;align-self:flex-start}.panel-body{overflow:auto;padding:27px 32px}.panel-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:20px 32px;border-top:1px solid #3c4d44;flex-wrap:wrap}.panel-footer>span{margin-right:auto;font:12px monospace;color:#a8bdab}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);margin:28px 0;gap:18px;padding:24px 0;border-top:1px solid #5b6c553d;border-bottom:1px solid #5b6c553d}.summary-grid strong{display:block;font:38px var(--font-ui);color:var(--gold)}.summary-grid span{display:block;font:10px monospace;letter-spacing:.07em;color:#a3b3a1;margin-top:10px}.blessings{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0 0}.blessings button{padding:24px 18px;text-align:left;background:#172629;border-color:#4b6260}.blessings b{font:10px monospace;letter-spacing:.08em;color:#a7b8b1}.blessings strong{display:block;font:23px var(--font-ui);letter-spacing:0;color:#e3d6a9;margin:18px 0}.blessings span{font-size:13px;font-weight:400;letter-spacing:0;line-height:1.7;color:#9cb1a8}.forge-backdrop{position:fixed;inset:0;background:radial-gradient(ellipse at 10% 90%,#72503322,transparent 65%),#091317}.workshop{position:relative;min-height:100%;display:flex;flex-direction:column;max-width:1400px;margin:auto;padding:0 3vw}.workshop>header{padding:28px 0}.workshop h2{margin-top:8px;font-size:42px;letter-spacing:-.025em}.workshop header .resources{margin-left:auto}.tabs{display:flex;align-items:center;gap:25px;border-bottom:1px solid #3c4d44}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:22px 0 18px;font-size:11px;color:#95a99f}.tabs button.active{color:var(--gold);border-bottom-color:var(--gold)}.tabs>span{margin-left:auto;font:10px monospace;color:#829f91}.workshop-body{flex:1;padding:26px 0}.forge-layout{display:grid;grid-template-columns:1fr 300px;gap:34px}.section-line{display:flex;justify-content:space-between;gap:15px;font:10px monospace;letter-spacing:.08em;color:#8fa89a;border-bottom:1px solid #41574b66;padding-bottom:17px;margin-bottom:17px}.section-line span:last-child{text-align:right}.item-list{display:flex;flex-direction:column;gap:8px}.item-card{display:flex;align-items:center;gap:17px;border:1px solid #40544977;padding:16px;background:#14212488}.item-card.selected{border-color:var(--rarity);background:#20302b}.item-symbol{display:flex;align-items:center;justify-content:center;background:#0b181b;width:50px;height:54px;color:var(--rarity);flex-shrink:0;border:1px solid #5b706b30}.item-symbol svg{width:35px;height:35px}.item-info{flex:1;min-width:0}.item-rarity{font:9px monospace;letter-spacing:.08em;color:var(--rarity)}.item-info h3{font-size:20px;margin:5px 0}.item-info p{font-size:12px;color:#97b1a4}.small-button{font:10px monospace;padding:8px 10px;min-height:33px;letter-spacing:.04em;background:transparent}.item-detail{border-left:1px solid #485b4d;padding:6px 0 0 28px}.item-detail h3{font-size:30px;margin:18px 0}.item-detail p{font-size:14px;margin:12px 0}.detail-actions{display:flex;flex-direction:column;gap:10px;margin-top:26px}.detail-actions button{padding:15px 9px;font-size:11px}.detail-actions small{font:9px/1.5 monospace;display:block;margin-top:6px;letter-spacing:.01em}.danger{color:#dca28a;border-color:#946d5966;background:#2b221e}.danger:hover:not(:disabled){background:#493128;border-color:#c98c74}.empty{padding:42px 20px;text-align:center;border:1px dashed #4c63574d}.empty h3{font-size:23px;color:#c4cbb8;margin-bottom:15px}.empty p{font-size:14px;max-width:380px;margin:auto}.workshop>footer{border-top:1px solid #3c4d44;padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.workshop>footer>span{font:11px monospace;color:#91a99a}.upgrades{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.upgrades article{border:1px solid #465d51;padding:30px 24px;background:#142321}.upgrades h3{font-size:24px;margin:20px 0 16px}.upgrades p{font-size:14px;margin-bottom:30px}.upgrades button{width:100%;font-size:11px}.collection-names{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 30px;color:#9caf9f;font-size:14px}.collection-names>span{border:1px solid #52685666;padding:7px 12px;font:14px var(--font-ui);color:#d0d3b9}.records{margin-bottom:25px}.records article{display:flex;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid #3f544533}.record-status{font:9px monospace;color:#bf9a89;width:72px}.record-status.success{color:#a2c5a3}.records article div{flex:1}.records b{font-size:14px;font-weight:400}.records small{display:block;margin-top:5px;font-size:11px}.wallet-note{border:1px solid #4b665866;background:#142523;padding:21px;margin-top:20px}.wallet-note>b{font:21px var(--font-ui);color:#d4d6b8}.wallet-note p{font-size:13px;margin:11px 0 17px}.wallet-note button{font-size:10px;max-width:100%}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.guide-grid article>span{font:10px monospace;color:var(--gold);letter-spacing:.1em}.guide-grid h3{margin:12px 0;font-size:22px}.guide-grid p{font-size:14px}.controls-table{border-top:1px solid #52664e66;margin:24px 0;padding-top:15px}.controls-table p{font-size:12px;line-height:2.5}.controls-table kbd{margin-right:7px;margin-left:6px}.result-shade{position:fixed;inset:0;background:linear-gradient(90deg,#071114f5,#091319bc,#0913194a)}.result-content{position:relative;max-width:650px;padding:10vh 5vw;box-sizing:content-box}.result-content h1{font-size:clamp(60px,7vw,100px);margin:35px 0;line-height:.91}.result-content p{max-width:460px}.result-content>.summary-grid{max-width:470px}.haul-line{font:17px var(--font-ui);color:#d1c59c;margin-bottom:30px}.result-actions{display:flex;gap:12px;margin-bottom:28px}.result-content>small{font:10px monospace;letter-spacing:.08em}#notices{position:fixed;z-index:30;left:50%;top:110px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 35px);display:flex;flex-direction:column;gap:7px;align-items:center;pointer-events:none}.notice{padding:11px 20px;border:1px solid #5f83706b;background:#0d1b1ef0;color:#d1dfc5;font:12px/1.5 monospace;text-align:center;box-shadow:0 8px 35px #0005;animation:notice-in .25s ease}.notice.gold{color:#f3d89a;border-color:#ceae6d66}.notice.warn{color:#efb89e;border-color:#c98a6866}@keyframes notice-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}#touch{display:none;position:fixed;inset:0;pointer-events:none;z-index:5;touch-action:none}#joystick{position:absolute;bottom:38px;left:28px;width:118px;height:118px;border:1px solid #a6bfa14d;border-radius:50%;background:#182b2b55;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:none}#knob{width:48px;height:48px;background:#81998a44;border:1px solid #c0c8a45c;border-radius:50%;pointer-events:none}.touch-actions{position:absolute;bottom:34px;right:23px;width:167px;height:120px;pointer-events:auto;touch-action:none}.touch-actions button{position:absolute;padding:0;border-radius:50%;font:10px monospace;touch-action:none;background:#122324a8;color:#d0d8bd;border-color:#8fa98a88}.touch-actions #touch-hit{width:80px;height:80px;right:0;bottom:0;color:#ead9a7;border-color:#d3bd7e99;background:#524b2c66}.touch-actions #touch-dodge{width:61px;height:61px;left:0;bottom:0}.touch-actions #touch-heal{width:53px;height:53px;right:40px;top:0}.playing:has(#overlay.visible) #touch{display:none!important}
@media(pointer:coarse){.playing #touch{display:block}.keybinds{display:none}.abilities{display:none}.interact-prompt{bottom:185px}.hud-bottom{bottom:185px}.boss-vitals{bottom:235px}.camp-top .eyebrow{font-size:10px}}
@media(min-width:1500px){.camp-shell{padding-left:6vw;padding-right:6vw}.camp-main{padding-top:9vh}.camp-note{right:6vw}}
@media(max-height:780px) and (min-width:851px){.camp-shell{padding-top:18px}.camp-main{padding-top:22px}.edition{margin-bottom:17px}h1{font-size:88px}.tagline{margin:20px 0}.loadout-label{margin-top:19px}.camp-note{bottom:135px}.camp-bottom{padding-top:15px;min-height:65px}}
@media(max-width:1000px){.camp-note{right:3.5vw;width:240px;bottom:150px}.camp-shell{padding-left:4vw;padding-right:4vw}.camp-main{max-width:65%}.camp-note h2{font-size:25px}.weapon-picker{width:490px}.weapon-choice{padding:10px 7px;font-size:10px}.weapon-choice small{font-size:8px}.camp-bottom{gap:16px}.local-label{display:none}.forge-layout{grid-template-columns:1fr 260px;gap:25px}.item-detail{padding-left:20px}.upgrades{gap:12px}.upgrades article{padding:22px 17px}}
@media(max-width:850px){.camp-note{display:none}.camp-main{max-width:100%;width:550px}.camp-art{background-position:62% center}.camp-vignette{background:linear-gradient(90deg,#071216ed,#07121680 68%,#07121635),linear-gradient(0deg,#071216 0%,transparent 30%)}.camp-main{padding-top:7vh}h1{font-size:100px}.camp-bottom{margin-top:24px}.camp-top{min-height:32px}.forge-layout{grid-template-columns:1fr}.item-detail{border:1px solid #485b4d;padding:25px}.detail-actions{display:grid;grid-template-columns:1fr 1fr}.tabs>span{display:none}.workshop>header{gap:16px}.workshop header .resources{gap:14px}.upgrades{grid-template-columns:1fr}.upgrades article{display:grid;grid-template-columns:1fr 180px;gap:6px 20px}.upgrades h3{margin:4px 0;font-size:24px}.upgrades article .eyebrow{grid-column:1}.upgrades p{margin:0;grid-column:1}.upgrades button{grid-column:2;grid-row:1/4;align-self:center}.panel{max-height:calc(100% - 40px);margin:20px auto}.panel>header{padding:22px}.panel-body{padding:22px}.panel-footer{padding:18px 22px}.hud-top{gap:16px}.vitals{width:200px}.keybinds{max-width:230px;gap:8px}.mission small{max-width:200px;line-height:1.5}}
@media(max-width:550px){.camp-shell{padding:18px 22px 20px;min-height:100svh}.camp-top>.eyebrow{font-size:8px;letter-spacing:.09em}.text-button{font-size:10px}.text-button span{margin-left:5px}.camp-main{padding-top:6vh}.edition{font-size:9px;margin-bottom:24px}h1{font-size:clamp(80px,23vw,110px)}.tagline{font-size:16px;margin:23px 0 26px}.camp-actions{width:100%}.large{font-size:12px;min-height:56px}.secondary-actions button{font-size:9px}.loadout-label{font-size:10px;margin-top:25px}.weapon-picker{gap:7px}.weapon-choice{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:11px 8px;font-size:10px}.weapon-choice svg{width:26px;height:26px}.weapon-choice small{font-size:7px;letter-spacing:0;white-space:normal;line-height:1.5}.weapon-detail{font-size:11px;margin-top:12px}.camp-bottom{margin-top:22px;flex-wrap:wrap;gap:17px;padding-top:17px}.profile{gap:10px}.profile b{font-size:10px}.profile small{font-size:8px}.level-medal{width:32px;height:36px;font-size:19px}.resources{gap:14px;font-size:9px}.resources b{font-size:16px}.camp-bottom .resources{margin-left:auto}.camp-art{background-position:60% center}.camp-vignette{background:linear-gradient(90deg,#071216e0,#0712168a),linear-gradient(0deg,#071216 0%,transparent 50%)}.hud-top{top:max(20px,env(safe-area-inset-top));left:17px;right:17px;gap:9px}.vitals{width:170px}.vital-label{font-size:9px;letter-spacing:0}.run-resources{font-size:8px;gap:9px}.depth span{font-size:19px}.depth b{font-size:8px;max-width:125px;line-height:1.4}.pause-button{width:29px;min-width:29px;min-height:29px}.mission{top:103px;left:17px;max-width:190px}.mission span{font-size:9px}.mission small{font-size:10px;max-width:170px}.hud-bottom{left:17px;right:17px}.interact-prompt{font-size:9px;padding:11px 12px;max-width:calc(100% - 30px);white-space:normal;line-height:1.5}.interact-prompt kbd{margin-right:5px}.boss-vitals{width:240px}.boss-vitals span{font-size:11px}.panel{width:calc(100% - 24px);margin:12px auto;max-height:calc(100% - 24px)}.panel>header{padding:20px 18px;gap:10px}.panel>header h2{font-size:27px}.panel-body{padding:20px 18px}.panel-footer{padding:16px 18px;gap:8px}.panel-footer>button{flex:1;font-size:10px;padding:12px 8px}.eyebrow{font-size:10px}.summary-grid{gap:12px;padding:20px 0;margin:22px 0}.summary-grid strong{font-size:30px}.summary-grid span{font-size:8px;line-height:1.6}.blessings{grid-template-columns:1fr;gap:10px}.blessings button{padding:18px}.blessings strong{margin:10px 0;font-size:24px}.blessings span{font-size:13px}.workshop{padding:0 18px}.workshop>header{padding:23px 0;flex-wrap:wrap;position:relative}.workshop h2{font-size:35px}.workshop header .resources{margin:0 0 0 auto}.workshop .close-button{order:2;align-self:center}.workshop>header>div:first-child{width:100%}.workshop>header>.close-button{position:absolute;right:0;top:27px}.workshop header .resources{margin-left:0}.tabs{gap:23px}.tabs button{font-size:9px;padding:19px 0}.section-line{font-size:8px;line-height:1.6}.item-card{gap:11px;padding:12px}.item-symbol{width:36px;height:43px}.item-symbol svg{width:27px}.item-rarity{font-size:8px}.item-info h3{font-size:18px}.item-info p{font-size:11px}.small-button{font-size:9px;padding:7px;min-height:32px}.item-detail{padding:22px}.item-detail h3{font-size:27px}.detail-actions{grid-template-columns:1fr}.workshop>footer{flex-direction:column;align-items:stretch;gap:15px}.workshop>footer>span{font-size:10px;text-align:center}.upgrades article{display:block;padding:24px}.upgrades h3{margin:14px 0 10px}.upgrades p{margin-bottom:25px}.guide-grid{grid-template-columns:1fr;gap:24px}.guide-grid p{font-size:14px}.result-content{padding:10vh 25px;box-sizing:border-box;max-width:100%;min-height:100svh}.result-content h1{font-size:clamp(58px,16vw,86px);margin:30px 0}.result-content p{font-size:15px}.result-actions{flex-direction:column;max-width:350px}.result-content>.eyebrow{font-size:9px}.haul-line{font-size:16px}.records article{gap:10px}.record-status{font-size:8px;width:60px}.records small{font-size:10px}#notices{top:190px}.notice{font-size:10px;padding:10px 14px}}
@media(max-height:550px) and (orientation:landscape){.camp-shell{padding:12px 25px}.camp-top{min-height:28px}.camp-main{padding-top:10px;max-width:65%;margin:0}.edition{margin-bottom:12px;font-size:8px}h1{font-size:62px}.tagline{margin:14px 0;font-size:14px}.camp-actions{position:absolute;left:48%;top:120px;width:45%}.loadout-label{margin-top:16px}.weapon-picker{width:390px}.camp-bottom{margin-top:16px;padding-top:12px;min-height:50px}.camp-note{display:none}.weapon-detail{display:none}.camp-main{padding-bottom:0}.camp-bottom .profile small{display:none}.large{min-height:50px}.hud-top{top:15px}.mission{top:90px}#joystick{bottom:20px;width:100px;height:100px}.touch-actions{bottom:20px}.interact-prompt{bottom:45px}.boss-vitals{bottom:110px}.result-content{padding-top:30px}.result-content h1{font-size:65px}.panel{max-height:calc(100% - 20px);margin:10px auto}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:550px){.tabs{gap:15px;overflow-x:auto}.tabs button{font-size:8px;white-space:nowrap}.workshop header .resources{margin-top:5px}}
.economy-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:25px 0;border-bottom:1px solid #3c4d44}.economy-stats b{display:block;font:30px var(--font-ui);color:var(--gold)}.economy-stats span{display:block;font:9px monospace;letter-spacing:.1em;color:#8ea799;margin-top:8px}.market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.market-grid>.empty{grid-column:1/-1;min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.market-card{border:1px solid #435e50;border-top:2px solid var(--rarity);background:#12201e;padding:20px;min-width:0}.market-card .item-card{padding:0;border:0;background:none;align-items:flex-start}.market-card .item-symbol{width:40px;height:45px}.market-card .item-info h3{font-size:21px}.market-card .item-info p{font-size:12px;line-height:1.7}.market-owner{font:10px monospace;color:#8ba793;letter-spacing:.03em;margin-top:24px}.market-price{display:flex;align-items:baseline;gap:10px;margin:10px 0 22px}.market-price b{font:34px var(--font-ui);color:#e8d6a6}.market-price span{font:9px monospace;color:#9bad98}.market-card>button{width:100%;font-size:10px;margin-top:14px}.claim-balance{color:#d9bc7b!important}.claim-balance b{color:#ead39b!important}.exchange .resources{gap:16px}.exchange footer>span{line-height:1.8}.ledger-explainer{max-width:690px;margin-bottom:26px}.ledger-explainer p{margin-top:13px;font-size:14px}.ledger-amount{font:12px monospace;color:#c5b98f;white-space:nowrap}.price-label{display:block;font:11px monospace;color:#adc0a9;margin:25px 0 12px;letter-spacing:.1em}#listing-price{display:block;width:100%;background:#0a1719;border:1px solid #8d936c;color:#e7d6a3;padding:15px;font:28px var(--font-ui);outline-offset:3px}.exchange .tabs{gap:25px}.exchange .tabs button{font-size:10px}.exchange .tabs button:last-child{margin-left:auto}.camp-bottom .resources{gap:15px}.camp-bottom .resources b{font-size:16px}
@media(max-width:1100px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.camp-bottom{flex-wrap:wrap}.local-label{display:none}.camp-bottom .resources{margin-left:auto}}
@media(max-width:650px){.market-grid{grid-template-columns:1fr}.economy-stats{gap:15px;grid-template-columns:repeat(2,1fr);padding:20px 0}.economy-stats b{font-size:26px}.exchange .tabs{gap:18px;overflow:auto}.exchange .tabs button{font-size:8px;white-space:nowrap}.exchange .resources{gap:12px}.market-card{padding:22px}.camp-bottom{gap:12px}.camp-bottom .resources{width:100%;margin:0;justify-content:space-between}.ledger-amount{font-size:10px}.records article .record-status{min-width:65px}.exchange .records article{flex-wrap:wrap}.exchange .records article>div{min-width:140px}.hud-top .run-resources{flex-wrap:wrap;row-gap:4px}.workshop header .resources{flex-wrap:wrap}.camp-top>button:first-child{font-size:9px;letter-spacing:.05em}}

/* Wallet vault: same camp materials, separate devnet accounting. */
.vault-banner{padding:14px 28px;border-bottom:1px solid #4c4030;background:#302715;display:flex;gap:20px;color:#e4c58b;font-size:14px;line-height:1.5}.vault-banner b{white-space:nowrap}.vault-description{max-width:900px;margin-bottom:24px;line-height:1.65}.vault-intro{max-width:660px;margin:24px auto;line-height:1.7}.vault-intro h3{font-size:32px;margin:12px 0}.vault-intro button{margin:22px 18px 16px 0}.vault-link{color:#e5c38a;text-decoration:underline;text-underline-offset:4px;font-size:14px;overflow-wrap:anywhere}.vault-asset-id{padding:8px 0 18px}.vault-card-actions{display:grid;gap:8px}.vault-pending{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 28px;background:#26392f;border-bottom:1px solid #526b59}.vault-pending p{font-size:14px;margin-top:8px}.vault-entry{margin-top:12px;width:100%;border-color:#a98b58;color:#edcc91}.vault .workshop footer{gap:20px}.vault .workshop footer>div:last-child{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.vault .records article{flex-wrap:wrap}.vault .market-card .item-card{min-width:0}.vault .tabs{overflow-x:auto}.vault .tabs button{white-space:nowrap}@media(max-width:650px){.vault-banner,.vault-pending{padding:14px 16px;flex-direction:column;align-items:flex-start;gap:8px}.vault .workshop header{flex-wrap:wrap}.vault .workshop header h2{font-size:24px}.vault .resources{font-size:14px}.vault .workshop footer{align-items:flex-start;flex-direction:column}.vault .market-grid{grid-template-columns:1fr}}

.control-rows{margin:20px 0;display:grid;gap:0}.control-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #52664e44}.control-row>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.control-row button{min-width:70px;min-height:42px;padding:8px 12px;font:12px monospace}#binding-status{margin-top:18px;font-size:13px;color:var(--gold)}

@media(pointer:coarse){#joystick{left:max(28px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom))}.touch-actions{right:max(23px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom))}.hud-top{left:max(17px,env(safe-area-inset-left));right:max(17px,env(safe-area-inset-right));top:max(15px,env(safe-area-inset-top))}}

/* Exchange: a pinned filter rail and an independently scrolling collection. */
#overlay .exchange:has(.exchange-layout){height:calc(100svh - var(--nav-height));min-height:0;padding-bottom:0;overflow:hidden}
#overlay .exchange .workshop-body.exchange-layout{display:grid;grid-template-columns:244px minmax(0,1fr);gap:30px;padding:0;min-height:0;overflow:hidden;border-top:1px solid var(--border)}
#overlay .exchange:has(.exchange-layout)>header,#overlay .exchange:has(.exchange-layout)>.tabs,#overlay .exchange:has(.exchange-layout)>footer{flex-shrink:0}
#overlay .exchange:has(.exchange-layout)>footer{padding:14px 0;min-height:0;font-size:11px}
.exchange-filters{--filter-accent:oklch(.78 .085 85);display:flex;flex-direction:column;min-height:0;overflow:hidden;background:oklch(.185 .012 190);border:1px solid var(--border);border-top:0;border-bottom:0}
.exchange-filter-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 10px;gap:8px;flex-shrink:0}
#overlay .exchange-filter-heading h3{display:flex;align-items:center;gap:9px;font:600 15px var(--font-ui);margin:0;color:var(--text)}
.exchange-filter-heading svg,.exchange-filter-toggle svg{width:18px;height:18px;color:var(--gold)}
[data-exchange-active]:not(:empty),[data-exchange-mobile-count]:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;font:600 11px var(--font-ui);color:var(--gold);background:color-mix(in oklch,var(--gold) 12%,transparent)}
#overlay .exchange-filter-heading button{font:12px var(--font-ui);min-height:44px;padding:8px 0;border:0;box-shadow:none;background:none;color:var(--gold)}
#overlay .exchange-filter-heading button:disabled{opacity:.35}
.exchange-filter-scroll{overflow-y:auto;overscroll-behavior:contain;padding:0 18px 22px;min-height:0;scrollbar-width:thin}
.exchange-filter-group{border:0;padding:14px 0 18px;margin:0;min-width:0}
.exchange-filter-group+.exchange-filter-group{border-top:1px solid var(--border)}
.exchange-filter-group legend{float:left;width:100%;margin-bottom:10px;font:600 11px/1.5 var(--font-ui);letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.exchange-filter-group legend+*{clear:both}
.exchange-filter-group legend>span{float:right;letter-spacing:.03em;color:var(--gold)}
.exchange-check{display:flex;align-items:center;gap:10px;position:relative;min-height:38px;padding:5px 8px;margin:0 -8px;cursor:pointer;font:13px/1.4 var(--font-ui);color:var(--text);transition:background .15s ease-out}
.exchange-check:hover{background:color-mix(in oklch,var(--gold) 6%,transparent)}
.exchange-check:has(input:checked){background:color-mix(in oklch,var(--gold) 9%,transparent);color:var(--gold)}
.exchange-check input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.exchange-checkmark{display:grid;place-items:center;flex:none;width:16px;height:16px;border:1px solid oklch(.43 .02 170);background:oklch(.15 .012 190);box-shadow:inset 0 0 0 2px oklch(.19 .01 190)}
.exchange-check input:checked+.exchange-checkmark{border-color:var(--filter-accent);background:var(--filter-accent);box-shadow:inset 0 0 0 2px oklch(.24 .03 90)}
.exchange-check input:checked+.exchange-checkmark::after{content:'';width:7px;height:4px;border:solid oklch(.19 .02 90);border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.exchange-check:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
.exchange-rarity-dot{width:7px;height:7px;flex:none;background:var(--filter-rarity);transform:rotate(45deg);margin-left:2px;margin-right:2px}
.exchange-price-range{display:flex;gap:8px;align-items:center}.exchange-price-range>span{color:var(--muted);margin-top:20px}
.exchange-price-input{display:grid;gap:6px;min-width:0;flex:1;font:11px var(--font-ui);color:var(--muted)}
.exchange-price-input input{width:100%;min-width:0;height:40px;border:1px solid var(--border);border-radius:0;background:oklch(.15 .012 190);color:var(--text);font:14px var(--font-ui);padding:8px}
.exchange-ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px}.exchange-ranks .exchange-check{margin:0;padding:7px 3px;font-size:12px;gap:6px}
.exchange-filters [data-exchange-error]{font:12px/1.5 var(--font-ui);color:oklch(.78 .1 35);margin-top:10px}
.exchange-results{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.exchange-results-head{padding-top:20px;flex-shrink:0}
.exchange-search-line{display:flex;gap:12px;align-items:center}
.exchange-search{position:relative;display:flex;align-items:center;flex:1;min-width:0}
.exchange-search svg{position:absolute;left:15px;width:20px;height:20px;color:var(--muted);pointer-events:none}
.exchange-search input{width:100%;height:48px;min-width:0;padding:12px 16px 12px 46px;border:1px solid var(--border);border-radius:0;background:oklch(.17 .012 190);color:var(--text);font:14px var(--font-ui)}
.exchange-search input::placeholder,.exchange-price-input input::placeholder{color:var(--muted);opacity:.8}
.exchange-layout :is(input,button):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.exchange-result-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
[data-exchange-count]{font:13px var(--font-ui);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.exchange-sort{display:flex;flex-wrap:wrap;gap:4px}
#overlay .exchange-sort button{font:12px var(--font-ui);padding:8px 12px;min-height:36px;background:transparent;border:1px solid transparent;box-shadow:none;color:var(--muted);letter-spacing:0}
#overlay .exchange-sort button[aria-pressed=true]{color:var(--gold);background:color-mix(in oklch,var(--gold) 9%,transparent);border-color:color-mix(in oklch,var(--gold) 25%,transparent)}
#overlay .exchange-sort button:hover{color:var(--text)}
.exchange-list-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px 8px 24px 0;scrollbar-width:thin}
#overlay .exchange .exchange-results .market-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px}
#overlay .exchange .market-card[hidden],#overlay .exchange .empty[hidden]{display:none}
#overlay .exchange .market-grid>.empty{grid-column:1/-1;padding:60px 20px}
#overlay .exchange .exchange-filter-toggle,#overlay .exchange .exchange-filter-done{display:none}
@media(min-width:1500px){#overlay .exchange .exchange-results .market-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){#overlay .exchange .exchange-layout{grid-template-columns:218px minmax(0,1fr);gap:22px}#overlay .exchange .exchange-results .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 #overlay .exchange:has(.exchange-layout){height:auto;min-height:calc(100svh - var(--nav-height));overflow:visible}
 #overlay .exchange .workshop-body.exchange-layout{display:flex;flex-direction:column;gap:0;overflow:visible}
 .exchange-results{display:contents}.exchange-results-head{order:0;padding-top:16px}.exchange-list-scroll{order:2;overflow:visible;padding-right:0}
 .exchange-filters{display:none;order:1;border:1px solid var(--border);margin-top:16px}
 .exchange-filters-open .exchange-filters{display:flex;max-height:65svh}
 #overlay .exchange .exchange-filter-toggle{display:flex;align-items:center;gap:8px;min-height:48px;font:13px var(--font-ui);padding:10px 12px}
 #overlay .exchange .exchange-filter-done{display:block;flex-shrink:0;margin:0 18px 16px;min-height:44px;font:13px var(--font-ui);color:var(--gold)}
 .exchange-filter-scroll{padding-inline:18px}.exchange-check{min-height:44px}.exchange-price-input input{height:44px;font-size:16px}.exchange-search input{font-size:16px}
 .exchange-result-bar{align-items:flex-start;flex-direction:column;gap:8px}.exchange-sort{width:100%;justify-content:space-between}#overlay .exchange-sort button{min-height:44px;padding:8px 10px}
 .exchange-search input{padding-left:38px}.exchange-search svg{left:11px;width:18px}
 #overlay .exchange .exchange-results .market-grid{gap:10px}
}
@media(prefers-reduced-motion:reduce){.exchange-check{transition:none}}

@media(min-width:761px){#overlay .exchange:has(.exchange-layout)>header{min-height:104px;padding-block:20px}#overlay .exchange:has(.exchange-layout)>footer>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px}#overlay .exchange:has(.exchange-layout)>footer br{display:none}#overlay .exchange:has(.exchange-layout)>footer .vault-link{font-size:11px}}

/* Affix rolls and the materials workbench. */
.relic-affixes{margin:14px 0;border-top:1px solid #ffffff16;padding-top:10px}.relic-quality{font-size:11px;color:#aaa897;margin:0 0 8px}.affix-row{display:flex;gap:10px;align-items:flex-start;padding:7px 0}.affix-row b{font-size:12px;font-weight:500;color:#e2dfcc}.affix-row small{display:block;color:#929d97;font-size:10px;margin-top:3px}.affix-tier{font-size:10px;font-weight:700;padding:3px 5px;border:1px solid #ffffff24;color:#abb9b0;line-height:1.3}.affix-tier.affix-best{color:#edc985;border-color:#a58142;background:#b58e3214}.affix-forge{border-top:1px solid #ffffff20;margin-top:20px;padding-top:12px}.affix-forge summary{min-height:44px;cursor:pointer;font-size:13px;color:#d6c697;display:list-item;padding:10px 0}.affix-forge p{font-size:12px;line-height:1.6;color:#a6afa4;margin:10px 0}.affix-forge label,.refinery-grid label{display:block;font-size:11px;color:#acb4a9;margin:14px 0 6px}.affix-forge select,.refinery-grid input{min-height:44px;width:100%;background:#132023;color:#e4dfc9;border:1px solid #465153;padding:10px;font:inherit;font-size:12px}.affix-forge .detail-actions{margin-top:14px}.affix-forge button small,.refinery-grid button small{display:block;line-height:1.5;font-size:10px;margin-top:5px;white-space:normal}.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.material-grid article,.refinery-grid article{background:#111d20;border:1px solid #334043;padding:18px}.material-grid article>div{display:flex;gap:12px;justify-content:space-between;align-items:baseline}.material-grid h3{font:600 13px/1.4 system-ui,sans-serif;margin:0}.material-grid b{font-size:21px;color:#dec88f}.material-grid p,.refinery-grid p{font-size:12px;color:#a6afa4;line-height:1.6;margin:10px 0 0}.refinery-heading{margin:30px 0 14px}.refinery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.refinery-grid h4{margin:0;font-size:14px}.refinery-grid button{width:100%;margin-top:12px;min-height:44px}.materials-panel>.muted{font-size:12px;line-height:1.6;margin-top:18px}.rare-material-haul{font-size:12px;color:#d4c691;line-height:1.6}.satchel-materials{flex-wrap:wrap}.satchel-materials .rare-material-haul{width:100%;max-width:340px}.item-card .relic-affixes{margin:8px 0}.item-card .affix-row{padding:3px 0}.item-card .affix-row small{font-size:9px}.item-card .affix-row b{font-size:11px}.tabs{flex-wrap:wrap}.detail-actions button small{white-space:normal}
@media(max-width:700px){.material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.material-grid article,.refinery-grid article{padding:14px}.material-grid article>div{display:block}.material-grid b{display:block;margin-top:5px}.refinery-grid{grid-template-columns:1fr}.tabs>span{display:none}.tabs button{flex:1;padding-left:10px;padding-right:10px}.affix-forge select{font-size:16px}}
