/* v11: wspólny ekran wyboru bohatera (champ.js) – symetryczny, bez poziomych pasków przewijania (1024–1920) */
.cs2{--hc:#7ef9ff;position:fixed;inset:0;z-index:70;display:grid;grid-template-rows:64px minmax(0,1fr);background:radial-gradient(ellipse at 50% 0%,#2a1670 0%,transparent 60%),radial-gradient(800px 600px at 10% 90%,#1fd1d122,transparent),linear-gradient(180deg,#0e0838,#07051c);color:#fff;overflow:hidden;box-sizing:border-box}
.cs2 *{box-sizing:border-box}
.c2Top{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr) minmax(140px,220px);align-items:center;padding:0 18px;border-bottom:1px solid #ffffff14;background:#0b0830cc;min-width:0}
.c2Back{justify-self:start;display:flex;gap:6px;align-items:center;padding:8px 14px;border-radius:12px;border:1.5px solid #ff5a7a;background:#2a0b2a;color:#fff;font:800 12px Baloo,system-ui;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.c2Back:hover{background:#3d1040}
.c2Mid{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.c2Title{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap;justify-content:center}
.c2Title b{font:900 20px/1 Baloo,system-ui;letter-spacing:.06em;background:linear-gradient(90deg,#ffd36b,#ff7ad9);-webkit-background-clip:text;background-clip:text;color:transparent}
.c2Sub{font:700 11px system-ui;color:#b9b3ff}.c2Test{font:800 10px system-ui;font-style:normal;color:#ffd36b;border:1px dashed #ffd36b88;border-radius:99px;padding:1px 8px}
.c2Steps{display:flex;gap:6px;align-items:center;font:800 11px system-ui}
.c2Steps span{padding:3px 10px;border-radius:99px;border:1px solid #3a3f9a;color:#9aa0d8;background:#0d0b34;white-space:nowrap}
.c2Steps span.on{border-color:#f5c542;color:#1a1000;background:#f5c542}.c2Steps span.ok{border-color:#2fd07a;color:#2fd07a}.c2Steps i{color:#555b9a;font-style:normal}
.c2Tm{justify-self:end;position:relative;width:48px;height:48px}.c2Tm svg{width:48px;height:48px;transform:rotate(-90deg)}.c2Tm circle{fill:#0b0830;stroke:#2a2668;stroke-width:4}.c2Tm .csTr{fill:none;stroke:#ff5ad1;stroke-linecap:round;transition:stroke-dashoffset .3s}
.c2Tm b{position:absolute;inset:0;display:grid;place-items:center;font:900 18px Baloo,system-ui}.c2Tm.hot .csTr{stroke:#ff3d3d}.c2Tm.hot b{color:#ff6b6b}.c2Tm.off{opacity:.35}
.c2Ph{position:absolute;right:56px;top:50%;transform:translateY(-50%);white-space:nowrap;font:700 11px system-ui;color:#b9b3ff}
.c2Main{display:grid;grid-template-columns:clamp(190px,19vw,260px) minmax(0,1fr) clamp(190px,19vw,260px);gap:clamp(10px,1.4vw,18px);padding:12px clamp(12px,1.6vw,20px) 14px;min-height:0;min-width:0;align-items:start}
.c2Team{display:flex;flex-direction:column;gap:6px;min-height:0;max-height:100%;min-width:0}
.c2Team h4{margin:0 0 2px;font:900 12px Baloo,system-ui;letter-spacing:.12em;display:flex;justify-content:space-between;gap:6px;text-transform:uppercase}
.c2Team.t-b h4{color:#2f9bff}.c2Team.t-r h4{color:#ff4d6d}.c2Team.t-n h4{color:#c9b8ff}
.c2List{display:flex;flex-direction:column;gap:6px;overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-width:thin}
.c2P{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 8px;border-radius:12px;background:linear-gradient(90deg,#15114acc,#0b1333aa);border:1px solid #2a2f7a;min-height:52px}
.c2R .c2P{flex-direction:row-reverse;text-align:right;background:linear-gradient(270deg,#15114acc,#0b1333aa)}.c2R h4{flex-direction:row-reverse}
.t-b .c2P{box-shadow:inset 3px 0 #2f9bff}.t-r .c2P{box-shadow:inset -3px 0 #ff4d6d}.c2L.t-n .c2P{box-shadow:inset 3px 0 #9b5cff}.c2R.t-n .c2P{box-shadow:inset -3px 0 #9b5cff}
.c2P.me{border-color:#f5c542;box-shadow:0 0 12px #f5c54255}.c2P.lk{border-color:#1fd1d1aa}.c2P.off{opacity:.45}
.c2P .ava.c2Av{width:36px!important;height:36px!important;flex:none;font-size:18px}
.c2Tx{min-width:0;flex:1}.c2Tx b{display:flex;align-items:center;gap:3px;min-width:0;font:800 13px/1.15 Inter,system-ui}.c2R .c2Tx b{justify-content:flex-end}
.c2Tx small{display:block;font:600 11px/1.2 system-ui;color:#9aa0d8;overflow-wrap:anywhere}
.c2Ok{flex:none;font-style:normal;font-size:12px;color:#2fd07a;min-width:10px}
.c2Hr{width:38px;height:38px;flex:none;border-radius:10px;background:#0d0b34;border:1px solid #3a3f9a;display:grid;place-items:center;color:#5a5fb0;font:900 16px Baloo;overflow:hidden}.c2Hr img{width:100%;height:100%;object-fit:cover;object-position:50% 15%}
.c2Team.compact .c2P{min-height:44px;padding:4px 6px}.c2Team.compact .ava.c2Av{width:30px!important;height:30px!important}.c2Team.compact .c2Hr{width:32px;height:32px}.c2Team.compact .c2Tx b{font-size:12px}
.c2Ctr{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;min-height:0;height:100%}
.cs2 .csStage{position:relative;width:min(100%,560px);height:clamp(180px,31vh,270px);flex:none;border-radius:18px;overflow:hidden;background:radial-gradient(circle at 60% 80%,color-mix(in srgb,var(--hc) 45%,transparent),transparent 62%),linear-gradient(180deg,#0d0a32,#17104a 60%,#0b0828);border:1.5px solid color-mix(in srgb,var(--hc) 60%,#2a2f78);box-shadow:0 0 26px color-mix(in srgb,var(--hc) 28%,transparent),inset 0 -50px 70px #0008}
.cs2 .csGlow{position:absolute;left:60%;top:85%;width:900px;height:900px;margin:-450px;background:repeating-conic-gradient(from 0deg,#ffffff12 0 6deg,transparent 6deg 18deg);animation:c2Rot 60s linear infinite;pointer-events:none}
@keyframes c2Rot{to{transform:rotate(360deg)}}
.cs2 .csArt{position:absolute;left:62%;bottom:-5%;height:108%;transform:translateX(-50%);filter:drop-shadow(0 12px 18px #000c);pointer-events:none}
.cs2 .csInfo{position:absolute;left:14px;bottom:12px;max-width:min(52%,calc(100% - 28px));display:flex;flex-direction:column;gap:2px;text-shadow:0 2px 6px #000;box-sizing:border-box;padding:0 2px 0 0;z-index:2;pointer-events:none}
.cs2 .csRole{font:800 10px/1.25 system-ui;letter-spacing:.08em;text-transform:uppercase;color:var(--hc);overflow-wrap:anywhere;word-break:break-word;max-width:100%;white-space:normal}.cs2 .csName{font:900 clamp(22px,2.6vw,34px)/1.05 Baloo,system-ui;color:#fff;overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.cs2 .csTitle{font:700 11px/1.3 system-ui;color:#ddd;overflow-wrap:anywhere;word-break:break-word;max-width:100%;hyphens:auto}.cs2 .csSkinN{font:800 13px Baloo,system-ui;font-style:normal;color:#ffd36b}
.cs2 .csStats{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.cs2 .csStats span{display:inline-flex;gap:4px;padding:2px 8px;border-radius:99px;background:#000a;border:1px solid #ffffff22;font:700 11px system-ui}.cs2 .csStats i{font-style:normal}
/* badge top-left – nie nachodzi na twarz portretu (csArt ~62% right) */
.c2StB{position:absolute;left:10px;right:auto;top:8px;z-index:3;font:800 9px system-ui;letter-spacing:.08em;padding:2px 8px;border-radius:99px;background:#000a;border:1px solid #ffffff33;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs2 .csLock{flex:none;align-self:center;min-width:260px;padding:11px 26px;border-radius:14px;font:900 16px Baloo,system-ui;letter-spacing:.08em}
.cs2 .csLock.c2Go{color:#03200f;background:linear-gradient(180deg,#7cf5b0,#21c26a);box-shadow:0 0 22px #2fd07a77,0 4px 0 #0f7a3e;border:0}
.cs2 .csLock.done{opacity:.8}.cs2 .csLock.un{background:linear-gradient(180deg,#ff9aa8,#e0485f);color:#fff}.cs2 .csLock:disabled{filter:grayscale(.6);opacity:.6;cursor:default}
.c2Under{width:min(100%,780px);display:flex;flex-direction:column;gap:8px;min-height:0;flex:1}
.cs2 .csPick{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1}
.cs2 .csBar{display:flex;gap:10px 6px;row-gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}
.cs2 .csQ{width:170px;padding:7px 12px;border-radius:10px;border:1px solid #3a3f9a;background:#0b0930;color:#fff;font:600 12px system-ui}
.cs2 .csRoles{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;align-content:center}
.cs2 .csRc{padding:5px 9px;border-radius:99px;border:1px solid #3a3f9a;background:#100d3a;color:#cfd3ff;font:700 11px system-ui;white-space:nowrap;cursor:pointer}.cs2 .csRc.on{border-color:var(--rc);background:#123a4a;color:#fff}
.cs2 .csGrid{display:grid;grid-template-columns:repeat(auto-fill,84px);justify-content:center;gap:8px;overflow-y:auto;overflow-x:hidden;min-height:0;padding:4px 2px;scrollbar-width:thin;align-content:start}
.cs2 .csH{position:relative;width:84px;height:100px;border-radius:12px;border:1.5px solid #3a3f9a;background:linear-gradient(180deg,#1a1452,#0b0930);overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0;color:#fff;cursor:pointer}
.cs2 .csH img{position:absolute;inset:0 0 16px;width:100%;height:calc(100% - 16px);object-fit:contain;object-position:50% 100%;pointer-events:none}
.cs2 .csH span{position:relative;font:800 10px system-ui;background:#000b;width:100%;text-align:center;padding:2px 0}
.cs2 .csH:hover:not([disabled]){border-color:var(--rc);transform:translateY(-2px)}.cs2 .csH.on{border-color:#f5c542;box-shadow:0 0 14px #f5c54288}
.cs2 .csH.no{opacity:.45}.cs2 .csH i{position:absolute;top:26%;font-style:normal;font-size:18px}.cs2 .csH.tk{opacity:.4;filter:grayscale(.7)}
.cs2 .csH[disabled]{cursor:default}
.c2Sk{display:none;flex-direction:column;gap:8px;align-items:center;min-width:0;width:100%}
.cs2[data-step="2"] .c2Sk,.cs2[data-step="3"] .c2Sk{display:flex}.cs2[data-step="2"] .csPick,.cs2[data-step="3"] .csPick{display:none}
.cs2 .csSkins{display:flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-width:0}
.cs2 .csArr{flex:none;width:34px;height:110px;border-radius:12px;border:1px solid #3a3f9a;background:#100d3a;color:#fff;font:900 16px system-ui;cursor:pointer}
.cs2 .csSkRow{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;min-width:0;padding:6px 2px;scroll-behavior:smooth}.cs2 .csSkRow::-webkit-scrollbar{display:none}
.cs2 .csS{position:relative;width:124px;height:150px;flex:none;border-radius:14px;border:1.5px solid #3a3f9a;background:linear-gradient(180deg,#1a1452,#0b0930);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:0;color:#fff;cursor:pointer}
.cs2 .csS img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%;pointer-events:none}
.cs2 .csS span{position:relative;font:800 10.5px/1.15 system-ui;background:#000c;text-align:center;padding:3px 4px;overflow-wrap:anywhere;white-space:normal}
.cs2 .csS.on{border-color:#f5c542;box-shadow:0 0 16px #f5c54299;transform:translateY(-4px)}.cs2 .csS.no{filter:grayscale(.6) brightness(.7)}.cs2 .csS i{position:absolute;right:6px;top:4px;font-style:normal;font-size:13px}
.c2Chg{background:none;border:0;color:#9ad1ff;font:700 12px system-ui;text-decoration:underline;cursor:pointer}
.c2Hint{margin:0;text-align:center;font:600 11.5px system-ui;color:#c3c7f5}
/* szuflada czatu (wariant A): istniejący #acChat jako panel z prawej krawędzi + zakładka z licznikiem */
.c2Tab{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:151;writing-mode:vertical-rl;padding:14px 7px;border-radius:12px 0 0 12px;background:linear-gradient(180deg,#5a2fd6,#2f1a8a);border:1px solid #9b7bff;border-right:0;color:#fff;font:800 12px Baloo,system-ui;letter-spacing:.1em;display:flex;gap:6px;align-items:center;cursor:pointer;transition:right .25s}
.c2Tab[hidden]{display:none}
.c2Bd{position:absolute;left:-9px;top:-9px;writing-mode:horizontal-tb;min-width:18px;height:18px;border-radius:9px;background:#ff3d6e;font:900 11px/18px system-ui;text-align:center;box-shadow:0 0 8px #ff3d6e;padding:0 4px}.c2Bd[hidden]{display:none}
body.cs2Chat .c2Tab{right:min(340px,86vw)}
body.cs2On.cs2Chatable #acChat{position:fixed!important;left:auto!important;right:0!important;top:64px!important;bottom:0!important;width:min(340px,86vw)!important;height:auto!important;max-height:none!important;z-index:150;display:flex!important;flex-direction:column;padding:10px 12px;background:#0e0b34f7!important;border-left:1.5px solid #6b4cff;box-shadow:-20px 0 40px #000a;transform:translateX(105%);transition:transform .25s;pointer-events:auto;margin:0!important;border-radius:0!important}
body.cs2On.cs2Chatable #acChat[hidden]{display:none!important}
body.cs2On.cs2Chatable.cs2Chat #acChat{transform:none}
body.cs2On.cs2Chatable #acChat .chLog{flex:1;max-height:none!important;overflow-y:auto;overflow-x:hidden;background:transparent}
body.cs2On.cs2Chatable #acChat .chLog:empty{display:block}
body.cs2On.cs2Chatable #acChat .chLog:empty::before{content:"💬";display:block;text-align:center;opacity:.4;margin-top:40%}
body.cs2On:not(.cs2Chatable) .c2Tab{display:none}
/* gospodarze: lobby, pokój, trening */
#lobby.cs2Host{padding:0!important;overflow:hidden!important}#lobby.cs2Host>.lbTop,#lobby.cs2Host>.lbFoot,#lobby.cs2Host .lbList{display:none!important}
#lobby.cs2Host .lbCount{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
#lobby.cs2Host .lbCount[hidden]{display:none!important}
/* bugs-nov2: czytelne sekundy w timerze nagłówka (desk + A54 landscape) */
.cs2 .c2Tm b{color:#fff;text-shadow:0 0 8px #000c,0 1px 0 #000}
.cs2 .c2Tm:not(.off){opacity:1}
@media (orientation:landscape) and (max-height:500px){
  .cs2 .c2Tm{width:44px!important;height:44px!important;z-index:5}
  .cs2 .c2Tm b{font-size:16px!important;color:#fff!important}
}
#pick.pk2 .pkTop{display:none}
@media (max-width:1100px){.c2Main{grid-template-columns:clamp(170px,19vw,220px) minmax(0,1fr) clamp(170px,19vw,220px)}.cs2 .csLock{min-width:220px}.c2Steps span{padding:3px 7px}.c2Ph{display:none}}
@media (max-height:700px){.cs2 .csStage{height:clamp(160px,28vh,220px)}.cs2 .csH{width:76px;height:88px}.cs2 .csGrid{grid-template-columns:repeat(auto-fill,76px)}.cs2 .csS{width:108px;height:128px}}
@media (max-width:820px){.c2Main{grid-template-columns:1fr;overflow-y:auto}.c2Team .c2List{display:grid;grid-template-columns:1fr 1fr}.c2R{order:3}}
.cs2 .csInfo{align-items:flex-start;text-align:left;right:auto;top:auto;transform:none}
.cs2 .csPick{flex:0 1 auto}
body.cs2On #gChat{display:none!important}
html.acNoScr,html.hb-cs2On,body.cs2On{overflow:hidden!important}html.acNoScr,html.hb-cs2On{scrollbar-gutter:auto!important}

/* pokój (#room ma z-index 90) – wybór bohatera nad oknem pokoju, czat nad wyborem */
#rmCsHost>.cs2{z-index:96}
/* nick + korona VIP: nick z ellipsis, korona ZAWSZE zarezerwowana (bez nachodzenia) – phone i desk */
.c2Tx b{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;white-space:nowrap;font-size:clamp(11.5px,1.1vw,14px);overflow:hidden}
.c2R .c2Tx b{justify-content:flex-end}
.c2Tx .nkT{flex:0 1 auto;min-width:0;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal} /* max = rodzic minus korona+gap; korona zaraz po nicku; ellipsis tylko gdy tekst > max */
.c2Tx .vipCr,.c2Tx .hostCr{flex:0 0 14px;width:14px;height:14px;min-width:14px;margin:0;display:block;overflow:visible}
.c2P .c2Ok{flex:none}
.c2P .c2Ok:empty{min-width:0;width:0;padding:0;margin:0;overflow:hidden;font-size:0;border:0} /* nie rezerwuj 10px gdy brak ✔/⚠ */
.c2Tx b>img,.c2Tx b>.ff,.c2Tx b>svg:not(.vipCr):not(.hostCr){flex:0 0 auto}
.c2Tx small{white-space:normal;overflow-wrap:anywhere}
@media (max-width:1100px){.c2Hr{display:none}}
/* ===== v11: jeden kompaktowy styl czatu – szuflada wyboru bohatera i panel „Czat serwera” w pokoju ===== */
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat{display:flex!important;flex-direction:column!important;min-height:0;font-size:13px;pointer-events:auto}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chLog{flex:1 1 auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column;gap:1px!important;padding:6px 4px!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#7d6bff55 transparent;scrollbar-gutter:auto}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chLog::-webkit-scrollbar{width:6px}:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chLog::-webkit-scrollbar-thumb{background:#7d6bff55;border-radius:3px}:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chLog::-webkit-scrollbar-track{background:transparent}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chM{position:relative;display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:0 8px!important;align-items:start!important;padding:5px 8px!important;margin:0!important;max-width:none!important;width:auto!important;border:0!important;border-radius:8px!important;background:none!important;box-shadow:none!important;text-shadow:none!important;animation:none}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chM:hover{background:#ffffff0a!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chM.vipMsg{background:linear-gradient(90deg,#f5c54212,transparent)!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chM.chSys{display:block!important;text-align:center;font-size:11.5px;color:#a9a6e8;padding:3px 8px!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chAvW{position:relative;width:24px;height:24px;margin:1px 0 0!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chAv{width:24px!important;height:24px!important;min-width:0!important;border-width:1px!important;font-size:12px!important;box-shadow:none!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chAvCr{width:11px!important;height:11px!important;top:-6px!important;left:6px!important;right:auto!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chB{display:block!important;min-width:0;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chH{display:flex!important;align-items:baseline;gap:6px;min-width:0;line-height:1.25;font-size:12px}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chNk{white-space:nowrap;font-size:12px!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chTm{font-size:10.5px!important;color:#8f8bc7!important;opacity:1;margin:0!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chTx{display:block!important;font-size:13px!important;line-height:1.38;color:#eceeff;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;margin:1px 0 0!important}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chMute{position:absolute;right:6px;top:3px;opacity:0;font-size:11px;padding:1px 4px}:is(#slChatHost,body.cs2On.cs2Chatable) #acChat .chM:hover .chMute{opacity:.8}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat #chForm{display:flex!important;align-items:center;gap:6px;width:auto!important;margin:0!important;padding:8px!important;border-top:1px solid #ffffff14;background:#0a0828aa!important;flex:none}
:is(#slChatHost,body.cs2On.cs2Chatable) #acChat #chForm input{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important}
/* ===== v11: poczekalnia pokoju – symetrycznie (niebiescy | VS | czerwoni), Rozpocznij na środku, prawa kolumna: ustawienia (zwijane) + czat na całą wysokość ===== */
#room.slNoCs{overflow:hidden!important;place-items:stretch center!important;padding:0 12px!important}
#room.slNoCs>.slWrap{height:100vh;height:100dvh;box-sizing:border-box;margin-top:0!important;padding:clamp(10px,2.2vh,22px) 18px 14px!important;display:flex!important;flex-direction:column;gap:12px;width:min(1320px,100%)!important}
#room.slNoCs>.slWrap>*{flex:none}
#room .slMain:not(.csMode){flex:1 1 auto!important;min-height:0;display:grid!important;grid-template-columns:minmax(0,1fr) clamp(280px,27vw,360px)!important;gap:14px;align-items:stretch}
#room .slLeft{display:flex;flex-direction:column;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#7d6bff55 transparent}
#room .slMain:not(.csMode) .slTeams{grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr)!important;align-items:start}
#room .slMain:not(.csMode) .slVs{align-self:center;justify-self:center;margin:0}
#room .slLeft .slFoot{position:static!important;background:none!important;padding:18px 0 4px!important;margin-top:auto;display:flex;justify-content:center;pointer-events:auto}
#room .slLeft .slFoot:empty{display:none}
#room .slMain:not(.csMode) .slSide{display:flex!important;flex-direction:column;gap:12px;min-height:0;min-width:0}
#room .slSide .slSet{flex:none;padding:10px 14px!important}#room .slSet>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px}#room .slSet>summary::-webkit-details-marker{display:none}
#room .slSet>summary::after{content:"▾";margin-left:6px;opacity:.7;transition:transform .2s}#room .slSet:not([open])>summary::after{transform:rotate(-90deg)}
#room .slSetC{margin-left:auto;font:600 11px system-ui;color:#a9a6e8;font-style:normal}#room .slSetB{display:grid;gap:8px;margin-top:8px}
#room .slSide .slChat{flex:1 1 auto;min-height:220px;display:flex!important;flex-direction:column;padding:10px 0 0!important;overflow:visible}
#room .slSide .slChat>h4{padding:0 14px 8px;border-bottom:1px solid #ffffff14}
#room #slChatHost{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:none!important}
#room #slChatHost #acChat{flex:1 1 auto;height:auto!important;min-height:0;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
body.inRoom:not(.cs2On) #gChat{display:none!important}
@media (max-width:900px){#room.slNoCs{overflow-y:auto!important}#room.slNoCs>.slWrap{height:auto}#room .slMain:not(.csMode){grid-template-columns:1fr!important}#room .slMain:not(.csMode) .slTeams{grid-template-columns:minmax(0,1fr)!important}#room .slSide .slChat{min-height:320px}}
html.hb-inRoom,body.inRoom{overflow:hidden!important}html.hb-inRoom{scrollbar-gutter:auto!important}
/* pełne nicki w slotach pokoju; przy wąskim ekranie „GOTOWY” → ✔, niższe ekrany: ciaśniejsze ustawienia, czat zawsze widoczny */
#room .slot>div>b{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden}#room .slot .nkT{flex:0 1 auto;min-width:0;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}#room .slot .vipCr,#room .slot .hostCr{flex:0 0 14px;width:14px;height:14px;min-width:14px;margin:0;display:block}#room .slot>div>small{white-space:normal}
@media (max-width:1200px){#room .slMain:not(.csMode){grid-template-columns:minmax(0,1fr) clamp(250px,25vw,320px)!important}#room .slMain:not(.csMode) .slTeams{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr)!important}#room .slMain:not(.csMode) .slVs{font-size:26px}#room .slot .rdy{font-size:0!important;padding:0!important;width:22px;height:22px;display:grid;place-items:center;border-radius:50%}#room .slot .rdy.on::after{content:"✔";font-size:12px}#room .slot .rdy:not(.on)::after{content:"…";font-size:12px}}
@media (max-height:800px){#room.slNoCs>.slWrap{gap:8px}#room .slSetB{gap:5px}#room .slSetB label{gap:2px!important;font-size:12px!important}#room .slSetB :is(input,select){padding:5px 8px!important}#room .slSide .slChat{min-height:170px}}
#room .slLeft>.slTeams{flex:none}#room .slLeft .slFoot{position:sticky!important;bottom:0;z-index:2;background:none!important;padding:14px 0 2px!important}
#room .slMain:not(.csMode) .tCol:has(>.slot:nth-of-type(4)){gap:6px}#room .slMain:not(.csMode) .tCol:has(>.slot:nth-of-type(4))>.slot{height:52px!important;min-height:52px!important;padding-top:4px;padding-bottom:4px}#room .slMain:not(.csMode) .tCol:has(>.slot:nth-of-type(4))>.slot .sAv{width:36px;height:36px}
#room .slMain:not(.csMode){grid-template-rows:minmax(0,1fr)}
@media (min-width:1600px) and (min-height:900px){.cs2 .csStage{width:min(100%,700px);height:clamp(270px,32vh,360px)}.cs2 .csH{width:100px;height:120px}.cs2 .csGrid{grid-template-columns:repeat(auto-fill,100px);gap:10px}.cs2 .csS{width:140px;height:170px}.c2Main{grid-template-columns:clamp(260px,17vw,320px) minmax(0,1fr) clamp(260px,17vw,320px)}.c2P{min-height:60px}.cs2 .csLock{font-size:19px}}
body.cs2Chatable .cs2 .c2Main{padding-left:44px;padding-right:44px} /* CZAT rail — phone override zeros left (blackstrip-30) */
#room .slMain:not(.csMode) .slTeams.ffa{grid-template-columns:minmax(0,1fr)!important}
/* ogladaj (właściciel 23.10): siatka bohaterów pokazuje zawsze DWA pełne rzędy (kafelek ×2 + odstęp + padding); dalsze rzędy – zwykłe przewijanie */
.cs2 .csGrid{--th:100px;--tg:8px;box-sizing:border-box;flex:none;max-height:none;height:calc(2 * var(--th) + var(--tg) + 8px)} /* v9.css ucinało do 22vh (przy 768 px = 169 px → półtora rzędu) */
@media (max-height:700px){.cs2 .csGrid{--th:88px}}
@media (min-width:1600px) and (min-height:900px){.cs2 .csGrid{--th:120px;--tg:10px}}
/* czat-telefon (24.10): na telefonie szuflada czatu mniejsza (≈62% szerokości, maks. 300 px, ≈60% wysokości), wyśrodkowana w poziomie i wysuwana od dołu; bez lagu przy otwieraniu:
   panel na własnej warstwie (will-change), tylko transform, lżejszy cień; zakładka nie animuje „right” (przeliczanie układu w każdej klatce).
   Klawiatura: chatkb.js ustawia --kb (ile klawiatura zasłania od dołu) i --vvh (widoczna wysokość) z visualViewport – panel i pole wpisywania zawsze nad klawiaturą (Chrome i WebView APK). Desktop bez zmian. */
@media (max-width:640px){
  body{--chW:min(300px,62vw)}
  body.cs2On.cs2Chatable #acChat{top:auto!important;left:calc(50% - var(--chW) / 2)!important;right:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px) + var(--kb,0px))!important;width:var(--chW)!important;height:min(60vh,520px)!important;height:min(60dvh,520px,calc(var(--vvh,100dvh) - 24px))!important;max-height:calc(var(--vvh,100dvh) - 24px)!important;padding:6px 8px!important;border:1.5px solid #6b4cff;border-radius:14px!important;box-shadow:0 4px 14px #0009;will-change:transform;contain:layout paint;transform:translateY(calc(100% + 40px + var(--kb,0px)));visibility:hidden;transition:transform .2s ease-out,visibility 0s .2s}
  body.cs2On.cs2Chatable.cs2Chat #acChat{transform:none;visibility:visible;transition:transform .2s ease-out,visibility 0s}
  body.cs2On.cs2Chatable #acChat .chLog{contain:content}
  body.cs2On.cs2Chatable #room #slChatHost #acChat{background:#0e0b34f7!important;border:1.5px solid #6b4cff!important;box-shadow:0 4px 14px #0009!important;padding:6px 8px!important} /* wyśrodkowany panel nad treścią: tło nieprzezroczyste (w pokoju #room było „none” – tekst czatu zlewał się z kartami) */
  .c2Tab,body.cs2Chat .c2Tab{right:0;transition:none}
  body.cs2On.cs2Chatable #acChat .chLog:empty::before{margin-top:25%}
}

/* hero-card phone: stała wysokość (~najwyższy tekst), tekst inset 14px + wyśrodkowany w pionie,
   portret ~93% wysokość karty, kotwica dół-prawo (stopy mogą dotykać dołu, bez ucięcia tułowia) */
@media (max-width:820px){
  .c2Steps span{padding:2px 6px;font-size:10px}
  .c2Steps i{display:none}
  .c2Title b{font-size:clamp(15px,4.2vw,18px)}
  .c2Sub{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* stabilna wysokość z tallest (Kwazar) + 14px pad; min 200 – bez pustego pasa i bez skoku między bohaterami */
  .cs2 .csStage{height:208px;min-height:200px;max-height:208px}
  .cs2.mvOn .csStage{height:208px;min-height:200px;max-height:208px}
  .cs2 .csArt{left:auto;right:0;bottom:0;height:95%;width:auto;max-width:50%;transform:none;object-fit:contain;object-position:bottom right}
  .cs2 .csGlow{left:78%;top:92%}
  .cs2 .csName{font-size:clamp(17px,4.8vw,22px);line-height:1.05}
  .cs2 .csTitle{font-size:10px;line-height:1.25}
  .cs2 .csRole{font-size:9px}
  .cs2 .csSkinN{font-size:11px}
  .cs2 .csStats{gap:3px;margin-top:4px}
  .cs2 .csStats span{padding:1px 6px;font-size:10px}
  /* inset ~14px ze wszystkich stron karty; justify-content:center = pionowe wyśrodkowanie gdy tekst krótszy */
  .cs2 .csInfo{left:14px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);max-width:min(44%,calc(100% - 28px));max-height:calc(100% - 28px);overflow:hidden;justify-content:flex-start;gap:2px;padding:0;box-sizing:border-box}
  .c2StB{display:none!important} /* phone: nie zasłania twarzy portretu */
  /* search = szerokość bloku chipów */
  .cs2 .csBar{flex-direction:column;flex-wrap:nowrap;align-items:stretch;width:100%;max-width:100%;overflow-x:hidden}
  .cs2 .csRotT{flex:0 0 auto!important;width:100%;height:auto}
  .cs2 .csQ{width:100%;max-width:100%;box-sizing:border-box}
  .cs2 .csRoles{width:100%;max-width:100%;justify-content:flex-start}
}

@media (max-width:520px){
  .c2Steps{display:none!important} /* phone: nie mieszczą się w c2Mid przy głosowaniu */
  .cs2 .csStage{height:200px;min-height:200px;max-height:200px}
  .cs2.mvOn .csStage{height:200px;min-height:200px;max-height:200px}
  .cs2 .csRole{font-size:9px;letter-spacing:.04em}
  .cs2 .csName{font-size:clamp(16px,4.6vw,20px)}
  .cs2 .csTitle{font-size:9px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .cs2 .csSkinN{font-size:10px}
  .cs2 .csStats{gap:2px;margin-top:2px}
  .cs2 .csStats span{padding:1px 5px;font-size:9px}
  .cs2 .csInfo{left:14px;top:50%;bottom:auto;transform:translateY(-50%);max-width:min(44%,calc(100% - 28px));max-height:calc(100% - 28px)}
  .cs2 .csArt{height:95%;right:0;bottom:0;max-width:50%}
}
/* roles-29 phone 4+3: zrównoważony układ chipów (Wszyscy+6) */
@media (max-width:700px){.cs2 .csRoles{gap:4px;max-width:100%}.cs2 .csRoles>.csRc{flex:0 0 calc((100% - 12px)/4);box-sizing:border-box;justify-content:center;text-align:center;min-width:0;padding:5px 4px;font-size:10.5px}}

/* nick-fit phone: CZAT rail ciaśniejszy + kompaktowy kafelek – Demo_Gamma (10) z koroną musi się zmieścić */
@media (max-width:820px){
  body.cs2Chatable .cs2 .c2Main{padding-left:0;padding-right:max(34px,var(--acEdge,34px))} /* blackstrip-30: no left band; CZAT stays right */
  .c2Team.compact .c2P{padding:4px 3px;gap:5px}
  .c2Team.compact .ava.c2Av{width:28px!important;height:28px!important}
  .c2Team .c2List{gap:5px}
}



/* lobby1v1-fix29: short + map-vote must keep the full hero list reachable.
   Root cause: stage + Zatwierdź + mvStrip pushed .c2Under/.csGrid past the fold while
   .cs2 { overflow:hidden } and desktop .c2Main had overflow:visible — no way to scroll.
   Fix: constrain the center column to the viewport, scroll it when needed, keep the
   2-row .csGrid scrollport, move Zatwierdź under the grid and stick it to the bottom. */
/* desktop: pin pick UI to the viewport so stage+strip never push the grid off-screen */
.cs2{height:100%;max-height:100%;min-height:0;box-sizing:border-box}
.c2Main{align-items:stretch;min-height:0;height:100%;max-height:100%;overflow:hidden}
.c2Ctr{
  min-height:0;height:100%;max-height:100%;
  overflow-x:hidden;overflow-y:auto;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  display:flex;flex-direction:column;
}
.cs2 .csStage{order:1;flex:none}
.cs2 .mvStrip{order:2;flex:none}
.cs2 .c2Under{order:3;flex:0 0 auto;min-height:0}
.cs2 .c2Act{
  order:4;position:sticky;bottom:0;z-index:6;flex:none;
  width:100%;max-width:100%;box-sizing:border-box;
  display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;
  padding:8px 4px calc(6px + env(safe-area-inset-bottom,0px));
  margin-top:2px;
  background:linear-gradient(180deg,transparent 0%,#07051cf5 36%);
}
/* keep existing 2-row grid scrollport (do NOT grow to all heroes) */
.cs2 .csPick{flex:0 0 auto;min-height:0}
/* short laptop / short window: shrink stage so map-vote + 2-row grid fit with less scrolling */
@media (max-height:740px){
  .cs2 .csStage{height:clamp(110px,20vh,150px)}
  .cs2.mvOn .csStage{height:clamp(100px,18vh,140px)}
}
@media (max-height:620px){
  .cs2 .csStage,.cs2.mvOn .csStage{height:clamp(88px,16vh,120px)}
  .cs2 .c2Act{padding:6px 4px 4px}
  .cs2 .csLock{min-width:200px;padding:9px 18px;font-size:15px}
}
/* phone: outer .c2Main already scrolls; keep ctr from forcing a second nested trap */
@media (max-width:820px){
  .c2Main{overflow-y:auto;-webkit-overflow-scrolling:touch;height:auto;max-height:100%}
  .c2Ctr{height:auto;max-height:none;overflow-y:visible}
  .cs2 .c2Act{position:sticky;bottom:0}
}

/* lobby1v1-fix29 phone: with map-vote, shrink stage so 2-row grid + Zatwierdź fit after a short scroll */
@media (max-width:820px){
  .cs2.mvOn .csStage{height:140px;min-height:120px;max-height:140px}
  .cs2.mvOn .csArt{height:92%}
  .cs2.mvOn .c2Under{padding-bottom:4px}
}
@media (max-width:520px){
  .cs2.mvOn .csStage{height:120px;min-height:110px;max-height:120px}
}

/* ghosts/blackstrip-30: Android SHORT_EDGES cutout — .cs2 bg must paint under insets (no WebView #0B0826 strip),
   content inset so hero-pick isn't covered by punch-hole / side safe-area. Portrait wybór postaci. */
.cs2{
  padding-top:env(safe-area-inset-top,0px);
  padding-right:env(safe-area-inset-right,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  padding-left:env(safe-area-inset-left,0px);
  background-color:#07051c; /* solid under gradients so any gap ≠ pure black WebView */
}
html.hb-cs2On,body.cs2On{background:#07051c!important}
/* match: fill cutout with battle bg so landscape short-edge isn't a black WebView strip */
#battle{background:#0a0b24;background-color:#0a0b24}
html.inApp body.battleOn,body.battleOn{background:#0a0b24!important}


/* pickscroll-31: steady hero-list scrollbar
   Cause: overflow-y:auto + auto-fill grid width oscillated as the scrollbar appeared/disappeared
   (content width ↔ column count ↔ height), and lobby taken/hero ticks remounted .csGrid (scrollTop reset).
   Fix: always reserve/show the vertical scrollbar on desktop; phone keeps page scroll (mapwybor). */
@media (min-width:821px){
  /* pickscroll-31b: force classic (non-overlay) scrollbar — thin+overlay left sbPixels=0 and invisible track */
  .cs2 .csGrid{
    overflow-y:scroll!important;overflow-x:hidden!important;
    scrollbar-gutter:stable both-edges;
    scrollbar-width:auto!important; /* auto, not thin — prefer classic gutter */
    scrollbar-color:#9b5cff #1a1438;
    padding-right:4px; /* layout reserve even if UA overlays */
  }
  .cs2 .csGrid::-webkit-scrollbar{width:14px!important;height:14px!important;background:#1a1438}
  .cs2 .csGrid::-webkit-scrollbar-track{background:#1a1438;border-radius:8px;box-shadow:inset 0 0 0 1px #7d6bff44}
  .cs2 .csGrid::-webkit-scrollbar-thumb{background:linear-gradient(#b084ff,#7d6bff);border-radius:8px;border:2px solid #1a1438;min-height:40px}
  .cs2 .csGrid::-webkit-scrollbar-thumb:hover{background:#c9a6ff}
  .cs2 .c2Ctr{scrollbar-gutter:stable}
}


/* lobby-1 app landscape 900×415: stage+map-vote+Zatwierdź must fit; Krok 2/2 stays visible above sticky lock */
@media (max-height:480px) and (min-width:700px){
  .cs2.mvOn .csStage{height:88px!important;min-height:72px!important;max-height:88px!important}
  .cs2.mvOn .csArt{height:86%}
  .cs2 .c2Act{
    position:sticky;bottom:0;z-index:6;
    padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));
    margin-top:0;
    background:linear-gradient(180deg,transparent 0%,#07051cfa 28%);
  }
  .cs2 .csLock{min-width:160px;padding:8px 14px;font-size:14px}
  .cs2 .c2Under{padding-bottom:2px}
  .cs2 .csHint,.cs2 .c2Hint,.cs2 [data-cs-hint]{font-size:11px;line-height:1.25;margin:2px 0;padding-bottom:2px}
  /* keep step line above the sticky confirm */
  .cs2 .c2Ctr{padding-bottom:2px}
}
html.inApp .cs2.mvOn .c2Act{max-width:100%}
