:root{color-scheme:dark;--bg: #0a0e1a;--panel: #131a2c;--panel-2: #1b2440;--line: #2a3557;--text: #e8ebf4;--muted: #8d96ad;--accent: #f5b942;--accent-text: #1a1206;--fuel: #5cc8f5;--credits: #f5b942;--dust: #b79bff;--usd: #6ddc95;--item: #7ee8d6;--danger: #ff7a7a;--radius: 14px;--tap: 44px;--sections-h: 60px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4;-webkit-text-size-adjust:100%}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-height:100vh;min-height:100dvh;color:var(--text)}.shell{position:fixed;inset:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}.shell-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.starfield{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at top,#1a2140 0%,var(--bg) 60%)}.star-plane{position:absolute;inset:0;will-change:transform}.star-layer{position:absolute;top:calc(-1 * var(--tile));left:0;right:0;height:calc(100% + 2 * var(--tile));background-size:var(--tile) var(--tile);animation:star-drift var(--drift) linear infinite;will-change:transform}.star-layer.twinkle{animation:star-drift var(--drift) linear infinite,twinkle 4.6s ease-in-out var(--twinkle-delay) infinite}@keyframes star-drift{to{transform:translateY(var(--tile))}}@keyframes twinkle{50%{opacity:.15}}h1,h2,h3,p{margin:0}.screen{max-width:520px;margin:0 auto;padding:12px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}.screen.login{padding-top:calc(12px + env(safe-area-inset-top))}.screen.game{padding-bottom:16px}.topbar{display:flex;align-items:center;gap:8px}.logo{flex:1;display:flex;align-items:center;gap:8px;min-width:0;font-size:1.25rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}.beta-badge{flex:none;padding:1px 5px;border:1px solid currentColor;border-radius:4px;font-size:.6rem;font-weight:600;letter-spacing:.08em;line-height:1.3;color:var(--muted)}@media(max-width:374px){.logo{gap:6px;font-size:.95rem;letter-spacing:.03em}}.lang,input{min-height:var(--tap);padding:0 10px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:10px;font:inherit}.lang-wrap{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:var(--muted)}.screen.login .topbar{flex-wrap:wrap;row-gap:8px}.screen.login .logo{flex:0 0 auto}@media(max-width:439px){.screen.login .lang-wrap svg{display:none}}.muted,.captain{color:var(--muted)}.tagline{display:flex;flex-direction:column;gap:6px;margin:24px 0 8px}.tagline p:first-child{font-size:1.35rem;font-weight:600;line-height:1.25}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap);padding:0 16px;color:var(--text);background:var(--panel-2);border:1px solid var(--line);border-radius:10px;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;touch-action:manipulation}.button:disabled{opacity:.45;cursor:not-allowed}.button.primary{color:var(--accent-text);background:var(--accent);border-color:var(--accent)}.button.big{width:100%;min-height:52px;font-size:1.05rem}.button.ghost{background:transparent}.button.small{min-height:36px;padding:0 10px;font-weight:500}@media(max-width:419px){.button .narrow-hide{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}.button.attention{animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{50%{box-shadow:0 0 0 6px #f5b94233}}.badge{padding:2px 8px;font-size:.75rem;font-weight:500;color:var(--muted);border:1px solid var(--line);border-radius:999px}.refuel{width:100%;border-style:dashed}.tile{display:flex;flex-direction:column;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--tile-color, var(--line));border-radius:12px}.tile .label{font-size:.75rem;color:var(--muted)}.tile strong{font-size:1.3rem;font-variant-numeric:tabular-nums}.tile .sub{font-size:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}.tile.credits{--tile-color: var(--credits)}.tile.fuel{--tile-color: var(--fuel)}.gauge{display:flex;gap:3px;height:8px}.gauge i{flex:1;border-radius:2px;background:linear-gradient(to right,var(--fuel) calc(var(--fill, 0) * 100%),color-mix(in srgb,var(--fuel) 18%,transparent) 0)}.tile.dust{--tile-color: var(--dust)}.tile.usd,.tile.pool{--tile-color: var(--usd)}.card{display:flex;flex-direction:column;gap:12px;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.card h2{font-size:1.1rem}.ship.awaiting_choice{border-color:var(--accent)}.ship-scene,.event-art{flex:none;border-radius:12px;background:linear-gradient(135deg,var(--panel-2),#2c3a66);border:1px solid var(--line)}.ship-scene{--thrust: 1;position:relative;overflow:hidden;height:108px;background:var(--sky) 0 0 / 256px 256px,linear-gradient(135deg,var(--panel-2),#2c3a66)}.ship-scene.idle{--thrust: .65}.pad-platform{position:absolute;left:50%;bottom:10px;width:120px;translate:-50% 0}.pad-mast{position:absolute;bottom:18px;display:flex;flex-direction:column;align-items:center}.pad-mast.left{left:calc(50% - 76px)}.pad-mast.right{left:calc(50% + 62px)}.pad-mast img{display:block;height:58px}.pad-mast .pad-light{width:12px;height:12px;margin-bottom:-3px;animation:pad-light 1.6s steps(1,end) infinite}.pad-mast.right .pad-light{animation-delay:-.8s}@keyframes pad-light{50%{opacity:.25}}.ship-model{position:absolute;z-index:1;left:50%;bottom:26px;transform:translate(-50%)}.ship-model .hull{position:relative;z-index:1;display:block;height:38px}.ship-model .flame{position:absolute;top:calc(100% - 4px);left:50%;translate:-50% 0;transform-origin:50% 0}.flame.outer{width:calc(9px + var(--flame) * 6px);height:calc((18px + var(--flame) * 38px) * var(--thrust));animation:flame-flicker .13s ease-in-out infinite alternate;transition:height .6s ease-out}.flame.core{width:5px;height:calc((9px + var(--flame) * 17px) * var(--thrust));animation:flame-core .09s ease-in-out infinite alternate;transition:height .6s ease-out}.ship-scene[data-flame=orange] .flame{mix-blend-mode:plus-lighter;filter:drop-shadow(0 0 2px #ff8a1c)}@keyframes flame-flicker{0%{scale:1 1;opacity:1}to{scale:.9 .82;opacity:.8}}@keyframes flame-core{0%{scale:1 .85}to{scale:.85 1.05}}.ship-model .pods{position:absolute;top:calc(100% - 9px);display:grid;grid-template-columns:repeat(2,7px);gap:1px}.pods.left{right:calc(50% + 7px);direction:rtl}.pods.right{left:calc(50% + 7px)}.pods img{display:block;width:7px;height:14px}.ship-scene.launching .ship-model{animation:ship-launch 2.4s both}@keyframes ship-launch{0%{translate:0 0;animation-timing-function:ease-in-out}25%{translate:0 3px;animation-timing-function:cubic-bezier(.55,0,.85,.45)}to{translate:0 -250px}}.launch-dialog{cursor:pointer}.launch-stage{position:relative}.launch-stage .ship-scene{height:200px}.launch-count{position:absolute;top:14px;left:0;right:0;text-align:center;font-size:2.6rem;font-weight:700;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums;text-shadow:0 2px 12px #0008;animation:count-pop .3s ease-out both}@keyframes count-pop{0%{scale:1.6;opacity:0}to{scale:1;opacity:1}}.launch-hint{text-align:center}.stamp{display:inline-block;padding:2px 12px;font-size:1.6rem;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--stamp);border:3px solid var(--stamp);border-radius:8px;rotate:-8deg;animation:stamp-slam .35s cubic-bezier(.5,0,.75,0) both}.stamp.good{--stamp: var(--usd)}.stamp.bad{--stamp: var(--danger)}.stamp.neutral{--stamp: var(--muted)}@keyframes stamp-slam{0%{scale:2.6;opacity:0}to{scale:1;opacity:1}}.scan-beam{position:absolute;top:0;bottom:0;left:0;width:30%;background:linear-gradient(90deg,transparent,#6ddc9555 70%,#6ddc95cc 96%,transparent);animation:scan-sweep .9s ease-in-out infinite alternate}@keyframes scan-sweep{0%{translate:-100% 0}to{translate:333% 0}}.scan{text-align:center;color:var(--usd);font-weight:600;animation:scan-blink .9s ease-in-out infinite alternate}@keyframes scan-blink{to{opacity:.45}}.outcome-reveal{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.outcome-cargo{color:var(--credits);font-variant-numeric:tabular-nums}.unload-dialog{cursor:pointer}.unload-stage{position:relative}.unload-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.unload-stage .ship-scene{height:150px}.tile.got{animation:tile-got .6s ease-out}@keyframes tile-got{0%{box-shadow:0 0 0 0 var(--tile-color);background:var(--panel-2)}to{box-shadow:0 0 0 10px transparent}}.crate{position:absolute;left:50%;top:145px;font-size:1.8rem;line-height:1;translate:-50% -50%;pointer-events:none;animation:crate-fly .7s ease-in both}.crate.credits{--to: 25%;color:var(--credits)}.crate.dust{--to: 75%;color:var(--dust)}@keyframes crate-fly{0%{left:50%;top:145px;scale:.6;opacity:0}20%{top:120px;scale:1.1;opacity:1}to{left:var(--to);top:30px;scale:.6;opacity:.4}}.hold{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;font-variant-numeric:tabular-nums}.hold .credits{color:var(--credits)}.hold .dust{color:var(--dust)}.hold .icon{margin-right:4px}.hold .stamp{font-size:1.1rem}.unload-result{min-height:1.4em;text-align:center}.upgrade-burst{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:10px;pointer-events:none;background:radial-gradient(circle at 50% 65%,#6ddc9566,transparent 60%);animation:moment-fade 1.6s ease-in both}.upgrade-stamp{font-size:1.1rem;background:#0007}@keyframes moment-fade{70%{opacity:1}to{opacity:0}}.upgrade.flash{border-radius:10px;animation:upgrade-flash 1.6s ease-out}@keyframes upgrade-flash{0%{background:#6ddc9533;box-shadow:0 0 0 6px #6ddc9533}to{background:transparent;box-shadow:0 0 0 6px transparent}}.level-pop{display:inline-block;font-weight:700;color:var(--usd);transform-origin:left center;animation:count-pop .35s ease-out both}.moment-title{text-align:center;animation:count-pop .3s ease-out both}.sector-dialog .ship-scene{height:150px}.sector-rewards{display:flex;align-items:center;justify-content:center;gap:4px;font-weight:700;color:var(--usd)}.sector-rewards .icon{margin-right:4px}.sector-rewards.credits .icon{color:var(--credits)}.sector-rewards.fuel .icon{color:var(--fuel)}.sector-rewards+.sector-rewards{margin-top:-8px}.sector-events{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}.week-art .icon{color:var(--usd)}.week-dust{display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}.week-dust .icon{color:var(--dust)}.week-share{display:flex;flex-direction:column;align-items:center;gap:2px}.week-share strong{font-size:2rem;color:var(--usd);font-variant-numeric:tabular-nums}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.icon{display:inline-block;flex:none;width:1.1em;height:1.1em;vertical-align:-.2em;background:currentColor;-webkit-mask:var(--icon) center / contain no-repeat;mask:var(--icon) center / contain no-repeat}.tile .label .icon{margin-right:4px;color:var(--tile-color)}.flight .icon{margin-right:3px}.upgrade-info strong .icon{margin-right:6px}.event-art{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:72px;background:var(--sky) 0 0 / 256px 256px,linear-gradient(135deg,var(--panel-2),#2c3a66);animation:sky-drift 40s linear infinite}@keyframes sky-drift{to{background-position:-256px 0,0 0}}.event-art img{max-height:48px}.event-art .icon{width:48px;height:48px;color:var(--text)}.motion-signal .icon{animation:bob 3s ease-in-out infinite}.motion-signal:before,.motion-signal:after{content:"";position:absolute;top:50%;left:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border:2px solid var(--danger);border-radius:50%;opacity:0;animation:signal-ring 2.4s ease-out infinite}.motion-signal:after{animation-delay:1.2s}@keyframes bob{50%{translate:0 -4px;rotate:-6deg}}@keyframes signal-ring{0%{scale:.7;opacity:.8}to{scale:2;opacity:0}}.motion-meteors img{animation:meteor 3.2s linear infinite}.motion-meteors img:nth-child(2){animation-duration:2.6s;animation-delay:-1.1s}.motion-meteors img:nth-child(3){animation-duration:2.1s;animation-delay:-.5s}@keyframes meteor{0%{translate:120px -70px;rotate:0deg;opacity:0}15%,85%{opacity:1}to{translate:-120px 70px;rotate:-220deg;opacity:0}}.motion-glint .icon{color:var(--credits);background:linear-gradient(115deg,currentColor 42%,#fff6dc 50%,currentColor 58%) 0 0 / 300% 100%;animation:glint 3s ease-in-out infinite}@keyframes glint{0%{background-position:100% 0}60%,to{background-position:0 0}}.motion-handshake .icon{animation:handshake 2.4s ease-in-out infinite}@keyframes handshake{0%,50%,to{translate:0 0;rotate:0deg}10%,30%{translate:0 -4px;rotate:-3deg}20%,40%{translate:0 3px;rotate:2deg}}.motion-spin .icon{color:var(--dust);animation:spin 6s linear infinite,breathe 3s ease-in-out infinite}@keyframes spin{to{rotate:-360deg}}@keyframes breathe{50%{scale:1.15}}.motion-wrench .icon{animation:wrench 2.8s ease-in-out infinite}@keyframes wrench{0%,55%,to{rotate:0deg}10%,30%{rotate:-25deg}20%,40%{rotate:10deg}}.motion-hover img{animation:hover 2.6s ease-in-out infinite}.motion-hover img:nth-child(2){animation-duration:3.1s;animation-delay:-1.3s}@keyframes hover{50%{translate:0 -5px;rotate:3deg}}.motion-tumble .icon{animation:tumble 14s ease-in-out infinite}@keyframes tumble{0%,to{translate:-6px 2px;rotate:-10deg}50%{translate:6px -2px;rotate:12deg}}.status{color:var(--muted);font-size:.9rem}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}.segmented button,.flight,.option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:var(--tap);padding:8px;color:var(--text);background:var(--panel-2);border:1px solid var(--line);border-radius:10px;font:inherit;cursor:pointer;touch-action:manipulation}.segmented button.on,.flight.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.segmented button:disabled{opacity:.5;cursor:not-allowed}.segmented small{font-size:.7rem;color:var(--muted)}.flights{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.flight{font-size:.8rem;line-height:1.3}.flight strong{font-size:.95rem}.flight.blocked{opacity:.55}.launch{display:flex;flex-direction:column;gap:10px}.fuel.cost,.cost.fuel{color:var(--fuel)}.gain.credits{color:var(--credits)}.gain.dust{color:var(--dust)}.cost.short{color:var(--danger)}.hint{color:var(--danger);font-size:.85rem}.flight-state{display:flex;flex-direction:column;gap:8px}.progress{height:8px;background:var(--panel-2);border-radius:999px;overflow:hidden}.progress>div{height:100%;background:linear-gradient(90deg,var(--fuel),var(--dust));transition:width 1s linear}.timer{font-variant-numeric:tabular-nums}.choice-timer,.event-window .timer{display:inline-flex;align-items:center;gap:6px;color:var(--accent)}.event-window{display:flex;flex-direction:column;gap:2px;margin:0}.route{--end: 28px;position:relative;height:52px}.route:before{content:"";position:absolute;top:calc(var(--end) / 2 - 1px);left:calc(var(--end) / 2);right:calc(var(--end) / 2);border-top:2px dashed var(--line)}.route-end{position:absolute;top:0;display:flex;flex-direction:column;gap:6px;font-size:.7rem;color:var(--muted);white-space:nowrap}.route-end.station{left:0;align-items:flex-start}.route-end.sector{right:0;align-items:flex-end}.route-end .icon,.route-end img{width:var(--end);height:var(--end);object-fit:contain}.route-end .icon{color:var(--fuel)}.route-ship{position:absolute;z-index:1;top:calc(var(--end) / 2);left:calc(var(--end) / 2 + var(--x) * (100% - var(--end)));height:20px;translate:-50% -50%;rotate:90deg;transition:left 1s linear}.route.back .route-ship{rotate:-90deg}.route-mark{position:absolute;top:calc(var(--end) / 2);right:calc(var(--end) / 2);width:36px;height:36px;translate:50% -50%;border:2px solid var(--muted);border-radius:50%}.route-mark.pending{border-color:var(--accent)}.route-mark.pending:after{content:"";position:absolute;inset:-2px;border:2px solid var(--accent);border-radius:50%;animation:mark-pulse 1.6s ease-out infinite}@keyframes mark-pulse{0%{scale:1;opacity:.9}to{scale:1.6;opacity:0}}.upgrades{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.upgrades h3{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.upgrade{display:flex;align-items:center;justify-content:space-between;gap:12px}.upgrade-info{display:flex;flex-direction:column;min-width:0}.upgrade-info small{color:var(--muted)}.small{font-size:.85rem}.footer{display:flex;justify-content:center;align-items:baseline;gap:12px;padding-top:12px;font-size:.75rem;color:var(--muted);opacity:.6}.link{padding:8px 4px;color:inherit;background:none;border:none;font:inherit;text-decoration:underline;cursor:pointer}.upgrade-info .hint{color:var(--danger)}.upgrade .button{flex:none;max-width:50%;white-space:normal;text-align:center;font-size:.85rem}button:focus-visible,select:focus-visible,a:focus-visible{outline:1px solid var(--accent);outline-offset:0}.notice{padding:10px 12px;border-radius:10px;background:var(--panel-2);border:1px solid var(--line)}.notice.info{border-color:var(--usd)}.notice.error,.error{color:var(--danger)}.notice.error{border-color:var(--danger)}.next{text-align:center;font-size:.9rem}.invite-link{display:flex;flex-direction:column;gap:4px;margin:8px 0}.invite-link input{width:100%;font-size:16px;padding:8px 10px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px}.invite-stats{margin-top:12px;font-weight:600}.invite-friends{list-style:none;margin:0;padding:0}.invite-friends li{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}.human-overlay{position:fixed;inset:0;z-index:1000;display:flex;background:#0009;opacity:0;pointer-events:none}.human-overlay.shown{opacity:1;pointer-events:auto}.human-widget{display:flex;justify-content:center;min-height:0}.human-overlay.shown .human-widget{min-height:70px;margin-top:12px}.event-dialog{width:100%;max-width:520px;max-height:90vh;max-height:90dvh;margin:auto auto 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));color:var(--text);background:var(--panel);border:1px solid var(--line);border-bottom:none;border-radius:18px 18px 0 0;overflow-y:auto}.event-dialog[open]{display:flex;flex-direction:column;gap:12px}.event-dialog::backdrop{background:#000a}@media(min-width:600px){.event-dialog{margin:auto;border-bottom:1px solid var(--line);border-radius:18px}}.storage-dialog h2{display:flex;align-items:center;gap:8px;margin:0;color:var(--fuel)}.storage-dialog p{margin:0}.storage-capacity{font-size:1.2rem;font-weight:700;font-variant-numeric:tabular-nums}.storage-dialog .store{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.storage-cost{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-variant-numeric:tabular-nums}.storage-cost .item,.storage-cost .credits{display:inline-flex;align-items:center;gap:4px;font-weight:700}.storage-cost .item{color:var(--item)}.storage-cost .credits{color:var(--credits)}.storage-cost .short{color:var(--danger)}.ship-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:-4px}.ship-tabs::-webkit-scrollbar{display:none}.ship-tab{position:relative;flex:none;min-height:var(--tap);padding:0 14px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:10px;font:inherit;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer}.ship-tab.on{color:var(--text);background:var(--panel-2);border-color:var(--accent)}.tab-dot{position:absolute;top:6px;right:6px;width:8px;height:8px;background:var(--accent);border-radius:50%}.shipyard h2{margin:0 0 4px}.shipyard p{margin:0 0 10px}.shipyard-dialog h2,.shipyard-dialog p{margin:0}.ship-types{display:flex;flex-direction:column;gap:8px}.ship-type{display:flex;align-items:flex-start;gap:12px;width:100%;padding:10px 12px;color:var(--text);text-align:left;background:var(--panel-2);border:1px solid var(--line);border-radius:10px;font:inherit;cursor:pointer}.ship-type.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.ship-type img{flex:none;width:48px;height:auto;margin-top:4px}.ship-type-text{display:flex;flex-direction:column;gap:3px;min-width:0}.ship-type-text small{color:var(--muted)}.ship-type-flights{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:.85rem;font-variant-numeric:tabular-nums}.ship-type-flights .best{color:var(--credits);font-weight:700}.shipyard-cost{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-variant-numeric:tabular-nums}.shipyard-cost .credits{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--credits)}.shipyard-cost .short{color:var(--danger)}.gauge i.build{background:linear-gradient(to right,transparent calc(var(--fill, 0) * 100%),var(--panel) 0),repeating-linear-gradient(135deg,var(--fuel) 0 2px,transparent 2px 4px);outline:1px dashed color-mix(in srgb,var(--fuel) 60%,transparent)}.captain-name{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);padding:0;color:inherit;font:inherit;background:none;border:0;cursor:pointer}.captain-name:hover,.captain-name:focus-visible{color:var(--text)}.support-dialog,.support-dialog form,.nickname-dialog form,.warning-dialog,.broadcast-dialog{display:flex;flex-direction:column;gap:12px}.nickname-dialog h2,.nickname-dialog p,.warning-dialog h2,.warning-dialog p,.broadcast-dialog h2{margin:0}.broadcast-text{display:flex;flex-direction:column;gap:10px;max-height:60dvh;overflow-y:auto;overscroll-behavior:contain}.broadcast-text p{margin:0;white-space:pre-line;overflow-wrap:anywhere}.nickname-field{display:flex;flex-direction:column;gap:6px}.nickname-field input{min-height:var(--tap);padding:0 12px;color:var(--text);font:inherit;background:var(--panel-2);border:1px solid var(--line);border-radius:10px}.nickname-field input[aria-invalid=true],.support-field textarea[aria-invalid=true]{border-color:var(--danger)}.support-dialog h2,.support-dialog p{margin:0}.support-field textarea{width:100%;min-height:140px;padding:10px 12px;color:var(--text);font:inherit;background:var(--panel-2);border:1px solid var(--line);border-radius:10px;resize:vertical}.fine-print .link{font-size:inherit}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.dialog-actions .button{flex:1}.warning-strike{color:var(--danger)}.fine-print{margin:0;color:var(--muted);font-size:.75rem;line-height:1.35}.online{display:inline-flex;align-items:center;gap:6px;margin-left:10px;font-size:.85rem;white-space:nowrap}.login-online{margin:4px 0 0;color:var(--muted)}.online-dot{width:8px;height:8px;border-radius:50%;background:var(--usd);box-shadow:0 0 6px var(--usd)}.board-tabs{display:flex;gap:6px}.board-tabs .ship-tab{display:inline-flex;flex:1;align-items:center;justify-content:center;gap:6px}.board{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}.board-row{display:grid;grid-template-columns:2.2em minmax(0,1fr) auto;align-items:center;gap:8px;min-height:36px;padding:0 10px;border-radius:8px;font-variant-numeric:tabular-nums}.board-row:nth-child(odd){background:var(--panel-2)}.board-row.me{box-shadow:inset 0 0 0 1px var(--accent)}.board-rank{color:var(--muted);text-align:right}.board-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-gap{color:var(--muted);text-align:center}.credits-dialog{font-size:.9rem}.credits-dialog:focus{outline:none}.credits-dialog h2,.credits-dialog p{margin:0}.credits-dialog a{color:var(--text)}.credits-game{font-weight:600}.credit-icons{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 0 0;padding:0;list-style:none;font-size:.85rem}.credit-icons a{color:var(--muted)}.credit summary{margin-top:6px;color:var(--muted);cursor:pointer}.license-text{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.7rem;color:var(--muted)}.options{display:flex;flex-direction:column;gap:8px}.option{align-items:flex-start;text-align:left;padding:12px}.option:disabled{opacity:.5;cursor:not-allowed}.option .effect{font-size:.85rem;color:var(--muted)}.option .effect.find{display:inline-flex;align-items:center;gap:4px;color:var(--item)}.card.storage .store{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0;font-size:.85rem}.store .item,.hold .item{display:inline-flex;align-items:center;gap:4px;color:var(--item);font-variant-numeric:tabular-nums}.unload-found,.outcome-found{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-weight:700;color:var(--item)}.outcome-found.muted{font-weight:400;color:var(--muted)}.brand{flex:1;display:flex;align-items:baseline;gap:8px;min-width:0}.brand .logo{flex:none}.brand .version{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;color:var(--muted);opacity:.7;font-variant-numeric:tabular-nums}.menu-open{min-width:var(--tap);min-height:var(--tap);padding:0;border-color:transparent}.resbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:4px 8px;margin:0 -8px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.res{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:var(--tap)}.res strong{font-size:1.05rem;font-variant-numeric:tabular-nums;white-space:nowrap}.res.credits strong{color:var(--credits)}.res.fuel strong{color:var(--fuel)}.res.dust strong{color:var(--dust)}.res-text{display:flex;flex-direction:column;min-width:0;line-height:1.15}.res-line{display:flex;align-items:center;gap:5px}.res .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.6rem;color:var(--muted);font-variant-numeric:tabular-nums}.refuel-plus{display:inline-flex;flex:none;align-items:center;justify-content:center;width:18px;height:18px;padding:0;color:var(--fuel);background:color-mix(in srgb,var(--fuel) 12%,transparent);border:1px dashed color-mix(in srgb,var(--fuel) 60%,transparent);border-radius:50%;cursor:pointer}.refuel-plus:disabled{opacity:.6;cursor:not-allowed}.card.storage h2{display:flex;align-items:center;gap:8px;color:var(--fuel)}.storage-level{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.storage-level strong{font-size:1.3rem;font-variant-numeric:tabular-nums}.pool-tiles{display:grid;gap:8px}@media(min-width:480px){.pool-tiles{grid-template-columns:2fr 1fr}}.sections{flex:none;z-index:10;display:flex;justify-content:center;padding:0 8px env(safe-area-inset-bottom);background:var(--panel);border-top:1px solid var(--line)}.section-tab{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;max-width:172px;height:var(--sections-h);padding:0 4px;color:var(--muted);background:none;border:none;font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;touch-action:manipulation}.section-tab.on{color:var(--accent)}.section-tab .tab-dot{top:8px;right:calc(50% - 20px)}.menu-dialog{position:fixed;inset:auto;width:min(280px,calc(100vw - 16px));margin:0;padding:12px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.menu-dialog[open]{display:flex;flex-direction:column;gap:6px}.menu-dialog:focus{outline:none}.menu-dialog::backdrop{background:#0007}.menu-head{display:flex;align-items:center;justify-content:space-between}.menu-head h2{font-size:1rem}.menu-head .button{min-width:var(--tap);min-height:var(--tap);padding:0;border-color:transparent}.menu-lang{display:flex;flex-direction:column;gap:4px;padding:4px 0}.lang-current{display:flex;align-items:center;gap:10px;width:100%;min-height:var(--tap);padding:0 12px;color:var(--text);background:var(--panel-2);border:1px solid var(--line);border-radius:10px;font:inherit;font-weight:600;text-align:left;cursor:pointer;touch-action:manipulation}.lang-current svg{flex:none;color:var(--muted)}.lang-current span{flex:1}.lang-current .chevron{transition:transform .15s}.lang-current.open{border-color:var(--accent)}.lang-current.open .chevron{transform:rotate(180deg)}.lang-list{display:flex;flex-direction:column;padding:4px;background:var(--panel-2);border:1px solid var(--line);border-radius:10px}.lang-option{display:flex;align-items:center;gap:8px;min-height:var(--tap);padding:0 10px 0 40px;color:var(--muted);background:none;border:none;border-radius:8px;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}.lang-option span{flex:1}.lang-option:hover,.lang-option:focus-visible{color:var(--text);background:var(--panel)}.lang-option.on{color:var(--accent);font-weight:600}.menu-item{justify-content:flex-start;border-color:transparent}.menu-version{padding:6px 4px 0;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.menu-install{padding:4px}.dev-login label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--muted)}.dev-login h2{font-size:.95rem}.sector-map{padding:0 0 12px;overflow:hidden;scroll-margin-bottom:12px}.sector-map svg{display:block;width:100%;height:auto;font-family:inherit}.map-hint{margin:8px 12px 0;text-align:center}.map-grid line{stroke:var(--line);stroke-width:.65;opacity:.34}.map-grid text{fill:var(--muted);opacity:.6;font-size:9.5px;text-anchor:middle}.map-fog text{fill:#5e6b8c;font-size:22px;font-weight:700;text-anchor:middle;opacity:.72}.map-fog{animation:fog-drift 60s ease-in-out infinite alternate}@keyframes fog-drift{0%{translate:-6px 0}to{translate:6px 0}}.map-lane{stroke:#8fb4e8;stroke-width:1.4;stroke-dasharray:4 4;opacity:.85}.map-lane.locked,.map-lane.uncharted{stroke:#5e729e;opacity:.75}.map-logo{opacity:.25}.map-station text{fill:var(--text);font-size:13px;font-weight:600;text-anchor:middle}.map-node,.map-ship{cursor:pointer;outline:none}.map-hit{fill:transparent}.map-node .map-name{fill:var(--text);font-size:13px;font-weight:600;text-anchor:middle;paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round}.map-node .map-req text{fill:var(--muted);font-size:11px;text-anchor:middle;paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round}.map-node.s-comet_trail.open .map-name{fill:var(--fuel)}.map-node.locked .art{opacity:.45;filter:saturate(.5)}.map-node.uncharted .art{opacity:.6}.map-node.locked .map-name,.map-node.uncharted .map-name{fill:#c7cfde}.map-node:focus-visible .map-name,.map-ship:focus-visible image{outline:none;filter:drop-shadow(0 0 2px var(--accent))}.map-ship image{filter:drop-shadow(0 0 1px #000)}.map-ship-ring{transform-box:fill-box;transform-origin:center;animation:ring-breathe 1.6s ease-in-out infinite}@keyframes ring-breathe{50%{scale:1.12;opacity:.75}}.sector-sheet .map-requires{margin:0 0 8px;padding-left:1.2em}.sector-sheet .map-ships{margin-bottom:8px}.lucide-icon{flex:none;vertical-align:-.15em}.scrap-icon,.scrap{color:var(--item)}.scrap{display:inline-flex;align-items:center;gap:4px;font-weight:600}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;color:var(--text);background:var(--panel-2);border:1px solid var(--line);border-radius:12px;cursor:pointer}.projects-card h2{display:flex;align-items:center;gap:8px}.projects-card h2 .lucide-icon{color:var(--item)}.projects-card.locked{border-style:dashed}.projects-card.locked h2{justify-content:space-between;color:var(--muted)}.projects-card p{margin:0}.projects-lock{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--muted);background:var(--panel-2);border-radius:12px}.projects-building{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-weight:600}.projects-building .timer{color:var(--accent)}.progress-bar{display:block;height:6px;background:linear-gradient(90deg,var(--accent) calc(var(--fill) * 100%),var(--panel-2) 0);border-radius:3px}.projects-card .button{border-color:var(--item)}.store-card .store{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0}.store-card p{margin:0}.projects-dialog{max-width:440px;padding-bottom:0}.projects-dialog[open]{gap:0}.projects-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.projects-head h2{margin:0}.projects-meta{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;font-size:.85rem}.projects-meta .credits{color:var(--credits)}.projects-scroll{flex:1 1 auto;min-height:0;padding:16px 0;overflow-y:auto}.tree{position:relative;width:100%}.tree-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.tree-lines path{fill:none;stroke:var(--line);stroke-width:1.5;stroke-linejoin:round}.tree-lines path.done{stroke:#6ddc9566}.tree-lines path.hot{stroke:var(--item);stroke-width:2}.tree-node{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px;color:var(--text);font:inherit;text-align:center;background:var(--panel-2);border:1.5px solid var(--line);border-radius:14px;cursor:pointer;overflow:hidden}.tree-node-top{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:18px;color:var(--item)}.tree-node-name{font-size:.66rem;font-weight:700;line-height:1.15;letter-spacing:-.01em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:anywhere}.tree-node.soon .tree-node-name{font-weight:600}.tree-node-label{font-size:.68rem;line-height:1.1;color:var(--muted)}.tree-badge{color:var(--bg);background:var(--usd);border-radius:50%;padding:1px}.tree-node.locked .tree-badge{color:var(--muted);background:none}.tree-timer{padding:0 6px;font-size:.68rem;font-weight:700;color:var(--accent);background:#2a241c;border-radius:8px;font-variant-numeric:tabular-nums}.tree-node.built{background:#182b2c;border-color:var(--usd)}.tree-node.built .tree-node-top,.tree-node.built .tree-node-label{color:var(--usd)}.tree-node.available{border-color:var(--item)}.tree-node.available .tree-node-label{color:var(--item)}.tree-node.building{border-color:var(--accent);border-width:2px}.tree-node.building .tree-node-top,.tree-node.building .tree-node-label{color:var(--accent)}.tree-node.after_build,.tree-node.short{border-color:#7ee8d666}.tree-node.short .tree-node-label{color:var(--danger)}.tree-node.locked{opacity:.7}.tree-node.locked .tree-node-top{color:var(--muted)}.tree-node.soon{color:var(--muted);background:#131a2c8c;border-style:dashed}.tree-node.selected{background:#223055;box-shadow:0 0 0 3px #7ee8d659}.project-sheet{position:sticky;bottom:0;display:flex;flex-direction:column;gap:10px;margin:0 -16px;padding:14px 16px calc(16px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);border-radius:14px 14px 0 0;box-shadow:0 -8px 24px #0008}.project-sheet header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.project-sheet h3{margin:0;font-size:1.15rem}.project-sheet p{margin:0}.project-sheet-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--item);background:var(--panel-2);border:1.5px solid var(--item);border-radius:12px}.project-links{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:0;padding:10px 12px;font-size:.85rem;background:var(--panel-2);border-radius:12px}.project-links dt{color:var(--muted)}.project-links dd{margin:0}.project-cost{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-weight:700;font-variant-numeric:tabular-nums}.project-cost .credits{display:inline-flex;align-items:center;gap:4px;color:var(--credits)}.project-cost .days{display:inline-flex;align-items:center;gap:4px}.project-cost .short{color:var(--danger)}.project-reason{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 12px;color:var(--muted);font-weight:600;text-align:center;background:var(--panel-2);border:1px solid var(--line);border-radius:12px}.project-reason.short{color:var(--danger)}.project-reason.built{color:var(--usd)}.project-reason.building,.project-reason.busy{color:var(--accent)}.upgrade.locked{opacity:.6}.upgrade-info strong .lucide-icon{margin-right:6px}.sell-dialog h2{display:flex;align-items:center;gap:8px;margin:0}.sell-dialog p{margin:0}.stepper{display:flex;align-items:center;gap:8px}.stepper-value{flex:1;text-align:center;font-size:1.15rem;font-weight:700;color:var(--item);font-variant-numeric:tabular-nums}.sell-gets{display:flex;align-items:center;gap:6px;font-weight:700;color:var(--credits)}.sell-dialog .short{color:var(--danger)}.built-dialog{align-items:center;text-align:center}.built-dialog p{margin:0}.built-icon{display:inline-flex;padding:16px;color:var(--usd);background:#182b2c;border:2px solid var(--usd);border-radius:20px}.hold .scrap{font-weight:700}.unload-found.scrap{color:var(--item)}.event-gear{margin:0}@media(prefers-reduced-motion:reduce){.route-ship,.flame.outer,.flame.core,.lang-current .chevron{transition:none}.button.attention,.ship-scene.launching .ship-model,.pad-mast .pad-light,.pad-mast.right .pad-light,.launch-count,.stamp,.scan-beam,.scan,.tile.got,.crate,.upgrade-burst,.upgrade.flash,.moment-title,.level-pop,.route-mark.pending:after,.map-ship-ring,.map-fog,.flame.outer,.flame.core,.star-layer,.star-layer.twinkle,.event-art,.event-art:before,.event-art:after,.event-art>.icon,.event-art>img{animation:none}}
