@media(max-width:700px){.topbar{top:max(20px,env(safe-area-inset-top));left:22px;right:22px}.wordmark{font-size:9px;letter-spacing:2px}#best{font-size:9px;letter-spacing:1px}.welcome{left:7vw;bottom:15vh;width:220px}.welcome h1{font-size:52px;margin:14px 0 26px}.social-links{right:22px;bottom:max(22px,env(safe-area-inset-bottom));gap:20px;font-size:10px}.run-stats{left:20px;top:max(22px,env(safe-area-inset-top));gap:24px}.run-stats b{font-size:22px}.run-stats small{font-size:9px}.pause-button{right:16px;top:max(16px,env(safe-area-inset-top));width:40px;height:40px}.instrument{right:22px;bottom:26px;width:140px}.speed b{font-size:42px}.touch-visible .instrument{bottom:auto;top:76px;width:120px}.touch-visible .speed{margin-bottom:12px}.touch-visible #control-feedback{max-width:120px;font-size:9px}.steering-pad{left:18px;gap:10px;bottom:max(24px,env(safe-area-inset-bottom))}.steering-pad button{width:58px;height:58px}.flight-pad{right:18px;bottom:max(24px,env(safe-area-inset-bottom))}.pedals{gap:8px}#touch-fly{width:68px;height:68px}#touch-brake,#touch-accelerate{width:45px;height:45px;font-size:10px}.auxiliary-pad{gap:10px}.auxiliary-pad button{width:42px;height:42px}.modal{padding:14px}.modal-card{padding:24px;max-height:calc(100dvh - 28px)}.modal h2{font-size:25px}.guide-grid{grid-template-columns:1fr;gap:12px}.guide-grid p{margin-bottom:10px}.campaign-grid{grid-template-columns:1fr}.setting-row{gap:12px}.leaderboard-item{grid-template-columns:24px 1fr 65px 55px;font-size:11px}.leaderboard-heading{grid-template-columns:1fr 65px 55px}#photo-ui{right:14px;top:14px;width:min(290px,calc(100% - 28px))}}@media(max-height:520px){.welcome{bottom:13vh;width:210px}.welcome h1{font-size:45px;margin:10px 0 20px}.welcome .eyebrow{display:none}.start-button{min-height:44px}.menu-links{margin-top:12px}.topbar{top:18px}.social-links{bottom:16px}.run-stats{top:18px}.touch-visible .instrument{bottom:auto;top:22px;right:90px;width:145px}.touch-visible .speed{margin-bottom:8px}.touch-visible .speed b{font-size:34px}.touch-visible #control-feedback{display:none}.steering-pad,.flight-pad{bottom:max(16px,env(safe-area-inset-bottom))}.touch-controls button{height:58px;width:58px}.auxiliary-pad button{height:38px;width:38px}.auxiliary-pad{margin-bottom:8px}#touch-fly{height:66px;width:66px}.modal-card{max-height:calc(100dvh - 24px);padding:22px 26px}.guide-grid{grid-template-columns:1fr 1fr}.modal{padding:12px}.modal h2{font-size:24px}.modal p{margin:8px 0 14px}.pause-tools{margin-top:16px}.primary,.secondary{min-height:42px;padding:11px 16px}#photo-ui{top:12px;padding:18px}#photo-ui label{margin:14px 0}}@media(max-width:390px){.steering-pad{left:12px;gap:7px}.steering-pad button{width:52px;height:52px}.flight-pad{right:12px}.pedals{gap:5px}#touch-fly{width:60px;height:60px}#touch-accelerate,#touch-brake{width:40px;height:40px}.result-stats{gap:18px}.result-stats b{font-size:20px}}
