:root{color-scheme:dark;--void: #101623;--panel: #1c2536;--edge: #39475b;--ink: #f1e9d5;--dim: #b9c4cf;--mint: #9ee2cb;--coral: #f2a291;--warm: #eed29e;--sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;--display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", var(--sans);--mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;font-family:var(--sans);color:var(--ink);background:var(--void);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-width:0}body{min-height:100dvh;background:radial-gradient(ellipse at 13% 20%,#23314775,transparent 54%),radial-gradient(ellipse at 100% 66%,#302b4170,transparent 54%),#101623}h1,h2,h3,p{margin:0}button,textarea{font:inherit}button{min-width:44px;min-height:44px;cursor:pointer;color:var(--ink);border:1px solid var(--edge);background:#232d40;border-radius:5px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:hover:not(:disabled){border-color:#85939f;background-color:#2d394a}button:active:not(:disabled){filter:brightness(1.09)}button:focus-visible,textarea:focus-visible{outline:2px solid var(--warm);outline-offset:2px}button:disabled{cursor:default}svg{flex-shrink:0;vertical-align:middle}button,canvas{-webkit-user-select:none;user-select:none}.mast{background:#111927f0;border-bottom:1px solid #334254}.mast-inner,.bridge{max-width:1260px;margin:0 auto;padding-inline:clamp(14px,3vw,40px)}.mast-inner{height:64px;display:flex;align-items:center;gap:clamp(24px,4vw,65px)}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.insignia{display:grid;place-items:center;color:#ffc3a3;transform:rotate(-6deg)}.insignia svg{width:40px;height:40px}.wordmark{display:grid;line-height:1}.wordmark b{font:900 italic 25px/.93 var(--display);letter-spacing:-1.2px;color:#f9edce}.wordmark small{font:700 8px/1.15 var(--mono);letter-spacing:3.7px;margin-top:6px;color:var(--coral)}.nav,.utilities{display:flex;align-items:center}.nav{gap:8px;align-self:stretch}.nav button,.utilities button{background:transparent;border:0;display:flex;align-items:center;justify-content:center;gap:7px;color:#bdc8d4}.nav button{border-bottom:2px solid transparent;border-radius:0;font-size:13px;font-weight:650;padding:0 12px;height:100%}.nav .active,.nav .current,.nav [aria-current=page],.nav [data-action=flight]{color:var(--coral);border-bottom-color:var(--coral)}.utilities{margin-left:auto;gap:3px}.utilities button{padding:0 9px}.utilities [data-action=set-lang]{font-size:13px;font-weight:650}.nav svg,.utilities svg{width:18px;height:18px}.bridge{padding-top:clamp(14px,2.9vh,30px);padding-bottom:12px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:clamp(13px,2.1vh,24px)}.section-heading>div>small,.kicker,.sector-name small,.sector-tag,.readout,.route-meta,.bridge-foot,.matrix-note,.stat label,.section-heading>.kicker{font-family:var(--mono)}.section-heading .kicker,.section-heading small{display:block;color:var(--mint);font:650 10px/1.3 var(--mono);letter-spacing:1.6px;text-transform:uppercase;margin-bottom:5px}.section-heading h1{font:770 clamp(32px,4.8vh,55px)/.97 var(--display);letter-spacing:-1.5px}.daily-button,.btn,.matrix-note button,.bridge-foot button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;font-size:12px;font-weight:650}.daily-button{color:var(--warm);border-color:#58525a;background:#282e3d}.deck-grid{display:grid;grid-template-columns:minmax(0,1.54fr) minmax(0,1fr);gap:clamp(12px,1.6vw,24px);align-items:stretch}.flight-card,.matrix-card,.command-strip{border:1px solid var(--edge);border-radius:8px;overflow:hidden;box-shadow:0 12px 30px #060b161c,inset 0 1px #d9e3e00a}.flight-card{display:grid;grid-template-rows:minmax(160px,1fr) auto auto;background:#1b2536}.star-window{position:relative;overflow:hidden;isolation:isolate;background:#232b41}.star-window canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.star-window:after{content:"";position:absolute;pointer-events:none;inset:0;background:linear-gradient(0deg,#101a29cb,transparent 38%),linear-gradient(90deg,#141c2e39,transparent 43%)}.sector-tag,.sector-name{position:absolute;z-index:1}.sector-tag{left:16px;top:14px;display:inline-flex;align-items:center;gap:6px;font:700 10px/1.2 var(--mono);color:#d7f1de;letter-spacing:1px;text-transform:uppercase;border:1px solid #94b7ac85;background:#192c34d9;border-radius:20px;padding:6px 10px}.sector-tag svg{width:13px;height:13px}.sector-name{left:clamp(14px,1.8vw,27px);bottom:clamp(12px,2vh,22px);max-width:90%;text-shadow:0 2px 11px #142035}.sector-name small{font:700 9px/1.25 var(--mono);letter-spacing:2px;color:#eee3c7}.sector-name h2{font:780 italic clamp(25px,4.5vh,58px)/1.02 var(--display);color:#faecd4;letter-spacing:-1.4px;margin-top:4px}.travel{padding:13px 18px 10px;border-top:1px solid #5a5361}.route-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#ced7d8;font-size:10px;line-height:1.35}.route-meta strong,.route-meta b{color:var(--ink)}.route-bar{position:relative;margin-top:8px;height:5px;background:#101a2b;border-radius:2px;overflow:hidden}.route-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e68c7e,#ffce9c);border-radius:2px;transition:width .24s}.ship-readouts{display:flex;align-items:center;gap:clamp(18px,4vw,63px);padding:5px 18px 13px}.stat{display:flex;align-items:center;gap:9px}.stat>svg{color:var(--warm);width:22px;height:22px}.stat:nth-child(2)>svg{color:var(--mint)}.stat label,.stat small{display:block;color:#adc2c9;font:600 9px/1.25 var(--mono);text-transform:uppercase;letter-spacing:1px}.stat strong{font:725 24px/1.12 var(--display);color:#f4e9d7;font-variant-numeric:tabular-nums}.matrix-card{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;background:linear-gradient(140deg,#273247,#1c2537 74%);padding:13px clamp(11px,1.3vw,19px) 5px}.matrix-head,.matrix-note{display:flex;align-items:center;justify-content:space-between;gap:8px}.matrix-head{min-height:35px;margin-bottom:8px}.matrix-head h2{font:700 23px/1.06 var(--display);letter-spacing:-.6px;display:flex;align-items:center;gap:7px}.matrix-head h2 svg{color:var(--mint);width:17px}.readout{color:var(--mint);font:600 10px/1.25 var(--mono);white-space:nowrap}.matrix-frame{align-self:center;width:min(100%,clamp(255px,calc((100dvh - 345px)*1.24),475px));aspect-ratio:4/3;padding:5px;background:#121a29;border:1px solid #607083;border-radius:4px;box-shadow:inset 0 0 0 2px #263448,0 0 0 2px #151e2c}.matrix-surface{width:100%;height:100%;position:relative;touch-action:none;user-select:none}.matrix-surface canvas,.cell-grid{position:absolute;inset:0;width:100%;height:100%;display:block}.cell-grid{display:grid;grid-template:repeat(3,minmax(0,1fr)) / repeat(4,minmax(0,1fr))}.cell-grid button{min-width:0;min-height:0;padding:0;background:transparent!important;border:0;border-radius:0}.cell-grid button:focus-visible{outline-offset:-4px}.matrix-note{margin-top:5px;min-height:45px;color:#b9cdd0;font:10px/1.3 var(--mono)}.matrix-note span{min-width:0}.matrix-note button{color:#d9e9df;font:650 12px var(--sans);padding:0 8px;background:transparent;border-color:transparent;white-space:nowrap}.command-strip{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;padding:11px;background:#1c2638;margin-top:13px}.command-strip button{min-height:55px;display:flex;align-items:center;justify-content:center;gap:10px;padding:7px 10px}.command-strip button>svg{width:22px;height:22px;color:var(--mint)}.command-strip .pulse-button,.primary{background:linear-gradient(105deg,#f7b599,#e69185);border:1px solid #f4b6a4;color:#2d232b}.command-strip .pulse-button{position:relative}.command-strip .pulse-button>svg,.primary svg{color:#523340}.control-title{font-size:15px;line-height:1.05;font-weight:750}.command-strip small,.command-strip .cost{font:600 10px/1.3 var(--mono);color:#b9c8ce}.command-strip .pulse-button small,.command-strip .pulse-button .cost{color:#613e41}.command-strip :disabled{filter:saturate(.65);opacity:.83}.command-strip button>span:has(small){display:grid;text-align:left;gap:3px}.bridge-foot{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#9daebe;font:10px/1.4 var(--mono)}.bridge-foot button{background:transparent;border:0;padding-inline:4px;color:#c3d0d4}.bridge-foot span{display:inline-flex;align-items:center;gap:6px}dialog{width:min(610px,94vw);max-height:min(85dvh,790px);padding:0;color:var(--ink);border:1px solid #6b7584;border-radius:9px;background:linear-gradient(145deg,#263347,#1b2535);box-shadow:0 30px 100px #050a16b0;overscroll-behavior:contain}dialog::backdrop{background:#090f1bd9;backdrop-filter:blur(4px)}#panel{padding:21px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.kicker{font:700 10px/1.2 var(--mono);text-transform:uppercase;letter-spacing:1.6px;color:var(--mint)}.modal-head h2{font:720 clamp(25px,3.9vh,35px)/1.08 var(--display);letter-spacing:-.8px;margin:3px 0}.icon-btn{display:grid;place-items:center;width:44px;height:44px;flex:none}.modal-copy{color:#c7d1d7;font-size:13px;line-height:1.5;margin:11px 0 15px}.card-list,.perk-grid{display:grid;gap:8px}.card-list.roster,.perk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.item,.choice,.perk,.receipt,.stat-list{background:#172234;border:1px solid #3d4e62;border-radius:4px}.choice,.perk,.item{padding:10px;text-align:left}.choice{display:flex;align-items:center;gap:10px}.choice svg{color:var(--coral)}.choice b,.item b,.perk b,.choice small,.perk small,.perk span,.item small{display:block}.choice b,.item b,.perk b{font:700 17px/1.25 var(--display);color:#f2e7d1}.choice small,.item p,.perk span{color:#bdc9d0;font:12px/1.45 var(--sans)}.choice strong{margin-left:auto;white-space:nowrap;color:var(--warm);font:700 12px var(--mono)}.module-choice canvas{width:44px;height:44px;flex:none}.item small,.perk small{font:600 9px/1.35 var(--mono);color:var(--mint);margin-bottom:4px}.earned{border-color:#af9786;background:#30393d}.perk:disabled{opacity:.86}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin:12px 0}.btn.primary:hover:not(:disabled),.pulse-button:hover:not(:disabled){background:#ffc4a6;color:#392630}.stat-list{padding:0 10px}.stat-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;padding:5px 0;font-size:13px;color:#bdcbd3}.stat-entry+.stat-entry{border-top:1px solid #384558}.stat-entry strong{color:#efead8}.receipt{padding:13px 15px;margin:9px 0}.receipt small{display:block;color:#a9c8c8;font:600 11px var(--mono)}.receipt strong{font:700 36px var(--display);color:var(--warm)}.savecode{width:100%;min-height:75px;margin:6px 0;color:#dceadf;background:#101a28;border:1px solid var(--edge);padding:8px;border-radius:4px}#toast{position:fixed;bottom:12px;left:50%;transform:translate(-50%);z-index:5;pointer-events:none;background:#162737ef;border:1px solid #7b9398;color:#f3e8d3;border-radius:4px;padding:8px 12px;font:12px var(--sans);visibility:hidden}#toast.show,#toast.visible{visibility:visible}@media(min-width:1450px)and (min-height:790px){.bridge,.mast-inner{max-width:1410px}.mast-inner{height:76px}.section-heading{margin-bottom:24px}.matrix-frame{width:min(100%,490px)}.matrix-card{padding:18px 21px 8px}.matrix-head{margin-bottom:11px}.travel{padding:16px 22px 12px}.ship-readouts{padding:8px 22px 17px}.command-strip{margin-top:18px;padding:15px}.command-strip button{min-height:62px}}@media(max-width:690px)and (orientation:portrait){.mast-inner{height:51px;padding:0 9px;gap:3px}.brand{gap:5px}.insignia svg{width:30px;height:30px}.wordmark b{font-size:19px;letter-spacing:-1px}.wordmark small{font-size:7px;letter-spacing:2px;margin-top:3px}.nav{margin-left:auto;gap:0}.nav button,.utilities button{width:44px;padding:0}.nav button:first-child,.nav button span{display:none}.utilities{margin-left:0;gap:0}.bridge{max-width:535px;padding:8px 10px}.section-heading{min-height:44px;margin-bottom:7px}.section-heading h1{font-size:29px}.section-heading .kicker,.section-heading small{font-size:8px;letter-spacing:1px;margin-bottom:3px}.daily-button{font-size:12px;padding:0 8px;gap:5px}.deck-grid{grid-template-columns:1fr;gap:7px}.flight-card{grid-template-rows:clamp(113px,18.7dvh,168px) auto auto}.sector-tag{top:6px;left:8px;padding:3px 6px;font-size:8px}.sector-name{left:10px;bottom:7px}.sector-name small{font-size:7px;letter-spacing:1.2px}.sector-name h2{font-size:22px;margin-top:1px}.travel{padding:6px 10px 4px}.route-bar{margin-top:4px;height:4px}.route-meta{font-size:9px}.ship-readouts{gap:27px;padding:4px 10px 7px}.stat{gap:6px}.stat>svg{width:16px;height:16px}.stat label{font-size:8px}.stat strong{font-size:18px}.matrix-card{padding:4px 9px 0}.matrix-head{min-height:27px;margin-bottom:3px}.matrix-head h2{font-size:18px}.readout,.matrix-note{font-size:9px}.matrix-frame{width:min(100%,clamp(200px,calc((100dvh - 505px)*1.1),340px));padding:3px}.matrix-note{margin-top:0;min-height:44px}.command-strip{grid-template-columns:1fr 1fr;gap:5px;margin-top:7px;padding:5px}.command-strip .pulse-button{grid-column:1/-1}.command-strip button{min-height:44px;padding:4px 6px;gap:5px}.command-strip button>svg{width:17px;height:17px}.control-title{font-size:13px}.command-strip small,.command-strip .cost{font-size:9px}.bridge-foot{min-height:44px}.card-list.roster,.perk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#panel{padding:14px}.dialog-actions{margin:9px 0}}@media(max-height:525px)and (orientation:landscape){.mast-inner{height:44px;padding-inline:11px;gap:19px}.brand{gap:5px}.insignia svg{width:27px;height:27px}.wordmark b{font-size:18px}.wordmark small{font-size:6px;margin-top:3px;letter-spacing:2px}.nav{gap:2px}.nav button{padding:0 7px;font-size:11px}.utilities button{padding:0}.bridge{padding:3px 9px}.section-heading{min-height:44px;margin:0 0 3px}.section-heading h1{font-size:22px}.section-heading .kicker,.section-heading small{display:none}.daily-button{font-size:11px}.deck-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:7px}.flight-card{grid-template-rows:minmax(90px,1fr) auto auto}.sector-tag{top:4px;left:6px;font-size:7px;padding:2px 5px}.sector-name{left:9px;bottom:5px}.sector-name small{font-size:7px;letter-spacing:1px}.sector-name h2{font-size:21px;margin:0}.travel{padding:4px 8px 2px}.route-meta{font-size:9px}.route-bar{margin-top:3px;height:3px}.ship-readouts{padding:3px 8px 4px;gap:23px}.stat{gap:5px}.stat>svg{width:15px;height:15px}.stat label{font-size:7px}.stat strong{font-size:15px}.matrix-card{padding:2px 6px 0}.matrix-head{min-height:20px;margin:0 0 2px}.matrix-head h2{font-size:15px}.matrix-frame{width:clamp(187px,calc((100dvh - 247px)*1.31),233px);padding:3px}.matrix-note{min-height:44px;margin:0;font-size:9px}.matrix-note button{font-size:10px;padding:0 3px}.readout{font-size:9px}.command-strip{margin-top:5px;padding:3px;gap:5px}.command-strip button{min-height:44px;gap:6px;padding:3px 5px}.command-strip button>svg{width:16px;height:16px}.control-title{font-size:12px}.command-strip small,.command-strip .cost{font-size:9px}.bridge-foot{min-height:44px;font-size:9px}.bridge-foot button{font-size:10px}.modal-copy{margin:6px 0 9px}dialog{max-height:96dvh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.stat>div{display:grid;gap:4px}.stat label{line-height:1.45}.stat strong{display:block;line-height:1.14}@media(min-height:526px)and (max-height:780px)and (min-width:691px){.bridge{padding-top:13px;padding-bottom:0}.matrix-frame{width:min(100%,408px)}.ship-readouts{padding-block:3px 10px}}@media(max-width:690px)and (orientation:portrait){.bridge{padding-bottom:0}.matrix-frame{width:min(100%,clamp(200px,calc((100dvh - 514px)*1.08),329px))}.stat>div{gap:2px}}@media(max-height:525px)and (orientation:landscape){.bridge{padding-bottom:0}.section-heading{position:absolute;right:12px;top:44px;z-index:2}.section-heading>div{display:none}.daily-button{border:0;background:none;font-size:0;gap:0;padding:0;width:44px;color:var(--coral)}.daily-button svg{width:15px}.matrix-head{height:44px;padding-right:39px}.matrix-frame{width:min(100%,clamp(189px,calc((100dvh - 230px)*1.27),228px))}.matrix-note{min-height:44px}.stat>div{gap:2px}}#notice,#panel-notice{pointer-events:none;visibility:hidden;font:600 12px/1.35 var(--sans);color:#e8ecdc}#notice{position:fixed;z-index:5;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translate(-50%);max-width:min(94vw,460px);padding:9px 14px;border-radius:5px;background:#172c3af5;border:1px solid #85b9af;box-shadow:0 4px 18px #0b122b55}#panel-notice{position:sticky;bottom:0;z-index:1;text-align:center;height:0;overflow:hidden}#notice.show,#panel-notice.show{visibility:visible}#panel-notice.show{height:auto;margin-top:8px;padding:7px;background:#203c47;border:1px solid #78a99f;border-radius:4px}[data-action=pulse].first-pulse{animation:beacon 1.7s ease-in-out infinite}[data-action=crew].available{color:var(--warm)}@keyframes beacon{0%,to{box-shadow:inset 0 0 0 1px #fcd6ab40}50%{box-shadow:inset 0 0 0 2px #ffe1b591,0 0 14px #f5a08d3a}}#panel>h3{font:700 17px var(--display);margin:14px 0 8px}@media(min-width:691px)and (min-height:526px){.section-heading>div{display:grid;gap:11px}.section-heading .kicker{margin:0;line-height:1.5}}.btn:disabled{background:#303a4a;color:#bfbdba;border-color:#4a5261;box-shadow:none}#modal[data-dialog=captain]{width:min(710px,94vw)}#modal[data-dialog=captain] .stat-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:9px 15px;background:radial-gradient(ellipse at 94% 35%,#3c4b58,transparent 64%),linear-gradient(118deg,#233447,#182736)}#modal[data-dialog=captain] .stat-entry{border:0}#modal[data-dialog=captain] .perk{position:relative;padding-left:14px;border-left:2px solid #7b869c}#modal[data-dialog=captain] .perk:nth-child(3n+1){border-left-color:#c0988f}#modal[data-dialog=captain] .perk:nth-child(3n+2){border-left-color:#83b3a9}#modal[data-dialog=captain] .perk:nth-child(3n){border-left-color:#8d9dbd}#modal[data-dialog=captain] .perk.earned{background:linear-gradient(105deg,#3e4243,#293442);border-color:#d1b797}@media(max-width:600px){#modal[data-dialog=captain] .stat-list{gap:7px;padding:5px 8px}#modal[data-dialog=captain] .stat-entry{gap:5px;font-size:11px}}
