@font-face{font-family:Orbitron;font-weight:400;font-display:swap;src:url('/orbitron-400.woff2') format('woff2')}
@font-face{font-family:Orbitron;font-weight:700;font-display:swap;src:url('/orbitron-700.woff2') format('woff2')}
@font-face{font-family:Orbitron;font-weight:900;font-display:swap;src:url('/orbitron-900.woff2') format('woff2')}
:root{color-scheme:dark;--bg:#070d1a;--panel:#111e33;--text:#f2f6ff;--muted:#a9b8d0;--cyan:#65dfff;--amber:#ffc857;--danger:#ff6377;--mint:#57d99b;--line:#304359;--body:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--display:Orbitron,var(--body)}
*{box-sizing:border-box} [hidden]{display:none!important}
html,body{margin:0;background:var(--bg);height:100%;width:100%;overflow:hidden;font-family:var(--body);color:var(--text);overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none;position:fixed;inset:0}
#wrap{display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
canvas{display:block;touch-action:none;background:var(--bg)}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
button,input{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:12px 20px;color:var(--text);background:#182a41;cursor:pointer;font-weight:600;touch-action:manipulation;transition:background .16s,border-color .16s,transform .16s}
button:hover{background:#223d56;border-color:#5888a4}button:active{transform:translateY(1px)}button:disabled{cursor:default}button[aria-disabled=true]{color:var(--muted)}
:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}h1:focus,h2:focus,canvas:focus{outline:none}
.primary{background:var(--amber);color:#101724;border-color:var(--amber);font-weight:750;box-shadow:0 6px 30px #ffc85716}.primary:hover{background:#ffda86;border-color:#ffda86}.quiet{background:transparent;border-color:transparent;color:var(--muted)}.quiet:hover{color:var(--text);background:#adcaff0b;border-color:#adcaff22}
h1,h2,h3,p{margin:0}h2{font-family:var(--display);font-size:clamp(24px,3vw,36px);line-height:1.25;letter-spacing:-.035em}h3{font-size:18px;font-weight:650}p{line-height:1.5}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;line-height:1.4}.cyan{color:var(--cyan)}.amber{color:var(--amber)}.muted{color:var(--muted)}kbd{font:12px var(--body);border:1px solid #536175;border-radius:4px;padding:2px 5px;color:var(--muted);white-space:nowrap}
#ui{position:fixed;inset:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);pointer-events:none}
.screen{width:100%;height:100%;pointer-events:auto;overflow-y:auto;touch-action:pan-y;scrollbar-color:#385676 transparent}
.home{max-width:1280px;margin:auto;padding:32px 56px;display:flex;flex-direction:column;justify-content:center;gap:24px}.home-top{display:flex;justify-content:space-between;align-items:center}.home-top>.eyebrow{color:var(--muted);display:flex;align-items:center;gap:10px}.status-dot{width:6px;height:6px;background:var(--mint);border-radius:50%;box-shadow:0 0 14px #57d99b70}
.callsign{font-size:14px;padding:8px 12px;gap:14px}.callsign>[data-text=pilot]{color:var(--text)}.callsign .muted{font-weight:400;font-size:13px}.home-grid{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:24px;flex:1;max-height:600px}.home-copy h1{font:900 clamp(48px,5.7vw,82px)/1.07 var(--display);letter-spacing:-.05em;margin:24px 0}.home-copy h1 span{color:var(--cyan)}.hero-intro{font-size:clamp(18px,2vw,24px);color:var(--muted);line-height:1.45;margin-bottom:30px}.launch{min-width:285px;justify-content:space-between;padding:18px 24px;font-size:18px}.secondary-nav{display:flex;flex-wrap:wrap;gap:2px;margin:16px 0 8px}.secondary-nav button{font-size:14px;padding:10px 12px}.secondary-nav .icon{width:18px;height:18px}.keyboard-hint{font-size:13px;color:var(--muted)}.keyboard-hint span{margin:0 8px}.home-footer{display:flex;gap:40px;border-top:1px solid #a9b8d022;padding-top:22px;color:var(--muted);font-size:13px}.home-footer b{font-size:20px;color:var(--text);font-variant-numeric:tabular-nums;margin-right:9px;font-weight:500}
.hangar{height:470px;position:relative;display:flex;align-items:center;justify-content:center}.hero-jet{width:78%;height:94%;position:relative;filter:drop-shadow(0 12px 26px #0007);animation:float 7s ease-in-out infinite}.radar{position:absolute;border:1px solid #65dfff22;border-radius:50%;aspect-ratio:1;width:96%;max-height:96%}.radar-inner{width:69%;border-style:dashed;border-color:#65dfff17}.hangar-cross{position:absolute;width:100%;height:1px;background:linear-gradient(90deg,transparent,#65dfff28,transparent)}.hangar-cross:after{content:'';display:block;width:1px;height:440px;background:linear-gradient(transparent,#65dfff28,transparent);position:absolute;left:50%;top:-220px}.aircraft-label{position:absolute;bottom:0;right:0;display:grid;gap:7px;border-left:2px solid var(--cyan);padding-left:12px;color:var(--muted)}.aircraft-label strong{font-size:14px;font-weight:400}.aircraft-label .eyebrow{font-size:10px}
.modal-screen{display:flex;align-items:center;justify-content:center;padding:32px;background:#03091680}.panel{background:linear-gradient(145deg,#13233bee,#0c1729f5);border:1px solid #344860;border-radius:24px;padding:36px;box-shadow:0 24px 90px #0005;width:100%;margin:auto}.panel .eyebrow{margin-bottom:12px}.wide{max-width:1000px}.narrow{max-width:480px}.subhead{color:var(--muted);font-size:16px;margin:12px 0 26px}.back{margin-top:24px;padding-left:0}.difficulty-grid,.upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;padding:24px;gap:16px;background:#0a1629;border-color:#344860;border-radius:16px;font-weight:400;min-height:240px}.choice>strong{font-size:26px;font-weight:700}.choice>span:not(.tag):not(.upgrade-icon){font-size:16px;line-height:1.5;color:var(--muted)}.tag{font-size:11px;font-weight:750;letter-spacing:.08em;color:var(--cyan)}.choice small{margin-top:auto;width:100%;display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--muted)}.choice small b{color:var(--text);font-weight:550}.choice.is-selected{background:#112b3e;border-color:var(--cyan);box-shadow:inset 0 0 0 1px #65dfff35}.choice:hover{background:#163348;border-color:var(--cyan)}
[data-menu].is-selected:not(.primary),[data-pause].is-selected:not(.primary),[data-end].is-selected:not(.primary){color:var(--cyan);border-color:#65dfff66;background:#65dfff09}.score-list{display:grid;gap:8px}.score-list>div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #304359;padding:18px 0;color:var(--muted)}.score-list strong{font-size:26px;color:var(--amber);font-variant-numeric:tabular-nums}.settings-panel{max-width:780px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px;margin-top:26px}.settings-grid h3{margin-bottom:16px}.slider-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin:18px 0;font-size:15px;color:var(--muted)}.slider-row output{font-variant-numeric:tabular-nums;color:var(--text);min-width:40px;text-align:right}.slider-row input{grid-column:1/-1;width:100%;height:24px;accent-color:var(--cyan);cursor:pointer;touch-action:pan-y;margin:0}.toggle{display:flex;align-items:flex-start;gap:12px;font-size:16px;margin:20px 0;line-height:1.35;cursor:pointer}.toggle input{width:20px;height:20px;accent-color:var(--cyan);flex-shrink:0;margin:0}.toggle small{display:block;font-size:14px;color:var(--muted);margin-top:7px}.setting-note{font-size:14px;color:var(--muted);margin-top:24px}.button-stack{display:grid;gap:10px}.button-stack .primary{justify-content:space-between}.help-link{margin-top:20px;padding-left:0}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:30px}.help-grid p{font-size:16px;color:var(--muted);margin-top:12px}.number{color:var(--cyan);font:700 16px var(--display);display:block;margin-bottom:14px}.upgrade-card{min-height:220px}.upgrade-card>strong{font-size:20px}.upgrade-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #65dfff44;border-radius:12px;color:var(--cyan);background:#65dfff0b}.result-panel{max-width:600px;text-align:center}.result-panel .eyebrow{color:var(--mint)}.result-panel.is-defeat .eyebrow{color:var(--danger)}.result-score{display:flex;flex-direction:column;gap:8px;margin:24px 0}.result-score>span:first-child{font-size:12px;letter-spacing:.15em;color:var(--muted)}.result-score>strong{font:700 56px var(--display);color:var(--amber);letter-spacing:-.04em}.record{font-size:14px;color:var(--cyan)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:20px 0;border-block:1px solid var(--line)}.result-stats>div{display:grid;gap:8px}.result-stats span{font-size:13px;color:var(--muted)}.result-stats strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}.bonus-note{color:var(--muted);font-size:14px;margin:16px 0 24px}.result-actions{display:flex;justify-content:center;gap:10px}.result-actions .primary{min-width:180px}
#hud{position:absolute;inset:16px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;font-variant-numeric:tabular-nums}.hud-top{display:flex;align-items:flex-start;gap:12px}.hud-card{background:#0b162bec;border:1px solid #536a873d;border-radius:12px;padding:12px 16px;box-shadow:0 4px 20px #0002}.hud-health{width:238px}.hud-row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.hud-row>span{display:flex;align-items:center;gap:6px;color:var(--muted)}.hud-row .icon{width:16px;height:16px}.hud-row strong{font-weight:650}.xp-label{margin-top:10px;font-size:14px}.hud-health progress{display:block;height:6px;width:100%;border:none;border-radius:6px;margin-top:8px;background:#24354b;overflow:hidden;appearance:none}.hud-health progress::-webkit-progress-bar{background:#24354b;border-radius:6px}.hud-health progress::-webkit-progress-value{background:var(--mint);border-radius:6px}.hud-health progress::-moz-progress-bar{background:var(--mint)}.hud-health #xp-progress::-webkit-progress-value{background:var(--cyan)}.hud-health #xp-progress::-moz-progress-bar{background:var(--cyan)}.hud-health.is-critical #shield-progress::-webkit-progress-value{background:var(--danger)}.hud-timer{display:grid;gap:4px;min-width:120px}.hud-timer>span,.hud-score>span{font-size:11px;font-weight:650;letter-spacing:.1em;color:var(--muted)}.hud-timer strong{font-size:30px;font-weight:650;line-height:1.1}.hud-timer.is-critical strong{color:var(--danger)}.hud-score{margin-left:auto;display:grid;gap:4px;text-align:right;min-width:100px}.hud-score strong{font-size:24px;font-weight:650}.hud-pause{width:48px;height:48px;padding:0;background:#0b162bed;pointer-events:auto}.hud-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.loadout{display:grid;gap:6px;min-width:200px;max-width:300px}.loadout .eyebrow{font-size:12px;color:var(--muted);letter-spacing:.04em}.loadout strong{font-size:18px}.loadout>.muted{font-size:14px}.combat-controls{display:flex;gap:10px;align-items:flex-end;pointer-events:auto}.combat-controls button{width:88px;min-height:96px;display:flex;flex-direction:column;gap:6px;background:#0b162bee;padding:10px 4px;font-size:12px;font-weight:500;position:relative;touch-action:none;border-color:#536a8777}.combat-controls button>.icon{width:24px;height:24px;color:var(--cyan)}.combat-controls button>span{white-space:nowrap}.combat-controls b{color:var(--text)}.combat-controls .missile-control>.icon{color:var(--amber)}.combat-controls button[aria-disabled=true]{background:#0b162bea}.combat-controls button[aria-disabled=true]>.icon{color:var(--muted)}.cooldown-ring{position:absolute;top:4px;width:38px;height:38px;fill:none;stroke:var(--cyan);stroke-width:2;transform:rotate(-90deg);pointer-events:none}.cooldown-ring circle{stroke-dasharray:170;stroke-dashoffset:170}.steer-hint{font-size:14px;color:var(--text);background:#0b162bee;padding:8px 12px;border-radius:8px;margin-bottom:8px}.touch .desktop-only,.touch .keyboard-hint{display:none}#countdown{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#070d1a55}#countdown>.eyebrow{color:var(--muted)}#countdown>strong{font:900 clamp(70px,12vw,150px) var(--display);color:var(--amber)}#countdown p{font-size:20px;color:var(--text)}
#alias-dialog{color:var(--text);background:linear-gradient(145deg,#14233b,#0c1729);border:1px solid #47617c;border-radius:20px;padding:32px;width:min(500px,calc(100vw - 40px));max-height:calc(100dvh - 32px);overflow-y:auto;touch-action:pan-y;box-shadow:0 24px 100px #0008}#alias-dialog::backdrop{background:#030916dd}#alias-dialog .eyebrow{color:var(--cyan);margin-bottom:12px}#alias-dialog h1{font:700 24px/1.3 var(--display);margin-bottom:24px;letter-spacing:-.03em}#alias-dialog label{display:block;font-size:15px;margin-bottom:10px}#player-alias{width:100%;border:1px solid #58718f;border-radius:10px;padding:12px;font:20px var(--body);background:#070f1f;color:var(--text);user-select:text;-webkit-user-select:text;touch-action:auto}#alias-hint,#alias-error{font:14px/1.5 var(--body);margin:12px 0;color:var(--muted)}#alias-error{color:#ff9aaa;min-height:21px}.alias-actions{display:flex;flex-wrap:wrap;gap:8px}.alias-actions button{font-size:14px;padding:10px 16px}.alias-actions button[type=submit]{background:var(--amber);color:#101724;border-color:var(--amber)}
#rotate{display:none;position:fixed;inset:0;z-index:50;background:var(--bg);color:var(--text);flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;gap:20px}#rotate.show{display:flex}#rotate h2{font-size:24px}#rotate p{font-size:16px;color:var(--muted);max-width:320px}.phone-outline{width:46px;height:78px;border:3px solid var(--cyan);border-radius:10px;transform:rotate(90deg)}
@keyframes float{50%{transform:translateY(-8px)}}
@media(max-width:900px){.home{padding:24px 32px;gap:16px}.home-copy h1{font-size:54px;margin:16px 0}.home-grid{gap:0}.hangar{height:330px}.home-footer{gap:24px}.home-footer span{font-size:12px}.home-footer b{font-size:16px}.secondary-nav{gap:0}.secondary-nav button{padding:10px 8px}.settings-grid{gap:24px}.choice{padding:18px;gap:12px}.choice>strong{font-size:22px}.panel{padding:28px}.help-grid{gap:18px}.modal-screen{padding:20px}.hud-health{width:210px}.hud-card{padding:10px 12px}.hud-timer strong{font-size:26px}.steer-hint{display:none}}
@media(max-height:550px){.home{padding:16px 32px;gap:8px;justify-content:flex-start}.home-top{min-height:40px}.home-top>.eyebrow{font-size:10px}.home-grid{max-height:none;min-height:230px;flex:1;grid-template-columns:1.15fr .85fr}.home-copy>.eyebrow{font-size:10px}.home-copy h1{font-size:40px;margin:8px 0;line-height:1.02}.home-copy h1 br{display:none}.home-copy h1 span:before{content:' '}.hero-intro{font-size:16px;margin-bottom:12px}.hero-intro br{display:none}.launch{min-width:250px;font-size:16px;min-height:48px;padding:12px 18px}.secondary-nav{margin:4px 0}.secondary-nav button{min-height:44px;font-size:14px;padding:8px}.keyboard-hint{display:none}.hangar{height:240px}.hero-jet{height:95%}.aircraft-label{bottom:0;right:0}.aircraft-label strong{display:none}.home-footer{padding-top:10px;gap:30px}.home-footer span{font-size:12px}.home-footer b{font-size:16px}.panel{padding:22px 26px;border-radius:18px}.modal-screen{padding:16px}h2{font-size:24px}.panel .eyebrow{margin-bottom:6px}.subhead{margin:8px 0 16px;font-size:15px}.difficulty-grid,.upgrade-grid{margin-top:14px;gap:12px}.choice{padding:16px;gap:10px;min-height:176px}.choice>strong{font-size:21px}.choice>span:not(.tag):not(.upgrade-icon){font-size:14px;line-height:1.4}.choice small{font-size:13px}.back{margin-top:12px}.settings-grid{margin-top:14px;gap:32px}.settings-grid h3{margin-bottom:8px}.slider-row{margin:10px 0;gap:4px}.toggle{margin:12px 0;font-size:15px}.toggle small,.setting-note{font-size:13px}.setting-note{margin-top:14px}.pause-panel{max-width:460px}.pause-panel .subhead{margin-bottom:14px}.button-stack{gap:6px}.help-link{margin-top:8px}.help-grid{margin-top:18px}.help-grid p{font-size:14px}.help-grid h3{font-size:17px}.number{margin-bottom:8px}.upgrade-icon{width:36px;height:36px}.upgrade-card>strong{font-size:18px}.result-panel{max-width:700px}.result-panel .subhead{margin-bottom:10px}.result-score{margin:10px 0;gap:3px}.result-score>strong{font-size:38px}.result-stats{padding:10px 0;gap:10px}.result-stats>div{gap:4px}.bonus-note{margin:8px 0 12px}.result-actions button{min-height:44px}.hud-top{gap:8px}#hud{inset:10px}.hud-health{width:200px;padding:8px 10px}.hud-row{font-size:14px}.xp-label{margin-top:6px}.hud-health progress{height:4px;margin-top:5px}.hud-timer{min-width:112px}.hud-timer>span,.hud-score>span{font-size:10px}.hud-timer strong{font-size:25px}.hud-score strong{font-size:21px}.hud-pause{width:48px;height:48px}.loadout{min-width:170px;max-width:230px;padding:8px 10px;gap:3px}.loadout strong{font-size:16px}.loadout .eyebrow{font-size:12px}.loadout>.muted{font-size:14px}.combat-controls{gap:8px}.combat-controls button{width:72px;min-height:66px;padding:8px 4px;font-size:14px}.combat-controls button>.icon{width:21px;height:21px}.combat-controls .desktop-only{display:none}.cooldown-ring{width:33px;height:33px;top:2px}#countdown>strong{font-size:76px}#countdown p{font-size:18px}#alias-dialog{padding:18px 24px;width:min(600px,calc(100vw - 48px))}#alias-dialog h1{font-size:22px;margin-bottom:12px}#alias-dialog .eyebrow{margin-bottom:6px}#alias-hint{margin:8px 0}#alias-error{margin:4px 0}}
@media(max-width:600px) and (min-height:551px){.home{padding:20px}.home-grid{grid-template-columns:1fr}.hangar{display:none}.home-top>.eyebrow{font-size:9px}.callsign{padding:8px;gap:6px}.callsign .muted{font-size:11px}.home-copy h1{font-size:50px}.home-footer{gap:14px;flex-wrap:wrap}.home-footer span{display:grid;gap:4px}.difficulty-grid,.upgrade-grid,.help-grid,.settings-grid{grid-template-columns:1fr}.choice{min-height:180px}.modal-screen{align-items:flex-start}.panel{padding:22px}.hud-health{width:165px}.hud-score{display:none}.hud-top{gap:8px}.hud-card{padding:8px}.combat-controls button{width:56px;font-size:11px}.loadout{min-width:140px;max-width:170px}.result-actions{flex-wrap:wrap}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.screen{position:absolute;inset:0;z-index:20}.home{left:0;right:0}.home:not([hidden]){background:linear-gradient(90deg,#070d1a55,transparent)}#hud{z-index:5}#countdown{z-index:10}
.home:not([hidden]){background:none}
.hud-timer>span,.hud-score>span{font-size:12px;letter-spacing:.05em}
.touch kbd{display:none}
@media(max-height:550px){
  .home-grid{flex:1 0 auto}.home-top,.home-footer{flex-shrink:0}
  .hangar-cross:after{height:220px;top:-110px}
  [data-screen=diff] .panel{padding:18px 24px}
  [data-screen=diff] .choice{min-height:160px}
  [data-screen=diff] .back{margin-top:6px}
}
@media(max-width:620px) and (max-height:550px){
  .home{padding:12px 24px}.home-grid{grid-template-columns:1fr;min-height:0;flex:1 0 auto}
  .home-copy h1{font-size:34px}.hangar,.home-footer{display:none}
  .hero-intro{font-size:16px}.secondary-nav{flex-wrap:nowrap}.secondary-nav button{padding:8px;font-size:14px}
}
