/* Individually generated game controls, with sharp live labels above the artwork. */
body.manual-flight .brand .brand-crown,body.manual-flight .brand b,body.manual-flight .brand small { display: none !important; }
body.manual-flight .brand { display: flex; align-items: center; padding: 0; gap: 0; }
body.manual-flight .brand-logo { width: 116px; height: 48px; object-fit: contain; display: block; }
body.manual-flight:not(.playing) .topbar { background: transparent; border: 0; }
body.manual-flight:not(.playing) .brand,body.manual-flight:not(.playing) .mission-top { visibility: hidden; }
body.manual-flight .top-actions #app-options,body.manual-flight.playing .top-actions #app-options,body.manual-flight.playing .top-actions #mobile-pause-top { min-width: 46px; width: 46px; height: 46px; min-height: 46px; padding: 0; border: 0; border-radius: 50%; box-shadow: 0 3px 8px #02091f55; background: transparent url('/assets/ui-v3/settings.webp') center/contain no-repeat; font-size: 0 !important; color: transparent; }
body.manual-flight.playing .top-actions #mobile-pause-top { background-image: url('/assets/ui-v3/pause.webp'); }
.game-menu .menu-identity { top: 8.5%; left: 24px; right: 24px; text-align: center; }
.game-menu .menu-logo { display: block; width: min(340px,100%); height: auto; max-height: 200px; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 7px 12px #00102c80); }
body #welcome.game-menu #landing-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; margin: -1px; }
.game-menu .menu-identity > span { font: 700 12px/1.4 'Titillium Web',Arial,sans-serif; letter-spacing: 3px; margin-top: 14px; color: #e6d9bb; text-shadow: 0 2px 5px #00102c; }
#welcome.game-menu #menu-help { font-size: 17px; letter-spacing: 1px; }
#welcome.game-menu #start { font-size: 25px; }
body.manual-flight.playing .touch-right { width: 176px; gap: 9px; bottom: max(22px,calc(16px + env(safe-area-inset-bottom))); }
body.manual-flight.playing .touch-right .pitch-actions,body.manual-flight.playing .touch-right .flight-tools { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; }
body.manual-flight.playing .touch-right .pitch-actions button,body.manual-flight.playing .touch-right .flight-tools button { height: 72px; min-height: 72px; padding: 43px 4px 8px; border: 0; border-radius: 0; background: transparent center/100% 100% no-repeat; box-shadow: none; font: 700 15px/1.1 'Titillium Web',Arial,sans-serif; letter-spacing: .25px; color: #ffe2a4; text-shadow: 0 2px 3px #010b25; display: block !important; }
body.manual-flight.playing .touch-right .pitch-actions [data-hold="KeyW"] { background-image: url('/assets/ui-v3/climb.webp'); }
body.manual-flight.playing .touch-right .pitch-actions [data-hold="KeyS"] { background-image: url('/assets/ui-v3/descend.webp'); }
body.manual-flight.playing .touch-right .flight-tools #ground-brake { background-image: url('/assets/ui-v3/brake.webp'); width: auto; }
body.manual-flight.playing .touch-right .flight-tools #touch-camera { background-image: url('/assets/ui-v3/camera.webp'); font-size: 15px; }
body.manual-flight.playing .touch-right #takeoff-button,body.manual-flight.playing .touch-right #land-button:not(:disabled) { min-height: 60px; height: 60px; border: 0; border-radius: 0; background: transparent url('/assets/ui-v3/thrust.webp') center/100% 100% no-repeat; padding: 8px 8px 8px 46px; font: 800 17px/1.15 'Titillium Web',Arial,sans-serif; letter-spacing: .3px; color: #132547; text-shadow: 0 1px #ffe8b6; }
body.manual-flight.playing .touch-right #land-button:not(:disabled) { background-image: url('/assets/ui-v3/land.webp'); font-size: 21px; }
body.manual-flight.playing .touch-right button:disabled { opacity: .43; filter: saturate(.5); }
body.manual-flight.playing .touch-right button:not(:disabled):active,body.manual-flight .top-actions button:active { filter: brightness(1.28); transform: translateY(2px); }
body.manual-flight.playing #joystick { bottom: calc(60px + env(safe-area-inset-bottom)); left: max(18px,env(safe-area-inset-left)); width: 126px; height: 126px; }
body.manual-flight.playing #joystick small { font-size: 12px; color: #f4dfb7; letter-spacing: .6px; }
body.manual-flight .topbar #journey-chip { font-size: 12px; margin-left: auto; margin-right: 8px; }
body.manual-flight.gate-question #quiz .answer { font-size: 19px; }
body.manual-flight #app-dialog .push-controls button { width: 100%; min-height: 54px; border: 0; border-radius: 0; background: transparent url('/assets/ui-v3/button-navy.webp') center/100% 185% no-repeat; color: #f6dfb2; font-weight: 700; }
body.manual-flight #app-dialog #close-app-dialog { border: 2px solid #d1ad66; background: radial-gradient(circle at 40% 20%,#24416c,#07172e); color: #f7d592; border-radius: 50%; font-size: 22px; }
@media(max-width:350px) and (orientation:portrait) {
 .game-menu .menu-identity { top: 64px; left: 24px; right: 24px; }
 .game-menu .menu-logo { max-height: 148px; }
 .game-menu .menu-identity > span { font-size: 10px; margin-top: 8px; }
 body.manual-flight.playing .touch-right { width: 164px; right: 12px; gap: 8px; }
 body.manual-flight.playing .touch-right .pitch-actions,body.manual-flight.playing .touch-right .flight-tools { gap: 8px; }
 body.manual-flight.playing .touch-right .pitch-actions button,body.manual-flight.playing .touch-right .flight-tools button { height: 68px; min-height: 68px; padding-top: 41px; font-size: 14px; }
 body.manual-flight.playing .touch-right #takeoff-button { font-size: 16px; padding-left: 43px; }
 body.manual-flight.playing #joystick { width: 110px; height: 110px; left: 14px; bottom: 64px; }
 body.manual-flight .brand-logo { width: 106px; }
 body.manual-flight .top-actions #app-options,body.manual-flight.playing .top-actions #app-options,body.manual-flight.playing .top-actions #mobile-pause-top { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
}
@media(orientation:landscape) and (max-height:600px) {
 .game-menu .menu-identity { top: 20%; left: 6%; right: auto; width: 36%; }
 .game-menu .menu-logo { max-height: 160px; }
 .game-menu .menu-identity > span { font-size: 10px; margin-top: 8px; }
 body.manual-flight.playing .touch-right { width: 248px; right: 14px; bottom: 14px; grid-template-columns: 1fr 1fr; gap: 7px; }
 body.manual-flight.playing .touch-right #takeoff-button,body.manual-flight.playing .touch-right #land-button:not(:disabled) { height: 48px; min-height: 48px; grid-column: 1 / -1 !important; background-size: 100% 100%; font-size: 17px; padding-left: 52px; }
 body.manual-flight.playing .touch-right .pitch-actions,body.manual-flight.playing .touch-right .flight-tools { gap: 6px; }
 body.manual-flight.playing .touch-right .pitch-actions button,body.manual-flight.playing .touch-right .flight-tools button { height: 64px; min-height: 64px; padding: 39px 3px 5px; font-size: 13px; }
 body.manual-flight.playing .touch-right .flight-tools #touch-camera { font-size: 13px; }
 body.manual-flight.playing #joystick { width: 106px; height: 106px; bottom: 36px; }
}
@media(prefers-reduced-motion:reduce) { body.manual-flight button { transition: none; } }

#app-dialog .graphics-settings {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.graphics-settings select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #61799e;
  border-radius: 8px;
  background: #122b4b;
  color: #f1f5fc;
  font: inherit;
}

#graphics-note { margin: 0; color: #bdcce2; font-size: 13px; }
body.performance-flight .navigation, body.performance-flight .instruments,
body.performance-flight #risk-hud, body.performance-flight .modal-backdrop,
body.performance-flight #joystick { backdrop-filter: none !important; }
