@import url('../design/tokens.css');
*{box-sizing:border-box}body{margin:0;background:#faf6f9;color:#40354f;font-family:Inter,ui-sans-serif,system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #895fa8;outline-offset:5px}button{border:1px solid #dcd1e1;border-radius:30px;background:#fff9fc;color:#51405f;padding:11px 20px}button:disabled{cursor:default;opacity:.5}button[hidden],[hidden]{display:none!important}.page-header{max-width:1320px;margin:auto;padding:26px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.page-header a{color:inherit;text-decoration:none}.page-header>span{font-size:10px;letter-spacing:2px;color:#85738e}main{max-width:1240px;margin:auto;padding:20px 40px 45px}.intro{display:flex;justify-content:space-between;align-items:center;margin:12px 0 32px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#8a7297}h1,h2,p{margin:0}h1{font-family:Georgia,serif;font-weight:400;font-size:62px;letter-spacing:-3px;line-height:1.15;margin:10px 0}h1 span{color:#c587ac}.intro p:not(.eyebrow),.workshop-heading p:not(.eyebrow){font-size:13px;color:#89788e;line-height:1.7}.record{text-align:right}.record>span{font-size:9px;letter-spacing:1.7px;color:#8a7297}.record strong{display:block;font-size:34px;font-weight:400;margin-top:9px}.record small{font-size:14px;color:#89788e}.sky{position:relative;height:490px;overflow:hidden;border:1px solid #e5d6e7;border-radius:24px;background:#f2e4f4;box-shadow:0 20px 60px #906b9010;isolation:isolate}.sky:after{content:'';position:absolute;inset:0;pointer-events:none;background:url('../design/grain.svg');opacity:.2;z-index:1}canvas{width:100%;height:100%;display:block}.hud{position:absolute;inset:22px 26px auto;display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#6c557d;z-index:2}.hud strong{font-size:19px;font-weight:500}.hud-divider{margin:0 10px;opacity:.4}.invitation{position:absolute;top:22%;left:0;right:0;text-align:center;pointer-events:none;z-index:2}.invitation h2{font-family:Georgia,serif;font-weight:400;font-size:30px;margin:14px 0;color:#594568}.invitation p{font-size:12px;color:#7b6488}.flight-controls{position:absolute;bottom:22px;left:20px;right:20px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;z-index:2}.flight-controls>p{flex-basis:100%;text-align:center;font-size:10px;color:#fff7fc;text-shadow:0 1px 5px #60224e}.flight-controls button{background:#fff8f3;border:0;box-shadow:0 4px 20px #6a305b20;min-width:160px;touch-action:none;user-select:none}.flight-controls button span{margin-left:25px}.flight-controls #pause{min-width:auto}.lift-display{width:110px;color:#fff7fc;font-size:9px;letter-spacing:.4px}.meter{height:3px;background:#ffffff50;margin-top:8px;border-radius:5px;overflow:hidden}.meter i{display:block;height:100%;background:#fff8ef;width:0;transition:width .08s linear}.result{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#fffaf5ed;backdrop-filter:blur(14px);padding:30px 40px;border:1px solid #ffffff;border-radius:20px;text-align:center;width:min(360px,90%);z-index:3;box-shadow:0 15px 70px #60405b20}.result h2{font:46px Georgia,serif;margin:12px}.result>p:not(.eyebrow){font-size:13px;line-height:1.6;color:#87738b}.result button{margin-top:22px;background:#705c88;color:white;border:0;font-size:12px}.workshop-heading{display:flex;justify-content:space-between;align-items:center;margin:36px 0 20px;gap:20px}.workshop-heading h2{font:25px Georgia,serif;letter-spacing:-.4px;margin:9px 0}.wallet{background:#efe7f1;border:1px solid #e6dbea;border-radius:15px;padding:13px 20px;min-width:130px;text-align:center}.wallet strong{font-size:24px;font-weight:500;display:block}.wallet span{font-size:10px;color:#84708f}.upgrades{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.upgrade{padding:22px;border:1px solid #e7dce8;border-radius:16px;background:#fffcfe}.upgrade-top{display:flex;justify-content:space-between;align-items:center;color:#9a80ab;font-size:10px}.upgrade-icon{font-size:25px}.upgrade h3{font:21px Georgia,serif;margin:16px 0 8px}.upgrade p{font-size:12px;line-height:1.7;color:#8a7a91;min-height:40px}.upgrade button{margin-top:20px;font-size:11px;width:100%;display:flex;justify-content:space-between;background:#f6eff7}.save-note{text-align:center;font-size:10px;color:#9b8ca0;line-height:1.7;margin:25px auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:650px){.page-header{padding:18px 20px}.page-header>span{display:none}main{padding:10px 18px 30px}.intro{margin:12px 0 25px}h1{font-size:44px}.intro p:not(.eyebrow){max-width:210px;font-size:11px}.record>span{display:block;max-width:100px;line-height:1.7}.record strong{font-size:26px}.sky{height:490px;border-radius:18px}.hud{inset:20px 16px auto;font-size:9px}.hud-divider{margin:0 4px}.invitation{top:24%;padding:0 20px}.invitation h2{font-size:26px}.invitation p{font-size:11px}.upgrades{grid-template-columns:1fr}.upgrade p{min-height:0}.workshop-heading h2{font-size:22px}.wallet{min-width:90px;padding:12px}.workshop-heading p:not(.eyebrow){font-size:11px}.flight-controls{gap:10px}.flight-controls button{min-width:130px;padding:12px}.lift-display{width:80px}}
/* Flight lab edition — keep the warm paper and visible grain. */
main{padding-top:5px}.intro{margin-bottom:26px}h1{font-size:58px}.sky{height:540px}.sky:after{opacity:.28}.hud{align-items:center}.hud>div{display:flex;align-items:center;gap:8px}.hud strong{font-size:25px;font-variant-numeric:tabular-nums}.live-dot{width:5px;height:5px;border-radius:50%;background:#ad8dba;box-shadow:0 0 0 4px #ad8dba16}#pause{padding:8px 13px;margin-left:10px;background:#fff8fc80;border-color:#e4d4e7}.flight-status{position:absolute;top:62px;left:26px;font-size:10px;color:#866991;z-index:2}.invitation{top:24%}.invitation h2{font-size:36px;line-height:1.13}.flight-controls{bottom:20px}.flight-controls button{font-size:12px;min-height:45px}.steering{display:flex;gap:9px}.steering button{min-width:140px}.steering button.is-held{background:#d9caeb;transform:translateY(2px)}kbd{font:10px system-ui;opacity:.5;margin-left:16px}.instruments{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #e4d8e7;border-radius:14px;margin-top:12px;background:#fffafccc;padding:16px 0}.instruments>div{padding:0 22px;border-right:1px solid #ece1ed}.instruments>div:last-child{border:0}.instruments span{display:block;font-size:8px;letter-spacing:1.5px;color:#95819e;margin-bottom:7px}.instruments strong{font-size:19px;font-weight:450;font-variant-numeric:tabular-nums}.instruments small{font-size:10px;color:#8f7e97}.instruments .air-reading strong{font-size:14px}.workshop-heading{margin:33px 0 20px}.design-lab{display:grid;grid-template-columns:1fr 1.2fr;border:1px solid #e2d7e7;border-radius:18px;overflow:hidden;margin-bottom:16px;background:#fffcfe}.blueprint{padding:23px;background:#f1eaf3}.blueprint-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8c7398}.blueprint svg{display:block;width:100%;height:192px;margin:8px 0}.specs{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#8c7697}.specs b{display:block;font-weight:500;color:#5d486f;font-size:12px;margin-top:6px}.presets{display:flex;gap:8px;margin-top:18px}.presets button{flex:1;font-size:10px;padding:9px 8px;border-color:#d9cbe1;background:#f9f3fb}.presets button[aria-pressed=true]{background:#77618c;color:#fff;border-color:#77618c}.tuning{padding:25px 30px}.tuning-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.tuning-top h3{font:22px Georgia,serif;margin:0}.tuning-top>span{font-size:9px;color:#9c849e}.tuning label{display:flex;justify-content:space-between;font-size:12px;margin-top:14px}.tuning output{font-size:11px;color:#96729b;font-variant-numeric:tabular-nums}.tuning input{width:100%;accent-color:#9074a2;cursor:pointer;height:22px;margin:7px 0 2px}.tuning p{font-size:10px;color:#96859d;line-height:1.6}.tuning .design-lock{margin-top:12px;color:#a57688;visibility:hidden}.tuning.locked .design-lock{visibility:visible}.upgrade{padding:20px}.upgrade h3{margin-top:12px}.upgrade p{min-height:40px}.upgrade button{margin-top:16px}.flight-journal{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:34px}.section-title h2{font:22px Georgia,serif;margin:9px 0 19px}.contract{padding:12px 0;border-bottom:1px solid #e9dfea}.contract-line{display:flex;justify-content:space-between;font-size:12px;gap:12px}.contract-line>span{font-size:10px;color:#9b7ba1;white-space:nowrap}.contract p{font-size:10px;color:#97859c;margin:5px 0 8px;line-height:1.5}.contract progress{display:block;width:100%;height:3px;border:0;accent-color:#af94bb;background:#e9deec}.contract progress::-webkit-progress-bar{background:#e9deec;border-radius:5px}.contract progress::-webkit-progress-value{background:#af94bb;border-radius:5px}.contract.done{opacity:.65}.history-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #e9dfea;font-size:11px}.history-row>span{font-size:9px;color:#a58bae}.history-row strong{font-weight:500}.history-row small{display:block;margin-top:4px;color:#9b889f;font-size:9px}.history-row>b{font-weight:500;color:#8b6e97}.empty-log{padding:24px;border:1px dashed #d8c9df;border-radius:12px;font-size:12px;line-height:1.8;color:#9b87a2}.science{border-top:1px solid #e3d6e6;margin-top:32px;padding-top:18px;font-size:12px;color:#8c7596}.science summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between}.science>div{max-width:800px;font-size:12px;line-height:1.9;padding:15px 0}.science p+p{margin-top:10px}.science a{color:#775788}.result{width:min(420px,92%);padding:25px 30px}.result h2{font-size:43px;margin:8px}.result #reward{font-size:12px}.result #flight-advice{font-size:11px;line-height:1.6;margin-top:14px}.result #result-stats{display:flex;justify-content:center;gap:18px;font-size:10px;padding:12px 0;border-top:1px solid #dfd3e2;border-bottom:1px solid #dfd3e2;margin-top:15px;color:#8d7596}.result button{margin-top:16px}.result #tune{background:none;box-shadow:none;color:#8a6f98;margin-top:4px;padding:8px 15px}.result #again{display:block;width:100%}.save-note{margin-top:28px}
@media(max-width:650px){main{padding-top:0}h1{font-size:43px}.sky{height:500px}.hud{inset:18px 16px auto}.hud strong{font-size:23px}.flight-status{top:58px;left:16px;font-size:9px}.invitation{top:24%}.invitation h2{font-size:32px}.flight-controls>p{font-size:9px;line-height:1.5}.steering button{min-width:130px}.instruments{grid-template-columns:repeat(4,1fr);padding:13px 0}.instruments>div{padding:0 10px}.instruments span{font-size:6px;letter-spacing:.65px;min-height:14px}.instruments strong{font-size:16px}.instruments .air-reading{display:none}.instruments>div:nth-child(4){border:0}.design-lab{grid-template-columns:1fr}.blueprint{padding:20px}.blueprint svg{height:165px}.tuning{padding:22px}.tuning-top{margin-bottom:10px}.tuning p{font-size:11px}.flight-journal{grid-template-columns:1fr;gap:25px}.workshop-heading h2{font-size:21px}.workshop-heading .eyebrow{font-size:8px}.result{padding:23px}.result h2{font-size:38px}.upgrades{gap:12px}.upgrade p{min-height:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.view-switch{position:absolute;right:25px;top:67px;z-index:4;display:flex;gap:3px;padding:3px;border:1px solid #d9c7e0;background:#fcf6fbaf;backdrop-filter:blur(8px);border-radius:24px}.view-switch button{font-size:10px;padding:7px 12px;border:0;background:transparent;min-height:30px}.view-switch button[aria-pressed=true]{background:#80658f;color:#fff9fc;box-shadow:0 2px 7px #75538620}.flight-status{max-width:55%;line-height:1.5}.sky:has(#view-pov[aria-pressed=true]) .invitation{top:24%}.sky:has(#view-pov[aria-pressed=true]) .invitation h2{font-size:30px}.sky:has(#view-pov[aria-pressed=true]) .flight-controls>p{color:#55405f;text-shadow:0 1px 4px #fff9ed}.sky:has(#view-pov[aria-pressed=true]) .lift-display{color:#64506e}.sky:has(#view-pov[aria-pressed=true]) .meter{background:#bca5c76b}.sky:has(#view-pov[aria-pressed=true]) .meter i{background:#826291}@media(max-width:650px){.view-switch{right:13px;top:66px}.view-switch button{font-size:9px;padding:6px 10px}.flight-status{top:65px;max-width:47%;font-size:8px}.sky:has(#view-pov[aria-pressed=true]) .invitation{top:26%}.sky:has(#view-pov[aria-pressed=true]) .invitation h2{font-size:27px}}
.pov-guide{font-size:10px;line-height:1.7;color:#927b9b;margin:13px 5px 4px;max-width:850px}.pov-guide span{font-size:8px;letter-spacing:1.3px;color:#745781;display:inline-block;margin-right:10px;font-weight:600}.sky:has(#view-pov[aria-pressed=true]) .flight-controls{bottom:16px}.sky:has(#view-pov[aria-pressed=true]) .flight-controls button{min-height:39px;padding-top:9px;padding-bottom:9px}@media(max-width:650px){.pov-guide{font-size:9px;line-height:1.7}.pov-guide span{display:block;margin-bottom:3px}.sky:has(#view-pov[aria-pressed=true]) .flight-controls{gap:7px;bottom:14px}.sky:has(#view-pov[aria-pressed=true]) .flight-controls>p{font-size:8px}}
.tilt-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0 8px}.tilt-controls button{font-size:10px;padding:9px 13px}.tilt-controls button[aria-pressed=true]{background:#80658f;color:#fff}.tilt-controls span{font-size:10px;color:#8b7496;line-height:1.6;flex:1;min-width:180px}.steering #bank-left,.steering #bank-right{min-width:54px;padding:9px 12px}.steering #bank-left kbd,.steering #bank-right kbd{margin-left:5px}@media(max-width:650px){.steering{gap:5px;width:100%;justify-content:center}.steering button{min-width:88px;padding:9px 8px;font-size:10px}.steering kbd{display:none}.steering #bank-left,.steering #bank-right{min-width:43px;font-size:18px;padding:6px}.tilt-controls span{flex-basis:100%;font-size:9px}}

/* Expedition controls and a north-up field chart. */
.expedition{margin-top:14px;border:1px solid #e2d5e6;border-radius:18px;overflow:hidden;background:#fffafc}.expedition-actions{display:flex;gap:9px;align-items:center;padding:13px 16px;border-bottom:1px solid #e8ddea;background:#f2eaf3}.expedition-actions button{font-size:11px;touch-action:none;user-select:none;min-height:43px}.expedition-actions button.is-held{background:#80658f;color:#fff}.expedition-actions button span{display:inline-block;margin-left:14px;font-variant-numeric:tabular-nums}.expedition-score{margin-left:auto;text-align:right}.expedition-score strong{font-size:17px;font-weight:500;display:block}.expedition-score span{font-size:9px;color:#927d9b}.route-panel{display:grid;grid-template-columns:minmax(240px,.8fr) 1.3fr;align-items:center;gap:22px;padding:18px}.route-map{border:1px solid #dfd0e5;border-radius:12px;overflow:hidden;background:#f3ecf4 url('../design/grain.svg')}.route-map svg{width:100%;display:block;max-height:220px}.route-details .eyebrow{font-size:8px}.destinations{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 14px}.destinations button{font-size:9px;padding:7px 10px}.destinations button[aria-pressed=true]{background:#80658f;color:#fff}.route-details>strong{font-size:13px;font-weight:500}.route-details>p:not(.eyebrow){font-size:10px;line-height:1.7;color:#8c7595;margin-top:7px}.route-details #exploration-event{color:#8d577f;min-height:17px}.route-details .flight-tip{max-width:530px}.expedition-actions kbd{margin-left:7px}.sky.crashing .flight-controls{opacity:0;pointer-events:none}@media(max-width:650px){.expedition-actions{padding:10px;gap:6px;flex-wrap:wrap}.expedition-actions button{padding:10px 13px;flex:1;font-size:10px}.expedition-actions kbd{display:none}.expedition-score{display:flex;align-items:baseline;gap:7px;text-align:left;margin:2px 4px 0;flex-basis:100%}.expedition-score strong{font-size:12px}.expedition-score span{font-size:8px}.route-panel{grid-template-columns:1fr;padding:13px;gap:14px}.route-map svg{max-height:160px}.destinations{gap:5px}.destinations button{font-size:9px}.route-details .flight-tip{font-size:10px}}

/* Gentle paper interactions: no looped UI movement or flashing. */
button{transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease}button:hover:not(:disabled){box-shadow:0 4px 15px #78588714}button:active:not(:disabled){transform:translateY(1px)}.discovery-toast{position:absolute;z-index:3;top:105px;left:50%;transform:translateX(-50%);width:max-content;max-width:85%;padding:11px 20px;background:#fff9efee;border:1px solid #dac7dd;border-radius:12px;text-align:center;pointer-events:none;box-shadow:0 8px 25px #725b7820;animation:paper-note .45s cubic-bezier(.16,1,.3,1) both}.discovery-toast span{display:block;letter-spacing:1.6px;font-size:7px;color:#a17b96;margin-bottom:5px}.discovery-toast strong{font-size:10px;font-weight:500;color:#73577d}.result:not([hidden]){animation:paper-result .45s cubic-bezier(.16,1,.3,1) both}.destinations button[aria-pressed=true]{box-shadow:0 3px 12px #8b6b8b20}.quiet-motion *, .quiet-motion *:before,.quiet-motion *:after{animation:none!important;transition:none!important}@keyframes paper-note{from{opacity:0;transform:translate(-50%,8px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@keyframes paper-result{from{opacity:0;transform:translate(-50%,-47%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(max-width:650px){.discovery-toast{top:107px;padding:8px 13px;max-width:83%}.discovery-toast strong{font-size:9px}.discovery-toast span{font-size:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important}}

.discovery-toast{left:22px;transform:none;max-width:230px}.discovery-toast strong{font-size:9px}@keyframes paper-note{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:650px){.discovery-toast{display:none!important}}

/* A pocket atlas records curiosity across flights. */
.rudder-controls{display:flex;gap:6px}.expedition-actions{flex-wrap:wrap}.discovery-album{margin-top:32px}.discovery-album .section-title h2{margin-bottom:8px}#journal-count{font-size:11px;color:#927b9b;margin-bottom:18px}#discovery-journal{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.journal-place{padding:18px 14px;border:1px dashed #ded0e2;border-radius:13px;background:#f5eff5 url('../design/grain.svg');color:#99889f}.journal-place.found{border-style:solid;background-color:#fff9ef;color:#665171}.journal-place>span{font-size:25px;color:#a68cae}.journal-place h3{font:18px Georgia,serif;margin:12px 0 9px}.journal-place p{font-size:10px;line-height:1.7;min-height:52px}.journal-place small{display:block;font-size:8px;margin-top:15px;letter-spacing:.4px}#next-destination{font-size:10px;margin:10px 0 0;padding:8px 12px}@media(max-width:650px){#discovery-journal{grid-template-columns:repeat(2,1fr)}.rudder-controls{width:100%}.rudder-controls button{flex:1}.journal-place:last-child{grid-column:1/-1}.journal-place p{min-height:0}}

.result #flight-comparison{font-size:10px;margin-top:10px;color:#8a7095}

.mode-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 15px}.mode-picker button{font-size:11px;padding:10px 17px}.mode-picker button[aria-pressed=true]{background:#80658f;color:#fff}.mode-picker p{font-size:11px;line-height:1.6;color:#8a7297;flex:1;min-width:200px}.run-progress{position:absolute;z-index:3;top:102px;left:50%;transform:translateX(-50%);background:#fff7e8ed;border:1px solid #cbb58f;border-radius:20px;padding:8px 15px;font-size:10px;color:#73577d;white-space:nowrap;pointer-events:none}.sky:has(#run-progress:not([hidden])) .discovery-toast{top:145px}@media(max-width:650px){.mode-picker p{flex-basis:100%;font-size:10px}.run-progress{top:106px;font-size:8px;padding:7px 10px}}

.run-progress{top:150px;font-size:9px;padding:6px 10px}.sky:has(#run-progress:not([hidden])) .discovery-toast{top:190px}@media(max-width:650px){.run-progress{top:150px;font-size:7px;max-width:94%}}

/* Keep the lower sky for the airframe; physical controls live below it. */
.pilot-controls{margin-top:12px;display:flex;justify-content:center}.pilot-controls:has(.steering[hidden]){display:none}.pilot-controls .steering{width:100%;justify-content:center;padding:10px;border:1px solid #e3d6e6;border-radius:16px;background:#f5eef5 url('../design/grain.svg')}.pilot-controls button{touch-action:none;min-height:44px;background:#fff9f2}.sky:has(#steering:not([hidden])) .flight-controls{pointer-events:none}.sky:has(#pause:not([hidden])) .flight-controls{bottom:8px}.sky:has(#pause:not([hidden])) #hint{background:#fff8efdd;border-radius:12px;color:#73577d;text-shadow:none;flex-basis:auto;padding:5px 10px;font-size:9px}.sky:has(#pause:not([hidden])) .flight-controls{display:none}.pilot-controls .steering button{min-width:110px}.pilot-controls .steering #bank-left,.pilot-controls .steering #bank-right{min-width:54px}@media(max-width:650px){.pilot-controls .steering{padding:8px;gap:5px}.pilot-controls .steering button{min-width:82px;font-size:10px}.pilot-controls .steering #bank-left,.pilot-controls .steering #bank-right{min-width:42px}}

.pilot-controls{flex-wrap:wrap;gap:7px}.pilot-controls:has(.steering[hidden]){display:flex}.pilot-controls #hint{flex-basis:100%;text-align:center;font-size:10px;line-height:1.6;color:#80658f}.pilot-controls .steering[hidden]{display:none!important}
