.bb-app-chrome{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right),4vw) 16px max(16px,env(safe-area-inset-left),4vw);box-sizing:border-box;color:#17395c;background:#fff;border-bottom:1px solid #d8dfe8;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;width:100%;font:15px Segoe UI,system-ui,sans-serif;display:grid}.bb-app-chrome .brand{min-height:44px;box-shadow:none;cursor:pointer;background:0 0;border:0;justify-content:flex-start;align-items:center;margin:0;padding:0;display:flex}.bb-app-chrome .brand img{width:190px;height:auto;display:block}.bb-app-chrome .main-nav{align-items:center;gap:4px;min-width:0;display:flex}.bb-app-chrome .main-nav button{box-sizing:border-box;min-height:44px;box-shadow:none;color:#697889;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;margin:0;padding:10px 16px;font:600 14px Segoe UI,system-ui,sans-serif;display:inline-flex}.bb-app-chrome .main-nav button:hover,.bb-app-chrome .main-nav .nav-active{color:#275b93;background:#edf2f7}.bb-app-chrome .main-nav button[aria-busy=true]{opacity:1;color:#275b93;background:#edf2f7}.bb-app-chrome .app-chrome-account{z-index:auto;justify-self:end;min-width:0;position:static}.bb-app-chrome .account-trigger{max-width:160px;min-height:44px;box-shadow:none;color:#17395c;cursor:pointer;background:#fff;border:1px solid #cbd2dc;border-radius:8px;align-items:center;gap:8px;margin:0;padding:8px 14px;font:600 14px Segoe UI,system-ui,sans-serif;display:inline-flex}.account-trigger svg{flex:none}.account-trigger-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.app-nav-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:12px;height:12px;animation:.8s linear infinite app-nav-spin}@keyframes app-nav-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.app-nav-spinner{animation:none}}@media (width<=700px){.bb-app-chrome{padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));grid-template-columns:minmax(0,1fr) auto;gap:10px 12px}.bb-app-chrome .brand img{width:170px;max-width:44vw}.bb-app-chrome .main-nav{grid-area:2/1/auto/-1;width:100%}.bb-app-chrome .main-nav button{flex:1;padding:10px 8px}.bb-app-chrome .app-chrome-account{grid-area:1/2}.bb-app-chrome .account-trigger{max-width:130px}}.game-focus .bb-app-chrome{display:contents}.game-focus .bb-app-chrome>.brand,.game-focus .bb-app-chrome>.main-nav,.input-controls{display:none}@media (width<=420px){.input-controls{padding:.7rem}.touch-main{gap:.5rem}.touch-dpad{grid-template-rows:repeat(3,44px);grid-template-columns:repeat(3,44px)}.input-controls .touch-key{min-width:44px;min-height:44px}.input-controls .touch-actions .touch-key{min-width:52px;min-height:52px}.touch-actions{gap:.5rem;padding:0}.input-mapping-grid,.diagnostic-flags{grid-template-columns:repeat(2,minmax(0,1fr))}}.duel-controls{justify-content:flex-end;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.duel-controls:empty{display:none}.duel-controls .error{margin:0}.duel-dialog{color:#243044;background:#f9fafb;border:1px solid #cbd2dc;border-radius:10px;width:min(360px,100vw - 32px);padding:1.25rem}.duel-dialog::backdrop{background:#0008}.duel-dialog h2{font-size:1.1rem}.game-focus .duel-controls{top:calc(env(safe-area-inset-top) + 4px);right:max(72px,calc(env(safe-area-inset-right) + 72px));z-index:5;margin:0;position:fixed}.game-focus .duel-controls>button{color:#edf1f6;background:#2d3540;border:0;width:44px;padding:.3rem}.game-focus .duel-controls>button span{display:none}.game-focus .duel-controls>.error{top:calc(env(safe-area-inset-top) + 56px);left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));width:auto;position:fixed}dialog.account-menu{--account-safe-top:env(safe-area-inset-top,0px);--account-safe-right:env(safe-area-inset-right,0px);--account-safe-bottom:env(safe-area-inset-bottom,0px);--account-safe-left:env(safe-area-inset-left,0px);box-sizing:border-box;color:#243044;background:#fff;border:1px solid #d8dfe8;border-radius:12px;width:300px;height:auto;margin:0;padding:10px;position:fixed;inset:auto;overflow:auto;box-shadow:0 12px 36px #18212d24}dialog.account-menu::backdrop{background:#0002}dialog.account-menu>header{align-items:center;gap:8px;margin:0 0 6px;padding-left:10px;display:flex}dialog.account-menu>header h2{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin:0;font-size:16px;font-weight:650;overflow:hidden}dialog.account-menu button.account-menu-close{width:44px;height:44px;color:inherit;background:0 0;border:0;flex:none;place-items:center;margin:0;padding:0;display:grid}dialog.account-menu button.account-menu-row{box-sizing:border-box;width:100%;min-height:44px;box-shadow:none;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;justify-content:flex-start;align-items:center;gap:12px;margin:0;padding:10px;font-size:14px;display:flex}dialog.account-menu .account-menu-row svg{flex:none}dialog.account-menu .account-menu-row .unread-count{margin-left:auto}dialog.account-menu button.account-menu-row:hover,dialog.account-menu button.account-menu-close:hover{color:#275b93;background:#edf2f7}dialog.account-menu .account-language{margin:6px 10px;font-size:13px}dialog.account-menu .account-language select{min-height:44px}dialog.account-menu>footer.account-menu-footer{color:#727b89;border-top:1px solid #d8dfe8;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 0;padding:4px 0 0 10px;font-size:12px;display:flex}.account-menu-footer>button{width:44px;height:44px;color:inherit;box-shadow:none;background:0 0;border:0;border-radius:7px;place-items:center;margin:0;padding:0;display:grid}.account-menu-footer>button:hover{color:#275b93;background:#edf2f7}dialog.account-settings-view{width:420px}.account-settings-view .account-language{justify-content:space-between;align-items:center;gap:12px;margin:12px 10px;display:flex}.account-settings-view select{min-height:44px;color:inherit;font:inherit;background:#fff;border:1px solid #cbd2dc;border-radius:7px;padding:6px 10px}.account-settings-view .account-language select{min-width:120px}.account-settings-view .input-mapping{margin:12px 10px}.account-settings-view .input-mapping summary{box-sizing:border-box;min-height:44px;padding:8px 0}.account-settings-view .input-mapping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-settings-view .input-mapping button{max-width:100%;min-height:44px}dialog.licenses-dialog{box-sizing:border-box;color:#243044;width:min(560px,100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);font:inherit;background:#fff;border:1px solid #d8dfe8;border-radius:12px;margin:auto;padding:0;overflow:hidden;box-shadow:0 12px 36px #18212d24}dialog.licenses-dialog[open]{flex-direction:column;display:flex}dialog.licenses-dialog::backdrop{background:#172c4059}.licenses-dialog>header{border-bottom:1px solid #d8dfe8;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px 8px 20px;display:flex}.licenses-dialog>header h2{margin:0;font-size:18px;font-weight:650}.licenses-dialog>header button{min-width:44px;min-height:44px;color:inherit;box-shadow:none;font:inherit;background:0 0;border:0;border-radius:7px;place-items:center;margin:0;padding:0;font-size:24px;display:grid}.licenses-content{overscroll-behavior:contain;overflow-wrap:anywhere;min-height:0;padding:4px 20px 20px;font-size:14px;line-height:1.55;overflow:auto}.licenses-content p{margin:12px 0}.licenses-content p:empty{display:none}.licenses-content ul,.licenses-content ol{margin:12px 0;padding-left:20px}.licenses-content li+li{margin-top:14px}.licenses-content a{color:#275b93;text-underline-offset:3px;text-decoration:underline}dialog.licenses-dialog .licenses-content a:focus-visible,dialog.licenses-dialog>header>button:focus-visible,dialog.licenses-dialog button.controller-focused{outline-offset:2px;outline:3px solid #dfab55}.licenses-content pre{white-space:pre-wrap}.install-dialog{color:#172c40;background:#fff;border:1px solid #d6dfe7;border-radius:16px;width:min(360px,100vw - 2rem);max-height:calc(100dvh - 2rem);padding:1.25rem;overflow:auto}.install-dialog::backdrop{background:#172c4059}.install-dialog h2{margin:0 0 .6rem;font-size:1.15rem}.install-dialog p{margin:0 0 1rem;line-height:1.5}.install-dialog .toolbar{flex-wrap:wrap;gap:.5rem;display:flex}.install-notice{right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:900;background:#fff;border:1px solid #d6dfe7;border-radius:14px;gap:.25rem;padding:.4rem;display:flex;position:fixed;box-shadow:0 6px 24px #172c401a}.install-notice button{background:0 0;border:0;min-height:44px}.game-focus .install-notice{display:none}body:has(.battle) .install-notice{display:none}body:has(dialog[open]) .install-notice{display:none}.avatar-picker{min-height:0;color:inherit;flex-direction:column;gap:12px;display:flex}.avatar-picker-content{min-height:0;overflow:auto}.avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.avatar-picker .avatar-grid button{color:#243044;min-width:0;font:inherit;background:#fff;border:1px solid #d8dfe8;border-radius:10px;flex-direction:column;align-items:center;gap:0;margin:0;padding:4px;font-size:12px;line-height:1.3;display:flex}.avatar-picker .avatar-grid button[aria-pressed=true]{background:#e7f0fa;border-color:#275b93;box-shadow:inset 0 0 0 1px #275b93}.avatar-grid img,.avatar-preview img,.profile-avatar{object-fit:contain;image-rendering:pixelated}.avatar-grid img{width:100%;max-width:64px;height:64px}.avatar-picker .avatar-grid button:focus-visible,.avatar-picker button:focus-visible{outline-offset:2px;outline:3px solid #275b93}.avatar-preview{justify-content:center;align-items:center;gap:16px;padding:8px 0;display:flex}.avatar-preview>div{gap:8px;display:grid}.avatar-preview button{min-height:44px;padding:4px 8px;font-size:12px}.avatar-actions{border-top:1px solid #d8dfe8;flex-shrink:0;justify-content:space-between;gap:12px;padding-top:8px;display:flex}.avatar-actions button{min-height:44px}.profile-avatar{width:40px;height:40px}.account-avatar{justify-content:flex-start;align-items:center;gap:12px;width:100%;margin-bottom:8px;display:flex}.social-dialog.avatar-edit{height:min(540px,100dvh);max-height:100dvh;inset:0 0 auto auto}.social-dialog.avatar-edit>.avatar-picker{flex:1}.social-dialog.avatar-edit>header{flex-shrink:0;margin-bottom:12px}.social-dock{z-index:5;position:absolute;top:16px;right:clamp(1rem,4vw,3rem)}.social-toggle{max-width:160px;font-size:.85rem}.social-user-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.unread-count{color:#fff;background:#275b93;border-radius:20px;padding:0 .4rem;font-size:.7rem}.social-dialog{width:min(380px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:max(16px,env(safe-area-inset-top)) 18px max(16px,env(safe-area-inset-bottom));color:#243044;background:#f9fafb;border:0;border-left:1px solid #d8dfe8;margin:0;position:fixed;inset:0 0 0 auto;overflow:auto}.social-dialog[open]{flex-direction:column;display:flex}.social-dialog::backdrop{background:#0008}.social-dialog>header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.social-dialog h2{margin:0;font-size:1.2rem}.social-dialog>header button{background:0 0;border:0;padding:.1rem .7rem;font-size:1.6rem}.social-dialog>form:not(.add-friend){gap:1rem;display:grid}.social-dialog .text-button{background:0 0;border:0;font-size:.85rem;font-weight:400}.add-friend,.conversation form{gap:.5rem;display:flex}.add-friend input,.conversation input{flex:1;min-width:0}.friend-list{margin:1rem 0;padding:0;list-style:none}.friend-list li{align-items:center;gap:.5rem;display:flex}.friend-list li>button:first-child{background:0 0;border:0;flex:1;justify-content:flex-start;font-weight:500}.friend-list li>button.selected{background:#e7edf5}.friend-list small{font-size:.75rem}.friend-list .presence{flex:0 0 8px}.conversation{border-top:1px solid #d8dfe8;padding-top:1rem}.conversation h3{font-size:.95rem}.chat-messages{flex-direction:column;gap:.5rem;height:min(40dvh,360px);margin-bottom:.75rem;display:flex;overflow:auto}.chat-messages p{white-space:pre-wrap;overflow-wrap:anywhere;background:#e9edf2;border-radius:8px;align-self:flex-start;max-width:90%;margin:0;padding:.5rem .75rem;font-size:.9rem}.chat-messages .own-message{background:#d9e8f8;align-self:flex-end}.social-dialog footer{color:#727b89;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;margin-top:auto;padding-top:1.5rem;font-size:.8rem;display:flex}.social-version{flex-basis:100%}.social-dialog .error{margin-top:1rem}.game-focus .social-toggle{top:calc(env(safe-area-inset-top) + 4px);right:max(16px,env(safe-area-inset-right));z-index:5;color:#edf1f6;background:#2d3540;border:0;position:fixed}.game-focus .social-user-name{display:none}@media (width<=700px){.social-dock{top:12px;right:16px}.social-toggle{max-width:130px}}.account-social{justify-content:space-between;width:100%}.social-dialog input,.social-dialog select,.social-dialog button{box-sizing:border-box;min-height:44px;font:inherit}.social-dialog input,.social-dialog select{color:inherit;background:#fff;border:1px solid #cbd2dc;border-radius:8px;padding:8px 12px}.social-dialog .presence{background:#9daebc;border-radius:50%;width:8px;height:8px;margin-right:.5rem;display:inline-block}.social-dialog .presence.online{background:#63a88e}.account-language{justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0 .5rem;font-size:.85rem;display:flex}.account-language select{width:auto;min-width:130px}.social-dialog{box-sizing:border-box}.social-tabs{gap:.5rem;margin-bottom:1rem;display:flex}.social-tabs button{flex:1}.social-tabs [aria-pressed=true]{background:#d9e8f8}.invitation-inbox form,.invitation-inbox label{gap:.5rem;display:grid}.invitation-inbox form{gap:.75rem}.invitation-inbox select{width:100%;min-width:0}.invitation-list{margin:1rem 0;padding:0;list-style:none}.invitation-list li{border-top:1px solid #d8dfe8;gap:.4rem;padding:1rem 0;display:grid}.invitation-list p{margin:0}.invitation-list small{color:#626f80}.invitation-actions{flex-wrap:wrap;gap:.5rem;margin-top:.3rem;display:flex}.invitation-actions a{align-items:center;min-height:44px;display:inline-flex}.account-inbox{justify-content:space-between;width:100%}.library-saves-dialog{border:1px solid var(--line);width:min(620px,100vw - 24px);max-height:calc(100dvh - 24px);color:var(--navy);background:var(--paper,#fff);border-radius:14px;padding:0;overflow:hidden}.library-saves-dialog::backdrop{background:#17233475}.library-saves-dialog>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.25rem;display:flex}.library-saves-dialog h2{margin:0;font-size:1.2rem}.library-saves-dialog>header button{min-width:44px}.library-saves-content{overscroll-behavior:contain;max-height:calc(100dvh - 120px);padding:1.25rem;overflow:auto}.library-save-game+section{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1.25rem}.library-save-game h3{overflow-wrap:anywhere;margin:0;font-size:1.1rem}.library-save-game>small{margin-top:.3rem;display:block}.library-save-room h4{overflow-wrap:anywhere;margin:1.15rem 0 .5rem;font-size:.95rem}.library-save-room h4 small{color:var(--muted);font-weight:400}.library-save-room ul{margin:0;padding:0;list-style:none}.library-save-room li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem 0;display:flex}.library-save-room li>div{min-width:0}.library-save-room time{font-size:.9rem}.library-save-room li small{color:var(--muted);margin-top:.15rem;font-size:.8rem;display:block}.library-save-room li button{flex-shrink:0;font-size:.8rem}.game-list .game-actions{flex-wrap:wrap}.library-game-saves{place-items:center;min-width:44px;padding:.5rem;display:grid}.library-game-saves svg{width:20px;height:20px}@media (width<=420px){.library-saves-content{padding:1rem}.library-save-room li{gap:.5rem}.library-save-room li button{padding:.5rem}.library-save-room time{font-size:.82rem}}.update-dialog{color:#172c40;background:#fff;border:1px solid #c4ced9;border-radius:12px;width:min(380px,100vw - 2rem);max-height:calc(100dvh - 2rem);padding:1.25rem;overflow:auto}.update-dialog::backdrop{background:#0006}.update-dialog h2{margin:0 0 1rem;font-size:1.1rem}.update-dialog .toolbar{flex-wrap:wrap;gap:.5rem;display:flex}.update-available{right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:1000;font-size:.85rem;position:fixed}.saved-room-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem;padding:0;list-style:none;display:grid}.saved-room-list li{min-width:0;display:flex}.saved-room-list li>button:first-child{text-align:left;flex:1;justify-content:flex-start;min-width:0;margin:0}.saved-room-list small{font-weight:400;display:block}.saved-room-list li>button:last-child:not(:first-child){margin:0 0 0 .3rem}.room-settings{border:1px solid var(--line);width:min(430px,100vw - 2rem);max-height:calc(100dvh - 2rem);color:var(--navy);border-radius:12px;padding:1.25rem;overflow:auto}.room-settings::backdrop{background:#00000059}.room-settings form{align-items:end;gap:.5rem;margin-bottom:1rem;display:flex}.room-settings form label{flex:1;min-width:0}.room-settings details{margin-bottom:1rem}.room-settings details>label{margin:.75rem 0}.room-settings .section-heading h2{margin:0}.room-settings .danger{color:#a22020;border-color:#d9a4a4}.room-delete-confirm h3{overflow-wrap:anywhere}.room-creation{border:1px solid var(--line);width:min(430px,100vw - 2rem);max-height:calc(100dvh - 2rem);color:var(--navy);border-radius:12px;padding:1.25rem;overflow:auto}.room-creation::backdrop{background:#0006}.room-creation form{gap:1rem;display:grid}.room-creation .section-heading{align-items:center;margin-bottom:1rem}.room-creation h2{margin:0}.input-controls{display:none}:is([data-controller-input] .controller-focused,[data-controller-input] .file-button:has(.controller-focused)){outline-offset:3px;outline:3px solid #dfa65c}[data-controller-input] [data-controller-editing]{outline-color:#3b91ce}.touch-shoulders,.touch-main,.touch-menu{justify-content:space-between;align-items:center;gap:1rem;display:flex}.touch-shoulders{margin-bottom:.8rem}.touch-shoulders:has(.touch-speed){grid-template-columns:minmax(44px,1fr) auto minmax(44px,1fr);gap:.5rem;display:grid}.touch-shoulders:has(.touch-speed) .touch-key{width:100%;min-width:0}.touch-speed{--speed-active:#285e7b;--speed-border:#9eafbd;isolation:isolate;border:0;grid-template-columns:repeat(3,44px);display:grid;position:relative;overflow:hidden}.touch-speed:before{content:"";z-index:-1;border:1px solid var(--speed-border);border-radius:18px;position:absolute;inset:8px 5px}.touch-speed button{white-space:nowrap;touch-action:manipulation;background:0 0;border:0;border-radius:0;min-width:0;min-height:44px;padding:0;font-size:.72rem}.touch-speed button span{width:100%;padding:2px 4px;line-height:24px}.touch-speed button:first-child span{border-radius:18px 0 0 18px;margin-left:5px}.touch-speed button:last-child span{border-radius:0 18px 18px 0;margin-right:5px}.touch-speed button[aria-pressed=true] span{background:var(--speed-active);color:#fff}.touch-speed button:focus-visible{outline-offset:-3px}.touch-speed button:disabled{opacity:.7}.touch-main{min-height:178px}.input-controls .touch-key{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;color:#173b54;min-width:52px;min-height:52px;font:inherit;background:#fff;border:1px solid #6c8799;border-radius:.5rem;padding:.65rem;font-size:1.1rem;font-weight:700;box-shadow:0 3px #c2d1da}.input-controls .touch-key[aria-pressed=true]{color:#fff;box-shadow:none;background:#246283;transform:translateY(2px)}.input-controls .touch-key:focus-visible{outline-offset:3px;outline:3px solid #3898bc}.input-controls .touch-key:disabled{opacity:.45}.touch-shoulders .touch-key{min-width:80px;min-height:44px}.touch-dpad{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;grid-template-rows:repeat(3,52px);grid-template-columns:repeat(3,52px);gap:4px;display:grid}.touch-up{grid-area:1/2}.touch-left{grid-area:2/1}.touch-right{grid-area:2/3}.touch-down{grid-area:3/2}.touch-actions{align-items:center;gap:.8rem;padding:.4rem;display:flex}.input-controls .touch-actions .touch-key{color:#fff;background:#285e7b;border-radius:50%;min-width:62px;min-height:62px}.touch-actions .touch-a{margin-bottom:2rem}.touch-actions .touch-b{margin-top:2rem}.touch-menu{justify-content:center;margin:.7rem 0 1rem}.input-controls .touch-menu .touch-key{min-width:82px;min-height:44px;font-size:.85rem}.input-keyboard-help{font-size:.8rem;line-height:1.5}.input-mapping{border-top:1px solid #c5d2d9;padding-top:1rem}.input-mapping summary{cursor:pointer}.input-mapping-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1rem 0;display:grid}.input-mapping-grid label{gap:.4rem;display:grid}.input-mapping-grid select{width:100%;min-height:44px;padding:.4rem}.input-checkbox{align-items:flex-start;gap:.6rem;line-height:1.5;display:flex}.input-checkbox input{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin-top:.2rem}.diagnostic-flags{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0;display:grid}.diagnostic-flags div{border-bottom:1px solid #cad6dd;padding-bottom:.7rem}.diagnostic-flags dt{color:#536e80;font-size:.8rem}.diagnostic-flags dd{margin:.3rem 0 0;font-weight:600}.diagnostic-pad{border-top:1px solid #cad6dd;margin:1.3rem 0;padding:1rem 0}.diagnostic-id{overflow-wrap:anywhere}.diagnostic-buttons{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:.4rem;display:flex}.diagnostic-buttons span{background:#e7eef1;border:1px solid #c5d2d9;border-radius:.3rem;padding:.4rem;font-size:.82rem}.diagnostic-buttons span.is-pressed{color:#fff;background:#246283}.diagnostic-axes{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem;display:grid}.diagnostic-axes label{font-variant-numeric:tabular-nums;flex-direction:column;gap:.4rem;display:flex}.diagnostic-axes meter{width:100%}.diagnostic-checks{flex-wrap:wrap;gap:1.5rem;margin:1.5rem 0;display:flex}.diagnostic-checks>div{flex:1;min-width:220px}.diagnostic-checks p{font-size:.85rem}.input-diagnostics details{margin-top:1rem}.input-diagnostics li{margin:.6rem 0;line-height:1.5}@media (width<=420px){.input-controls{padding:.7rem}.touch-main{gap:.5rem}.touch-dpad{grid-template-rows:repeat(3,44px);grid-template-columns:repeat(3,44px)}.input-controls .touch-key{min-width:44px;min-height:44px}.input-controls .touch-actions .touch-key{min-width:52px;min-height:52px}.touch-actions{gap:.5rem;padding:0}.input-mapping-grid,.diagnostic-flags{grid-template-columns:repeat(2,minmax(0,1fr))}}:root{color:#243044;font-synthesis:none;--blue:#275b93;--navy:#243044;--paper:#fff;--muted:#727b89;--line:#e0e4e9;--orange:#d99b54;background:#f5f6f8;font-family:Segoe UI,system-ui,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.file-button{color:#33445b;cursor:pointer;background:#fff;border:1px solid #cbd2dc;border-radius:7px;justify-content:center;align-items:center;gap:.5rem;min-height:44px;padding:.55rem .9rem;font-weight:600;text-decoration:none;display:inline-flex}button:hover,.file-button:hover{background:#eef2f6}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}button.primary:hover{background:#204e80}a{color:var(--blue);text-underline-offset:3px}input,select{color:#243044;background:#fff;border:1px solid #cbd2dc;border-radius:7px;max-width:100%;min-height:44px;padding:.55rem .7rem}label{gap:.35rem;font-size:.9rem;display:grid}label input{width:100%}input[type=checkbox]{width:17px;min-height:17px}:focus-visible{outline-offset:3px;outline:3px solid #dfa65c}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.5px;font-size:1.8rem;line-height:1.2}h2{letter-spacing:-.2px;font-size:1.25rem}h3{margin-bottom:.4rem;font-size:1.05rem}p{max-width:75ch}small,.muted{color:var(--muted)}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{min-height:100vh}.account-name{width:130px;margin-left:auto}.account-name input{min-height:38px;font-size:.85rem}.license-link{color:var(--muted);font-size:.8rem}main{width:100%;min-width:0;max-width:1160px;margin:auto;padding:2.5rem 1.5rem}.library-heading{justify-content:flex-end;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.library-heading h1{margin:0}.join-menu{position:relative}.join-menu>summary{background:#fff;border:1px solid #cbd2dc;border-radius:7px;min-height:44px;padding:.55rem .9rem;font-size:.9rem;list-style:none}.join-menu>summary::-webkit-details-marker{display:none}.join-menu[open]>summary{margin-bottom:0}.join-menu form{border:1px solid var(--line);z-index:2;background:#fff;border-radius:9px;width:min(340px,100vw - 3rem);padding:1.2rem;position:absolute;top:calc(100% + .7rem);right:0;box-shadow:0 8px 24px #24304414}.join-menu form button{margin-top:.8rem}.badge{color:#596c82;background:#edf2f7;border-radius:4px;padding:.2rem .5rem;font-size:.75rem;display:inline-block}.badge.warning{color:#8b6429;background:#faf0df}.game-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.game-list article{border:1px solid var(--line);background:#fff;border-radius:11px;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:1.1rem;padding:1.4rem;display:grid}.game-list h2{margin-bottom:.5rem;font-size:1.1rem}.game-list h2 small{white-space:nowrap;font-size:.75rem;font-weight:400}.game-art{border-radius:9px;justify-content:center;align-items:center;width:72px;height:72px;font-size:1.8rem;font-weight:700;display:flex;overflow:hidden}.tiles-art{color:#765029;text-align:center;background:#dcc7a8;grid-template-columns:1fr 1fr;gap:3px;padding:5px;font-size:1rem;display:grid}.tiles-art span{background:#f8e8d0;border-radius:3px;place-items:center;height:100%;display:grid}.tiles-art span:last-child{background:#efc382}.link-art{color:#44796b;background:#dcece6;font-size:2.5rem}.soul-art{color:#8c744b;background:#eee5d2;gap:2px}.soul-art span{color:#b69a59}.game-actions{grid-column:1/-1;align-items:center;gap:1rem;margin-top:.4rem;display:flex}.game-actions a{margin-left:auto;font-size:.78rem}.panel,.emulator-panel{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:0;margin-bottom:1.5rem;padding:1.5rem}.section-heading{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.section-heading .eyebrow{color:var(--muted);letter-spacing:.05em;margin-bottom:.4rem;font-size:.65rem}.toolbar{flex-wrap:wrap;align-items:center;gap:.65rem;margin:1rem 0;display:flex}.file-button{position:relative;overflow:hidden}.file-button input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.game-screen{background:#182332;border-radius:8px;padding:12px}.game-screen canvas{width:100%;image-rendering:pixelated;aspect-ratio:3/2;object-fit:contain;display:block}.linked-screens{gap:1rem;margin:1.2rem 0;display:flex}.linked-screens figure{flex:1;min-width:0;max-width:720px;margin:0}.linked-screens figcaption{color:var(--muted);margin-bottom:.5rem;font-size:.85rem}.remote-screen{aspect-ratio:3/2;object-fit:contain;width:100%;max-height:65vh;image-rendering:pixelated;background:#182332;border-radius:8px}.status-line{color:#376351;font-size:.9rem}.notice,.error{background:#eff4f8;border:1px solid #d6e1eb;border-radius:7px;max-width:none;padding:.8rem 1rem;font-size:.9rem}.error{color:#9a3b2e;background:#fff0ee;border-color:#e9c7c3}.members{flex-wrap:wrap;gap:.6rem;padding:0;list-style:none;display:flex}.members li{background:#f0f3f7;border-radius:6px;padding:.4rem .7rem;font-size:.85rem}.members small{margin-left:.5rem}.presence{background:#9daebc;border-radius:50%;width:7px;height:7px;margin-right:.5rem;display:inline-block}.presence.online{background:#63a88e}.invite-links{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.invite-links label>div{gap:.5rem;display:flex}.invite-links input{min-width:0;font-size:.75rem}.check{align-items:center;margin-top:1rem;display:flex}.room-header h1{font-size:1.6rem}.room-header .section-heading p{margin-bottom:0}details summary{cursor:pointer;font-weight:600}details[open] summary{margin-bottom:1rem}@media (width<=1000px){.game-list article{grid-template-columns:56px minmax(0,1fr);gap:.8rem;padding:1.1rem}.game-art{width:56px;height:56px}.game-list h2{font-size:1rem}.game-actions{gap:.5rem}.game-actions a{font-size:.72rem}.invite-links{grid-template-columns:1fr}}@media (width<=700px){.account-name{width:110px}.license-link{font-size:.75rem}main{padding:1.5rem 1rem}.library-heading{margin-bottom:1rem}.library-heading h1{font-size:1.5rem}.game-list{grid-template-columns:1fr}.game-list article{grid-template-columns:56px minmax(0,1fr) auto;gap:.8rem;padding:1rem}.game-actions{flex-direction:column;grid-column:auto;gap:.5rem;margin:0}.game-actions a{margin:0}.game-actions button{padding:.5rem .7rem;font-size:.8rem}.panel,.emulator-panel{padding:1rem}.section-heading{flex-wrap:wrap}h1{font-size:1.7rem}.toolbar{gap:.5rem}.toolbar button,.file-button{font-size:.82rem}.room-header .section-heading button{margin-left:auto}.invite-links label>div{flex-wrap:wrap}.invite-links input{flex:1;min-width:180px}.linked-screens{flex-direction:column}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}[hidden]{display:none!important}.saved-rooms{margin-top:2rem}.saved-rooms h2{font-size:1rem}.saved-rooms button{margin:0 .5rem .5rem 0}.game-list select{min-height:36px;padding:.25rem .5rem;font-size:.8rem}.session-toolbar{justify-content:space-between;gap:.6rem;margin-bottom:.6rem;display:flex}.session-toolbar button{width:44px;padding:.3rem;font-size:1.3rem}.game-menu{margin:.5rem 0 1rem}.game-menu summary{font-size:.9rem}.game-screen[role=button]{cursor:zoom-in}.sync-status{color:var(--muted);margin:.4rem 0;font-size:.8rem}.session-content .emulator-panel{margin-bottom:0}.session-content>.input-controls{margin-top:.5rem}.emulator-panel,.remote-game-panel,.game-screen{position:relative}.game-quick-actions{z-index:1;gap:4px;display:flex;position:absolute;top:1rem;right:1rem}.game-quick-actions button{width:44px;padding:.3rem;font-size:1.25rem}.room-paused{color:#edf1f6;background:#202936cc;border-radius:5px;align-self:center;padding:.2rem .4rem;font-size:.75rem}.room-title,.room-name-editor{align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.room-title h1{margin:0}.room-title button{background:0 0;border:0;width:44px;padding:.3rem}.room-name-editor input{width:min(300px,55vw);min-width:0}.linked-screens{flex-wrap:wrap}.linked-screens figure{flex-basis:300px}body:has(.game-focus){overscroll-behavior:none;overflow:hidden}.game-focus{color:#edf1f6;background:#151a20;height:100dvh;position:fixed;inset:0;overflow:hidden}.game-focus .game-help{display:none}.game-focus .update-available{top:auto;bottom:max(12px,env(safe-area-inset-bottom));left:calc(max(16px,env(safe-area-inset-left)) + 48px);width:44px;padding:0;font-size:0;right:auto}.game-focus .update-available:before{content:"↻" / "";font-size:1.3rem}.game-focus main{max-width:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) max(12px,env(safe-area-inset-bottom)) env(safe-area-inset-left);flex-direction:column;height:100dvh;display:flex}.game-focus .game-session{flex-direction:column;flex:1;min-height:0;display:flex}.game-focus .session-toolbar{top:auto;bottom:max(12px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));z-index:2;pointer-events:none;margin:0;position:fixed}.game-focus .session-toolbar button{pointer-events:auto}.game-focus .social-dock .social-toggle{top:auto;bottom:max(12px,env(safe-area-inset-bottom));width:44px;min-width:44px;padding:.3rem}.game-focus .session-content .duel-controls{top:auto;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 52px);right:auto;left:max(16px,env(safe-area-inset-left))}.game-focus .session-toolbar button{color:#a7b3c3;background:0 0;border:0}.game-focus .session-toolbar button:last-child{display:none}.game-focus .session-content{flex-direction:column;flex:1;width:100%;max-width:800px;min-height:0;margin:auto;display:flex}.game-focus .room-header,.game-focus .backup-panel,.game-focus .session-content>small,.game-focus .emulator-panel>:not(.linked-screens):not(.error):not(.game-quick-actions),.game-focus .input-mapping{display:none}.game-focus .panel:has(>video)>:not(video):not(.input-controls):not(.error):not(.room-live-arena):not(.game-quick-actions){display:none}.game-focus .game-quick-actions{top:max(8px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));position:fixed}.game-focus .emulator-panel>.sync-status{top:max(8px,env(safe-area-inset-top));z-index:2;color:#edf1f6;pointer-events:none;background:#202936cc;border-radius:5px;margin:0;padding:.25rem .5rem;display:block;position:fixed;left:50%;transform:translate(-50%)}.game-focus .game-quick-actions button{color:#edf1f6;background:#2029368c;border-color:#ffffff38}:is(.game-focus .emulator-panel,.game-focus .panel:has(>video)){background:0 0;border:0;margin:0;padding:0}.game-focus .panel:has(>video){flex-direction:column;flex:1;min-height:0;display:flex}.game-focus .linked-screens{margin:0;display:block}.game-focus .linked-screens figure:not(:first-child),.game-focus figcaption{display:none}.game-focus .linked-screens figure{max-width:none}.game-focus .game-screen{cursor:default;background:#000;border-radius:0;padding:0}.game-focus .remote-screen{background:#000;border-radius:0;max-height:none;display:block}@media (pointer:coarse){.game-focus .game-quick-actions{top:auto;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 52px);left:max(16px,env(safe-area-inset-left));right:auto}.game-focus .session-content .duel-controls{left:auto;right:max(16px,env(safe-area-inset-right))}.game-focus .emulator-panel,.game-focus .remote-screen{flex:0 auto;min-height:0}.game-focus .linked-screens,.game-focus .linked-screens figure,.game-focus .game-screen{height:100%}.game-focus .game-screen canvas{object-fit:contain;height:100%}.game-focus .input-controls{background:0 0;border:0;flex:1 0 auto;grid-template-rows:auto minmax(min-content,1fr) auto;width:min(100% - 32px,420px);min-height:min-content;margin:.5rem auto 0;padding:.75rem .25rem 0;display:grid}.game-focus .touch-main{padding-bottom:16px}}.game-focus .input-controls .touch-key{color:#e7edf4;background:#2d3540;border:0;box-shadow:0 3px #090d12}.game-focus .touch-dpad,.game-focus .touch-actions,.game-focus .touch-l,.game-focus .touch-r,.game-focus .touch-speed,.game-focus .touch-menu{z-index:1;position:relative}.game-focus .input-controls .touch-key[aria-pressed=true]{box-shadow:none;background:#52657d}.game-focus .touch-shoulders{margin-bottom:.2rem}.game-focus .touch-main{min-height:0}.game-focus .touch-menu{margin:.5rem 0 0}.game-focus .touch-menu .touch-key{min-width:64px;padding:.5rem}.game-focus .touch-speed{--speed-active:#536c89;--speed-border:#526174}.game-focus .touch-speed button{color:#c5d0df}.game-focus .touch-speed button:hover{background:0 0}@media (pointer:coarse) and (orientation:portrait) and (height<=600px){.game-focus .touch-dpad{margin-left:44px}.game-focus .game-quick-actions{z-index:2}}@media (pointer:fine){.game-focus .session-content{max-width:none}.game-focus .emulator-panel{flex:1;min-height:0}.game-focus .linked-screens,.game-focus .linked-screens figure,.game-focus .game-screen{height:100%}.game-focus .game-screen canvas{object-fit:contain;height:100%}.game-focus .remote-screen{height:100%;min-height:0}}@media (pointer:coarse) and (orientation:landscape) and (height<=600px){.game-focus main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:env(safe-area-inset-bottom)}.game-focus .session-content{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);max-width:none;display:grid}.game-focus .emulator-panel{grid-area:1/1;width:100%;height:100%;min-height:0}.game-focus .linked-screens,.game-focus .linked-screens figure,.game-focus .game-screen{height:100%}.game-focus .game-screen canvas,.game-focus .remote-screen{object-fit:contain;width:100%;height:100%;max-height:none}:is(.game-focus .panel:has(>video),.game-focus .input-controls,.game-focus .touch-shoulders,.game-focus .touch-main){display:contents}.game-focus .remote-screen{grid-area:1/1;min-height:0}.game-focus .touch-dpad{left:calc(max(16px,env(safe-area-inset-left)) + 56px);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 52px);grid-template-rows:repeat(3,44px);grid-template-columns:repeat(3,44px);position:fixed}.game-focus .touch-actions{right:calc(max(16px,env(safe-area-inset-right)) + 56px);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 52px);gap:8px;padding:0;position:fixed}.game-focus .touch-l,.game-focus .touch-r{top:max(8px,env(safe-area-inset-top));position:fixed}.game-focus .touch-l{left:calc(max(16px,env(safe-area-inset-left)) + 56px)}.game-focus .touch-r{right:calc(max(16px,env(safe-area-inset-right)) + 56px)}.game-focus .touch-shoulders .touch-key{width:clamp(64px,10vw,80px);min-width:44px}.game-focus .touch-speed{right:calc(max(16px,env(safe-area-inset-right)) + 56px);bottom:max(12px,env(safe-area-inset-bottom));position:fixed}.game-focus .touch-menu{left:50%;bottom:max(12px,env(safe-area-inset-bottom));gap:8px;margin:0;position:fixed;transform:translate(-50%)}.game-focus .game-quick-actions{flex-direction:column}.game-focus .update-available{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 148px);left:max(16px,env(safe-area-inset-left))}.game-focus .input-controls .touch-key{min-width:44px;min-height:44px;box-shadow:none;background:#2029368c;border:1px solid #ffffff38}.game-focus .input-controls .touch-actions .touch-key{background:#285e7b8c;min-width:54px;min-height:54px}.game-focus .input-controls .touch-key[aria-pressed=true]{background:#52657dd9}.game-focus .touch-speed{--speed-active:#536c8999}.game-focus .touch-speed:before{background:#17202a66}}.social-toggle svg{flex:none}
