:root{--hud-green: #b7ff7a;--hud-amber: #ffbe3b;--hud-red: #ff4757;--hud-bg: rgba(8, 16, 22, .48);--hud-border: rgba(183, 255, 122, .35)}*{box-sizing:border-box;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}html,body,#app{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#0b1622;font-family:Segoe UI,system-ui,-apple-system,sans-serif;color:#e9f2f7;overscroll-behavior:none}#scene-canvas{display:block;width:100%;height:100%}.hidden{display:none!important}#blackout-vignette,#damage-vignette{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;z-index:5}#blackout-vignette{background:radial-gradient(ellipse at center,#0000 32%,#000000a6 72%,#000000f5);transition:opacity .08s linear}#damage-vignette{background:radial-gradient(ellipse at center,#ff1e2800 45%,#dc1420ad)}#reticle-layer{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none}.reticle-aim,.reticle-nose,#lead-ring,#target-box{z-index:10}.reticle-aim{position:absolute;width:50px;height:50px;margin-left:-25px;margin-top:-25px;border-radius:50%;border:2px solid rgba(255,255,255,.85);box-shadow:0 0 8px #0000008c;will-change:transform}.reticle-aim .tick{position:absolute;background:#ffffffe6}.reticle-aim .tick-t{width:2px;height:5px;left:50%;top:-5px;transform:translate(-50%)}.reticle-aim .tick-b{width:2px;height:5px;left:50%;bottom:-5px;transform:translate(-50%)}.reticle-aim .tick-l{width:5px;height:2px;top:50%;left:-5px;transform:translateY(-50%)}.reticle-aim .tick-r{width:5px;height:2px;top:50%;right:-5px;transform:translateY(-50%)}.reticle-nose{position:absolute;width:24px;height:24px;margin-left:-12px;margin-top:-12px;will-change:transform}.reticle-nose .cross-h{position:absolute;left:0;top:50%;width:100%;height:2px;margin-top:-1px;background:var(--hud-green);box-shadow:0 0 4px #000c}.reticle-nose .cross-v{position:absolute;top:0;left:50%;width:2px;height:100%;margin-left:-1px;background:var(--hud-green);box-shadow:0 0 4px #000c}.reticle-nose .cross-dot{position:absolute;left:50%;top:50%;width:4px;height:4px;margin-left:-2px;margin-top:-2px;border-radius:50%;background:#fff}#hit-marker{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px}#hit-marker:before,#hit-marker:after{content:"";position:absolute;left:50%;top:50%;width:22px;height:2.5px;margin-left:-11px;margin-top:-1.25px;background:#ffea61;box-shadow:0 0 6px #ff5028e6}#hit-marker:before{transform:rotate(45deg)}#hit-marker:after{transform:rotate(-45deg)}#lead-ring{position:absolute;width:24px;height:24px;margin-left:-12px;margin-top:-12px;border-radius:50%;border:2px solid rgba(235,244,252,.88);background:#ffffff14;box-shadow:0 0 6px #000000bf;will-change:transform}#target-box{position:absolute;margin-left:-13px;margin-top:-13px;width:26px;height:26px;will-change:transform}.target-diamond{width:100%;height:100%;border:2px solid #ff5252;transform:rotate(45deg);box-shadow:0 0 6px #000000b3}#target-label{position:absolute;top:30px;left:50%;transform:translate(-50%);white-space:nowrap;font-size:11px;font-weight:700;color:#ff6b6b;text-shadow:0 1px 3px rgba(0,0,0,.95)}#offscreen-arrow{position:absolute;z-index:26;width:34px;height:34px;margin-left:-17px;margin-top:-17px;display:flex;flex-direction:column;align-items:center;justify-content:center;will-change:transform}.arrow-shape{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:15px solid #ff4757;filter:drop-shadow(0 0 4px rgba(0,0,0,.9))}#offscreen-dist{position:absolute;font-size:10px;font-weight:700;color:#ff7b89;text-shadow:0 1px 3px rgba(0,0,0,.95);white-space:nowrap}#touch-zone-left{position:fixed;left:0;top:0;width:52%;height:100%;z-index:15}#touch-zone-right{position:fixed;left:52%;top:0;width:48%;height:100%;z-index:15}#joystick-base{position:absolute;width:96px;height:96px;margin-left:-48px;margin-top:-48px;border-radius:50%;border:2px solid rgba(255,255,255,.45);background:radial-gradient(circle,#ffffff14,#00000047);pointer-events:none}#joystick-knob{position:absolute;left:50%;top:50%;width:38px;height:38px;margin-left:-19px;margin-top:-19px;border-radius:50%;background:#b7ff7ac7;border:2px solid #ffffff;box-shadow:0 2px 10px #00000080}#left-hud{position:fixed;left:max(8px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top));display:flex;flex-direction:column;align-items:flex-start;gap:8px;z-index:25;pointer-events:none}#flight-readout{background:var(--hud-bg);border:1px solid var(--hud-border);border-radius:10px;padding:6px 9px;min-width:108px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#hud-mode-badge{font-size:10px;font-weight:800;color:#ffe27a;letter-spacing:.4px;margin-bottom:3px}#hud-mode-badge.realistic{color:#ff8e6e}.stat-row{display:flex;align-items:baseline;justify-content:space-between;gap:4px;line-height:1.28;font-variant-numeric:tabular-nums}.stat-k{font-size:10px;color:#b7ff7ad9;font-weight:700;width:24px}.stat-v{font-size:14px;font-weight:700;color:#fff;text-align:right;flex:1}.stat-v.warn{color:var(--hud-amber)}.stat-v.danger{color:var(--hud-red)}.stat-u{font-size:9px;color:#fff9;width:24px}.hp-row{display:flex;align-items:center;gap:5px;margin-top:4px}.hp-label{font-size:9px;font-weight:700;color:#9be8ff;width:16px}.hp-bar-bg{flex:1;height:6px;border-radius:4px;background:#0000008c;border:1px solid rgba(255,255,255,.2);overflow:hidden}#hud-hp-fill{width:100%;height:100%;background:linear-gradient(to right,#ff4757,#35c46a);transition:width .12s ease-out}#hud-kills{margin-top:3px;font-size:10px;font-weight:700;color:#ffe27a;display:flex;justify-content:space-between}#hud-warnings{margin-top:2px;font-size:10px;font-weight:700;color:var(--hud-red);min-height:12px}#throttle-wrap{pointer-events:auto;display:flex;flex-direction:column;align-items:center;height:185px;width:42px;padding:6px 4px;background:var(--hud-bg);border:1px solid var(--hud-border);border-radius:10px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.throttle-label{font-size:9px;font-weight:700;letter-spacing:.5px;color:var(--hud-green);margin-bottom:4px}#throttle-track{position:relative;flex:1;width:20px;background:#00000073;border:1px solid rgba(255,255,255,.22);border-radius:6px;overflow:hidden}#throttle-wep-zone{position:absolute;top:0;left:0;right:0;height:9.1%;background:#ff475747}#throttle-100-line{position:absolute;top:9.1%;left:0;right:0;height:1px;background:#ffbe3bd9}#throttle-fill{position:absolute;bottom:0;left:0;right:0;height:77%;background:linear-gradient(to top,#35c46a,#b7ff7a);pointer-events:none}#throttle-fill.wep{background:linear-gradient(to top,#ff9f1a,#ff3f34)}#throttle-thumb{position:absolute;left:-2px;right:-2px;height:7px;margin-bottom:-3.5px;bottom:77%;background:#fff;border-radius:3px;box-shadow:0 0 6px #000c;pointer-events:none}#overheat-bar-wrap{width:20px;height:5px;margin-top:5px;background:#0000008c;border-radius:3px;overflow:hidden;border:1px solid rgba(255,255,255,.2)}#overheat-bar-fill{width:0%;height:100%;background:linear-gradient(to right,#ffbe3b,#ff3838)}#right-controls{position:fixed;right:max(10px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));bottom:max(10px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;z-index:30;pointer-events:none}#top-right-bar{display:flex;gap:6px;pointer-events:auto}.icon-btn,.pill-btn{height:36px;border-radius:10px;border:1px solid var(--hud-border);background:var(--hud-bg);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.icon-btn{width:36px;font-size:17px}.pill-btn{padding:0 10px;font-size:11px;font-weight:700}.icon-btn:active,.pill-btn:active{transform:scale(.94);background:#b7ff7a40}#tuner-panel{pointer-events:auto;position:absolute;top:44px;right:0;width:236px;max-height:calc(100dvh - 80px);overflow-y:auto;background:#0a121aeb;border:1px solid var(--hud-border);border-radius:12px;padding:10px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);touch-action:pan-y;z-index:40}.tuner-header{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:var(--hud-green);margin-bottom:6px}.tuner-header button,.tuner-mute-row button{background:#ffffff24;border:1px solid rgba(255,255,255,.28);color:#fff;font-size:11px;border-radius:6px;padding:2px 9px;cursor:pointer}.tuner-mute-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#d6e4ed;padding-top:6px;margin-top:6px;border-top:1px solid rgba(255,255,255,.12)}.tuner-mute-row button.muted{background:#ff475766;border-color:var(--hud-red)}.tuner-item{margin-bottom:6px}.tuner-item-head{display:flex;justify-content:space-between;font-size:11px;color:#d6e4ed;margin-bottom:2px}.tuner-item input[type=range]{width:100%;accent-color:var(--hud-green);height:16px;margin:0;touch-action:pan-x}#right-utility-pad{pointer-events:auto;position:absolute;top:46px;right:0;display:flex;flex-direction:column;gap:6px;align-items:flex-end}.action-btn{min-width:66px;height:32px;padding:0 10px;border-radius:9px;border:1px solid rgba(255,255,255,.28);background:#0c1620a6;color:#fff;font-size:11px;font-weight:700;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.action-btn.active{border-color:var(--hud-red);background:#ff475773}.action-btn.subtle{height:28px;font-size:10px;opacity:.86}#combat-pad{pointer-events:none;position:fixed;right:max(22px,calc(env(safe-area-inset-right) + 18px));bottom:max(136px,calc(env(safe-area-inset-bottom) + 124px));display:flex;align-items:center}#btn-fire{pointer-events:auto;position:relative;width:78px;height:78px;border-radius:50%;border:2px solid rgba(255,110,75,.78);background:radial-gradient(circle,#ff523857,#121820b8);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 16px #0000008c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#btn-fire.firing{transform:scale(.95);background:radial-gradient(circle,#ff6c3ca6,#501210d1)}#btn-fire.overheated{border-color:#ff4757f2;background:radial-gradient(circle,#ff2d4173,#190c10d1)}.fire-heat-svg{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;width:calc(100% + 8px);height:calc(100% + 8px);transform:rotate(-90deg);pointer-events:none}.heat-track{fill:none;stroke:#ffffff24;stroke-width:4}.heat-arc{fill:none;stroke:#ff9f1a;stroke-width:4.5;stroke-linecap:round;stroke-dasharray:264;stroke-dashoffset:264}#btn-fire.overheated .heat-arc{stroke:#ff3838}.fire-label{font-size:13px;font-weight:800;letter-spacing:.8px}.fire-sub{font-size:9px;color:#ffe0b4d1}#mode-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#060c12b8;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:18px}.mode-card{width:100%;max-width:360px;background:#0c1622eb;border:1px solid var(--hud-border);border-radius:16px;padding:20px 18px;text-align:center}.mode-eyebrow{font-size:10px;font-weight:700;letter-spacing:1px;color:#ffe27a;margin-bottom:4px}.mode-card h1{margin:0 0 14px;font-size:20px;color:#fff}.mode-options{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.mode-option{text-align:left;padding:12px 14px;border-radius:12px;border:1.5px solid rgba(255,255,255,.22);background:#ffffff0f;color:#fff;cursor:pointer}.mode-option.arcade{border-color:#b7ff7a8c;background:linear-gradient(135deg,#b7ff7a24,#12222aa6)}.mode-option.realistic{border-color:#ff9f438c;background:linear-gradient(135deg,#ff844324,#1c181ca6)}.mode-option:active{transform:scale(.98)}.mode-opt-title{font-size:15px;font-weight:800;margin-bottom:4px}.mode-option.arcade .mode-opt-title{color:var(--hud-green)}.mode-option.realistic .mode-opt-title{color:#ffab66}.mode-opt-desc{font-size:12px;line-height:1.45;color:#c7d9e4}.mode-tips{font-size:11px;color:#8fb0c4}#gameover-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:95;background:#060c12c2;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center}.gameover-card{width:290px;text-align:center;background:#0e1822f0;border:1px solid rgba(255,71,87,.55);border-radius:16px;padding:20px 18px}.gameover-card h2{margin:0 0 14px;font-size:20px;color:#ff6b6b}.gameover-stats{display:flex;justify-content:space-around;margin-bottom:16px}.gameover-stats span{display:block;font-size:11px;color:#9cb4c5}.gameover-stats strong{font-size:22px;color:var(--hud-green)}.gameover-actions{display:flex;flex-direction:column;gap:8px}.gameover-actions button{width:100%;height:40px;border-radius:10px;border:none;background:var(--hud-green);color:#0b1622;font-size:14px;font-weight:800;cursor:pointer}.gameover-actions button.secondary{height:36px;background:transparent;border:1px solid rgba(255,255,255,.25);color:#cde0eb;font-size:12px;font-weight:600}@media(orientation:landscape){#left-hud{flex-direction:row;gap:10px}#throttle-wrap{order:-1;height:min(260px,calc(100dvh - 24px));width:46px}#joystick-base{width:116px;height:116px;margin-left:-58px;margin-top:-58px}#joystick-knob{width:44px;height:44px;margin-left:-22px;margin-top:-22px}#combat-pad{right:max(54px,calc(env(safe-area-inset-right) + 46px));bottom:max(76px,calc(env(safe-area-inset-bottom) + 66px))}#btn-fire{width:84px;height:84px}}
