#pilotGuide{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:2px solid #78dfbc;border-radius:8px;background:#10232f;color:#e1f6ef;box-shadow:0 14px 70px #0009;overflow:auto;font:20px/1.25 VT323,monospace}
#pilotGuide::backdrop{background:#04101b9c}#pilotGuide[open]{display:flex;flex-direction:column;gap:12px}#pilotGuide header{display:flex;align-items:center;gap:12px;flex:none}#guidePortrait{width:62px;height:62px;object-fit:contain;image-rendering:pixelated}#guideSpeaker{color:#8ff3cb;font-size:24px}#guideCount{margin-left:auto;font-size:17px;color:#b4cdce}#guideBody{min-height:0;overflow:auto}#pilotGuide h2{font:30px/1 VT323,monospace;margin:0 0 12px}#pilotGuide p{margin:8px 0;font-size:20px}#pilotGuide #guideHint{color:#a9c2c9;font-size:17px}#pilotGuide footer{display:flex;flex-wrap:wrap;gap:8px;flex:none}#pilotGuide button{box-sizing:border-box;min-height:46px;flex:1 1 40%;padding:8px;font:21px VT323,monospace;border:1px solid #689f9b;background:#85ebc3;color:#082b26;border-radius:4px}#pilotGuide button.secondary{background:#1b3543;color:#def4ed}#pilotGuide #guideSkip{flex-basis:100%;background:transparent;border:0;color:#b6cecf}#pilotGuide button:focus-visible{outline:3px solid #ffe19b;outline-offset:2px}.guideTarget{outline:2px solid #a2f5d7!important;outline-offset:4px}#guideControls{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}#guideControls>span{flex:1;display:grid;text-align:center;background:#1b3945;padding:10px;border:1px solid #496c75;font-size:16px}#guideControls b{font-size:28px;color:#f4da98}#guideControls p{flex-basis:100%}#pilotGuideOpen{min-height:48px;width:100%;margin-bottom:12px}#pilotControlsHelp summary{min-height:44px;cursor:pointer}
@media(min-height:650px){#pilotGuide[data-step="1"],#pilotGuide[data-step="2"],#pilotGuide[data-step="3"]{margin-bottom:max(20px,env(safe-area-inset-bottom));margin-top:auto}}
@media(max-height:500px){#pilotGuide{padding:10px;gap:8px}#guidePortrait{width:42px;height:42px}#pilotGuide header{gap:8px}#pilotGuide h2{font-size:25px;margin-bottom:8px}#pilotGuide p{font-size:18px}#pilotGuide #guideSkip{flex-basis:auto}#guideControls{margin-top:8px}#guideControls>span{padding:5px}#guideControls b{font-size:21px}}
/* The room roster may scroll; the actions stay reachable below it. */
#panel[data-flow="lobby"] .hubScroll{display:flex;flex-direction:column;overflow:hidden}#panel[data-flow="lobby"] #hub-play{min-height:0;display:flex;flex-direction:column;flex:1}#panel[data-flow="lobby"] #lobby{min-height:0;display:flex;flex-direction:column;flex:1}#lobbyContent{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}#lobbyActions{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#0b202c;padding:8px 0 max(8px,env(safe-area-inset-bottom))}#lobbyActions #fillBotsNow{grid-column:1/-1;margin:0}#lobbyActions #ready,#lobbyActions #leaveLobby{position:static;margin:0;min-height:46px;width:100%;font-size:19px}#lobbyActions #fillBotsNow{min-height:46px}#panel[data-flow="lobby"] #status:empty{display:none}
#guideBody{padding:6px 2px;box-sizing:border-box}#pilotGuide h2{line-height:1.25}#guideTitle:focus{outline:0}
