*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#142b34;color:#fff;font-family:Arial,"Noto Sans KR",sans-serif}button,select,input{font:inherit}button,a,select,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,.stick-pad:focus-visible{outline:2px solid #c1ef9a;outline-offset:5px}button:disabled{cursor:wait;opacity:.5}[hidden]{display:none!important}#ocean{position:fixed;inset:0;width:100%;height:100%;outline:none}.shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(#0a192246,transparent 24%,transparent 63%,#071b2a75);box-shadow:inset 0 0 12vw #020e1e35}.topbar{position:fixed;inset:0 0 auto;display:flex;align-items:center;padding:22px 28px 18px 84px;gap:30px;z-index:5}.brand{color:white;text-decoration:none;display:grid;gap:6px;text-shadow:0 1px 5px #0004}.brand>span{font-size:10px;letter-spacing:.1em;opacity:.8}.brand strong{font-size:21px;letter-spacing:.045em;font-weight:300}.brand em{font-style:normal;font-weight:600}.brand small{font-size:10px;border:1px solid #ffffff40;padding:3px 5px;margin-left:8px;border-radius:4px}.topbar nav{display:flex;gap:8px;align-items:center;margin-left:auto}.topbar nav button,.bottom-bar button{border:1px solid #ffffff23;border-radius:8px;background:#09202d48;color:#fff;padding:10px 12px;font-size:12px;backdrop-filter:blur(12px)}.topbar nav button:hover,.bottom-bar button:hover{background:#ffffff24;border-color:#ffffff70}.topbar nav button span{color:#d0f5ac;font-size:10px;margin-left:5px}#fullscreen{font-size:23px;padding:5px 10px}.osd{position:fixed;inset:110px 46px 69px;pointer-events:none;text-shadow:0 1px 3px #000b,0 0 8px #0005;font-family:"Arial",sans-serif;font-variant-numeric:tabular-nums}.osd-top{display:flex;justify-content:space-between;align-items:flex-start;font-weight:600;font-size:15px;letter-spacing:.05em}.osd-top small{font-size:11px;margin-left:8px;opacity:.75;font-weight:400}.link-quality{font-size:13px;margin-left:auto}.link-quality small{margin-left:0}.compass{position:absolute;left:50%;transform:translateX(-50%);width:320px;text-align:center;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 20%,#000 80%,transparent)}#compass-ticks{display:flex;justify-content:center;gap:29px;font-size:11px;color:#fffc;height:26px}#compass-ticks span{width:32px;flex:none;position:relative}#compass-ticks span:after{content:'';position:absolute;top:18px;left:50%;height:5px;border-left:1px solid #fff8}.compass b{font-size:11px;display:block;line-height:7px;color:#d4f5b6}.compass strong{display:block;font-size:13px;padding-top:8px;letter-spacing:.1em}.crosshair{position:absolute;top:49%;left:50%;transform:translate(-50%,-50%);width:25px;height:25px;opacity:.65}.crosshair span:before,.crosshair span:after{content:'';position:absolute;top:12px;width:8px;border-top:1px solid #fff}.crosshair span:before{left:0}.crosshair span:after{right:0}.crosshair i{position:absolute;left:11px;top:11px;border-radius:50%;background:#fff;width:3px;height:3px}.telemetry-left,.telemetry-right{position:absolute;bottom:12px}.telemetry-left{left:0}.telemetry-right{right:0;text-align:right;display:grid;gap:8px;font-size:13px}.mode-tag{border:1px solid #ffffffb0;border-radius:3px;font-size:11px;padding:4px 7px;letter-spacing:.05em}.telemetry-left #flight-status{font-size:10px;letter-spacing:.11em;margin-left:13px;opacity:.8}.speed{display:flex;gap:6px;align-items:baseline;margin:17px 0 8px}.speed strong{font-size:38px;font-weight:500;letter-spacing:-.04em}.speed>span{font-size:15px;opacity:.7}.metric-row{display:flex;gap:25px;font-size:13px}.metric-row span{display:flex;gap:6px;align-items:baseline}.metric-row b{font-size:18px;font-weight:500}.metric-row small{font-size:11px;opacity:.6}.flight-time{display:flex;justify-content:flex-end;gap:8px;font-size:16px}.flight-time b{font-weight:400}.battery{display:flex;align-items:center;justify-content:flex-end;gap:6px}.battery b{font-size:23px;font-weight:500}.battery-icon{width:24px;height:12px;border:1px solid white;border-radius:2px;padding:2px;position:relative;margin-right:3px}.battery-icon:after{content:'';position:absolute;right:-4px;width:2px;height:5px;background:white;top:2px}.battery-icon i{display:block;height:100%;width:100%;background:#c6eda7}.dim{opacity:.6;font-size:11px}.sticks{position:fixed;bottom:72px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;user-select:none;z-index:4}.stick-pad{width:76px;height:76px;border-radius:50%;border:1px solid #ffffff48;position:relative;background:#0a253640;box-shadow:inset 0 0 20px #09202c33;touch-action:none;cursor:crosshair;backdrop-filter:blur(6px)}.stick-pad:before,.stick-pad:after{content:'';position:absolute;background:#ffffff24}.stick-pad:before{height:1px;top:50%;left:8px;right:8px}.stick-pad:after{width:1px;left:50%;top:8px;bottom:8px}.stick-ring{position:absolute;inset:18px;border:1px solid #fff2;border-radius:50%}.stick-dot{width:11px;height:11px;background:#e0f2d1;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 12px #e0f2d155;border:2px solid white;z-index:1}.bottom-bar{position:fixed;bottom:0;left:0;right:0;height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-top:1px solid #ffffff15;background:#071c2540;backdrop-filter:blur(8px);z-index:5}.bottom-bar>div{display:flex;gap:8px}.bottom-bar button{border-color:transparent;padding:6px 11px;background:none;font-size:11px}.renderer{font-size:9px;letter-spacing:.14em;opacity:.55}.welcome{position:fixed;top:43%;left:9%;transform:translateY(-50%);width:min(540px,82vw);z-index:6;text-shadow:0 2px 15px #061b3044}.welcome-kicker{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:.18em;color:#e1efebc0}.welcome-kicker .line{width:35px;height:1px;background:#c0dbbc}.welcome h1{font-size:clamp(36px,4vw,59px);font-weight:500;letter-spacing:-.06em;margin:22px 0 18px}.welcome>p{font-size:14px;line-height:1.8;color:#e8eeeecc;max-width:450px}.quick-controls{display:flex;gap:30px;margin:29px 0}.quick-controls>div{display:grid;gap:9px}.quick-controls span{display:flex;gap:5px}.quick-controls kbd{display:inline-flex;align-items:center;justify-content:center;width:25px;height:27px;border:1px solid #ffffff54;border-radius:4px;font-size:12px;background:#122b3340}.quick-controls small{font-size:10px;color:#e8eeeea1}.welcome-actions{display:flex;gap:10px;align-items:center}button.primary{display:flex;justify-content:space-between;align-items:center;gap:35px;background:#d6edba;color:#193328;border:1px solid #d6edba;padding:16px 22px;border-radius:9px;font-weight:600;font-size:14px;box-shadow:0 5px 22px #071e2220}button.primary:hover{background:#e6f6d4}button.secondary{padding:15px 14px;background:#152c3733;border:1px solid #fff4;color:white;border-radius:9px;font-size:12px}.welcome .welcome-note{font-size:11px;margin-top:20px;opacity:.6}.welcome .engine-note{font-size:11px;color:#d0dbde;margin:8px 0}.pause-card{position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);background:#112631c9;border:1px solid #ffffff2e;backdrop-filter:blur(18px);border-radius:20px;padding:34px 40px;text-align:center;width:min(410px,90vw);z-index:8;box-shadow:0 20px 90px #0003}.eyebrow{font-size:10px;color:#d6edba;letter-spacing:.16em}.pause-card h2{font-size:25px;font-weight:500;margin:17px 0}.pause-card p{font-size:13px;line-height:1.7;color:#c2d2dc}.pause-card .primary{margin:24px auto 0}.crash .eyebrow{color:#efbb9d}#toast{position:fixed;top:170px;left:50%;transform:translateX(-50%);font-size:12px;padding:10px 17px;border-radius:7px;background:#152c37d9;z-index:12;pointer-events:none;opacity:0;transition:opacity .2s}#toast.visible{opacity:1}dialog{color:#e2edf0;background:#112631f5;border:1px solid #6b8a974d;border-radius:18px;max-height:85dvh;width:min(660px,94vw);overflow:auto;padding:28px;box-shadow:0 25px 90px #0007}dialog::backdrop{background:#07162188;backdrop-filter:blur(8px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.dialog-head span{font-size:10px;letter-spacing:.18em;color:#9bb0b9}.dialog-head h2{margin:9px 0 0;font-size:24px;font-weight:500}.close{font-size:26px;background:none;border:0;color:#c6d5db;padding:0 5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 24px}.settings-grid>label{display:grid;gap:10px;font-size:12px;color:#bbd0d5}select,.settings-grid button{padding:10px 12px;border-radius:6px;border:1px solid #52717e;background:#203b48;color:#e9f0ef;font-size:12px;width:100%}.range-row{display:flex;gap:14px;align-items:center;height:34px}.range-row input{width:100%;accent-color:#c6e9a3}.range-row output{min-width:34px;color:#d0ecaf}.mode-note,dialog p{font-size:12px;line-height:1.8;color:#9eb6c0}.mode-note{margin:22px 0;padding:12px 15px;background:#ffffff06;border-radius:8px}.controller-settings{border-top:1px solid #ffffff1a;padding-top:12px}.controller-settings h3{font-size:16px;font-weight:500}.mapping{margin:14px 0}.map-row{display:grid;grid-template-columns:60px 1fr 70px 80px;gap:12px;align-items:center;padding:6px 0;font-size:11px}.map-row label{display:flex;gap:6px;align-items:center}.map-row meter{width:100%;accent-color:#c5e4a5}.credits{border-top:1px solid #ffffff15;padding-top:18px;display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#8ca3af}.credits a{color:#a1bbc2}.credits span{width:100%}.key-list{font-size:13px;line-height:1.7}.key-list>div{display:grid;grid-template-columns:120px 1fr;gap:10px;margin-bottom:18px}.key-list dt{color:#d1ebba}.key-list dd{margin:0;color:#b7cbd3}kbd{font:inherit}.flying .welcome{display:none}.osd-off #osd{display:none}
/* Keep stick geometry and touch hit areas available while hiding the overlay. */
.osd-off #sticks{opacity:0}
@media(max-width:1000px){.topbar nav{margin-left:auto}.telemetry-left .metric-row{gap:12px}.sticks{bottom:80px}.telemetry-left .metric-row span:last-child{display:none}}
@media(max-width:650px){.topbar{padding:14px 12px 14px 70px;gap:10px}.brand>span{font-size:8px}.brand strong{font-size:16px}.brand small{font-size:9px;margin-left:6px}.topbar nav{gap:4px}.topbar nav button{padding:8px;font-size:10px}#sound-toggle{display:none}#fullscreen{font-size:22px;padding:4px 7px}.osd{inset:92px 17px 70px}.osd-top{font-size:11px}.osd-top small{font-size:9px}.link-quality{font-size:10px}.compass{width:180px}.telemetry-left,.telemetry-right{bottom:122px}.speed strong{font-size:28px}.metric-row{gap:10px;font-size:10px}.metric-row b{font-size:14px}.telemetry-right{font-size:11px;gap:6px}.telemetry-right .dim{font-size:9px}.battery b{font-size:19px}.welcome{left:7%;top:43%;width:86%}.welcome h1{font-size:40px}.welcome>p{font-size:13px}.welcome-actions{gap:8px}.welcome-actions .primary{font-size:12px;padding:14px 17px;gap:22px}.welcome-actions .secondary{font-size:11px;padding:14px 10px}.quick-controls{gap:23px;margin:22px 0}.quick-controls kbd{width:22px}.welcome .welcome-note{font-size:10px}.bottom-bar{padding:0 8px;height:50px;justify-content:center}.renderer{display:none}.bottom-bar button{padding:7px 9px;font-size:10px}.sticks{bottom:65px;gap:30px}.stick-pad{width:86px;height:86px}.settings-grid{gap:16px}.map-row{grid-template-columns:45px 1fr 65px 55px;gap:7px}dialog{padding:22px}.key-list>div{grid-template-columns:85px 1fr}.pause-card{padding:28px}}
@media(max-height:600px){.topbar{padding-top:10px;padding-bottom:8px}.osd{inset:74px 28px 55px}.compass{top:0}.sticks{bottom:57px;gap:12px}.stick-pad{height:58px;width:58px}.telemetry-left,.telemetry-right{bottom:7px}.welcome{top:45%;left:7%;width:470px}.welcome h1{font-size:34px;margin:12px 0}.welcome>p{font-size:12px;margin:8px 0}.quick-controls{margin:14px 0}.welcome .welcome-note{margin-top:10px}.welcome-kicker{font-size:9px}.welcome-actions .primary{padding:11px 18px}.welcome-actions .secondary{padding:11px}.bottom-bar{height:44px}.speed{margin:10px 0 6px}.speed strong{font-size:28px}.welcome .engine-note{font-size:10px}#toast{top:110px}}

@media(max-width:650px){body:not(.flying) .telemetry-left,body:not(.flying) .telemetry-right,body:not(.flying) .compass{visibility:hidden}.welcome .welcome-note{opacity:.85;text-shadow:0 1px 4px #09202c}}

.reset-binding{margin:20px 0;padding-top:18px;border-top:1px solid #ffffff1a}.reset-binding>label{display:block;font-size:12px;color:#bbd0d5;margin-bottom:10px}.reset-binding-controls{display:grid;grid-template-columns:1fr auto;gap:10px}.reset-binding-controls button{border:1px solid #779c89;border-radius:6px;background:#314e47;color:#e1efda;padding:10px 14px;font-size:12px}.reset-binding-controls button:disabled{cursor:default}.map-row{grid-template-columns:50px minmax(70px,1fr) 65px minmax(60px,100px) 45px;gap:10px}.map-row output{font-size:11px;font-variant-numeric:tabular-nums;text-align:right;color:#d0ecaf}@media(max-width:650px){.map-row{grid-template-columns:40px minmax(65px,1fr) 56px 50px 40px;gap:5px}.map-row select{padding:9px 5px}.reset-binding-controls{grid-template-columns:1fr}.reset-binding-controls button{padding:11px}}

.mapping-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:18px;color:#a9c1c8;font-size:11px;line-height:1.6}.mapping-heading button{border:1px solid #52717e;border-radius:6px;background:#203b48;color:#e9f0ef;padding:8px 10px;font-size:11px}

.settings-grid>label{align-content:start}.setting-note{font-size:11px;line-height:1.6;color:#a9c1c8}

/* The flight surface owns gestures; menus keep their normal scrolling behavior. */
#ocean{touch-action:none}.sticks{gap:24px;touch-action:none;-webkit-user-select:none}.stick-pad{flex:none}.stick-pad.active{border-color:#d4edb5aa;background:#0a253677;box-shadow:0 0 18px #d4edb51a,inset 0 0 20px #09202c33}
.sticks.floating{inset:0;transform:none;display:block;pointer-events:none;width:auto;height:auto}.sticks.floating .stick-pad{position:fixed;width:104px;height:104px;top:calc(100% - 130px - env(safe-area-inset-bottom,0px));transform:translate(-50%,-50%);opacity:.35;pointer-events:none}.sticks.floating #left-stick{left:23%}.sticks.floating #right-stick{left:77%}.sticks.floating .stick-pad.active{opacity:1}.sticks.floating .stick-ring{inset:26px}.sticks.floating .stick-dot{width:15px;height:15px}
@media(max-height:500px){.sticks.floating .stick-pad{width:92px;height:92px;top:calc(100% - 110px - env(safe-area-inset-bottom,0px))}.sticks.floating .stick-ring{inset:23px}}

/* Compact, sectioned flight settings and shared rate-curve preview. */
#settings{width:min(720px,94vw)}#settings .dialog-head{margin-bottom:18px}.settings-tabs{display:flex;gap:4px;padding:4px;margin:0 0 22px;border-radius:10px;background:#071b2780}.settings-tabs button{flex:1;border:0;border-radius:7px;background:none;color:#afc3cc;padding:10px 8px;font-size:13px}.settings-tabs button[aria-pressed="true"]{background:#365447;color:#e3f1d5}.settings-tabs button:hover{color:white}#setup-controller{border-top:0;padding-top:0}#help .credits{margin-top:14px;padding-top:12px}.rates-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.rate-type{display:flex;gap:4px;border:1px solid #ffffff25;padding:3px;border-radius:8px}.rate-type button{color:#b9ced5;background:none;border:0;border-radius:5px;font-size:13px;padding:8px 17px}.rate-type button[aria-pressed="true"]{background:#d6edba;color:#193328;font-weight:600}.rate-reset{background:none;border:0;color:#b8cbd0;font-size:12px;padding:7px 0;text-decoration:underline;text-underline-offset:4px}.rate-reset:hover{color:#e4f2d6}.rate-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.rate-table th{font-weight:500;text-align:left}.rate-table thead th{font-size:12px;color:#b9cfd6;padding-bottom:7px}.rate-table th:first-child{width:52px}.rate-table thead small{display:block;color:#8ea9b4;font-size:10px;line-height:1.5}.rate-table td{padding:5px 6px}.rate-table td:last-child{padding-right:0}.rate-table input{width:100%;min-width:0;border:1px solid #52717e;border-radius:6px;padding:9px 10px;font-size:14px;color:#eef5f2;background:#203b48;font-variant-numeric:tabular-nums}.rate-table input:focus{outline:1px solid #c6e9a3;outline-offset:1px}.rate-graph{margin:18px 0 10px;padding:8px 10px 5px;background:#081e2980;border:1px solid #ffffff14;border-radius:10px}.rate-graph svg,.throttle-graph svg{display:block;width:100%;overflow:visible}.rate-graph svg text,.throttle-graph svg text{fill:#a9c1cc;font:11px Arial,sans-serif}.rate-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 22px;font-size:12px;color:#c4d5d8}.rate-legend span{display:flex;gap:5px;align-items:center}.rate-legend b{color:var(--axis-color);font-weight:500}.rate-legend i{height:7px;width:7px;border-radius:50%;background:var(--axis-color)}.rate-help{margin:12px 0 0;font-size:12px;line-height:1.65;color:#a9c0c8}.throttle-heading{margin-top:22px;padding-top:17px;border-top:1px solid #ffffff1a;display:flex;align-items:center;justify-content:space-between;gap:12px}.throttle-heading h3{font-size:15px;font-weight:500;margin:0}.throttle-editor{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;margin-top:10px}.throttle-fields{display:grid;gap:8px}.throttle-fields label{display:flex;justify-content:space-between;font-size:12px;color:#bfd2d8}.throttle-fields input{width:100%;accent-color:#c6e9a3;margin:0 0 12px}.throttle-fields output{color:#d6edba;font-variant-numeric:tabular-nums}.rate-saved{font-size:11px;color:#8faab4;margin-top:16px}#settings button:focus-visible{outline-offset:2px}
@media(max-width:500px){#settings{padding:18px}.rate-type button{padding:8px 12px}.rate-table th:first-child{width:36px}.rate-table td{padding:4px}.rate-table input{padding:9px 6px;font-size:13px}.rate-table thead th{font-size:11px}.rate-graph{padding:6px 2px}.rate-legend{gap:7px 12px;font-size:11px}.throttle-editor{grid-template-columns:1fr;gap:0}.throttle-fields{grid-template-columns:1fr 1fr;column-gap:20px}.throttle-fields label{grid-row:1}.throttle-fields input{grid-row:2}.throttle-graph{max-width:300px;width:100%;justify-self:center}.throttle-heading{margin-top:17px}.settings-tabs button{font-size:12px}}

#settings{scrollbar-color:#587381 #112631;scrollbar-width:thin}

.rate-table thead th:not(:first-child){padding-left:6px;padding-right:6px}

.speed>.speed-secondary{font-size:14px;white-space:nowrap;opacity:.8}
@media(max-width:650px){.speed{flex-wrap:wrap;column-gap:5px;row-gap:0}.speed>.speed-secondary{flex-basis:100%;font-size:12px}}

/* Keep the language switch inside the simulator header, including fullscreen. */
.topbar nav .language-switch{display:flex;align-items:center;gap:2px;white-space:nowrap;margin-right:5px}
.topbar nav .language-switch button{border:0;background:none;backdrop-filter:none;padding:9px 5px;color:#ffffff8c;font-size:12px}
.topbar nav .language-switch button[aria-pressed="true"]{color:#fff;font-weight:600}
.topbar nav .language-switch button:hover{color:#d6edba}
.topbar nav .language-switch>span{font-size:12px;opacity:.35;margin:0 2px}
.bottom-bar{display:grid;grid-template-columns:1fr auto 1fr}
@media(max-width:650px){.topbar{flex-wrap:wrap;row-gap:8px}.topbar nav{width:100%;justify-content:flex-end}.topbar nav .language-switch button{font-size:11px;padding:8px 4px}.osd{top:125px}.bottom-bar{grid-template-columns:1fr}.bottom-bar>div{justify-content:center}}

/* Map selection sits immediately after the title/version. */
.brand-group{display:flex;align-items:flex-end;gap:14px;flex-shrink:0}.brand{white-space:nowrap}
.map-switch{display:flex;align-items:center;gap:2px;padding:3px;margin-bottom:-2px;border:1px solid #ffffff35;border-radius:8px;background:#0d252b85;backdrop-filter:blur(12px)}
.map-switch button{background:transparent;color:#d7e4df;border:0;padding:6px 10px;border-radius:5px;font-size:11px;white-space:nowrap}
.map-switch button[aria-pressed="true"]{background:#d6edba;color:#193328;font-weight:600}
.map-switch button:hover{background:#ffffff22}.map-switch button[aria-pressed="true"]:hover{background:#e3f2d2}
.contact-indicator{position:absolute;bottom:calc(100% + 14px);left:0;display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #ffc88d8c;border-radius:6px;padding:7px 10px;background:#42250cd9;color:#ffdaa7;font-size:12px;letter-spacing:.04em;text-shadow:none;box-shadow:0 0 16px #ffb55b18}
.contact-indicator>span{display:grid;place-items:center;width:15px;height:15px;border:1px solid currentColor;border-radius:50%;font-size:10px;font-weight:700}.contact-indicator b{font-weight:600}
@media(max-width:1250px){.topbar nav{margin-left:auto}.topbar{gap:16px}}
@media(max-width:650px){.brand-group{gap:8px;flex-wrap:wrap;max-width:100%}.brand strong{font-size:14px}.map-switch{padding:2px;margin-bottom:-2px}.map-switch button{font-size:10px;padding:6px 7px}.osd-top .compass{margin-top:0}.welcome{top:46%}.welcome h1{font-size:34px}.contact-indicator{font-size:11px}}
@media(max-height:600px){.welcome{top:48%}.welcome h1{margin:10px 0}.welcome .quick-controls{margin:12px 0}.welcome .welcome-note{margin-top:10px}.contact-indicator{bottom:calc(100% + 9px)}}

.welcome{top:49%}.welcome-kicker{visibility:hidden}

.welcome{text-shadow:0 2px 8px #07151be6}.welcome>p{color:#eef5f4}.welcome .secondary{background:#142b35a8}.welcome .welcome-note{opacity:.9}

/* Camera shortcuts and settings share this lower-right OSD readout. */
.camera-readout{display:flex;justify-content:flex-end;gap:16px;white-space:nowrap;margin-top:4px;padding-top:10px;border-top:1px solid #ffffff40;font-size:13px}
.camera-readout>div{display:flex;justify-content:flex-end;align-items:baseline;gap:6px}
.camera-readout span{color:#e4eceb}.camera-readout b{min-width:4ch;color:#e3f1d5;font-weight:600}
@media(max-width:650px){.camera-readout{font-size:12px;gap:12px;padding-top:8px}.camera-readout>div{gap:5px}}

/* Mobile keeps larger touch controls visible in either orientation. */
.mobile-device.osd-off #sticks{opacity:1}
.mobile-device .sticks.floating .stick-pad{width:144px;height:144px;top:calc(100% - 124px - env(safe-area-inset-bottom,0px));opacity:.6;border-color:#ffffff70}
.mobile-device .sticks.floating #left-stick{left:17%}.mobile-device .sticks.floating #right-stick{left:83%}
.mobile-device .sticks.floating .stick-pad.active{opacity:1}
.mobile-device .sticks.floating .stick-ring{inset:36px}.mobile-device .sticks.floating .stick-dot{width:20px;height:20px}
@media(orientation:landscape){
.mobile-device .topbar{padding:10px calc(12px + env(safe-area-inset-right,0px)) 8px calc(70px + env(safe-area-inset-left,0px));gap:10px;flex-wrap:nowrap}
.mobile-device .brand-group{gap:9px;flex-wrap:nowrap}.mobile-device .brand strong{font-size:16px}.mobile-device .brand>span{font-size:9px}.mobile-device .brand small{font-size:9px;margin-left:5px}
.mobile-device .topbar nav{width:auto;gap:3px}.mobile-device .topbar nav button{font-size:10px;padding:8px}.mobile-device .topbar nav .language-switch{margin-right:1px}.mobile-device .topbar nav .language-switch button{font-size:10px;padding:8px 3px}
.mobile-device .map-switch{padding:2px}.mobile-device .map-switch button{font-size:10px;padding:6px 7px}.mobile-device #sound-toggle{display:none}.mobile-device #fullscreen{font-size:20px;padding:4px 7px}
.mobile-device .quick-controls{display:none}.mobile-device .welcome{top:48%;width:min(470px,80vw)}.mobile-device .welcome h1{font-size:32px}.mobile-device .welcome-note{max-width:440px}
.mobile-device .osd{inset:76px max(22px,env(safe-area-inset-right)) 52px max(22px,env(safe-area-inset-left))}.mobile-device .telemetry-left,.mobile-device .telemetry-right{top:8px;bottom:auto}.mobile-device .osd-top .link-quality{position:absolute;top:-22px;right:0}.mobile-device .telemetry-right{font-size:11px;gap:3px}.mobile-device .telemetry-right .flight-time{font-size:13px}.mobile-device .telemetry-right .battery b{font-size:18px}.mobile-device .camera-readout{font-size:11px;gap:10px}.mobile-device .speed{margin:6px 0}.mobile-device .speed strong{font-size:26px}.mobile-device .metric-row b{font-size:15px}
.mobile-device .bottom-bar{padding-bottom:env(safe-area-inset-bottom,0px);height:calc(44px + env(safe-area-inset-bottom,0px))}
}
@media(orientation:landscape) and (max-width:720px){.mobile-device .brand strong{font-size:14px}.mobile-device .topbar{gap:6px}.mobile-device .brand-group{gap:6px}}
@media(max-height:340px){.mobile-device .sticks.floating .stick-pad{width:128px;height:128px;top:calc(100% - 112px - env(safe-area-inset-bottom,0px))}.mobile-device .sticks.floating .stick-ring{inset:32px}}

/* Concise help beside map selection, shared with the footer and keyboard shortcut. */
.scene-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.help-trigger{white-space:nowrap;flex-shrink:0;border:1px solid #d6edba60;border-radius:8px;background:#152d32b0;backdrop-filter:blur(12px);color:#e2f1d2;font-size:12px;padding:9px 12px;line-height:1.2}
.help-trigger:hover{background:#29483e;border-color:#d6edba}
#help{width:min(600px,94vw);padding:22px;max-height:88dvh}
#help .dialog-head{margin-bottom:16px}#help h2{margin:0 0 7px;font-size:25px}#help .help-recommendation{margin:0;color:#d6edba;font-size:13px}
.help-section+.help-section{border-top:1px solid #ffffff18;padding-top:14px;margin-top:14px}
.help-section h3{font-size:14px;font-weight:600;margin:0 0 12px;color:#e5efed}
.help-keys{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;margin:0}
.help-keys>div{display:flex;align-items:center;gap:10px;min-width:0}.help-keys dt{flex:0 0 65px}.help-keys dd{margin:0;font-size:13px;line-height:1.5;color:#d3e0e3}
.help-keys kbd{display:inline-block;min-width:50px;padding:4px 7px;text-align:center;border:1px solid #8aa69c55;border-radius:5px;background:#ffffff08;color:#d6edba;font-size:12px;line-height:1.4}
#help .help-hint{margin:12px 0 0;color:#a9bfc8;font-size:12px}
.help-devices{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 12px}.help-devices li{font-size:12px;line-height:1.5;color:#d5e5dc;background:#c9dfb90c;border:1px solid #c9dfb92a;border-radius:6px;padding:5px 8px}
#help .help-section p{margin:5px 0;font-size:13px;line-height:1.7;color:#b8ced5}
.help-settings{padding:8px 0 2px;background:none;border:0;color:#d6edba;font-size:13px;text-align:left}.help-settings:hover{text-decoration:underline}
.help-mobile{border-top:1px solid #ffffff18;margin-top:14px;padding-top:11px}#help .help-mobile p{margin:3px 0;font-size:12px;font-weight:700;color:#d6edba;line-height:1.6}
@media(max-width:650px){.scene-tools{gap:6px}.help-trigger{font-size:11px;padding:8px 9px}}
@media(orientation:landscape){.mobile-device .help-trigger{font-size:10px;padding:8px}.mobile-device .scene-tools{gap:5px}}
@media(max-width:480px){#help{padding:20px}.help-keys{gap:9px 10px}.help-keys>div{gap:7px}.help-keys dt{flex-basis:47px}.help-keys kbd{min-width:43px;padding:4px;font-size:11px}.help-keys dd{font-size:12px}.help-devices li{font-size:11px}}

#reset-binding-status:empty{display:none}

/* Controller stick layouts share the compact settings palette. */
.stick-mode-settings{margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #ffffff1a}
.stick-mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}
.stick-mode-options button{padding:10px 12px;border:1px solid #ffffff24;border-radius:8px;font-size:14px;color:#c4d4d9;background:#0c2029}
.stick-mode-options button[aria-pressed="true"]{background:#d6edba;color:#172b2b;border-color:#d6edba;font-weight:700}
.stick-mode-layout{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stick-mode-layout>div{display:grid;gap:7px;padding:12px 14px;background:#ffffff05;border:1px solid #ffffff16;border-radius:8px;font-size:13px}
.stick-mode-layout strong{font-size:12px;color:#9eb3bd;font-weight:500;margin-bottom:3px}
.controller-settings .stick-mode-settings p{margin-bottom:0;font-size:12px}
