.knowledge{--gold:#d9c18b;position:fixed;inset:3vh 3vw;z-index:140;display:flex;flex-direction:column;color:#e4e8e8;background:#101a21fa;border:1px solid #756a50;border-radius:16px;box-shadow:0 30px 100px #000c,0 0 0 5px #0a121650;overflow:hidden;pointer-events:auto;font:14px system-ui,sans-serif}.knowledge[hidden],.knowledge-tooltip[hidden],.knowledge-results[hidden]{display:none}.knowledge button{font:inherit;cursor:pointer;color:inherit;background:#1c2a32;border:1px solid #3a4a53;border-radius:7px;padding:8px 12px}.knowledge button:hover{background:#2c3e48}.knowledge button:focus-visible{outline:2px solid #f6db84;outline-offset:3px}.knowledge button:disabled{opacity:.45;cursor:default}.knowledge-header{display:flex;align-items:center;gap:20px;padding:18px 24px;border-bottom:1px solid #d9c18b25;background:linear-gradient(105deg,#24313a90,#14212a)}.knowledge-header h2{margin:0 0 3px;color:#f0e0b9;font:29px Georgia,serif;letter-spacing:.3px}.knowledge-header small{font-size:11px;letter-spacing:.5px;color:#99aeb6}.knowledge-close{margin-left:0;width:36px;height:36px;padding:0!important;display:grid;place-items:center;font-size:24px!important;line-height:1;background:transparent!important}.knowledge-search{position:relative;margin-left:auto}.knowledge-search input{width:245px;max-width:30vw;padding:10px 14px;border:1px solid #42515a;border-radius:20px;background:#0c171e;color:#fff;font:inherit;font-size:12px}.knowledge-results{position:absolute;top:calc(100% + 8px);right:0;width:340px;max-height:50vh;overflow:auto;z-index:6;background:#17232d;padding:8px;border:1px solid #53636c;border-radius:10px;box-shadow:0 12px 30px #0009}.knowledge-results button{display:block;width:100%;text-align:left;margin:3px 0}.knowledge-branches{display:flex;gap:5px;padding:9px 18px;overflow:auto;scrollbar-width:thin;scrollbar-color:#47565e transparent;flex-shrink:0}.knowledge-branches button{display:flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid transparent;background:transparent;padding:7px 10px;font-size:11px;color:#bbc8cd}.knowledge-branches button:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--branch);box-shadow:0 0 8px color-mix(in srgb,var(--branch) 40%,transparent)}.knowledge-body{display:flex;flex:1;min-height:0;border-top:1px solid #2c3b44}.knowledge-viewport{position:relative;overflow:clip;flex:1;min-width:0;touch-action:none;background:radial-gradient(ellipse at center,#29404a75,transparent 75%),radial-gradient(#8da6b51c .8px,transparent 1px);background-size:auto,32px 32px;cursor:grab}.knowledge-viewport:active{cursor:grabbing}.knowledge-plane{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}.knowledge-map-hint{position:absolute;left:20px;top:16px;display:flex;gap:8px;align-items:center;pointer-events:none;color:#93a8b0;font-size:11px;letter-spacing:.2px;background:#101b22c9;border-radius:20px;padding:7px 10px}.knowledge-map-hint i{height:5px;width:5px;background:#d9c18b;border-radius:50%}.knowledge-core{position:absolute;z-index:1;left:-115px;top:-115px;box-sizing:border-box;width:230px;height:230px;border:1px solid #b0a07880;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;letter-spacing:5px;font:24px Georgia,serif;color:#ead9ad;background:radial-gradient(#283b43,#13212b);box-shadow:0 0 0 9px #cdb57e09,0 0 0 10px #cdb57e30,0 0 100px #a7966320}.knowledge-core:before{content:"\2727";font:38px Georgia,serif;color:#bbaa7b;margin-bottom:10px}.knowledge-core small{font:10px system-ui;letter-spacing:1.6px;text-transform:uppercase;margin-top:9px;color:#95a8ad}.knowledge-links{position:absolute;overflow:visible;pointer-events:none}.knowledge-links path{fill:none;stroke-width:2;opacity:.62;stroke-linecap:round;stroke-linejoin:round;transition:opacity .15s}.knowledge-links path.planned{stroke-dasharray:3 6;opacity:.38}.knowledge-links circle{opacity:.7;stroke:#15232b;stroke-width:1.5}.knowledge-links path.on-path{opacity:.95;stroke-width:3}.knowledge-links path.trace{opacity:1;stroke-width:3.5;stroke-dasharray:none;filter:drop-shadow(0 0 3px #e5d0a040)}.has-route .knowledge-links path:not(.trace):not(.on-path):not(.knowledge-earned):not(.knowledge-pulse):not(.knowledge-dependency){opacity:.16}.has-route .knowledge-links .knowledge-junction{opacity:.25}.knowledge button.knowledge-node{position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;width:176px;height:88px;background:linear-gradient(120deg,#23343d,#162630);border:1px solid color-mix(in srgb,var(--branch) 50%,#324650);padding:12px 11px 22px;border-radius:10px;box-shadow:0 5px 16px #0005,inset 0 1px #ffffff0b;display:grid;grid-template-columns:30px 1fr;align-items:center;gap:10px;line-height:1.2;text-align:left;transition:border-color .15s,box-shadow .15s,opacity .15s}.knowledge-node:before{content:"";position:absolute;left:-1px;top:24px;bottom:24px;width:2px;border-radius:2px;background:var(--branch)}.knowledge-badge{color:var(--branch);width:30px;height:30px;display:grid;place-items:center}.knowledge-badge svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.knowledge-label{font-size:13px;font-weight:550;overflow-wrap:break-word}.knowledge-watermark{position:absolute;bottom:8px;left:51px;right:5px;font-size:8px!important;letter-spacing:.7px;text-transform:uppercase;color:#93a9b1}.knowledge-extra{position:absolute;right:-8px;top:-8px;border:1px solid var(--branch);background:#1d303d;color:var(--branch);border-radius:10px;min-width:22px;text-align:center;font-size:10px;padding:2px}.knowledge button.knowledge-node.planned{background:repeating-linear-gradient(135deg,#1a2831,#1a2831 9px,#22313a 9px 10px);color:#aab6bd;border-style:dashed}.knowledge-node.planned .knowledge-badge{opacity:.7}.knowledge-node.planned .knowledge-watermark{color:#bcae92}.knowledge button.knowledge-node.acquired{border-color:#84b89d;background:linear-gradient(120deg,#264b40,#1a302d)}.knowledge-node.acquired .knowledge-watermark{color:#add6bb}.knowledge button.knowledge-node.on-path{border-color:#d9c18b}.knowledge button.knowledge-node.selected{outline:2px solid #ead2a0;outline-offset:5px;box-shadow:0 0 0 9px #dfc7930b,0 8px 25px #0006}.knowledge button.knowledge-node.researching{box-shadow:0 0 22px #eac47035}.knowledge button.knowledge-node.trace{border-color:var(--branch);box-shadow:0 0 16px color-mix(in srgb,var(--branch) 15%,transparent)}.has-route .knowledge-node:not(.trace):not(.selected):not(.on-path):not(.dependency-required):not(.dependency-alternative){opacity:.58}.knowledge-distant .knowledge-label,.knowledge-distant .knowledge-watermark,.knowledge-distant .knowledge-extra{visibility:hidden}.knowledge-distant .knowledge-node{grid-template-columns:1fr;justify-items:center;padding:10px}.knowledge-distant .knowledge-badge{width:45px;height:45px}.knowledge-distant .knowledge-badge svg{width:40px;height:40px}.knowledge-controls{position:absolute;bottom:16px;left:16px;display:flex;gap:4px;padding:5px;border:1px solid #53616b60;background:#0f1b23e8;border-radius:10px;box-shadow:0 5px 18px #0004}.knowledge-controls button{font-size:12px;background:transparent;border-color:transparent;padding:6px 11px}.knowledge-detail{flex:0 0 290px;box-sizing:border-box;display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden;border-left:1px solid #44525d;background:linear-gradient(155deg,#21313b,#15222c)}.knowledge-detail-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#53636b transparent;padding:23px}.knowledge-actions{flex-shrink:0;padding:14px 22px;border-top:1px solid #59687260;background:#16252f}.knowledge-actions .knowledge-start{margin-top:0}.knowledge-branches button.is-current{background:#c8b88812;border-color:#a8b9c229;color:#eee4ca}.knowledge-detail h3,.knowledge-tooltip h3{margin:0 0 12px;color:#f0ddb0;font:23px/1.2 Georgia,serif}.knowledge-detail p,.knowledge-tooltip p{line-height:1.65;margin:16px 0;color:#bdccd3;font-size:13px}.knowledge-eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:var(--branch);margin-bottom:15px}.knowledge-status{display:inline-block;font-size:9px;letter-spacing:1px;color:#bfd1c4;padding:4px 7px;border:1px solid #65776e70;border-radius:4px}.knowledge dl{border-top:1px solid #56687260;border-bottom:1px solid #56687260;padding:12px 0;margin:18px 0}.knowledge dt,.knowledge-tooltip dt{font-size:10px;color:#9db0ba;text-transform:uppercase;letter-spacing:.6px;margin-top:10px}.knowledge dt:first-child{margin-top:0}.knowledge dd,.knowledge-tooltip dd{margin:3px 0 10px;font-size:21px;color:#f1e4c7;font-variant-numeric:tabular-nums}.knowledge dd:last-child{margin-bottom:0}.knowledge small,.knowledge-tooltip small{line-height:1.5}.knowledge-detail small{font-size:11px;color:#879da8}.knowledge-start{display:block;width:100%;margin-top:20px;background:linear-gradient(#b4a071,#998253)!important;border-color:#d9c18b!important;color:#121e26!important;font-weight:600!important;padding:11px!important}.knowledge-pause{display:block;width:100%;margin-top:8px;background:transparent!important;font-size:11px!important}.knowledge-detail .knowledge-path{color:#bfb698;font-size:11px}.knowledge-prerequisites{margin-top:22px}.knowledge-prerequisites h4{font-size:10px;font-weight:500;color:#acbdc6;letter-spacing:1px;text-transform:uppercase}.knowledge-prerequisites button{display:grid;grid-template-columns:16px 1fr;gap:3px 8px;text-align:left;font-size:11px;width:100%;padding:9px 10px;margin:6px 0;background:#11202a}.knowledge-prerequisites button>span:first-child{color:var(--branch)}.knowledge-prerequisites small{grid-column:2;font-size:9px}.knowledge footer{display:grid;grid-template-columns:1fr auto;gap:7px 18px;padding:12px 22px;background:#14212a;border-top:1px solid #40505b}.knowledge-summary{font-size:12px;color:#d8d1b9}.knowledge progress{width:170px;accent-color:#d9bc70;height:6px;align-self:center}.knowledge footer>span{font-size:10px;color:#8199a5;grid-column:1/-1}.knowledge-tooltip{position:fixed;z-index:160;width:300px;box-sizing:border-box;padding:19px;background:#14232df7;border:1px solid #a69469;border-radius:10px;box-shadow:0 12px 30px #0009;pointer-events:none;color:#eceddf;font:13px system-ui;max-height:85vh;overflow:hidden}.knowledge-tooltip h3{font-size:21px}.knowledge-tooltip p{font-size:12px;margin:10px 0}.knowledge-tooltip small{font-size:10px;color:#a8bbc6}.knowledge-tooltip dl{display:grid;grid-template-columns:1fr auto;gap:6px;margin:14px 0}.knowledge-tooltip dt{margin:0;font-size:9px}.knowledge-tooltip dd{font:13px system-ui;margin:0}.action.item.research-locked{opacity:.6}.action.item.research-locked:after{content:"\25c7";position:absolute;right:6px;top:3px;color:#eacb86}@media(max-width:800px){.knowledge{inset:1vh 1vw}.knowledge-header{padding:12px;gap:8px}.knowledge-header h2{font-size:22px}.knowledge-header small{display:none}.knowledge-search input{width:180px;padding:8px 10px}.knowledge-body{flex-direction:column}.knowledge-detail{flex:0 0 40%;border-left:0;border-top:1px solid #415059;padding:0}.knowledge-detail-content{padding:14px 18px}.knowledge-actions{padding:8px 14px}.knowledge-detail h3{font-size:20px}.knowledge-detail p{margin:9px 0}.knowledge-detail dl{display:grid;grid-template-columns:1fr 1fr;margin:10px 0}.knowledge-detail dt{margin:0}.knowledge-detail dd{font-size:15px;margin:0}.knowledge footer{padding:8px 12px}.knowledge progress{width:85px}.knowledge-summary{font-size:10px}.knowledge-tooltip{display:none}.knowledge-start{margin-top:10px}.knowledge-controls{bottom:8px;left:8px}.knowledge-branches{padding:5px}.knowledge-eyebrow{margin-bottom:7px}.knowledge-map-hint{font-size:9px;top:8px;left:8px}.knowledge-results{width:min(320px,85vw)}}@media(prefers-reduced-motion:reduce){.knowledge-links path,.knowledge button.knowledge-node{transition:none}}.knowledge-links path.knowledge-earned{stroke-width:6;opacity:.95;filter:drop-shadow(0 0 3px #efd09238);transition:stroke-dasharray 1s linear}.knowledge-links path.knowledge-pulse{stroke:#fff3cf;stroke-width:9;stroke-dasharray:.045 1.1;opacity:0;filter:drop-shadow(0 0 5px #ffe8a6);animation:knowledge-flow 3.2s linear infinite;transition:none}.knowledge-links path.knowledge-pulse-1{stroke:#ffde91;stroke-width:6;animation-delay:.32s}.knowledge-links .knowledge-frontier circle{stroke:none;opacity:1}.knowledge-links .knowledge-frontier-halo{fill:#eed295;opacity:.18!important;transform-box:fill-box;transform-origin:center;animation:knowledge-frontier-beat 3.2s ease-out infinite}.knowledge-links .knowledge-frontier-dot{fill:#fff3cf;filter:drop-shadow(0 0 5px #ffd777)}.research-active .knowledge-core:before{animation:knowledge-heartbeat 3.2s ease-out infinite;transform-origin:center}.knowledge-node.researching .knowledge-watermark{color:#f5d993;font-variant-numeric:tabular-nums}@keyframes knowledge-flow{0%{stroke-dashoffset:.05;opacity:0}5%{opacity:1}73%{opacity:1}82%{stroke-dashoffset:-1;opacity:0}to{stroke-dashoffset:-1;opacity:0}}@keyframes knowledge-heartbeat{0%,23%,to{transform:scale(1);opacity:.6}4%{transform:scale(1.18);opacity:1}10%{transform:scale(1);opacity:.65}14%{transform:scale(1.12);opacity:1}}@keyframes knowledge-frontier-beat{0%,68%,to{transform:scale(.7)}76%{transform:scale(1.35)}82%{transform:scale(.7)}87%{transform:scale(1.12)}94%{transform:scale(.7)}}@media(prefers-reduced-motion:reduce){.knowledge-links path.knowledge-pulse{display:none;animation:none}.research-active .knowledge-core:before,.knowledge-links .knowledge-frontier-halo{animation:none}.knowledge-links path.knowledge-earned{transition:none}}.knowledge-timer{position:absolute;z-index:2;box-sizing:border-box;width:148px;height:44px;padding:5px 10px;display:flex;flex-direction:column;justify-content:center;gap:2px;pointer-events:none;border:1px solid #b3c5a678;border-radius:8px;background:#14232df5;box-shadow:0 3px 14px #0007;color:#e8edd9;white-space:nowrap}.knowledge-timer[hidden]{display:none}.knowledge-timer small{font-size:8px;line-height:1.1;text-transform:uppercase;letter-spacing:1px;color:#bbc8b7}.knowledge-timer strong{font:600 13px/1.2 ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}.knowledge-timer-goal{border-color:#d9c18b;color:#f5dfac}.knowledge-timer-goal small{color:#dac695}.knowledge-links path.knowledge-dependency{stroke:#efd29a;stroke-width:2;stroke-dasharray:8 5;opacity:.9;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #efd29a44)}.knowledge-links path.knowledge-dependency.alternative{stroke:#89d5ee;stroke-dasharray:3 6;opacity:.48}.knowledge-links path.knowledge-dependency.alternative.chosen{opacity:1;stroke-width:2.5}.knowledge-links marker path{stroke:none;fill:#efd29a;opacity:1}.knowledge-links #knowledge-arrow-alternative path{fill:#89d5ee}.knowledge button.knowledge-node.dependency-required{border-color:#efd29a;box-shadow:0 0 0 3px #efd29a30;opacity:1}.knowledge button.knowledge-node.dependency-alternative{border-color:#89d5ee;box-shadow:0 0 0 3px #89d5ee30;opacity:1}.knowledge .knowledge-node.knowledge-building .knowledge-badge{color:#8bcee9}.knowledge-or{border-left:2px solid #89d5ee80;padding-left:10px;margin:16px 0}.knowledge-or h4{color:#89d5ee}.knowledge-prerequisites .knowledge-show-links{display:block;text-align:center;color:#efd29a}.knowledge-stage-time{font-size:11px!important;color:#d2c5a6!important}.knowledge-detail-content>small{display:block;margin:10px 0}.knowledge-dependency-tags{position:absolute;inset:0;pointer-events:none;z-index:2}.knowledge .knowledge-dependency-tag{position:absolute;width:148px;height:44px;box-sizing:border-box;border:1px solid #efd29a;background:#15242dfa;box-shadow:0 3px 16px #0009;padding:5px 8px;text-align:left;pointer-events:auto;display:flex;flex-direction:column;justify-content:center;gap:2px}.knowledge-dependency-tag[hidden]{display:none!important}.knowledge-dependency-tag strong{font-size:10px;line-height:1.1;font-weight:600;color:#f3dfb8}.knowledge-dependency-tag small{font-size:7px;line-height:1.1;color:#adbdc5}.knowledge .knowledge-dependency-tag.alternative{border-color:#89d5ee}.knowledge-dependency-tag.alternative strong{color:#baeafa}.knowledge .knowledge-dependency-overlay{inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:1}.space-navigation{position:fixed;inset:0;z-index:110;pointer-events:none;color:#d9e8ee;font:14px/1.4 system-ui,sans-serif}.space-navigation[hidden],.space-label[hidden]{display:none}.space-navigation header{position:absolute;top:max(24px,env(safe-area-inset-top));left:max(28px,env(safe-area-inset-left));right:max(28px,env(safe-area-inset-right));display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.space-navigation header>div{display:flex;flex-direction:column;gap:5px;text-shadow:0 2px 12px #000}.space-navigation small{font-size:10px;letter-spacing:.25em;color:#83a2b7}.space-navigation strong{font-size:clamp(20px,3vw,28px);font-weight:450;letter-spacing:.04em}.space-navigation header span{font-size:12px;color:#8ca8bb}.space-navigation button{pointer-events:auto;cursor:pointer;font:inherit;color:inherit;background:#102032b3;border:1px solid #85a9bc42;border-radius:6px;padding:9px 15px;min-height:40px;box-shadow:none}.space-navigation button:hover,.space-navigation button:focus-visible{background:#254258;border-color:#afdbed;outline:none}.space-navigation footer{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:16px;right:16px;display:flex;flex-direction:column;align-items:center;gap:12px}.space-navigation nav{display:flex;gap:2px;padding:3px;border:1px solid #8cb7ce30;border-radius:8px;background:#060f1cbd;backdrop-filter:blur(6px)}.space-navigation nav button{border-color:transparent;background:none;min-width:86px}.space-navigation nav button[aria-pressed=true]{background:#24425899;color:#d1efff}.space-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.space-navigation .space-orientation{display:flex;align-items:center;gap:8px;min-height:44px;background:#10203259;border-color:#85a9bc50;color:#adbdc9;backdrop-filter:blur(5px);transition:background .2s,border-color .2s,color .2s}.space-orientation svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.space-navigation .space-orientation[aria-pressed=true]{background:#27577385;border-color:#8cd8f4aa;color:#dbf5ff}.space-navigation .space-orientation:hover,.space-navigation .space-orientation:focus-visible{background:#254258bb;border-color:#afdbed;color:#fff}.space-hint{font-size:12px;color:#88a5b7;text-align:center}.space-labels{position:absolute;inset:0;overflow:hidden}.space-navigation .space-label{position:absolute;left:0;top:0;min-height:26px;padding:3px 8px;border:0;border-radius:4px;background:#08152599;color:#94b4c8;font-size:12px;white-space:nowrap}.space-navigation .space-label.selected{color:#d4f1ff}.space-navigation .space-label:before{content:"";position:absolute;top:-8px;left:50%;height:6px;width:1px;background:#7fadc275}.space-observing .hud,.space-observing .sector-toggle,.space-observing .sector-panel,.space-observing .haul-hint,.space-observing .selected-pile-tooltip,.space-observing .build-tooltip{visibility:hidden;pointer-events:none}@media(max-width:600px){.space-navigation header{top:max(16px,env(safe-area-inset-top));left:16px;right:16px;gap:8px}.space-navigation .space-return{font-size:12px;max-width:130px;padding:8px 10px}.space-navigation footer{bottom:max(16px,env(safe-area-inset-bottom))}.space-hint{max-width:300px}}.chest-panel{position:fixed;z-index:120;inset:8vh max(12px,4vw) auto;max-height:86vh;overflow:auto;color:#eee0bf;background:radial-gradient(ellipse at top,#332d23,#151512 65%);border:3px ridge #927241;border-radius:9px;box-shadow:0 15px 60px #000b;font-family:system-ui,sans-serif;padding:14px}.chest-panel[hidden]{display:none}.chest-panel header,.chest-panel footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.chest-panel h2,.chest-panel h3{color:#e8cb8a;margin:4px 0 12px}.chest-panel button{color:inherit;cursor:pointer}.chest-panel header button{font-size:26px;background:#3b211c;border:2px ridge #ad8448}.chest-layout{display:grid;grid-template-columns:minmax(150px,1fr) minmax(340px,2fr) minmax(310px,1.7fr);gap:20px}.chest-roster{max-height:570px;overflow:auto}.chest-roster button{display:flex;align-items:center;gap:10px;width:100%;margin:4px 0;padding:6px;background:#24221e;border:1px solid #5a503a;text-align:left}.chest-roster img{object-fit:contain;border-radius:50%;background:#10100e}.chest-roster button.active{background:#4d412a;border-color:#e5c378}.chest-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.chest-slot{aspect-ratio:1;min-width:0;width:100%;padding:8px;background:radial-gradient(#252520,#090a09);border:3px ridge var(--quality,#655c46);box-shadow:inset 0 0 6px #000,0 1px 3px #000;border-radius:5px;position:relative}.chest-slot svg{display:block;width:100%;height:100%;fill:#6e716b;stroke:#94948a;stroke-width:.5;opacity:.24}.chest-slot.filled svg{opacity:1;fill:var(--item-color,#baae8a);stroke:#ede0c1}.chest-slot.filled{box-shadow:inset 0 0 9px color-mix(in srgb,var(--quality) 20%,transparent)}.chest-slot.chosen,.chest-slot.drop-hover{outline:2px solid #f7d56c;outline-offset:1px}.chest-slot.compatible{background:#233424}.chest-slot.reserved{opacity:.45}.gear-body{display:grid;grid-template-columns:62px minmax(120px,1fr) 62px;align-items:start}.gear-side label{display:block;font-size:11px;text-align:center;margin-bottom:12px;color:#aa9e83}.gear-side .chest-slot{margin-top:3px;height:58px}.gear-preview{height:360px;overflow:hidden;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at bottom,#655e4733,transparent 65%)}.gear-preview canvas{max-width:100%;height:auto!important;touch-action:none}.colon-bag{display:grid;grid-template-columns:repeat(4,54px);gap:6px;justify-content:center}.chest-panel h4{text-align:center;margin:5px}.chest-panel footer{margin-top:18px;font-size:12px;border-top:1px solid #57482e;padding-top:12px}.gear-trash{background:#30231f;border:1px solid #826352;padding:10px;white-space:nowrap}.gear-trash svg{width:22px;height:22px;fill:#af9783;vertical-align:middle}.gear-pending{color:#e8c976;font-size:12px}.gear-confirm{position:fixed;inset:0;background:#000b;display:grid;place-items:center;z-index:130}.gear-confirm>div{background:#252018;border:2px solid #b59758;padding:24px;max-width:90vw}.gear-confirm button{padding:10px 18px;margin-right:10px;background:#4c3527;border:1px solid #b59758}@media(max-width:1050px){.chest-layout{grid-template-columns:140px 1fr}.chest-character{grid-column:2}.gear-body{max-width:420px;margin:auto}}@media(max-width:650px){.chest-panel{inset:8px;max-height:none;padding:10px}.chest-layout{display:flex;flex-direction:column}.chest-roster{display:flex;max-height:90px;gap:5px}.chest-roster button{min-width:145px}.chest-slot{padding:5px}.chest-grid{gap:3px}.chest-panel footer{align-items:flex-start}.gear-body{width:100%}}.chest-panel,.chest-panel *{box-sizing:border-box}.gear-side{min-height:354px;display:flex;flex-direction:column}.gear-side label:last-child{margin-top:auto}.chest-panel footer{position:sticky;bottom:-14px;background:#1c1b16;padding-bottom:8px}.chest-slot.filled{touch-action:none}.gear-drag-ghost{position:fixed;pointer-events:none;z-index:200;width:46px;height:46px;padding:7px;border:2px solid #e8cb8a;background:#282218dd;border-radius:5px}.gear-drag-ghost svg{width:100%;height:100%;fill:#d1b98d}.chest-panel header button{width:36px;height:36px;padding:0}.chest-grid{max-width:min(100%,calc(86vh - 210px))}@media(max-width:650px){.chest-grid{max-width:none}}.gear-age{font-weight:400;white-space:nowrap;font-size:.85em}.chest-panel.inventory-only{width:min(660px,calc(100vw - 16px));inset:8vh auto auto;left:max(8px,calc((100vw - 660px)/2));max-height:86vh}.inventory-only .chest-layout{grid-template-columns:minmax(140px,1fr) minmax(300px,2fr)}.inventory-only header{cursor:grab;touch-action:none;user-select:none}.inventory-only header:active{cursor:grabbing}@media(max-width:650px){.chest-panel.inventory-only{top:8px;max-height:calc(100dvh - 16px)}.inventory-only .chest-roster{flex-shrink:0}}.chest-panel{--store-size:min(420px, calc(100dvh - 90px) , calc(100vw - 510px) );width:calc(var(--store-size) + 482px);inset:6vh auto auto;left:max(8px,calc((100vw - var(--store-size) - 482px)/2));max-height:calc(100dvh - 16px);padding:12px;overflow:hidden}.chest-panel header{cursor:grab;touch-action:none;user-select:none;margin-bottom:12px;gap:10px}.chest-panel header:active{cursor:grabbing}.chest-panel header h2{margin:0 auto 0 0;font-size:18px}.chest-panel header .gear-trash{width:auto;height:30px;font-size:12px;padding:3px 8px;border:1px solid #826352;background:#30231f}.chest-panel header button[aria-label=Fermer]{width:30px;height:30px;font-size:23px}.chest-panel .chest-layout{display:grid;grid-template-columns:146px var(--store-size) 290px;gap:10px;align-items:center}.chest-panel .chest-roster{align-self:stretch;max-height:var(--store-size);overflow:auto;display:block}.chest-panel .chest-roster button{min-width:0;gap:6px;padding:4px;font-size:12px;line-height:1.35}.chest-panel .chest-roster img{width:36px;height:36px;flex-shrink:0}.chest-panel .chest-character{grid-column:auto;min-width:0}.chest-panel .chest-character h3{font-size:14px;text-align:center;margin:0 0 8px}.chest-panel .chest-grid{max-width:none;width:100%;gap:4px}.chest-panel .gear-body{grid-template-columns:48px minmax(0,1fr) 48px;width:100%;max-width:none}.chest-panel .gear-side{min-height:280px}.chest-panel .gear-side label{margin-bottom:6px;font-size:10px}.chest-panel .gear-side label:last-child{margin-top:auto}.chest-panel .gear-side .chest-slot{height:46px;padding:5px}.chest-panel .gear-preview{height:280px}.chest-panel .gear-preview canvas{width:auto!important;height:100%!important;max-width:100%;object-fit:contain}.chest-panel .colon-bag{grid-template-columns:repeat(4,42px);gap:5px}.chest-panel h4{font-size:11px;margin:4px}.chest-panel .gear-pending{font-size:11px;margin:6px 0 0}.chest-panel .chest-slot.filled{border:3px solid var(--quality);box-shadow:inset 0 0 0 1px #000b,inset 0 0 12px color-mix(in srgb,var(--quality) 30%,transparent),0 0 3px var(--quality)}.chest-panel.inventory-only{width:466px;left:max(8px,calc((100vw - 466px)/2));inset-block-start:6vh;max-height:calc(100dvh - 16px)}.chest-panel.inventory-only .chest-layout{grid-template-columns:126px 290px}.chest-panel.inventory-only .chest-roster{max-height:370px}@media(max-height:520px)and (min-width:761px){.chest-panel{top:8px}.chest-panel .gear-preview{height:210px}.chest-panel .gear-side{min-height:210px}.chest-panel .gear-side .chest-slot{height:35px;width:35px;margin:2px auto 0}.chest-panel .gear-side label{margin-bottom:3px}.chest-panel .colon-bag{grid-template-columns:repeat(4,34px)}}@media(max-width:760px){.chest-panel{--store-size:min(360px, calc(100vw - 44px) );width:calc(100vw - 16px);left:8px;top:8px;overflow:auto}.chest-panel .chest-layout{grid-template-columns:minmax(0,1fr);justify-items:center}.chest-panel .chest-roster{display:flex;width:100%;max-height:82px;gap:5px;overflow:auto}.chest-panel .chest-roster button{min-width:145px}.chest-panel .chest-storage{width:var(--store-size)}.chest-panel .chest-character{width:min(290px,100%)}.chest-panel.inventory-only{width:calc(100vw - 16px);left:8px;top:8px}.chest-panel.inventory-only .chest-layout{grid-template-columns:minmax(0,1fr)}}.chest-panel{--store-size:min(504px, calc(100dvh - 104px) , calc(100vw - 600px) );width:calc(var(--store-size) + 581px);left:max(8px,calc((100vw - var(--store-size) - 581px)/2));padding:14px}.chest-panel header{margin-bottom:14px;gap:12px}.chest-panel header h2{font-size:22px}.chest-panel .chest-layout{grid-template-columns:175px var(--store-size) 348px;gap:12px}.chest-panel .chest-roster{overflow-x:hidden}.chest-panel .chest-roster button{font-size:14px;padding:5px;gap:7px}.chest-panel .chest-roster img{width:43px;height:43px}.chest-panel .roster-identity{min-width:0;flex:1}.chest-panel .roster-name{display:block;overflow-wrap:anywhere;line-height:1.3}.chest-panel .roster-identity .gear-age{display:block;margin-top:2px;color:#bbaf97}.chest-panel .chest-character h3{font-size:17px;margin-bottom:10px}.chest-panel .chest-grid{gap:5px}.chest-panel .gear-body{grid-template-columns:58px minmax(0,1fr) 58px}.chest-panel .gear-side{min-height:336px}.chest-panel .gear-side label{font-size:12px;margin-bottom:7px}.chest-panel .gear-side .chest-slot{height:55px;padding:6px}.chest-panel .gear-preview{height:336px}.chest-panel .colon-bag{grid-template-columns:repeat(4,50px);gap:6px}.chest-panel h4{font-size:13px;margin:5px}.chest-panel .gear-pending{font-size:13px;margin-right:42px}.chest-panel header button[aria-label=Fermer]{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;line-height:1}.chest-panel header button[aria-label=Fermer] svg{width:21px;height:21px;fill:currentColor;display:block}.chest-panel>.gear-trash{position:absolute;right:14px;bottom:14px;width:36px;height:36px;display:grid;place-items:center;padding:3px;border:0;background:transparent;border-radius:4px}.chest-panel>.gear-trash svg{display:block;width:30px;height:30px;fill:#baaa88}.chest-panel>.gear-trash:hover{background:#8b393933}.chest-panel>.gear-trash:hover svg{fill:#ef9e85}.chest-panel.inventory-only{width:624px;left:max(8px,calc((100vw - 624px)/2))}.chest-panel.inventory-only .chest-layout{grid-template-columns:230px 348px}.chest-panel.inventory-only .chest-roster{max-height:444px}@media(max-height:600px)and (min-width:761px){.chest-panel{top:8px}.chest-panel .gear-preview{height:245px}.chest-panel .gear-side{min-height:245px}.chest-panel .gear-side .chest-slot{width:39px;height:39px;margin:2px auto 0}.chest-panel .gear-side label{margin-bottom:3px}.chest-panel .colon-bag{grid-template-columns:repeat(4,38px)}}@media(max-width:760px){.chest-panel{--store-size:min(432px, calc(100vw - 50px) );width:calc(100vw - 16px);left:8px;padding-bottom:54px}.chest-panel .chest-layout,.chest-panel.inventory-only .chest-layout{grid-template-columns:minmax(0,1fr)}.chest-panel .chest-character{width:min(348px,100%)}.chest-panel .chest-roster{display:block;max-height:180px;overflow-y:auto;overflow-x:hidden}.chest-panel .chest-roster button{min-width:0}.chest-panel.inventory-only{width:calc(100vw - 16px);left:8px}.chest-panel.inventory-only .chest-roster{max-height:180px}}.gear-quantity{position:absolute;right:4px;bottom:2px;color:#fff;font-size:16px;font-weight:700;text-shadow:0 1px 3px black;pointer-events:none}.gear-context{position:fixed;z-index:140;display:grid;min-width:190px;padding:5px;background:#252018;border:1px solid #b59758;border-radius:5px;box-shadow:0 5px 18px #0009}.gear-context button{background:transparent;border:0;padding:9px 12px;text-align:left;font:inherit;color:#eee0bf}.gear-context button:hover:not(:disabled){background:#51422a}.gear-context button:disabled{opacity:.4;cursor:default}.gear-confirm input{width:100%;box-sizing:border-box;padding:8px;font:inherit}.chest-panel.kitchen-storage{background:linear-gradient(135deg,#243b48f5,#121f2af8);border-color:#88b4c8;color:#daedf5}.kitchen-storage .chest-slot{background:radial-gradient(#243e50,#132531)}.kitchen-storage .chest-storage{align-self:center}.gear-freshness{position:absolute;bottom:3px;left:5px;right:5px;height:4px;background:#482d2d;border-radius:3px;overflow:hidden}.gear-freshness i{display:block;height:100%}.chest-slot:has(.gear-freshness) .gear-quantity{bottom:8px}:root{--bg: #050814;--panel: rgba(12, 18, 38, .78);--panel-border: rgba(140, 170, 255, .18);--text: #e6e9f2;--muted: #8a93b3;--accent: #4f7cff;--accent-2: #7fffb0;--danger: #ff6b6b;--radius: 12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}#scene{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}#ui{position:fixed;inset:0;pointer-events:none}#ui>*{pointer-events:none}#ui .card,#ui .panel,#ui button,#ui a{pointer-events:auto}.auth{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;padding:16px clamp(16px,8vw,120px);background:linear-gradient(90deg,transparent 30%,rgba(3,6,18,.75) 70%);gap:48px}.brand{flex:1;align-self:flex-start;margin-top:6vh}.brand h1{font-size:clamp(40px,7vw,84px);letter-spacing:.18em;margin:0;font-weight:800;text-shadow:0 0 30px rgba(79,124,255,.6)}.brand p{color:#b8c7ff;letter-spacing:.08em;margin:4px 0 0 6px}.card{width:min(380px,100%);background:var(--panel);border:1px solid var(--panel-border);border-radius:16px;padding:28px;backdrop-filter:blur(10px);box-shadow:0 20px 60px #00000080}.card h2{margin:0 0 16px;font-size:22px}.card form{display:flex;flex-direction:column;gap:12px}.card label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}.card input{font:inherit;font-size:15px;color:var(--text);background:#ffffff0d;border:1px solid var(--panel-border);border-radius:8px;padding:10px 12px;outline:none}.card input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4f7cff40}.field-error,.error{color:var(--danger);font-size:13px;min-height:0;margin:0}.error:empty,.field-error:empty{display:none}.notice{background:#4f7cff26;border:1px solid rgba(79,124,255,.4);border-radius:8px;padding:8px 12px;font-size:14px}.muted{color:var(--muted);font-size:14px}.links{display:flex;justify-content:space-between;margin-top:16px;font-size:14px}a{color:#9db4ff}button{font:inherit;cursor:pointer;border:none;border-radius:8px;padding:11px 16px;background:var(--accent);color:#fff;font-weight:600;transition:filter .15s}button:hover{filter:brightness(1.12)}button:disabled{opacity:.6;cursor:default}button.busy:after{content:" \2026"}button.ghost{background:#ffffff12;border:1px solid var(--panel-border);font-weight:500}button.small{padding:5px 10px;font-size:13px}.hud .panel{position:absolute;background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);padding:10px 14px;backdrop-filter:blur(8px);font-size:14px}.hud .title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}.hud .title strong{color:var(--text)}.top-left{top:16px;left:16px;min-width:180px}.top-right{top:16px;right:16px;display:flex;align-items:center;gap:12px}.bottom-left{bottom:16px;left:16px;min-width:220px}.hud .follow-stop{background:transparent;border:1px solid rgba(255,255,255,.35);color:var(--text);min-height:44px;padding:6px 10px;box-shadow:none}.hud .follow-stop:hover{background:#ffffff1a}.hud .follow-stop[hidden]{display:none}@media(max-width:800px){.hud.following .top-right .status{display:none}}.players{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.players li{display:flex;align-items:center;gap:8px}.players li.away{opacity:.55}.players em{font-size:12px;color:var(--muted)}.dot{width:10px;height:10px;border-radius:50%;display:inline-block;box-shadow:0 0 6px currentColor}.status:before{content:"\25cf";margin-right:6px}.status.online:before{color:var(--accent-2)}.status.connecting:before{color:#ffd166}.status.offline:before{color:var(--danger)}.ping{color:var(--muted);font-variant-numeric:tabular-nums}.me{font-weight:600}.team{display:flex;flex-direction:column;gap:6px}.team .unit{display:flex;align-items:center;gap:10px;text-align:left;background:#ffffff0d;border:1px solid transparent;padding:7px 10px;font-weight:500}.team .unit.selected{border-color:var(--accent-2);background:#7fffb01f}.team .unit .name{flex:1}.team .unit .state{font-size:12px;color:var(--muted);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}kbd{font-family:ui-monospace,monospace;font-size:11px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-bottom-width:2px;border-radius:4px;padding:1px 5px;margin-right:3px}.help{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:14px;font-size:13px;color:#c3cbe6;text-shadow:0 1px 3px #000;max-width:calc(100% - 520px)}.actionbar-wrap{position:absolute;left:50%;bottom:16px;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;--slot: clamp(52px, calc((100vw - 610px) / 7), 82px)}.hud .actionbar{position:relative;padding:6px;border-radius:16px;--icon-cut: #0e1530}.actionbar-track{display:grid;grid-template-columns:repeat(7,var(--slot));gap:6px}#ui .hud .actionbar button.tutorial-glow{position:relative;isolation:isolate;overflow:visible;border-color:#b58a28}#ui .hud .actionbar button.tutorial-glow:disabled{opacity:1}.tutorial-particles{position:fixed;pointer-events:none;z-index:180}.actionbar-track{grid-template-columns:repeat(3,var(--slot)) 1px repeat(4,var(--slot))}.actionbar-track:before{content:"";grid-column:4;grid-row:1;margin:10px 0;background:var(--panel-border)}#ui .actionbar .action{position:relative;width:100%;aspect-ratio:1;min-width:0;display:grid;justify-items:center;align-content:center;gap:4px;padding:6px 3px;border-radius:12px;border:1px solid rgba(255,255,255,.07);background:#ffffff0d;color:var(--text);font-size:11.5px;font-weight:600;line-height:1.1;text-align:center;user-select:none;-webkit-user-select:none;transition:background .12s,border-color .12s}#ui .actionbar .action:hover:not(:disabled){background:#ffffff1c;filter:none}#ui .actionbar .action:focus-visible{outline:2px solid var(--accent);outline-offset:1px}#ui .actionbar .action[aria-pressed=true],#ui .actionbar .action[aria-expanded=true]{border-color:var(--accent);background:#4f7cff47}#ui .actionbar .action.empty{background:transparent;border:1px dashed rgba(140,170,255,.14);cursor:default}#ui .actionbar .action.soon{cursor:not-allowed;background:#ffffff06}#ui .actionbar .action.soon .icon,#ui .actionbar .action.soon .label,#ui .actionbar .action.soon .sub{opacity:.42;filter:grayscale(.6)}#ui .actionbar .action.danger{border-color:var(--danger);background:#ff6b6b38;animation:danger-pulse .9s ease-in-out infinite alternate}@keyframes danger-pulse{0%{box-shadow:0 0 #ff6b6b00}to{box-shadow:0 0 0 3px #ff6b6b59}}.action .icon svg{width:calc(var(--slot) * .36);height:calc(var(--slot) * .36);max-width:30px;max-height:30px;display:block}.action .label{max-width:100%;font-size:clamp(8px,calc(var(--slot) * .122),10px);letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action .sub{font-size:10.5px;font-weight:500;color:var(--muted)}#ui .actionbar .action.phoenix-action{gap:2px;padding:3px}#ui .actionbar .action.phoenix-action:disabled{opacity:1}#ui .actionbar .phoenix-action .icon svg{width:calc(var(--slot) * .62);height:calc(var(--slot) * .62);max-width:none;max-height:none}#ui .actionbar .phoenix-action .label{font-weight:800;font-size:clamp(10px,calc(var(--slot) * .15),13px)}#ui .actionbar .phoenix-countdown .label{font-size:clamp(15px,calc(var(--slot) * .24),20px);font-variant-numeric:tabular-nums;letter-spacing:.02em;color:#fff0d8}.action kbd{position:absolute;top:4px;right:4px;margin:0;padding:0 4px;font-size:9.5px;font-weight:500;opacity:.6}.action .soon-tag{position:absolute;top:4px;right:4px;font-size:8.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#ffd479;opacity:.85}.hud .actionbar-menu{position:absolute;background:#0c1226f7;bottom:calc(100% + 14px);padding:8px 10px 10px;border-radius:14px;z-index:2;--tail: 50%;width:max-content;max-width:calc(100vw - 16px)}.actionbar-menu[hidden]{display:none}.actionbar-menu:after{content:"";position:absolute;top:100%;left:calc(var(--tail) - 9px);border:9px solid transparent;border-top-color:var(--panel-border);filter:drop-shadow(0 1px 0 rgba(0,0,0,.2))}.actionbar-menu .menu-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 2px 7px}.actionbar-menu .menu-grid{display:grid;grid-template-columns:repeat(var(--cols, 4),88px);gap:6px;max-height:46vh;overflow-y:auto}#ui .actionbar-menu .action{aspect-ratio:auto;min-height:82px}.actionbar-menu .action .label{white-space:normal;font-size:11.5px}.build-hint.behind-menu{visibility:hidden}.actionbar-ctx{align-self:flex-end;margin-right:8px;display:flex;align-items:baseline;gap:8px;padding:5px 12px;border-radius:10px;background:var(--panel);border:1px solid var(--panel-border);backdrop-filter:blur(8px);font-size:13px;max-width:calc(4 * var(--slot) + 30px)}.actionbar-ctx[hidden]{display:none}.actionbar-ctx .kind{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.actionbar-ctx strong{white-space:nowrap}.actionbar-ctx .sub{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.build-hint{display:flex;align-items:center;gap:10px;max-width:100%;padding:7px 8px 7px 12px;border-radius:12px;background:var(--panel);border:1px solid var(--panel-border);backdrop-filter:blur(8px);font-size:13.5px;line-height:1.3}.build-hint[hidden],.build-hint button[hidden]{display:none}.build-hint .state{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--muted)}.build-hint[data-valid=true] .state{background:var(--accent-2);box-shadow:0 0 8px var(--accent-2)}.build-hint[data-valid=false] .state{background:var(--danger);box-shadow:0 0 8px var(--danger)}.build-hint .text{flex:1 1 auto;min-width:0}.build-hint button{flex:0 0 auto}#ui .build-hint button.confirm{background:var(--accent-2);color:#062012}.help{bottom:168px}.hud.building .help{display:none}#toast{position:fixed;top:20px;left:50%;transform:translate(-50%,-80px);background:var(--panel);border:1px solid var(--panel-border);padding:10px 18px;border-radius:10px;transition:transform .25s;z-index:10}#toast.show{transform:translate(-50%)}#toast.error{border-color:var(--danger)}@media(max-width:800px){.auth{justify-content:center;flex-direction:column;background:#03061299}.brand{flex:none;margin:0;text-align:center}.help{display:none}.actionbar-track{gap:4px}.actionbar-wrap{bottom:max(10px,env(safe-area-inset-bottom));--slot: min(76px, calc((100vw - 20px - 12px - 7 * 4px - 1px) / 7))}#ui .actionbar .action{font-size:9.5px;padding:4px 2px;gap:2px;border-radius:10px}.action kbd{display:none}.action .soon-tag{font-size:7px;top:2px;right:3px}.actionbar-menu .menu-grid{grid-template-columns:repeat(min(var(--cols, 3),3),minmax(78px,1fr))}.actionbar-ctx{align-self:stretch;margin-right:0;max-width:none}.build-hint{font-size:13px;flex-wrap:wrap}.build-hint .text{flex-basis:calc(100% - 30px)}.build-hint button{flex:1 1 auto}.hud .panel{padding:8px 10px;font-size:13px}.top-left{top:10px;left:10px;min-width:0;max-width:40%}.players{max-height:26vh;overflow:auto}.players li.away{display:none}.top-right{top:10px;right:10px;max-width:56%;flex-wrap:wrap;justify-content:flex-end;gap:4px 10px}.top-right .ping,.top-right .me{display:none}.bottom-left{left:10px;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 112px);min-width:0}.team .unit{padding:5px 8px}.hud.building .bottom-left{display:none}}#loading{position:fixed;left:50%;bottom:70px;transform:translate(-50%);background:var(--panel);border:1px solid var(--panel-border);padding:10px 18px;border-radius:10px;opacity:0;transition:opacity .3s;pointer-events:none}#loading.show{opacity:1}#loading.show:before{content:"";display:inline-block;width:12px;height:12px;margin-right:10px;border:2px solid var(--accent);border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}.clock{font-variant-numeric:tabular-nums;color:#d7def5}.team-setup{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,calc(100% - 32px));max-height:calc(100% - 32px);overflow-y:auto;padding:24px 28px;display:flex;flex-direction:column;gap:14px;background:#0a1022db;border:1px solid var(--panel-border);border-radius:18px;backdrop-filter:blur(8px);box-shadow:0 24px 60px #00000073}.team-setup>*{flex-shrink:0}.team-setup h2{margin:0;font-size:28px;letter-spacing:-.3px}.team-intro{margin:0;color:var(--muted);max-width:62ch;line-height:1.5}.team-stage{position:relative;height:clamp(220px,38vh,340px);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#a9c9ea,#d7e6ee 55%,#c6d9b4)}.team-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.team-cards{display:grid;grid-template-columns:repeat(var(--n, 3),minmax(0,300px));justify-content:center;gap:12px}.team-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 10px 14px;border-radius:12px;background:#ffffff0d;border:1px solid rgba(140,170,255,.12);text-align:center}.team-card h3{margin:0 0 2px;font-size:20px}.team-card p{margin:0;font-size:14px;font-variant-numeric:tabular-nums}.team-card .mood{margin-top:6px;padding:2px 10px;border-radius:999px;background:#7fffb024;color:var(--accent-2);font-size:13px;font-weight:600}.team-card.locked{border-color:#ffd35ab3;box-shadow:inset 0 0 0 1px #ffd35a59}.team-card .lock{position:absolute;top:6px;right:6px;width:36px;height:36px;padding:7px;border-radius:10px;border:1px solid rgba(140,170,255,.2);background:#ffffff0a;color:var(--muted);cursor:pointer}.team-card .lock svg{width:100%;height:100%;display:block}.team-card .lock:hover:not(:disabled){color:var(--text);background:#ffffff1a}.team-card .lock[aria-pressed=true]{color:#ffd35a;border-color:#ffd35a99;background:#ffd35a1f}.team-card .lock:disabled{opacity:.35;cursor:not-allowed}.skills{list-style:none;margin:10px 0 0;padding:0;width:100%;display:grid;gap:5px;text-align:left}.skill{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "bar bar";align-items:end;column-gap:8px;row-gap:3px;font-size:12.5px;color:#aeb6d0}.skill .label{grid-area:label;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skill .value{grid-area:value}.skill>.segs{grid-area:bar;display:flex;padding:0 4px 0 5px}.skill>.segs .seg{flex:1 1 0;width:auto;height:9px}.skill.has-passion .label{color:var(--text);font-weight:600}.skill .value{text-align:right;font-weight:700;color:#5ee6c8;font-variant-numeric:tabular-nums}.skill .value.zero{color:#6c7592;font-weight:600}.segs{display:inline-flex;gap:3px;padding:0 3px;vertical-align:middle}.seg{width:8px;height:13px;transform:skew(-22deg);border-radius:1.5px;background:linear-gradient(90deg,#5ee6c8 var(--part, 0%),rgba(255,255,255,.13) var(--part, 0%))}.seg.on{background:#5ee6c8}.seg.passion{outline:2px solid #39ff4f;outline-offset:1px;box-shadow:0 0 6px #39ff4fbf}.team-legend{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.team-legend svg{width:15px;height:15px;vertical-align:-2px;color:#ffd35a}.team-legend .segs{margin-right:2px}.team-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}button.big{min-height:48px;padding:0 22px;font-size:16px}@media(max-width:900px){.team-cards{grid-template-columns:repeat(2,minmax(0,300px))}.team-cards[data-n="1"]{grid-template-columns:minmax(0,300px)}}.team-compare{display:none}@media(max-width:560px){.team-cards,.team-cards[data-n="1"]{display:none}.team-compare{display:block;overflow-x:auto;margin:0 -4px}.team-compare table{width:100%;border-collapse:separate;border-spacing:3px 0;table-layout:fixed}.team-compare th,.team-compare td{padding:3px 2px}.team-compare .corner{width:74px}.team-compare thead th.who{vertical-align:top;text-align:center;padding:6px 2px 8px;border-radius:10px 10px 0 0;background:#ffffff0d;position:relative}.team-compare thead th.who.locked{background:#ffd35a1a;box-shadow:inset 0 2px #ffd35ab3}.team-compare .who .name{display:block;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-compare .who .sub{display:block;font-size:11px;font-weight:500;color:var(--muted)}.team-compare .who .mood{display:block;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px auto 5px;padding:0 5px;border-radius:999px;background:#7fffb024;color:var(--accent-2);font-size:10.5px;font-weight:600}.team-compare .who .lock{display:block;margin:0 auto;width:32px;height:32px;padding:6px;border-radius:9px;border:1px solid rgba(140,170,255,.2);background:#ffffff0a;color:var(--muted)}.team-compare .who .lock svg{width:100%;height:100%;display:block}.team-compare .who .lock[aria-pressed=true]{color:#ffd35a;border-color:#ffd35a99;background:#ffd35a1f}.team-compare .who .lock:disabled{opacity:.35}.team-compare tbody th{text-align:left;font-size:11.5px;font-weight:500;color:#aeb6d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-compare tbody tr.has-passion th{color:var(--text);font-weight:600}.team-compare tbody td{background:#ffffff0d;text-align:center}.team-compare tbody tr:last-child td{border-radius:0 0 10px 10px;padding-bottom:6px}.team-compare .segs.mini{display:flex;gap:1.5px;padding:0 2px}.team-compare .segs.mini .seg{flex:1 1 0;width:auto;height:8px;transform:skew(-18deg)}.team-compare .segs.mini .seg.passion{outline-width:1.5px;outline-offset:.5px;box-shadow:0 0 4px #39ff4fb3}.team-intro{font-size:13px;line-height:1.4}.team-stage{height:clamp(150px,24vh,210px)}.team-legend{font-size:12px;line-height:1.6}.team-setup{padding:18px 16px}.team-card h3{font-size:17px}.team-card p{font-size:12px}.team-actions button{flex:1 1 auto}}.debug-stats{padding:4px 10px;border-radius:8px;background:#0009;color:#cfe;font:12px/1.4 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.debug-stats.warn{color:#ffb4a8}.debug-panel{position:fixed;top:calc(76px + env(safe-area-inset-top));left:12px;z-index:1000;width:min(410px,calc(100vw - 24px));background:#111e;color:#fff;border:1px solid #64748b;border-radius:10px;font-size:12px}.debug-panel>summary{cursor:pointer;padding:8px 12px;font-weight:600}.debug-panel:not([open]){width:auto}.debug-content{display:grid;gap:8px;padding:0 10px 10px;max-height:calc(100dvh - 300px);overflow:auto;overscroll-behavior:contain}.debug-content label{display:flex;align-items:center;gap:6px;padding:3px 0}.debug-content input{flex:none}.debug-content select{min-width:0;max-width:100%}.colony{position:absolute;top:72px;right:16px;bottom:24px;width:min(780px,calc(100% - 32px));display:flex;flex-direction:column;background:#0a1022e6;border:1px solid var(--panel-border);border-radius:16px;backdrop-filter:blur(10px);box-shadow:0 20px 50px #00000073;z-index:20;overflow:hidden}.colony-head{display:flex;align-items:center;gap:14px;padding:14px 16px 10px;border-bottom:1px solid var(--panel-border);flex-wrap:wrap}.colony-head h2{margin:0;font-size:20px}.colony-head .close{margin-left:auto;min-width:36px}.colony-tabs{display:flex;gap:4px;background:#ffffff0d;padding:3px;border-radius:10px}.colony-tabs .tab{border:0;background:transparent;color:var(--muted);padding:6px 12px;border-radius:8px;font-weight:600;cursor:pointer;min-height:32px}.colony-tabs .tab[aria-selected=true]{background:var(--accent);color:#fff}.colony-body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.colony-body .empty{padding:20px}.colony-people{flex:1;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr)}.colony-list{list-style:none;margin:0;padding:8px;overflow-y:auto;border-right:1px solid var(--panel-border);display:grid;align-content:start;gap:4px}.colony .who{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-areas:"dot name" "dot act" "dot mood";column-gap:8px;row-gap:2px;text-align:left;padding:8px 10px;border-radius:10px;border:1px solid transparent;background:#ffffff08;color:var(--text);cursor:pointer}.colony .who[aria-pressed=true]{border-color:#7fa8ff99;background:#4f7cff24}.colony .who .who-dot{grid-area:dot;align-self:start;margin-top:3px}.colony .who-name{grid-area:name;font-weight:700}.colony .who-act{grid-area:act;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.colony .mini-mood{grid-area:mood;height:4px;border-radius:3px;background:#ffffff1a;overflow:hidden;margin-top:3px}.colony .mini-mood .fill{display:block;height:100%}.who-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:#888;box-shadow:0 0 0 2px #ffffff26;flex:none}.colony-detail-box{min-height:0;display:flex;flex-direction:column}.colony-detail{flex:1;min-height:0;overflow-y:auto;padding:14px 18px 20px;display:flex;flex-direction:column;gap:16px}.detail-head{display:flex;align-items:center;gap:12px}.detail-head .who-dot{width:22px;height:22px}.detail-head>div{flex:1;min-width:0}.detail-name{margin:0;font-size:22px}.detail-head p{margin:2px 0 0;font-size:13px}.sheet h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.meter{display:grid;grid-template-columns:100px minmax(0,1fr) 46px;align-items:center;gap:10px;font-size:13px;margin-bottom:6px}.meter .bar{height:8px;border-radius:5px;background:#ffffff17;overflow:hidden}.meter .fill{display:block;height:100%;border-radius:5px}.meter-value{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.notes{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:3px;font-size:13px}.notes li{display:flex;justify-content:space-between;gap:10px;padding:3px 8px;border-radius:6px;background:#ffffff08}.notes li.good b{color:#4fd1a5}.notes li.bad b{color:#ff8a8a}.rels{list-style:none;margin:0;padding:0;display:grid;gap:5px}.rels li{display:grid;grid-template-columns:minmax(70px,1fr) auto minmax(80px,1.3fr) 38px 46px auto;align-items:center;gap:8px;font-size:13px}.rels li.muted{display:block}.rel-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}.chip.good{background:#4fd1a529;color:#6ee0b6}.chip.bad{background:#ff6b6b29;color:#ff9a9a}.chip.love{background:#ff80be2e;color:#ff9fcf}.chip.neutral{background:#ffffff14;color:var(--muted)}.op-bar{position:relative;height:8px;border-radius:5px;background:#ffffff14}.op-bar:after{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:#ffffff59}.op-fill{position:absolute;top:0;bottom:0;border-radius:5px}.rel-val{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.rel-back{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.rel-rom{font-size:12px;color:#ff9fcf;white-space:nowrap}.matrix-wrap{overflow:auto;padding:14px 16px 6px}.matrix{border-collapse:separate;border-spacing:4px;font-size:13px}.matrix th{font-weight:600;white-space:nowrap;padding:4px 6px;text-align:left}.matrix thead th{text-align:center;vertical-align:bottom}.matrix th .who-dot{margin-right:6px;vertical-align:-1px}.matrix .corner{color:var(--muted);font-size:11.5px;font-weight:500}.matrix td{min-width:86px;height:56px;border-radius:10px;text-align:center;vertical-align:middle;position:relative;padding:4px}.matrix td.self{background:#ffffff08;color:var(--muted)}.cell-val{display:block;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums}.cell-st{display:block;font-size:11px;opacity:.85}.cell-heart{position:absolute;top:3px;right:6px;color:#ffb3d9;font-size:12px}.colony .legend{padding:0 18px 14px;font-size:12.5px}.journal{list-style:none;margin:0;padding:12px 16px;overflow-y:auto;display:grid;gap:6px;align-content:start}.journal li{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;padding:8px 10px;border-radius:10px;background:#ffffff0a;border-left:3px solid rgba(255,255,255,.15);font-size:13.5px}.journal li.good{border-left-color:#4fd1a5}.journal li.bad{border-left-color:#ff6b6b}.journal li.love{border-left-color:#ff8fc7}.journal .when{color:var(--muted);font-size:12px}@media(max-width:720px){.colony{inset:8px;width:auto}.colony-head{gap:8px 12px}.colony-head h2{order:0}.colony-head .close{order:1}.colony-tabs{order:2;flex:1 1 100%}.colony-tabs .tab{flex:1;padding:6px 8px}.colony-people{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.colony-list{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid var(--panel-border)}.colony-list li{flex:0 0 150px}.rels li{grid-template-columns:minmax(60px,1fr) auto 38px}.rels .op-bar,.rels .rel-back{display:none}.rels .rel-rom{grid-column:1 / -1}.journal li{grid-template-columns:minmax(0,1fr)}}@media(max-width:520px){.actionbar-track .action .label{display:none}.actionbar-track .action .icon svg{width:24px;height:24px}.actionbar-track .action .soon-tag{font-size:0;width:6px;height:6px;border-radius:50%;background:#ffd479;top:4px;right:4px}}.res-wood{background:#a0703f}.res-stone{background:#9a948e}.res-coal{background:#1d1d22;box-shadow:0 0 0 1px #ffffff40}.res-copper{background:#d0763a}.res-tin{background:#e6cf7c}.res-iron{background:#9a4a30}.hud .team-panel{padding:6px 8px 8px;min-width:200px}.hud .team-panel.collapsed{min-width:0;padding-bottom:6px}#ui .team-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:30px;padding:2px 4px;background:transparent;border:0;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-align:left}#ui .team-toggle:hover{color:var(--text);filter:none}.hud .team-toggle .title{flex:1;margin:0}.team-toggle .count{min-width:20px;padding:0 6px;border-radius:999px;background:#ffffff1a;color:var(--text);font-size:11px;letter-spacing:0;text-align:center;font-variant-numeric:tabular-nums}.team-toggle .count:empty{display:none}.team-toggle .chev{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(2px) rotate(-135deg);transition:transform .15s}.team-panel.collapsed .team-toggle .chev{transform:translateY(-2px) rotate(45deg)}.team-panel .team{margin-top:4px}.team-panel .team[hidden]{display:none}@media(max-width:800px){.hud .team-panel{max-width:62%}.team .unit{gap:8px;font-size:13px}.team .unit .state{max-width:110px;font-size:11px}}.tilt-slider{display:none;position:absolute;right:2px;top:50%;width:44px;height:clamp(150px,34vh,260px);transform:translateY(-50%);touch-action:none;pointer-events:auto!important;outline:none;-webkit-tap-highlight-color:transparent}@media(pointer:coarse){.tilt-slider{display:block}}@media(pointer:coarse)and (max-height:500px){.tilt-slider{top:auto;bottom:14px;height:140px;transform:none}}.tilt-slider .rail{position:absolute;left:50%;top:10px;bottom:10px;width:0}.tilt-slider .tick,.tilt-slider .end{position:absolute;left:0;transform:translate(-50%,-50%);background:#ffffff8c;box-shadow:0 0 0 1px #00000038}.tilt-slider .tick{width:10px;height:1.5px;border-radius:1px}.tilt-slider .tick.minor{width:6px;background:#ffffff61}.tilt-slider .end{width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #0000004d,0 1px 3px #00000059}.tilt-slider .end.top{top:0}.tilt-slider .end.bottom{top:100%}.tilt-slider .knob{position:absolute;left:0;width:16px;height:16px;border-radius:50%;transform:translate(-50%,-50%);background:#ff4b4b;box-shadow:0 0 0 1.5px #ffffffd9,0 1px 5px #00000073;transition:transform .12s}.tilt-slider.active .knob{transform:translate(-50%,-50%) scale(1.25)}.tilt-slider:focus-visible .knob{box-shadow:0 0 0 3px var(--accent, #7fffb0),0 1px 5px #00000073}.storage-options{position:absolute;right:0;bottom:calc(100% + 12px);width:min(360px,calc(100vw - 32px));padding:16px;max-height:min(65vh,560px);overflow-y:auto;pointer-events:auto}.storage-options-head,.storage-options-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}.storage-options-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}.storage-options-list label{display:flex;align-items:center;gap:8px;min-height:42px;cursor:pointer}.storage-options-list input{width:18px;height:18px;accent-color:#dcb876;flex:0 0 auto}.storage-options small{opacity:.7}.planning{position:fixed;z-index:150;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(1080px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:20px;box-sizing:border-box;pointer-events:auto;background:#0c121ef7;border:1px solid #485368;border-radius:16px;box-shadow:0 24px 90px #0009;color:#edf2f7}.planning header{display:flex;align-items:start;justify-content:space-between;gap:16px}.planning h2{margin:0 0 6px;font-size:23px}.planning p{margin:0;color:#b7c4d5;font-size:13px}.planning .planning-help{margin:16px 0 0;max-width:800px}.planning-scroll{overflow:auto;padding-right:110px;overscroll-behavior:contain}.planning table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:770px}.planning thead th{height:150px;vertical-align:bottom;position:relative;text-align:left;font-size:13px;font-weight:500}.planning thead th:not(:first-child) span{position:absolute;bottom:12px;left:23px;transform:rotate(-45deg);transform-origin:left bottom;white-space:nowrap;border-bottom:1px solid #516176;padding-bottom:7px;width:154px}.planning .future{color:#8997ab}.planning .planning-name{position:sticky;left:0;z-index:1;width:166px;background:#101827;text-align:left;padding:10px}.planning tbody .planning-name strong{display:block;font-size:13px;overflow-wrap:anywhere}.planning-mode{display:inline-block;font-size:11px;color:#9eafc3;margin:5px 6px 0 0}.planning td{padding:5px;border-bottom:1px solid #ffffff0e}.planning-cell{display:block;width:100%;min-width:40px;height:45px;border:2px solid var(--passion);border-radius:7px;background:#1b2638;color:#f4f8ff;font-size:19px;font-variant-numeric:tabular-nums;font-weight:600;touch-action:none;user-select:none;-webkit-user-select:none}.planning-cell:hover{background:#2b3b50}.planning-cell:focus-visible{outline:2px solid #e5bb71;outline-offset:2px}.planning footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;font-size:12px;color:#aebed0}.planning footer span{max-width:610px}.planning-tooltip,.planning-wheel{position:fixed;z-index:170;pointer-events:none;background:#080e19;border:1px solid #64758d;box-shadow:0 8px 28px #0008;border-radius:9px;padding:10px 12px;color:#e5eefb}.planning-tooltip{max-width:min(330px,calc(100vw - 40px));font-size:12px}.planning-wheel{width:190px;box-sizing:border-box;text-align:center}.planning-wheel-track>div{height:32px;line-height:32px;color:#8495ab;font-size:19px}.planning-wheel-window{height:96px;overflow:hidden;mask-image:linear-gradient(transparent,#000 25%,#000 75%,transparent)}.planning-wheel .selected{font-size:26px;color:#fff;background:#2a3d53;border-block:1px solid #69849e;border-radius:5px}.planning-wheel small{display:block;font-size:11px;line-height:1.4;color:#adbed2;margin:5px 0}@media(max-width:600px){.planning{padding:12px;max-height:94dvh}.planning .planning-name{width:115px}.planning table{min-width:710px}.planning footer{margin-top:12px}}.hud .resource-bar{top:0;left:0;right:0;display:flex;align-items:center;gap:8px;border-radius:0;border-top:0;padding:calc(3px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 3px max(10px,env(safe-area-inset-left))}.resource-strip{list-style:none;display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;margin:0;padding:0;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#53647c transparent}.resource-strip li{flex:0 0 auto}#ui .resource-counter{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:3px 6px;border:0;background:transparent;box-shadow:none;color:var(--text);white-space:nowrap}#ui .resource-counter:hover{background:#ffffff12}.resource-counter.empty b{color:var(--muted)}.resource-counter b{font-size:13px;font-variant-numeric:tabular-nums}.resource-icon,.resource-icon svg{display:block;width:27px;height:27px;flex-shrink:0}.resource-strip.full{box-shadow:inset 0 -1px var(--danger)}#ui .fullscreen-button{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 9px}.fullscreen-symbol{font-size:26px;line-height:1}.fullscreen-label{font-size:12px}.hud .top-left,.hud .top-right{top:calc(64px + env(safe-area-inset-top))}.fullscreen-help{position:fixed;z-index:200;top:50%;left:50%;transform:translate(-50%,-50%);width:min(480px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:22px;border:1px solid var(--panel-border);border-radius:12px;background:#111a2c;box-shadow:0 16px 80px #000b}.fullscreen-help h2{font-size:18px;margin-top:0}.fullscreen-help p{font-size:14px;line-height:1.5}@media(max-width:800px){.resource-strip{gap:2px}.fullscreen-label{display:none}.hud .top-left,.hud .top-right{top:calc(60px + env(safe-area-inset-top))}}.build-tooltip{position:fixed;z-index:190;width:min(350px,calc(100vw - 16px));max-height:min(520px,calc(100dvh - 80px));overflow-y:auto;overscroll-behavior:contain;pointer-events:none;padding:15px 17px;background:#101827;border:1px solid #607087;border-radius:12px;box-shadow:0 12px 40px #0009;color:#d6e0ed;font-size:12px;line-height:1.45}.build-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.build-tooltip h3{margin:0;font-size:17px;color:#fff}.build-time{color:#d6e0edaa;font-size:10px;white-space:nowrap}.build-tooltip h4{margin:13px 0 6px;color:#aebfd3;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.build-tooltip p{margin:7px 0}.build-tooltip ul{margin:6px 0 0;padding-left:16px}.build-tooltip li+li{margin-top:5px}.build-cost{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid #ffffff12}.build-cost .resource-icon,.build-cost .resource-icon svg{width:24px;height:24px}.build-resource-name{flex:1;color:#d6e0ed}.build-tooltip .build-owned{color:#fff;font-variant-numeric:tabular-nums}.build-missing{color:#ff7878;font-weight:650;font-variant-numeric:tabular-nums}.build-tooltip .build-restriction{color:#ffb98f}.build-tooltip .build-note{color:#a4b4c8;font-size:11px}.build-tooltip{color-scheme:dark;scrollbar-width:thin;scrollbar-color:#607087 transparent}@media(hover:none){.build-tooltip{pointer-events:auto}}.actionbar-menu .item{-webkit-touch-callout:none;user-select:none}.actionbar-menu .item.missing-resources{color:#ff8686;box-shadow:inset 0 0 0 999px #d7192720}.actionbar-menu .item.missing-resources .icon{filter:grayscale(1) sepia(1) saturate(8) hue-rotate(310deg) brightness(1.05)}.actionbar-menu .item.missing-resources .label,.actionbar-menu .item.missing-resources .sub,.actionbar-menu .item.missing-resources kbd{color:#ff8d8d}.earth-panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);backdrop-filter:blur(12px);box-shadow:0 12px 32px #0005;position:absolute;right:16px;bottom:160px;z-index:12;width:min(390px,calc(100vw - 32px));padding:14px;pointer-events:auto;max-height:55vh;overflow:auto;box-sizing:border-box}.earth-panel[hidden]{display:none}.earth-panel p{font-size:12px;line-height:1.5;margin:10px 0}.earth-height{display:flex;align-items:center;gap:7px;margin:8px 0}.earth-height span{flex:1}.earth-height input{width:85px;padding:7px}.earth-height button{min-width:38px;min-height:38px;font-size:19px}.earth-job{border-top:1px solid #ffffff20;margin-top:9px;padding-top:8px;display:flex;align-items:center;gap:6px;font-size:11px}.earth-job span{flex:1}@media(max-width:600px){.earth-panel{bottom:150px;right:8px;width:min(350px,calc(100vw - 16px));padding:10px;max-height:43vh}}.earth-height input{background:#ffffff0d;color:var(--text);border:1px solid var(--panel-border);border-radius:7px;font:inherit}.character-control-mode .hud .top-left,.character-control-mode .hud .top-right,.character-control-mode .team-panel,.character-control-mode .actionbar-wrap,.character-control-mode .tilt-slider,.character-control-mode .hud .help{display:none!important}.character-controls{position:fixed;inset:0;z-index:40;pointer-events:none}.character-controls button{pointer-events:auto;touch-action:manipulation}.character-control-exit{position:absolute;right:16px;top:90px;background:#101926b8;border:1px solid #ffffff40;border-radius:14px;padding:12px 16px;color:#fff}.character-control-help{position:absolute;bottom:24px;left:50%;transform:translate(-50%);padding:10px 18px;background:#101926b8;color:#fff;border-radius:14px;white-space:nowrap}.character-joystick{display:none;position:absolute;left:max(24px,env(safe-area-inset-left));bottom:max(30px,env(safe-area-inset-bottom));width:120px;height:120px;border-radius:50%;border:1px solid #ffffff70;background:#10192670;pointer-events:auto;touch-action:none;user-select:none}.character-joystick span{position:absolute;left:38px;top:38px;width:42px;height:42px;border-radius:50%;background:#e0f3ffba;box-shadow:0 2px 14px #0005}.character-jump{display:none;position:absolute;right:max(28px,env(safe-area-inset-right));bottom:max(48px,env(safe-area-inset-bottom));width:70px;height:70px;border-radius:50%;border:1px solid #ffffff70;background:#10192690;color:#fff;font-size:32px}@media(pointer:coarse),(max-width:800px){.character-joystick,.character-jump{display:block}.character-control-help{bottom:174px;max-width:calc(100vw - 32px);white-space:normal;text-align:center;font-size:12px}.character-control-exit{top:86px;right:12px;font-size:13px}}.arrival-screen{position:fixed;inset:0;z-index:250;background:#050c18;color:#edf5fa;font-family:inherit}.arrival-screen canvas{display:block;width:100%;height:100%;touch-action:none}.arrival-top{position:absolute;top:max(20px,env(safe-area-inset-top));left:24px;right:24px;display:flex;align-items:center;gap:18px;pointer-events:none;text-shadow:0 2px 7px #000}.arrival-top strong{color:#ffaf76;letter-spacing:.16em;font-size:12px}.arrival-top span{font-size:13px;opacity:.8}.arrival-top button{margin-left:auto;pointer-events:auto;background:#18242dd9;border:1px solid #71838a;padding:10px 16px}.arrival-dashboard{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(540px,92vw);text-align:center;padding:12px 20px;background:linear-gradient(#14232adb,#08121afa);border:1px solid #53636a;border-radius:12px;box-shadow:0 10px 30px #0008}.arrival-dashboard p{margin:3px 0 9px;font-size:13px}.arrival-start{border-radius:50%;width:88px;height:88px;border:7px solid #474a48;background:radial-gradient(circle at 35% 25%,#86524a,#432e2b);color:#bcb6ac;font-size:19px;font-weight:900;letter-spacing:.08em;box-shadow:0 5px #151e22}.arrival-start.ready{background:radial-gradient(circle at 35% 25%,#ffbb62,#e24d24 65%,#a32a18);color:#fff7dd;box-shadow:0 0 24px #ed843a9c,0 5px #5c2921;cursor:pointer;animation:arrival-pulse 2s ease-in-out infinite}@keyframes arrival-pulse{50%{box-shadow:0 0 40px #ed843ac4,0 5px #5c2921}}.arrival-colony-label{position:absolute;transform:translate(-50%,-140%);border:1px solid;border-radius:5px;padding:5px 10px;background:#101e2bec;pointer-events:none;font-size:12px}.arrival-colony-label[hidden]{display:none}.colony-name-dialog{background:#152333;color:#f0f5ff;border:1px solid #667e90;border-radius:16px;max-width:90vw;padding:24px}.colony-name-dialog::backdrop{background:#06101bc9}.colony-name-dialog form{display:grid;gap:16px}.colony-name-dialog input{padding:12px}@media(max-width:600px){.arrival-top{left:12px;right:12px;flex-wrap:wrap;gap:8px}.arrival-top span{order:3;width:100%}.arrival-top strong{font-size:10px}.arrival-top button{font-size:12px;padding:8px}.arrival-dashboard{bottom:12px;padding:8px 12px}.arrival-start{width:74px;height:74px}}.arrival-screen.crashing .arrival-top span{display:none}.arrival-screen:not(.crashing):after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px #fb10254a;animation:arrival-alarm-glow 1.25s ease-in-out infinite}@keyframes arrival-alarm-glow{50%{box-shadow:inset 0 0 180px #fa142682}}.arrival-alarm{position:absolute;top:85px;left:50%;transform:translate(-50%);text-align:center;pointer-events:none;text-shadow:0 2px 8px #000;width:90%}.arrival-alarm b{display:block;color:#ff606a;letter-spacing:.12em;font-size:14px}.arrival-alarm span{display:block;color:#d6bac0;font-size:12px;margin-top:7px}.arrival-screen.crashing .arrival-alarm{display:none}.arrival-screen.unsafe .arrival-dashboard{border-color:#e55d69}.arrival-screen.unsafe .arrival-dashboard p:last-of-type{color:#ff8e92}@media(max-width:600px){.arrival-alarm{top:103px}.arrival-alarm b{font-size:11px}.arrival-alarm span{font-size:10px}}@media(prefers-reduced-motion:reduce){.arrival-screen:after,.arrival-start.ready{animation:none}}.arrival-start{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;text-indent:.08em}.arrival-start[hidden]{display:none}.selection-box{position:fixed;pointer-events:none;z-index:90;border:1px solid #b2f8cd;background:#73ebb125}.haul-hint{position:fixed;z-index:150;pointer-events:none;max-width:280px;padding:8px 12px;border:1px solid #7cd9ab;border-radius:8px;background:#101a26ed;color:#fff;font-size:13px;white-space:pre-line}.haul-hint[hidden]{display:none}.team-culture{display:flex;gap:.7rem;align-items:center;justify-content:center;margin:0}.team-culture select{color:inherit;background:#243044;border:1px solid #627086;border-radius:.6rem;padding:.5rem 1rem;font:inherit}.fuel-options-row{display:flex;gap:.65rem;margin:.8rem 0}.fuel-options>small{display:block;white-space:pre-line;opacity:.75}.fuel-choice{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;gap:.25rem;border:2px solid #66d581;border-radius:.7rem;padding:.65rem;touch-action:none;user-select:none}.fuel-choice .resource-icon{width:2.6rem;height:2.6rem}.fuel-priority{position:absolute;top:.2rem;right:.35rem;color:#88efa0}.fuel-choice.disabled-fuel{border-color:#f06b6b}.fuel-choice.disabled-fuel .fuel-priority{color:#f06b6b}.fuel-choice.disabled-fuel:after{content:"";position:absolute;width:3rem;height:3px;top:1.9rem;background:#ff5353;transform:rotate(-40deg);pointer-events:none}.production-options{width:min(620px,calc(100vw - 32px));max-height:65vh;overflow:auto}.production-order{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0;padding:10px;border:1px solid #ffffff25;border-radius:8px}.production-order label{display:flex;flex-direction:column;font-size:12px;gap:4px}.production-order input{width:85px}.production-order small{width:100%;opacity:.75}.production-options>button{margin:4px}.production-order input,.production-order select{min-height:40px;border:1px solid #ffffff30;border-radius:6px;background:#1b263b;color:#edf2ff;padding:8px}.production-order select{max-width:100%}.production-order input{box-sizing:border-box}.production-options>small{display:block;opacity:.75}.production-editor{margin:16px 0 22px;padding:16px;border:1px solid #7fa7ff55;border-radius:10px;background:#648aff12}.production-options h3{margin:0 0 8px;font-size:14px}.production-editor>small{display:block;opacity:.7;margin-bottom:12px}.production-form{display:flex;flex-wrap:wrap;gap:10px}.production-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}.production-form label:first-child{flex:1;min-width:170px}.production-form input,.production-form select{min-height:42px;box-sizing:border-box;border:1px solid #ffffff30;border-radius:6px;background:#1b263b;color:#edf2ff;padding:8px;font:inherit}.production-form input{width:85px}.production-form input:disabled{opacity:.35}.production-form-actions{display:flex;gap:8px;flex-basis:100%;margin-top:4px}.production-list{border-top:1px solid #ffffff20;padding-top:16px}.production-list .production-order{align-items:center;padding:12px;margin:10px 0}.production-priority{border-radius:5px;background:#668eff25;padding:5px 8px;font-size:12px;color:#b9ceff}.production-order strong{font-size:14px}.production-order-actions{display:flex;flex-wrap:wrap;gap:6px;width:100%}.production-order-actions button{min-height:38px;padding:7px 10px;font-size:12px}.production-order-actions .production-delete{color:#ffaca5}.production-empty{opacity:.6;font-size:13px}.production-editor.is-editing,.production-order.is-editing{border-color:#e7bd69;background:#e7bd6910}.selected-pile-tooltip{position:fixed;z-index:20;display:flex;align-items:center;gap:.45rem;transform:translate(-50%,-100%);padding:.35rem .65rem;border:1px solid #9bbdaa80;border-radius:.55rem;background:#101c24e8;color:#fff;box-shadow:0 2px 10px #0007;font-size:.85rem;white-space:nowrap;pointer-events:none}.selected-pile-tooltip[hidden]{display:none}.selected-pile-tooltip .resource-icon{width:1.6rem;height:1.6rem}.selected-pile-tooltip strong{margin-left:.25rem;font-variant-numeric:tabular-nums}.colony-notifications{position:absolute;right:76px;bottom:170px;z-index:25;width:min(390px,42vw);display:flex;flex-direction:column;gap:7px;pointer-events:none}.colony-notification{color:#e2e7ed;font-size:13px;line-height:1.45;text-shadow:0 1px 3px #000,0 0 7px #000;padding:3px 8px;border-radius:5px;background:linear-gradient(90deg,#10182380,#10182300);animation:colony-notice-in .25s ease-out;overflow-wrap:anywhere}.colony-notification strong{font-weight:750;color:#eccd87}.colony-notification.love strong{color:#ffa8d1}.colony-notification.good strong{color:#a9edaa}.colony-notification.bad strong{color:#ffa39d}@keyframes colony-notice-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:700px){.colony-notifications{right:60px;bottom:185px;width:min(330px,72vw);gap:4px}.colony-notification{font-size:12px}}@media(prefers-reduced-motion:reduce){.colony-notification{animation:none}}.build-categories{display:flex;gap:3px;max-width:min(464px,calc(100vw - 40px));overflow-x:auto;padding:0 0 7px;margin-bottom:5px;border-bottom:1px solid #ffffff12;scrollbar-width:thin}#ui .build-categories button{flex:0 0 auto;min-height:26px;padding:3px 9px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);font-size:11px;line-height:18px;white-space:nowrap;cursor:pointer}#ui .build-categories button:hover{color:#f3e7ce;background:#ffffff09}#ui .build-categories button[aria-pressed=true]{color:#f1cf88;border-color:#e0b25a40;background:#e0b25a13}#ui .build-categories button:focus-visible{outline:2px solid #e0b25a;outline-offset:-2px}@media(pointer:coarse){#ui .build-categories button{min-height:32px;padding-block:6px}}.actionbar-menu.construction-menu .menu-grid{grid-auto-rows:112px;align-content:start;height:min(46vh,calc(var(--build-rows) * 118px - 6px))}@media(max-width:800px){.actionbar-menu.construction-menu .menu-grid{height:min(46vh,calc(var(--build-mobile-rows) * 118px - 6px));grid-template-columns:repeat(3,minmax(78px,1fr))}}.equipment-panel{position:fixed;z-index:90;right:16px;top:85px;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 180px);overflow:auto;padding:20px;pointer-events:auto;box-shadow:0 16px 60px #0009}.equipment-close{float:right}.equipment-panel h2{font-size:20px;margin:0 0 12px}.equipment-panel small{display:block;opacity:.75;font-size:12px;margin:5px 0}.equipment-panel select{max-width:100%;margin:8px 0}.equipment-cargo{padding:12px;background:#ffffff08;margin:10px 0;border-radius:8px}.equipment-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.equipment-slot{min-height:100px;text-align:left}.equipment-slot.selected{outline:2px solid #f4c778}.gear-card{border-left:3px solid;padding:6px;display:flex;flex-direction:column;gap:4px}.gear-card span{font-size:13px}.equipment-recipes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.equipment-recipes article{background:#ffffff08;padding:10px;border-radius:8px}.equipment-order{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #ffffff15}.equipment-order button{flex-shrink:0}.equipment-panel{background:#0f1724f7;border:1px solid #344156;border-radius:14px;color:#eef1f6}.equipment-panel .equipment-slot{background:#202c3e;border:1px solid #455269;border-radius:9px;color:#eef1f6;padding:10px}.equipment-panel .equipment-slot:hover{background:#2a3a50}.equipment-panel select{background:#202c3e;color:#eef1f6;border:1px solid #455269;border-radius:6px;padding:8px}.equipment-panel .gear-card small{opacity:.9}.equipment-panel .equipment-close{background:#29394f}.equipment-panel button{font-weight:500}.equipment-panel .equipment-slot small:first-child{text-transform:uppercase;letter-spacing:.06em}.equipment-slots{--slot-gap:4px;--slot-size:44px;display:flex;flex-direction:column;gap:14px;margin:14px 0}.equipment-equipped{display:flex;justify-content:space-between;gap:var(--slot-gap)}.equipment-equipped .equipment-slot{width:var(--slot-size);flex:0 0 var(--slot-size)}.equipment-bag{display:grid;grid-template-columns:repeat(auto-fill,var(--slot-size));grid-auto-rows:var(--slot-size);gap:var(--slot-gap);max-height:min(320px,45dvh);overflow-y:auto;padding:2px;scrollbar-width:thin;align-content:start}.equipment-panel .equipment-slot{aspect-ratio:1;min-height:0;min-width:0;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;overflow:hidden}.equipment-slot-label{font-size:11px;opacity:.65;line-height:1.2}.equipment-slot-icon{font-size:clamp(22px,4vw,32px);line-height:1.1}.equipment-slot-name{font-size:clamp(10px,2.6vw,13px);line-height:1.15;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.equipment-slot-rarity{font-size:clamp(10px,2.4vw,12px);line-height:1.1}.equipment-details:empty{display:none}.equipment-details{margin:10px 0;background:#ffffff06;border-radius:8px}@media(max-width:420px){.equipment-panel{padding:14px}.equipment-panel .equipment-slot{padding:4px;gap:2px}.equipment-slots{--slot-gap:4px}.equipment-slot-icon{font-size:22px}}.equipment-slot .equipment-slot-label,.equipment-slot .equipment-slot-name,.equipment-slot .equipment-slot-rarity{display:none}.equipment-panel .equipment-slot{border-radius:6px;padding:4px}.equipment-slot .equipment-slot-icon{font-size:25px}.birth-dialog{margin:auto;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:#141d30;color:#edf2ff;border:1px solid #72958e;border-radius:20px;padding:26px;box-shadow:0 18px 80px #0009}.birth-dialog::backdrop{background:#050a146b}.birth-dialog h2{color:#a1e8bf;margin:0 0 16px}.birth-dialog label{display:grid;gap:8px;margin:18px 0}.birth-dialog input,.birth-dialog select{box-sizing:border-box;width:100%;padding:12px;font:inherit;color:inherit;background:#0a1222;border:1px solid #61748e;border-radius:8px}.birth-dialog form>div{display:flex;flex-wrap:wrap;gap:12px}.birth-dialog [role=alert]{color:#ffc0a7;font-size:13px}.barrier-cost{position:fixed;z-index:1000;pointer-events:none;display:flex;align-items:center;gap:7px;padding:5px 9px;border-radius:7px;background:#111b28e8;color:#fff;font-size:14px;white-space:nowrap}.barrier-cost .resource-icon{width:25px;height:25px}.barrier-cost.missing{color:#ff6363}.barrier-cost.missing .resource-icon{filter:sepia(1) saturate(8) hue-rotate(320deg)}.selected-pile-tooltip.site-tooltip{display:flex;flex-direction:column;gap:7px;align-items:stretch;min-width:215px;padding:12px 14px;font-size:13px}.site-tooltip>span{opacity:.8;font-size:12px}.site-material{display:flex;gap:8px;align-items:center}.site-material>strong{margin-left:auto}.site-material svg{width:25px;height:25px}.site-tooltip progress{width:100%;height:7px;accent-color:#8bd5a1}.selected-pile-tooltip.site-tooltip[hidden]{display:none}.sector-toggle{position:fixed;right:16px;bottom:115px;z-index:20;padding:8px 12px;border-radius:10px;background:#142235dd;color:#dff2ef;border:1px solid #758d9b}.sector-toggle.active{border-color:#9feac4}.sector-panel{position:fixed;right:16px;bottom:160px;width:min(350px,90vw);max-height:65vh;overflow:auto;z-index:40;padding:16px;background:#142235f5;display:flex;flex-direction:column;gap:10px}.sector-panel[hidden]{display:none}.sector-panel label,.sector-unit{display:flex;flex-direction:column;gap:5px}.sector-panel input,.sector-panel select,.sector-panel button{padding:7px;max-width:100%}.sector-unit{border-top:1px solid #ffffff22;padding-top:8px}.earth-gizmo{position:fixed;z-index:25;padding:8px;max-width:min(310px,calc(100vw - 16px));background:#121c2be8;border:1px solid #b1d2e944;border-radius:10px;pointer-events:auto;color:#edf5ff}.earth-gizmo[hidden],.earth-cost[hidden]{display:none}.earth-gizmo strong{display:block;font-size:12px;opacity:.8;margin-bottom:5px}.earth-gizmo p{font-size:12px;margin:6px 0}.earth-gizmo-actions{display:flex;gap:7px}.earth-gizmo-actions button{min-width:85px;min-height:36px}.earth-arrow-handle{position:fixed;display:flex;flex-direction:column;align-items:center;width:72px;pointer-events:auto;color:#fff;text-shadow:0 1px 3px #000}.earth-arrow-handle button{width:48px;min-height:42px;padding:0;font-size:30px;line-height:38px;background:#163d4cd9;border:1px solid #9ff5eab0;border-radius:8px;color:#b8fff0;cursor:ns-resize;touch-action:none;user-select:none}.earth-arrow-handle output{background:#101a26cc;border-radius:4px;padding:2px 6px;font-size:12px}.earth-arrow-handle small{font-size:11px}.earth-ramp-guides{position:fixed;inset:0;width:100vw;height:100vh;overflow:hidden;pointer-events:none;z-index:-1}.earth-ramp-guides path{fill:none;stroke-width:7px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #000c)}.earth-ramp-handle button{color:var(--earth-handle-color);border-color:var(--earth-handle-color)}.earth-ramp-handle small{color:var(--earth-handle-color);font-weight:700;font-size:13px}.earth-cost{pointer-events:none;z-index:60;white-space:nowrap}.earth-corner{position:fixed;width:32px;height:32px;min-height:32px;padding:0;line-height:30px;font-size:18px;background:#153b45df;color:#b8fff0;border:1px solid #a6ffe2;border-radius:6px;cursor:move;touch-action:none;user-select:none}#ui .actionbar .action.state-tone{color:var(--state-tone)}#ui .actionbar .action.state-tone[aria-pressed=true]{border-color:var(--state-tone);background:color-mix(in srgb,var(--state-tone) 24%,#15202a)}.colony .who-portrait{display:inline-flex;width:48px;height:48px;flex:none;align-items:center;justify-content:center;overflow:hidden;border-radius:9px;background:#263345}.colony .who-portrait img{display:block;width:100%;height:100%;object-fit:contain}.colony .who .who-portrait{grid-area:dot;align-self:center}.colony .detail-head .who-portrait{width:64px;height:64px}.colony .matrix .who-portrait{width:32px;height:32px;vertical-align:middle;margin-right:6px}.debug-combat{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.combat-feedback{position:fixed;inset:0;pointer-events:none;z-index:25;overflow:hidden}.combat-health{position:absolute;top:0;left:0;width:48px;height:5px;background:#161b20dc;border:1px solid #000b;border-radius:3px;overflow:hidden}.combat-health-fill{width:100%;height:100%;background:#79d983;transform-origin:left}.combat-damage{position:absolute;top:0;left:0;font:500 18px/1.1 system-ui,sans-serif;text-shadow:0 1px 3px #000,1px 0 2px #000;white-space:nowrap}.combat-damage.critical{font-size:27px;font-weight:800}.threat-setting{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0}.threat-setting select{color:#e4e9f5;background:#192238;border:1px solid #354563;border-radius:6px;padding:6px 10px;font:inherit}.threat-setting select:disabled{opacity:.65}.threat-setting small{width:100%;color:#929db4}.planning-cell.activity-forbidden{background:#372d31;color:#d9a6a6;box-shadow:none}.actionbar-menu .item .building-thumbnail{height:52px;display:flex;align-items:center;justify-content:center}.actionbar-menu .item .building-thumbnail img{display:block;width:64px;height:64px;object-fit:contain;pointer-events:none}.actionbar-menu .item.missing-resources .building-thumbnail{filter:none}.plant-meter{display:grid;grid-template-columns:70px minmax(90px,1fr) 38px;align-items:center;gap:8px;font-size:12px}.plant-meter-track{height:9px;border-radius:4px;overflow:hidden;background:#050b10;box-shadow:inset 0 0 0 1px #ffffff25}.plant-meter-fill{height:100%;border-radius:4px;transition:width .3s,background-color .3s}.plant-meter-value{text-align:right;font-variant-numeric:tabular-nums;color:#d8e1e7}.pile-freshness{min-width:145px;font-size:12px}.pile-freshness .food-freshness{margin-top:5px}.team-group{display:flex;flex-direction:column;gap:3px;border-top:1px solid #ffffff18;padding:5px 0}.team-group-members:not([hidden]){display:flex;flex-direction:column;gap:3px}.team-group-head{display:flex;justify-content:space-between;align-items:center}.team-group-head button{padding:3px 6px;font-size:12px}.team-group-head button:first-child{flex:1;text-align:left;color:#eacb85}.expedition-status{max-width:245px;padding:4px 7px;font-size:11px;color:#bfc7c2}.expedition-create{margin-top:6px;font-size:12px}.expedition-dialog{position:fixed;inset:0;margin:auto;width:min(560px,94vw);max-height:90dvh;overflow:auto;padding:20px;background:#222925;color:#eee;border:1px solid #a99560;border-radius:12px;z-index:1000}.expedition-dialog::backdrop{background:#0008}.expedition-dialog header,.expedition-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:14px}.expedition-dialog h2{margin:0 0 10px;font-size:22px}.expedition-dialog label{display:flex;gap:8px;align-items:center;margin:9px 0}.expedition-dialog fieldset{border:1px solid #ffffff30;margin:16px 0;padding:8px 12px}.expedition-dialog fieldset label span{flex:1}.expedition-dialog input[type=number]{width:68px}.expedition-dialog input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#d9b465}.expedition-dialog input{background:#1119;color:#eee;border:1px solid #ffffff40;padding:7px;border-radius:4px}.expedition-dialog .muted{font-size:12px;line-height:1.5}.expedition-members{max-height:210px;overflow-y:auto}.team-panel .team{max-height:55dvh;overflow-y:auto}.expedition-dialog h3{font-size:16px;margin:12px 0 8px}.expedition-dialog fieldset{margin:12px 0}.expedition-dialog label{margin:6px 0}.expedition-dialog p{margin:10px 0}.expedition-food-row{display:flex;gap:8px;align-items:center;margin:8px 0}.expedition-food-row select{min-width:0;flex:1;background:#17201b;color:#eee;padding:8px;border:1px solid #ffffff40;border-radius:4px}.expedition-food-row button{font-size:20px}
/*# sourceMappingURL=app-LA2FMFU5.css.map */
