/* ---------- gra wieloosobowa: menu, poczekalnia, czat, komunikaty ---------- */
#mpScreen .menu-box { width: min(560px, 94vw); }
.title-btns .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.mp-hint { color: var(--muted); font-size: 13px; margin: 12px 0 4px; }
.mp-status, #lbStatus { min-height: 18px; color: var(--gold); font-size: 14px; margin: 6px 0; }
.mp-status.bad, #lbStatus.bad { color: #ff9a8a; }
#lobby .menu-box { width: min(1100px, 97vw); }
#lobby h1 { font-size: 30px; letter-spacing: 8px; }
.lb-code { text-align: center; margin: 8px 0 2px; font-size: 16px; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.lb-code b { color: var(--gold); font-size: 30px; letter-spacing: 6px; font-family: "Courier New", monospace; user-select: all; }
.lb-cols { display: grid; grid-template-columns: 1fr 290px; gap: 18px; }
.lrow { display: grid; grid-template-columns: 24px 1.4fr 0.85fr 1.2fr 0.9fr 1.05fr 0.95fr 0.95fr 0.9fr; gap: 6px; align-items: center; margin: 5px 0; font-size: 14px; }
.lrow.lhead { color: var(--muted); font-size: 12px; }
.lrow.me { background: #ffffff0d; border-radius: 3px; }
.lrow.closed { opacity: 0.5; }
.lrow .swatch { width: 20px; height: 20px; border-radius: 3px; border: 1px solid #000; }
.lrow select { padding: 3px; font-size: 13px; width: 100%; }
.lstate { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.lstate.ok, .ping.ok { color: #9fe08a; } .lstate.wait, .ping.wait { color: #e8c24a; } .lstate.bad, .ping.bad { color: #ff8a7a; }
.lb-set { grid-template-columns: 1fr 1fr 1fr; }
.lb-set select:disabled, .lb-set input:disabled { opacity: 0.75; }
.lb-side { display: flex; flex-direction: column; }
.chatlog { flex: 1; min-height: 260px; max-height: 420px; overflow-y: auto; background: #1a1611; border: 1px solid var(--edge); border-radius: 3px; padding: 6px; font-size: 13px; user-select: text; }
.cline { margin: 2px 0; word-wrap: break-word; }
.cline.sys { color: var(--muted); font-style: italic; }
#lbChatIn { margin-top: 6px; }
.ping { font-size: 13px; }
.net-banner { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); background: #000c; border: 1px solid var(--edge); border-radius: 4px;
  padding: 8px 18px; font-size: 15px; z-index: 15; max-width: 80vw; text-align: center; }
.net-banner.bad { border-color: var(--red); color: #ffd0c8; }
.net-banner.vote { top: calc(34% + 48px); border-color: var(--gold); }
.net-chat { position: absolute; left: 10px; bottom: 190px; width: min(460px, 60vw); z-index: 12; pointer-events: none; }
.net-chatlog .cline { background: #000a; padding: 2px 8px; border-radius: 3px; margin: 2px 0; display: table; transition: opacity 1s; }
.net-chatlog .cline.old { opacity: 0; }
#netChatIn { width: 100%; pointer-events: auto; margin-top: 4px; }
@media (max-width: 800px) { .lb-cols { grid-template-columns: 1fr; } .lb-set { grid-template-columns: 1fr 1fr; } }
/* lista gier publicznych (ekran "Dołącz") */
#mpScreen .menu-box { max-height: 94vh; overflow-y: auto; }
.mp-pub h3 { display: flex; justify-content: space-between; align-items: center; }
.mp-publist { max-height: 300px; overflow-y: auto; }
.mp-pubrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px; margin: 4px 0; background: #ffffff08; border: 1px solid var(--edge); border-radius: 3px; }
.mp-pubinfo { font-size: 14px; } .mp-pubinfo small { font-size: 12px; }
.mp-pubbtns { display: flex; gap: 6px; flex-shrink: 0; }
#mpSpecL { margin-top: 8px; }
/* poczekalnia: widzowie, przełączniki, mapa własna */
.lb-specs { margin: 8px 0 2px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lb-flags { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 10px; }
.lb-flags input:disabled + * { opacity: 0.7; }
#lbCustom .cm-info p { margin: 4px 0; font-size: 13px; }
#lbCustom .warn { color: #e8c24a; } #lbCustom .bad { color: #ff9a8a; }
/* widz w grze */
.net-specbar { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); z-index: 14; display: flex; gap: 12px; align-items: center;
  background: #000c; border: 1px solid var(--edge); border-radius: 4px; padding: 5px 12px; font-size: 13px; }
.net-specbar select { padding: 2px 4px; font-size: 13px; }
.net-specbar .rp-tag { color: var(--gold); font-weight: bold; letter-spacing: 2px; }
#game.net-spec #cmdPanel { visibility: hidden; }
#game.net-spec #alerts { top: 86px; }
/* pingi graczy (poczekalnia i lista w grze) */
.lping { margin-left: 6px; font-size: 12px; white-space: nowrap; }
#netPing { cursor: pointer; }
.net-pings { position: absolute; top: 44px; right: 12px; z-index: 40; background: rgba(20, 16, 10, 0.92); border: 1px solid #6b5a3a; border-radius: 6px; padding: 6px 10px; min-width: 190px; font-size: 13px; color: #eadfc4; }
.net-pingrow { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.net-pingrow .pname { flex: 1; }
.net-pingrow .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
