:root{color-scheme:dark;--bg:#101522;--panel:#191f30;--line:#30384a;--text:#f3eedf;--muted:#a5aec2;--amber:#ffcc66;--teal:#62d9d3;--pilot:var(--amber);font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100dvh}body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(circle,#566177 1px,transparent 1px);background-size:96px 96px;opacity:.22}button,input,a{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default}button,input{border-radius:8px}button{border:1px solid var(--line);color:var(--text);background:var(--panel);min-height:46px;padding:12px 18px;font-weight:700}button:hover:not(:disabled){border-color:var(--amber);background:#252c3d}button:disabled{opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:5px}input{border:1px solid var(--line);background:var(--bg);color:var(--text);padding:13px 14px;min-width:0;width:100%}input::placeholder{color:#7f899e}[hidden]{display:none!important}h1,h2,p{margin:0}h1{letter-spacing:-.055em;line-height:1.02;font-weight:800}h2{font-size:23px;letter-spacing:-.03em}p{line-height:1.55}.shell{max-width:1200px;margin:auto;padding:0 40px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:94px}.brand{font-size:15px;letter-spacing:.075em;font-weight:800;white-space:nowrap}.brand-mark{color:var(--amber);font-size:30px;vertical-align:middle;margin-right:8px}.text-link{color:var(--teal);font-size:14px;font-weight:700}.text-link:hover{text-decoration:underline}.eyebrow{color:var(--muted);font:12px/1.5 'Courier New',monospace;text-transform:uppercase;letter-spacing:.13em}.accent{color:var(--amber)}.muted,.hint{color:var(--muted)}.hint{font-size:13px;line-height:1.6;margin-top:18px}.hero{position:relative;padding:46px 0 54px}.hero h1{font-size:clamp(56px,7.7vw,98px);margin:16px 0 25px}.hero-copy{font-size:18px;color:var(--muted);max-width:630px}.hero-art{position:absolute;right:55px;top:50px;width:260px;height:260px;display:grid;place-items:center;transform:rotate(-10deg)}.orbit-ring{position:absolute;width:240px;height:240px;border:1px solid #445164;border-radius:50%;transform:scaleX(1.15)}.orbit-ring::before{content:"";position:absolute;top:25px;right:20px;width:20px;height:20px;background:var(--teal);border-radius:50%}.pixel-alien{font:72px/.85 monospace;color:var(--amber);text-align:center;letter-spacing:-10px;transform:rotate(10deg);text-shadow:8px 8px 0 #785f3240}.orbit-caption{position:absolute;bottom:-10px;font:12px monospace;color:var(--muted);letter-spacing:.2em;transform:rotate(10deg)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading p{font-size:13px;color:var(--muted)}.room-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.room-choice{position:relative;display:block;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:30px 28px;transition:transform .18s,border-color .18s;overflow:hidden}.room-choice:hover,.room-choice:focus-visible{transform:translateY(-5px);border-color:var(--amber)}.room-id{font:13px 'Courier New',monospace;color:var(--muted)}.room-choice h2{font-size:27px;margin:24px 0 8px}.room-phase{font-size:14px;color:var(--teal)}.room-orbit{position:absolute;right:24px;top:17px;font-size:51px;color:#ffcc66;opacity:.7}.room-choice:nth-child(2) .room-orbit{color:var(--teal)}.room-choice:nth-child(3) .room-orbit{color:#a9a0ff}.room-meta{display:flex;gap:10px;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:35px}.room-enter{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:19px;margin-top:20px;font-size:14px;font-weight:700}.room-enter b{font-size:22px;color:var(--amber)}.how{display:flex;justify-content:space-between;gap:30px;padding:35px 0 44px;color:var(--muted);font-size:13px}.how b{color:var(--amber);font:12px monospace;margin-right:9px}footer{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}footer a{color:var(--teal)}.page-heading{padding:32px 0}.page-heading h1{font-size:54px;margin:10px 0 15px}#connection-status{color:var(--muted);font-size:13px}[data-state="reconnecting"],[data-state="replaced"]{color:var(--amber)!important}.error,.notice{background:#ff8e9812;border:1px solid #ff8e984a;color:#ffc3c9;border-radius:8px;padding:14px;font-size:14px;margin:0 0 20px}.notice{color:var(--amber);border-color:#ffcc664a;background:#ffcc660a}.lobby-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:70px;padding-bottom:50px}.lobby-grid h2{margin-bottom:20px}label{display:block;font-size:13px;color:var(--muted);margin:18px 0 8px}.name-input{margin-bottom:20px}.slots{display:grid;gap:9px}.slot-row{display:flex;align-items:center;gap:17px;text-align:left;width:100%;min-height:82px;border-radius:8px;background:var(--panel);padding:15px 18px;border:1px solid var(--line);color:var(--text);font-weight:400}.slot-row:disabled{opacity:1}.slot-row:disabled:not(.occupied){opacity:.5}.slot-row:not(:disabled):hover{border-color:var(--slot)}.slot-mark{display:grid;place-items:center;min-width:42px;width:42px;height:42px;background:color-mix(in srgb,var(--slot) 10%,transparent);color:var(--slot);font-size:24px}.slot-name{flex:1;font-size:15px;font-weight:700}.slot-name small{display:block;font-weight:400;color:var(--muted);font-size:11px;margin-top:5px}.slot-state{font-size:11px;color:var(--muted);max-width:100px}.occupied .slot-state{color:var(--slot)}.copy-row{display:flex;gap:8px}.copy-row input{font-size:12px}.copy-row button{font-size:12px;padding:10px 12px}.share-panel>p{font-size:14px;color:var(--muted)}.share-panel>.text-link{display:inline-block;margin-top:15px}.share-panel .hint{font-size:12px;margin-top:25px}.text-button{background:transparent;border-color:transparent;color:var(--teal);padding-left:0;font-size:13px}.resume-link{display:block;background:#62d9d310;border:1px solid #62d9d366;padding:15px;border-radius:8px;margin-bottom:25px;color:var(--teal)}.primary{background:var(--amber);border-color:var(--amber);color:#141924}.primary:hover:not(:disabled){background:#ffdc91;color:#141924}.secondary{background:var(--panel)}.tv-title{padding:50px 0}.tv-title h1{font-size:clamp(45px,5vw,75px);margin:18px 0}.tv-title>p:last-child{color:var(--muted);font-size:20px}.status-line{margin:30px 0}.tv-selector .room-choice{padding:40px 30px}.tv-selector .room-choice h2{font-size:34px}.tv-selector .room-choice:focus{border-color:var(--amber);box-shadow:0 0 0 5px #ffcc6630}.tv-selector footer{margin-top:50px}.controller-shell{max-width:680px;margin:auto;padding:0 24px 28px}.controller-shell header{min-height:70px}.controller-shell .brand{font-size:12px}.compact-status{font-size:10px!important;text-align:right;max-width:200px}.pilot-heading{display:flex;align-items:center;gap:18px;padding:22px 0}.pilot-symbol{font-size:48px;color:var(--pilot)}.pilot-heading h1{font-size:37px;margin:5px 0}.pilot-heading #pilot-name-display{font-size:13px;color:var(--muted)}.pilot-heading .text-button{margin-left:auto;color:var(--muted)}.pilot-heading .eyebrow{font-size:10px}.controller-info{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0}#controller-status{font-size:17px;font-weight:700;color:var(--pilot)}.pilot-stats{display:flex;justify-content:space-between;color:var(--muted);font:11px monospace;margin-top:12px}.preflight{padding:20px 0}.preflight>p{font-size:14px;color:var(--muted);margin-bottom:15px}.preflight-buttons{display:flex;gap:10px;margin-bottom:14px}.preflight-buttons>button{flex:1}.crew-status{display:flex;gap:13px;flex-wrap:wrap;font-size:10px;margin-top:16px}.controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px;touch-action:none;user-select:none;-webkit-user-select:none}.control{touch-action:none;-webkit-touch-callout:none;user-select:none}.direction{height:165px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;border-color:color-mix(in srgb,var(--pilot) 45%,var(--line));background:color-mix(in srgb,var(--pilot) 6%,var(--panel))}.direction>span{font-size:52px;color:var(--pilot)}.direction>small{color:var(--muted);font-size:12px}.ability{grid-column:1/-1;display:flex;gap:14px;align-items:center;justify-content:center;min-height:82px;border-color:var(--pilot)}.ability>span{font-size:32px;color:var(--pilot)}.ability b{font-size:18px}.ability small{font-weight:400;color:var(--muted);font:12px monospace;margin-left:14px}.control[aria-pressed="true"]{background:var(--pilot);color:var(--bg);transform:translateY(2px)}.control[aria-pressed="true"]>*{color:var(--bg)}.control:disabled{opacity:.28}.control-hint{text-align:center;color:var(--muted);font-size:11px;margin-top:22px}.round-actions{display:flex;gap:10px;justify-content:center;margin-top:18px}.screen-page{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;background:#0a0e18}.screen-header{min-height:72px;padding:0 32px;color:var(--muted);font:13px monospace}.screen-header .brand{font-family:Arial,sans-serif;color:var(--text)}.screen-header>span>b{color:var(--amber)}.screen-hud{display:flex;gap:32px;margin-left:auto}.screen-hud b{color:var(--text);font-size:25px;margin-left:8px}.screen-header button{font:12px Arial,sans-serif;min-height:36px;padding:9px 14px}.screen-main{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;justify-content:center;padding:0 28px}.game-viewport{position:relative;width:100%;max-width:min(1440px,calc((100dvh - 160px)*16/9));aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);background:#0b1120}canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.screen-overlay{position:absolute;inset:0;display:grid;align-items:center;padding:5% 6%;background:#0b1120ed}.screen-lobby{display:grid;grid-template-columns:1fr 260px;gap:40px;align-items:center}.screen-lobby h1{font-size:clamp(28px,4.7vw,68px);margin:15px 0}.screen-lobby p{color:var(--muted);font-size:clamp(12px,1.1vw,18px)}.screen-slots{display:flex;gap:13px;margin-top:25px;flex-wrap:wrap}.screen-slots .slot-row{display:grid;gap:6px;border:none;background:none;padding:0;min-height:auto;width:auto;text-align:center;max-width:110px}.screen-slots .slot-mark{margin:auto}.screen-slots .slot-name{font-size:11px;overflow:hidden;text-overflow:ellipsis;max-width:110px}.screen-slots .slot-name small{font-size:9px}.screen-slots .slot-state{font-size:9px}.qr-panel{text-align:center}.qr-panel img{border:14px solid #f3eedf;border-radius:8px;background:#f3eedf;width:220px;max-width:100%;height:auto}.qr-panel p{margin-top:14px}.qr-panel strong{display:block;font:12px monospace;overflow-wrap:anywhere;margin-top:9px;color:var(--teal)}.screen-message{text-align:center}.screen-message h1{font-size:clamp(48px,9vw,130px);color:var(--amber);margin:18px 0}.screen-message p:last-child{font-size:19px;color:var(--muted)}.screen-pilots{display:flex;justify-content:center;gap:30px;padding:15px 0;min-height:48px;width:100%;font:12px monospace}.screen-pilots>span{display:flex;gap:10px;align-items:center}.screen-footer{padding:10px 32px;border:0;font:11px monospace;min-height:36px}.reconnect-banner{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-size:24px;color:var(--amber);background:#101522e8;z-index:4}.screen-error{position:fixed;bottom:45px;left:20%;right:20%;z-index:5;text-align:center;margin:0}
@media(max-width:900px){.hero-art{right:0;top:90px;width:200px;height:200px}.orbit-ring{width:170px;height:170px}.pixel-alien{font-size:50px}.hero-copy{max-width:60%;font-size:16px}.room-choice{padding:24px 18px}.room-meta{flex-direction:column}.lobby-grid{gap:35px}.screen-lobby{grid-template-columns:1fr 180px;gap:20px}.qr-panel img{width:170px}.screen-header{padding:0 18px;gap:14px;min-height:55px}.screen-header .brand{font-size:11px}.screen-hud{gap:16px}.screen-hud b{font-size:19px}.screen-footer{padding:10px 18px;font-size:9px}.screen-pilots{gap:15px;font-size:10px}.screen-slots{gap:12px}.screen-lobby .slot-state{display:none}}
@media(max-width:640px){.shell{padding:0 22px}header{min-height:78px}.brand{font-size:12px}.brand-mark{font-size:22px}.text-link{font-size:12px}.hero{padding:28px 0 35px}.hero h1{font-size:56px}.hero-copy{max-width:100%;font-size:15px}.hero-art{display:none}.section-heading{display:block}.section-heading h2{font-size:21px}.section-heading p{margin-top:9px}.room-grid{grid-template-columns:1fr;gap:12px}.room-choice{padding:22px}.room-choice h2{margin:15px 0 7px;font-size:24px}.room-meta{flex-direction:row;margin-top:22px}.room-enter{padding-top:12px;margin-top:15px}.room-orbit{font-size:40px;right:22px;top:12px}.how{display:grid;gap:15px;padding:28px 0}.how span{font-size:12px}footer{font-size:11px}.lobby-grid{grid-template-columns:1fr;gap:30px}.share-panel{border-top:1px solid var(--line);padding-top:28px}.page-heading{padding:20px 0 28px}.page-heading h1{font-size:42px}.slot-row{padding:13px 12px;gap:12px}.slot-state{font-size:10px}.slot-name{font-size:14px}.copy-row input{font-size:11px}.tv-title{padding:30px 0}.tv-title h1{font-size:45px}.tv-title>p:last-child{font-size:16px}.tv-selector .room-choice{padding:25px}.tv-selector .room-choice h2{font-size:26px}.controller-shell{padding:0 18px 22px}.direction{height:145px}.pilot-heading{gap:13px;padding:17px 0}.pilot-heading h1{font-size:32px}.pilot-symbol{font-size:38px}.compact-status{max-width:140px}.screen-header>span{display:none}.screen-main{padding:0 8px}.screen-header{gap:10px;padding:0 12px}.screen-hud{gap:12px;font-size:9px}.screen-header button{font-size:9px;padding:8px}.screen-lobby{grid-template-columns:1fr 120px;gap:10px}.screen-lobby h1{font-size:28px;margin:8px 0}.screen-lobby p{font-size:9px}.screen-slots{margin-top:12px;gap:8px}.screen-slots .slot-mark{width:22px;height:22px;min-width:22px;font-size:15px}.screen-slots .slot-name{font-size:8px;max-width:45px}.screen-slots .slot-name small{font-size:7px}.qr-panel img{width:100px;border-width:5px}.qr-panel strong{font-size:8px}.qr-panel p{font-size:9px;margin-top:4px}.screen-footer span:last-child{display:none}.screen-message p:last-child{font-size:12px}.screen-pilots{gap:10px;font-size:8px}.screen-pilots>span{gap:4px}.reconnect-banner{font-size:15px}.screen-error{left:10px;right:10px}}
@media(max-height:650px) and (orientation:landscape){.controller-shell{max-width:900px}.controller-shell header{min-height:48px}.pilot-heading{padding:8px 0}.controls{grid-template-columns:1fr 1fr 1fr;margin-top:12px}.direction{height:130px}.ability{grid-column:auto;flex-direction:column;gap:6px}.ability small{margin:0}.controller-info{padding:8px 0}.control-hint{margin-top:10px}.preflight{padding:12px 0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}.room-choice:hover,.room-choice:focus-visible{transform:none}}
.game-picker{margin:0 0 28px}.game-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}.game-options button{text-align:left;padding:18px;min-height:92px}.game-options b{display:block;font-size:16px}.game-options small{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;margin-top:8px}.game-options [aria-pressed="true"]{border-color:var(--teal);background:#62d9d311}.game-options button:disabled{opacity:.72}.game-picker .hint{margin-top:9px;font-size:11px}.preflight .game-picker{margin-bottom:18px}.preflight .game-options button{padding:12px;min-height:75px}.room-game{display:block;color:var(--amber);font:12px monospace;margin-bottom:10px}.crew-controls{margin-top:20px}.turret-readout{display:flex;align-items:center;gap:14px;font-size:13px}.turret-readout p{font-size:11px;color:var(--muted);margin-top:5px}#turret-boosts{color:var(--pilot)}#turret-sector{width:92px;height:92px;flex:none;fill:var(--pilot)}#turret-sector .sector-ring{fill:none;stroke:var(--line);stroke-width:1}#turret-arc{fill:color-mix(in srgb,var(--pilot) 12%,transparent);stroke:var(--pilot);stroke-width:1.5}#turret-aim{stroke:var(--pilot);stroke-width:4;stroke-linecap:round}.crew-control-row{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:18px;margin-top:20px}.joystick{position:relative;width:min(100%,230px);aspect-ratio:1;border:2px solid var(--pilot);border-radius:50%;justify-self:center;background:radial-gradient(circle,#293347 0,#191f30 70%);overflow:hidden;--stick-x:0px;--stick-y:0px}.joystick-cross{position:absolute;inset:14px;display:grid;place-content:center;color:var(--muted);font-size:26px;line-height:1.6;opacity:.35}.joystick-knob{position:absolute;left:calc(50% - 26px);top:calc(50% - 26px);width:52px;height:52px;border:2px solid var(--pilot);border-radius:50%;background:color-mix(in srgb,var(--pilot) 28%,var(--panel));transform:translate(var(--stick-x),var(--stick-y));pointer-events:none}.joystick small{position:absolute;bottom:14px;left:0;right:0;text-align:center;font-size:11px;color:var(--pilot)}.joystick[aria-pressed="true"]{background:radial-gradient(circle,#293347 0,#191f30 70%);transform:none}.crew-shield{grid-column:auto;min-height:155px;flex-direction:column;gap:6px}.crew-shield b{font-size:14px}.crew-shield small{margin:4px 0 0}.screen-page[data-game="crew"] .screen-overlay[data-phase="intermission"]{background:#0b112080}.screen-page[data-game="crew"] .screen-overlay[data-phase="intermission"] h1{font-size:70px}.screen-page[data-game="crew"] .screen-pilots{gap:22px}.screen-page[data-game="crew"] .screen-pilots>span{flex-wrap:wrap}.screen-page[data-game="crew"] .screen-pilots>span>span{font-size:11px}.screen-header #screen-game-name{font-size:11px;color:var(--teal)}
@media(max-width:640px){.game-options{gap:8px}.game-options button{padding:13px}.game-options b{font-size:14px}.game-options small{font-size:11px}.crew-control-row{gap:14px}.joystick{min-width:0}.crew-shield{min-height:140px}.screen-header #screen-game-name{display:none}}
@media(max-height:650px) and (orientation:landscape){.crew-controls{display:grid;grid-template-columns:1fr 1.5fr;gap:18px}.crew-control-row{margin-top:0}.joystick{width:160px}.crew-shield{min-height:130px}.turret-readout{align-self:center}.preflight .game-options small{display:none}}
