html,body{background:#000;height:100%;margin:0;font-family:system-ui,-apple-system,sans-serif;overflow:hidden}canvas{display:block;position:absolute}#gl{width:100%;height:100%;inset:0}#hud{pointer-events:none;width:100%;height:100%;inset:0}#panel{pointer-events:none;width:100%;bottom:0;left:0;right:0}#map{pointer-events:none;border-radius:10px;width:300px;height:300px;top:12px;right:12px;box-shadow:0 2px 12px #0008}#map.big{width:min(80vh,80vw);height:min(80vh,80vw);top:50%;right:50%;transform:translate(50%,-50%)}#msg{color:#fff;white-space:pre-line;pointer-events:none;background:#0009;border-radius:10px;max-width:460px;padding:10px 14px;font-size:14px;line-height:1.45;position:absolute;top:12px;left:12px}#msg b{color:#ffd54a}#radio{color:#9fffb0;pointer-events:none;background:#000b;border-radius:8px;max-width:60vw;padding:6px 12px;font:13px/1.4 ui-monospace,Menlo,monospace;display:none;position:absolute;top:12px;left:50%;transform:translate(-50%)}#loading{z-index:10;color:#fff;cursor:default;background:#0a1226;transition:opacity .9s,transform .9s;position:absolute;inset:0;overflow:hidden}#loading.out{opacity:0;pointer-events:none;transform:scale(1.04)}#loading .scene{width:100%;height:100%;position:absolute;inset:0}#loading .stars circle{animation:3.2s ease-in-out infinite twinkle}#loading .stars circle:nth-child(2n){animation-delay:-1.3s}#loading .stars circle:nth-child(3n){animation-delay:-2.1s}@keyframes twinkle{50%{opacity:.25}}#loading .clouds.c1{animation:90s linear infinite alternate drift}#loading .clouds.c2{animation:60s linear infinite alternate-reverse drift}@keyframes drift{0%{transform:translate(-60px)}to{transform:translate(60px)}}#loading .cl{animation:.9s linear infinite roll}@keyframes roll{to{stroke-dashoffset:-86px}}#loading .edge circle{animation:2.4s ease-in-out infinite twinkle}#loading .edge circle:nth-child(odd){animation-delay:-1.2s}#loading .plane{filter:drop-shadow(0 6px 18px #0006);width:min(60vw,46vh,460px);animation:7s ease-in-out infinite climb;position:absolute;top:47%;left:50%;transform:translate(-50%,-50%)}#loading .plane svg{width:100%;height:auto;display:block;overflow:visible}@keyframes climb{0%,to{transform:translate(-50%,-50%)rotate(-2.5deg)}50%{transform:translate(-50%,calc(-50% - 14px))rotate(2deg)}}#loading .prop{transform-origin:300px 118px;animation:.12s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#loading .nav{animation:2s ease-in-out infinite navglow}@keyframes navglow{50%{opacity:.55}}#loading .strobe{opacity:0;animation:1.6s step-end infinite strobe}@keyframes strobe{0%{opacity:1}6%{opacity:0}}#loading .brand{left:0;right:0;top:max(7vh, env(safe-area-inset-top));text-align:center;text-shadow:0 4px 30px #0a122688;animation:1s cubic-bezier(.2,.8,.2,1) both rise;position:absolute}#loading .kicker{letter-spacing:.42em;text-transform:uppercase;color:#ffd9a8;opacity:.85;padding-left:.42em;font-size:clamp(11px,1.4vw,15px);font-weight:600}#loading h1{letter-spacing:-.035em;margin:.05em 0 .08em;font-size:clamp(60px,11vw,150px);font-weight:800;line-height:1}#loading h1 span{background:linear-gradient(#ffe2a0,#ff9a5c);color:#0000;-webkit-background-clip:text;background-clip:text}#loading .tag{color:#e9dcef;opacity:.85;font-size:clamp(13px,1.6vw,18px)}@keyframes rise{0%{opacity:0;transform:translateY(16px)}}#loading .card{left:0;right:0;bottom:max(6vh, calc(env(safe-area-inset-bottom) + 16px));box-sizing:border-box;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0b1124a8;border:1px solid #ffffff1f;border-radius:16px;width:min(520px,88vw);margin:0 auto;padding:16px 20px 14px;animation:1s cubic-bezier(.2,.8,.2,1) .15s both rise;position:absolute;box-shadow:0 10px 40px #0008}#loading .row{color:#dfe6f2;justify-content:space-between;gap:12px;font-size:13px;display:flex}#loading #loadtxt{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#loading #loadpct{color:#ffd27f;font:600 13px ui-monospace,Menlo,monospace}#loading .bar{background:#ffffff14;border-radius:3px;height:6px;margin:9px 0 12px;overflow:hidden}#loading .bar i{background:linear-gradient(90deg,#ff8a5c,#ffd27f);border-radius:3px;width:0;height:100%;transition:width .5s;display:block;box-shadow:0 0 12px #ffb46a}#loading .tip{color:#c9d2e3;align-items:baseline;gap:10px;min-height:2.9em;font-size:13px;line-height:1.45;display:flex}#loading .tip>b{letter-spacing:.12em;color:#0b1124;background:#ffd27f;border-radius:4px;flex:none;padding:1px 6px;font-size:10px}#loading .tip span b{color:#ffd27f}#loading .tip span{transition:opacity .4s}#loading .tip span.fade{opacity:0}#loading #loadgo{letter-spacing:.02em;color:#1a1020;cursor:pointer;background:linear-gradient(#ffe0a0,#ff9a5c);border:0;border-radius:12px;width:100%;margin-top:4px;padding:13px;font:700 17px system-ui,sans-serif;animation:2s ease-in-out infinite pulse;display:none;box-shadow:0 6px 24px #ff9a5c66}@keyframes pulse{50%{transform:translateY(-1px);box-shadow:0 6px 34px #ff9a5caa}}#loading .hint{text-align:center;color:#9aa6bd;margin-top:8px;font-size:11px;display:none}#loading.ready{cursor:pointer}#loading.ready .tip{display:none}#loading.ready #loadgo,#loading.ready .hint{display:block}#loading.error .bar i{box-shadow:none;background:#ff5a5a}#loading.error #loadtxt{color:#ff9a9a;white-space:normal}@media (height<=560px){#loading .brand{top:3vh}#loading h1{font-size:clamp(44px,9vw,90px)}#loading .plane{width:min(30vw,40vh);top:50%}#loading .card{padding:10px 16px;bottom:3vh}}@media (prefers-reduced-motion:reduce){#loading *,#loading{transition:none!important;animation:none!important}}#help{touch-action:pan-y;color:#e8eef5;z-index:5;background:#0d1824ee;border-radius:14px;width:min(720px,92vw);height:fit-content;max-height:90vh;margin:auto;padding:20px 26px;font-size:14px;position:absolute;inset:0;overflow:auto}#help h2{margin-top:0}#help table{border-collapse:collapse;width:100%}#help td{border-bottom:1px solid #ffffff14;padding:3px 8px}#help td:first-child{color:#ffd54a;white-space:nowrap;font-family:ui-monospace,Menlo,monospace}.hidden{display:none!important}#credit{color:#fffa;text-shadow:0 0 3px #000;pointer-events:none;font-size:10px;position:absolute;bottom:calc(19vh + 4px);right:8px}#picker{color:#fff;z-index:3;background:#0009;border-radius:8px;gap:10px;padding:6px 10px;font-size:12px;display:flex;position:absolute;bottom:calc(19vh + 8px);left:12px}#picker select{color:#fff;background:#1b2633;border:1px solid #fff3;border-radius:5px;margin-left:4px;padding:2px 4px;font-size:12px}#picker input{color:#fff;text-transform:uppercase;background:#1b2633;border:1px solid #fff3;border-radius:5px;margin-left:4px;padding:2px 4px;font-family:ui-monospace,Menlo,monospace;font-size:12px}#radio.alert{animation:2.4s ease-out atcAlert}@keyframes atcAlert{0%,30%{color:#fff3c4;box-shadow:0 0 0 3px #ffb000,0 0 18px #ffb000aa}to{box-shadow:0 0 #0000}}#picker .tgl{color:#fff;cursor:pointer;background:#1b2633;border:1px solid #fff3;border-radius:5px;padding:2px 8px;font-size:12px}#picker .tgl.off{color:#ff9a7a;border-color:#ff9a7a66}#radio div{transition:opacity .15s linear}#radio div.warn{color:#ffd27a}#busted{pointer-events:none;z-index:6;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}#busted .big{letter-spacing:.04em;color:#f2f2ee;-webkit-text-stroke:.045em #000;paint-order:stroke fill;text-shadow:.04em .05em #000,0 0 .3em #0008;opacity:0;font-family:Impact,Haettenschweiler,Arial Narrow Bold,Franklin Gothic Heavy,sans-serif;font-size:min(22vh,18vw);animation:.9s cubic-bezier(.2,1.4,.4,1) .4s forwards bustedIn;transform:scale(1.6)}#busted .sub{color:#fff;text-shadow:0 2px 6px #000;opacity:0;margin-top:1vh;font:700 2.4vh system-ui;animation:.6s ease-out 1.6s forwards bustedSub}@keyframes bustedIn{to{opacity:1;transform:scale(1)}}@keyframes bustedSub{to{opacity:1}}body.busted #gl{filter:grayscale(.85)contrast(1.15)brightness(.75);transition:filter 1.2s}:root{--ph:19vh}#picker{bottom:calc(var(--ph) + 8px)}#credit{bottom:calc(var(--ph) + 4px)}html,body{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none}#touch{pointer-events:none;z-index:4;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,sans-serif;position:absolute;inset:0}#touch>*,#touch button{pointer-events:auto}#touch .pad{touch-action:none;background:#0b1520a6;border:2px solid #ffffff40;position:absolute}#touch .pad.on{border-color:#ffd54a}#touch .lbl{text-align:center;color:#fffc;letter-spacing:.06em;pointer-events:none;font-size:11px;font-weight:600;position:absolute;left:0;right:0}#touch .knob{pointer-events:none;background:radial-gradient(circle at 35% 30%,#fff,#c9d3dd 60%,#8a97a4);transition:transform .12s ease-out;position:absolute;box-shadow:0 2px 8px #000a}#touch .pad.on .knob{transition:none}#touch .stick{left:max(18px, env(safe-area-inset-left));bottom:calc(var(--ph) + 74px);background:radial-gradient(circle,#ffffff10 0 2px,#0000 3px),linear-gradient(#fff2,#fff2) 50%/1px 100% no-repeat,linear-gradient(90deg,#fff2,#fff2) 50%/100% 1px no-repeat,#0b1520a6;border-radius:50%;width:170px;height:170px}#touch .stick .knob{border-radius:50%;width:60px;height:60px;top:calc(50% - 30px);left:calc(50% - 30px)}#touch .stick .lbl{text-shadow:0 1px 3px #000;top:-20px}#touch .rudder{left:max(18px, env(safe-area-inset-left));bottom:calc(var(--ph) + 14px);border-radius:23px;width:170px;height:46px}#touch .rudder .knob{border-radius:17px;width:34px;height:34px;top:4px;left:calc(50% - 17px)}#touch .rudder .lbl{color:#fff8;top:14px}#touch .rudder .lbl.l{text-align:left;padding-left:12px}#touch .rudder .lbl.r{text-align:right;padding-right:12px}#touch .rudder .lbl.top{text-shadow:0 1px 3px #000;color:#fffc;top:-20px}#touch .thr{right:max(18px, env(safe-area-inset-right));bottom:calc(var(--ph) + 14px);border-radius:14px;width:66px;height:250px;overflow:hidden}#touch .thr .fill{pointer-events:none;background:linear-gradient(#2e7d32cc,#1b5e20cc);position:absolute;bottom:0;left:0;right:0}#touch .thr .knob{background:linear-gradient(#222,#000);border:1px solid #555;border-radius:8px;height:40px;transition:none;left:4px;right:4px}#touch .thr .lbl{font-size:13px;top:8px}#touch button{color:#fff;touch-action:none;background:#0b1520c0;border:2px solid #ffffff40;border-radius:12px;min-height:48px;padding:4px 10px;font:600 13px system-ui,-apple-system,sans-serif}#touch button.on{color:#000;background:#ffd54a;border-color:#ffd54a}#touch button.lit{color:#b8ffbf;border-color:#6fe37a}#touch .cluster{right:calc(max(18px, env(safe-area-inset-right)) + 78px);bottom:calc(var(--ph) + 14px);grid-template-columns:96px 96px;gap:8px;display:grid;position:absolute}#touch .cluster .big{background:#5a1010c8;border-color:#ff7a7a80;grid-column:span 2;min-height:62px;font-size:16px}#touch .cluster .big.on{color:#fff;background:#ff4a4a}#touch [data-k=flapDn]:after{content:" · " attr(data-v);color:#ffd54a}#touch .row{left:50%;bottom:calc(var(--ph) + 14px);gap:8px;display:flex;position:absolute;transform:translate(-50%)}#touch .row button{min-width:74px}#touch .menu{z-index:8;background:#000a;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}#touch .menu .grid{grid-template-columns:repeat(3,minmax(170px,230px));gap:10px;display:grid}#touch .menu button{text-align:left;min-height:56px;padding:8px 14px;font-size:15px}#touch .menu .note{color:#fff;text-align:center;max-width:640px;min-height:1.4em;font-size:14px}body.touch #picker{left:50%;bottom:calc(var(--ph) + 76px);z-index:9;flex-wrap:wrap;max-width:92vw;font-size:14px;display:none;transform:translate(-50%)}body.touch.picker #picker{display:flex}body.touch #picker select,body.touch #picker input,body.touch #picker .tgl{min-height:36px;font-size:16px}body.touch #msg{pointer-events:auto;max-width:min(330px,34vw);top:max(8px, env(safe-area-inset-top));left:max(8px, env(safe-area-inset-left));background:#000a;border-radius:9px;max-height:30vh;padding:7px 11px;font-size:12.5px;line-height:1.38;overflow:hidden}body.touch #msg .hdr{opacity:.75;white-space:nowrap;text-overflow:ellipsis;margin-bottom:3px;font-size:11px;overflow:hidden}body.touch #msg .hdr b{color:#fff}body.touch #msg .pill{display:none}body.touch #msg.folded{background:#0008;max-width:none;padding:5px 10px}body.touch #msg.folded>:not(.pill){display:none}body.touch #msg.folded{font-size:0}body.touch #msg.folded .pill{font-size:12px;font-weight:600;display:inline}body.touch #radio{pointer-events:auto;top:max(8px, env(safe-area-inset-top));background:#000a;max-width:min(40vw,460px);padding:4px 9px;font-size:11px;line-height:1.35}body.touch #radio div:nth-last-child(n+3){display:none}@media (height<=500px){body.touch #msg{max-width:min(260px,32vw);max-height:34vh;font-size:11px}body.touch #radio{max-width:36vw;font-size:10px}body.touch #map:not(.big){width:150px;height:150px}}body.touch #map{width:240px;height:240px}body.touch #map.big{width:min(80vh,80vw);height:min(80vh,80vw)}@media (width<=1000px){#touch .cluster{bottom:calc(var(--ph) + 76px)}}@media (width<=900px){#touch .cluster{grid-template-columns:84px 84px}#touch .row button{min-width:60px;font-size:12px}#touch .stick{width:150px;height:150px}#touch .rudder{width:150px}}@media (height<=500px){body.touch #map:not(.big){width:120px;height:120px;top:8px;right:max(8px, env(safe-area-inset-right))}#touch .lbl{font-size:9px}#touch .stick{width:112px;height:112px;bottom:calc(var(--ph) + 52px);left:max(10px, env(safe-area-inset-left))}#touch .stick .knob{width:42px;height:42px;top:calc(50% - 21px);left:calc(50% - 21px)}#touch .stick .lbl,#touch .rudder .lbl.top{top:-14px}#touch .rudder{width:112px;height:34px;bottom:calc(var(--ph) + 8px);left:max(10px, env(safe-area-inset-left));border-radius:17px}#touch .rudder .knob{width:26px;height:26px;top:3px;left:calc(50% - 13px)}#touch .rudder .lbl{top:10px}#touch .rudder .lbl.l,#touch .rudder .lbl.r{display:none}#touch .thr{width:50px;height:150px;bottom:calc(var(--ph) + 8px);right:max(10px, env(safe-area-inset-right))}#touch .thr .knob{height:30px}#touch .thr .lbl{font-size:10px;top:5px}#touch button{border-width:1.5px;border-radius:9px;min-height:34px;padding:2px 6px;font-size:11px}#touch .cluster{right:calc(max(10px, env(safe-area-inset-right)) + 58px);bottom:calc(var(--ph) + 8px);grid-template-columns:66px 66px;gap:5px}#touch .cluster .big{min-height:40px;font-size:13px}#touch .row{bottom:calc(var(--ph) + 8px);gap:5px}#touch .row button{min-width:50px;font-size:11px}#touch .menu .grid{grid-template-columns:repeat(3,minmax(130px,200px));gap:6px}#touch .menu button{min-height:40px;font-size:13px}}#touch .cluster [data-k=brake]{grid-area:1/1/auto/span 2}#touch .cluster [data-k=flapUp]{grid-area:2/1}#touch .cluster [data-k=trimUp]{grid-area:2/2}#touch .cluster [data-k=flapDn]{grid-area:3/1}#touch .cluster [data-k=trimDn]{grid-area:3/2}#touch .cluster [data-k=park]{grid-area:4/1}#touch .cluster [data-k=gear]{grid-area:4/2}
