:root{font-family:Arial,sans-serif;color:#e2eaf1;background:#071222;color-scheme:dark;font-synthesis:none;--cyan:#79e8ec;--gold:#ffcb72;--line:#2b4355}*{box-sizing:border-box}body{margin:0}button,input,a{font:inherit}a{color:inherit}button{cursor:pointer;min-height:44px;padding:10px 15px;border:1px solid #496078;border-radius:4px;background:#10243a;color:#e2eaf1;font-weight:700}button:hover:not(:disabled){background:#1a344e;border-color:var(--cyan)}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}input{width:100%;min-height:44px;border:1px solid #3b5368;border-radius:3px;background:#091b2e;color:#f4f8fc;padding:11px 12px}label,.field-label{display:block;font-size:13px;color:#adbdcc;margin:15px 0 7px}h1,h2,p{margin-top:0}[hidden]{display:none!important}.coop-header{max-width:1600px;padding:24px 4vw 20px;margin:auto;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.wordmark{font-size:24px;font-weight:900;letter-spacing:2px;text-decoration:none;display:flex;align-items:center;gap:18px}.wordmark span{font-size:13px;letter-spacing:0;color:var(--cyan);font-weight:400;border-left:1px solid var(--line);padding-left:18px}.back-link{font-size:13px;text-underline-offset:4px;color:#b9c9d7}.coop-layout{max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(260px,310px) minmax(0,1fr);gap:36px;padding:32px 4vw 40px}.coop-console{min-width:0}.mission-kicker{color:var(--gold);font-size:13px;margin-bottom:13px}.coop-console h1{font-family:ui-monospace,Consolas,monospace;font-weight:700;font-size:clamp(38px,3.8vw,58px);line-height:1.02;letter-spacing:-1.5px;margin-bottom:19px}.mission-intro{font-size:15px;line-height:1.6;color:#b2c2d0;max-width:31ch}.connection-status{padding:13px 0;min-height:58px;line-height:1.45;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;color:var(--cyan)}.connection-status.error{color:#ff9b9f}.primary{width:100%;margin-top:13px;background:#8be9ec;color:#092334;border-color:#8be9ec}.primary:hover:not(:disabled){background:#b8ffff;color:#061727}.quiet{width:100%;background:transparent;margin-top:8px;font-weight:400}.join-row{display:grid;grid-template-columns:1fr auto;gap:7px}.join-row label{grid-column:1/-1;margin-bottom:0}#room-code{font-family:monospace;letter-spacing:3px;text-transform:uppercase}.room-identifier{display:flex;align-items:center;justify-content:space-between;gap:10px}.room-identifier strong{color:var(--gold);font-family:monospace;font-size:29px;letter-spacing:3px}.room-identifier button{font-size:12px;padding:8px}#invite-link{font-size:11px;color:#a5bcd0}.room-roster{list-style:none;padding:0;margin:15px 0 5px;font-size:13px;line-height:1.5}.room-roster li{padding:8px 0;border-bottom:1px solid var(--line)}.pilot-cyan{--pilot:var(--cyan);color:var(--cyan)}.pilot-gold{--pilot:var(--gold);color:var(--gold)}.coop-help{margin-top:23px;font-size:12px;line-height:1.65;color:#aabcca}.coop-help summary{cursor:pointer;color:#d4dfe8;min-height:32px}.coop-help p{margin:10px 0}.network-scope{font-size:11px;line-height:1.5;color:#889eaf;margin-top:18px}.arena-column{min-width:0;padding-top:4px}.mission-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:15px;line-height:1.35;font-size:13px}.mission-bar>span:first-child{color:var(--gold);font-weight:700}.mission-bar time{font-variant-numeric:tabular-nums;color:#93a9bb}.coop-arena{width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;border:1px solid #3b5368;background:#071222;touch-action:none}.coop-arena canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.arena-overlay{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#071222df;text-align:center;padding:30px;pointer-events:none}.arena-overlay>div{max-width:430px}.overlay-mark{color:var(--gold);font-size:12px;letter-spacing:1px}.arena-overlay h2{font-family:ui-monospace,Consolas,monospace;font-weight:700;font-size:clamp(24px,3vw,40px);line-height:1.1;margin-bottom:17px}.arena-overlay p:last-child{font-size:14px;color:#b7c9d8;line-height:1.6;margin-bottom:0}.pilot-strip{display:flex;gap:20px;margin-top:18px;min-height:55px}.pilot-card{display:grid;grid-template-columns:1fr auto;gap:6px 15px;flex:1;font-size:12px}.pilot-card strong{font-weight:400;max-width:180px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.pilot-card span{color:#a5b8c8;font-size:11px}.pilot-card progress{grid-column:1/-1;width:100%;height:5px;accent-color:var(--pilot);border:0}.pilot-card progress::-webkit-progress-bar{background:#20364c}.pilot-card progress::-webkit-progress-value{background:var(--pilot)}.boss-health{margin-top:15px;display:flex;align-items:center;gap:20px;font-size:12px;color:#ff9b9f}.boss-health progress{width:60%;accent-color:#ff6576}.arena-caption{font-size:12px;line-height:1.6;color:#829bae;margin-top:20px;max-width:78ch}.touch-controls{display:none;position:absolute;z-index:3;inset:0;pointer-events:none}.move-stick{position:absolute;width:108px;height:108px;border:1px solid #79e8ec88;border-radius:50%;left:18px;bottom:15px;background:#061c3099;display:grid;place-items:center;pointer-events:auto;touch-action:none}.move-stick span{width:40px;height:40px;border:1px solid var(--cyan);border-radius:50%;background:#79e8ec33}.touch-actions{position:absolute;right:15px;bottom:17px;display:flex;gap:8px;align-items:flex-end;pointer-events:auto}.touch-actions button{font-size:12px;padding:8px;min-width:58px;min-height:50px;background:#10243acc;touch-action:none}.touch-actions .fire-button{min-width:70px;min-height:70px;color:#071222;background:var(--cyan);border-color:var(--cyan);border-radius:50%;font-size:17px}@media(pointer:coarse){.coop-arena[data-playing=true] .touch-controls{display:block}}@media(max-width:1050px){.coop-layout{grid-template-columns:250px minmax(0,1fr);gap:23px;padding-left:24px;padding-right:24px}.coop-header{padding-left:24px;padding-right:24px}.mission-bar{font-size:11px;gap:10px}.pilot-strip{gap:12px}.pilot-card{grid-template-columns:1fr}.pilot-card progress{grid-column:auto}.coop-console h1{font-size:42px}}@media(max-width:760px){.coop-header{padding:17px 18px}.wordmark{font-size:18px;gap:10px}.wordmark span{padding-left:10px;font-size:11px}.back-link{font-size:11px;max-width:95px;text-align:right}.coop-layout{display:flex;flex-direction:column;padding:22px 16px;gap:25px}.coop-console h1{font-size:38px;line-height:1.06;margin-bottom:10px}.coop-console h1 br{display:none}.mission-kicker{margin-bottom:10px}.mission-intro{max-width:54ch;font-size:13px;margin-bottom:15px}.connection-status{min-height:45px}.join-row{grid-template-columns:1fr auto}.coop-help{margin-top:16px}.network-scope{margin-bottom:0}.arena-column{padding-top:0}.mission-bar{font-size:11px}.arena-overlay{padding:22px}.arena-overlay p:last-child{font-size:12px}.arena-overlay h2{font-size:27px}.overlay-mark{font-size:10px}.arena-caption{font-size:11px}.coop-arena[data-playing=true] .touch-controls{display:block}.move-stick{width:82px;height:82px;left:10px;bottom:9px}.move-stick span{width:32px;height:32px}.touch-actions{right:10px;bottom:9px;gap:6px}.touch-actions button{min-width:47px;min-height:44px;font-size:10px}.touch-actions .fire-button{min-width:57px;min-height:57px;font-size:15px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media(max-width:760px){.coop-playing .arena-column{order:-1}}@media(max-width:760px)and (orientation:portrait){.coop-arena[data-playing=true]{overflow:visible;margin-bottom:104px}.coop-arena[data-playing=true] .touch-controls{top:100%;bottom:auto;height:104px;border-bottom:1px solid var(--line);background:#0a1b2c}.touch-actions button{-webkit-tap-highlight-color:transparent}}select{width:100%;min-height:44px;border:1px solid #3b5368;border-radius:3px;background:#091b2e;color:#f4f8fc;font:inherit;padding:10px 8px;font-size:13px}select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}select:disabled{opacity:.7}.world-status{display:flex;justify-content:space-between;gap:10px;padding:0 0 12px;color:#a9c6cf;font-size:11px;line-height:1.4}.world-status .danger{color:#ff8a94;font-weight:700}.rival-compass{position:absolute;z-index:1;left:12px;top:12px;display:flex;align-items:center;gap:10px;padding:6px 9px;border:1px solid #ff7585;background:#170e22db;color:#ffc7cf;font-size:12px;pointer-events:none}.rival-compass>span:first-child{display:inline-block;color:#ff7585;font-size:22px;line-height:1}.pilot-weapon{grid-column:1/-1;color:#a9b8c8;font-size:11px}.touch-actions #touch-weapon{color:#e0baff}@media(max-width:760px){.rival-compass{font-size:10px;gap:6px;padding:4px 7px}.rival-compass>span:first-child{font-size:17px}.world-status{font-size:10px;flex-wrap:wrap}.touch-actions button{min-width:42px;padding:6px}}.coop-arena canvas{position:absolute;inset:0;width:100%!important;height:100%!important}.pilot-ai{--pilot:#c0a2ff;color:#d7c2ff}.arena-overlay button{pointer-events:auto;min-height:44px;margin-top:16px}body.coop-playing{overflow:hidden}body.coop-playing #coop-root{position:fixed;inset:0;background:#071222}body.coop-playing #coop-root .coop-header{display:none!important}body.coop-playing #coop-root .coop-layout{position:absolute;inset:0;display:block!important;padding:0!important;max-width:none}body.coop-playing #coop-root .coop-console,body.coop-playing #coop-root #room-panel{display:contents!important}body.coop-playing #coop-root .coop-console:before,body.coop-playing #coop-root .coop-console:after,body.coop-playing #coop-root .coop-console>:not(#room-panel),body.coop-playing #coop-root #room-panel>:not(#leave-room),body.coop-playing #coop-root .arena-caption{display:none!important}body.coop-playing #coop-root #leave-room{display:block!important;position:fixed;right:max(8px,env(safe-area-inset-right));top:56px;bottom:auto;width:86px!important;min-height:44px;margin:0!important;padding:5px!important;font-size:12px!important;z-index:8;background:#10243a!important}body.coop-playing #coop-root .arena-column{position:absolute;inset:0;display:block;padding:0!important}body.coop-playing #coop-root .coop-arena{position:absolute;inset:0;width:100%;height:100%!important;min-height:0;aspect-ratio:auto!important;margin:0!important;border:0!important;box-shadow:none!important;overflow:hidden!important}body.coop-playing #coop-root .mission-bar{position:absolute;top:max(8px,env(safe-area-inset-top));left:8px;right:104px;height:40px;margin:0!important;padding:5px 9px!important;display:grid;grid-template-columns:minmax(0,1fr) auto auto;z-index:5;pointer-events:none}body.coop-playing #coop-root #wave-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(14px,1.7vw,19px)!important}body.coop-playing #coop-root .world-status{position:absolute;left:8px;right:104px;top:56px;height:24px;padding:0!important;gap:6px;flex-wrap:nowrap;z-index:5;pointer-events:none}body.coop-playing #coop-root .world-status>span{padding:3px 6px!important;font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.coop-playing #coop-root .pilot-strip{position:absolute;left:8px;right:104px;top:88px;height:44px;min-height:0;margin:0!important;gap:8px;z-index:5;pointer-events:none}body.coop-playing #coop-root .pilot-card{min-height:0!important;padding:4px 8px!important;grid-template-columns:1fr auto;gap:1px 8px;background:#0b192bed}body.coop-playing #coop-root .pilot-card strong{font-size:12px!important}body.coop-playing #coop-root .pilot-card span{font-size:11px!important}body.coop-playing #coop-root .pilot-card progress{height:5px!important;grid-column:1/-1}body.coop-playing #coop-root .pilot-weapon{display:none}body.coop-playing #coop-root .coop-arena .touch-controls{inset:0!important;height:auto!important;border:0!important;background:none!important}body.coop-playing #coop-root .rival-compass{top:142px!important;left:12px}body.coop-playing #coop-root .boss-health:not([hidden]){position:absolute;top:142px;left:30%;width:40%;z-index:5;margin:0;padding:4px 6px;background:#071222}@media(max-width:600px){body.coop-playing #coop-root #mission-score{display:none}body.coop-playing #coop-root .mission-bar{grid-template-columns:minmax(0,1fr) auto}body.coop-playing #coop-root .pilot-card{grid-template-columns:minmax(0,1fr) auto;gap:0 5px}body.coop-playing #coop-root .pilot-card strong,body.coop-playing #coop-root .pilot-card span{font-size:10px!important}body.coop-playing #coop-root .touch-controls .move-stick{width:108px!important;height:108px!important;left:max(12px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom))}body.coop-playing #coop-root .touch-actions{right:max(12px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));gap:6px}}@media(max-height:560px)and (orientation:landscape){body.coop-playing #coop-root .mission-bar{top:5px;height:32px;padding:3px 8px!important}body.coop-playing #coop-root #wave-label{font-size:15px!important}body.coop-playing #coop-root #mission-clock{font-size:17px!important}body.coop-playing #coop-root .world-status{top:41px;height:22px}body.coop-playing #coop-root .world-status>span{padding:2px 6px!important;font-size:10px!important}body.coop-playing #coop-root #leave-room{top:56px}body.coop-playing #coop-root .pilot-strip{top:67px;height:34px}body.coop-playing #coop-root .pilot-card{padding:3px 7px!important;gap:0 8px}body.coop-playing #coop-root .pilot-card strong{font-size:11px!important}body.coop-playing #coop-root .pilot-card span{font-size:10px!important}body.coop-playing #coop-root .pilot-card progress{height:4px!important}body.coop-playing #coop-root :is(.rival-compass,.boss-health:not([hidden])){top:108px!important}body.coop-playing #coop-root .touch-controls .move-stick{width:84px!important;height:84px!important;left:10px;bottom:7px}body.coop-playing #coop-root .touch-actions{right:10px;bottom:7px;gap:6px}body.coop-playing #coop-root .touch-actions button{min-height:44px!important;min-width:48px!important}body.coop-playing #coop-root .touch-actions .fire-button{min-height:56px!important;min-width:60px!important}}
