
:root{font-family:"Courier New",ui-monospace,monospace;color:#f2f5e8;background:#0d1517;font-synthesis:none;--edge:clamp(18px,4vw,64px);--safe-bottom:max(20px,env(safe-area-inset-bottom));--ink-shadow:1px 1px 0 #15221a,-1px -1px 0 #15221a,1px -1px 0 #15221a,-1px 1px 0 #15221a}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{display:block;width:100vw;height:100dvh}#shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(#08151933,transparent 22%,transparent 80%,#08151955)}header{position:fixed;top:max(28px,env(safe-area-inset-top));left:var(--edge);right:var(--edge);display:flex;justify-content:space-between;font-size:16px;font-weight:bold;text-shadow:var(--ink-shadow);letter-spacing:.08em}.brand span{display:block;font-size:12px;line-height:1.8;font-weight:normal;letter-spacing:.06em}#flightMode{font-size:16px}button{appearance:none;font-family:inherit;font-size:13px;letter-spacing:.06em;font-weight:bold;color:#f2f5e8;background:#101b20bf;border:1px solid #c1c7b75c;border-radius:2px;min-height:44px;padding:10px 16px;cursor:pointer;touch-action:manipulation}button:hover{background:#26382feb;border-color:#eff5df}button:focus-visible{outline:2px solid #eff5df;outline-offset:3px}button:active{background:#dce6d3;color:#13231c}nav{position:fixed;left:50%;bottom:var(--safe-bottom);transform:translateX(-50%);display:flex;gap:6px;white-space:nowrap}#metrics{position:fixed;left:var(--edge);bottom:125px;text-shadow:var(--ink-shadow);font-size:19px;font-weight:bold}#metrics>div{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}label{font-size:15px;letter-spacing:.05em}strong{font-size:24px;font-weight:bold;font-variant-numeric:tabular-nums}small{font-size:13px}#metrics label{width:40px}#metrics b{font-size:19px}.bar{width:45px;height:5px;border:1px solid #e4e8d9;align-self:center}.bar i{display:block;background:#e4e8d9;height:100%;width:50%}#course{position:fixed;right:var(--edge);top:116px;text-align:right;text-shadow:var(--ink-shadow)}#course label{display:inline;margin-right:10px}#course strong{display:inline;font-size:23px}#gate{display:inline}#course em{font-style:normal;font-size:17px;margin-left:3px}.dots{display:flex;justify-content:flex-end;gap:4px;margin-top:10px}.dots i{display:block;width:12px;height:3px;background:#dae3cf50;box-shadow:0 1px #15221a}.dots i.passed{background:#e7f0d9}#distance{font-size:13px;margin:10px 0}#distance:empty{display:none}#reticle{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);font-size:18px;letter-spacing:8px;color:#eef4dabb;text-shadow:var(--ink-shadow);pointer-events:none}#message{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);text-align:center;text-shadow:var(--ink-shadow);width:min(390px,88vw)}.eyebrow{font-size:12px;letter-spacing:.08em;color:#e4ead3}h1{font-size:28px;font-weight:bold;letter-spacing:.12em;margin:18px 0 12px}#subtitle{font-size:13px;line-height:1.7;letter-spacing:.04em}#start{margin-top:10px;min-width:135px;background:#0c161dcc;border-color:#d5deca99}kbd{font:12px inherit;border:1px solid #abb69b60;padding:3px 6px}#start kbd{margin-left:18px}footer{position:fixed;left:var(--edge);right:var(--edge);bottom:87px;display:flex;gap:24px;font-size:14px;font-weight:bold;text-shadow:var(--ink-shadow)}#timer{margin-left:auto;font-size:22px}#warning{position:fixed;left:50%;bottom:145px;transform:translateX(-50%);font-size:16px;letter-spacing:.08em;text-shadow:var(--ink-shadow);color:#ffe0a0}#helpPanel{position:fixed;z-index:8;right:var(--edge);bottom:83px;width:min(350px,calc(100vw - 36px));max-height:calc(100dvh - 130px);overflow:auto;background:#0e191ff2;border:1px solid #d0d7c966;padding:22px;box-shadow:0 12px 50px #0006}#helpPanel h2{font-size:17px;font-weight:bold;margin:0 0 20px}#helpPanel h2 span{font-size:12px;color:#9caa9d;float:right}.controlRow{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:11px 0;font-size:13px}.tip{font-size:13px;line-height:1.65;color:#b8c4b9;margin-top:18px}#closeHelp{width:100%;margin-top:5px}#osd{position:fixed;left:var(--edge);top:103px;font-size:13px;letter-spacing:.04em;text-shadow:var(--ink-shadow);pointer-events:none}#osd span+span{display:block;margin-top:7px;color:#d3ddc7}#touch{display:none;position:fixed;left:var(--edge);right:var(--edge);bottom:83px;justify-content:space-between;pointer-events:none}.stickBlock>span{display:block;font-size:11px;text-align:center;letter-spacing:.06em;text-shadow:var(--ink-shadow);margin-bottom:10px}.stick{pointer-events:auto;touch-action:none;width:132px;height:132px;border:1px solid #dee4d547;border-radius:50%;background:#0b1b2524;position:relative;user-select:none;-webkit-user-select:none}.stick:before,.stick:after{content:"";position:absolute;background:#dee4d528;left:50%;top:10%;height:80%;width:1px}.stick:after{transform:rotate(90deg)}.stick i{position:absolute;inset:18%;border:1px solid #dee4d528;border-radius:50%}.knob{position:absolute;left:calc(50% - 19px);top:calc(50% - 19px);width:38px;height:38px;border:1px solid #edf4d9b3;background:#172d37a0;border-radius:50%;pointer-events:none;box-shadow:0 1px 8px #05101866}.stick.active{border-color:#eef5db9c}.stick.active .knob{background:#dcebd795}body:not(.fpv) #osd span:last-child{display:none}@media(pointer:coarse){#touch{display:flex}#metrics{bottom:258px}footer{bottom:237px}#warning{bottom:287px}}@media(max-width:650px){:root{--edge:20px}header{font-size:14px;top:max(22px,env(safe-area-inset-top))}.brand span{font-size:10px}#flightMode{font-size:14px}#course{top:102px}#course label{font-size:12px}#course strong{font-size:19px}#distance{font-size:11px}.dots i{width:9px}.dots{gap:3px}#osd{top:94px;font-size:11px}#metrics{font-size:16px}#metrics label{font-size:13px;width:33px}#metrics strong{font-size:22px}#metrics>div{gap:7px;margin-bottom:8px}#metrics small{font-size:11px}footer{font-size:12px;gap:18px}#timer{font-size:20px}nav{gap:4px;bottom:var(--safe-bottom)}nav button{font-size:12px;padding:10px 12px}#message{top:41%}h1{font-size:25px}#subtitle{font-size:12px}.stick{width:122px;height:122px}#touch{bottom:max(82px,calc(env(safe-area-inset-bottom) + 58px))}}@media(max-height:520px){:root{--edge:max(24px,env(safe-area-inset-left))}header{top:18px}.brand span{display:none}#osd{top:54px}#course{top:57px}#metrics{bottom:162px}#metrics>div{display:inline-flex;margin-right:16px}#metrics .throttle{display:none}footer{bottom:76px;left:calc(50% - 130px);right:calc(50% - 130px);gap:13px;font-size:12px}#timer{font-size:17px}#touch{bottom:28px}.stick{width:108px;height:108px}.stickBlock>span{margin-bottom:7px}nav{bottom:20px}#message{top:46%}h1{margin:10px 0;font-size:23px}#subtitle{margin:8px 0}#start{margin-top:4px}#warning{bottom:116px}#helpPanel{bottom:72px;max-height:calc(100dvh - 92px)}}

.dots{max-width:180px;flex-wrap:wrap;margin-left:auto}.dots i{width:7px}@media(max-width:650px){.dots{max-width:122px;gap:3px}.dots i{width:4px}}

#regionLabel{position:absolute;top:48px;left:0;font-size:11px;letter-spacing:.08em;color:#d2dbc6}#areaSelect{display:block;width:100%;font:13px inherit;color:#f2f5e8;background:#15252c;border:1px solid #8a9b8a;padding:12px;margin:10px 0}#relocate{width:100%;margin-bottom:20px}@media(max-height:520px){#regionLabel{top:22px;left:150px;font-size:10px}}

#homeNav{position:fixed;left:var(--edge);top:146px;font-size:12px;font-weight:normal;text-shadow:var(--ink-shadow)}@media(max-width:650px){#homeNav{top:137px;font-size:10px}}@media(max-height:520px){#homeNav{top:86px;left:var(--edge);font-size:10px}}

/* Desktop radio: quiet, always visible key hints, with live input feedback. */
.stickKey,.stickHint,#keyLegend{display:none}
@media(pointer:fine){
 #touch{display:flex;bottom:86px}
 .stickBlock{width:174px}
 .stickBlock>span{color:#d9e3d2c9}
 .stick{width:164px;height:164px;margin:auto;cursor:grab;background:#0b1b2540}
 .stick:active{cursor:grabbing}
 .stickKey{display:block;position:absolute;z-index:1;font:12px "Courier New",monospace;line-height:16px;padding:2px 4px;border:0;border-radius:3px;color:#dfe8d2bf;background:#0b192880;pointer-events:none;text-shadow:var(--ink-shadow)}
 .stickKey.north{top:5px;left:50%;transform:translateX(-50%)}
 .stickKey.south{bottom:5px;left:50%;transform:translateX(-50%)}
 .stickKey.west{left:3px;top:50%;transform:translateY(-50%)}
 .stickKey.east{right:3px;top:50%;transform:translateY(-50%)}
 .stickKey.pressed,#keyLegend kbd.pressed{color:#f4ffdf;background:#48624bef;box-shadow:0 0 0 1px #c4e5a699}
 .stickHint{display:block;text-align:center;white-space:nowrap;margin-top:10px;font-size:9px;letter-spacing:.01em;color:#dfe8d2bf;text-shadow:var(--ink-shadow)}
 #metrics{bottom:330px}
 footer{bottom:291px}
 #warning{bottom:331px}
 #keyLegend{display:flex;position:fixed;bottom:84px;left:50%;transform:translateX(-50%);gap:12px;flex-wrap:wrap;justify-content:center;width:340px;font-size:10px;color:#dfe8d2bf;text-shadow:var(--ink-shadow);pointer-events:none}
 #keyLegend kbd{font:10px "Courier New",monospace;padding:2px 3px;background:#0b192850}
 #keyLegend small{width:100%;text-align:center;font-size:9px;letter-spacing:.06em}
}
@media(pointer:fine) and (max-width:760px){
 .stickBlock{width:132px}.stick{width:122px;height:122px}.stickKey{font-size:11px;padding:0 2px}.stickHint{font-size:8px;white-space:normal;line-height:1.5}
 #keyLegend{bottom:73px;width:260px;gap:6px;font-size:9px}#keyLegend small{display:none}
 #metrics{bottom:286px}footer{bottom:249px}#warning{bottom:289px}
}
@media(pointer:fine) and (max-height:700px){
 #touch{bottom:25px}.stickBlock{width:132px}.stick{width:108px;height:108px}.stickKey{font-size:10px;padding:0 2px}.stickHint{display:none}
 #metrics{bottom:177px}#metrics>div{display:inline-flex;margin-right:16px}#metrics .throttle{display:none}footer{bottom:122px;left:calc(50% - 130px);right:calc(50% - 130px);gap:13px;font-size:12px}#timer{font-size:17px}#warning{bottom:150px}
 #keyLegend{bottom:77px;width:290px;gap:8px;font-size:9px}#keyLegend small{display:none}
}
@media(pointer:fine) and (max-width:600px) and (max-height:700px){
 #touch{bottom:88px}#keyLegend{display:none}
 #metrics{bottom:266px}footer{bottom:236px}#warning{bottom:210px}
}

@media(pointer:fine) and (max-width:600px) and (max-height:700px){body.flight-idle #metrics,body.flight-idle>footer{visibility:hidden}}

/* Adjust only the rendered video; leave the radio and telemetry readable. */
#brightnessControl{position:fixed;top:max(20px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:164px;padding:4px 6px 0;background:#0b192870;border-radius:5px;text-shadow:var(--ink-shadow)}
#brightnessControl label{display:block;font-size:9px;letter-spacing:.05em;white-space:nowrap}#brightnessValue{float:right;font-variant-numeric:tabular-nums}
#brightnessControl>div{display:flex;align-items:center;gap:4px}#brightnessSlider{width:100%;min-width:0;height:44px;margin:0;accent-color:#cee5ba;cursor:pointer;touch-action:pan-y}#brightnessReset{min-width:44px;width:44px;height:44px;padding:0;background:transparent;border:0;font-size:20px}#brightnessSlider:focus-visible{outline:2px solid #eff5df;outline-offset:2px}
@media(max-width:450px){#brightnessControl{width:140px;top:max(18px,env(safe-area-inset-top));padding:3px 4px 0}#brightnessControl label{font-size:8px}}
@media(max-height:520px){#brightnessControl{top:10px}}

/* Untimed dispatches sit above the controls and never capture flight input. */
#flightActivities{display:flex;gap:6px;margin-bottom:12px}#flightActivities button{flex:1;font-size:11px;padding:8px}#flightActivities [aria-pressed=true]{border-color:#94f5cf;color:#94f5cf}#languageSelect{width:100%;min-height:44px;background:#15252c;color:#f2f5e8;border:1px solid #829a8e;font:13px inherit;padding:8px;margin-bottom:12px}#dispatchPanel{position:fixed;right:var(--edge);top:112px;width:min(300px,43vw);background:#102026d9;border-left:2px solid #94f5cf;padding:12px 14px;text-shadow:var(--ink-shadow);font-size:12px}#dispatchPanel[hidden]{display:none}#dispatchPanel h2{font-size:15px;margin:7px 0}#dispatchHint{line-height:1.5;margin:8px 0}#dispatchDistance{font-size:19px;margin:8px 0}#dispatchStatus{display:block;font-size:10px;margin-top:6px}#retryDispatch{font-size:10px;min-height:36px;padding:6px 10px;margin-top:9px}.dispatch-progress{height:3px;background:#ffffff28}.dispatch-progress i{height:100%;display:block;background:#94f5cf;width:0}.precision-active #course,.precision-active #timer{display:none}@media(max-width:650px){#dispatchPanel{top:103px;width:46vw;padding:10px;font-size:11px}#dispatchPanel h2{font-size:12px}#dispatchPanel small{font-size:10px}#dispatchDistance{font-size:16px}#dispatchHint{margin:5px 0}#dispatchPanel #retryDispatch{font-size:9px}}@media(max-height:520px){#dispatchPanel{top:60px;width:230px;padding:8px}#dispatchHint{margin:3px 0}#dispatchPanel h2{font-size:12px;margin:3px 0}#dispatchDistance{display:inline;font-size:14px}#dispatchStatus{display:inline;margin-left:8px}#retryDispatch{margin-top:5px}}
#leaveDispatch{font-size:10px;min-height:36px;padding:6px 10px;margin:9px 0 0 5px}#helpPanel h2>span[data-i18n]{float:none;font-size:17px;color:inherit}#helpPanel h2>span:not([data-i18n]){float:right}
#retryDispatch,#leaveDispatch{max-width:100%;white-space:normal;overflow-wrap:anywhere}#dispatchPanel{max-height:calc(100dvh - 215px);overflow:auto}
/* Keep guidance above both flight sticks; scroll the card on short displays. */
#dispatchAltitude{font-size:11px;line-height:1.4;margin:6px 0}#dispatchStatus{font-size:12px;line-height:1.5;color:#baffdf}#dispatchDistance{font-size:14px;line-height:1.4}#dispatchPanel{max-height:calc(100dvh - 410px);min-height:95px}#dispatchPanel button{min-height:44px}#leaveDispatch{font-size:10px;margin-top:6px;padding:6px 10px}
@media(pointer:coarse){#dispatchPanel{max-height:calc(100dvh - 340px)}}
@media(max-height:520px){#dispatchPanel{top:58px;bottom:164px;max-height:none;min-height:0;width:min(280px,42vw)}#dispatchStatus{display:block;margin-left:0}#dispatchDistance{display:block;margin:4px 0}#dispatchAltitude{margin:4px 0}.precision-active #message{left:26%;width:44vw}.precision-active #homeNav{display:none}}
/* Mission card and the persistent ARM button already explain a paused mission. */
.precision-paused #message{display:none!important}

#precisionDescription{font-size:11px;line-height:1.5;margin:-4px 0 12px;color:#cbd9d1}

/* Stage completion owns focus and input until an explicit next/replay/free choice. */
#missionCompletion{position:fixed;inset:0;width:min(1180px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:clamp(24px,5vw,64px);overflow:auto;border:1px solid #a7f9d3;border-radius:4px;background:radial-gradient(ellipse at 50% 0,#234e3eed,transparent 75%),#0d1e23f7;color:#f2f5e8;box-shadow:0 24px 100px #000a,0 0 75px #94f5cf14;text-align:center}
#missionCompletion[hidden],#missionCompletion:not([open]){display:none}
#missionCompletion::backdrop{background:#031016b8;backdrop-filter:blur(5px)}
.mission-completion-content{width:100%;margin:auto}
.mission-completion-mark{display:block;font-size:clamp(34px,5vw,72px);line-height:1;color:#a8ffd7;margin-bottom:22px;text-shadow:0 0 28px #94f5cf5c}
#missionCongratulations{font-size:clamp(24px,6.4vw,100px);font-weight:bold;line-height:1.04;letter-spacing:-.065em;margin:0;color:#baffdf;text-shadow:0 3px 0 #071c14,0 0 48px #94f5cf20}
#missionCompletionSubtitle{font-size:clamp(19px,2.8vw,32px);font-weight:bold;line-height:1.35;letter-spacing:.04em;margin:24px 0 10px;overflow-wrap:anywhere}
#missionCompletionStage{font-size:clamp(12px,1.6vw,17px);line-height:1.5;letter-spacing:.09em;color:#c6d9cd;margin:0}
.mission-completion-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:36px}
.mission-completion-actions button{min-height:52px;min-width:160px;font-size:14px;padding:14px 22px;white-space:normal;overflow-wrap:anywhere;border-color:#baffdf70}
#nextMissionStage{background:#baffdf;color:#11291e;border-color:#baffdf}
#nextMissionStage:hover{background:#ddffed}
#nextMissionStage[hidden]{display:none}
.precision-complete #dispatchPanel,.precision-complete #message,.precision-complete #warning{visibility:hidden}
@media(max-width:600px){#missionCompletion{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:28px 16px}#missionCongratulations{font-size:clamp(22px,6.4vw,38px)}.mission-completion-mark{margin-bottom:18px}#missionCompletionSubtitle{margin-top:20px}.mission-completion-actions{margin-top:26px;gap:9px}.mission-completion-actions button{width:100%;min-width:0}}
@media(max-height:520px){#missionCompletion{max-height:calc(100dvh - 16px);padding:20px}.mission-completion-mark{font-size:30px;margin-bottom:12px}#missionCongratulations{font-size:clamp(22px,5.8vw,64px)}#missionCompletionSubtitle{margin-top:14px;font-size:20px}.mission-completion-actions{margin-top:18px}.mission-completion-actions button{min-height:44px;padding:10px 16px}}

/* Goggle OSD: mint accents, thin glass panels, horizon and compass tape. */
:root{--osd-accent:#94f5cf;--osd-glass:#0b19285c;--osd-line:#e9f3dccc}
#metrics{padding:10px 16px 2px 12px;background:linear-gradient(90deg,var(--osd-glass),transparent);border-left:2px solid #94f5cf8c;border-radius:0 6px 6px 0}
#metrics label,#course label{color:var(--osd-accent)}
#course{padding:8px 12px 2px 18px;background:linear-gradient(270deg,var(--osd-glass),transparent);border-right:2px solid #94f5cf8c;border-radius:6px 0 0 6px}
.bar{width:60px;height:7px;border-color:#e4e8d9aa;padding:1px}.bar i{background:repeating-linear-gradient(90deg,var(--osd-accent) 0 4px,transparent 4px 6px);transition:none}
body.fpv #metrics strong,body.fpv #course strong,body.fpv #compass .compass-heading{text-shadow:var(--ink-shadow),0 0 9px #94f5cf66}
#vsi{display:inline-block;position:relative;width:5px;height:18px;margin:0 -12px 0 -14px;border:1px solid #e4e8d988;align-self:center;vertical-align:middle}
#vsi:after{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:1px;background:#e4e8d9cc}
#vsiFill{position:absolute;left:0;right:0;bottom:50%;height:50%;background:var(--osd-accent);transform-origin:50% 100%;transform:scaleY(0)}
#homeArrow{display:inline-block;margin-right:7px;color:var(--osd-accent);font-size:11px;transform-origin:50% 55%}
#ahi{position:fixed;inset:0;pointer-events:none;clip-path:circle(min(27vh,30vw) at 50% 50%)}
#ahi[hidden],body:not(.fpv) #ahi,body.flight-idle #ahi{display:none}
.ahi-line{position:absolute;left:0;top:0;width:min(20vh,22vw);height:0;border-top:1px solid var(--osd-line);filter:drop-shadow(0 1px 0 #15221a) drop-shadow(0 -1px 0 #15221a)}
.ahi-line.horizon{width:min(46vh,52vw);border:0;background:linear-gradient(90deg,var(--osd-line) 0 34%,transparent 34% 66%,var(--osd-line) 66%);height:2px}
.ahi-line.dive{border-top-style:dashed}
.ahi-line span{position:absolute;top:-7px;font-size:10px;line-height:12px;color:var(--osd-line);text-shadow:var(--ink-shadow)}
.ahi-line span:first-child{right:calc(100% + 6px)}.ahi-line span:last-child{left:calc(100% + 6px)}
#compass{position:fixed;left:50%;top:calc(max(20px,env(safe-area-inset-top)) + 58px);transform:translateX(-50%);width:min(340px,58vw);height:30px;overflow:hidden;pointer-events:none;background:linear-gradient(90deg,transparent,var(--osd-glass) 18%,var(--osd-glass) 82%,transparent);border-bottom:1px solid #94f5cf55;mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
.compass-strip{position:absolute;left:0;top:0;bottom:0;width:720%}
.compass-strip i{position:absolute;bottom:0;width:1px;height:5px;background:#e4e8d9a8;font-style:normal}
.compass-strip i.major{height:9px;background:#e4e8d9dd}
.compass-strip i.label{width:auto;height:auto;background:none;bottom:0;transform:translateX(-50%);padding-bottom:10px;font-size:9px;line-height:10px;color:#e4e8d9;text-shadow:var(--ink-shadow)}
.compass-strip i.label:after{content:"";position:absolute;left:50%;bottom:0;width:1px;height:9px;background:#e4e8d9}
.compass-home{position:absolute;bottom:10px;transform:translateX(-50%);font-size:9px;line-height:10px;padding:0 3px;color:#0f241c;background:var(--osd-accent);border-radius:2px}
.compass-caret{position:absolute;left:50%;bottom:0;width:0;height:0;border:5px solid transparent;border-bottom-color:var(--osd-accent);transform:translateX(-50%)}
.compass-heading{position:absolute;left:50%;top:1px;transform:translateX(-50%);font-size:11px;font-weight:bold;letter-spacing:.06em;padding:0 5px;background:#0b1928c0;border:1px solid #94f5cf66;border-radius:2px}
body.flight-idle #compass{opacity:.55}
@media(max-width:450px){#compass{top:calc(max(18px,env(safe-area-inset-top)) + 50px);width:46vw}}
@media(max-height:520px){#compass{top:58px;width:min(260px,40vw);height:26px}}
