:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#f5f7f0;--muted:#b8c2c4;--panel:#080d10b8;--line:#8ef5d261;--cyan:#8ff5d2;--amber:#f4c95d;--danger:#ef476f;--violet:#a89dff}*{box-sizing:border-box}html,body{min-height:100%;color:var(--ink);background:#05070a;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:hidden}button,input{font:inherit}button{min-width:44px;min-height:44px;color:var(--ink);cursor:pointer;letter-spacing:0;touch-action:none;-webkit-user-select:none;user-select:none;background:#071012d6;border:1px solid #8ff5d26b;border-radius:6px}button:hover,button:focus-visible{border-color:var(--cyan);outline:none;box-shadow:0 0 0 2px #8ff5d22e}input[type=range]{accent-color:var(--cyan);touch-action:none}.game-shell{isolation:isolate;--hud-scale:1;touch-action:none;background:#05070a;width:100vw;height:100dvh;min-height:100dvh;position:relative;overflow:hidden}.game-shell[data-screen=title] .diegetic-hud,.game-shell[data-screen=title] .crosshair,.game-shell[data-screen=title] .control-strip,.game-shell[data-screen=title] .touch-controls,.game-shell[data-screen=briefing] .diegetic-hud,.game-shell[data-screen=briefing] .crosshair,.game-shell[data-screen=briefing] .control-strip,.game-shell[data-screen=briefing] .touch-controls,.game-shell[data-screen=paused] .touch-controls,.game-shell[data-screen=victory] .touch-controls,.game-shell[data-screen=defeat] .touch-controls,.game-shell[data-screen=victory] .crosshair,.game-shell[data-screen=defeat] .crosshair{visibility:hidden}.game-canvas{position:absolute;inset:0}.game-canvas canvas{touch-action:none;width:100%;height:100%;display:block}.diegetic-hud{z-index:2;pointer-events:none;width:calc((100vw - 32px) / var(--hud-scale));transform:scale(var(--hud-scale));transform-origin:0 0;grid-template-columns:minmax(220px,1fr) minmax(260px,380px) minmax(210px,280px);gap:10px;display:grid;position:absolute;inset:16px 16px auto}.hud-block,.hud-grid,.vector-readout,.powerup-tray{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(135deg,#0a1114d1,#0f181d8f);border:1px solid #8ff5d247;box-shadow:inset 0 0 20px #8ff5d20d}.hud-block{padding:10px 12px}.hud-block span,.hud-grid span,.vector-readout span,.powerup-tray span,.eyebrow{color:var(--cyan);text-transform:uppercase;font-size:11px;font-weight:700}.hud-block strong{color:var(--ink);margin-top:5px;font-size:14px;line-height:1.25;display:block}.hud-grid{grid-template-columns:52px minmax(90px,1fr) 44px;align-items:center;gap:6px 8px;padding:9px 10px;display:grid}.hud-grid b{color:var(--ink);text-align:right;font-size:12px}.hud-grid meter{width:100%;height:9px}.vector-readout,.powerup-tray{gap:4px;padding:9px 10px;display:grid}.vector-readout span:nth-child(2),.powerup-tray span{color:var(--amber)}.powerup-tray{z-index:2;pointer-events:none;width:min(280px,100vw - 32px);transform:scale(var(--hud-scale));transform-origin:100% 0;position:absolute;top:132px;right:16px}.control-strip{z-index:3;pointer-events:auto;width:calc((100vw - 32px) / var(--hud-scale));transform:scale(var(--hud-scale));transform-origin:0 100%;touch-action:none;align-items:center;gap:8px;display:flex;position:absolute;bottom:14px;left:16px;right:16px}.control-strip button{min-width:86px;padding:0 12px}.control-strip label{min-height:44px;color:var(--muted);touch-action:none;background:#080d10ad;border:1px solid #8ff5d238;border-radius:6px;align-items:center;gap:8px;padding:0 10px;font-size:12px;display:flex}.options-menu,.options-grid{touch-action:none;display:contents}.options-summary,.options-header{display:none}.remap-menu{min-height:44px;color:var(--ink);touch-action:none;background:#080d10c7;border:1px solid #8ff5d238;border-radius:6px;position:relative}.remap-menu summary{cursor:pointer;place-items:center;min-width:74px;min-height:40px;list-style:none;display:grid}.remap-menu summary::-webkit-details-marker{display:none}.remap-grid{background:#05090cf5;border:1px solid #8ff5d257;border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(360px,100vw - 32px);padding:8px;display:grid;position:absolute;bottom:48px;right:0;box-shadow:0 18px 50px #00000073}.remap-grid button{justify-content:space-between;gap:8px;min-width:0;padding:0 10px;font-size:12px;display:flex}.remap-grid b{color:var(--amber)}.binding-active{border-color:var(--amber);color:var(--amber)}.crosshair{z-index:3;pointer-events:none;width:38px;height:38px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.crosshair:before,.crosshair:after,.crosshair span:before,.crosshair span:after{content:"";background:#f5f7f0db;position:absolute;box-shadow:0 0 10px #8ff5d28c}.crosshair:before,.crosshair:after{width:4px;height:12px;left:17px}.crosshair:before{top:0}.crosshair:after{bottom:0}.crosshair span:before,.crosshair span:after{width:12px;height:4px;top:17px}.crosshair span:before{left:0}.crosshair span:after{right:0}.crosshair.target:before,.crosshair.target:after,.crosshair.target span:before,.crosshair.target span:after{background:var(--danger);box-shadow:0 0 14px #ef476fbf}.crosshair.switch:before,.crosshair.switch:after,.crosshair.switch span:before,.crosshair.switch span:after{background:var(--cyan)}.crosshair.reactor:before,.crosshair.reactor:after,.crosshair.reactor span:before,.crosshair.reactor span:after{background:var(--amber);box-shadow:0 0 16px #f4c95dcc}.crosshair.heat,.crosshair.overheated{opacity:.86}.crosshair.heat:before,.crosshair.heat:after,.crosshair.heat span:before,.crosshair.heat span:after,.crosshair.overheated:before,.crosshair.overheated:after,.crosshair.overheated span:before,.crosshair.overheated span:after{background:#ff8f4f}.caption-stack{z-index:3;pointer-events:none;gap:6px;width:min(360px,100vw - 36px);display:grid;position:absolute;bottom:82px;right:18px}.caption{max-width:100%;color:var(--ink);background:#05090cc2;border:1px solid #f5f7f02e;border-radius:6px;justify-self:end;padding:6px 9px;font-size:12px;line-height:1.25}.caption.weapon{color:var(--amber);border-color:#f4c95d6b}.caption.enemy{color:#ff9aad;border-color:#ef476f6b}.caption.reactor{color:var(--violet);border-color:#a89dff75}.caption.pickup{color:#9ee6ff;border-color:#75d8ff75}.high-contrast .hud-block,.high-contrast .hud-grid,.high-contrast .vector-readout,.high-contrast .powerup-tray,.high-contrast .control-strip label,.high-contrast .remap-menu,.high-contrast .caption{color:#fff;background:#000000e0;border-color:#f5f7f0b8}.high-contrast button{color:#fff;background:#000;border-color:#fff}.touch-controls{z-index:3;pointer-events:none;touch-action:none;justify-content:space-between;gap:12px;display:none;position:absolute;inset:auto 12px 72px}.touch-pad,.touch-actions{pointer-events:auto;touch-action:none;gap:7px;display:grid}.touch-pad{grid-template-rows:repeat(2,48px);grid-template-columns:repeat(3,48px)}.touch-pad button:first-child{grid-column:2}.touch-pad button:nth-child(2){grid-area:2/1}.touch-pad button:nth-child(3){grid-area:2/2}.touch-pad button:nth-child(4){grid-area:2/3}.touch-actions{grid-template-columns:minmax(64px,82px);align-content:end}.touch-actions button{touch-action:none;-webkit-user-select:none;user-select:none;min-height:48px;padding:0 8px;font-size:12px}.touch-pad button{touch-action:none;-webkit-user-select:none;user-select:none;min-width:48px;min-height:48px}.touch-look-zone{color:#9ee6ff;text-align:center;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:#08141cb8;border:1px solid #75d8ff8f;border-radius:14px;place-content:center;align-self:end;min-width:64px;min-height:104px;display:grid}.touch-look-zone span{font-size:11px;font-weight:700}.touch-look-zone small{color:var(--muted);font-size:10px}.fire-action{background:#442c06e0;border-color:#f4c95db8}.screen-panel{z-index:4;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);touch-action:none;background:linear-gradient(#0a1216e6,#080a0de0),repeating-linear-gradient(90deg,#8ff5d20f 0 1px,#0000 1px 18px);border:1px solid #8ff5d25c;border-radius:8px;width:min(680px,100vw - 34px);max-height:min(78dvh,720px);padding:clamp(22px,4vw,38px);position:absolute;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 28px 80px #0000009e,inset 0 0 40px #8ff5d20a}.button-row,.instruction-grid,.options-header,.range-control,.remap-grid{touch-action:none}.title-panel,.briefing-panel{width:min(920px,100vw - 34px)}.title-key-art,.briefing-key-art{float:right;background:linear-gradient(#0000 58%,#04080bc7),url(/assets/gen3/briefing-key-art.jpg) 50%/cover no-repeat;border:1px solid #8ff5d261;border-radius:6px;width:min(420px,44%);min-height:230px;margin:0 0 18px 24px;box-shadow:inset 0 0 30px #04080b38}.briefing-key-art{min-height:190px}.screen-panel h1,.screen-panel h2{color:var(--ink);letter-spacing:0;margin:6px 0 12px;font-size:clamp(34px,6vw,72px);line-height:.95}.screen-panel h2{font-size:clamp(28px,4vw,48px)}.screen-panel p{color:#d7dee0;max-width:60ch;margin:0 0 16px;font-size:16px;line-height:1.5}.button-row{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}.button-row button{min-width:150px;padding:0 16px}.instruction-grid{background:#f4c95d0f;border:1px solid #f4c95d42;grid-template-columns:92px minmax(0,1fr);gap:7px 12px;margin-top:18px;padding:14px;display:grid}.instruction-grid span{color:var(--amber);font-weight:700}.instruction-grid b{color:var(--ink);font-weight:500}@media (pointer:coarse),(max-width:760px){body{overflow:hidden}.game-shell{min-height:100dvh}.diegetic-hud{inset:max(8px, env(safe-area-inset-top)) 8px auto;width:calc((100vw - 16px) / var(--hud-scale));grid-template-columns:1fr;gap:6px}.hud-grid{grid-template-columns:48px minmax(80px,1fr) 38px}.vector-readout{grid-template-columns:repeat(2,minmax(0,1fr))}.powerup-tray{grid-template-columns:repeat(2,minmax(0,1fr));width:auto;top:168px;left:8px;right:8px}.control-strip{left:max(8px, env(safe-area-inset-left));right:max(8px, env(safe-area-inset-right));bottom:max(6px, env(safe-area-inset-bottom));gap:6px;width:auto;padding-bottom:0;overflow:visible;transform:none}.control-strip button{min-width:76px;min-height:44px}.control-strip label{min-width:120px}.options-menu{display:block;position:relative}.options-summary{cursor:pointer;background:#071012f0;border:1px solid #8ff5d26b;border-radius:6px;place-items:center;min-width:82px;min-height:44px;display:grid}.options-menu:not(.is-open) .options-grid{display:none}.options-grid{z-index:8;width:min(420px, calc(100vw - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right))));max-height:calc(100dvh - max(28px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));overscroll-behavior:contain;touch-action:none;background:#05090cfa;border:1px solid #8ff5d280;border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px;display:grid;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}.options-header{grid-column:1/-1;justify-content:space-between;align-items:center;min-height:44px;display:flex}.options-header strong{color:var(--cyan)}.options-grid button,.options-grid label,.options-grid .remap-menu{width:100%;min-width:0}:is(.game-shell:has(.options-menu.is-open) .touch-controls,.game-shell:has(.options-menu.is-open) .caption-stack){display:none}.touch-controls{inset:auto max(8px, env(safe-area-inset-right)) calc(max(6px, env(safe-area-inset-bottom)) + 56px) max(8px, env(safe-area-inset-left));grid-template-columns:144px minmax(64px,1fr) minmax(64px,82px);align-items:end;gap:8px;display:grid}.caption-stack{right:8px;top:max(222px, calc(env(safe-area-inset-top) + 214px));max-height:116px;bottom:auto;overflow:hidden}.remap-grid{width:min(330px,100vw - 20px);left:0;right:auto}.remap-menu{display:none}.screen-panel{width:calc(100vw - 20px);max-height:calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));overscroll-behavior:contain;touch-action:none;padding:20px;top:50%}.title-key-art,.briefing-key-art{float:none;width:100%;min-height:150px;margin:0 0 14px}.screen-panel p{font-size:14px}}@media (max-width:460px){.diegetic-hud,.hud-block strong{font-size:12px}.touch-pad{grid-template-rows:repeat(2,48px);grid-template-columns:repeat(3,48px)}.touch-actions{grid-template-columns:minmax(64px,74px)}}@media (pointer:coarse) and (orientation:landscape),(max-height:460px) and (max-width:900px){.diegetic-hud{inset:max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) auto max(8px, env(safe-area-inset-left));grid-template-columns:minmax(170px,1fr) minmax(210px,1.2fr) minmax(150px,.9fr)}.hud-block,.hud-grid,.vector-readout{min-height:58px;padding:5px 7px}.powerup-tray,.caption-stack{display:none}.touch-controls{grid-template-columns:144px minmax(74px,1fr) minmax(76px,88px)}.touch-look-zone{min-height:104px}.screen-panel{width:min(680px, calc(100vw - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right))));max-height:calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));padding:12px 16px}.title-key-art,.briefing-key-art{display:none}.screen-panel h1,.screen-panel h2{margin:2px 0 7px;font-size:clamp(28px,7vw,42px)}.screen-panel p{margin-bottom:8px;font-size:13px;line-height:1.25}.button-row{margin-top:8px}.button-row button{min-height:48px}.instruction-grid{grid-template-columns:80px minmax(0,1fr);gap:3px 8px;margin-top:8px;padding:8px;font-size:12px}}
