:root{font-family:Inter,Arial,sans-serif;color:#183f46;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0;background:#c7e5e6;overflow:hidden}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #e6784c;outline-offset:5px}a{color:inherit;text-decoration:none}button:hover,a:hover{filter:brightness(.94)}[hidden]{display:none!important}#flight-app,#world{position:fixed;inset:0;width:100%;height:100%}#world{display:block;outline:none;touch-action:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#e7f5ef2e,transparent 24%,transparent 76%,#22505324)}.topbar{position:absolute;top:27px;left:34px;right:34px;display:flex;align-items:center;justify-content:space-between}.wordmark{font-family:Georgia,serif;font-size:48px;line-height:1;font-style:italic;letter-spacing:-3px;display:flex;align-items:baseline;gap:15px}.wordmark span{font-family:Arial,sans-serif;font-size:10px;font-style:normal;letter-spacing:2px;text-transform:uppercase}.top-actions{display:flex;align-items:center;gap:15px}.top-actions>a{font-size:11px;font-weight:600;letter-spacing:.02em;margin-right:7px}.top-actions>a span{margin-left:12px}.top-actions button{width:36px;height:36px;border-radius:50%;background:#eff7f0a6;border:1px solid #fff8;font-size:17px}.glass{background:rgba(246,249,235,.75);border:1px solid rgba(255,255,255,.74);box-shadow:0 6px 28px #113a3d0e;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.identity{position:absolute;left:34px;top:106px;width:291px;padding:20px 20px 16px;border-radius:5px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#548087}.species-row{display:flex;align-items:center;justify-content:space-between;margin-top:11px}.species-row select{border:0;background:transparent;font-size:22px;letter-spacing:-.8px;width:230px;cursor:pointer;padding:0 12px 0 0}.species-row select option{font-size:15px;background:#f3f6ec}.live-dot{height:6px;width:6px;border-radius:50%;background:#d68151;flex-shrink:0}.identity p{font-size:10px;line-height:1.7;max-width:210px;margin:9px 0 17px;color:#628086}.mode-switch{display:flex;gap:4px;background:#d5e2db66;border-radius:3px;padding:3px}.mode-switch button{background:transparent;padding:9px 11px;flex:1;font-size:10px;border-radius:2px;color:#527277}.mode-switch button.active{background:#fffdf4;color:#234e51;box-shadow:0 1px 4px #123b3610}.mode-switch span{margin-left:10px}.objective{position:absolute;top:108px;right:34px;padding:16px 18px;width:272px;border-radius:5px}.objective p{font-family:Georgia,serif;font-size:17px;line-height:1.4;letter-spacing:-.15px;margin:7px 0 0}.objective .eyebrow{font-size:9px}#route-progress{height:2px;background:#365e5d1c;margin-top:12px}#route-fill{height:100%;display:block;background:#db7c50;transition:width .4s}.telemetry{position:absolute;left:34px;bottom:87px;border-radius:5px;display:flex;padding:16px 21px;gap:26px;min-width:312px}.telemetry>div{position:relative;min-width:60px}.telemetry>div+div{border-left:1px solid #38676325;padding-left:21px}.telemetry strong{font-size:28px;font-weight:400;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}.telemetry span{font-size:10px;margin-left:4px}.telemetry small{display:block;font-size:9px;letter-spacing:1.2px;color:#45605f;margin-top:4px}.telemetry .state{display:flex;flex-direction:column;justify-content:center;min-width:99px}.state i{position:absolute;left:21px;top:0;opacity:.65;font-size:15px;font-style:normal}.telemetry .state strong{font-size:10px;letter-spacing:.9px;margin-top:20px}.telemetry .state span{font-size:9px;color:#6c898b;margin:5px 0 0}.bottom-help{position:absolute;bottom:36px;left:34px;display:flex;gap:17px;align-items:center;font-size:9px;color:#264f55}.bottom-help>span{display:flex;align-items:center;gap:6px}.bottom-help kbd{font-family:inherit;font-size:9px;background:#f4f8eb9e;border:1px solid #fcfff5b0;padding:5px 6px;border-radius:3px;letter-spacing:.6px}.bottom-help button{font-size:10px;background:none;padding:4px 0;color:inherit}.bottom-help button span{margin-left:4px}.prototype-note{position:absolute;bottom:37px;right:34px;font-size:9px;letter-spacing:1.2px;opacity:.7}.prototype-note span{padding:0 8px}#crosshair{position:absolute;left:50%;top:48%;width:26px;height:16px;transform:translate(-50%,-50%);opacity:.42;pointer-events:none}#crosshair span{position:absolute;left:0;right:0;top:8px;height:1px;background:#fff}#crosshair i{position:absolute;top:2px;bottom:2px;left:12px;width:1px;background:#fff}.world-marker{position:absolute;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff9e9;text-shadow:0 1px 5px #29575c;transform:translate(-50%,-50%);opacity:.9}.world-marker>span{font-size:25px;color:#ffbc82}.world-marker b{font-size:9px;font-weight:500;letter-spacing:1.1px}.world-marker small{font-size:9px}.gate-marker span{font-size:35px}.gate-marker b{color:#fff9e9;font-size:10px}.toast{position:absolute;left:50%;bottom:144px;transform:translateX(-50%);padding:13px 21px;background:#163f48e8;color:#fff8e9;box-shadow:0 5px 20px #153f4424;border:1px solid #eff9f333;border-radius:5px;text-align:center;font-size:12px;max-width:90%;line-height:1.6}.panel-overlay{position:absolute;inset:0;z-index:20;background:#214c5450;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}.panel{width:430px;padding:39px;border-radius:8px;position:relative;background:#f5f5e9f2;max-height:calc(100dvh - 48px);overflow-y:auto}.panel h1{font-family:Georgia,serif;font-weight:400;font-size:40px;line-height:1.03;letter-spacing:-1.9px;margin:20px 0}.panel p{font-size:12px;color:#648185;line-height:1.8;margin-bottom:24px}.panel>button,.panel>a{display:block;width:100%;padding:14px 16px;border-radius:3px;background:#e3e9df;margin-top:8px;text-align:left;font-size:11px}.panel .primary{background:#234e51;color:#fff8e9;display:flex;justify-content:space-between;align-items:center}.panel>a:not(.primary){background:transparent;padding:10px 0;color:#4d7477;margin-top:9px}.panel .close{position:absolute;right:20px;top:16px;width:28px;background:none;padding:0;font-size:27px;line-height:28px;margin:0}.guide-panel{width:480px;padding:32px 37px}.guide-panel h1{font-size:35px;margin:17px 0}.guide-panel>p{font-size:11px;margin-bottom:17px}.guide-panel dl{font-size:10px;margin:0}.guide-panel dl>div{display:flex;padding:9px 0;border-bottom:1px solid #204d5114;gap:12px}.guide-panel dt{width:135px;flex-shrink:0;font-weight:600}.guide-panel dd{margin:0;color:#628084}.guide-panel .landing-help{margin:17px 0;font-size:10px}.preferences{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:10px}.preferences label{display:flex;gap:5px;align-items:center}.preferences input{accent-color:#376966}.guide-panel .fineprint{font-size:10px;line-height:1.6;margin:17px 0}.noscript{position:absolute;inset:35%;padding:30px;background:#fff}.noscript a{text-decoration:underline}#touch-controls{display:none}.touch-actions{display:grid;grid-template-columns:65px 65px;gap:8px}.touch-actions button{background:#f7f7ecab;border:1px solid #fff9;border-radius:50px;min-height:43px;font-size:11px;user-select:none;-webkit-user-select:none;touch-action:none}.touch-actions .flap-button{grid-column:1/-1;background:#234d52d6;color:#fff7e7;height:52px}.touch-actions button:last-child{grid-column:1/-1;font-size:10px;min-height:30px;background:#f7f7ec79}.touch-actions button.held{background:#e99b6e;color:#183f46}#touch-stick{width:112px;height:112px;border-radius:50%;border:1px solid #fff8;background:#f3f7eb38;position:relative;touch-action:none;user-select:none;-webkit-user-select:none}#stick-thumb{position:absolute;left:36px;top:36px;width:40px;height:40px;border-radius:50%;background:#f1f6eab8;border:1px solid #fff9;pointer-events:none}#touch-stick small{position:absolute;left:0;right:0;bottom:-22px;text-align:center;font-size:9px;letter-spacing:1px;color:#fff7e8;text-shadow:0 1px 3px #30555d}
.cruise-option{display:flex;align-items:center;gap:5px;font-size:10px;margin-top:12px;color:#476f73}.cruise-option input{accent-color:#3d7574;width:12px;height:12px;margin:0 3px 0 0}.cruise-option span{font-size:9px;color:#6c898a;margin-left:auto}
@media(max-width:1000px){.prototype-note{display:none}.bottom-help{gap:11px;font-size:9px}.identity{width:258px}.species-row select{width:205px;font-size:20px}.objective{width:235px}.telemetry{gap:17px;min-width:286px}}
@media(pointer:coarse){#touch-controls{display:flex;position:absolute;left:28px;right:24px;bottom:44px;justify-content:space-between;align-items:center;pointer-events:none}#touch-controls>*{pointer-events:auto}.bottom-help{display:none}.telemetry{bottom:228px;padding:10px 14px;min-width:243px;gap:12px}.telemetry strong{font-size:23px}.telemetry>div+div{padding-left:13px}.telemetry .state{min-width:75px}.state i{left:13px}.telemetry .state strong{font-size:9px}.toast{bottom:230px}}
@media(max-width:650px){.topbar{top:20px;left:21px;right:21px}.wordmark{font-size:40px}.wordmark span{font-size:9px;letter-spacing:1.4px;gap:10px}.top-actions{gap:8px}.top-actions>a{font-size:10px;margin-right:3px}.top-actions>a span{margin-left:5px}.top-actions button{width:31px;height:31px}.identity{left:20px;top:83px;width:210px;padding:13px 14px}.eyebrow{font-size:8px;letter-spacing:1.3px}.species-row{margin-top:8px}.species-row select{width:169px;font-size:19px}.identity p{font-size:9px;line-height:1.6;margin:6px 0 10px;max-width:165px}.mode-switch button{font-size:9px;padding:8px 5px}.mode-switch span{margin-left:6px}.objective{top:83px;right:20px;left:245px;width:auto;min-width:0;padding:12px;max-width:160px}.objective .eyebrow{font-size:8px;line-height:1.5;letter-spacing:1px}.objective p{font-size:12px;line-height:1.5}.telemetry{left:20px}.panel{padding:28px;max-height:calc(100dvh - 28px)}.panel-overlay{padding:14px}.panel h1{font-size:34px}.guide-panel dl{font-size:10px}.guide-panel dt{width:110px}.world-marker b{font-size:8px}.prototype-note,.bottom-help{display:none}.toast{font-size:10px;padding:10px 13px}.preferences{font-size:10px}}
@media(max-width:430px){.objective{top:270px;left:20px;right:auto;width:210px;max-width:210px;padding:10px 14px}.objective p{font-size:11px;margin-top:4px}.objective .eyebrow{font-size:8px}.telemetry{bottom:220px;transform:scale(.88);transform-origin:left bottom}.world-marker b{display:none}.cruise-option{font-size:9px}.cruise-option span{font-size:8px}}
@media(max-height:600px) and (orientation:landscape){.identity{top:83px;padding:12px 15px}.identity p{display:none}.mode-switch{margin-top:12px}.objective{top:83px}.telemetry{bottom:36px;left:180px;transform:scale(.8);transform-origin:left bottom}.bottom-help{bottom:15px}.prototype-note{display:none}#touch-controls{bottom:30px}.toast{bottom:110px}.panel{max-height:calc(100dvh - 24px)}.panel-overlay{padding:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}#route-fill{transition:none}}
/* Flight-critical text remains legible over a moving scene. */
.wordmark span,.eyebrow,.objective .eyebrow,.identity p,.cruise-option span,.telemetry span,.telemetry small,.telemetry .state span,.prototype-note,.world-marker b,.world-marker small,.guide-panel .fineprint{font-size:12px}
.top-actions>a,.mode-switch button,.bottom-help,.bottom-help button,.cruise-option,.telemetry .state strong,.panel p,.panel>button,.panel>a,.guide-panel>p,.guide-panel dl,.guide-panel .landing-help,.preferences,.touch-actions button,.touch-actions button:last-child{font-size:14px}
.identity{width:330px}.identity p{max-width:none}.species-row select{width:270px;font-size:25px}.eyebrow{letter-spacing:1.1px}.objective{width:300px}.objective p{font-size:20px}.mode-switch button{padding:10px 6px}.cruise-option{gap:6px}.cruise-option span{font-size:12px}.telemetry{min-width:370px;gap:22px}.telemetry .state{min-width:120px}.telemetry .state strong{letter-spacing:.4px}.telemetry strong{font-size:32px}.telemetry small{letter-spacing:.7px}.bottom-help{gap:14px}.bottom-help kbd{font-size:12px}.prototype-note{font-size:12px;letter-spacing:.4px}.world-marker b{letter-spacing:.4px}.world-marker small{font-size:12px}.guide-panel{width:550px}.guide-panel dt{width:160px}.guide-panel dl>div{padding:10px 0}.guide-panel .fineprint{font-size:12px}.panel h1{letter-spacing:-1px}.touch-actions{grid-template-columns:72px 72px}.touch-actions button{min-height:47px}#touch-stick small{font-size:12px;letter-spacing:.3px}.toast{font-size:14px}
@media(max-width:1200px){.prototype-note{display:none}.bottom-help{gap:11px}.bottom-help>span{font-size:12px}.identity{width:305px}.species-row select{width:245px}.cruise-option span{display:none}}
@media(max-width:760px){.identity{width:250px}.species-row select{width:190px}.identity .eyebrow{font-size:10px}.objective{width:235px}.objective p{font-size:17px}.bottom-help{display:none}.telemetry{bottom:40px}}
@media(pointer:coarse){.telemetry{bottom:232px;padding:13px 16px;gap:16px}.telemetry strong{font-size:28px}.telemetry>div+div{padding-left:15px}.telemetry .state{min-width:106px}.state i{left:15px}}
@media(max-width:650px){.top-actions>a{font-size:12px}.wordmark span{font-size:10px;letter-spacing:1px}.identity{width:195px;padding:12px 13px}.identity>.eyebrow,.identity p{display:none}.species-row{margin-top:0}.species-row select{font-size:20px;width:158px}.mode-switch{margin-top:13px}.mode-switch button{font-size:14px;padding:8px 2px}.mode-switch span{display:none}.cruise-option{font-size:14px;margin-top:11px;gap:4px}.objective{top:83px;left:229px;right:20px;min-width:0;width:auto;padding:12px}.objective .eyebrow{font-size:12px;letter-spacing:.2px;line-height:1.4}.objective p{font-size:15px;margin-top:8px;line-height:1.4}.telemetry{left:20px;min-width:0;gap:13px;transform:none;padding:12px 14px;max-width:calc(100vw - 40px)}.telemetry strong{font-size:26px}.telemetry small{font-size:12px}.telemetry .state strong{font-size:12px}.telemetry .state{min-width:100px}.telemetry span,.telemetry .state span{font-size:12px}.telemetry>div+div{padding-left:12px}.telemetry>div{min-width:52px}.guide-panel dl,.guide-panel>p,.guide-panel .landing-help,.preferences{font-size:14px}.guide-panel dt{width:125px}.guide-panel .fineprint{font-size:12px}.guide-panel{padding:27px}.toast{font-size:14px}.world-marker b{display:none}.world-marker small{font-size:12px}}
@media(max-width:370px){.wordmark span{display:none}.identity{width:180px}.species-row select{font-size:18px;width:145px}.mode-switch button{font-size:12px}.objective{left:213px;right:14px}.objective .eyebrow{font-size:12px}.objective p{font-size:14px}.telemetry{left:12px;max-width:calc(100vw - 24px);gap:9px;padding:10px}.telemetry .state{min-width:89px}.telemetry small{font-size:11px}.telemetry .state span{font-size:11px}}
@media(max-height:600px) and (orientation:landscape){.identity{top:80px;width:265px}.identity>.eyebrow,.identity p{display:none}.species-row select{width:210px}.cruise-option{margin-top:8px}.mode-switch{margin-top:10px}.objective{top:80px}.telemetry{bottom:27px;left:175px;transform:none;gap:12px;padding:10px 13px;min-width:310px}.telemetry strong{font-size:24px}.telemetry .state strong,.telemetry .state span,.telemetry small{font-size:12px}.telemetry .state{min-width:103px}.telemetry>div+div{padding-left:12px}.bottom-help{display:none}}
.bottom-help>span{font-size:14px}
@media(max-width:760px){
  #touch-controls{display:flex;position:absolute;left:25px;right:22px;bottom:30px;justify-content:space-between;align-items:center;pointer-events:none}#touch-controls>*{pointer-events:auto}
  .identity{left:20px;right:20px;top:83px;width:auto;padding:12px 13px;display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,1fr);column-gap:10px}.identity>.eyebrow,.identity p{display:none}.species-row{min-width:0;margin:0}.species-row select{width:100%;font-size:20px;letter-spacing:-.6px}.live-dot{display:none}.mode-switch{margin:0;width:auto;min-width:0}.mode-switch button{font-size:14px;padding:8px 2px}.cruise-option{grid-column:1/-1;font-size:14px;margin-top:10px}.cruise-option span{display:inline;font-size:12px;margin-left:auto}
  .objective{top:190px;left:20px;right:20px;width:auto;max-width:none;padding:10px 13px}.objective .eyebrow{font-size:12px;letter-spacing:.4px}.objective p{font-size:14px;margin-top:5px;line-height:1.4}#route-progress{margin-top:8px}
  .telemetry{bottom:213px;left:20px;gap:12px;padding:11px 13px;max-width:calc(100vw - 40px);min-width:0;transform:none}.telemetry strong{font-size:26px}.telemetry .state strong,.telemetry .state span,.telemetry small{font-size:12px}.telemetry .state{min-width:101px}.telemetry>div+div{padding-left:12px}.state i{left:12px}.toast{bottom:295px;font-size:14px}
}
@media(max-width:370px){.identity{left:14px;right:14px;grid-template-columns:minmax(0,1fr) minmax(136px,1fr);gap:7px;padding:11px}.species-row select{font-size:18px}.cruise-option span{display:none}.objective{left:14px;right:14px}.telemetry{left:14px;max-width:calc(100vw - 28px);gap:8px;padding:10px}.telemetry>div+div{padding-left:9px}.telemetry .state{min-width:92px}.telemetry small{letter-spacing:0}.touch-actions{grid-template-columns:66px 66px}}
@media(max-height:600px) and (orientation:landscape){.identity{left:20px;right:auto;width:310px;top:80px}.objective{left:auto;right:20px;top:80px;width:250px}.telemetry{bottom:28px;left:170px}.toast{bottom:115px}}

.mouse-capture{width:100%;margin-top:12px;padding:10px 8px;border-radius:3px;background:#234e51;color:#fff8e9;font-size:14px;line-height:1.4}
.mouse-capture:disabled{background:#dce6dc;color:#4c6b70;cursor:default}
.control-settings{display:grid;grid-template-columns:1fr;gap:9px;margin:20px 0;padding:16px;background:#e6ebe0;border-radius:5px;font-size:14px}
.control-settings>label{display:flex;justify-content:space-between;align-items:center;gap:8px}
.control-settings select{width:100%;padding:10px 9px;border:1px solid #a6bcb5;border-radius:3px;background:#fffdf4;font-size:14px}
.control-settings input[type=range]{width:100%;accent-color:#376966}
.control-settings .invert-mouse{justify-content:flex-start}.control-settings output{font-variant-numeric:tabular-nums}
.guide-panel .mouse-help{font-size:14px;line-height:1.65}
@media(pointer:coarse){.mouse-capture{display:none}}
@media(max-width:760px){.mouse-capture{grid-column:1/-1;margin-top:4px;padding:8px}.identity:has(.mouse-capture:not(:disabled)){padding-bottom:12px}}
@media(max-width:760px) and (pointer:fine){.objective{top:240px}}

/* Flight lab 002: keep the centre clear while peripheral motion reads speed. */
#speed-effects{position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-conic-gradient(from 4deg at 50% 49%,transparent 0deg 11.8deg,#edffffa0 11.87deg 12deg,transparent 12.08deg 24deg);mask-image:radial-gradient(ellipse at 50% 49%,transparent 34%,#0005 70%,#000 100%);mix-blend-mode:screen}
.bottom-help b{font-weight:400}.bottom-help{flex-wrap:wrap;row-gap:8px}
.landing-assist{position:absolute;right:34px;bottom:94px;width:290px;border-radius:5px;padding:15px 18px;pointer-events:none}.landing-assist p{font-family:Georgia,serif;font-size:20px;line-height:1.3;margin:8px 0}.landing-assist small{display:block;font-size:12px;line-height:1.6;color:#40666c;font-variant-numeric:tabular-nums}
.touch-actions{grid-template-columns:72px 72px;gap:6px}.touch-actions #touch-glide,.touch-actions #touch-feet{min-height:35px;font-size:12px}.touch-actions #touch-land{grid-column:1/-1}
@media(max-width:760px){.telemetry{bottom:213px}.toast{bottom:295px}.landing-assist{left:20px;right:20px;top:330px;bottom:auto;width:auto;padding:9px 13px}.landing-assist p{font-size:16px;margin:5px 0}.landing-assist small{font-size:12px}.touch-actions{gap:5px}.touch-actions button{min-height:40px}.touch-actions .flap-button{height:45px}}
@media(pointer:coarse) and (min-width:761px){.telemetry{bottom:272px}.landing-assist{bottom:272px}}
@media(max-height:600px) and (orientation:landscape){.landing-assist{top:auto;left:auto;right:20px;bottom:235px;width:250px}.telemetry{bottom:28px}.toast{bottom:115px}}
@media(prefers-reduced-motion:reduce){#speed-effects{display:none}}

.control-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.control-actions .mouse-capture{margin:0;font-size:13px}.freedom-toggle{padding:10px 8px;border-radius:3px;background:#e2eadf;color:#244e54;border:1px solid #aec3b7;font-size:13px;line-height:1.4}.freedom-toggle[aria-pressed=true]{background:#f4c292;border-color:#e6a975;color:#473b2a}
@media(max-width:760px){.control-actions{grid-column:1/-1;margin-top:7px}.control-actions .mouse-capture{grid-column:auto}.identity:has(.mouse-capture:not(:disabled)){padding-bottom:12px}.objective{top:252px}.landing-assist{top:347px}}
@media(pointer:coarse){.control-actions{grid-template-columns:1fr}.control-actions .mouse-capture{display:none}.control-actions .freedom-toggle{padding:7px}.objective{top:230px}.landing-assist{top:327px}}
@media(max-height:600px) and (orientation:landscape){.objective{top:80px}.landing-assist{top:auto;bottom:235px}}
@media(max-height:600px) and (orientation:landscape){.landing-assist{left:auto;right:20px;top:80px;bottom:auto;width:250px;padding:10px 12px}.landing-assist p{font-size:16px;margin:5px 0}.landing-assist small{display:none}#flight-app:has(.landing-assist:not([hidden])) .objective{visibility:hidden}}

/* Temporary instructions replace the objective on narrow screens, keeping the bird visible. */
.toast{pointer-events:none}
@media(max-width:650px){.toast{top:258px;bottom:auto;left:20px;right:20px;max-width:none;transform:none;padding:9px 12px;font-size:12px;line-height:1.45}#flight-app:has(.toast:not([hidden])) .objective{visibility:hidden}}

/* Flight lab 004: quiet feedback for lift and a readable course result. */
.route-stats{display:flex;flex-wrap:wrap;gap:6px 12px;border-top:1px solid #38676325;margin-top:11px;padding-top:9px;font-size:12px;font-variant-numeric:tabular-nums;color:#315e63}
#flight-app[data-low-lift=true] .telemetry .state strong,#flight-app[data-low-lift=true] .telemetry .state span{color:#8d351a}

/* Flight atlas: selectable environments and a paused navigation chart. */
.location-row{display:flex;align-items:center;gap:10px;border-top:1px solid #38676325;padding-top:12px;margin:0 0 12px;font-size:12px}.location-row select{min-width:0;flex:1;padding:6px 2px;border:0;background:transparent;font-size:14px}.map-panel{width:530px;padding:28px 34px}.map-panel h1{margin:14px 0;font-size:34px}.map-panel p{margin:10px 0;font-size:13px}.map-panel svg{display:block;width:100%;max-height:48dvh}.map-panel .map-legend{font-size:12px}.top-actions #map-toggle{font-size:23px}
@media(max-width:650px){.location-row{margin:10px 0 0;padding-top:7px;gap:6px;font-size:12px}.location-row select{font-size:13px}.top-actions>a{display:none}.map-panel{padding:26px 20px}.map-panel h1{font-size:30px}}

@media(max-width:760px){.identity{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.identity .species-row{grid-column:1;grid-row:1}.identity .species-row select{font-size:18px}.location-row{grid-column:2;grid-row:1;margin:0;padding:0;border:0}.location-row>span{display:none}.location-row select{width:100%;font-size:14px}.mode-switch{grid-column:1/-1;margin-top:10px}.mode-switch button{padding:7px 3px}.cruise-option{margin-top:9px}.control-actions{margin-top:8px}.control-actions button{padding:7px;font-size:12px}.objective,.toast,.landing-assist{top:285px;bottom:auto}.toast{left:20px;right:20px;max-width:none;transform:none}.landing-assist{left:20px;right:20px;width:auto}#flight-app:has(.landing-assist:not([hidden])) .objective,#flight-app:has(.toast:not([hidden])) .objective,#flight-app:has(.toast:not([hidden])) .landing-assist{visibility:hidden}}
@media(max-height:600px) and (orientation:landscape){.identity{width:300px;top:70px}.objective,.landing-assist{top:80px;left:auto;right:20px;width:230px}.toast{top:auto;bottom:24px;left:330px;right:20px}.telemetry{left:330px;bottom:110px}}

/* Lab 006: the phone is the steering surface; the sky is the flap/tuck/brake surface. */
#mobile-menu-toggle,.mobile-motion,.mobile-gesture-hint,.phone-help{display:none}
@media(max-width:760px), (pointer:coarse) and (max-width:1000px){
  .topbar{z-index:6;top:calc(12px + env(safe-area-inset-top));left:14px;right:14px;gap:8px}
  .top-actions>a{display:none}
  .wordmark{font-size:36px;gap:8px;flex-shrink:0}.wordmark span{font-size:10px;letter-spacing:1px}
  .top-actions{gap:5px}.top-actions button{width:33px;height:33px;font-size:17px}
  #mobile-menu-toggle{display:block}
  .mobile-motion{display:flex;position:absolute;z-index:5;top:calc(63px + env(safe-area-inset-top));left:14px;right:14px;align-items:center;gap:9px;pointer-events:none}
  .mobile-motion button{pointer-events:auto;flex-shrink:0;border-radius:20px;padding:8px 13px;background:#173f48d9;color:#fff9eb;border:1px solid #ffffff70;font-size:12px;font-weight:600}
  .mobile-motion span{font-size:11px;color:#173f48;text-shadow:0 1px 5px #f5fff7;line-height:1.2}
  .guide-panel .phone-help{display:block;font-size:14px;color:#244e51;background:#e6eee2;padding:12px;border-radius:5px;margin:9px 0 16px}
  .identity{display:none;z-index:7;left:14px;right:14px;top:calc(108px + env(safe-area-inset-top));width:auto;max-height:calc(100dvh - 180px);overflow-y:auto;padding:15px;box-shadow:0 15px 45px #092d3d55;background:#edf5ebee}
  #flight-app[data-mobile-menu=open] .identity{display:grid}
  .identity>.eyebrow,.identity p{display:block;grid-column:1/-1}.identity p{margin:5px 0 12px;font-size:12px}
  .identity .species-row select{font-size:18px}
  #flight-app[data-mode=free] .objective{display:none}
  .objective{z-index:4;left:14px;right:14px;top:calc(111px + env(safe-area-inset-top));width:auto;max-width:320px;padding:8px 12px;background:#f2f8e6b8}
  .objective .eyebrow{font-size:11px}.objective p{font-size:12px;line-height:1.25;margin-top:3px}
  .telemetry{z-index:4;left:14px;right:auto;bottom:calc(17px + env(safe-area-inset-bottom));width:auto;min-width:0;max-width:190px;transform:none;padding:8px 10px;gap:9px;background:#f4f9eabb}
  .telemetry>div{min-width:0}.telemetry>div+div{padding-left:9px}.telemetry strong{font-size:20px}.telemetry span{font-size:10px}.telemetry small{font-size:10px;letter-spacing:0;margin-top:1px}.telemetry .state{display:none}
  #touch-controls{z-index:4;display:flex;position:absolute;left:auto;right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:auto;align-items:end;gap:9px;pointer-events:none}
  #touch-controls>*{pointer-events:auto}
  #touch-stick{position:fixed;left:14px;bottom:calc(90px + env(safe-area-inset-bottom));transform:scale(.8);transform-origin:left bottom;opacity:.72}
  #flight-app[data-motion=active] #touch-stick{display:none}
  .touch-actions{display:flex;gap:6px;align-items:end}
  .touch-actions [data-touch],.touch-actions #touch-glide{display:none}
  .touch-actions #touch-feet,.touch-actions #touch-land{display:block;min-height:37px;height:37px;width:auto;padding:0 10px;border-radius:20px;font-size:12px;white-space:nowrap;background:#f0f7e8c9;color:#17434c;border:1px solid #ffffffb8}
  .touch-actions #touch-land{background:#1b4851d9;color:#fff9ec}
  .mobile-gesture-hint{display:block;position:absolute;z-index:3;left:50%;bottom:calc(68px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:90vw;padding:5px 10px;border-radius:20px;background:#143f4890;color:#fffbed;font-size:11px;letter-spacing:.1px;pointer-events:none}
  #flight-app[data-gesture-known=true] .mobile-gesture-hint{display:none}
  .toast{z-index:8;top:calc(108px + env(safe-area-inset-top));bottom:auto;left:14px;right:14px;max-width:none;transform:none;padding:8px 11px;font-size:12px}
  .landing-assist{z-index:4;top:auto;left:14px;right:14px;bottom:calc(115px + env(safe-area-inset-bottom));width:auto;max-width:330px;padding:8px 10px}
  .landing-assist p{font-size:14px;line-height:1.25;margin:3px 0}.landing-assist small{font-size:11px}
  .bottom-help,.prototype-note{display:none}
}
@media(max-width:760px) and (max-height:600px), (pointer:coarse) and (max-width:1000px) and (max-height:600px){
  .topbar{top:calc(6px + env(safe-area-inset-top))}.wordmark{font-size:30px}
  .mobile-motion{top:calc(48px + env(safe-area-inset-top))}
  .identity{top:calc(88px + env(safe-area-inset-top));max-height:calc(100dvh - 100px);max-width:400px}
  .objective{top:calc(87px + env(safe-area-inset-top));max-width:235px}
  .telemetry{left:14px;bottom:calc(11px + env(safe-area-inset-bottom))}
  #touch-controls{bottom:calc(11px + env(safe-area-inset-bottom))}
  #touch-stick{bottom:calc(63px + env(safe-area-inset-bottom));transform:scale(.6)}
  .mobile-gesture-hint{bottom:calc(53px + env(safe-area-inset-bottom))}
  .landing-assist{left:auto;right:14px;bottom:calc(65px + env(safe-area-inset-bottom));width:220px}
}

/* Lab 007: a quiet, four-beat lesson leaves the bird and route visible. */
.first-flight{position:absolute;z-index:7;left:50%;bottom:104px;transform:translateX(-50%);width:min(400px,calc(100vw - 28px));padding:15px 18px 16px;border-radius:8px;color:#21494a;background:#f5f4e6dc;box-shadow:0 18px 55px #12352f35;pointer-events:auto}
.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#557d77;font-size:10px;font-weight:700;letter-spacing:1.2px}
.lesson-top button,#lesson-next{background:transparent;color:#2f6463;font-size:12px;text-decoration:underline;padding:3px 0}
.first-flight p{font-family:Georgia,serif;font-size:22px;line-height:1.12;margin:10px 0 6px}
#lesson-instruction{font-size:13px;line-height:1.5;display:block}
#lesson-next{margin-top:8px;font-weight:700}
#flight-app[data-lesson=active] .toast{visibility:hidden}
#flight-app[data-location=jungle] .vignette{background:radial-gradient(circle at 48% 40%,transparent 23%,#14392c42 100%),linear-gradient(180deg,#eccb8e1c,transparent 36%,#102b2c34)}
#flight-app[data-location=alpine] .vignette{background:linear-gradient(180deg,#cde2ff30,transparent 35%,#173c5535)}
#flight-app[data-location=canyon] .vignette{background:linear-gradient(180deg,#f7ceaa2c,transparent 40%,#5b2e4544)}
@media(max-width:760px){.first-flight{left:14px;right:14px;bottom:calc(102px + env(safe-area-inset-bottom));transform:none;width:auto;padding:12px 14px}.first-flight p{font-size:19px}.first-flight #lesson-instruction{font-size:12px}#flight-app[data-lesson=active] .mobile-gesture-hint{display:none}}
@media(max-height:600px){.first-flight{left:50%;bottom:12px;transform:translateX(-50%);max-width:330px;padding:9px 12px}.first-flight p{font-size:17px;margin:4px 0}.first-flight #lesson-instruction{font-size:11px}}
@media(prefers-reduced-motion:reduce){.first-flight{scroll-behavior:auto}}

#objective-cue{display:block;margin-top:8px;color:#315c5a;font-size:12px;line-height:1.4}
@media(max-width:760px){#objective-cue{font-size:11px;margin-top:4px}}

/* Lab 008: the bird, world, and a small amount of authored type carry the switch. */
.quick-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:3px 0 14px}.quick-nav button{background:#244f50;color:#f4f1dc;border:1px solid #f9fae889;border-radius:4px;padding:9px 11px;text-align:left;font-size:13px;font-weight:600}.quick-nav kbd{float:right;color:#d2d7ba;font:11px/1.4 inherit;border:1px solid #eef4e96e;border-radius:3px;padding:0 5px}
.switch-panel,.mode-panel{position:absolute;inset:0;z-index:18;color:#f3f0df;overflow:auto;background:linear-gradient(90deg,#102b30db 0%,#102b3085 27%,#102b3015 52%,#102b30c4 78%,#102b30ed 100%)}
.switch-panel{display:grid;grid-template-columns:minmax(250px,1fr) minmax(330px,390px);grid-template-rows:auto 1fr auto;gap:18px;padding:30px 34px 28px}
.switch-head{grid-column:1;grid-row:1;max-width:360px;position:relative}.switch-kicker{color:#d9bc87;font-size:11px;font-weight:700;letter-spacing:2px}.switch-head h1,.mode-inner h1{font-family:Georgia,serif;font-size:clamp(37px,4vw,60px);font-weight:400;line-height:1.02;letter-spacing:-1.7px;margin:17px 0 13px}.switch-head p,.mode-inner>p{font-size:14px;line-height:1.55;color:#e1e7dc;max-width:330px}.switch-head button,.mode-close{position:absolute;right:0;top:0;background:#f4f4e32b;border:1px solid #fff7;border-radius:50%;width:38px;height:38px;color:#fff;font-size:25px}
.bird-stage{grid-column:1;grid-row:3;display:flex;flex-direction:column;align-self:end;gap:6px;pointer-events:none;text-shadow:0 2px 10px #102529}.bird-stage span:first-child{font-size:clamp(24px,3vw,40px);font-family:Georgia,serif;letter-spacing:1px}.bird-stage span:last-child{font-size:11px;letter-spacing:2px;color:#e5c791}
.bird-gallery{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:9px}.bird-gallery button{display:flex;align-items:center;min-height:90px;text-align:left;padding:12px;gap:9px;color:#f7f3e5;background:#183b40bf;border:1px solid #f6eed239;border-radius:7px;transition:transform .17s,background .17s,border-color .17s}.bird-gallery button:hover,.bird-gallery button:focus-visible,.bird-gallery button[aria-pressed=true]{background:#f3f1ddea;color:#193f43;border-color:#e9cf95;transform:translateY(-2px)}.bird-gallery button i{display:block;flex:none;width:29px;height:29px;border-radius:50%;background:var(--bird-color,#899a93);box-shadow:inset -5px -5px 0 #112b3040,0 0 0 4px #e9dbc528}.bird-gallery button strong{display:block;font-size:14px;line-height:1.1}.bird-gallery button small{display:block;font-size:10px;line-height:1.25;margin-top:5px;opacity:.75}.bird-gallery button:nth-child(1){--bird-color:#9ba9a6}.bird-gallery button:nth-child(2){--bird-color:#495762}.bird-gallery button:nth-child(3){--bird-color:#234d60}.bird-gallery button:nth-child(4){--bird-color:#30313a}.bird-gallery button:nth-child(5){--bird-color:#e8e7d8}.bird-gallery button:nth-child(6){--bird-color:#9c7346}
.switch-foot{grid-column:2;grid-row:3;display:grid;gap:12px}.bird-handling{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px 14px}.bird-handling>span{grid-column:1/-1;font-size:10px;color:#d7b884;letter-spacing:1.5px}.bird-handling>div{display:flex;flex-direction:column;gap:5px}.bird-handling b{font-size:10px;font-weight:600;letter-spacing:.8px}.bird-handling meter{width:100%;height:8px;accent-color:#e1bd83}.switch-foot button{background:#e2c38d;color:#183a3f;padding:13px 15px;border-radius:4px;font-size:15px;font-weight:700;display:flex;justify-content:space-between}.switch-foot>small{font-size:11px;color:#d7e2d8}
#switch-flash{position:absolute;inset:0;z-index:16;pointer-events:none;background:radial-gradient(circle,#fff9e9e8,#e0bf7d78 52%,transparent 85%);opacity:0;transition:opacity .2s}#flight-app[data-switching=true] #switch-flash{opacity:.7}#switch-banner{position:absolute;left:50%;top:19%;z-index:17;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff7df;text-shadow:0 2px 10px #17302c;pointer-events:none}#switch-banner span{font-size:11px;letter-spacing:2px}#switch-banner strong{font:38px/1.1 Georgia,serif}#switch-banner small{font-size:12px}
#flight-app[data-gallery=open] .identity,#flight-app[data-gallery=open] .objective,#flight-app[data-gallery=open] .telemetry,#flight-app[data-gallery=open] .bottom-help,#flight-app[data-gallery=open] .topbar,#flight-app[data-gallery=open] .mobile-motion,#flight-app[data-gallery=open] #touch-controls,#flight-app[data-gallery=open] .mobile-gesture-hint,#flight-app[data-gallery=open] .toast,#flight-app[data-gallery=open] .first-flight,#flight-app[data-gallery=open] .world-marker{visibility:hidden}
.mode-panel{background:linear-gradient(135deg,#102e36ee,#295045dc 65%,#425b55eb);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;padding:30px}.mode-inner{position:relative;width:min(1100px,100%)}.mode-inner h1{max-width:700px}.mode-inner>p{max-width:600px;margin:0 0 24px}.mode-close{right:0;top:0}.mode-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.mode-grid button{text-align:left;padding:0;background:#f1eee4;color:#1c4549;border-radius:7px;overflow:hidden;border:1px solid #fff7;box-shadow:0 16px 28px #0e2a2c36}.mode-grid button:hover,.mode-grid button:focus-visible{transform:translateY(-4px);box-shadow:0 20px 34px #091b204a}.mode-art{height:155px;display:flex;align-items:center;justify-content:center;font:72px Georgia,serif;color:#fcf4dcb4}.mode-art-free{background:linear-gradient(155deg,#93c9bd,#2e7979 54%,#1d4d54)}.mode-art-route{background:linear-gradient(155deg,#e4be88,#67866b 55%,#234e4b)}.mode-art-aero{background:linear-gradient(155deg,#abcbdc,#46738f 54%,#1b3c59)}.mode-art-landing{background:linear-gradient(155deg,#e8d4a5,#ad805e 53%,#4d5550)}.mode-copy{display:flex;flex-direction:column;padding:18px;min-height:166px}.mode-copy small{font-size:10px;letter-spacing:1.3px;color:#6a817d}.mode-copy strong{font:25px/1.1 Georgia,serif;margin:10px 0}.mode-copy span{font-size:13px;line-height:1.45;color:#4f6b69}.mode-hint{display:block;font-size:11px;letter-spacing:.4px;color:#e2e9dd;margin-top:20px}
@media(max-width:760px){.quick-nav{grid-column:1/-1;margin:8px 0}.switch-panel{display:flex;flex-direction:column;gap:10px;padding:18px 14px 20px;background:linear-gradient(180deg,#102d34e3,#102d342a 33%,#102d3430 53%,#102d34e8 78%)}.switch-head{max-width:none}.switch-head h1{font-size:32px;margin:7px 0}.switch-head p{font-size:11px;margin:0;max-width:290px}.bird-stage{display:none}.bird-gallery{margin-top:auto;grid-template-columns:1fr 1fr;gap:6px}.bird-gallery button{min-height:56px;padding:7px}.bird-gallery button i{width:18px;height:18px}.bird-gallery button strong{font-size:11px}.bird-gallery button small{display:none}.switch-foot{gap:5px}.bird-handling{display:none}.switch-foot button{padding:9px 12px;font-size:13px}.switch-foot>small{display:none}.mode-panel{padding:15px;align-items:start}.mode-inner h1{font-size:34px;margin:10px 0}.mode-inner>p{font-size:12px;margin-bottom:13px}.mode-grid{grid-template-columns:1fr 1fr;gap:8px}.mode-art{height:86px;font-size:48px}.mode-copy{min-height:130px;padding:11px}.mode-copy strong{font-size:20px;margin:5px 0}.mode-copy span{font-size:11px;line-height:1.25}.mode-hint{margin-top:11px}}
@media(max-height:610px){.switch-panel{padding-top:10px}.bird-gallery button{min-height:51px}.mode-art{height:70px}.mode-copy{min-height:110px}}
/* The bird-change pulse is brief; the species title can remain readable longer. */
@keyframes fly-switch-pulse{0%{opacity:.7}100%{opacity:0}}
#flight-app[data-switching=true] #switch-flash{animation:fly-switch-pulse .42s ease-out both}
.switch-head button{position:fixed;right:34px;top:30px}
@media(max-width:760px){.switch-head button{right:14px;top:18px}}
@media(prefers-reduced-motion:reduce){.bird-gallery button,.mode-grid button,#switch-flash{transition:none!important;transform:none!important;animation:none!important}#flight-app[data-switching=true] #switch-flash{opacity:0}}

/* Lab 009: flight is the world; choices live in the paused atlas. */
#flight-app[data-mode=free] .objective,.bottom-help,.prototype-note{display:none}
.top-actions>a{display:none}
.topbar{z-index:6}.topbar .wordmark{font-size:38px}.top-actions #map-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.telemetry{bottom:28px;padding:10px 15px;gap:15px;min-width:0;background:#f1f5e7bd}.telemetry>div+div{padding-left:14px}.telemetry strong{font-size:23px}.telemetry .state{display:none}
.atlas-overlay{background:#0b2936a3;backdrop-filter:blur(10px)}
.atlas-overlay .map-panel{width:min(920px,calc(100vw - 32px));padding:28px 30px 22px;max-height:calc(100dvh - 32px);overflow:auto;background:#f3f4e9f2}
.atlas-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);gap:28px;align-items:start}
.atlas-map{min-width:0}.atlas-map h1{margin:9px 0 2px}.atlas-map #map-caption{font-size:11px;margin:4px 0;color:#638183;max-width:44ch}.atlas-map svg{width:100%;max-height:43dvh;margin-top:8px;border:1px solid #d1ddd0;border-radius:4px;background:#d4e2d1}.atlas-map .map-legend{font-size:10px;color:#698284;margin:7px 0}.atlas-map #map-position{font-size:11px;margin:6px 0}.atlas-map #map-zoom{border:1px solid #aac3bd;border-radius:3px;background:transparent;padding:8px 11px;font-size:11px}
.atlas-controls{border-left:1px solid #b9ccc6;padding:20px 0 0 27px;min-width:0}.atlas-label{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#5f8681}.atlas-controls .quick-nav{margin:16px 0 21px;gap:10px}.atlas-controls .quick-nav button{min-height:130px;display:flex;align-items:flex-start;flex-direction:column;position:relative;padding:12px 14px;background:linear-gradient(145deg,#2e6b6d,#173f49);border:1px solid #487a77;border-radius:5px;color:#f8f2df}.atlas-controls .quick-nav button:nth-child(2){background:linear-gradient(145deg,#a87d53,#554f46);border-color:#b08d65}.atlas-controls .quick-nav svg{width:70px;height:57px;margin:auto;fill:none;stroke:#f4ebd2;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.atlas-controls .quick-nav button:first-child svg{fill:#e8e5d1;stroke:none}.atlas-controls .quick-nav span{font:22px Georgia,serif}.atlas-controls .quick-nav kbd{position:absolute;right:11px;bottom:12px;float:none}.atlas-controls .quick-nav button:hover,.atlas-controls .quick-nav button:focus-visible{filter:brightness(1.15);transform:translateY(-2px)}
.atlas-controls .location-row{display:block;padding-top:14px;margin-bottom:12px}.atlas-controls .location-row span{display:block;font-size:10px;letter-spacing:1.5px;font-weight:700;color:#6b8a87;margin-bottom:8px}.atlas-controls .location-row select{width:100%;font:18px Georgia,serif;color:#1c4749;background:#e9eee3;border:1px solid #c7d8cd;border-radius:4px;padding:10px}.atlas-controls .cruise-option{display:flex;align-items:center;gap:8px;font-size:12px;color:#356365;margin-top:18px}.atlas-shortcut{display:block;margin-top:18px;font-size:10px;color:#78908d}
.atlas-overlay .map-panel>#map-return{margin-top:20px;max-width:180px;margin-left:auto}
.bird-gallery button svg{flex:none;width:57px;height:43px;fill:var(--bird-color,#9ba9a6);filter:drop-shadow(0 2px 3px #081d2369)}.bird-gallery button[aria-pressed=true] svg{filter:drop-shadow(0 2px 2px #37606550)}.bird-gallery button{min-height:86px}.bird-gallery button strong{font-size:15px}.switch-head h1{margin-bottom:4px}.switch-head p{margin-top:0}
.mode-art svg{width:92px;height:92px;fill:none;stroke:#fff2d7;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.mode-art-free svg{fill:#fff2d7;stroke:none}.mode-copy{min-height:118px}.mode-copy span{font-size:12px}.mode-inner>p{display:none}
@media(max-width:760px){.topbar .wordmark{font-size:33px}.atlas-overlay{padding:8px}.atlas-overlay .map-panel{width:100%;max-height:calc(100dvh - 16px);padding:20px 16px 16px}.atlas-layout{display:flex;flex-direction:column;gap:18px}.atlas-controls{order:-1;border-left:0;border-bottom:1px solid #b9ccc6;padding:0 0 15px;width:100%}.atlas-controls .quick-nav{margin:12px 0;gap:8px}.atlas-controls .quick-nav button{min-height:84px;padding:8px 11px}.atlas-controls .quick-nav svg{width:46px;height:40px}.atlas-controls .quick-nav span{font-size:18px}.atlas-controls .location-row{padding-top:8px;margin-bottom:8px}.atlas-controls .location-row select{font-size:16px;padding:8px}.atlas-controls .cruise-option{margin-top:10px}.atlas-shortcut{display:none}.atlas-map{width:100%}.atlas-map svg{max-height:33dvh}.atlas-overlay .map-panel>#map-return{margin-top:12px}.bird-gallery button svg{width:38px;height:32px}.bird-gallery button{min-height:60px}.mode-art svg{width:58px;height:58px}.mode-copy{min-height:89px}.mode-copy strong{font-size:18px}.mode-copy span{font-size:11px}.telemetry{bottom:calc(14px + env(safe-area-inset-bottom));padding:7px 9px;gap:7px}.telemetry>div+div{padding-left:8px}.telemetry strong{font-size:18px}}

/* Lab 010: a quiet glass reminder; it never captures flight input. */
.flight-hints{position:absolute;z-index:4;left:50%;bottom:18px;transform:translateX(-50%);padding:4px 6px;border-radius:10px;background:#f3f7eb99;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);pointer-events:none;box-shadow:0 5px 22px #173d3d18}
.mobile-gesture-hint{display:none!important}
.hint-desktop,.hint-phone{display:flex;align-items:stretch}.hint-phone{display:none}
.hint-chip{width:57px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#225357;border-right:1px solid #2960672b;transition:background .18s,color .18s}.hint-chip:last-child{border-right:0}
.hint-chip svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hint-chip[data-hint=flap] svg{fill:#32676855}.hint-chip>span{font-size:10px;line-height:1;font-weight:600}.hint-chip kbd{font:7px/1.2 Inter,Arial,sans-serif;letter-spacing:.5px;opacity:.75}
#flight-app[data-flight-state=FLAPPING] .hint-chip[data-hint=flap],#flight-app[data-flight-state=TUCKED] .hint-chip[data-hint=tuck],#flight-app[data-flight-state=BRAKING] .hint-chip[data-hint=brake]{color:#a7542f;background:#f4e3bf9c;border-radius:5px}
#flight-app[data-gallery=open] .flight-hints,#flight-app[data-lesson=active] .flight-hints{visibility:hidden}
@media(max-width:760px),(pointer:coarse) and (max-width:1000px){.flight-hints{bottom:calc(160px + env(safe-area-inset-bottom));padding:3px 5px;background:#f3f7ebae}.hint-desktop{display:none}.hint-phone{display:flex}.hint-chip{width:53px;height:49px}.hint-chip svg{width:20px;height:20px}.hint-chip>span{font-size:9px}.hint-chip kbd{font-size:9px}#flight-app[data-gesture-known=true] .flight-hints{opacity:.72}}
@media(max-width:760px) and (max-height:600px),(pointer:coarse) and (max-width:1000px) and (max-height:600px){.flight-hints{bottom:calc(55px + env(safe-area-inset-bottom));padding:2px 4px}.hint-chip{width:44px;height:43px}.hint-chip svg{width:17px;height:17px}}

/* Lab 011: a low, readable keyboard glass rail replaces the blocking lesson card. */
.flight-hints{bottom:14px;padding:5px 7px;background:#edf8f1b9;border:1px solid #ffffffa6;box-shadow:0 8px 26px #102c3040;backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2)}
.hint-desktop{gap:0}.hint-desktop .hint-chip{width:65px;height:59px}.hint-desktop .hint-chip>span{font-size:10px}.hint-desktop .hint-chip kbd{font-size:9px;font-weight:750;letter-spacing:.25px;opacity:.9}.hint-desktop .ground-label{display:none}
#flight-app[data-ground=true] .hint-desktop .ground-label{display:block}
#flight-app[data-ground=true] .hint-desktop .air-label{display:none}
#flight-app[data-ground=true] .hint-chip[data-hint=walk],#flight-app[data-ground=true] .hint-chip[data-hint=flap],#flight-app[data-ground=true] .hint-chip[data-hint=land]{background:#e9e2c5b8;color:#754a31}
.mode-art-ground{background:linear-gradient(155deg,#d8c8a0,#82956d 55%,#335953)}
.mode-grid{grid-template-columns:repeat(5,1fr)}
@media(max-width:1100px) and (min-width:761px){.flight-hints{left:auto;right:12px;transform:none}.hint-desktop .hint-chip{width:56px}}
@media(max-width:760px),(pointer:coarse) and (max-width:1000px){.flight-hints{left:50%;right:auto;bottom:calc(160px + env(safe-area-inset-bottom));transform:translateX(-50%);padding:3px 5px}.mode-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px) and (max-height:600px),(pointer:coarse) and (max-width:1000px) and (max-height:600px){.flight-hints{bottom:calc(55px + env(safe-area-inset-bottom))}}

#flight-app[data-ground=true] .hint-desktop .hint-chip[data-hint=tuck],#flight-app[data-ground=true] .hint-desktop .hint-chip[data-hint=brake],#flight-app[data-ground=true] .hint-desktop .hint-chip[data-hint=glide],#flight-app[data-ground=true] .hint-desktop .hint-chip[data-hint=feet]{opacity:.5}

/* Photo mode: H hides the flight interface; dialogs still appear. */
#flight-app[data-hud="hidden"]>*:not(#world):not(#pause-panel):not(#guide-panel):not(#map-panel):not(#bird-panel):not(#modes-panel):not(#fallback){opacity:0!important;pointer-events:none}

/* Challenges: eight mode cards in two rows; the panel scrolls when it must. */
.mode-panel{overflow-y:auto}.mode-grid,.mode-grid:is(*){grid-template-columns:repeat(4,1fr)}.mode-art{height:108px}.mode-copy{min-height:118px;padding:15px}.mode-copy strong{font-size:22px;margin:7px 0}
.mode-art svg{width:72px;height:72px}
.mode-art-weave{background:linear-gradient(155deg,#b8d39a,#4d7a4a 55%,#21402f)}.mode-art-dodge{background:linear-gradient(155deg,#e2c3a0,#9a6b55 55%,#3a3440)}.mode-art-stunt{background:linear-gradient(155deg,#d6b8ec,#7a5aa6 55%,#2e2d55)}
@media(max-width:760px),(pointer:coarse) and (max-width:1000px){.mode-grid,.mode-grid:is(*){grid-template-columns:1fr 1fr}.mode-art{height:64px}.mode-art svg{width:48px;height:48px}.mode-copy{min-height:96px}}

/* In flight the 3D view changes every frame, so a blurred glass panel re-blurs it every frame: costly on
   laptops and high-density screens. In-flight panels use a solid tint instead; paused overlays keep blur. */
.glass,.flight-hints{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.glass{background:rgba(244,247,234,.9)}.flight-hints{background:#eef6efe6!important}
.perf{position:absolute;z-index:30;left:12px;top:12px;padding:8px 10px;border-radius:6px;background:#0d2329e0;color:#e9f6ee;font:11px/1.55 ui-monospace,Consolas,monospace;white-space:pre;pointer-events:none}

/* Progress (lab 023): feathers line, daily card, locked birds, perch checklist */
.mode-progress{margin:-4px 0 12px;font-size:13px;opacity:.85;letter-spacing:.02em}
.mode-daily{grid-column:1/-1}
[data-locked="true"]{opacity:.55}
[data-locked="true"] strong::after{content:" · locked";font-weight:400;font-size:.85em}
.map-perches{list-style:none;margin:6px 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:6px;font-size:12px}
.map-perches li{padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.14)}
.map-perches li.done{background:rgba(120,200,140,.35)}
.map-perches li.done::before{content:"✓ "}
.map-perches .perch-head{background:none;font-weight:600;padding-left:0}
.replay-badge{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:30;padding:6px 14px;border-radius:999px;background:rgba(10,14,18,.62);color:#fff;font:600 12px/1.2 Inter,Arial,sans-serif;letter-spacing:.12em;pointer-events:none}
.replay-badge b{color:#ff4d4d;animation:replay-blink 1s steps(2) infinite}
@keyframes replay-blink{50%{opacity:0}}
.crash-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:40;width:min(360px,calc(100vw - 32px));padding:22px 22px 18px;border-radius:18px;background:rgba(14,18,22,.86);color:#f4f1ea;box-shadow:0 18px 60px rgba(0,0,0,.45);backdrop-filter:blur(6px);font-family:Inter,Arial,sans-serif}
.crash-card h2{margin:4px 0 12px;font-size:34px;letter-spacing:-.02em}
.crash-card dl{margin:0 0 16px;display:grid;gap:6px}
.crash-card dl div{display:flex;justify-content:space-between;gap:12px;font-size:14px;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:5px}
.crash-card dt{opacity:.7}.crash-card dd{margin:0;font-weight:600}
.crash-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.crash-actions button{min-height:48px;border:0;border-radius:12px;font:600 14px Inter,Arial,sans-serif;cursor:pointer;background:rgba(255,255,255,.14);color:inherit}
.crash-actions button:first-child{background:#f0e6d2;color:#1b1f22}
.crash-actions kbd{font:500 10px Inter,Arial,sans-serif;opacity:.6;margin-left:4px}
@media (prefers-reduced-motion:reduce){.replay-badge b{animation:none}}

/* Persian (lab 023): right-to-left text, joined letters (no letter-spacing or capitals), a Persian-capable font */
[lang=fa] body,[lang=fa] button,[lang=fa] select,[lang=fa] input,[lang=fa] #flight-app *:not(kbd):not(code){font-family:Vazirmatn,Inter,Arial,Tahoma,sans-serif}
[lang=fa] #flight-app *{letter-spacing:0!important;text-transform:none!important}
[lang=fa] .toast,[lang=fa] .panel,[lang=fa] .mode-panel,[lang=fa] .crash-card{text-align:right}
[lang=fa] kbd{direction:ltr;unicode-bidi:isolate}
.credits{margin-top:14px;font-size:12px;line-height:1.5;opacity:.85}.credits summary{cursor:pointer;font-weight:600}.credits p{margin:6px 0}
#touch-land{min-height:48px!important;height:48px!important;font-size:14px!important;font-weight:700}
/* Left-handed touch layout (setting): stick on the right, actions on the left. Controls never mirror with RTL text. */
#touch-controls{direction:ltr}
[data-hand=left] #touch-controls{flex-direction:row-reverse}
@media(max-width:760px), (pointer:coarse) and (max-width:1000px){
  [data-hand=left] #touch-controls{right:auto;left:14px}
  [data-hand=left] #touch-stick{left:auto;right:14px;transform-origin:right bottom}
}
/* Vazirmatn (SIL OFL 1.1, fonts/Vazirmatn-OFL.txt): Persian letters only; Latin keeps the game's font. Loaded only when Persian text appears. */
@font-face{font-family:Vazirmatn;src:url(fonts/Vazirmatn-NL-wght.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
.mode-grid .mode-daily{display:flex;flex-direction:row;align-items:center;min-height:0}
.mode-grid .mode-daily .mode-art{flex:0 0 96px;height:64px;min-height:0;aspect-ratio:auto}
.mode-grid .mode-daily .mode-art svg{width:38px;height:38px}
.mode-grid .mode-daily .mode-copy{padding:8px 14px}
.mode-grid .mode-daily{height:78px!important;min-height:0!important;overflow:hidden}
.mode-grid .mode-daily .mode-art{height:100%!important;background:linear-gradient(135deg,#d39a55,#2f5a68)}
