/* NYX B1 R1 player-only public team lobby. All data from 17640 backend. */
.nyx-party-overlay[hidden]{display:none!important}
.nyx-party-overlay{position:fixed;inset:0;z-index:2147483400;background:#060b16db;display:flex;justify-content:center;align-items:center;padding:16px;box-sizing:border-box;font:14px system-ui,sans-serif;color:#e7efff}
.nyx-party-dialog{box-sizing:border-box;width:min(940px,100%);height:min(720px,calc(100vh - 32px));max-height:calc(100vh - 32px);display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#111d32;border:1px solid #49628e;border-radius:17px;box-shadow:0 18px 65px #000b}
.nyx-party-header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:15px 20px;border-bottom:1px solid #354869}
.nyx-party-header h2{font-size:19px;margin:0}
.nyx-party-notice{padding:8px 20px;min-height:30px;flex:none;color:#a8cbe9;font-size:13px}.nyx-party-notice.error{color:#ffbcbc}
.nyx-party-content{padding:0 18px 14px;display:flex;flex:1;min-height:0;flex-direction:column;gap:10px}
.nyx-party-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:none}
.nyx-party-tabs .nyx-party-button.active{background:#315995;border-color:#83b3ff;color:#fff}
.nyx-party-body{display:flex;flex:1;min-height:0;overflow:auto;flex-direction:column;gap:10px;padding:3px 2px 10px}
.nyx-party-button{border:1px solid #506a91;border-radius:9px;padding:8px 12px;background:#263955;color:#f0f5ff;font:inherit;font-weight:600;cursor:pointer;min-height:36px}
.nyx-party-button:hover:not(:disabled){background:#34527a}.nyx-party-button:disabled{opacity:.5;cursor:default}.nyx-party-button.secondary{background:#1a2b43}.nyx-party-button.danger{background:#662f3c;border-color:#b55b65}
.nyx-party-search,.nyx-party-create{display:flex;gap:9px;align-items:center}.nyx-party-search input,.nyx-party-create input{width:100%;min-width:0;box-sizing:border-box;min-height:39px;border-radius:9px;border:1px solid #425d81;background:#0e192b;color:#eff6ff;padding:9px 12px;font:inherit}
.nyx-party-card{background:#1a2940;border:1px solid #3a526e;padding:13px;border-radius:12px;display:flex;flex-direction:column;gap:9px;flex:none}
.nyx-party-card-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.nyx-party-card-head strong{font-size:16px;overflow-wrap:anywhere}.nyx-party-card-head small,.nyx-party-note{color:#b4c5de;font-size:12px}.nyx-party-note{margin:0;line-height:1.5}
.nyx-party-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.nyx-party-tag{font-size:12px;color:#bcd9ff;background:#2e4060;border-radius:7px;padding:4px 7px}
.nyx-party-empty{padding:32px 12px;text-align:center;color:#a9bfdc}
.nyx-party-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:auto;padding:10px 0}.nyx-party-pagination small{color:#b2c7e1}
.nyx-party-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nyx-party-member{background:#12233a;padding:12px;border:1px solid #344c6e;border-radius:9px;display:flex;justify-content:space-between;gap:8px}.nyx-party-member small{color:#a7bfdc}
.nyx-party-online{display:flex;flex-direction:column;gap:5px}.nyx-party-online-row{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;border-radius:7px;background:#172a46}
@media(max-width:650px){.nyx-party-overlay{padding:0}.nyx-party-dialog{border-radius:0;width:100vw;height:100vh;max-height:100vh}.nyx-party-content{padding:0 10px 10px}.nyx-party-header{padding:10px 12px}.nyx-party-header h2{font-size:17px}.nyx-party-tabs{gap:3px}.nyx-party-tabs .nyx-party-button{font-size:12px;padding:7px 4px}.nyx-party-members{grid-template-columns:1fr}.nyx-party-search,.nyx-party-create{gap:5px}.nyx-party-create .nyx-party-button{white-space:nowrap}}
@supports(height:100dvh){@media(max-width:650px){.nyx-party-dialog{height:100dvh;max-height:100dvh}}}
@media(max-height:480px) and (min-width:651px){.nyx-party-overlay{padding:4px}.nyx-party-dialog{height:calc(100vh - 8px);max-height:calc(100vh - 8px)}}

/* B1 R2: four players, single server-ready state, low-height controls. */
.nyx-party-member-info{display:flex;min-width:0;flex-direction:column;gap:3px}
.nyx-party-member-info>span{overflow-wrap:anywhere;font-weight:600}
.nyx-party-member-state{white-space:nowrap;align-self:center}
.nyx-party-member-state.ready{color:#8be4b8}
.nyx-party-member-state.pending{color:#dfba84}
.nyx-party-ready-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 11px;background:#122641;border:1px solid #335779;border-radius:9px}
.nyx-party-ready-panel strong{font-size:12px}
.nyx-party-ready-panel .nyx-party-button{min-height:32px;padding:6px 12px}
.nyx-party-ready-success{font-size:12px;color:#91eac4}
@media(max-width:650px){.nyx-party-ready-panel{gap:7px}.nyx-party-member{padding:9px}}

.nyx-party-boss-picker{display:grid;gap:8px;width:100%;max-height:260px;overflow-y:auto;padding-top:8px}


/* B2 R2: a fixed-size BOSS selection dialog outside the scrolling party panel. */
.nyx-party-boss-overlay{position:fixed;inset:0;z-index:2147483500;background:#050a16ec;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;font:14px system-ui,sans-serif;color:#edf5ff}
.nyx-party-boss-dialog{display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:min(680px,100%);height:min(600px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden;background:#132139;border:1px solid #738db5;border-radius:15px;box-shadow:0 24px 75px #000c}
.nyx-party-boss-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #3b536e;flex:none}
.nyx-party-boss-dialog-header strong{font-size:16px}.nyx-party-boss-hint{margin:0 16px;color:#bdd0e8;font-size:12px;line-height:1.5;flex:none}
.nyx-party-boss-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;flex:1;min-height:0;padding:0 16px 8px;scrollbar-gutter:stable}
.nyx-party-boss-option{display:flex;align-items:center;gap:12px;background:#1a2d46;border:1px solid #425d80;border-radius:10px;padding:10px}
.nyx-party-boss-option.active{border-color:#7cb0ef;background:#223f64}
.nyx-party-boss-option-detail{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.nyx-party-boss-option-detail strong{font-size:14px;overflow-wrap:anywhere}.nyx-party-boss-option-detail small{font-size:12px;color:#bacde3}
.nyx-party-boss-portrait{width:36px;height:36px;object-fit:contain;border-radius:7px;flex:none}
.nyx-party-boss-footer{display:flex;align-items:center;gap:9px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #3b536e;flex:none;flex-wrap:wrap}
.nyx-party-boss-picked{margin-right:auto;color:#b8d6f7;font-size:12px;max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){.nyx-party-boss-overlay{padding:0}.nyx-party-boss-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.nyx-party-boss-dialog-header strong{font-size:15px}.nyx-party-boss-option{padding:9px}.nyx-party-boss-footer{gap:5px}}
@media(max-height:480px) and (min-width:651px){.nyx-party-boss-overlay{padding:4px}.nyx-party-boss-dialog{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}}
/* MAP party uses the existing lobby; no additional transport. */
.nyx-party-tabs.nyx-party-mode-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.nyx-party-card select{min-width:0;max-width:100%;min-height:36px;padding:7px 10px;border:1px solid #425d81;border-radius:9px;background:#0e192b;color:#eff6ff;font:inherit}
.nyx-party-member{flex-wrap:wrap;align-items:center}
.nyx-party-member .nyx-party-button{font-size:12px;min-height:30px;padding:5px 8px}
