:root{font-family:Arial,Helvetica,sans-serif;color:#fff9e6;background:#112a23;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:3px solid #ffcc59;outline-offset:5px}#game,#scene,canvas,.overlay,.vignette{position:absolute;inset:0;width:100%;height:100%}canvas{display:block}.vignette{pointer-events:none;background:linear-gradient(90deg,rgba(7,28,23,.78),transparent 80%),linear-gradient(0deg,rgba(4,22,17,.7),transparent 25%,transparent 75%,rgba(6,25,20,.4))}header{position:absolute;z-index:5;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:30px 42px}.brand{color:#fff9e6;text-decoration:none;font-size:17px;letter-spacing:1px;font-weight:800;display:flex;align-items:center;gap:5px}.brand>span:last-child{font-weight:400}.brand-icon{font-size:36px;color:#d5f48c;margin-right:10px}.edition{font-size:10px;letter-spacing:2px;color:#d6dfcb;display:flex;align-items:center;gap:14px}.edition i,.flight-bottom i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#d5f48c}#sound{font-size:10px;letter-spacing:1px;background:#ffffff0b;border:1px solid #ffffff30;border-radius:5px;padding:10px 14px}.overlay{z-index:3;display:flex;align-items:center;padding:90px 8%}.intro{max-width:660px}.eyebrow{font-size:10px;letter-spacing:2.2px;color:#d5f48c;font-weight:bold;display:flex;align-items:center;gap:10px}.eyebrow>span{width:22px;height:2px;background:#d5f48c}h1{font-size:clamp(54px,6.8vw,105px);letter-spacing:-5px;line-height:1.01;margin:24px 0}h1 em{font-family:Georgia,serif;font-weight:normal;color:#d5f48c}p{font-size:15px;line-height:1.8;color:#cfdbcd;margin:20px 0 25px}.mode-picker{display:flex;gap:10px;margin-bottom:15px}.mode-picker button{background:#0b241cb0;border:1px solid #80988645;padding:14px 17px;border-radius:7px;font-size:10px;letter-spacing:1.2px;text-align:left}.mode-picker button.selected{border-color:#d5f48c;color:#d5f48c;background:#b9ec7515}small{display:block;letter-spacing:0;font-size:11px;color:#adbeaf;font-weight:normal;margin-top:7px}.primary{width:100%;max-width:380px;background:#d5f48c;color:#183528;border-radius:6px;display:flex;align-items:center;justify-content:space-between;padding:19px 23px;font-size:12px;font-weight:bold;letter-spacing:1.2px;transition:background .2s}.primary:hover{background:#e5ffb6}.primary span{font-size:22px}.controls{display:flex;gap:22px;font-size:9px;letter-spacing:1px;color:#c0ccbc;margin-top:28px;align-items:center}.controls>span{display:flex;align-items:center;gap:4px}kbd{font:10px Arial;border:1px solid #b9cbb84a;border-radius:3px;padding:5px 6px;color:#edf3df;display:inline-block;background:#17342955}.tip{font-size:10px;color:#9aac9c;margin-top:12px}.side-note{position:absolute;right:6%;bottom:20%;font-size:10px;letter-spacing:2px}.side-note .line{height:1px;background:#d5f48c70;width:165px;margin:15px 0}.side-note p{font-size:12px;letter-spacing:0;color:#dee7d5}.menu-bottom{position:absolute;bottom:30px;left:42px;right:42px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.4px;color:#afc5b2}.hidden{display:none!important}#hud{position:absolute;inset:0;z-index:2;pointer-events:none}#hud button{pointer-events:auto}.hud-left{position:absolute;left:42px;top:115px}.label{font-size:9px;letter-spacing:2px;color:#d4e2c6}.hud-left b{font-size:50px;letter-spacing:-2px;font-weight:500}.unit{font-size:17px;padding-left:6px;color:#c5d4bd}.record{font-size:10px;letter-spacing:1px;color:#becdb7}.hud-right{position:absolute;right:42px;top:118px;text-align:right}#health{font-size:27px;color:#d5f48c;letter-spacing:5px;margin:5px 0 10px}.speed{font-size:10px;letter-spacing:1px;color:#d4e2c6}.divider{padding:0 10px;color:#7b9684}.flight-bottom{position:absolute;bottom:30px;left:42px;right:42px;display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.5px}.flight-bottom i{margin-right:8px}.flight-bottom button{background:transparent;font-size:9px;letter-spacing:1px}.flight-bottom kbd{margin-left:8px}#reticle{position:absolute;top:48%;left:50%;width:36px;height:20px;border-left:1px solid #ffffff50;border-right:1px solid #ffffff50;transform:translate(-50%,-50%)}#reticle span{position:absolute;left:16px;top:9px;width:3px;height:3px;background:#efffe0;border-radius:50%}#warning{position:absolute;top:24%;left:50%;transform:translateX(-50%);color:#ffe2ac;font-size:12px;font-weight:bold;letter-spacing:2px;text-shadow:0 2px 8px #000;background:#783a0bc9;padding:12px 20px;border-radius:5px;opacity:0;transition:opacity .15s;white-space:nowrap}.card{margin:auto;max-width:460px;width:100%;padding:35px;border:1px solid #90a99255;border-radius:12px;background:#0c251eea;box-shadow:0 25px 80px #0004}h2{font-size:56px;letter-spacing:-3px;margin:22px 0 0}.card p{font-size:13px}.secondary{background:none;width:100%;padding:20px 0 0;color:#bacfb9;font-size:10px;letter-spacing:1.4px}.help{font-size:10px!important;margin-bottom:0}.result{display:flex;align-items:baseline;gap:15px;padding:20px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20}.result b{font-size:60px;font-weight:normal;letter-spacing:-3px}.result span{font-size:9px;letter-spacing:1px;color:#c2d3ba}.stats{display:flex;justify-content:space-between;font-size:9px;color:#b6c9b2;padding:25px 0}.stats b{display:block;color:#d5f48c;font-size:20px;margin-top:6px}#hitFlash{position:absolute;inset:0;pointer-events:none;z-index:7;box-shadow:inset 0 0 160px 65px #bd522b;opacity:0}#loading{position:absolute;bottom:60px;right:40px;color:#d5f48c;font-size:12px;z-index:8}@media(max-width:760px){header{padding:20px}.edition,.side-note,.menu-bottom>span:last-child{display:none}.overlay{padding:90px 25px}h1{font-size:64px}.controls{gap:10px;flex-wrap:wrap}.hud-left{left:20px}.hud-right{right:20px}.flight-bottom{left:20px;right:20px}#near{display:none}.menu-bottom{left:25px;font-size:8px}.intro p{font-size:13px}}@media(max-height:700px){h1{font-size:60px;margin:14px 0}.intro p{margin:10px 0 16px}.controls{margin-top:16px}.overlay{padding-top:85px}.mode-picker button{padding:10px 14px}.primary{padding:13px 22px}.menu-bottom{bottom:15px}}

.difficulty{margin:16px 0}.difficulty>.label{display:block;margin-bottom:9px}.difficulty-picker{display:flex;gap:8px}.difficulty-picker button{flex:1;padding:12px 10px;background:#0b241ccc;border:1px solid #80988665;border-radius:6px;text-align:left;font-size:10px;letter-spacing:1px}.difficulty-picker button.selected{border-color:#d5f48c;background:#b9ec7525;color:#d5f48c}.difficulty-picker small{font-size:10px;white-space:nowrap}.pause-difficulty{margin-top:22px;padding-top:18px;border-top:1px solid #ffffff20}.pause-difficulty label{font-size:9px;letter-spacing:1px;display:block;margin-bottom:8px}.pause-difficulty select{width:100%;padding:10px;border:1px solid #80988665;border-radius:5px;background:#183528;color:#fff9e6}.pause-difficulty small{font-size:10px;text-align:center}.pause-difficulty .secondary{padding:14px 0 4px}@media(max-height:800px){#menu{align-items:flex-start;overflow-y:auto;padding-top:90px;padding-bottom:55px}#menu h1{font-size:52px;margin:12px 0}#menu p{margin:10px 0 14px}#menu .controls{margin-top:16px}.menu-bottom{display:none}.difficulty{margin:12px 0}.difficulty-picker button{padding:9px}.overlay:has(.card){overflow-y:auto}.card{margin:auto}}@media(max-width:400px){.difficulty-picker small{white-space:normal}}

.weapon-hud{position:absolute;bottom:85px;right:42px;text-align:right;display:flex;flex-direction:column;gap:8px;letter-spacing:1px;font-size:10px;color:#d5f48c}.weapon-hud b{font-size:10px;font-weight:normal;color:#eef8dc}.weapon-hud small{font-size:8px;color:#b4c9ab;margin:0}#reticle.locked{border-color:#d5f48c;border-top:1px solid #d5f48c;border-bottom:1px solid #d5f48c}#reticle.firing{box-shadow:0 0 20px #d5f48c99;background:#d5f48c33}.combat-result{font-size:10px!important;letter-spacing:1px;color:#d5f48c!important}.controls{flex-wrap:wrap}@media(max-width:760px){.weapon-hud{right:20px;bottom:80px}}

/* Touch flight deck; pointer events are limited to the actual control surfaces. */
html,body{height:100%;overscroll-behavior:none}#game{height:100dvh}button,select{touch-action:manipulation}.control-select{display:flex;align-items:center;gap:12px;margin:14px 0;font-size:10px;letter-spacing:1px}.control-select select{min-height:44px;flex:1;max-width:230px;border:1px solid #80988680;background:#183528;color:#fff9e6;border-radius:6px;padding:8px;font-size:14px}.touch-help{display:none}.touch-mode .touch-help{display:block;font-size:12px;margin:14px 0;color:#d4e2c6}.touch-mode .controls,.touch-mode .tip,.touch-mode .help{display:none}#touchControls{position:absolute;inset:0;z-index:4;pointer-events:none;user-select:none;-webkit-user-select:none}#touchControls[hidden]{display:none}#touchStick{position:absolute;left:max(24px,env(safe-area-inset-left));bottom:max(30px,env(safe-area-inset-bottom));width:140px;height:140px;border:1px solid #d5f48c75;border-radius:50%;background:#173e32a8;pointer-events:auto;touch-action:none;-webkit-touch-callout:none}.stick-caption{position:absolute;top:-22px;width:100%;text-align:center;font-size:9px;letter-spacing:1px;color:#e0ebd6}.stick-cross{position:absolute;inset:0;display:grid;place-items:center;font-size:64px;font-weight:normal;color:#d5f48c20}#stickKnob{position:absolute;left:50%;top:50%;width:54px;height:54px;transform:translate(-50%,-50%);border-radius:50%;background:#d5f48caa;border:2px solid #e7ffb6;pointer-events:none}.touch-actions{position:absolute;right:max(24px,env(safe-area-inset-right));bottom:max(30px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:16px}.touch-actions button{width:90px;height:90px;border:2px solid #d5f48c99;border-radius:50%;background:#173e32c9;font-size:12px;letter-spacing:1px;font-weight:bold;pointer-events:auto;touch-action:none;-webkit-touch-callout:none;user-select:none}.touch-actions button span{display:block;font-size:8px;margin-top:7px;color:#c6d9b8}.touch-actions #touchShoot{width:108px;height:108px;background:#d5f48cdd;color:#173528}.touch-actions #touchShoot span{color:#365335}.touch-actions button.held{background:#fff3ae!important;color:#173528;box-shadow:0 0 24px #d5f48c80;transform:scale(.95)}.rotate-hint{display:none}.touch-mode[data-playing="true"] .flight-bottom{position:static}.touch-mode[data-playing="true"] .flight-bottom>span{display:none}.touch-mode[data-playing="true"] #pause{position:absolute;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);min-height:44px;min-width:82px;border:1px solid #d5f48c80;border-radius:6px;background:#163a2dd9}.touch-mode #pause kbd{display:none}.touch-mode[data-playing="true"] header .edition,.touch-mode[data-playing="true"] header .brand{display:none}.touch-mode[data-playing="true"] header{padding:12px max(16px,env(safe-area-inset-right));justify-content:flex-end;pointer-events:none}.touch-mode[data-playing="true"] #sound{pointer-events:auto;min-height:44px}.touch-mode[data-playing="true"] .hud-left,.touch-mode[data-playing="true"] .hud-right{top:75px}.touch-mode[data-playing="true"] .weapon-hud{right:max(24px,env(safe-area-inset-right));bottom:165px}.touch-mode[data-playing="true"] #warning{top:31%;font-size:10px;max-width:90%;white-space:normal;text-align:center}.touch-mode .overlay{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right));padding-bottom:max(30px,env(safe-area-inset-bottom))}.touch-mode .secondary,.touch-mode .mode-picker button,.touch-mode .difficulty-picker button{min-height:44px}
@media(orientation:portrait){.touch-mode .rotate-hint{display:block;position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:9px;color:#d1ddc4}.touch-mode #touchStick{width:120px;height:120px;left:max(16px,env(safe-area-inset-left));bottom:max(38px,env(safe-area-inset-bottom))}.touch-mode .touch-actions{right:max(16px,env(safe-area-inset-right));gap:10px;bottom:max(38px,env(safe-area-inset-bottom))}.touch-mode .touch-actions button{width:68px;height:68px}.touch-mode .touch-actions #touchShoot{width:84px;height:84px}.touch-mode .weapon-hud{bottom:185px!important}.touch-mode .hud-left b{font-size:36px}.touch-mode .side-note{display:none}}
@media(max-height:500px) and (orientation:landscape){header{padding:8px 24px}.brand{font-size:13px}.brand-icon{font-size:26px}.edition{display:none}#menu{padding-top:60px;padding-bottom:25px}.intro{width:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;column-gap:24px;align-content:start}#menu .eyebrow,#menu .side-note,#menu .menu-bottom,#menu .controls,#menu .tip{display:none}#menu h1{font-size:42px;letter-spacing:-2px;grid-column:1;grid-row:1 / 3}#menu .intro>p:not(.touch-help){grid-column:1;grid-row:3;font-size:12px;margin:0}#menu .mode-picker{grid-column:2;grid-row:1;margin:0}#menu .difficulty{grid-column:2;grid-row:2;margin:8px 0}#menu .control-select{grid-column:1;grid-row:4;margin:8px 0}#menu #start{grid-column:2;grid-row:3 / 5;align-self:start;margin-top:4px}#menu .touch-help{grid-column:1 / 3;font-size:11px;margin:8px 0}.difficulty-picker small{white-space:normal}.touch-mode #touchStick{width:112px;height:112px;bottom:max(16px,env(safe-area-inset-bottom))}.touch-mode .touch-actions{bottom:max(16px,env(safe-area-inset-bottom))}.touch-mode .touch-actions button{width:70px;height:70px}.touch-mode .touch-actions #touchShoot{width:86px;height:86px}.touch-mode .weapon-hud{bottom:116px!important;font-size:9px;gap:4px}.touch-mode .weapon-hud small{display:none}.touch-mode[data-playing="true"] .hud-left,.touch-mode[data-playing="true"] .hud-right{top:64px}.touch-mode .hud-left b{font-size:30px}.touch-mode #health{font-size:20px;margin:3px 0}.touch-mode .record{display:none}.overlay:has(.card){padding-top:65px;padding-bottom:20px}.card{padding:20px}h2{font-size:38px;margin:8px 0}}

/* Flight settings and a real, high-contrast return action. */
#menu{align-items:flex-start;overflow-y:auto}
#back.base-button{min-height:48px;margin-top:14px;padding:15px 20px;border:1px solid #d5f48c;border-radius:6px;background:#254f3c;color:#fff9e6;font-weight:bold}
#back.base-button:hover{background:#35674e}
#rotatePrompt{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid #d5f48c80;border-radius:12px;background:#173528;color:#fff9e6}
#rotatePrompt::backdrop{background:#071c17dc}
#rotatePrompt h2{font-size:38px;letter-spacing:-1px}
#rotatePrompt .primary{width:100%;min-height:48px;padding:18px 12px}
@media(max-height:500px) and (orientation:landscape){#menu .aim-select{grid-column:1;grid-row:5}.touch-mode .weapon-hud small{display:block}}
