:root{--ink:#153c47;--cream:#fff4dc;--orange:#f4774f;--mint:#98d7c9}body{font-family:'Avenir Next','Trebuchet MS',sans-serif}button{transition:transform .12s,box-shadow .12s,background .12s}button:focus-visible{outline:3px solid #f4774f;outline-offset:4px}button:not(:disabled):active{transform:translateY(3px)!important;box-shadow:none!important}header{background:var(--cream);border-bottom:4px solid #efbd63;color:var(--ink);height:76px}.brand{font-weight:1000;letter-spacing:2px;transform:rotate(-2deg);font-style:italic}.brand span{color:#e56743}.meta{color:#42676b;font-weight:800}.wallet{background:#ffe4a3;color:#744514;border:2px solid #dca649;border-radius:22px;font-weight:900;box-shadow:0 3px 0 #d6a14c}.hud .number{font-weight:900;text-shadow:0 3px 0 #092a38}.label{font-weight:800}.score-block .number{color:#ffe3a0}.hud .score-block{background:#12353dbb;padding:9px 20px 11px;border:1px solid #b9dbc72b;border-radius:18px;transform:translateY(-9px)}.primary{background:var(--orange);color:#fff9e7;font-size:14px;letter-spacing:1.5px;font-weight:900;border-radius:13px;border:2px solid #faad76;box-shadow:0 6px 0 #a74832,0 12px 24px #082b3430}.secondary{border:2px solid #83aaa5;border-radius:12px;font-weight:900;letter-spacing:1px}.overlay{background:radial-gradient(ellipse at center,#123c45d9,#0c2935eb)}.panel{width:600px;max-width:100%;padding:22px 32px 30px;position:relative}.panel .eyebrow{display:inline-block;background:#ffe3a0;color:#6b4b28;border-radius:25px;padding:9px 15px;font-size:9px;letter-spacing:2px;font-weight:900;transform:rotate(-3deg)}h1{font-style:italic;text-transform:uppercase;font-size:clamp(55px,8vw,85px);font-weight:1000;line-height:.88;letter-spacing:-4px;margin:17px 0 10px;text-shadow:3px 5px 0 #062734}h1 em{color:#f6c66d}.hero-aircraft{width:170px;height:105px;object-fit:contain;margin:-10px auto -4px;display:block;filter:drop-shadow(0 9px 8px #0003);transform:rotate(-8deg)}.panel p{font-size:13px;line-height:1.65;margin:9px 0}.panel .primary{margin:13px 0 18px;min-width:230px}.panel .secondary{background:#214c52;color:#e1f0d6;padding:12px 20px}.keys{margin-top:10px;letter-spacing:0}.touch{background:#133c46dd;border:2px solid #b4dfd16b;border-bottom:5px solid #082b38;border-radius:20px;color:#ffe4a8;font-size:32px}.bottom{font-weight:800;letter-spacing:2px}.hangar{background-color:var(--cream);background-image:radial-gradient(#c8d0bb 1px,transparent 1px);background-size:18px 18px;color:var(--ink);padding-bottom:115px}.hangar h2{font-size:40px;font-style:italic;font-weight:1000;letter-spacing:-2px;color:var(--ink);margin:18px 0 8px}.hangar .eyebrow{color:#b74e30;font-weight:900;letter-spacing:2px}.hangar p{color:#49686b}.hangar-head .eyebrow{background:#cce9d8;border-radius:8px;padding:8px 12px;transform:rotate(-3deg)}#hangar-close{background:#fff9ec;color:#2b575c;border-color:#9eb9ad;box-shadow:0 3px 0 #a7bbad}#flight-summary{background:#ffdea2;color:#805324!important;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:800}.vehicles{gap:12px}.vehicle{position:relative;min-width:0;border:2px solid #b2c9bc;border-bottom:5px solid #a7c2b3;background:#e2eddf;border-radius:16px;padding:8px 7px 13px;overflow:hidden;color:var(--ink)}.vehicle:nth-child(2){background:#d2e8e2}.vehicle:nth-child(3){background:#f4e0b6}.vehicle.active{border-color:#ed8b52;box-shadow:0 0 0 3px #efb16d44;background:#ffdfaa;transform:translateY(-4px)}.vehicle:disabled{opacity:.65}.vehicle img{width:100%;height:100px;object-fit:contain;display:block;filter:drop-shadow(0 5px 3px #23464b22)}.vehicle strong{font-size:17px;font-weight:900;margin:3px 0 6px}.vehicle small{color:#45646a;font-size:9px;font-weight:900;letter-spacing:.4px;display:block}.vehicle .tier-tag{display:block;font-size:9px;color:#6e8e86;text-align:left;letter-spacing:1px;font-weight:900}.upgrade{border:2px solid #cad9c9;border-radius:15px;background:#fffbed;box-shadow:0 3px 0 #cedbc9;padding:16px}.upgrade strong{font-size:15px}.upgrade p{color:#66817a}.buy{background:#f5bf63;color:#66461f;border:2px solid #e5a348;border-bottom-width:4px;border-radius:10px;font-size:14px;padding:12px 17px}.buy:disabled{background:#d7e7d8;color:#4f7669;border-color:#bcd2bd}.hangar-note{color:#b45e32!important;font-weight:800}.power-unlock{background:#fff9e9;border:2px solid #c3d8c8;border-radius:12px;padding:14px;color:#244c53}.power-unlock span{color:#a16a27;font-weight:900}.power-unlock small{color:#517a75}.power-unlock.locked{opacity:.6}.hangar-launch{background:linear-gradient(transparent,#fff4dc 30%);padding-top:25px}.hangar-launch .primary{padding:18px}.hangar #run-review{border:2px solid #284e56;border-radius:17px;box-shadow:0 5px 0 #b8cbbb;background:#153c47;color:#fff4dc}.hangar #run-breakdown{color:#b7d7c8}#run-stats strong{color:#ffe0a1;font-weight:900}#run-stats small{font-weight:800}#run-stats{gap:17px}#replay-label{font-weight:900}.replay-top{color:#f8d58b}.hangar #vehicle-stats{background:#d8e9d8;color:#33635e;padding:12px;border-radius:10px}.hangar #tier-progress{font-weight:800}.hangar-note:empty{display:none}
@media(max-width:600px){header{height:60px;padding:0 18px}.brand{font-size:18px}.hud{left:18px;right:18px}.hud .score-block{padding:8px 13px 10px}.label{font-size:9px;letter-spacing:1px}.panel{padding:15px 24px 22px}.hero-aircraft{height:87px;width:145px}h1{font-size:61px}.panel .eyebrow{font-size:8px}.panel p{font-size:12px}.keys{font-size:9px}.hangar h2{font-size:35px}.vehicles{gap:8px}.vehicle{padding:8px 4px 11px;border-radius:13px}.vehicle img{height:75px}.vehicle strong{font-size:15px}.vehicle small{font-size:8px;letter-spacing:0}.vehicle .tier-tag{font-size:8px;padding-left:3px}.upgrade{padding:13px}.upgrade strong{font-size:14px}.buy{padding:10px 12px;font-size:12px}.wallet{font-size:11px}.hangar-launch .primary{font-size:13px}#toast{letter-spacing:1.5px}}
@media(max-height:720px){.hero-aircraft{height:65px;margin:0 auto}.panel h1{font-size:53px}.panel .eyebrow{padding:7px 10px}.panel p{line-height:1.4}.panel .primary{padding:13px 30px;margin:10px 0 14px}.panel .keys{margin-top:6px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.map-controls{display:flex;gap:15px;align-items:center;padding:12px 16px 3px}.map-controls button{background:#214c55;border:1px solid #6a978e;color:#d7e8cf;border-radius:6px;font-size:10px;padding:8px 10px;min-width:80px;cursor:pointer}.map-controls input{flex:1;min-width:0;accent-color:#efbf72;cursor:pointer}.map-legend{display:flex;gap:10px;flex-wrap:wrap;padding:10px 16px 0;font-size:8px;letter-spacing:.4px;color:#d7c693}.map-legend span:nth-child(2),.map-legend span:nth-child(4),.map-legend span:nth-child(5){color:#ef9a83}

.vehicles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.vehicle:nth-child(4){background:#dce1f3}.vehicle:nth-child(5){background:#eed8e7}.vehicle.active{background:#ffdfaa}.vehicle img{height:94px}.vehicle strong{font-size:15px}@media(max-width:600px){.vehicles{display:flex;overflow-x:auto;padding:8px 3px 12px;scroll-snap-type:x mandatory;scroll-padding:3px;margin:16px -3px}.vehicle{flex:0 0 112px;scroll-snap-align:start}.vehicle img{height:77px}.vehicle strong{font-size:15px}}

#achievement-panel{background:#fff9e9;border:2px solid #c5d7bf;border-radius:14px;padding:16px;margin:24px 0}#achievement-panel summary{font-size:12px;font-weight:900;letter-spacing:1px;cursor:pointer;line-height:1.7}#badge-count{float:right;color:#a56a30;font-size:11px}#badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.badge{display:flex;gap:12px;border:1px solid #d3decc;border-radius:10px;padding:12px;background:#f6f1e3}.badge.earned{background:#e0efda;border-color:#afc99f}.badge-icon{font-size:27px;color:#94a496}.badge.earned .badge-icon{color:#c58c35}.badge-body{min-width:0;flex:1}.badge strong{font-size:13px;display:block}.badge small{font-size:10px;line-height:1.5;display:block;color:#617d72;margin-top:4px}.badge-track{height:4px;border-radius:4px;background:#d1dccc;overflow:hidden;margin-top:8px}.badge-track span{display:block;height:100%;background:#dfaa4d}#badge-new{padding:12px 15px;background:#d8edc6;border:2px solid #accc8e;border-radius:12px;color:#40672e;font-size:12px;font-weight:900}@media(max-width:600px){#badges{grid-template-columns:1fr}#achievement-panel{padding:13px}#badge-count{font-size:10px}}

.reset-link{display:block;margin:30px auto 10px;background:transparent;color:#9d5b43;border:0;border-bottom:1px dashed #b8846e;padding:8px 0;font-size:10px;font-weight:900;letter-spacing:1px}#reset-dialog{width:min(90vw,460px);max-height:90dvh;overflow:auto;border:3px solid #d9a56c;border-radius:18px;background:#fff4dc;color:#153c47;padding:25px;box-shadow:0 15px 80px #041d3480}#reset-dialog::backdrop{background:#082b3be0}#reset-dialog h2{font-size:28px;font-style:italic;margin:0 0 15px}#reset-dialog p{color:#536d67;font-size:14px;line-height:1.6}.reset-actions{display:flex;flex-direction:column;gap:14px;margin-top:24px}.reset-actions .primary,.reset-actions .secondary{width:100%;margin:0}.reset-actions .secondary{color:#285760;background:#e6ecdb;padding:15px}.reset-actions .primary{padding:15px;font-size:12px}

.power-art-label{display:flex;align-items:center;gap:8px}.power-art-label img{width:38px;height:38px;object-fit:contain}.power-unlock{align-items:center}.power-unlock small{padding-left:46px}

html,body{overscroll-behavior:none}body,button,summary,canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}img{-webkit-user-drag:none}.in-flight main{touch-action:none}.mobile-keys{display:none;font-size:10px;font-weight:900;letter-spacing:.4px;color:#bdd6cb;margin-top:15px}.touch-guide{display:none;position:absolute;left:0;right:0;bottom:54px;justify-content:space-between;padding:0 25px;pointer-events:none;font-size:10px;letter-spacing:1px;font-weight:900;color:#a5c6b68c}.touch-guide span{padding:10px;border-radius:10px;border:1px solid #a5c6b625;transition:color .1s,background .1s}.touch-guide span.active{color:#ffe3a2;background:#e5b9621c;border-color:#edbd6b77}@media(pointer:coarse){.touch-guide{display:flex}.mobile-keys{display:block}.panel .keys{display:none}}
.touch-guide span{border:0;border-radius:0;border-bottom:2px solid transparent}.touch-guide span.active{background:transparent;border-color:#edbd6b}.touch-guide::after{content:'';position:absolute;left:50%;bottom:5px;height:26px;width:1px;background:#a5c6b638}

.aircraft-purchase{background:#ffedc4;border-color:#e2b77c}.aircraft-purchase>img{width:85px;height:65px;object-fit:contain}.aircraft-purchase>div{flex:1}.aircraft-purchase strong{color:#84562c}@media(max-width:600px){.aircraft-purchase{flex-wrap:wrap;gap:8px}.aircraft-purchase>img{width:65px;height:50px}.aircraft-purchase>div{min-width:180px}.aircraft-purchase .buy{width:100%}}
/* Compact flight deck and quick-return hangar. */
.hangar{padding-left:max(20px,calc((100% - 1160px)/2));padding-right:max(20px,calc((100% - 1160px)/2))}.hangar-head{position:sticky;top:-24px;z-index:8;padding:12px 0;background:#fff4dcf5;backdrop-filter:blur(12px)}.hangar-head .eyebrow{transform:none;font-size:12px}.hangar h2{margin-top:12px}.hangar-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}.fleet-column,.review-column{min-width:0}.fleet-intro{margin:0 0 10px!important;font-size:14px!important;line-height:1.5!important}.vehicles{margin:16px 0}.vehicle img{height:72px}.vehicle strong{font-size:13px}.vehicle small{font-size:10px;font-weight:600}.vehicle .tier-tag{font-size:10px}.upgrade p{font-size:13px;line-height:1.5}.step-number{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e8eddc;color:#617e74;margin-right:5px}.buy{font-size:12px;min-width:105px}.upgrade.owned .buy{background:#dcebd9;color:#427455;border-color:#bad0b4}.upgrade.short .buy{background:#f0e6d4;color:#8b7357;border:1px dashed #bba78a}.upgrade.locked .buy{background:#e0e3e1;color:#697c7c;border:1px solid #bec9c4}.upgrade.available{border-color:#e1ba76}.aircraft-purchase{gap:10px}.aircraft-purchase>img{width:58px}.aircraft-purchase strong{font-size:14px}.hangar #tier-progress{font-size:13px;line-height:1.5}.replay-expand{width:100%;padding:13px;background:#244e59;color:#ffe0a1;border:0;border-top:1px solid #65887c55;border-bottom:1px solid #65887c55;font-weight:800;letter-spacing:.5px;font-size:12px}.replay-top{letter-spacing:.6px;font-size:11px}.map-controls button{font-size:12px;min-height:40px}.map-legend{font-size:10px;line-height:1.5}.trail-toggle{display:flex;gap:8px;align-items:center;padding:10px 16px 0;font-size:12px;color:#c4d9ce}.trail-toggle input{accent-color:#edbd6b;width:18px;height:18px}#run-stats small{font-size:10px;font-weight:600;letter-spacing:.7px}#run-stats strong{font-size:24px}#run-breakdown{font-size:12px;line-height:1.6}.hangar #run-review.expanded{position:fixed;inset:20px;z-index:20;margin:0;overflow:auto;max-width:1100px;margin-inline:auto;box-shadow:0 0 0 100vmax #061d2be8}.expanded #replay-canvas{max-height:60dvh;object-fit:contain;background:#102f3a}.expanded .replay-expand{position:sticky;top:0;z-index:2}.expanded #run-stats{grid-template-columns:repeat(6,1fr)}#power-status{top:auto;bottom:82px;left:20px;right:auto;display:flex;gap:10px;letter-spacing:0}.power-timer{--remaining:360deg;background:conic-gradient(#a4e9cd var(--remaining),#385a60 0);border-radius:50%;width:48px;height:48px;padding:3px;position:relative}.power-timer img{width:42px;height:42px;background:#153c47;border-radius:50%;display:block}.power-timer span{position:absolute;bottom:-8px;left:7px;right:7px;background:#102e3c;border-radius:8px;color:#fff4dc;font-size:11px;font-weight:800;padding:2px}.touch-guide{bottom:22px}.bottom{bottom:8px;font-size:9px}.hangar-launch .primary{max-width:1160px}.hangar p{font-weight:400}.hangar-note{font-weight:700!important}
@media(max-width:900px){.hangar-grid{display:flex;flex-direction:column;gap:12px}.fleet-column,.review-column{width:100%}.review-column:has(#run-review.hidden){display:none}.replay-detail{display:none}.expanded .replay-detail{display:block}.hangar #run-review.expanded{inset:10px}.expanded #run-stats{grid-template-columns:repeat(3,1fr)}.vehicle img{height:77px}.vehicle strong{font-size:15px}.hangar-head{top:-18px}.hangar h2{font-size:32px}.hangar #vehicle-stats{font-size:11px;letter-spacing:1px}.upgrade p{font-size:12px}.replay-top{font-size:11px}.hangar #run-review{margin-bottom:10px}.hangar-grid{position:relative}.review-column{order:-1}.review-column #run-stats{display:none}.review-column #run-breakdown{display:none}.review-column .expanded #run-stats{display:grid}.review-column .expanded #run-breakdown{display:block}.review-column .replay-top{padding:10px 14px}.hangar #flight-summary{margin:8px 0 12px}.fleet-intro{font-size:13px!important}.aircraft-purchase>div{min-width:150px}}
@media(max-height:500px) and (orientation:landscape){header{height:42px;padding:0 20px}.brand{font-size:17px}.wallet{padding:4px 12px}main{height:calc(100dvh - 42px)}.panel{display:grid;grid-template-columns:1fr 1fr;column-gap:30px;max-width:740px;padding:12px 25px;overflow:visible;align-items:center}.panel .eyebrow{grid-column:1;padding:5px 10px;font-size:8px;justify-self:center}.panel h1{grid-column:1;font-size:54px;margin:12px 0 0}.hero-aircraft{grid-column:1;width:120px;height:62px;margin:0 auto}.panel p{grid-column:2;grid-row:1 / span 2;font-size:12px;line-height:1.5;margin:0}.panel .primary{grid-column:2;grid-row:3;margin:0 0 10px;padding:13px 24px}.panel .secondary{grid-column:2;grid-row:4;font-size:10px;padding:10px;margin:0}.panel .mobile-keys,.panel .keys{grid-column:1 / -1;margin:10px 0 0;font-size:9px}.hud{top:12px;left:20px;right:20px}.hud .number{font-size:24px;margin-top:2px}.hud .score-block{padding:4px 14px;transform:none}.hud-right .label,.hud-right #best{display:none}.hud button{margin:0;width:36px;height:36px}.coin-count,.score-best{font-size:9px;margin-top:3px}.label{font-size:9px}.hud #pause{display:block}#toast{top:83px;font-size:10px}#power-status{left:auto;right:20px;bottom:48px;gap:8px}.power-timer{width:39px;height:39px}.power-timer img{width:33px;height:33px}.power-timer span{font-size:10px;left:3px;right:3px}.touch-guide{bottom:13px}.bottom{display:none}.hangar{padding-top:4px}.hangar-head{top:-4px;padding:8px 0}.hangar h2{font-size:28px}.hangar-launch{padding:14px 20px 10px}.hangar-launch .primary{padding:12px}.expanded #replay-canvas{max-height:none}.hangar #run-review.expanded{inset:6px}}
/* Mobile: keep the sky open and the next action close. */
@media(max-width:900px) and (pointer:coarse), (max-width:600px){
 header{height:44px;padding:0 14px;border-bottom-width:2px}.brand{font-size:16px}.wallet{padding:4px 10px;font-size:11px;box-shadow:none}header .meta{display:none}main{height:calc(100dvh - 44px)}
 body.in-flight header{display:none}body.in-flight main{height:100dvh}.in-flight .hud{top:max(10px,env(safe-area-inset-top));left:12px;right:12px;align-items:start}.in-flight .hud .number{font-size:22px;margin-top:2px}.in-flight .label{font-size:8px;letter-spacing:.7px}.in-flight .hud .score-block{padding:4px 12px 5px;transform:none;border-radius:10px}.in-flight .score-best,.in-flight .hud-right .label,.in-flight #best{display:none}.in-flight .hud button{margin:0;width:44px;height:44px;background:#12363c88;border-color:#ffffff28}.in-flight .coin-count{font-size:9px;margin-top:3px}.in-flight #toast{top:max(72px,calc(env(safe-area-inset-top) + 65px));font-size:10px;letter-spacing:.6px}.in-flight #power-status{left:12px;right:auto;bottom:max(25px,calc(env(safe-area-inset-bottom) + 15px));gap:8px}.in-flight .power-timer{width:36px;height:36px;padding:2px}.in-flight .power-timer img{width:32px;height:32px}.in-flight .power-timer span{font-size:9px;bottom:-7px;left:3px;right:3px}.in-flight .bottom,.in-flight .touch-guide{display:none}
 .hangar{padding:0 12px 78px;scroll-padding-bottom:80px}.hangar-head{top:0;padding:8px 0;min-height:52px;gap:8px}.hangar-head .eyebrow{font-size:11px;padding:7px 10px;letter-spacing:.5px}#hangar-close{font-size:10px;padding:9px 12px;min-height:36px;box-shadow:none}.hangar h2{font-size:24px;letter-spacing:-1px;margin:6px 0 8px}.hangar #flight-summary{font-size:11px;padding:8px 10px;margin:0 0 8px;line-height:1.4}.hangar #badge-new{font-size:10px;padding:7px 10px;margin:0 0 8px;line-height:1.4;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .hangar-grid{gap:0}.fleet-intro{display:none}.review-column .replay-top{display:none}.review-column #run-review{border-radius:9px;box-shadow:none;margin-bottom:8px;border-width:1px}.replay-expand{padding:10px 12px;font-size:11px;min-height:40px;border:0;text-align:left}.review-column .expanded .replay-top{display:flex}.review-column .expanded .replay-expand{text-align:center}
 .vehicles{gap:6px;margin:4px 0 8px;padding:4px 2px 6px;scroll-padding:2px}.vehicle{flex:0 0 83px;padding:5px 4px 7px;border-radius:9px;border-bottom-width:3px}.vehicle img{height:42px}.vehicle strong{font-size:12px;margin:2px 0 0}.vehicle small{display:none}.vehicle .tier-tag{font-size:8px;letter-spacing:.5px}.vehicle.active{transform:translateY(-2px);box-shadow:0 0 0 2px #efb16d33}.hangar #vehicle-stats{font-size:10px;letter-spacing:.5px;padding:8px 10px;border-radius:7px}.hangar #tier-progress{font-size:11px;line-height:1.4;font-weight:600;margin:7px 0 9px}.upgrades{gap:7px}.upgrade{padding:10px;border-radius:10px;gap:8px;box-shadow:none;min-height:62px}.upgrade strong{font-size:12px}.upgrade p{font-size:11px;margin:3px 0 0;line-height:1.35}.step-number{width:18px;height:18px;font-size:10px;margin-right:3px}.buy{font-size:10px;padding:9px 8px;min-height:40px;min-width:95px;border-bottom-width:2px;border-radius:8px}.aircraft-purchase{flex-wrap:nowrap}.aircraft-purchase>img{width:38px;height:38px}.aircraft-purchase>div{min-width:0}.aircraft-purchase strong{font-size:12px}.aircraft-purchase .buy{width:auto}.hangar-launch{padding:10px 12px max(12px,env(safe-area-inset-bottom));background:#fff4dcf5;border-top:1px solid #d8ddc5}.hangar-launch .primary{padding:12px;font-size:12px;border-radius:10px;box-shadow:0 3px 0 #a74832;min-height:44px}.hangar #hangar-note{font-size:11px;margin:8px 0}.hangar #achievement-panel{margin:14px 0;padding:11px}.hangar #achievement-panel summary{font-size:10px;letter-spacing:.4px}.hangar #badge-count{font-size:10px}
}
/* A short reminder at takeoff; fade during seconds three to four. */
@media(max-width:900px) and (pointer:coarse), (max-width:600px){
 .in-flight .touch-guide{display:flex;bottom:max(76px,calc(env(safe-area-inset-bottom) + 65px));padding:0 12px;gap:12px;font-size:9px;letter-spacing:.3px;color:#d6e9d9;will-change:opacity}
 .in-flight .touch-guide span{padding:9px 8px;border-radius:8px;background:#0c2d3caa;border:1px solid #b7d6c536}
 .in-flight .touch-guide span.active{color:#ffe3a2;border-color:#edbd6b99;background:#314b43cc}
 .in-flight .touch-guide::after{display:none}
}
/* One obvious balance, stable prices, optional supporting information. */
.hangar-head{align-items:center;border-bottom:1px solid #cdd7c4;margin-bottom:12px}.hangar-balance{color:#153c47;line-height:1}.balance-label{font-size:10px;font-weight:700;letter-spacing:1.5px;display:block;margin-bottom:5px}.hangar-balance>div{display:flex;gap:9px;align-items:center}.balance-coin{font-size:27px;color:#c28b2f}#hangar-wallet{font-size:42px;font-weight:900;letter-spacing:-1px;font-variant-numeric:tabular-nums}.hangar h2{font-size:22px;letter-spacing:0;margin:8px 0}.fleet-intro{display:none}.hangar #vehicle-stats{background:none;padding:0;font-size:12px;color:#34565b}.hangar #tier-progress{font-weight:400;color:#657b75}.upgrade .buy{font-size:16px;min-width:95px;font-variant-numeric:tabular-nums}.upgrade.owned .buy{font-size:11px}.upgrade.short .buy{background:#eee9db;border:1px solid #d4cfbd;color:#79877c}.upgrade.locked .buy{background:#e9eae1;border:1px solid #d0d6c9;color:#849087}.upgrade strong{font-weight:700}.aircraft-purchase strong{color:#38575a}.step-number{display:none}.menu-details{padding:14px 0;border-top:1px solid #c5d7bf;margin:16px 0}.menu-details>summary{font-size:11px;font-weight:700;cursor:pointer;min-height:32px;align-content:center;letter-spacing:.7px}.hangar #achievement-panel{border:0;border-top:1px solid #c5d7bf;border-bottom:1px solid #c5d7bf;border-radius:0;background:transparent;box-shadow:none;margin:16px 0;padding:12px 0}.hangar #achievement-panel summary{font-weight:700}.hangar #badge-new{background:none;border:0;padding:0;font-weight:500;color:#617c54}.hangar:not(:has(#run-review.hidden)) #hangar-close{display:none}body:not(.in-flight) .hud{display:none}
@media(max-width:900px) and (pointer:coarse), (max-width:600px){
 .hangar-head{min-height:88px;padding:10px 0;margin-bottom:10px}#hangar-wallet{font-size:40px}.balance-label{font-size:10px}.balance-coin{font-size:25px}.hangar h2{font-size:19px;letter-spacing:0;margin:6px 0}.hangar #flight-summary{background:none;padding:0;margin:0 0 8px;color:#637970!important;font-weight:400;font-size:11px}.hangar #badge-new{padding:0;margin:0 0 8px;font-size:11px}.vehicles{margin-top:8px}.hangar #vehicle-stats{padding:0;margin-top:2px;font-size:11px}.hangar #tier-progress{font-size:11px;margin:5px 0 10px}.upgrade .buy{font-size:15px;min-width:78px;min-height:42px}.upgrade.owned .buy{font-size:10px}.upgrade{min-height:62px}.upgrade strong{font-size:13px}.upgrade p{color:#71847b}.hangar #achievement-panel{margin:14px 0 0;padding:10px 0}.menu-details{margin:0 0 8px;padding:10px 0;border-top:0}.menu-details>summary{font-size:10px}.hangar .reset-link{margin:12px auto;font-weight:500}.replay-expand{font-weight:600;letter-spacing:.3px}.panel p{font-size:13px}
}
#badge-new{cursor:pointer;text-align:left;font:inherit;min-height:36px;display:block!important}#badge-new.hidden{display:none!important}#badge-new:hover{color:#946322!important}#achievement-panel{scroll-margin-top:110px}.badge.claimable{border:2px solid #e3b357;background:#fff0c9}.badge{flex-wrap:wrap}.badge-body{flex-basis:calc(100% - 50px)}.claim-prize{min-height:44px;margin-left:auto;background:#efbd63;color:#5a4021;border:1px solid #d9a24c;border-radius:8px;padding:10px 16px;font-size:12px;font-weight:800;letter-spacing:.3px}.claim-prize:hover{background:#ffd787}.hangar #badge-new{font-size:12px;font-weight:700;margin:0 0 8px;padding:5px 0;background:transparent;border:0}.hangar #badge-count{font-size:10px;letter-spacing:0}
/* Inline, autoplaying recap; detailed inspection stays optional. */
.hangar #run-review{position:relative}.hangar #run-review:not(.expanded) .replay-detail{display:block}.review-column #run-review:not(.expanded) .replay-top{display:flex;padding:9px 12px;font-size:10px;letter-spacing:.6px}.hangar #run-review:not(.expanded) #replay-canvas{max-height:240px;object-fit:contain;background:#102f3a}.hangar #run-review:not(.expanded) .map-controls,.hangar #run-review:not(.expanded) .trail-toggle,.hangar #run-review:not(.expanded) .map-legend,.hangar #run-review:not(.expanded) #run-stats,.hangar #run-review:not(.expanded) #run-breakdown{display:none}.replay-actions{display:flex;align-items:center;justify-content:space-between;background:#143640;padding:2px 8px;gap:8px}.replay-actions button{min-height:40px;background:transparent;border:0;border-radius:5px;color:#f4d594;padding:8px;font-size:10px;letter-spacing:.5px;font-weight:700;cursor:pointer}.replay-actions .replay-expand{width:auto;text-align:right}.replay-actions button:hover{background:#ffffff0d}.expanded .replay-actions{position:sticky;bottom:0;z-index:3;justify-content:flex-end;border-top:1px solid #54766c}.expanded #replay-preview-toggle{display:none}.expanded .replay-actions .replay-expand{position:static;font-size:12px}.expanded .replay-top{padding:12px 14px!important}.expanded #replay-canvas{max-height:60dvh}
@media(max-width:900px){.hangar #run-review:not(.expanded) #replay-canvas{max-height:145px;width:100%;height:auto}.review-column #run-review{border-radius:10px}.review-column #run-review:not(.expanded){margin-bottom:10px}.replay-actions button{min-height:36px}.review-column .expanded #run-stats{display:grid}.review-column .expanded #run-breakdown{display:block}}
/* Put earned rewards beside the wallet and reset the debrief position. */
#prize-callout{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#ffe4a3;border:2px solid #e7b351;border-radius:12px;margin:4px 0 14px;color:#5b4525}#prize-callout>div{min-width:0}#prize-callout strong{display:block;font-size:10px;letter-spacing:.7px}#prize-total{display:block;font-size:17px;font-weight:800;margin-top:5px}#prize-callout #badge-new{font-size:11px;font-weight:500;min-height:30px;margin:3px 0 0;padding:3px 0;color:#745e38!important;text-decoration:underline;text-underline-offset:3px}#claim-all{flex-shrink:0;min-height:44px;background:#ef7950;color:#fff9e7;border:1px solid #d86641;border-radius:9px;padding:12px 16px;font-size:12px;font-weight:800;box-shadow:0 3px 0 #b45035}#claim-all:hover{background:#df6944}#prize-callout.hidden{display:none!important}.hangar{overflow-anchor:none}
@media(max-width:600px){#prize-callout{padding:11px 12px;gap:8px;margin-bottom:12px}#prize-total{font-size:16px}#prize-callout strong{font-size:9px;letter-spacing:.3px}#claim-all{font-size:11px;padding:11px 12px}#prize-callout #badge-new{font-size:10px}}
/* Sharing polish: quieter surfaces and a clear type hierarchy. */
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}.brand,h1{font-family:'Trebuchet MS',Arial,sans-serif}.hangar{background-image:radial-gradient(#153c4710 .7px,transparent .7px);background-size:24px 24px}.hangar h2{font-family:inherit;font-style:normal;font-weight:750;font-size:20px;letter-spacing:-.4px;margin:8px 0 10px}.hangar #flight-summary{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;background:none!important;border:0;border-bottom:1px solid #d5ddcb;border-radius:0!important;padding:0 0 12px!important;margin:0 0 14px!important;color:#153c47!important}.hangar #flight-summary span{display:block;font-size:9px;letter-spacing:.7px;font-weight:600;color:#5e7774}.hangar #flight-summary strong{font-size:25px;font-weight:750;line-height:1.3;font-variant-numeric:tabular-nums}.hangar #flight-summary small{font-size:14px;font-weight:500}.hangar #flight-summary>div:first-child strong{color:#b95334}.hangar #flight-summary>div:last-child strong{color:#8c6529}.hangar #flight-summary.hidden{display:none!important}.hangar-head{padding-top:max(12px,env(safe-area-inset-top));top:0}.hangar .vehicle{box-shadow:none;border-width:1px;border-bottom-width:3px}.vehicle.locked{opacity:1;background:#e7e9df;border-color:#cad1c3}.vehicle.locked img{filter:grayscale(.55) drop-shadow(0 3px 2px #23464b22);opacity:.62}.vehicle.locked strong{color:#657773}.vehicle small{font-weight:600;letter-spacing:.5px}.vehicle.active{background:#ffdfaa;border-color:#dd9c51;box-shadow:0 0 0 2px #eab46633}.upgrade{border-width:1px;box-shadow:none}.upgrade.available{border-color:#d3a655}.upgrade strong{font-weight:650}.upgrade.short .buy,.upgrade.locked .buy{color:#657267}.buy-label{display:block;font-size:8px;font-weight:700;letter-spacing:.8px;line-height:1.1;margin-bottom:2px}.hangar #prize-total{font-weight:700}#claim-all{background:#f0bd60;color:#573e1e;border-color:#d5a04a;box-shadow:0 2px 0 #bc8737}#claim-all:hover{background:#ffd17f}.hangar #run-review{box-shadow:none;border-width:1px}.replay-actions button{min-height:44px;font-weight:600;font-size:11px}.map-controls button{min-height:44px}.menu-details>summary,#achievement-panel>summary{min-height:44px;align-content:center}.primary{font-weight:750;letter-spacing:1px}.hangar-launch{padding-bottom:max(12px,env(safe-area-inset-bottom))}.panel .eyebrow{font-weight:700}.panel p{font-weight:400}.hangar #prize-callout{border-width:1px}.hangar #badge-new{min-height:36px}.hangar #badge-count{font-weight:600}.map-legend{font-size:11px}
@media(max-width:900px) and (pointer:coarse), (max-width:600px){.hangar{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.hangar-head{min-height:80px}.vehicle{flex-basis:86px}.vehicle small{display:block;font-size:8px;margin-top:4px;letter-spacing:.5px}.vehicle img{height:40px}.vehicle strong{font-size:12px;font-weight:700}.vehicle .tier-tag{color:#526e67}.hangar #flight-summary strong{font-size:23px}.hangar #flight-summary span{font-size:8px;letter-spacing:.4px}.hangar #flight-summary{padding-bottom:10px!important;margin-bottom:12px!important}.hangar h2{font-size:19px}.upgrade p{font-size:11px;color:#5b736d}.replay-actions button{min-height:44px;font-size:10px}#prize-callout #badge-new{min-height:36px}.hangar-launch .primary{min-height:46px}.buy{min-height:44px!important}.hangar #run-review:not(.expanded) #replay-canvas{max-height:140px}.hangar #achievement-panel summary{font-size:11px}.mobile-keys{font-size:9px;letter-spacing:.2px}.touch-guide span{font-size:9px;font-weight:600}}
@media(max-height:500px) and (orientation:landscape){.hangar-head{min-height:70px}.panel .mobile-keys{font-size:9px}.hangar #run-review.expanded #replay-canvas{max-height:65dvh}}
/* Tell players what they earned before they claim. */
#prize-callout{display:grid;grid-template-columns:minmax(0,1fr) auto}#prize-earned{grid-column:1 / -1;min-width:0;border-top:1px solid #b68b3a44;padding-top:4px}.prize-earned-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #b68b3a22}.prize-earned-row:last-child{border:0}.prize-earned-row>div{min-width:0}#prize-earned .prize-earned-row strong{display:block;font-size:12px;font-weight:700;letter-spacing:0}.prize-earned-row span{display:block;color:#735e38;font-size:12px;line-height:1.45;margin-top:3px}.prize-earned-row small{flex-shrink:0;font-size:11px;font-weight:650;color:#805e26}.badge-group-title{grid-column:1 / -1;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#57756d;margin:12px 0 2px}.badge-group-title:first-child{margin-top:0}
@media(max-width:600px){#prize-callout{gap:5px 8px}.prize-earned-row{padding:8px 0}.prize-earned-row span{font-size:11px}#prize-earned .prize-earned-row strong{font-size:12px}}
#pilot-status{margin-left:auto;text-align:right;color:#315d60;line-height:1.3}#pilot-status>span{display:block;font-size:8px;letter-spacing:1px;font-weight:600}#pilot-status strong{display:block;font-size:15px;font-weight:750;margin:3px 0}#pilot-status small{display:block;font-size:10px;color:#647f75}#next-goals{padding:12px;background:#e7eddd;border:1px solid #c9d7bf;border-radius:10px;margin:4px 0 16px}#next-goals h3{font-size:9px;letter-spacing:1px;color:#466960;margin:0 0 9px;font-weight:650}.career-goal{display:grid;grid-template-columns:1fr auto;column-gap:12px;row-gap:6px;padding:6px 0}.career-goal>span{font-size:12px;line-height:1.4;color:#365a56}.career-goal small{font-size:10px;color:#658075;align-self:center;font-variant-numeric:tabular-nums}.career-goal progress{grid-column:1 / -1;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;background:#cdd9c6;accent-color:#829e6b}.career-goal progress::-webkit-progress-bar{background:#cdd9c6}.career-goal progress::-webkit-progress-value{background:#829e6b}#region-label{position:absolute;right:16px;bottom:max(22px,env(safe-area-inset-bottom));color:#c6d5c3;font-size:9px;letter-spacing:1.4px;pointer-events:none;text-shadow:0 1px 4px #122e3f;opacity:0}body:not(.in-flight) #region-label{display:none}@media(max-width:600px){#pilot-status strong{font-size:13px}#pilot-status small{font-size:9px}#pilot-status>span{font-size:8px}#next-goals{padding:10px 12px;margin-bottom:12px}.career-goal>span{font-size:11px}.career-goal{padding:5px 0}#region-label{font-size:8px;letter-spacing:.8px;bottom:22px;right:12px}#hangar-close{padding:9px;font-size:9px}.hangar-head{gap:10px}}
/* Near Miss identity: close flight paths, confident type, danger coral. */
:root{--flight-ink:#153c47;--flight-paper:#fff4dc;--danger-coral:#f4774f;--coin-gold:#edbd6b}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.brand{display:flex;align-items:center;gap:10px;transform:none;font-style:normal;line-height:1}.brand img{display:block;object-fit:contain}.brand-emblem{width:36px;height:36px}.brand-wordmark{width:159px;height:27px}.meta{font-size:10px;letter-spacing:1.6px;font-weight:650;color:#496b6e}.title-wordmark{display:block;width:280px;height:auto;margin:0 auto;filter:drop-shadow(3px 5px 0 #062734)}.panel h1:has(.title-wordmark){margin:22px 0 12px;line-height:0;text-shadow:none;letter-spacing:0}.panel .eyebrow{background:transparent;border:1px solid #93b7ae55;color:#c8d9c6;transform:none;border-radius:4px;padding:7px 12px;font-size:9px;letter-spacing:2px}.panel .primary{background:var(--danger-coral)}.panel .secondary{background:#173f4980;border-width:1px;box-shadow:none}.bottom{font-size:9px;letter-spacing:2px;color:#9ab8ac}.hero-aircraft{margin:0 auto 2px}.primary{border-color:#ffad83}.panel p{font-size:14px;color:#cadbd0}.panel .primary::after{content:'';display:inline-block;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;margin-left:9px;transform:rotate(45deg)}.panel .primary{letter-spacing:1.5px}.panel #start-btn{font-size:13px}.panel .secondary{font-size:11px}.panel .mobile-keys{font-weight:500;color:#a9c7bd}header .wallet{background:#f6e7c2;border-color:#d7b46b;color:#725321}
@media(max-width:600px){.brand{gap:7px}.brand-emblem{width:26px;height:26px}.brand-wordmark{width:120px;height:21px}.title-wordmark{width:228px}.panel .eyebrow{font-size:8px;letter-spacing:1.5px}.panel h1:has(.title-wordmark){margin:18px 0 10px}.panel p{font-size:13px}.panel #start-btn{font-size:12px}.bottom{font-size:8px}}
@media(max-height:720px){.title-wordmark{width:208px}.panel h1:has(.title-wordmark){margin:16px 0 8px}}
@media(max-height:500px) and (orientation:landscape){.brand-emblem{width:25px;height:25px}.brand-wordmark{width:124px;height:22px}.title-wordmark{width:185px}.panel h1:has(.title-wordmark){margin:9px 0 0}.panel .eyebrow{font-size:8px;padding:5px 8px;letter-spacing:1px}.panel p{font-size:13px}.panel .primary::after{display:none}}
/* Red heat for Boost; cyan electricity remains EMP's visual identity. */
.power-timer[data-power="boost"]{background:conic-gradient(#ff756b var(--remaining),#5c3a40 0)}.power-timer[data-power="emp"]{background:conic-gradient(#87e7ec var(--remaining),#385a60 0)}
/* The hangar owns its scroll; each open starts from a stable viewport. */
.hangar{position:fixed;inset:0;overscroll-behavior:contain;scroll-behavior:auto;overflow-anchor:none}.hangar:focus{outline:none}
.power-timer[data-power="magnet"]{background:conic-gradient(#f7d16c var(--remaining),#62563a 0)}

/* Set selection/callout rules directly on descendants, including HUD labels. */
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body img,body canvas{-webkit-user-drag:none}
body input:not([type]),body input[type=text],body input[type=search],body input[type=email],body input[type=tel],body input[type=url],body input[type=password],body textarea,body [contenteditable=true],body [contenteditable=true] *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
