/* Independent multiplayer surfaces over the preserved native game canvas. */
.mp-page #menu{display:none!important}.mp-lobby{position:fixed;inset:0;z-index:35;overflow:auto;background:#f4f5f8;color:#182b49;overscroll-behavior:contain}.mp-dialog{width:min(1120px,100%);margin:0 auto;padding:0 38px 26px}.mp-header{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #d6dce7}.mp-brand{font-size:13px;font-weight:850;letter-spacing:1px;text-decoration:none;white-space:nowrap}.mp-brand b{color:#c8102e}.mp-edition{font-size:11px;font-weight:750;letter-spacing:2.4px}.mp-home{font-size:11px;text-decoration:none}.mp-intro{display:grid;grid-template-columns:1.5fr 1fr;gap:12px 60px;padding:43px 0 25px;align-items:end}.mp-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.5px;line-height:1.5;margin:0 0 12px}.mp-intro .mp-eyebrow{grid-column:1/-1}.mp-intro h1{font-size:46px;line-height:1.07;font-weight:800;letter-spacing:-1.8px;margin:0}.mp-intro h1 em{font-style:normal;color:#c8102e}.mp-intro>p:last-child{font-size:12px;color:#65748a;line-height:1.8;margin:0;max-width:310px}.mp-test-note{padding:10px 13px;border-left:3px solid #17408b;background:#e8edf6;color:#4c607d;font-size:11px;line-height:1.6;margin:0 0 15px}.mp-status{font-size:12px;line-height:1.6;min-height:20px;color:#4c607d;margin:12px 0 18px}.mp-status.mp-error{color:#a90f2d;font-weight:650}.mp-entry-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:22px}.mp-entry label,.mp-size-label{display:flex;flex-direction:column;gap:8px;font-size:9px;font-weight:800;letter-spacing:1px;line-height:1.5}.mp-entry input,.mp-entry select{font-family:inherit;min-width:0;width:100%;height:45px;font-size:14px;color:#182b49;padding:10px 12px;border:1px solid #cbd4e2;background:#fff;border-radius:0}.mp-entry input:focus,.mp-entry select:focus{outline:2px solid #17408b;outline-offset:2px}.mp-entry-modes{display:grid;grid-template-columns:1fr 1fr;gap:25px}.mp-entry-modes>section{border-top:1px solid #d6dce7;padding-top:20px;display:flex;flex-direction:column;gap:12px}.mp-entry-modes .mp-eyebrow{margin-bottom:0}.mp-code-input{font-weight:750;letter-spacing:5px}.mp-entry-modes button{width:100%;margin-top:3px}.mp-primary,.mp-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 18px;font-family:inherit;font-size:10px;font-weight:800;letter-spacing:.7px;border:1px solid #17408b;background:#17408b;color:#fff;cursor:pointer}.mp-secondary{color:#17408b;background:transparent}.mp-primary:hover:enabled{background:#c8102e;border-color:#c8102e}.mp-secondary:hover:enabled{background:#e2e9f4}.mp-primary:disabled,.mp-secondary:disabled,.mp-room button:disabled{cursor:not-allowed;opacity:.42}.mp-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #d6dce7;font-size:8px;letter-spacing:.7px;color:#65748a;line-height:1.7;margin-top:28px;padding-top:16px}.mp-room-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.mp-room-heading .mp-eyebrow{margin-bottom:3px}.mp-room-code{font-size:43px;letter-spacing:8px;font-weight:800;line-height:1.2}.mp-room-count{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.mp-room-count b{font-size:23px}.mp-room-count span{font-size:9px;letter-spacing:1px;color:#65748a}.mp-teams{display:grid;grid-template-columns:1fr 1fr;gap:25px}.mp-team{min-width:0}.mp-team h2{font-family:inherit;font-size:13px;font-weight:800;display:flex;justify-content:space-between;padding:12px 13px;background:#17408b;color:#fff}.mp-team-red h2{background:#c8102e}.mp-team h2 span{font-weight:500;opacity:.8}.mp-team ol{padding:0;margin:0;list-style:none;border:1px solid #d6dce7;border-top:0}.mp-seat{display:flex;align-items:center;gap:11px;min-height:58px;padding:10px 12px;border-bottom:1px solid #d6dce7;font-size:12px;line-height:1.5}.mp-seat:last-child{border-bottom:0}.mp-seat>span:nth-child(2){min-width:0;overflow-wrap:anywhere;flex:1}.mp-seat-number{font-size:18px;font-weight:800;color:#65748a;width:20px;flex-shrink:0}.mp-seat small{display:block;color:#65748a;font-size:9px;line-height:1.6;font-weight:400}.mp-seat-you{background:#e7edf8}.mp-team-red .mp-seat-you{background:#f5e6eb}.mp-seat-open{color:#8896a9}.mp-seat-open .mp-seat-number{color:#a2acba}.mp-seat-offline{opacity:.6}.mp-you{font-size:8px;letter-spacing:.5px;margin-left:5px;color:#17408b}.mp-ready-dot{width:7px;height:7px;border-radius:50%;background:#bbc5d3;flex-shrink:0}.mp-ready-dot.is-ready{background:#288b63;box-shadow:0 0 0 3px #288b6318}.mp-viewers,.mp-ready-summary{font-size:11px;line-height:1.8;color:#65748a;margin:12px 0}.mp-room-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}.mp-room-actions .mp-primary{min-width:160px}.mp-team-choice{display:flex;gap:5px}.mp-team-choice button{height:43px;padding:10px 15px;background:transparent;border:1px solid #17408b;font-size:9px;font-weight:800;letter-spacing:.5px;color:#17408b}.mp-team-choice button[data-team=B]{border-color:#c8102e;color:#c8102e}.mp-text-button{padding:12px 4px;color:#65748a;background:transparent;border:0;font-size:11px;text-decoration:underline;text-underline-offset:3px}.mp-display-note{font-size:11px;line-height:1.7;max-width:390px;color:#65748a;margin:0}.mp-pairing{margin-top:21px;padding-top:21px;border-top:1px solid #d6dce7}.mp-pairing h3{font-size:14px;margin:0 0 6px}.mp-pairing p{font-size:11px;line-height:1.7;color:#65748a;margin:0 0 10px}.mp-link-row{display:flex;gap:0;max-width:760px}.mp-link-row input{min-width:0;flex:1;padding:12px;border:1px solid #cbd4e2;background:#fff;font-family:inherit;font-size:11px;color:#182b49}.mp-link-row button{font-size:9px;font-weight:800;letter-spacing:.5px;color:#17408b;border:1px solid #cbd4e2;border-left:0;padding:12px;background:#e8edf6;min-width:100px}.mp-pairing .mp-pair-hint{font-size:10px;margin-top:10px}.mp-room-dock{position:fixed;top:80px;right:18px;z-index:43;display:flex;align-items:center;gap:10px;color:#fff;background:#122848ed;border:1px solid #ffffff30;padding:8px 10px;box-shadow:0 3px 14px #0002}.mp-room-dock [data-dock-code]{font-size:13px;font-weight:800;letter-spacing:2px}.mp-room-dock [data-dock-count]{font-size:10px;opacity:.75}.mp-room-dock button{font-size:9px;font-weight:800;letter-spacing:.5px;color:#fff;border:1px solid #ffffff4d;background:transparent;padding:8px 10px;min-height:32px}.mp-lobby.mp-playing{background:transparent;pointer-events:none;overflow:visible}.mp-lobby.mp-playing .mp-dialog{display:none}.mp-lobby.mp-playing .mp-room-dock{pointer-events:auto}.mp-lobby.mp-playing.mp-expanded{pointer-events:auto;background:#07162ccb;overflow:auto;padding:20px 0}.mp-lobby.mp-playing.mp-expanded .mp-dialog{display:block;background:#f4f5f8;box-shadow:0 20px 70px #0006;max-width:900px;padding-bottom:28px}.mp-lobby.mp-playing.mp-expanded .mp-intro,.mp-lobby.mp-playing.mp-expanded .mp-test-note,.mp-lobby.mp-playing.mp-expanded .mp-footer{display:none}.mp-lobby.mp-playing.mp-expanded .mp-room-dock{top:25px;right:25px}.mp-lobby.mp-playing.mp-expanded .mp-header{padding-right:170px}.mp-lobby.mp-playing.mp-expanded .mp-header .mp-edition,.mp-lobby.mp-playing.mp-expanded .mp-home{display:none}

/* Phone controls stay separate from renderer/input ownership. */
.mp-controller{position:fixed;inset:0;z-index:25;pointer-events:none;color:#fff;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.mp-controller-top{position:absolute;top:max(92px,env(safe-area-inset-top));left:20px;display:flex;flex-direction:column;gap:5px;text-shadow:0 1px 5px #000}.mp-controller-label{font-size:10px;font-weight:800;letter-spacing:1.3px}.mp-controller-hint{font-size:9px;opacity:.75}.mp-controller-body{position:absolute;inset:0}.mp-stick{position:absolute;bottom:max(44px,env(safe-area-inset-bottom));left:max(4%,env(safe-area-inset-left));width:160px;height:160px;border-radius:50%;border:1px solid #ffffff65;background:#10234770;box-shadow:inset 0 0 0 22px #ffffff08;display:flex;justify-content:center;align-items:center;pointer-events:auto;touch-action:none}.mp-stick-axis{text-align:center;color:#ffffff5c;font-size:23px;line-height:1.8;letter-spacing:5px}.mp-stick-thumb{position:absolute;width:52px;height:52px;border-radius:50%;background:#f4f5f8c9;border:2px solid #fff;box-shadow:0 3px 14px #0003;pointer-events:none}.mp-stick-caption{position:absolute;bottom:-25px;font-size:9px;font-weight:800;letter-spacing:1.5px;text-shadow:0 1px 5px #000}.mp-action-pad{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));right:max(4%,env(safe-area-inset-right));display:grid;grid-template-columns:repeat(3,76px);gap:10px;align-items:center;justify-items:center;pointer-events:none}.mp-action{width:76px;height:76px;border-radius:50%;border:1px solid #ffffff88;background:#152c55b8;color:#fff;pointer-events:auto;touch-action:none;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:11px;font-weight:800;letter-spacing:.3px;box-shadow:0 4px 15px #0003;padding:5px;transition:background .08s,transform .08s}.mp-action small{font-size:7px;font-weight:400;margin-top:5px;opacity:.7}.mp-shoot{background:#c8102ecf;width:82px;height:82px}.mp-pass{background:#17408bdb;width:82px;height:82px}.mp-action.held{background:#f4f5f8;color:#182b49;transform:scale(.94);box-shadow:0 0 0 4px #ffffff24}.mp-keyboard-guide{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;white-space:nowrap;color:#ffffffb8;margin:0;text-shadow:0 1px 5px #000}.mp-controller-only #view,.mp-controller-only #hud,.mp-controller-only #match-tools{display:none!important}.mp-controller-only{background:#0d1d39}.mp-controller-only .mp-controller{background:radial-gradient(ellipse at center,#152d50,#0a1831)}.mp-controller-only .mp-controller-top{top:18%;left:8%}.mp-controller-only .mp-controller-label{font-size:17px;letter-spacing:2px}.mp-controller-only .mp-controller-hint{font-size:12px}.mp-controller-only .mp-stick{bottom:17%;left:8%;width:180px;height:180px}.mp-controller-only .mp-action-pad{bottom:16%;right:8%;grid-template-columns:repeat(3,90px);gap:16px}.mp-controller-only .mp-action{width:90px;height:90px;font-size:13px}.mp-controller-only .mp-keyboard-guide{bottom:35px}
@media(min-width:1400px){.mp-dialog{padding-inline:30px}.mp-intro h1{font-size:52px}.mp-action-pad{right:6%}.mp-stick{left:6%}}
@media(max-width:700px){.mp-dialog{padding:0 23px 25px}.mp-header{height:67px;gap:12px}.mp-brand{font-size:11px;letter-spacing:.6px}.mp-edition{font-size:8px;letter-spacing:1px}.mp-home{font-size:9px}.mp-intro{grid-template-columns:1fr;gap:15px;padding-top:30px}.mp-intro h1{font-size:37px;letter-spacing:-1.3px}.mp-intro>p:last-child{max-width:none;font-size:11px}.mp-eyebrow{font-size:8px}.mp-test-note{font-size:10px}.mp-entry-fields{gap:14px}.mp-entry label{font-size:8px;letter-spacing:.7px}.mp-entry input,.mp-entry select{font-size:12px;padding:9px}.mp-entry-modes{gap:16px}.mp-entry-modes button{font-size:9px;padding-inline:8px}.mp-footer{font-size:7px;gap:15px}.mp-teams{gap:12px}.mp-team h2{font-size:11px;padding:10px}.mp-seat{padding:9px 8px;gap:7px;font-size:10px;min-height:62px}.mp-seat-number{font-size:15px;width:13px}.mp-seat small{font-size:8px}.mp-seat .mp-you{font-size:7px;margin-left:1px}.mp-room-code{font-size:33px;letter-spacing:6px}.mp-room-count b{font-size:21px}.mp-room-count span{font-size:8px}.mp-room-actions{gap:8px}.mp-room-actions .mp-primary{font-size:9px;min-width:140px;padding:12px}.mp-team-choice button{padding-inline:12px}.mp-ready-summary{font-size:10px}.mp-link-row input{font-size:10px;padding:10px}.mp-link-row button{font-size:8px;padding:10px;min-width:82px}.mp-room-dock{top:78px;right:10px;gap:7px;padding:5px 7px}.mp-room-dock [data-dock-code]{font-size:11px;letter-spacing:1px}.mp-room-dock button{font-size:8px;padding:7px}.mp-lobby.mp-playing.mp-expanded{padding-top:0}.mp-lobby.mp-playing.mp-expanded .mp-header{padding-right:135px}.mp-lobby.mp-playing.mp-expanded .mp-room-dock{top:14px;right:12px}.mp-lobby.mp-playing.mp-expanded .mp-brand{font-size:9px}.mp-controller-top{top:112px;left:14px}.mp-controller-hint{font-size:8px}.mp-stick{width:132px;height:132px;left:18px;bottom:56px}.mp-stick-thumb{width:45px;height:45px}.mp-stick-axis{font-size:18px;line-height:1.8}.mp-action-pad{grid-template-columns:repeat(2,67px);gap:8px;right:16px;bottom:27px}.mp-action{width:65px;height:65px;font-size:9px}.mp-shoot,.mp-pass{width:69px;height:69px}.mp-action small{font-size:6px}.mp-keyboard-guide{display:none}.mp-controller-only .mp-controller-top{top:23%;left:6%;right:6%}.mp-controller-only .mp-controller-label{font-size:15px}.mp-controller-only .mp-controller-hint{font-size:11px}.mp-controller-only .mp-stick{width:140px;height:140px;left:5%;bottom:15%}.mp-controller-only .mp-action-pad{grid-template-columns:repeat(2,74px);gap:12px;right:5%;bottom:10%}.mp-controller-only .mp-action{width:74px;height:74px;font-size:10px}}
@media(max-width:400px){.mp-dialog{padding-inline:17px}.mp-entry-fields{grid-template-columns:1fr;gap:14px}.mp-intro h1{font-size:34px}.mp-entry-modes{grid-template-columns:1fr;gap:20px}.mp-header .mp-edition{display:none}.mp-seat{gap:5px;font-size:9px}.mp-seat-number{width:10px}.mp-room-actions .mp-primary{min-width:125px}.mp-room-dock [data-dock-count]{display:none}.mp-controller-only .mp-stick{width:128px;height:128px}.mp-controller-only .mp-action-pad{grid-template-columns:repeat(2,68px);gap:10px}.mp-controller-only .mp-action{width:68px;height:68px}}
@media(max-height:500px) and (orientation:landscape){.mp-controller-top{top:12px;left:15px}.mp-controller-only .mp-controller-top{top:10%;left:6%}.mp-controller-only .mp-stick{width:145px;height:145px;bottom:13%;left:6%}.mp-controller-only .mp-action-pad{bottom:11%;right:6%;grid-template-columns:repeat(3,70px);gap:12px}.mp-controller-only .mp-action{width:70px;height:70px;font-size:11px}.mp-controller-only .mp-keyboard-guide{display:none}.mp-action-pad{grid-template-columns:repeat(3,65px);right:3%;bottom:18px;gap:8px}.mp-action{width:62px;height:62px}.mp-shoot,.mp-pass{width:66px;height:66px}.mp-stick{width:130px;height:130px;bottom:25px}.mp-room-dock{top:12px}}
@media(prefers-reduced-motion:reduce){.mp-action{transition:none}}

#mp-sync{position:fixed;z-index:32;left:50%;top:80px;transform:translateX(-50%);max-width:60vw;padding:7px 11px;background:#0b1936dd;color:#fff;font-size:9px;text-align:center;line-height:1.5;pointer-events:none;border-radius:2px}#mp-sync:empty{display:none}.mp-shot-feedback{position:absolute;bottom:45px;left:50%;transform:translateX(-50%);width:210px;background:#0a1a35e8;border:1px solid #ffffff40;padding:10px 12px;box-shadow:0 4px 18px #0002}.mp-shot-feedback-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:9px;letter-spacing:.7px;margin-bottom:9px}.mp-shot-feedback-heading span{font-size:8px;color:#cbd8e9}.mp-shot-track{height:10px;position:relative;background:#ffffff1f;overflow:hidden}.mp-shot-fill{position:absolute;inset:0 auto 0 0;background:#d4b24e}.mp-shot-zone{position:absolute;top:0;bottom:0;width:3px;background:#41d68b;transform:translateX(-50%)}.mp-shot-feedback[data-timing=perfect] .mp-shot-fill{background:#41d68b}.mp-shot-feedback[data-timing=good] .mp-shot-fill{background:#8bc885}.mp-shot-feedback[data-timing=late] .mp-shot-fill{background:#e15c74}.mp-controller-only .mp-shot-feedback{top:36%;bottom:auto}.mp-controller-only #mp-sync{top:132px}@media(max-width:700px){#mp-sync{top:113px;max-width:78vw;font-size:8px}.mp-shot-feedback{bottom:265px;width:190px;padding:8px 10px}.mp-controller-only .mp-shot-feedback{top:35%;bottom:auto}.mp-controller-only #mp-sync{top:131px}}@media(max-height:500px) and (orientation:landscape){#mp-sync{top:auto;bottom:10px;max-width:45vw}.mp-shot-feedback{bottom:48px}.mp-controller-only .mp-shot-feedback{top:25%;bottom:auto}.mp-controller-only #mp-sync{top:auto;bottom:9px}}

.mp-has-room .mp-intro{display:none}.mp-has-room .mp-test-note{margin-top:20px}.mp-has-room .mp-room-heading{margin-bottom:18px}@media(max-width:700px){.mp-has-room .mp-test-note{margin-top:16px;font-size:9px}.mp-has-room .mp-status{margin-bottom:14px}.mp-has-room .mp-seat{min-height:53px}.mp-has-room .mp-room-actions{margin-top:16px}}

/* Desktop players use the keyboard; reserve touch chrome for phones and dedicated controllers. */
@media(pointer:fine){.mp-page:not(.mp-controller-only) .mp-controller-body,.mp-page:not(.mp-controller-only) .mp-controller-top{display:none}.mp-controller-only .mp-controller-body,.mp-controller-only .mp-controller-top{display:block}}
.mp-my-player{display:block;width:100%;min-height:52px;margin:0 0 16px;cursor:pointer}
.mp-photo-dialog{width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:12px;background:#0d1521;color:#fff;overflow-y:auto}
.mp-photo-dialog::backdrop{background:#04070cc9}
.mp-photo-dialog .nba-menu-v2-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 20px}
.mp-photo-dialog .nba-menu-v2-drawer-head h2{margin:0;font-size:20px}
.mp-photo-dialog [data-menu-v2-close]{min-width:44px;min-height:44px;background:none;border:1px solid currentColor;color:inherit;border-radius:6px;font-size:20px;cursor:pointer}
.mp-photo-dialog [data-menu-v2-photo-host]{padding:0 20px 22px}
