.mobile-brief{display:none}html,body{overscroll-behavior:none}button,a,input{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}
.mobile-flight{user-select:none;-webkit-user-select:none;touch-action:none}.mobile-flight .topbar{min-height:60px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:8px}.mobile-flight .brand{font-size:30px}.mobile-flight .brand small,.mobile-flight .mission-top,.mobile-flight #fullscreen-button{display:none}.mobile-flight .top-actions{gap:5px}.mobile-flight .top-actions button{min-height:42px;font-size:9px;padding:9px 10px}.mobile-flight #help-button{min-width:42px}.mobile-flight #help-button span{display:none}.mobile-flight .welcome-screen{padding:100px 24px max(30px,env(safe-area-inset-bottom));background:linear-gradient(90deg,#091840ef,#09184077),linear-gradient(0deg,#091840f5,transparent)}.mobile-flight .welcome-controls{display:none}.mobile-flight .welcome-copy{max-width:560px}.mobile-flight h1{font-size:clamp(58px,12vw,88px);margin-bottom:20px}.mobile-flight .eyebrow{font-size:10px;margin-bottom:17px}.mobile-flight .welcome-description{font-size:15px;margin-bottom:20px}.mobile-flight .welcome-specs{display:none}.mobile-flight .primary{min-height:52px;font-size:14px;min-width:250px}.mobile-flight .mobile-brief{display:block;margin-top:18px}.mobile-brief button{background:#0e2258;border:1px solid #375376;color:#ebb058;border-radius:24px;padding:11px 15px;font-size:11px;font-weight:700;min-height:44px}.mobile-brief p{font-size:13px;color:#c5d2ec;line-height:1.5;margin:12px 0 0}.mobile-flight .touch-controls{display:block;position:absolute;inset:0;pointer-events:none}.mobile-flight .joystick{display:block;position:absolute;left:max(22px,env(safe-area-inset-left));bottom:calc(34px + env(safe-area-inset-bottom));width:132px;height:132px;border:2px solid #577fb1aa;background:#0e214e99;backdrop-filter:none;box-shadow:inset 0 0 24px #09184066;border-radius:50%;pointer-events:auto;touch-action:none}.mobile-flight .joystick>span{width:48px;height:48px;left:40px;top:40px;border:2px solid #ebb058;background:#ebb05866;transition:none}.mobile-flight .joystick::before,.mobile-flight .joystick::after{pointer-events:none}.mobile-flight .joystick small{font-size:9px;top:106%;color:#fff;letter-spacing:.5px}.mobile-flight .touch-right{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(28px + env(safe-area-inset-bottom));display:grid;grid-template-columns:88px 54px;gap:8px;pointer-events:auto}.mobile-flight .touch-right button{min-height:50px;font-size:11px;padding:9px 6px;border-radius:8px;touch-action:none;box-shadow:0 3px 12px #09184055}.mobile-flight #land-button{grid-column:1 / -1;background:#479e2c;border-color:#5cae43;font-size:13px}.mobile-flight #land-button:disabled{background:#1a2a55;border-color:#375376;opacity:.65;cursor:default}.mobile-flight #touch-pause{font-size:22px;grid-column:2;grid-row:2}.mobile-flight [data-hold="Space"]{grid-column:1;grid-row:2}.mobile-flight #touch-camera{grid-column:1 / -1;min-height:44px}.mobile-flight .systems{display:none}.mobile-flight:not(.easy-flight) .systems{display:block;bottom:230px;right:12px;width:150px;padding:10px}.mobile-flight:not(.easy-flight) .system-row{font-size:10px}.mobile-flight:not(.easy-flight) .system-toggle{font-size:11px;min-height:35px}.mobile-flight #throttle{height:28px;margin:4px 0;touch-action:none}.mobile-flight .compass-wrap{top:78px;width:150px}.mobile-flight .compass-scale{display:none}.mobile-flight .compass-marker{display:none}.mobile-flight .compass-wrap>span{font-size:12px}.mobile-flight .navigation{left:15px;top:90px;transform:none;gap:5px}.mobile-flight .navigation small{font-size:7px;letter-spacing:.1px}.mobile-flight .navigation strong{font-size:16px;margin-top:2px}.mobile-flight .nav-arrow{font-size:23px}.mobile-flight .instruments{top:85px;bottom:auto;left:auto;right:12px;transform:none;gap:8px;padding:7px 10px;max-width:205px;box-shadow:0 4px 15px #09184022}.mobile-flight .instruments>div:not(.instrument-divider){min-width:55px}.mobile-flight .instruments strong{font-size:26px;line-height:1.1;letter-spacing:0}.mobile-flight .instruments small{font-size:7px;letter-spacing:0}.mobile-flight .instruments span{font-size:7px}.mobile-flight .instruments>div:nth-last-child(1),.mobile-flight .instruments>div:nth-last-child(2){display:none}.mobile-flight .instrument-divider{margin-top:4px;height:28px}.mobile-flight .quiz-progress{right:12px;top:165px;width:185px;padding:12px}.mobile-flight .progress-heading{font-size:8px}.mobile-flight .quiz-progress p{font-size:11px}.mobile-flight .quiz-card{top:165px;right:12px;left:12px;width:auto;padding:15px;max-height:calc(100dvh - 395px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.mobile-flight .quiz-heading{font-size:10px;padding-bottom:10px}.mobile-flight .question-title{font-size:17px;line-height:1.3;margin:12px 0}.mobile-flight .answers{gap:7px}.mobile-flight .answer{font-size:14px;min-height:46px;padding:10px;touch-action:manipulation}.mobile-flight .answer>b{font-size:11px}.mobile-flight .quiz-hint{display:none}.mobile-flight #feedback{font-size:13px;margin-top:10px}.mobile-flight #feedback strong{font-size:13px}.mobile-flight .question-next{font-size:14px;min-height:46px;padding:10px 0}.mobile-flight .map-panel{width:100px;left:15px;bottom:218px}.mobile-flight #minimap{height:72px}.mobile-flight .map-heading,.mobile-flight .map-footer{font-size:6px;padding:5px}.mobile-flight.answering .map-panel{display:none}.mobile-flight .flight-message{left:12px;right:12px;top:auto;bottom:calc(211px + env(safe-area-inset-bottom));transform:none;width:auto;max-width:none;font-size:10px;line-height:1.5;letter-spacing:.1px}.mobile-flight.answering .flight-message{display:none}.mobile-flight .flight-reticle{top:53%;opacity:.35}.mobile-flight .bottom-controls{display:none}.mobile-flight .dialog{touch-action:pan-y;overscroll-behavior:contain}.mobile-flight .help-grid{grid-template-columns:1fr}.mobile-flight .error{top:65px;font-size:13px}.mobile-flight .vignette{background:linear-gradient(180deg,#09184044,transparent 30%,transparent 70%,#09184066)}
@media(max-height:730px) and (orientation:portrait){.mobile-flight .welcome-screen{padding-top:85px}.mobile-flight h1{font-size:64px;margin-bottom:14px}.mobile-flight .welcome-description{font-size:14px;margin-bottom:15px}.mobile-flight .mobile-brief{margin-top:12px}.mobile-brief p{font-size:12px}.mobile-flight .quiz-card{top:145px;max-height:calc(100dvh - 350px);padding:12px}.mobile-flight .answer{min-height:44px;font-size:13px;padding:8px}.mobile-flight .question-title{font-size:15px}.mobile-flight .joystick{width:112px;height:112px;bottom:28px}.mobile-flight .joystick>span{left:30px;top:30px}.mobile-flight .touch-right{bottom:16px}.mobile-flight .flight-message{bottom:190px}.mobile-flight .map-panel{bottom:190px}.mobile-flight .touch-right button{min-height:44px}.mobile-flight .quiz-progress{top:145px}}
@media(orientation:landscape){.mobile-flight .welcome-screen{padding:78px 27px 22px;align-items:center}.mobile-flight .welcome-copy{display:grid;grid-template-columns:minmax(230px,1fr) minmax(240px,1fr);column-gap:35px;max-width:900px;width:100%}.mobile-flight .welcome-copy>.eyebrow{grid-column:1;margin-bottom:10px}.mobile-flight h1{grid-column:1;grid-row:2 / 4;font-size:64px;margin-bottom:12px}.mobile-flight .welcome-description{grid-column:2;grid-row:1 / 3;font-size:13px;margin-bottom:12px}.mobile-flight .welcome-actions{grid-column:2}.mobile-flight .mobile-brief{grid-column:2;margin-top:8px}.mobile-brief p{font-size:11px;line-height:1.4;margin-top:5px}.mobile-brief button{min-height:36px;padding:8px 12px;font-size:10px}.mobile-flight .primary{min-height:44px;padding:11px 16px;min-width:230px;font-size:12px}.mobile-flight .topbar{min-height:52px;padding-top:4px;padding-bottom:4px}.mobile-flight .top-actions button{min-height:38px}.mobile-flight .compass-wrap{top:64px}.mobile-flight .navigation{top:66px}.mobile-flight .instruments{top:64px;left:165px;right:auto;padding:5px 9px}.mobile-flight .instruments strong{font-size:23px}.mobile-flight .quiz-card{left:auto;right:max(12px,env(safe-area-inset-right));top:62px;width:43%;max-height:calc(100dvh - 76px);padding:12px;z-index:6}.mobile-flight .question-title{font-size:15px;margin:9px 0}.mobile-flight .answer{min-height:44px;padding:7px 9px;font-size:13px}.mobile-flight .quiz-heading{font-size:9px;padding-bottom:7px}.mobile-flight .answers{gap:5px}.mobile-flight .quiz-progress{top:65px;right:12px;width:190px}.mobile-flight.answering .touch-right{visibility:hidden}.mobile-flight .joystick{width:112px;height:112px;bottom:25px}.mobile-flight .joystick>span{left:30px;top:30px}.mobile-flight .touch-right{bottom:14px;grid-template-columns:100px 54px}.mobile-flight .touch-right button{min-height:44px}.mobile-flight #touch-camera{min-height:36px}.mobile-flight .flight-message{left:165px;right:195px;bottom:29px;font-size:10px}.mobile-flight .map-panel{left:170px;bottom:65px;width:90px}.mobile-flight #minimap{height:62px}.mobile-flight .quiz-card #feedback{font-size:12px}.mobile-flight .systems{bottom:190px}}
@media(prefers-reduced-motion:reduce){.mobile-flight .top-actions button{transition:none}}
.mobile-flight .joystick>span{position:absolute;z-index:1;border-radius:50%}.mobile-flight .joystick small{position:absolute;left:0;right:0;text-align:center}.mobile-flight .joystick::before,.mobile-flight .joystick::after{content:'';position:absolute;background:#c5d2ec33;left:50%;top:15%;height:70%;width:1px}.mobile-flight .joystick::after{transform:rotate(90deg)}
#mobile-pause-top,.mobile-help{display:none}body.mobile-flight.playing #mobile-pause-top{display:block;min-width:42px;font-size:18px;line-height:1;order:5}body.mobile-flight.playing .topbar{min-height:60px;padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left))}body.mobile-flight.playing .brand{font-size:30px}.mobile-flight .mobile-help{display:block}.mobile-help p{font-size:14px;line-height:1.6;color:#c5d2ec}.mobile-help strong{color:#ebb058}.mobile-flight .help-grid,.mobile-flight .landing-help{display:none}
@media(orientation:landscape){body.mobile-flight.playing .topbar{min-height:52px;padding-top:4px;padding-bottom:4px}body.mobile-flight.playing .brand{font-size:28px}}

@media(orientation:portrait){.mobile-flight .map-panel{bottom:260px}}
.question-pause{display:none}body.gate-question #hud{z-index:12}body.gate-question #hud::before{content:'';position:absolute;inset:0;background:#06102cb8;backdrop-filter:blur(3px);z-index:1}body.gate-question #hud>:not(.quiz-card){visibility:hidden;pointer-events:none}body.gate-question .quiz-card{position:absolute;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(480px,calc(100% - 30px));max-height:calc(100dvh - 36px);overflow:auto;z-index:5;padding:24px;background:#0e214efc;border:1px solid #866a3b;border-radius:9px;box-shadow:0 15px 65px #02081888;touch-action:pan-y;overscroll-behavior:contain;backdrop-filter:none}body.gate-question .question-pause{display:block;color:#ebb058;font-size:11px;font-weight:700;letter-spacing:.5px;margin:0 0 15px}body.gate-question .quiz-heading{font-size:11px;letter-spacing:.4px;padding-bottom:12px;color:#b5c4e3}body.gate-question .question-title{font-size:21px;line-height:1.35;margin:18px 0}body.gate-question .answers{gap:8px}body.gate-question .answer{font-size:15px;min-height:48px;padding:11px 12px}body.gate-question .answer>b{font-size:12px}body.gate-question #feedback{font-size:14px;margin-top:15px}body.gate-question #feedback strong{font-size:14px}body.gate-question .question-next{background:#479e2c;border:1px solid #5cae43;border-radius:5px;color:#fff;text-align:center;font-size:14px;font-weight:700;min-height:48px;padding:12px;margin-top:15px}body.gate-question .quiz-hint{display:none}
@media(max-width:700px){body.gate-question .quiz-card{padding:19px}body.gate-question .question-title{font-size:18px;margin:14px 0}body.gate-question .answer{font-size:14px}body.gate-question .question-pause{font-size:10px}}@media(max-height:480px){body.gate-question .quiz-card{width:min(580px,calc(100% - 36px));padding:16px;max-height:calc(100dvh - 20px)}body.gate-question .question-title{font-size:17px;margin:10px 0}body.gate-question .question-pause{margin-bottom:8px;font-size:10px}body.gate-question .quiz-heading{padding-bottom:8px;font-size:10px}body.gate-question .answers{grid-template-columns:1fr 1fr;gap:7px}body.gate-question .answer{font-size:13px;min-height:44px;padding:8px}body.gate-question #feedback{font-size:12px;margin-top:9px}body.gate-question .question-next{margin-top:9px;min-height:44px}}

.mobile-flight .quiz-progress{display:none}body.gate-question #hud::before{backdrop-filter:none}
/* Dedicated flight viewport: controls stay below the airplane. */
body.mobile-flight.playing{--flight-dock:176px}body.mobile-flight.playing #world{bottom:calc(var(--flight-dock) + env(safe-area-inset-bottom));height:auto}body.mobile-flight.playing .vignette{bottom:calc(var(--flight-dock) + env(safe-area-inset-bottom));background:linear-gradient(180deg,#09184022,transparent 30%,transparent 90%,#09184022)}body.mobile-flight.playing #hud::after{content:'';position:absolute;left:0;right:0;bottom:0;height:calc(var(--flight-dock) + env(safe-area-inset-bottom));background:linear-gradient(180deg,#112855,#091840);border-top:1px solid #375376;z-index:0;pointer-events:none}body.mobile-flight.playing .touch-controls{z-index:2}body.mobile-flight.playing .topbar{min-height:48px;padding:3px max(10px,env(safe-area-inset-right)) 3px max(10px,env(safe-area-inset-left));background:#091840e8;border-bottom:1px solid #375376}body.mobile-flight.playing .brand{font-size:25px;gap:3px}body.mobile-flight.playing .brand>span{font-size:17px}body.mobile-flight.playing .top-actions{gap:5px}body.mobile-flight.playing .top-actions button{min-height:40px;font-size:8px;padding:8px 10px}body.mobile-flight.playing #sound-button{font-size:0;min-width:38px;width:38px;padding:7px}body.mobile-flight.playing #sound-button::before{content:'♫';font-size:20px}body.mobile-flight.playing #help-button,body.mobile-flight.playing #mobile-pause-top{min-width:38px;width:38px;font-size:17px;padding:7px}body.mobile-flight.playing .compass-wrap,body.mobile-flight.playing .map-panel,body.mobile-flight.playing .flight-reticle{display:none}body.mobile-flight.playing .navigation{left:12px;top:59px;max-width:calc(100% - 155px);gap:6px}body.mobile-flight.playing .navigation small{font-size:8px;letter-spacing:0;line-height:1.5}body.mobile-flight.playing .navigation strong{font-size:17px;margin-top:1px}body.mobile-flight.playing .nav-arrow{font-size:27px}body.mobile-flight.playing .instruments{left:auto;right:10px;top:58px;bottom:auto;padding:6px 9px;gap:7px;background:#091840b8;border:1px solid #375376;border-radius:5px;max-width:145px}body.mobile-flight.playing .instruments>div:not(.instrument-divider){min-width:44px}body.mobile-flight.playing .instruments strong{font-size:23px}body.mobile-flight.playing .instruments small,body.mobile-flight.playing .instruments span{font-size:6px}body.mobile-flight.playing .instrument-divider{height:25px;margin-top:3px}body.mobile-flight.playing .flight-message{top:117px;bottom:auto;left:18px;right:18px;max-width:none;width:auto;font-size:9px;line-height:1.4;letter-spacing:0;color:#fff;text-shadow:0 1px 5px #091840,0 1px 10px #091840}body.mobile-flight.playing .joystick{width:120px;height:120px;left:max(24px,env(safe-area-inset-left));bottom:calc(33px + env(safe-area-inset-bottom));border:2px solid #577fb1;background:#091840aa;box-shadow:none}body.mobile-flight.playing .joystick>span{width:44px;height:44px;left:36px;top:36px}body.mobile-flight.playing .joystick small{font-size:9px;top:106%}body.mobile-flight.playing .touch-right{right:max(20px,env(safe-area-inset-right));bottom:calc(31px + env(safe-area-inset-bottom));width:150px;display:grid;grid-template-columns:1fr;gap:10px;visibility:visible}body.mobile-flight.playing .touch-right button{grid-column:1;grid-row:auto;min-height:47px;padding:10px;font-size:12px;border-radius:7px}body.mobile-flight.playing #land-button{min-height:48px;font-size:12px}body.mobile-flight.playing #touch-camera{min-height:44px}body.mobile-flight.playing #touch-pause{display:none}body.mobile-flight.playing.easy-flight [data-hold="Space"]{display:none}body.mobile-flight.playing:not(.easy-flight) .touch-right{bottom:calc(15px + env(safe-area-inset-bottom));gap:6px}body.mobile-flight.playing:not(.easy-flight) .touch-right button{min-height:40px;padding:8px}body.mobile-flight.playing:not(.easy-flight) .systems{bottom:calc(var(--flight-dock) + env(safe-area-inset-bottom) + 10px);width:145px}.mobile-flight.playing.gate-question #hud::after{display:none}.mobile-flight.playing.gate-question .touch-controls{visibility:hidden;pointer-events:none}.mobile-flight.playing.gate-question .touch-right{visibility:hidden}
@media(max-width:360px) and (orientation:portrait){body.mobile-flight.playing{--flight-dock:158px}body.mobile-flight.playing .joystick{width:108px;height:108px;left:18px;bottom:calc(29px + env(safe-area-inset-bottom))}body.mobile-flight.playing .joystick>span{left:30px;top:30px}body.mobile-flight.playing .touch-right{width:138px;right:16px;bottom:calc(24px + env(safe-area-inset-bottom))}body.mobile-flight.playing .top-actions{gap:4px}body.mobile-flight.playing .top-actions button{padding:7px 8px;font-size:7px}body.mobile-flight.playing .navigation small{font-size:7px}}
@media(orientation:landscape){body.mobile-flight.playing{--flight-dock:104px}body.mobile-flight.playing .joystick{width:88px;height:88px;left:max(22px,env(safe-area-inset-left));bottom:calc(8px + env(safe-area-inset-bottom))}body.mobile-flight.playing .joystick>span{width:36px;height:36px;left:24px;top:24px}body.mobile-flight.playing .joystick small{display:none}body.mobile-flight.playing .touch-right{width:auto;right:max(22px,env(safe-area-inset-right));bottom:calc(27px + env(safe-area-inset-bottom));display:flex;gap:12px}body.mobile-flight.playing .touch-right button{min-width:120px;min-height:48px}body.mobile-flight.playing #land-button{min-width:150px}body.mobile-flight.playing .navigation{top:56px;max-width:200px}body.mobile-flight.playing .instruments{top:55px;right:12px}body.mobile-flight.playing .flight-message{top:auto;bottom:calc(var(--flight-dock) + env(safe-area-inset-bottom) + 8px);left:20%;right:20%;font-size:9px}body.mobile-flight.playing:not(.easy-flight) .touch-right{bottom:calc(25px + env(safe-area-inset-bottom))}body.mobile-flight.playing:not(.easy-flight) .touch-right button{min-width:90px}body.mobile-flight.playing:not(.easy-flight) .systems{bottom:calc(var(--flight-dock) + 5px);right:12px;width:145px}}
