.shooter-session{position:fixed;inset:0;z-index:1450;background:#080e18b8;display:grid;place-items:center;color:#edf2fc;font:14px Arial,sans-serif;padding:12px;box-sizing:border-box}
.shooter-session *{box-sizing:border-box}.shooter-session [hidden]{display:none!important}
.shooter-window{width:min(100%,1040px);height:min(100%,850px);display:flex;flex-direction:column;min-height:0;background:#111b2c;border:1px solid #6e8099;border-radius:14px;box-shadow:0 20px 80px #0008;overflow:hidden}
.shooter-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #304157;background:#fffaf4;color:#684e43}
.shooter-header h2{margin:0;font-size:21px}.shooter-header p{font-size:11px;margin:4px 0 0}.shooter-session button{font:inherit;cursor:pointer;border:1px solid #40536e;border-radius:7px;padding:10px 14px;background:#1b2b43;color:#edf2fc;min-height:42px}
.shooter-header button{background:#f6e8df;color:#684e43;border-color:#ddc9bd}.shooter-session button:disabled{opacity:.45;cursor:default}.shooter-session button:hover:not(:disabled){filter:brightness(1.15)}.shooter-session button:focus-visible,.shooter-session canvas:focus-visible,.shooter-help summary:focus-visible{outline:3px solid #ffe650;outline-offset:2px}
.shooter-session .shooter-primary{background:#bdf2d7;border-color:#bdf2d7;color:#103424;font-weight:bold}
.shooter-content{flex:1;min-height:0;position:relative;display:flex;flex-direction:column}.shooter-lobby,.shooter-results{overflow:auto;padding:clamp(16px,3vw,30px);text-align:center;min-height:0;flex:1}.shooter-lobby h3{font-size:28px;margin:8px 0}.shooter-intro{color:#aec5da;line-height:1.6}.shooter-ships{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.shooter-ships button{display:flex;flex-direction:column;gap:12px;text-align:left;min-height:165px;padding:16px}.shooter-ships button[aria-pressed=true]{border:2px solid var(--ship-color);background:#263c52}.shooter-ships strong{font-size:19px;color:var(--ship-color)}.shooter-ships small{color:#b6c8dc;line-height:1.5}.shooter-ships span{font-size:12px;margin-top:auto}
.shooter-play{flex:1;min-height:0;display:flex;background:#000}.shooter-play canvas{width:100%;height:100%;object-fit:contain;touch-action:none}
.shooter-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-top:1px solid #304157}.shooter-status{margin:0;font-size:12px;line-height:1.5;color:#b8cce1}.shooter-actions{display:flex;gap:8px;flex:none}.shooter-touch{flex:none;display:flex;justify-content:center;gap:8px;padding:8px;background:#132136}.shooter-touch button{touch-action:none;user-select:none}
.shooter-help{position:absolute;inset:10px;margin:auto;width:min(590px,calc(100% - 20px));max-height:100%;display:flex;flex-direction:column;border:1px solid #526b87;border-radius:10px;background:#152237;box-shadow:0 12px 60px #000c;overflow:hidden}.shooter-help h3{flex:none;margin:0;padding:14px 18px;border-bottom:1px solid #34475e}.shooter-help-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 18px;line-height:1.6}.shooter-help dl{display:grid;grid-template-columns:1fr 1.4fr;gap:12px 16px}.shooter-help dd{margin:0}.shooter-help dt{color:#ffe650}.shooter-help details{padding:12px 0}.shooter-help>button{flex:none;align-self:flex-end;margin:12px 18px}.shooter-results h3{font-size:30px;color:#ffe650}.shooter-results p{font-size:20px;line-height:1.7}.shooter-results button{margin:6px}
@media(min-width:900px) and (pointer:fine){.shooter-touch{display:none}}@media(max-width:650px){.shooter-session{padding:5px}.shooter-header{padding:8px 12px}.shooter-header h2{font-size:18px}.shooter-header p{font-size:10px}.shooter-ships{grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.shooter-ships button{min-height:130px;padding:12px}.shooter-lobby{padding:12px}.shooter-lobby h3{font-size:22px}.shooter-footer{flex-wrap:wrap;padding:7px 10px;gap:5px}.shooter-actions{margin-left:auto}.shooter-touch{gap:4px;padding:6px}.shooter-touch button{font-size:11px;padding:6px}.shooter-help dl{grid-template-columns:1fr;gap:4px}.shooter-help dd{margin-bottom:8px}}
.shooter-attract{flex:1;min-height:0;overflow:auto;text-align:center;padding:20px}.shooter-attract h3{font:700 clamp(24px,4vw,42px) monospace;letter-spacing:3px;color:#ffe650;margin:12px 0}.shooter-attract canvas{display:block;width:min(100%,800px);height:auto;max-height:35dvh;object-fit:contain;margin:16px auto;border-radius:10px}.shooter-attract .shooter-primary{min-width:220px}
.shooter-header-actions{display:flex;gap:8px}.shooter-rates{color:#c9dccb;font-size:13px;line-height:1.5;max-width:700px;margin:12px auto}.shooter-scores{z-index:2}.shooter-scores ol{list-style:none;padding:0}.shooter-scores li{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-bottom:1px solid #34475e}.shooter-scores li span{font-size:13px;color:#b8cce1}
@media(max-width:450px){.shooter-header-actions{flex-direction:column;gap:4px}.shooter-header-actions button{min-height:34px;padding:6px 10px;font-size:12px}}

@media(max-height:450px){.shooter-help h3{padding:8px 14px}.shooter-help>button{margin:6px 14px}.shooter-help dl{grid-template-columns:1fr 1.4fr;gap:6px 12px}.shooter-help dd{margin-bottom:0}.shooter-help{inset:5px;width:calc(100% - 10px)}}

/* Two thumbs: steering and speed on the stick, outer dash buttons, compact fire switch. */
.shooter-touch{display:grid;grid-template-columns:64px 104px 64px minmax(72px,1fr);align-items:center;gap:12px;padding:10px 16px;width:100%;margin:auto;max-width:560px;background:transparent}
.shooter-window{position:relative}.shooter-stick-group{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.shooter-session .shooter-joystick{position:relative;width:88px;height:88px;min-height:0;flex:none;padding:0;border-radius:50%;border:1px solid #6c879e;background:radial-gradient(circle,#28415a 0 28%,#172a40 30% 65%,#344e66 67% 69%,#102034 71%);touch-action:none;overflow:hidden}
.shooter-joystick:before,.shooter-joystick:after{content:'';position:absolute;inset:49% 10%;background:#6c879e55;pointer-events:none}.shooter-joystick:after{transform:rotate(90deg)}
.shooter-joystick-knob{position:absolute;z-index:1;left:30%;top:30%;width:40%;height:40%;border-radius:50%;background:linear-gradient(#cbf6eb,#75b8c6);border:2px solid #e1fff3;box-shadow:0 3px 10px #0007;pointer-events:none}
.shooter-joystick.is-active{border-color:#bdf2d7}.shooter-stick-hint{font-size:10px;white-space:nowrap;color:#aec5da}
.shooter-session .shooter-dash{min-height:52px;padding:8px 4px;font-size:11px;border-radius:12px;color:#b8e3ff;white-space:nowrap}
.shooter-session .shooter-fire-toggle{justify-self:end;width:72px;min-height:44px;max-width:none;flex:none;font-size:11px;padding:8px 4px;border-radius:22px;color:#c6d2dd;background:#18263a}
.shooter-session .shooter-fire-toggle.is-on{color:#103424;background:#bdf2d7;border-color:#d5ffe9;box-shadow:0 0 0 3px #bdf2d71a}
@media(min-width:900px) and (pointer:fine){.shooter-touch{display:none}}
@media(max-width:450px){.shooter-touch{grid-template-columns:54px 96px 54px minmax(64px,1fr);gap:8px;padding:8px}.shooter-session .shooter-fire-toggle{width:64px}}
@media(max-height:450px) and (min-width:550px){.shooter-touch{position:absolute;bottom:66px;left:8px;right:8px;width:auto;max-width:none;grid-template-columns:44px 64px 44px 1fr 64px;padding:0;gap:8px;pointer-events:none}.shooter-touch>*{pointer-events:auto}.shooter-fire-toggle{grid-column:5}.shooter-dash-right{grid-column:3}.shooter-session .shooter-joystick{width:60px;height:60px}.shooter-stick-hint{font-size:8px;white-space:normal;text-align:center}.shooter-session .shooter-dash{min-height:44px;font-size:10px}.shooter-session .shooter-fire-toggle{width:64px}}

/* During flight the arena owns the top edge; navigation belongs to menus/results. */
.shooter-header{padding:8px 12px}.shooter-header h2{font-size:17px}
.shooter-menu-actions{display:flex;gap:8px;margin-left:auto;flex:none}
.shooter-session[data-phase="playing"] .shooter-status:not([data-important="true"]),.shooter-session[data-phase="paused"] .shooter-status:not([data-important="true"]){display:none}
.shooter-session[data-phase="playing"] .shooter-footer,.shooter-session[data-phase="paused"] .shooter-footer{padding:3px 8px;justify-content:flex-end;gap:4px}
.shooter-session[data-phase="playing"] .shooter-actions button,.shooter-session[data-phase="paused"] .shooter-actions button{min-height:44px;padding:6px 12px;font-size:12px}
.shooter-session[data-phase="results"] .shooter-footer{display:none}
@media(max-width:650px){.shooter-session{padding:0}.shooter-window{border-radius:0;border:0;height:100%;width:100%}.shooter-footer{padding:4px 8px}.shooter-header{padding:6px 10px}.shooter-header h2{font-size:16px}}
@media(max-height:450px){.shooter-session{padding:0}.shooter-window{border-radius:0;border:0;height:100%;width:100%}.shooter-header{padding:4px 10px}.shooter-header h2{font-size:15px}.shooter-touch{bottom:56px}}

.shooter-session[data-phase="playing"] .shooter-play canvas,.shooter-session[data-phase="paused"] .shooter-play canvas{object-position:center top}

/* Flight has one floating menu button; no toolbar consumes arena height. */
.shooter-session[data-phase="playing"] .shooter-footer,.shooter-session[data-phase="paused"] .shooter-footer{display:none}
.shooter-play{position:relative}.shooter-floating-pause{position:absolute;z-index:4;top:4px;right:6px;width:44px;height:44px;padding:0!important;min-height:44px!important;font-size:23px!important;background:#142239df!important;border-color:#8097ad!important}
.shooter-hud{position:absolute;z-index:2;top:0;left:0;right:0;pointer-events:none;padding:3px 60px 3px 8px;background:#081221f5;color:#edf2fc;font-size:12px;line-height:14px;font-variant-numeric:tabular-nums}
.shooter-hud-main,.shooter-hud-secondary{display:flex;align-items:center;gap:8px;min-width:0;height:15px}.shooter-hud-secondary{margin-top:3px}
.shooter-hp-text,.shooter-wave-text{white-space:nowrap}.shooter-hp-track{width:56px;height:6px;background:#4c2028;flex:none;border-radius:4px;overflow:hidden}.shooter-hp-fill{display:block;height:100%;background:#50ff78}.shooter-hp-fill[data-low="true"]{background:#ff6464}
.shooter-score-text{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shooter-integrity{flex:1;height:6px;background:#481d2a;border-radius:4px;overflow:hidden;margin-right:8px}.shooter-integrity-fill{display:block;height:100%;background:#ff6464}
.shooter-dash-charges{display:flex;gap:5px;min-width:40px}.shooter-dash-charges span{color:#9ba9bf;min-width:10px;text-align:center;font-size:12px}.shooter-dash-charges span[data-ready="true"]{color:#84f5ba}
.shooter-flight-notice{position:absolute;z-index:4;top:50px;left:8px;right:8px;margin:0;padding:8px 12px;background:#172a40ee;border:1px solid #8097ad;border-radius:8px;font-size:12px}
.shooter-pause-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid #34475e;flex:none}.shooter-fullscreen-note{font-size:12px;color:#ffe650;margin:0 14px}.shooter-fullscreen-note:empty{display:none}.shooter-help-body>details>summary{font-weight:bold;cursor:pointer;padding:8px 0}.shooter-menu-actions{flex-wrap:wrap}
.shooter-session:fullscreen{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#000}.shooter-session:fullscreen .shooter-window{width:100%;height:100%;border:0;border-radius:0;box-shadow:none}
@media(max-width:400px){.shooter-hp-track{width:34px}.shooter-hud-main{gap:6px}.shooter-hud{font-size:11px}}
@media(max-height:450px) and (min-width:550px){.shooter-touch{bottom:8px}}

@media(orientation:portrait){.shooter-touch{height:124px;flex-shrink:0;margin:0 auto}.shooter-session[data-phase="playing"] .shooter-play canvas{object-position:center top}}

.shooter-rotation-note{margin:12px 18px 0;color:#c8f7df;line-height:1.5}

.shooter-music{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0}.shooter-music button{padding:7px 10px;min-height:36px;font-size:13px}.shooter-music button[aria-pressed="true"]{background:#bdf4d6;color:#142d26;border-color:#8de4b8}.shooter-music small{flex-basis:100%;text-align:center;color:#b8cce1;font-size:12px}
