.flight-return{position:fixed;bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));z-index:100;display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;background:#152238;color:#f0f3ff;border:1px solid #746c93;border-radius:8px;text-decoration:none;font:14px system-ui}.flight-full{min-height:44px;background:#292343;color:#f0f3ff;border:1px solid #746c93;border-radius:8px;padding:8px 14px;font:14px system-ui}.flight-return[hidden]{display:none}.flight-return:focus-visible,.flight-full:focus-visible{outline:3px solid #b7abff;outline-offset:2px}
/* Keep flight menu actions reachable without scrolling on short phones. */
.flight-return,.flight-full{box-sizing:border-box;line-height:1.2;touch-action:manipulation;max-width:calc(100vw - 20px)}
#start>.flight-full,#paused>.flight-full,#overlay>.flight-full{position:fixed;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));z-index:101}
@media(pointer:coarse){#wrap .iconbtn{width:44px;height:44px}#wrap .langbtn{min-height:44px}#wrap .screen{padding-bottom:calc(80px + env(safe-area-inset-bottom))}#wrap #start,#wrap #paused{padding-top:calc(70px + env(safe-area-inset-top))}#wrap .screen>button{flex-shrink:0}}

/* A consistent, high-contrast escape action, separate from game controls. */
.flight-return{box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 14px;background:#ffd487;color:#142c35;border:2px solid #ffd487;border-radius:12px;font:700 15px/1.2 system-ui,sans-serif;text-decoration:none;touch-action:manipulation;flex-shrink:0;max-width:100%;overflow-wrap:anywhere}
.flight-return::before{content:"";width:20px;height:20px;flex:0 0 20px;background:currentColor;clip-path:polygon(45% 12%,55% 22%,32% 45%,92% 45%,92% 55%,32% 55%,55% 78%,45% 88%,7% 50%)}
.flight-return:hover{background:#ffe2ac;border-color:#ffe2ac}
.flight-return:active{background:#f4bd60;border-color:#f4bd60}
.flight-return:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Android browser chrome can leave the layout viewport taller than the visible screen. */
:root{--flight-height:100vh;--flight-hidden-bottom:0px;--flight-safe-bottom:env(safe-area-inset-bottom,0px);padding-block:0}
@supports(height:100dvh){:root{--flight-height:100dvh}}
html,body{height:var(--flight-height);min-height:0;box-sizing:border-box}
body{position:relative}
#wrap,#game-container{height:100%;min-height:0}
#wrap .bomb,#bomb{bottom:calc(24px + var(--flight-safe-bottom))}
#wrap .combo{bottom:calc(24px + var(--flight-safe-bottom))}
.flight-return{bottom:calc(16px + var(--flight-safe-bottom) + var(--flight-hidden-bottom))}
#wrap .screen{padding-bottom:calc(88px + var(--flight-safe-bottom))}
#overlay{padding-bottom:calc(88px + var(--flight-safe-bottom));scroll-padding-bottom:88px}
