*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#071722;color:#f6fcf8;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #a8eeef;outline-offset:2px}#sky{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,#244e54,#0a1521 65%)}#sky gmp-map-3d{display:block;width:100%;height:100%}#placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px}#placeholder .big{font-weight:1000;font-size:clamp(2.1rem,6vw,5rem);letter-spacing:.1em;color:#d8fb8e}#placeholder .hint{max-width:420px;font-size:.9rem;color:#b5c3c9}.flightTop{position:absolute;top:0;left:0;right:0;padding:max(10px,env(safe-area-inset-top)) max(13px,env(safe-area-inset-right)) 8px max(13px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(180deg,rgba(4,17,24,.88),rgba(4,17,24,.25))}.brand strong{display:block;font-weight:1000;letter-spacing:.1em;font-size:clamp(17px,2.6vw,26px)}.brand strong span{color:#d8fa7f}.brand small{font-size:10px;letter-spacing:.13em;color:#cad4d4}.topActions{display:flex;align-items:center;gap:6px}.topActions button,.presetBar button,.setupFooter button{padding:10px 12px;border-radius:10px;border:1px solid #a3cbb2;background:rgba(5,33,40,.87);color:#fff;font-weight:800;font-size:12px}.topActions button:last-child{border-color:#d8f9ab;color:#e9ffcf}#statusPill{font-size:10px;letter-spacing:.06em;background:#102a31dd;border:1px solid #8db2b1;border-radius:12px;padding:8px 9px;color:#eeffc3}.presetBar{position:absolute;top:clamp(72px,12vh,94px);left:50%;transform:translateX(-50%);display:flex;gap:6px;max-width:96vw}.presetBar button{white-space:nowrap;min-width:0;box-shadow:0 6px 18px #0004}.flightBottom{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:end;justify-content:space-between;gap:12px;pointer-events:none}.flightBottom>*{pointer-events:auto}.legend{display:block;text-align:center;font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:6px;text-shadow:1px 2px #000}.dpad{width:clamp(148px,22vw,194px);height:clamp(145px,23vh,187px);display:grid;grid-template-areas:'. forward .' 'left backward right';grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;gap:5px;align-items:stretch}.dpad .forward{grid-area:forward}.dpad .left{grid-area:left}.dpad .right{grid-area:right}.dpad .backward{grid-area:backward}.dpad button,.pilotPad button{touch-action:none;user-select:none;-webkit-user-select:none;border:2px solid #a0c9c8;background:rgba(7,38,47,.91);color:#fff;border-radius:14px;font-weight:1000;font-size:18px;box-shadow:0 5px 16px #0007}.dpad button.active,.pilotPad button.active{background:#d8ff86;color:#1a352e;border-color:#fff}.pilotPad{display:grid;grid-template-columns:repeat(2,minmax(66px,94px));gap:7px;height:154px}.pilotPad button{font-size:12px}.flightReadout{background:rgba(6,31,39,.85);padding:10px 14px;border:1px solid #9fbab8;border-radius:18px;min-width:205px;align-self:end;display:flex;flex-direction:column;gap:8px;box-shadow:0 6px 25px #0005}.switch{display:flex;border-radius:10px;overflow:hidden;border:1px solid #64868b}.switch button{flex:1;border:0;background:#274148;color:#c9dad7;padding:10px 4px;font-weight:900;font-size:11px}.switch button[aria-pressed="true"]{background:#dafa85;color:#172f26}#telemetry{text-align:center;font-size:11px;white-space:nowrap}label[for=speed]{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.06em;font-weight:800}#speed{accent-color:#d8ff86;width:100%}.footnote{text-align:center;color:#bfcaca;font-size:10px}#setupOverlay{position:absolute;inset:0;background:rgba(0,0,0,.62);display:flex;align-items:center;justify-content:center;padding:16px;z-index:30}#setupOverlay[hidden]{display:none}.setupPanel{width:min(500px,98vw);max-height:90dvh;overflow:auto;background:#0e2b33;border:2px solid #8ebaaa;border-radius:24px;box-shadow:0 22px 70px #0009;padding:clamp(17px,3vw,30px)}.eyebrow{font-size:11px;color:#dafd97;font-weight:900;letter-spacing:.14em}.setupHead h1{font-size:clamp(25px,4vw,40px);margin:8px 0}.setupHead p,.help{color:#dae4e2;line-height:1.55;font-size:13px}#connectForm{display:flex;flex-direction:column;gap:10px;margin-top:22px}#connectForm label{font-size:11px;font-weight:900;letter-spacing:.09em}#apiKey{width:100%;padding:15px;background:#061922;color:white;border:1px solid #89b2ba;border-radius:10px;font-size:14px}#connect{background:#d6ff79;color:#163325;border:0;border-radius:12px;padding:15px;font-weight:1000}.help{margin-top:15px}.feedback{color:#defa8f;font-size:13px;min-height:2em}.setupFooter{display:flex;gap:8px;justify-content:space-between}@media(max-width:720px){.brand small{display:none}.topActions{gap:4px}.topActions button{padding:8px;font-size:10px}#statusPill{font-size:9px;padding:6px}.presetBar{top:63px}.presetBar button{font-size:10px;padding:8px}.flightBottom{gap:5px;bottom:max(8px,env(safe-area-inset-bottom))}.flightReadout{min-width:135px;width:28vw;padding:8px;gap:4px}.flightReadout .footnote{display:none}.dpad{width:clamp(120px,28vw,155px);height:127px}.pilotPad{grid-template-columns:repeat(2,minmax(55px,70px));height:128px;gap:5px}.pilotPad button{font-size:10px}.dpad button{border-radius:9px}#telemetry{font-size:9px}}@media(max-width:480px){.flightReadout{min-width:107px}.brand strong{font-size:15px}.presetBar button{padding:8px 5px}.dpad{width:106px;height:113px}.pilotPad{grid-template-columns:repeat(2,49px);height:113px}.legend{font-size:9px}}
/* Reserve Google Maps' own bottom attribution area: controls sit below the map, not on the logo. */
#sky{bottom:215px}
@media(max-width:720px), (max-height:560px){#sky{bottom:155px}}

.remember{display:flex!important;gap:7px;align-items:center;letter-spacing:0!important;font-size:11px!important;color:#cbdad1;text-transform:none!important;font-weight:600!important}.remember input{width:18px;height:18px;accent-color:#d6ff79;margin:0;flex:none}
@media(max-height:560px){.setupPanel{padding:12px 22px;max-height:96dvh}.setupHead h1{font-size:26px;margin:4px 0}.setupHead p{font-size:11px;line-height:1.32;margin:5px 0}#connectForm{margin-top:9px;gap:7px}#apiKey{padding:10px}#connect{padding:10px}.help{font-size:10px;line-height:1.3;margin-top:7px}.feedback{font-size:11px;min-height:1em;margin:4px 0}.setupFooter button{padding:7px 10px}.eyebrow{font-size:10px}}

/* V49.2: keep the extended takeoff controls readable on narrow iPhone landscape screens. */
.presetBar{justify-content:center;flex-wrap:wrap;width:max-content;max-width:calc(100vw - 18px);row-gap:5px}
.mobileHelp{color:#abc4c6;font-size:11px;line-height:1.45}
@media(max-height:560px){.mobileHelp{font-size:9px;margin:5px 0}.presetBar{top:58px}.presetBar button{padding:7px 9px}}

/* PCA V49.3: compact destination picker, hidden during ordinary flying. */
.presetBar{z-index:7}
.destinationPanel{position:absolute;z-index:16;top:clamp(114px,17vh,142px);right:max(12px,env(safe-area-inset-right));width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 335px);min-height:155px;border:1px solid #b4dcc5;border-radius:18px;background:rgba(6,27,36,.97);box-shadow:0 14px 45px #000b;overflow:hidden;display:flex;flex-direction:column}
.destinationPanel[hidden],.destinationMatch[hidden]{display:none}
.destinationHead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #54717b;background:#153942}
.destinationHead strong{font-size:14px;letter-spacing:.06em;display:block;color:#e3ffba}.destinationHead small{font-size:10px;color:#c9dbda}
.destinationHead button{width:35px;height:35px;border:1px solid #819fa4;border-radius:8px;background:#092630;color:white;font-weight:900;flex:none}
.destinationScroll{padding:12px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.destinationLabel{font-size:10px;letter-spacing:.12em;color:#b6cfd0;margin:11px 0 7px;font-weight:900}
.destinationHome,.destinationList button{display:flex;align-items:center;justify-content:space-between;gap:7px;text-align:left;width:100%;color:#effff5;font-weight:800;background:#1a3d44;border:1px solid #5c8181;border-radius:10px;padding:11px 12px;cursor:pointer;min-height:43px}
.destinationHome{border-color:#a6dc9a;color:#efffcd;background:#244336}
.destinationList{display:grid;gap:7px}.destinationList button small{display:block;color:#a9bec0;font-weight:600;font-size:10px;line-height:1.25;margin-top:2px}
.destinationList button .flyArrow{color:#d8ff86;font-size:15px;flex:none}
.destinationSearch{display:flex;flex-direction:column;gap:7px;margin-top:16px;border-top:1px solid #486e77;padding-top:12px}
.destinationSearch label{font-size:11px;color:#e1ffbd;font-weight:900;letter-spacing:.05em}
.destinationSearchRow{display:flex;gap:6px}
.destinationSearchRow input{min-width:0;flex:1;background:#061820;border:1px solid #9dc2c2;color:white;border-radius:9px;padding:12px;font-size:14px}
.destinationSearchRow button,.destinationMatch button{background:#d8ff86;border:0;border-radius:9px;color:#193028;font-weight:1000;padding:10px 13px}
.searchNote{font-size:10px;color:#b0c7cc;line-height:1.4}
.destinationMatch{margin-top:9px;border:1px solid #94cabc;background:#214343;padding:10px;border-radius:12px;display:flex;flex-direction:column;gap:8px}
.destinationMatch span{font-size:10px;color:#d1f1cd;font-weight:900}.destinationMatch strong{font-size:12px;overflow-wrap:anywhere}
#destinationFeedback{font-size:12px;color:#d6e5dc;line-height:1.4;margin:10px 0 0;overflow-wrap:anywhere}
#destinationFeedback.error{color:#ffbbb3}
@media(max-height:560px){.destinationPanel{top:105px;max-height:calc(100dvh - 265px);width:min(345px,calc(100vw - 24px))}.destinationHead{padding:7px 10px}.destinationScroll{padding:9px}.destinationHome,.destinationList button{min-height:35px;padding:8px 10px}.destinationSearch{margin-top:9px;padding-top:8px}.destinationSearchRow input{padding:9px}}
@media(min-height:561px) and (max-width:720px){.destinationPanel{top:128px;max-height:calc(100dvh - 335px)}}
@media(max-width:440px) and (min-height:560px){.destinationPanel{top:118px;max-height:calc(100dvh - 340px)}}

/* V50.4 compact compass radar. Aircraft blips are in shared geographic coordinates. */
.flightRadar{position:fixed;top:126px;right:max(10px,env(safe-area-inset-right));z-index:20;background:#092437f2;border:1px solid #8ed6de;border-radius:14px;padding:10px;width:218px;max-height:calc(100dvh - 285px);overflow:auto;color:#fff;font:12px system-ui;box-shadow:0 8px 28px #0009}
.flightRadarHead{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:11px;letter-spacing:.04em}
.flightRadarHead button,.radarLocate{background:#d8ff86;border:0;color:#173328;border-radius:7px;font-weight:900;font-size:10px;padding:7px;cursor:pointer}
#radarBody[hidden]{display:none}#flightFriendsStatus{font-size:11px;margin:7px 0;color:#d1eadf}
#clubRadar{display:block;width:min(190px,100%);height:auto;margin:0 auto;background:radial-gradient(circle at center,#1c5e55 0%,#083a40 65%,#071c2c 100%);border-radius:50%}
.radarCircle{fill:none;stroke:#c0fabb;stroke-width:1.5}.radarRing{fill:none;stroke:#88d3cc;stroke-width:.8;opacity:.6}.radarGrid{fill:none;stroke:#88d3cc;stroke-width:.8;opacity:.45}.radarNorth{font:700 9px system-ui;fill:#d8ff86}
.radarScale{text-align:center;font-size:10px;color:#bce3dd;margin:6px 0}.radarPilot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #477477;padding:6px 0;gap:7px}.radarPilotInfo{display:flex;flex-direction:column;min-width:0}.radarPilotInfo strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.radarPilotInfo small{color:#c9d9db;font-size:10px;margin-top:3px}.radarLocate:disabled{opacity:.4}.radarHint{display:block;font-size:9px;line-height:1.3;color:#b1cdd1;margin-top:7px}.radarEmpty{padding:8px 0;color:#c9d9db} 
@media(max-width:720px){.flightRadar{top:108px;width:175px;padding:7px;max-height:calc(100dvh - 245px)}.flightRadarHead{font-size:10px}#clubRadar{width:140px}.radarHint{font-size:8px}}
@media(max-height:560px){.flightRadar{top:106px;width:170px;max-height:calc(100dvh - 235px)}#clubRadar{width:115px}.radarHint{display:none}}
