:root{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;color:#dce8df;background:#091216;font-synthesis:none}img.art-icon,img.hud-icon,img.stick-icon,img.item-thumb,img.mini-item-icon,img.bag-item-icon,img.item-detail-icon,img.upgrade-icon,img.archive-icon,img.module-icon,img.guide-icon,img.menu-hero{image-rendering:pixelated;object-fit:contain;flex:none}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;width:100%}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;border:1px solid #51625c;background:#203136;color:#dce8df;padding:10px 16px;border-radius:4px;transition:background .16s,border-color .16s,transform .16s}button:hover{background:#2b4846;border-color:#9cc9aa;transform:translateY(-1px)}button:disabled{opacity:.45;cursor:default;transform:none}.primary{background:#a9cbaa;border-color:#cce3b7;color:#11242a;font-weight:800}.primary:hover{background:#c2e1bd}.ghost{background:transparent}.danger{border-color:#895b56;color:#e9a9a0;background:#342725}.danger:hover{background:#573532}.small{font-size:12px;padding:7px 11px}.tiny{font-size:12px;padding:0 6px;margin-left:7px}.large{font-size:17px;padding:14px 24px}.full{width:100%}.icon{font-size:23px;padding:1px 10px}.muted{color:#93a8a3;font-size:14px;line-height:1.7}.eyebrow{color:#96b9ab;font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}.hidden{display:none!important}.shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 50% 20%,#15262a,#091216 72%)}.topbar{height:68px;border-bottom:1px solid #2e4646;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1440px)/2));background:#0a1519}.brand{display:flex;align-items:center;gap:12px}.brand-mark{font-size:32px;color:#b9ddba}.brand b{display:block;letter-spacing:.15em;font-size:15px}.brand small{color:#759087;font-size:10px;letter-spacing:.15em}.top-right{display:flex;gap:24px;align-items:center;color:#b6c9b7;font-size:12px}.signal{color:#8eb59e}.signal:first-letter{color:#8dddab}main{display:flex;align-items:center;justify-content:center;flex:1;padding:28px 20px}#stage{position:relative;width:min(100%,1440px);min-height:min(750px,calc(100vh - 155px));border:1px solid #375254;box-shadow:0 25px 80px #0008;background:#101d22;overflow:hidden}canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#101d22}#screen{position:absolute;inset:0;background:linear-gradient(120deg,#091216c7,#0a171b8a);overflow:auto}.screen{display:block}.menu-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100%;padding:7% 8%}.menu-copy{z-index:1;align-self:center}.menu-copy h1{font-size:clamp(54px,7vw,104px);line-height:1.12;margin:16px 0 25px;letter-spacing:.08em}.menu-copy h1 em{font-style:normal;color:#c3dcb8}.menu-copy p{color:#a9c1ba;line-height:1.9;max-width:440px;font-size:16px}.menu-actions{display:flex;gap:14px;margin-top:35px}.menu-meta{margin-top:65px;color:#6e8986;font-size:11px;letter-spacing:.18em}.menu-art{position:relative;min-height:500px;align-self:center}.menu-hero{position:absolute;z-index:2;left:50%;top:50%;width:min(55%,285px);height:auto;transform:translate(-50%,-50%);filter:drop-shadow(0 15px 24px #000b)}.menu-hero.illustrated{width:min(72%,350px);max-height:90%;image-rendering:auto;object-fit:contain}.radar-ring{position:absolute;left:50%;top:50%;border:1px solid #84bda33c;border-radius:50%;transform:translate(-50%,-50%)}.r1{width:260px;height:260px}.r2{width:420px;height:420px}.r3{width:570px;height:570px}.radar-ring:before,.radar-ring:after{content:"";position:absolute;background:#8ab4a548;left:50%;top:50%;width:1px;height:100%;transform:translateY(-50%)}.radar-ring:after{transform:translate(-50%,-50%) rotate(90deg)}.radar-sweep{position:absolute;left:50%;top:50%;width:255px;height:255px;transform-origin:0 0;background:conic-gradient(from 0deg,transparent 0deg,#77c2a130 65deg,transparent 72deg);border-radius:100%;animation:sweep 8s linear infinite}@keyframes sweep{to{transform:rotate(360deg)}}.radar-dot{position:absolute;left:59%;top:39%;width:11px;height:11px;background:#cce8aa;border-radius:50%;box-shadow:0 0 25px 8px #9ac9aa77;animation:blink 2s infinite}@keyframes blink{50%{opacity:.35}}.coord{position:absolute;color:#7ba99c;font-size:11px;letter-spacing:.14em}.coord.a{left:15%;top:13%}.coord.b{right:2%;bottom:20%}.coord.c{left:0;bottom:4%}footer{height:38px;padding:0 max(24px,calc((100vw - 1440px)/2));display:flex;align-items:center;justify-content:space-between;color:#637f7c;font-size:10px;letter-spacing:.12em}.base-layout{display:grid;grid-template-columns:245px 1fr;min-height:100%;background:#101e23}.sidebar{padding:35px 22px;background:#0c191d;border-right:1px solid #345051;display:flex;flex-direction:column}.sidebar h1{font-size:24px;margin:9px 0 24px}.base-balance{padding:16px 14px;background:#1b3032;color:#9bb6aa;font-size:12px;margin-bottom:25px}.base-balance b{display:block;color:#e5d19f;font-size:24px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{text-align:left;background:transparent;border:0;border-left:3px solid transparent;color:#9fb6ac}.sidebar nav button.active,.sidebar nav button:hover{color:#e4f0df;background:#203538;border-left-color:#a7cda8;transform:none}.sidebar-note{color:#68837e;font-size:12px;line-height:1.7;margin-top:auto}.base-main{padding:36px 42px;overflow-y:auto;max-height:min(800px,calc(100vh - 160px))}.panel-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:27px;padding-bottom:17px;border-bottom:1px solid #344a4b}.panel h2{font-size:30px;margin:7px 0 0}.two-col{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:26px}.section-title{display:flex;justify-content:space-between;align-items:center;color:#d6e9dd;border-bottom:1px solid #345052;padding:0 0 12px;margin:15px 0 12px;font-weight:700}.section-title span{color:#85a59c}.item-list{display:grid;gap:7px;max-height:450px;overflow-y:auto}.list-row{display:flex;align-items:center;gap:11px;padding:9px 12px;background:#1a2b2f;border:1px solid #30464a}.list-row>span{min-width:0;flex:1}.item-thumb{width:42px;height:42px}.mini-item-icon{width:21px;height:21px;vertical-align:middle;margin-right:4px}.list-row b,.list-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-row b{font-size:13px}.list-row small{color:#829f9b;font-size:10px;margin-top:3px}.weapon-row{flex-wrap:wrap}.weapon-row-actions{display:flex;gap:6px;margin-left:auto}.weapon-row-actions button{white-space:nowrap}.item-dot{display:inline-block;flex:none;width:12px;height:12px;border-radius:2px;box-shadow:0 0 10px currentColor}.briefing{border:1px solid #42615d;background:linear-gradient(145deg,#1b3434,#17292d);padding:25px}.briefing h3{font-size:24px;margin:9px 0}.briefing p,.briefing li{color:#b1c9bd;line-height:1.75;font-size:13px}.briefing ul{padding-left:19px}.briefing small{display:block;color:#829f96;margin-top:12px;line-height:1.6}.seed-label{display:block;font-size:12px;color:#b9d0c1;margin:28px 0 12px}.seed-label input{display:block;width:100%;margin-top:7px;background:#102025;border:1px solid #4a6764;color:#e2eddd;padding:12px;outline:none}.seed-label input:focus{border-color:#b8d9b8}.loadout{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:30px;min-height:34px}.loadout>span:not(.muted){background:#2a4442;border:1px solid #6e9586;padding:5px 9px;font-size:12px}.selected-character{display:flex;align-items:center;gap:12px;padding:9px 11px;margin-bottom:16px;border:1px solid #5a7d81;background:linear-gradient(105deg,#213b40,#172a30)}.selected-character img{width:52px;height:58px;object-fit:contain;flex:none}.selected-character .pixel-art,.character-art .pixel-art{image-rendering:pixelated}.selected-character span{display:grid;gap:3px;min-width:0;flex:1}.selected-character small{color:#a5c1b9;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-character b{font-size:14px}.selected-character button{white-space:nowrap}.character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.character-card{overflow:hidden;border:1px solid #3f5d61;background:#182b30}.character-card.selected{border-color:#afe5c6;box-shadow:0 0 0 1px #afe5c65c,0 0 24px #74cbb626}.character-art{display:flex;align-items:center;justify-content:center;height:195px;overflow:hidden;background:radial-gradient(circle at 50% 45%,#345861,#132329 72%)}.character-art img{width:auto;height:100%;max-width:100%;max-height:100%;object-fit:contain}.character-info{display:grid;gap:10px;padding:17px}.character-info h3,.character-info p{margin:0}.character-info h3{font-size:19px}.character-info p{min-height:2.2em;color:#afc9c2;font-size:12px}.character-skills{display:grid;gap:5px;color:#9bb4ad;font-size:11px}.character-skills span{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border:1px dashed #52716f}.character-skills b{color:#e4d4a2}.character-skills small{color:#b9d5d4;font-size:11px;line-height:1.45;padding:0 4px 4px}.character-info button{justify-self:start}.upgrade-grid,.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.upgrade-card,.archive-card{background:#1c3032;border:1px solid #365052;padding:18px;min-height:153px;display:flex;flex-direction:column;gap:9px}.upgrade-icon,.archive-icon{width:48px;height:48px}.upgrade-card b,.archive-card h3{font-size:15px}.upgrade-card span,.archive-card p{color:#a2bcb1;font-size:12px;line-height:1.5}.upgrade-card div{color:#d1c594;font-size:11px;margin-top:auto}.upgrade-card button{align-self:flex-start}.archive-card.locked{opacity:.47}.archive-card h3{margin:3px 0}.archive-card p{margin:0}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat-grid>div{padding:20px;background:#1a2e30;border:1px solid #395253}.stat-grid span,.stat-grid b{display:block}.stat-grid span{color:#8ba99c;font-size:12px}.stat-grid b{font-size:25px;margin-top:8px}.settings{max-width:520px;display:grid;gap:25px}.settings label{display:flex;gap:16px;align-items:center}.settings input[type=range]{flex:1}.danger-zone{border:1px solid #754b49;padding:22px;margin-top:20px}.danger-zone p{color:#b99e99;font-size:13px}.empty{padding:25px;text-align:center;color:#829b95;background:#17272a}.hud{position:absolute;inset:0;pointer-events:none;font-size:12px}.beacon-tip{position:absolute;z-index:3;top:10px;left:50%;transform:translate(-50%);max-width:min(80%,410px);padding:6px 12px;border:1px solid #f3bc79;border-radius:4px;background:#271815eb;color:#fff0c8;font-size:12px;font-weight:800;text-align:center;white-space:nowrap;animation:beacon-tip-flash 1s ease-in-out infinite}@keyframes beacon-tip-flash{50%{opacity:.4;box-shadow:0 0 14px #f3a766}}.hud-top-left{position:absolute;left:25px;top:22px;max-width:470px;padding:13px 17px;background:#0b171bdc;border-left:3px solid #a5c7ae}.hud-top-left>*{display:block}.hud-top-left b{font-size:17px;margin:4px 0}.hud-top-left span:last-child{color:#bed0c1;font-size:11px;line-height:1.4}.minimap{position:absolute;right:22px;top:22px;display:grid;grid-template-columns:repeat(4,22px);grid-template-rows:repeat(4,22px);gap:4px;padding:10px;background:#0b171bdd;border:1px solid #54716b}.mini{background:#1d3034;border:1px solid #405653}.mini.seen{background:#557668}.mini.current{background:#d3e2a9;box-shadow:0 0 8px #c4e8a8}.mini.boss{background:#b77869}.hud-bottom-left{position:absolute;left:24px;bottom:45px;width:250px;padding:12px 15px;background:#0b171be5;border:1px solid #486560}.bar-label{display:flex;justify-content:space-between;color:#d8e9db;font-size:11px}.bar{height:7px;background:#30454b;margin:6px 0 8px}.bar i{display:block;height:100%;background:#b7d6b2;transition:width .15s}.bar.armor i{background:#94bacc}.armor-label{color:#98b6c2}.weapon-name{font-size:14px;font-weight:700;margin-top:9px}.hud-bottom-right{position:absolute;right:23px;bottom:45px;min-width:185px;text-align:right;padding:14px 17px;background:#0b171be5;border:1px solid #486560}.hud-bottom-right>*{display:block}.hud-bottom-right strong{font-size:30px;color:#ead8a8;line-height:1}.hud-bottom-right span{color:#a9c2b6;font-size:11px;margin-top:7px}.hotkeys{position:absolute;left:0;right:0;bottom:0;text-align:center;padding:8px;background:#071113dc;color:#a5bdb2;font-size:10px;letter-spacing:.04em}.mobile-objective{display:none}.toast{position:absolute;left:50%;top:11%;transform:translate(-50%,-15px);background:#162a2df0;border:1px solid #b2d0aa;color:#e1ecdb;padding:10px 19px;font-size:13px;opacity:0;pointer-events:none;transition:.25s;z-index:15;text-align:center;max-width:90%}.toast.show{opacity:1;transform:translate(-50%)}.overlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;padding:20px;background:#061014b8;z-index:10;overflow:auto}.modal{width:min(100%,520px);max-height:95%;overflow:auto;background:#14272b;border:1px solid #618177;box-shadow:0 25px 80px #0009;padding:26px}.modal.wide{width:min(100%,820px)}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px;border-bottom:1px solid #3b5a55;padding-bottom:13px}.modal h2{margin:4px 0;font-size:25px}.modal p{line-height:1.7}.guide-required{color:#f2d99b}.puzzle-steps{display:grid;gap:6px;margin:14px 0}.puzzle-steps>div{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #3c5855;background:#183036}.puzzle-steps>div.current{border-color:#f1d48c;background:#384035}.puzzle-steps>div.done{opacity:.62}.puzzle-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#9dcbb4;color:#17302d}.puzzle-steps strong{margin-left:auto;color:#f1d48c;font-size:11px}.choice-list{display:grid;gap:9px;margin:20px 0}.choice-list button{text-align:left}.event-choice,.loot-choice{display:flex;align-items:center;gap:13px;background:#1d3536;padding:14px}.event-choice b,.event-choice small,.loot-choice b,.loot-choice small{display:block}.event-choice small,.loot-choice small{font-size:11px;color:#a2b9ad;margin-top:5px}.loot-choice>span{flex:1}.module-icon{width:42px;height:42px}.guide-icon{width:48px;height:48px;float:left;margin-right:12px}.loot-choice strong{color:#e1d19e}.event-text{color:#d4e6d8;font-size:16px}.bag-layout{display:grid;grid-template-columns:1fr 240px;gap:25px}.bag-grid{display:grid;grid-template-columns:repeat(4,74px);gap:4px;position:relative}.bag-cell{border:1px solid #405d59;background:#1e3537}.bag-item{z-index:2;border:2px solid;background:#293e3c;display:flex;flex-direction:column;justify-content:space-between;padding:7px;cursor:grab;overflow:hidden;-webkit-user-select:none;user-select:none}.bag-item-icon{width:31px;height:31px;align-self:center;pointer-events:none}.item-detail-icon{width:68px;height:68px;float:right}.bag-item b{font-size:11px}.bag-item small{font-size:10px;color:#a5bab0}.bag-item.insured{box-shadow:inset 0 0 0 3px #e8d18c}.bag-item.selected{outline:3px solid #f4df9e;outline-offset:-3px}@media(pointer:coarse){.bag-item{touch-action:none}}.caption{font-size:11px;margin-top:12px}.item-detail{border-left:1px solid #41605b;padding-left:20px}.item-detail h3{font-size:22px}.item-detail p{font-size:12px;color:#afc4b8}.item-detail button{margin:5px 0}.map-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.map-room{min-height:70px;background:#1d3436;border:1px solid #46615b;padding:9px;display:flex;flex-direction:column;justify-content:space-between}.map-room.current{border-color:#e2d395;background:#3a4e43}.map-room.unknown{opacity:.4}.map-room b{font-size:12px}.map-room small{font-size:10px;color:#adc3b6}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.help-grid>div{padding:16px;background:#1e3636}.help-grid h3{margin:0;font-size:15px}.help-grid p{font-size:12px;color:#b5c8ba}.result-layout{min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:50px;background:radial-gradient(circle at 50% 30%,#25453c,#0d1a1f 70%)}.result-layout.failure{background:radial-gradient(circle at 50% 30%,#49332f,#0d1a1f 70%)}.result-layout h1{font-size:56px;margin:14px 0 0}.result-layout p{color:#bdd0bf}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(700px,100%);margin:30px 0}.result-stats>div{background:#11252a;border:1px solid #47675e;padding:20px}.result-stats span,.result-stats b{display:block}.result-stats span{font-size:12px;color:#99b2a4}.result-stats b{font-size:30px;margin-top:7px}.result-items{margin-bottom:30px}.result-items>div{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:10px}.result-items>div span{padding:7px 11px;background:#2d4841;font-size:12px}.result-items .mini-item-icon{width:18px;height:18px}.hud-icon{width:17px;height:17px;vertical-align:middle;margin-right:4px}.note{max-width:500px;font-size:12px}@media(max-width:850px){main{padding:0}#stage{border:0;min-height:calc(100vh - 106px)}.menu-layout{grid-template-columns:1fr;padding:45px}.menu-art{position:absolute;inset:0;opacity:.35;pointer-events:none}.menu-copy{position:relative}.base-layout{grid-template-columns:1fr}.sidebar{padding:20px}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav button{white-space:nowrap}.sidebar-note{display:none}.base-main{padding:22px;max-height:none}.two-col{grid-template-columns:1fr}.upgrade-grid,.archive-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){.topbar{padding:0 14px}.top-right .signal{display:none}.menu-layout{padding:35px 22px}.menu-copy h1{font-size:56px}.menu-actions{flex-wrap:wrap}.base-main{padding:15px}.upgrade-grid,.archive-grid,.stat-grid{grid-template-columns:1fr 1fr}.character-grid,.bag-layout,.help-grid{grid-template-columns:1fr}.bag-grid{grid-template-columns:repeat(4,minmax(50px,1fr))}.item-detail{border:0;border-top:1px solid #41605b;padding:15px 0}.hud-top-left{left:7px;top:7px;max-width:50%;padding:7px}.hud-top-left b{font-size:12px}.hud-top-left span:last-child{display:none}.minimap{right:7px;top:7px;grid-template-columns:repeat(4,14px);grid-template-rows:repeat(4,14px)}.hud-bottom-left{left:7px;bottom:22px;width:130px;padding:6px}.hud-bottom-right{right:7px;bottom:22px;min-width:100px;padding:6px}.hud-bottom-right strong{font-size:16px}.hotkeys{font-size:8px;padding:3px}.modal{padding:15px}}.debug-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.debug-grid button{text-align:left}.mini{display:grid;place-items:center;color:#e9ad97;font-size:11px}.mobile-controls{display:none}@media(pointer:coarse),(max-width:850px){html,body,#app{overscroll-behavior:none}main{padding:0}#stage{width:100vw;height:calc(100dvh - 68px);min-height:420px;border:0}canvas{width:100%;height:100%;aspect-ratio:auto;object-fit:fill;touch-action:none}footer{display:none}.mobile-controls{display:block;position:absolute;inset:0;z-index:8;pointer-events:none;-webkit-user-select:none;user-select:none}.mobile-toolbar{position:absolute;right:10px;top:135px;display:flex;gap:6px;pointer-events:auto}.mobile-toolbar button,.mobile-actions button{border-radius:9px;background:#10252ddc;border-color:#9abca793;color:#e7efdf;box-shadow:0 3px 14px #0008;font-size:13px;font-weight:700;min-height:43px;touch-action:manipulation}.mobile-bottom{position:absolute;left:0;right:0;bottom:max(8px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:0 12px;pointer-events:auto}.touch-stick{position:relative;width:112px;height:112px;flex:none;border:2px solid #b4d6b18c;border-radius:50%;background:#17343bb8;touch-action:none;pointer-events:auto;display:grid;place-items:center}.touch-stick:before,.touch-stick:after{content:"";position:absolute;background:#9ebdab55}.touch-stick:before{width:1px;height:70%}.touch-stick:after{width:70%;height:1px}.touch-stick span{position:absolute;bottom:-3px;font-size:10px;color:#d9eacb;letter-spacing:.06em;text-shadow:0 1px 3px #000}.stick-knob{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px;border-radius:50%;background:#b5d4b6c9;border:2px solid #e9f3d4;box-shadow:0 0 12px #bad8bd88;z-index:1;pointer-events:none}.mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(50px,1fr));gap:5px;width:135px;pointer-events:auto}.mobile-actions button{padding:6px}.mobile-actions button:first-child{grid-column:span 2;background:#adcba4;color:#13262a}.hud-bottom-left,.hud-bottom-right{bottom:139px}.hotkeys{display:none}.bag-item{touch-action:manipulation}}@media(max-width:600px){.topbar{height:54px}#stage{height:calc(100dvh - 54px)}.mobile-toolbar{top:94px;right:8px}.mobile-toolbar button{font-size:11px;padding:5px 7px;min-height:36px}.mobile-bottom{gap:4px;padding:0 6px}.touch-stick{width:88px;height:88px}.stick-knob{width:34px;height:34px;margin:-17px}.mobile-actions{width:104px;gap:3px;grid-template-columns:repeat(2,minmax(48px,1fr))}.mobile-actions button{font-size:11px;min-height:40px;padding:3px}.hud-bottom-left,.hud-bottom-right{bottom:151px}.hud-bottom-left{width:130px}.hud-bottom-right{min-width:100px}.hud-top-left{max-width:60%}.modal{max-height:calc(100dvh - 80px)}}@media(max-height:500px)and (min-width:601px){.topbar{height:42px;padding:0 12px}#stage{height:calc(100dvh - 42px);min-height:0}.mobile-toolbar{top:8px;right:125px}.mobile-toolbar button{min-height:33px;padding:4px 8px}.mobile-bottom{bottom:4px;align-items:flex-end}.touch-stick{width:76px;height:76px}.stick-knob{width:30px;height:30px;margin:-15px}.mobile-actions{display:flex;flex-wrap:wrap;width:260px;justify-content:center}.mobile-actions button,.mobile-actions button:first-child{grid-column:auto;min-width:73px;min-height:34px;font-size:11px}.hud-bottom-left,.hud-bottom-right{bottom:80px}.hud-top-left{top:4px;left:6px;padding:6px}.minimap{top:4px;right:6px}}#portraitPrompt,.sidebar-launch{display:none}@media(orientation:portrait)and (max-width:600px),(orientation:portrait)and (pointer:coarse)and (max-width:1000px){html,body,#app{height:100%;overflow:hidden}.shell{display:none}#portraitPrompt{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px max(24px,env(safe-area-inset-right)) 24px max(24px,env(safe-area-inset-left));text-align:center;background:radial-gradient(circle at 50% 40%,#21413e,#091216 70%)}.rotate-symbol{display:grid;place-items:center;width:96px;height:96px;border:2px solid #a9cbaa;border-radius:22px;color:#c9e5c0;font-size:70px;line-height:1;transform:rotate(-25deg)}#portraitPrompt h1{margin:0;font-size:clamp(32px,10vw,48px)}#portraitPrompt p{max-width:330px;margin:0;color:#b8cfc2;line-height:1.6}#portraitPrompt button{min-height:48px;margin-top:12px}#portraitPrompt small{max-width:320px;color:#91a99d;line-height:1.5}}@media(orientation:landscape)and (pointer:coarse),(orientation:landscape)and (max-height:650px)and (max-width:1200px){.character-art{height:122px}.character-info{gap:5px;padding:9px}.character-info h3{font-size:15px}.character-info p{min-height:0}.beacon-tip{top:calc(max(6px,env(safe-area-inset-top)) + 47px);max-width:55vw;padding:4px 7px;font-size:10px;white-space:normal}html,body,#app{height:100%;overflow:hidden}.shell{height:100dvh;min-height:0}.topbar,footer{display:none}main{min-height:0;padding:0}#stage{display:grid;place-items:center;width:100vw;height:100dvh;min-height:0;border:0}canvas{width:min(100%,177.778dvh);height:auto;max-height:100%;aspect-ratio:16 / 9;object-fit:contain}.menu-layout{grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:12px;min-height:100%;padding:12px max(24px,env(safe-area-inset-left))}.menu-copy h1{margin:6px 0 10px;font-size:clamp(44px,12dvh,64px);line-height:1}.menu-copy p{margin:0;max-width:440px;font-size:13px;line-height:1.5}.menu-actions{gap:8px;margin-top:16px}.menu-actions button{min-height:40px;padding:7px 12px;font-size:13px}.menu-meta{margin-top:12px;font-size:9px}.menu-art{position:relative;inset:auto;min-height:0;opacity:.55}.base-layout{grid-template-columns:160px minmax(0,1fr);height:100%;min-height:0}.sidebar{min-height:0;padding:8px 9px;overflow-y:auto}.sidebar>.eyebrow{display:none}.sidebar h1{margin:2px 0 5px;font-size:17px}.base-balance{margin-bottom:6px;padding:6px;font-size:10px}.base-balance b{font-size:17px}.sidebar nav{display:grid;gap:2px;overflow:visible}.sidebar nav button{min-height:36px;padding:4px 7px;font-size:12px}.sidebar-launch{display:block;margin-top:auto;padding-top:7px}.sidebar-launch button{min-height:40px;padding:5px;font-size:12px}.base-main{min-width:0;max-height:100dvh;padding:14px;overflow-y:auto}.panel-heading{margin-bottom:12px;padding-bottom:9px}.panel h2{font-size:23px}.two-col{grid-template-columns:minmax(0,1fr) minmax(250px,.85fr);gap:16px}.mobile-toolbar{top:max(7px,env(safe-area-inset-top));left:50%;right:auto;transform:translate(-50%)}.mobile-toolbar button{min-height:38px;padding:5px 9px}.mobile-bottom{bottom:max(5px,env(safe-area-inset-bottom));padding-right:max(8px,env(safe-area-inset-right));padding-left:max(8px,env(safe-area-inset-left))}.touch-stick{width:clamp(104px,34dvh,136px);height:clamp(104px,34dvh,136px);box-shadow:0 4px 20px #0009}.stick-knob{width:48px;height:48px;margin:-24px}.mobile-actions{display:flex;flex-wrap:wrap;justify-content:center;width:275px;gap:4px}.mobile-actions button,.mobile-actions button:first-child{min-width:82px;min-height:40px;font-size:12px}.hud-top-left{max-width:215px}.hud-bottom-left,.hud-bottom-right{bottom:calc(max(5px,env(safe-area-inset-bottom)) + clamp(104px,34dvh,136px) + 8px)}.overlay{padding:7px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left))}.modal{max-height:calc(100dvh - 14px);padding:14px}.modal-head{margin-bottom:9px;padding-bottom:8px}.modal h2{font-size:21px}.bag-layout{grid-template-columns:minmax(0,1fr) 200px;gap:12px}.result-layout{padding:18px}.result-layout h1{font-size:38px}.result-stats{margin:12px 0}.result-stats>div{padding:9px}.result-stats b{font-size:20px;margin-top:2px}}@media(orientation:landscape)and (max-height:650px)and (max-width:760px){.two-col,.menu-layout{grid-template-columns:1fr}.menu-art,.menu-meta{display:none}.menu-copy h1{font-size:44px}.mobile-actions{width:250px}.mobile-actions button,.mobile-actions button:first-child{min-width:75px}}@media(orientation:landscape)and (max-height:650px)and (max-width:520px){.mobile-actions{width:205px}.mobile-actions button,.mobile-actions button:first-child{min-width:65px}}@media(orientation:landscape)and (pointer:coarse),(orientation:landscape)and (max-height:650px)and (max-width:1200px){.hud-top-left{top:max(6px,env(safe-area-inset-top));left:max(7px,env(safe-area-inset-left));width:clamp(124px,21vw,170px);max-width:none;padding:5px 8px;border-left-width:2px;border-radius:3px;background:#0b171bba}.hud-top-left .eyebrow,.hud-top-left #objective{display:none}.hud-top-left b{margin:0;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-objective{position:absolute;display:block;top:calc(max(6px,env(safe-area-inset-top)) + 47px);left:50%;width:min(55vw,460px);transform:translate(-50%);padding:3px 6px;border-radius:4px;background:#0b171baa;color:#c9d9c7;font-size:10px;text-align:center;white-space:normal;line-height:1.25;max-height:3.8em;overflow:hidden;text-overflow:ellipsis}.hud-bottom-left{top:calc(max(6px,env(safe-area-inset-top)) + 29px);bottom:auto;left:max(7px,env(safe-area-inset-left));width:clamp(124px,21vw,170px);padding:5px 8px 4px;border-radius:3px;background:#0b171bba}.hud-bottom-left .bar-label{font-size:10px;line-height:1.1}.hud-bottom-left .bar{height:4px;margin:3px 0 4px}.hud-bottom-left .weapon-name{margin-top:2px;font-size:10px;line-height:1.1}.minimap{top:max(6px,env(safe-area-inset-top));right:max(7px,env(safe-area-inset-right));grid-template-columns:repeat(4,13px);grid-template-rows:repeat(4,13px);gap:2px;padding:5px;background:#0b171bba}.hud-bottom-right{top:calc(max(6px,env(safe-area-inset-top)) + 76px);bottom:auto;right:max(7px,env(safe-area-inset-right));width:96px;min-width:0;padding:5px 7px;border-radius:3px;background:#0b171bba}.hud-bottom-right strong{font-size:17px}.hud-bottom-right span{margin-top:3px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-bottom{gap:0;padding-right:max(8px,env(safe-area-inset-right));padding-left:max(8px,env(safe-area-inset-left))}.touch-stick{width:clamp(112px,33dvh,132px);height:clamp(112px,33dvh,132px);background:#17343ba8}.mobile-actions{--action-size: clamp(52px, 16dvh, 62px);display:grid;grid-template-columns:repeat(3,var(--action-size));grid-template-rows:repeat(2,var(--action-size));width:auto;gap:5px}.mobile-actions button,.mobile-actions button:first-child{grid-column:auto;width:var(--action-size);min-width:0;min-height:var(--action-size);padding:3px;font-size:12px;line-height:1.1;border-radius:13px;color:#e7efdf;background:#10252ddc}.mobile-actions button:nth-child(4){grid-column:1}.mobile-actions .context-button.ready{border-color:#d3ecc3;background:#b8d7ad;color:#142b2b}.mobile-actions .context-button.pickup{border-color:#f2dfac;background:#e5ce9d}.mobile-actions .context-button:disabled{opacity:.48}.mobile-actions .dash-button{display:flex;flex-direction:column;align-items:center;justify-content:center;border-color:#a9dce6;background:#24515cde}.mobile-actions .dash-button small{display:block;font-size:9px;font-weight:500}.mobile-actions .dash-button:disabled{opacity:.56}.mobile-actions .dash-button.dashing,.mobile-actions .dash-button.dashing:disabled{opacity:1;border-color:#d7fff4;background:#3b978c;box-shadow:0 0 22px #78f5dcaa,inset 0 0 12px #c9fff088}.mobile-actions .skill-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-color:#9edbd1;background:#235450de}.mobile-actions .skill-overdrive{border-color:#e9c993;background:#604729e8}.mobile-actions .skill-button small{display:block;font-size:9px;font-weight:500}.mobile-actions .skill-button:disabled{opacity:.56}.mobile-actions .skill-button.active{box-shadow:0 0 0 2px #f3d291,0 0 20px #f3d291aa}.mobile-toolbar button{min-height:44px}}@media(orientation:landscape)and (max-height:340px)and (max-width:1200px){.mobile-objective{top:calc(max(6px,env(safe-area-inset-top)) + 44px);font-size:9px}.mobile-toolbar button{min-height:40px}}@media(pointer:coarse),(max-width:850px){.mobile-toolbar button{display:flex;align-items:center;justify-content:center;gap:4px}.mobile-toolbar .art-icon{width:19px;height:19px}.mobile-actions button,.mobile-actions button:first-child{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.mobile-actions .art-icon{width:clamp(18px,5dvh,23px);height:clamp(18px,5dvh,23px)}.mobile-actions .action-label{font-size:10px;line-height:1.05;white-space:nowrap}.stick-icon{width:27px;height:27px}}@media(pointer:coarse),(max-width:850px){.mobile-actions,.mobile-actions.has-wave{--action-size: clamp(44px, 14dvh, 50px);display:grid;width:auto;grid-template-columns:repeat(3,var(--action-size));grid-template-rows:repeat(2,var(--action-size));gap:4px}.mobile-actions.has-wave{grid-template-columns:repeat(4,var(--action-size))}.mobile-actions button,.mobile-actions button:first-child{grid-column:auto;width:var(--action-size);min-width:0;min-height:var(--action-size);padding:2px;border-radius:11px}.mobile-actions button:nth-child(4){grid-column:auto}.mobile-actions .art-icon{width:17px;height:17px}.mobile-actions .action-label{font-size:9px}.mobile-actions .skill-button small,.mobile-actions .dash-button small{font-size:8px}.mobile-actions button.skill-wave:first-child{border-color:#8addec;background:#205b70e8}.mobile-actions .skill-wave.active{box-shadow:0 0 0 2px #8de8f3,0 0 17px #69d5efbb}.wave-icon{font-family:Georgia,serif;font-size:25px;font-weight:700;line-height:17px;color:#b9f4ff}.mobile-toolbar button{min-height:34px;padding:3px 6px;font-size:10px}.mobile-toolbar .art-icon{width:16px;height:16px}}
