*{box-sizing:border-box}html,body{margin:0;overflow:hidden;height:100%;font-family:system-ui,sans-serif;color:#fff;background:#7bc5e3;touch-action:manipulation;user-select:none}canvas#view{width:100%;height:100%;display:block}header{position:absolute;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;gap:8px}button,a{font:inherit;color:white;border:1px solid #ffffff66;background:#102e48dd;border-radius:12px;padding:10px 14px;text-decoration:none;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffe27c}header b{letter-spacing:3px}#hud{position:absolute;top:67px;left:12px;right:12px;display:flex;justify-content:space-between;font-size:13px;text-shadow:0 2px 3px #000;background:#163c5366;padding:8px;border-radius:10px}#warning{position:absolute;top:110px;width:100%;text-align:center;font-weight:800;color:#fff1a5;text-shadow:0 2px 3px #000}#aim{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}#ring{margin:auto;width:88px;height:88px;border:3px solid #fff9;border-radius:50%;display:grid;place-items:center;font-size:28px;text-shadow:0 1px 3px #000;box-shadow:0 0 0 5px #102e4822}#lock{margin-top:9px;font-size:13px;font-weight:bold;text-shadow:0 2px 4px #000;white-space:nowrap}progress{width:110px;height:8px;accent-color:#ffdd67}#aim.ready #ring{border-color:#ff304d;color:#ff304d;box-shadow:0 0 20px #ff304d88}#aim.ready progress{accent-color:#ff304d}#feed{position:absolute;top:145px;left:14px;font-size:12px;max-width:240px;text-shadow:0 2px 3px #000;pointer-events:none}#radar{position:absolute;right:12px;bottom:160px;width:105px;height:105px;border-radius:50%;background:#103e56bb;border:1px solid #fff8}#controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:25px;right:25px;display:flex;justify-content:space-between;align-items:center}#stick{width:124px;height:124px;background:#173d5866;border:2px solid #fff7;border-radius:50%;position:relative;touch-action:none}#knob{position:absolute;left:36px;top:36px;width:48px;height:48px;border-radius:50%;background:#d2faffaa;border:2px solid white;pointer-events:none}#stick small{position:absolute;bottom:10px;width:100%;text-align:center;font-size:10px;pointer-events:none}#shoot{width:116px;height:92px;font-weight:900;background:#df2549;border:3px solid #ffbbc8;box-shadow:0 5px 0 #771c38}#shoot:disabled{background:#304b64;border-color:#8b9daa;color:#d4dde6;box-shadow:none}#shoot small{font-size:11px;font-weight:500}#panel{position:absolute;inset:0;background:#072238a8;display:grid;place-items:center;padding:16px;overflow:auto;backdrop-filter:blur(5px)}#panel[hidden]{display:none}.card{width:min(440px,100%);padding:24px;background:linear-gradient(155deg,#173f59,#0b253d);border:1px solid #80d9e4;border-radius:24px;text-align:center;box-shadow:0 20px 90px #02172599}.eyebrow{color:#8be7dd;font-size:11px;letter-spacing:2px}h1{font-size:42px;margin:12px 0}p{line-height:1.55;font-size:14px}#play{background:#9cf1da;color:#0d3145;font-size:20px;font-weight:900;width:100%;padding:15px}.fine{font-size:10px;color:#adc7d8;margin-bottom:0}@media(max-height:520px){.card{padding:14px;width:580px}h1{font-size:26px;margin:3px}#instructions{display:flex;gap:14px}#instructions p{font-size:11px;flex:1}p{margin:8px 0}#play{padding:8px}#radar{bottom:22px;right:160px;width:86px;height:86px}#stick{width:110px;height:110px}#knob{left:29px;top:29px}#hud{top:55px}#warning{top:91px}#feed{top:115px}#controls{bottom:16px}#ring{width:70px;height:70px}}#ring{width:40px;height:40px;font-size:22px;border-width:2px}#controls{left:16px;right:16px;gap:12px}#weapons{display:grid;grid-template-columns:72px 82px;gap:10px;align-items:center}#shoot{width:82px;height:62px;font-size:20px}#gun{grid-column:1/3;height:72px;font-size:23px;font-weight:900;background:#d98d23;border:3px solid #ffe4a0;touch-action:none}#gun.reloading{background:#314c61}#flare{height:62px;font-size:27px;background:#367c91}#flare:disabled{background:#314c61;color:#b6c9d5}#radar{bottom:195px}#warning{font-size:25px}#instructions p{font-size:25px;margin:12px 0}.card{max-width:370px}#panel h1{font-size:54px}#description{font-size:23px}@media(max-height:520px){#weapons{grid-template-columns:62px 72px;gap:7px}#shoot{width:72px;height:48px}#flare{height:48px;font-size:23px}#gun{height:52px}#radar{right:178px;bottom:18px}#instructions{display:block}#instructions p{display:inline-block;margin:5px 10px;font-size:20px}.card{max-width:580px}#panel h1{font-size:30px}#description{font-size:18px}#ring{width:32px;height:32px}}
.icon{width:1.2em;height:1.2em;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}#warning .icon{margin:0 7px}#weapons button{white-space:nowrap}#flare{font-size:20px}#hud .icon{width:18px;height:18px}h1 .icon{width:70px;height:70px}

/* Words belong in menus, never on the active flight HUD. */
[hidden]{display:none!important}#panel{touch-action:pan-y;align-items:center}.card{max-width:540px;max-height:100%;overflow:auto;touch-action:pan-y}#panel h1{font-size:30px;margin:4px 0 12px}#description{font-size:15px}#instructions{display:block;text-align:left}#instructions p{display:block;font-size:13px;margin:10px 0;line-height:1.45}.menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}#play,#help-back{grid-column:1/-1}#all-games{display:block}#play{font-size:19px}#help{font-size:14px}@media(max-height:520px){#panel{padding:8px}.card{padding:14px}#panel h1{font-size:24px}#instructions p{font-size:12px;margin:7px 0}.menu-actions{gap:7px}#description{margin:6px 0}}

/* Keep touch menus above combat controls, and their Back button reachable. */
#panel{z-index:20;overscroll-behavior:contain}.card{max-height:calc(100dvh - 32px);overscroll-behavior:contain}.menu-actions{position:sticky;bottom:-1px;background:#102e48;padding:8px 0;z-index:1}.build{display:block;font-size:11px;color:#adc7d8;margin-top:12px}button .icon{pointer-events:none}#gun{touch-action:none;-webkit-touch-callout:none}#panel button,#panel a{min-height:44px;touch-action:manipulation}@media(max-height:520px){.card{max-height:calc(100dvh - 16px)}}

/* Safari needs prefixed selection suppression on descendants, not only body. */
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#controls,#controls *{touch-action:none}

/* No double-tap zoom in combat; menus retain native vertical scrolling. */
#view,#hud,#warning,#radar{touch-action:none}header,header *{touch-action:manipulation}
/* Anchor the actual reticle center, never the changing lock-label stack. */
#aim #lock{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:9px}
#aim #progress{position:absolute;top:calc(100% + 29px);left:50%;transform:translateX(-50%);margin:0}
