/* lobby-28: Zapisano ✓ fully visible + FULL-PAGE tournament lobby (main-page language) */
/* --- featured emblem CTA: never clipped by hero art; hbtns stay ABOVE emblem (qa-fix GRAJ TERAZ) --- */
html[class*=emb] .emblem{z-index:3;overflow:visible}
html[class*=emb] .hbtns{z-index:4}
.emblem .eWrap{overflow:visible;isolation:isolate}
.emblem .tsign{position:relative;z-index:2;margin-top:8px;padding-top:2px;isolation:isolate;display:flex;justify-content:center;pointer-events:auto}
.emblem .tsign .btn,.emblem .tsb{
  position:relative;z-index:2;
  font:900 17px/1 Barlow,system-ui!important;
  letter-spacing:.04em;
  padding:13px 26px!important;
  border-radius:14px;
  white-space:nowrap;
  transform:translateZ(0);
}
.emblem .tsb.done,.emblem .tsign .btn.done{
  background:linear-gradient(180deg,#1f8a4e,#14532d)!important;
  border:2px solid #5ef0a0!important;
  color:#f0fff6!important;
  opacity:1!important;
  box-shadow:0 0 22px #2fd07a99,0 6px 0 #0a3d24!important;
}
html[class*=emb] .hchars{z-index:1!important}
html[class*=emb] .emblem .live{z-index:5!important;margin-bottom:2px}
@media (max-width:820px){
  .emblem .tsign{margin-top:6px}
  .emblem .tsign .btn,.emblem .tsb{font-size:15px!important;padding:11px 18px!important}
  /* phone: .hb.modes (data-nav=gry) sat under fixed .bnav — lift whole dock above it */
  .hero .hbtns{
    bottom:calc(12px + 66px + env(safe-area-inset-bottom,0px))!important;
  }
  .hero{
    /* keep room for raised dock; avoid clipping play/modes under bnav */
    padding-bottom:0;
  }
}

/* ========== FULL-PAGE LOBBY (desktop: scena + prawa kolumna) ========== */
#tourLobby{
  position:fixed;inset:0;z-index:9200;
  display:none;flex-direction:column;
  box-sizing:border-box;color:#fff;overflow:hidden;
  background:#05081c!important;
  opacity:1!important;
  font-family:Barlow,system-ui,sans-serif;
  animation:tlIn .32s ease-out both;
}
#tourLobby.on{display:flex;background:#05081c!important;opacity:1!important}
@keyframes tlIn{from{transform:translateY(10px)}to{transform:none}}
/* Hide main app under lobby — no bleed-through, saves FPS (no main-page paint) */
body.tlOpen #app{
  visibility:hidden!important;pointer-events:none!important;
  content-visibility:hidden;
}
body.tlOpen #acBoot{display:none!important}

/* top bar – matches shell header feel */
#tourLobby .tlBar{
  flex:none;display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));
  background:#05081c;
  border-bottom:1px solid #7a5cff44;
  box-shadow:0 8px 28px #0006;
}
#tourLobby .tlBarBack{
  appearance:none;border:1.5px solid #7a5cff88;background:#1a1458cc;color:#e9e3ff;
  font:800 13px Barlow;padding:8px 14px;border-radius:12px;cursor:pointer;
}
#tourLobby .tlBarBack:hover{border-color:#f5c54288;color:#ffe08a}
#tourLobby .tlTitle{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#tourLobby .tlTitle small{font:800 11px Barlow;letter-spacing:.16em;color:#aab4d8;text-transform:uppercase}
#tourLobby .tlTitle b{font:900 clamp(16px,2.2vw,34px)/1.1 Baloo,sans-serif;color:#ffe08a;text-shadow:0 0 22px #f5c54288;white-space:normal;overflow:visible;word-break:break-word}
#tourLobby .tlMeta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#tourLobby .tlMeta span,#tourLobby .tlPill{
  padding:5px 12px;border-radius:999px;background:#ffffff12;border:1px solid #ffffff22;
  font:800 12px Barlow;color:#cfc4ff;letter-spacing:.04em
}
#tourLobby .tlTopActs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}

/* phone tabs */
#tourLobby .tlTabs{
  display:none;flex:none;gap:6px;padding:8px 12px;
  background:#05081c;border-bottom:1px solid #7a5cff33;
}
#tourLobby .tlTabs button{
  flex:1;appearance:none;border:1.5px solid #7a5cff55;background:#1a145866;color:#cfc4ff;
  font:900 12px/1 Barlow;letter-spacing:.06em;text-transform:uppercase;
  padding:10px 6px;border-radius:12px;cursor:pointer;
}
#tourLobby .tlTabs button.on{border-color:#f5c542;color:#ffe08a;background:#2a1a58;box-shadow:0 0 16px #f5c54244}

/* main grid */
#tourLobby .tlShell{
  flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(320px,420px);
  gap:16px;padding:14px max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
}

/* ---- CENTER STAGE ---- */
#tourLobby .tlStage{
  min-height:0;display:flex;flex-direction:column;gap:12px;
  position:relative;border-radius:22px;overflow:hidden;
  border:2px solid #f5c54266;
  box-shadow:0 0 40px #f5c54233,0 0 80px #5a3cff22,inset 0 1px 0 #ffe08a33;
  background:#0a0626;
}
#tourLobby .tlStageBg{
  position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(900px 500px at 70% 10%,#ff3fb444,transparent),
    radial-gradient(800px 600px at 10% 90%,#1fd1d133,transparent),
    linear-gradient(180deg,#05081c33 0%,#05081c66 55%,#05081ce8 100%),
    url(img/bg-neon.jpg) center 30%/cover no-repeat;
  filter:saturate(1.2) brightness(1.08);
  transform:scale(1.05);
}
#tourLobby .tlStageBg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 40%,#05081caa 100%);
  pointer-events:none;
}
#tourLobby .tlStageIn{position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;padding:18px 18px 8px;gap:10px;overflow:hidden}
#tourLobby .tlStageScroll{
  position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;
  overflow:auto;-webkit-overflow-scrolling:touch;
}
#tourLobby .tlStage > .tlReadyRow{
  position:relative;z-index:3;flex:none;
  background:#05081c;
  border-top:1px solid #f5c54244;
  padding:10px 12px max(10px,env(safe-area-inset-bottom));
}

/* gold emblem plate – same language as IGRZYSKA */
#tourLobby .tlPlate{
  width:min(560px,94%);
  padding:14px 22px 18px;border-radius:18px;text-align:center;
  background:linear-gradient(165deg,#1e1668ee,#0c1238f2);
  border:3px solid #f5c542;
  box-shadow:0 0 36px #f5c54255,inset 0 1px 0 #ffe08a44;
}
#tourLobby .tlPlate .tlLive{
  display:inline-flex;align-items:center;gap:8px;
  margin:-28px auto 8px;padding:8px 16px;border-radius:999px;
  background:linear-gradient(180deg,#e11d48,#9f1239);border:2px solid #fecdd3;
  font:900 14px/1 Barlow;letter-spacing:.1em;box-shadow:0 0 18px #e11d4888;
}
#tourLobby .tlPlate .tlLive i{width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 10px #fff;animation:tlBlink 1.2s ease infinite}
@keyframes tlBlink{50%{opacity:.35}}
#tourLobby .tlPlate .eT2{display:block;font:800 13px Barlow;letter-spacing:.26em;color:#aab4d8;margin-bottom:2px}
#tourLobby .tlPlate .eT1{display:block;font:900 clamp(28px,4vw,48px)/1 Baloo,sans-serif;color:#ffe08a;text-shadow:0 0 24px #f5c54299;letter-spacing:.04em;margin:2px 0 10px}
#tourLobby .tlCdLabel{font:800 11px Barlow;letter-spacing:.14em;color:#aab4d8;text-transform:uppercase;margin-bottom:4px}
#tourLobby .tlCd{
  display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 0 12px;
}
#tourLobby .tlCd div{
  min-width:58px;padding:10px 8px;border-radius:14px;text-align:center;
  background:#05081ccc;border:1px solid #a8792a;box-shadow:inset 0 0 14px #f5c54222,0 0 12px #f5c54222;
}
#tourLobby .tlCd b{display:block;font:900 32px/1 Baloo,sans-serif;color:#ffd36b;text-shadow:0 0 12px #f5c54299}
#tourLobby .tlCd small{font:800 10px Barlow;letter-spacing:.14em;color:#aab4d8;text-transform:uppercase}
#tourLobby .tlPrize{
  display:flex;align-items:center;justify-content:center;gap:14px;
  margin:0 auto;padding:10px 14px;border-radius:14px;max-width:420px;
  background:#ffffff10;border:1px solid #f5c54244;
}
#tourLobby .tlPrize img{width:84px;height:auto;filter:drop-shadow(0 0 16px #f5c542cc)}
#tourLobby .tlPrize b{font:900 18px Barlow;color:#ffe08a;display:block}
#tourLobby .tlPrize small{color:#cfc4ff;font:700 12px Barlow}

/* heroes standing on stage */
#tourLobby .tlLineup{
  display:flex;align-items:flex-end;justify-content:center;gap:clamp(4px,1.2vw,14px);
  min-height:110px;margin-top:auto;padding:8px 8px 6px;width:100%;flex:none;
  filter:drop-shadow(0 8px 18px #000a);
  position:relative;z-index:1;
}
#tourLobby .tlStageIn .tlFmt{position:relative;z-index:3;flex:none}
#tourLobby .tlLineup .tlFig{
  /* identical cards for every player — reset global .me pill (min-width:280px etc.) */
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;
  flex:0 0 auto;width:88px;min-width:0!important;max-width:88px;
  margin:0;padding:6px 4px 4px;
  background:transparent!important;border:2px solid transparent;border-radius:14px;
  box-shadow:none;cursor:default;box-sizing:border-box;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
#tourLobby .tlLineup .tlFig img{
  width:clamp(52px,6.5vw,88px);height:auto;object-fit:contain;
  filter:drop-shadow(0 0 10px #5a3cff66);
}
#tourLobby .tlLineup .tlFig.me{
  border-color:#f5c542;
  background:transparent!important;
  box-shadow:0 0 0 1px #f5c54266,0 0 16px #f5c54244;
}
#tourLobby .tlLineup .tlFig.me img{filter:drop-shadow(0 0 14px #f5c542cc)}
#tourLobby .tlLineup .tlFig.rdy img{filter:drop-shadow(0 0 14px #2fd07acc)}
#tourLobby .tlLineup .tlFig small{
  font:800 10px Barlow;color:#cfc4ff;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-shadow:0 1px 4px #000c;
}
#tourLobby .tlLineup .tlFig.vip small{color:#ffe08a}

/* bracket / plan strip under stage */
#tourLobby .tlStrip{
  flex:none;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:stretch;
  padding:10px 14px 12px;position:relative;z-index:5;isolation:isolate;
  background:linear-gradient(180deg,#0a0626ee,#05081cf5);
  border-top:1px solid #f5c54255;
  box-shadow:0 -8px 24px #05081c88;
}
#tourLobby .tlStripItem{
  flex:1 1 140px;max-width:220px;min-width:120px;padding:10px 14px;border-radius:14px;text-align:center;
  background:linear-gradient(165deg,#241a6eee,#0c1238f2);
  border:1.5px solid #7a5cff88;box-shadow:0 0 16px #5a3cff33;
}
#tourLobby .tlStripItem b{display:block;font:900 13px Barlow;color:#ffe08a;margin-bottom:2px}
#tourLobby .tlStripItem span{font:600 11px Barlow;color:#cfc4ff}
#tourLobby .tlStripItem.on{border-color:#f5c542;box-shadow:0 0 18px #f5c54255}

/* hero/skin picker – bottom tiles like main page */
#tourLobby .tlPickDock{
  flex:none;display:flex;flex-direction:column;gap:8px;
  padding:10px 12px 12px;position:relative;z-index:2;
  background:#05081c;
}
#tourLobby .tlSkLab{
  display:block;font:800 12px Barlow;letter-spacing:.1em;text-transform:uppercase;color:#cfc4ff;
  margin:2px 0 0;padding:0 2px;
}
#tourLobby .tlPickRow.skins{
  flex-direction:row;align-items:stretch;padding-left:2px;
}
#tourLobby .tlPickRow.skins .tlSk{margin:0}
#tourLobby .tlPickDock .tlPickH{display:flex;align-items:center;justify-content:space-between;gap:8px}
#tourLobby .tlPickDock .tlPickH b{font:800 12px Barlow;letter-spacing:.1em;text-transform:uppercase;color:#cfc4ff}
#tourLobby .tlLockPill{font:900 10px Barlow;padding:3px 8px;border-radius:999px;background:#ff3b3b44;border:1px solid #ff6b6b;color:#ffd0d0}
#tourLobby .tlPickRow{
  display:flex;gap:8px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:thin;
}
#tourLobby .tlH,#tourLobby .tlSk{
  appearance:none;flex:none;border:2px solid #7a5cff66;background:linear-gradient(165deg,#1a1458,#0c1238);
  border-radius:16px;padding:10px 12px;color:#fff;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:6px;min-width:88px;
  box-shadow:0 0 16px #5a3cff33,inset 0 1px 0 #ffffff14;
}
#tourLobby .tlH img,#tourLobby .tlSk img{width:56px;height:56px;object-fit:contain;display:block}
#tourLobby .tlH span{font:800 11px Barlow;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tourLobby .tlH.on,#tourLobby .tlSk.on{border-color:#f5c542;box-shadow:0 0 22px #f5c54266}
#tourLobby .tlH:disabled,#tourLobby .tlSk:disabled{opacity:.4;cursor:not-allowed}
#tourLobby .tlVipSkin{font:700 11px Barlow;color:#ffe08a}
#tourLobby .tlReadyRow{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding-top:4px}
#tourLobby .tlReadyBtn{
  min-width:280px;font:900 20px/1.1 Barlow!important;padding:16px 36px!important;border-radius:16px;
  color:#fff!important;letter-spacing:.04em;
  background:linear-gradient(180deg,#2a9d5c,#176b3a)!important;
  border:2px solid #8dffc0!important;
  box-shadow:0 0 28px #2fd07a99,0 6px 0 #0a3d24,inset 0 1px 0 #ffffff44!important;
  text-shadow:0 1px 0 #0a3d24;
}
#tourLobby .tlReadyBtn.on{
  background:linear-gradient(180deg,#3ecf78,#1a7a44)!important;
  border-color:#ffe08a!important;color:#fff!important;
  box-shadow:0 0 32px #2fd07acc,0 6px 0 #0a3d24,inset 0 1px 0 #ffffff55!important;
}
#tourLobby .tlReadyBtn.on,#tourLobby .tlReadyBtn{color:#fff!important}
#tourLobby .tlFmt{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  margin:4px auto 0;padding:8px 16px;border-radius:999px;max-width:94%;
  background:linear-gradient(180deg,#1e1668ee,#0c1238f2);
  border:1.5px solid #f5c54288;box-shadow:0 0 18px #f5c54233;
  font:800 13px/1.35 Barlow;color:#e9e3ff;text-align:center;
}
#tourLobby .tlFmt b{color:#ffe08a;font-weight:900}
#tourLobby .tlRules{font:600 13px/1.45 Barlow;color:#d5d0f0;max-width:480px;margin:0 auto;text-align:center;opacity:.95}
#tourLobby .tlRules b{color:#ffe08a}
#tourLobby .tlWait{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  text-align:center;padding:40px 16px;position:relative;z-index:1;flex:1;
}
#tourLobby .tlWait b{font:900 24px Baloo;color:#ffe08a}

/* ---- RIGHT COLUMN ---- */
#tourLobby .tlRight{
  min-height:0;display:flex;flex-direction:column;gap:12px;
}
#tourLobby .tlCard{
  min-height:0;display:flex;flex-direction:column;gap:10px;
  padding:14px 14px 12px;border-radius:18px;
  background:linear-gradient(165deg,#1a1458cc,#0c1238ee);
  border:1.5px solid #7a5cff88;
  box-shadow:0 0 24px #5a3cff33,inset 0 1px 0 #ffffff14;
}
#tourLobby .tlCard.gold{border-color:#f5c54288;box-shadow:0 0 28px #f5c54233,inset 0 1px 0 #ffe08a22}
#tourLobby .tlCard h3{
  margin:0;padding:0 0 8px;font:800 13px Barlow;letter-spacing:.1em;text-transform:uppercase;color:#cfc4ff;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  border-bottom:1px solid #ffffff14;background:none;box-shadow:none;
}
#tourLobby .tlCard h3::before,#tourLobby .tlCard h3::after{content:none!important;display:none!important}
#tourLobby .tlCard h3 .mut{font:700 11px Barlow;letter-spacing:0;text-transform:none;color:#aab4d8}
#tourLobby .tlChatCard{overflow:hidden}
#tourLobby .tlChatCard::before{content:none!important}

/* stream card – prominent, collapsible */
#tourLobby .tlStream{
  position:relative;flex:none;border-radius:18px;overflow:hidden;
  background:#0a0626ee;border:1.5px solid #7a5cff88;box-shadow:0 8px 28px #000a;
}
#tourLobby .tlStream[hidden]{display:none!important}
#tourLobby .tlStream.mini .tlSBody,#tourLobby .tlStream.mini .tlSVol{display:none}
#tourLobby .tlSHead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#1a1458cc;font:800 13px Barlow}
#tourLobby .tlSActs{display:flex;gap:4px}
#tourLobby .tlSFrame{aspect-ratio:16/9;background:#0a0626;position:relative;overflow:hidden}
#tourLobby .tlSFrame iframe{width:100%;height:100%;border:0;display:block;position:relative;z-index:1}
#tourLobby .tlSFrame.hid{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
#tourLobby .tlSPoster{
  position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:#0a0626 center/cover no-repeat;cursor:pointer;border:0;width:100%;padding:0;color:#fff;
}
#tourLobby .tlSPoster::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,#05081c66 0%,#05081ccc 100%),radial-gradient(circle at 50% 40%,#5a3cff33,transparent 60%);
}
#tourLobby .tlSPoster>*{position:relative;z-index:1}
#tourLobby .tlSPoster .tlPlay{
  width:64px;height:64px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(180deg,#f5c542,#c9a227);border:3px solid #fff;box-shadow:0 0 28px #f5c54299;
  font-size:28px;color:#1a0a00;line-height:1;
}
#tourLobby .tlSPoster b{font:900 15px Barlow;color:#ffe08a;text-shadow:0 2px 8px #000c;letter-spacing:.06em}
#tourLobby .tlSPoster small{font:700 12px Barlow;color:#cfc4ff}
#tourLobby .tlSSoon{
  aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(165deg,#1a1458,#0c1238);border-top:1px solid #7a5cff44;
}
#tourLobby .tlSSoon b{font:900 16px Barlow;color:#ffe08a}
#tourLobby .tlSSoon small{font:700 12px Barlow;color:#aab4d8}
#tourLobby .tlVoiceCard{display:flex;align-items:center;gap:10px;padding:14px;background:linear-gradient(135deg,#1a1458,#0c1238)}
#tourLobby .tlVoiceCard .ava{width:48px;height:48px;border-radius:50%;box-shadow:0 0 0 2px #f5c542}
#tourLobby .tlVoiceCard b{display:block;font:900 14px Barlow;color:#ffe08a}
#tourLobby .tlVoiceCard small{color:#aab4d8;font:700 11px Barlow}
#tourLobby .tlWave{display:flex;align-items:end;gap:3px;height:28px;margin-left:auto}
#tourLobby .tlWave i{display:block;width:4px;border-radius:2px;background:#5ef0a0;animation:tlWave 1s ease-in-out infinite;height:40%}
#tourLobby .tlWave i:nth-child(2){animation-delay:.1s;height:70%}
#tourLobby .tlWave i:nth-child(3){animation-delay:.2s;height:100%}
#tourLobby .tlWave i:nth-child(4){animation-delay:.3s;height:55%}
#tourLobby .tlWave i:nth-child(5){animation-delay:.4s;height:80%}
@keyframes tlWave{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}
#tourLobby .tlSVol{display:flex;align-items:center;gap:8px;padding:6px 10px}
#tourLobby .tlSVol input{flex:1}

/* chat – tall, comfortable (desktop: dominant; phone: tab) */
#tourLobby .tlChatCard{flex:1.35;min-height:180px}
#tourLobby .tlChatLog{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:4px;scrollbar-width:thin}
#tourLobby .tlMsg{
  display:grid;grid-template-columns:36px 1fr;gap:8px;align-items:start;
  max-width:100%;padding:8px 10px;border-radius:14px;background:#22195e;font:600 14px/1.4 Barlow;
}
#tourLobby .tlMsg .ava{width:32px;height:32px;border-radius:50%}
#tourLobby .tlMsg.me{background:#3a2bd8;border:1px solid #8b7cff66}
#tourLobby .tlMsg > div{min-width:0;overflow:hidden}
#tourLobby .tlMsg small{display:block;font:800 12px Barlow;color:#b8b0e8;margin-bottom:2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tourLobby .tlMsg.vip{border:1px solid #f5c54255}
#tourLobby .tlChatForm{display:flex;gap:8px}
#tourLobby .tlChatForm input{
  flex:1;min-width:0;padding:12px 14px;border-radius:14px;border:1px solid #5a6acc;
  background:#0a1028;color:#fff;font:600 15px Barlow;
}
#tourLobby .tlChatForm button{flex:none}

/* player list – ranking card language; desktop collapses to slim toggle */
#tourLobby .tlPlayersCard{flex:1;min-height:140px;position:relative}
#tourLobby .tlPlayersToggle{
  appearance:none;width:100%;box-sizing:border-box;cursor:pointer;
  margin:0;padding:0 0 8px;border:0;border-bottom:1px solid #ffffff14;border-radius:0;
  background:none;color:#cfc4ff;
  font:800 13px Barlow;letter-spacing:.1em;text-transform:uppercase;
  display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;
}
#tourLobby .tlPlayersToggle .mut{font:700 11px Barlow;letter-spacing:0;text-transform:none;color:#aab4d8}
#tourLobby .tlPlayersChevron{font:900 14px/1 Barlow;color:#ffe08a;transition:transform .2s ease}
#tourLobby .tlPlayersCard.open .tlPlayersChevron{transform:rotate(180deg)}
#tourLobby .tlPlayers{overflow:auto;display:flex;flex-direction:column;gap:6px;min-height:0;scrollbar-width:thin}
#tourLobby .tlP{
  display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:10px;
  padding:8px 10px;border-radius:12px;background:#0a1028aa;border:1px solid #ffffff14;
}
#tourLobby .tlP.me{border-color:#7a5cff;background:#2a1a58aa;box-shadow:0 0 14px #5a3cff44}
#tourLobby .tlP.rdy{border-color:#2fd07a66}
#tourLobby .tlP .ava{width:36px;height:36px;border-radius:50%}
#tourLobby .tlP b{font:800 14px Barlow;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tourLobby .tlP small{font:700 11px Barlow;color:#9fb3ff}
#tourLobby .tlRdy{font:900 11px Barlow;color:#7dffb0;letter-spacing:.04em}
#tourLobby .tlRdy.off{color:#6a7399}
#tourLobby .tlP.vip{border-color:#f5c54288;box-shadow:0 0 14px #f5c54233}
#tourLobby .ava.vipFr{box-shadow:0 0 0 2px #f5c542,0 0 12px #f5c54299;border-radius:50%}
#tourLobby .tlVipB{font:900 9px Barlow;padding:1px 5px;border-radius:6px;background:linear-gradient(180deg,#ffe08a,#c9a227);color:#2a1a00;margin-left:4px;vertical-align:middle}
#tourLobby .vipNick{color:#ffe08a!important;text-shadow:0 0 8px #f5c54288}
#tourLobby .tlP.vipIn{animation:tlVipIn 1.4s ease}
@keyframes tlVipIn{0%{box-shadow:0 0 0 0 #f5c54200;transform:scale(1)}30%{box-shadow:0 0 28px #f5c542cc;transform:scale(1.03)}100%{box-shadow:0 0 14px #f5c54233;transform:none}}
#tourLobby.vipEnter{animation:tlVipLobby .9s ease}
@keyframes tlVipLobby{0%{filter:brightness(1)}40%{filter:brightness(1.25)}100%{filter:brightness(1)}}
#tourLobby .tlP.adv{border-color:#5ef0a0;box-shadow:0 0 18px #2fd07a88;animation:tlAdv 1.2s ease}
@keyframes tlAdv{0%{transform:scale(1)}40%{transform:scale(1.04)}100%{transform:none}}

/* cinematic overlays */
#tourLobby .tlBoom{position:fixed;inset:0;z-index:9300;display:flex;align-items:center;justify-content:center;pointer-events:none;background:radial-gradient(circle at 50% 45%,#ffd36b33,transparent 55%)}
#tourLobby .tlBoom[hidden]{display:none}
#tourLobby .tlBoomN{font:900 clamp(72px,22vw,180px)/1 Baloo,sans-serif;color:#ffe08a;text-shadow:0 0 40px #f5c542cc,0 8px 0 #7a4a00}
#tourLobby .tlBoom.hot .tlBoomN{color:#ff6b6b;text-shadow:0 0 50px #ff3b3bcc,0 8px 0 #5a0000}
#tourLobby .tlFlash{position:fixed;inset:0;z-index:9290;pointer-events:none;background:#fff;opacity:0}
#tourLobby .tlFlash.on{animation:tlFlash .65s ease-out both}
@keyframes tlFlash{0%{opacity:.85}40%{opacity:.35}100%{opacity:0}}
#tourLobby .tlPlan{position:fixed;inset:0;z-index:9350;display:flex;align-items:center;justify-content:center;background:#05081cee;padding:20px}
#tourLobby .tlPlan[hidden]{display:none}
#tourLobby .tlPlanIn{max-width:460px;width:100%;padding:24px;border-radius:20px;background:linear-gradient(165deg,#241a6ecc,#0c1238);border:2px solid #f5c54288;box-shadow:0 0 40px #f5c54244;text-align:center;animation:tlIn .35s ease both}
#tourLobby .tlPlanIn h2{margin:6px 0 14px;font:900 28px Baloo;color:#ffe08a}
#tourLobby .tlPlanIn ol{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:8px;text-align:left}
#tourLobby .tlPlanIn li{padding:10px 12px;border-radius:12px;background:#ffffff10;border:1px solid #ffffff18;animation:tlPlanRow .45s ease both;animation-delay:var(--d)}
#tourLobby .tlPlanIn li b{display:block;font:900 15px Barlow;color:#ffe08a}
#tourLobby .tlPlanIn li span{font:600 12px Barlow;color:#cfc4ff}
@keyframes tlPlanRow{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}

/* ===== DESKTOP: StageIn/Strip/Dock as stage flex kids (like 5f1207e3); Ready lives in dock ===== */
@media (min-width:981px){
  /* StageScroll fills stage; StageIn gets leftover above strip+dock (5f1207e3 math) */
  #tourLobby .tlStageScroll{
    display:flex;flex-direction:column;flex:1 1 auto;min-height:0;
    overflow:hidden; /* not auto — desktop must not scroll away Format/lineup */
  }
  #tourLobby .tlStage{gap:8px}
  #tourLobby .tlStageIn{flex:1 1 auto;min-height:0;overflow:hidden}
  #tourLobby .tlStrip,#tourLobby .tlPickDock{flex:none}
  #tourLobby .tlStage > .tlReadyRow{display:none!important} /* phone footer only */
  #tourLobby .tlPickDock{
    background:linear-gradient(180deg,#05081c00,#05081cfa 28%);
    padding:8px 12px 10px;
  }
  #tourLobby .tlPickDock .tlReadyRow{
    display:flex;margin-top:6px;padding-top:8px;
    border-top:1px solid #f5c54244;
    background:transparent;
  }
  /* Compact recent tiles on desktop (6 + Wszyscy) */
  #tourLobby .tlH,#tourLobby .tlSk{min-width:76px;padding:6px 8px;gap:4px}
  #tourLobby .tlH img,#tourLobby .tlSk img{width:48px;height:48px}

  /* Right column: full-width 16:9 stream (~330×186 at 1280), chat fills the rest */
  #tourLobby .tlRight{gap:8px;position:relative}
  #tourLobby .tlStream{
    flex:none;width:100%;align-self:stretch;min-width:0;
  }
  #tourLobby .tlStream .tlSFrame,
  #tourLobby .tlStream .tlSSoon{
    aspect-ratio:16/9;width:100%;height:auto;max-height:none;
  }
  #tourLobby .tlStream .tlSHead{
    padding:8px 12px;font-size:13px;gap:10px;
    white-space:nowrap;
  }
  #tourLobby .tlStream .tlSHead b{
    min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  #tourLobby .tlStream .tlSActs{flex:none}
  #tourLobby .tlStream .tlSPoster .tlPlay{width:56px;height:56px;font-size:22px;border-width:3px}
  #tourLobby .tlStream .tlSPoster b{font-size:14px}
  #tourLobby .tlStream .tlSPoster small{font-size:11px}
  #tourLobby .tlStream .tlSVol{display:none}
  #tourLobby .tlChatCard{
    flex:1 1 auto;min-height:0;padding:10px 12px 10px;gap:8px;
  }
  #tourLobby .tlChatCard h3{padding:0 0 4px;font-size:12px}
  #tourLobby .tlChatLog{gap:3px}
  #tourLobby .tlMsg{padding:4px 8px;font-size:12px;line-height:1.25;grid-template-columns:24px 1fr;gap:6px;border-radius:10px}
  #tourLobby .tlMsg .ava{width:22px;height:22px}
  #tourLobby .tlMsg small{font-size:10px;margin-bottom:0;line-height:1.2}
  #tourLobby .tlChatForm input{padding:10px 12px;font-size:14px;border-radius:12px}
  #tourLobby .tlPlayersCard{
    flex:none;min-height:0;padding:6px 12px;
    z-index:6;
  }
  #tourLobby .tlPlayersCard:not(.open) .tlPlayers{display:none}
  #tourLobby .tlPlayersCard.open .tlPlayers{
    display:flex;position:absolute;left:0;right:0;bottom:calc(100% + 6px);
    max-height:min(420px,48vh);overflow:auto;
    padding:10px;border-radius:16px;
    background:linear-gradient(165deg,#1a1458f8,#0c1238fe);
    border:1.5px solid #7a5cffaa;
    box-shadow:0 0 28px #5a3cff55,0 12px 40px #000c;
    z-index:8;
  }
  #tourLobby .tlPlayersToggle{padding:0;border-bottom:0;font-size:12px}
}
/* Short desktop: shrink plate + dock so Format + lineup + full prize fit above strip */
@media (min-width:981px) and (max-height:900px){
  #tourLobby .tlStage{gap:6px}
  #tourLobby .tlStageIn{padding:8px 12px 2px;gap:4px}
  #tourLobby .tlPlate{padding:6px 12px 8px}
  #tourLobby .tlPlate .eT1{font-size:22px;margin:0 0 2px}
  #tourLobby .tlPlate .eT2{font-size:11px;margin-bottom:0}
  #tourLobby .tlPlate .tlLive{margin-top:-18px;padding:4px 10px;font-size:11px}
  #tourLobby .tlCdLabel{font-size:10px;margin-bottom:2px}
  #tourLobby .tlCd{margin-bottom:4px;gap:6px}
  #tourLobby .tlCd div{min-width:40px;padding:4px 4px;border-radius:10px}
  #tourLobby .tlCd b{font-size:18px}
  #tourLobby .tlPrize{padding:4px 8px;gap:8px}
  #tourLobby .tlPrize img{width:44px}
  #tourLobby .tlPrize b{font-size:13px}
  #tourLobby .tlPrize small{font-size:11px}
  #tourLobby .tlFmt{font-size:12px;padding:4px 10px}
  #tourLobby .tlLineup{min-height:56px;padding:2px;gap:clamp(2px,0.8vw,8px)}
  #tourLobby .tlLineup .tlFig{width:60px;max-width:60px;padding:2px}
  #tourLobby .tlLineup .tlFig img{width:clamp(36px,4.5vw,52px)}
  #tourLobby .tlLineup .tlFig small{font-size:9px;max-width:58px}
  #tourLobby .tlStrip{padding:4px 10px 6px;gap:6px}
  #tourLobby .tlStripItem{padding:6px 10px;min-width:100px;border-radius:10px}
  #tourLobby .tlStripItem b{font-size:11px}
  #tourLobby .tlStripItem span{font-size:10px}
  #tourLobby .tlPickDock{padding:4px 10px 6px;gap:4px}
  #tourLobby .tlPickDock .tlPickH{margin:0}
  #tourLobby .tlPickDock .tlPickH b{font-size:10px}
  #tourLobby .tlPickRow{padding:2px 2px 2px;gap:6px}
  #tourLobby .tlH,#tourLobby .tlSk{min-width:64px;padding:4px 6px;gap:2px;border-radius:12px}
  #tourLobby .tlH img,#tourLobby .tlSk img{width:40px;height:40px}
  #tourLobby .tlH span,#tourLobby .tlSk span{font-size:10px;max-width:60px}
  #tourLobby .tlHAll{min-width:84px;max-width:110px;padding:6px 8px;border-radius:12px;font-size:10px}
  #tourLobby .tlHAll b{font-size:14px}
  #tourLobby .tlSkLab{font-size:10px;margin:0}
  #tourLobby .tlPickDock .tlReadyRow{margin-top:2px;padding-top:4px}
  #tourLobby .tlReadyBtn{min-width:200px;font-size:15px!important;padding:8px 20px!important;border-radius:12px}
  #tourLobby .tlReadyRow{gap:8px;padding-top:2px}
  #tourLobby .tlPill{font-size:12px}
}
@media (min-width:981px) and (max-height:760px){
  #tourLobby .tlPlate .eT1{font-size:18px}
  #tourLobby .tlCd b{font-size:16px}
  #tourLobby .tlPrize img{width:36px}
  #tourLobby .tlLineup{min-height:48px}
  #tourLobby .tlLineup .tlFig img{width:36px}
  #tourLobby .tlH img,#tourLobby .tlSk img{width:32px;height:32px}
  #tourLobby .tlH,#tourLobby .tlSk{min-width:56px;padding:3px 4px}
}

/* Hero picker: recent row + "Wszyscy" + modal */
#tourLobby .tlPickRow.heroes{
  display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding:4px 2px 6px;
}
#tourLobby .tlHAll{
  appearance:none;flex:none;align-self:stretch;min-width:112px;max-width:140px;
  border:2px dashed #f5c54299;border-radius:16px;padding:10px 12px;cursor:pointer;
  background:linear-gradient(165deg,#2a1a58ee,#0c1238f2);color:#ffe08a;
  font:900 12px/1.25 Barlow;letter-spacing:.04em;text-align:center;
  box-shadow:0 0 16px #f5c54233,inset 0 1px 0 #ffffff14;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
}
#tourLobby .tlHAll:hover{border-style:solid;border-color:#f5c542;box-shadow:0 0 22px #f5c54266}
#tourLobby .tlHAll b{font:900 20px/1 Baloo,sans-serif;color:#ffe08a}
#tourLobby .tlHeroModal{
  position:fixed;inset:0;z-index:9400;display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom));
  background:#05081cee;
}
#tourLobby .tlHeroModal[hidden]{display:none!important}
#tourLobby .tlHeroModalIn{
  width:min(720px,100%);max-height:min(840px,92vh);display:flex;flex-direction:column;gap:10px;
  padding:16px 16px 14px;border-radius:20px;
  background:linear-gradient(165deg,#1e1668f2,#05081cfe);border:2px solid #f5c54288;
  box-shadow:0 0 40px #f5c54244,0 20px 60px #000c;
}
#tourLobby .tlHeroModalIn header{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;
}
#tourLobby .tlHeroModalIn header h3{
  margin:0;font:900 22px/1.1 Baloo,sans-serif;color:#ffe08a;text-shadow:0 0 16px #f5c54266;
}
#tourLobby .tlHeroModalIn header [data-x]{
  appearance:none;width:36px;height:36px;border-radius:12px;cursor:pointer;
  border:1.5px solid #7a5cff88;background:#1a1458;color:#e9e3ff;font:900 20px/1 Barlow;
}
#tourLobby .tlHeroQ{
  flex:none;width:100%;box-sizing:border-box;padding:10px 14px;border-radius:12px;
  border:1.5px solid #7a5cff66;background:#0a0626;color:#fff;
  font:700 14px Barlow;outline:none;
}
#tourLobby .tlHeroQ:focus{border-color:#f5c542;box-shadow:0 0 0 2px #f5c54244}
#tourLobby .tlHeroRoles{
  flex:none;display:flex;flex-wrap:wrap;gap:6px;
}
#tourLobby .tlHeroRoles button{
  appearance:none;padding:6px 12px;border-radius:999px;cursor:pointer;
  border:1.5px solid #7a5cff66;background:#1a1458aa;color:#cfc4ff;
  font:800 12px Barlow;letter-spacing:.04em;
}
#tourLobby .tlHeroRoles button.on{border-color:#f5c542;color:#ffe08a;background:#2a1a58;box-shadow:0 0 12px #f5c54244}
#tourLobby .tlHeroGrid{
  flex:1;min-height:0;overflow:auto;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding:4px 2px 8px;
  -webkit-overflow-scrolling:touch;
}
#tourLobby .tlHeroGrid .tlH{
  min-width:0;width:100%;
}
#tourLobby .tlHeroEmpty{
  grid-column:1/-1;text-align:center;color:#aab4d8;font:700 13px Barlow;padding:24px 8px;
}
@media (max-width:980px){
  #tourLobby .tlHeroModalIn{max-height:88vh;padding:12px}
  #tourLobby .tlHeroModalIn header h3{font-size:18px}
  #tourLobby .tlHeroGrid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px}
  #tourLobby .tlHAll{min-width:96px;font-size:11px}
  #tourLobby .tlHAll b{font-size:16px}
}

/* ===== PHONE: stacked + tabs ===== */
/* hide floating site sound FAB while lobby open — overlaps stage (d) */
body:has(#tourLobby.on) #acSnd{display:none!important}

@media (max-width:980px){
  #tourLobby .tlTabs{display:flex}
  #tourLobby .tlShell{grid-template-columns:1fr;gap:10px;padding:10px;overflow:hidden;min-height:0}
  #tourLobby .tlRight,#tourLobby .tlStage{display:none;min-height:0}
  #tourLobby[data-tab=scena] .tlStage,
  #tourLobby[data-tab=czat] .tlRight,
  #tourLobby[data-tab=gracze] .tlRight,
  #tourLobby[data-tab=stream] .tlRight{display:flex}
  #tourLobby[data-tab=czat] .tlPlayersCard,
  #tourLobby[data-tab=czat] .tlStream{display:none}
  #tourLobby[data-tab=gracze] .tlChatCard,
  #tourLobby[data-tab=gracze] .tlStream{display:none}
  #tourLobby[data-tab=stream] .tlChatCard,
  #tourLobby[data-tab=stream] .tlPlayersCard{display:none}
  #tourLobby[data-tab=stream] .tlStream{display:block!important}
  #tourLobby .tlPlate{width:min(100%,520px);position:relative;z-index:2}
  #tourLobby .tlCd b{font-size:26px}
  #tourLobby .tlH,#tourLobby .tlSk{min-width:72px;padding:8px}
  #tourLobby .tlH img,#tourLobby .tlSk img{width:44px;height:44px}
  #tourLobby .tlLineup{min-height:72px;padding-top:4px}
  #tourLobby .tlLineup .tlFig{width:72px;max-width:72px}
  #tourLobby .tlLineup .tlFig img{width:48px}
  #tourLobby .tlChatCard,#tourLobby .tlPlayersCard{flex:1;min-height:240px}
  #tourLobby .tlPlayersCard{position:relative;padding:14px 14px 12px}
  #tourLobby .tlPlayersCard .tlPlayers{display:flex!important;position:static!important;max-height:none;padding:0;border:0;box-shadow:none;background:transparent}
  #tourLobby .tlPlayersCard.open .tlPlayers{/* phone: ignore overlay */}
  #tourLobby .tlPlayersToggle{cursor:default;pointer-events:none;border-bottom:1px solid #ffffff14;padding:0 0 8px}
  #tourLobby .tlPlayersChevron{display:none}
  /* (c) drop header invite — bottom CTA keeps it */
  #tourLobby .tlTopActs #tlInvite{display:none!important}
  #tourLobby .tlBar{align-items:flex-start}
  #tourLobby .tlTitle{padding-right:4px}
  #tourLobby .tlTitle b{font-size:clamp(15px,4.6vw,22px);line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  /* (a) strip below plate content, never over prize */
  #tourLobby .tlStrip{order:0;flex:none;padding:6px 10px 8px;background:#05081cee;border-top:1px solid #f5c54244}
  #tourLobby .tlStripItem{flex:1 1 auto;max-width:none;min-width:0}
  #tourLobby .tlFmt{font-size:12px;padding:7px 12px}
  /* scroll column holds Format+strip+heroes; Gotowy is a solid footer — nothing sits behind it */
  #tourLobby[data-tab=scena] .tlStage{
    display:flex;flex-direction:column;overflow:hidden;min-height:0;flex:1;gap:0;height:100%;
  }
  #tourLobby .tlStageScroll{
    flex:1 1 auto;min-height:0;max-height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
    display:flex;flex-direction:column;gap:0;
  }
  #tourLobby .tlStageIn{flex:none;padding-bottom:6px;gap:8px}
  #tourLobby .tlStrip,#tourLobby .tlPickDock{flex:none}
  #tourLobby .tlPickDock{
    position:relative!important;z-index:2;
    background:#05081c!important; /* opaque */
    padding:10px 12px 12px;
    box-shadow:none;
    border-top:1px solid #7a5cff44;
  }
  #tourLobby .tlStage > .tlReadyRow{
    flex:none;z-index:9;
    margin:0;padding:10px 12px max(12px,env(safe-area-inset-bottom));
    background:#05081c!important;
    border-top:1px solid #f5c54244;
    box-shadow:0 -10px 28px #05081cee;
  }
  #tourLobby .tlLineup .tlFig img{width:48px}
  #tourLobby .tlPlate{padding:10px 14px 12px}
  #tourLobby .tlPrize img{width:56px}
  #tourLobby .tlCd div{min-width:48px;padding:8px 6px}
  #tourLobby .tlCd b{font-size:22px}
}

@media (max-width:640px){
  #tourLobby .tlBar{padding:8px 10px;gap:8px}
  #tourLobby .tlMeta{display:none}
  #tourLobby .tlPlate .eT1{font-size:24px}
  #tourLobby .tlPrize{flex-wrap:wrap;gap:8px;padding:8px}
  #tourLobby .tlPrize img{width:64px}
  #tourLobby .tlReadyBtn{min-width:0;width:100%;font-size:18px!important;padding:14px 20px!important;color:#fff!important}
  #tourLobby .tlBoomN{font-size:clamp(64px,28vw,120px)}
  /* desktop keeps header invite; phone shows bottom only — already hidden above */
  #tourLobby .tlReadyRow #tlInvite2{display:inline-flex}
}
@media (prefers-reduced-motion:reduce){
  #tourLobby .tlBoomN,#tourLobby .tlP.vipIn,#tourLobby .tlP.adv,#tourLobby .tlWave i,#tourLobby .tlPlanIn li,#tourLobby .tlLive i{animation:none!important}
}

/* lobby-28: ready-check CALL pulse */
#acReady .acRsec.pulse{animation:acRpulse .35s ease-out}
#acReady .acRsec.hot{color:#ff6b6b;text-shadow:0 0 12px #ff3b3b88;font-weight:900}
@keyframes acRpulse{0%{transform:scale(1.35)}100%{transform:scale(1)}}

/* (g) one invite only: desktop header, phone bottom */
@media (min-width:981px){
  #tourLobby .tlReadyRow #tlInvite2{display:none!important}
}

/* tlReadyBtn contrast lock – never inherit .btn.gold dark text */
#tourLobby .tlReadyBtn.btn,
#tourLobby button.tlReadyBtn,
#tourLobby #tlReady{
  color:#fff!important;
  background:linear-gradient(180deg,#3ecf78,#1a7a44)!important;
  border:2.5px solid #b8ffd6!important;
  text-shadow:0 1px 2px #0a3d24cc;
}
#tourLobby .tlReadyBtn.on,
#tourLobby #tlReady.on{
  color:#fff!important;
  background:linear-gradient(180deg,#55e090,#1f8a4e)!important;
  border-color:#ffe08a!important;
}
#tourLobby .tlSk span{font:800 10px Barlow;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cfc4ff}

/* ========== lobby-28 participants: ranking-row parity + virt + Twoja arena ========== */
#tourLobby .tlPlayersHead{display:flex;align-items:center;gap:8px;justify-content:space-between}
#tourLobby .tlPlayersHead .tlPlayersToggle{flex:1;min-width:0}
#tourLobby .tlPartOpen{flex:none;white-space:nowrap;font:800 11px Barlow!important;padding:6px 10px!important;letter-spacing:.04em}
#tourLobby .tlPartOpen .mut{font:700 10px Barlow;color:#aab4d8}

/* Ranking rows — mirror .rcol .rank #top5 li layout */
#tourLobby .tlRkList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
#tourLobby .tlRkRow{
  display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0;
  min-height:var(--rkH,32px);padding:3px 8px;border-radius:10px;
  background:#0a1028aa;border:1px solid #ffffff10;
  font:700 13px Barlow;color:#e9e3ff;
}
#tourLobby .tlRkRow.me{background:#2a1a7a;box-shadow:inset 0 0 0 1px #9b5cff}
#tourLobby .tlRkRow.out{opacity:.55}
#tourLobby .tlRkRow.adv{border-color:#5ef0a066;box-shadow:0 0 12px #2fd07a44}
#tourLobby .tlRkRow.rdy{border-color:#2fd07a55}
#tourLobby .tlRkRow .nk{
  flex:1 1 auto;min-width:0;max-width:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  cursor:pointer;
}
#tourLobby .tlRkRow .lg{flex:0 0 auto;max-width:42%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9fb0ff;font:700 11px Barlow}
#tourLobby .tlRkRow .av2,#tourLobby .tlRkRow .ava.av2{width:28px;height:28px;border-radius:50%;flex:none}
#tourLobby .tlRkRow .av2W{flex:none;display:inline-grid;place-items:center}
#tourLobby .tlRkRow .vipCr,#tourLobby .tlRkRow svg.vipCr{width:14px;height:14px;flex:none;color:#f5c542;fill:#f5c542}
#tourLobby .tlRkRow .lbadge{flex:none;width:22px;height:22px}
#tourLobby .tlRkRow > *{flex-shrink:0}
#tourLobby .tlRkRow .nk,#tourLobby .tlRkRow .lg{flex-shrink:1}
#tourLobby .tlRkRow .av2W.lfr,#tourLobby .tlRkRow .lfr{cursor:pointer}
#tourLobby .tlSt{
  flex:none;font:900 10px Barlow;letter-spacing:.04em;padding:2px 7px;border-radius:999px;
  background:#ffffff12;border:1px solid #ffffff22;color:#cfc4ff;text-transform:uppercase;
}
#tourLobby .tlSt.arena{color:#ffe08a;border-color:#f5c54266;background:#f5c54222}
#tourLobby .tlSt.out{color:#ff9aa8;border-color:#ff5b5b66;background:#ff5b5b22}
#tourLobby .tlSt.adv{color:#7dffb0;border-color:#2fd07a66;background:#2fd07a22}
#tourLobby .tlSt.rdy{color:#7dffb0;border-color:#2fd07a66}
#tourLobby .tlSt.wait{color:#aab4d8}
#tourLobby .tlRkRow.vipIn{animation:tlVipIn 1.4s ease}

/* Twoja arena card */
#tourLobby .tlArena{
  flex:none;margin:6px 0 4px;padding:10px 12px;border-radius:16px;
  background:linear-gradient(165deg,#1a1458cc,#0c1238ee);
  border:1.5px solid #f5c54288;box-shadow:0 0 22px #f5c54233;
}
#tourLobby .tlArenaHd{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:8px}
#tourLobby .tlArenaHd small{font:800 11px Barlow;letter-spacing:.14em;color:#aab4d8}
#tourLobby .tlArenaHd b{font:900 18px Baloo;color:#ffe08a;text-shadow:0 0 14px #f5c54288}
#tourLobby .tlArenaList{max-height:min(340px,42vh);overflow:auto;scrollbar-width:thin}
#tourLobby .tlArena .tlPartOpen2{margin-top:8px;width:100%}
#tourLobby .tlArenaPhone{margin-top:10px}
#tourLobby .tlArenaPhone[hidden]{display:none!important}

/* Wszyscy uczestnicy modal — above lobby (9200), below pCard (10050) */
#tourLobby .tlPartModal{
  position:fixed;inset:0;z-index:9400;display:flex;align-items:center;justify-content:center;
  padding:16px;background:#05081cee;backdrop-filter:blur(3px);
}
#tourLobby .tlPartModal[hidden]{display:none!important}
#tourLobby .tlPartModalIn{
  width:min(520px,96vw);max-height:min(780px,92vh);display:flex;flex-direction:column;gap:10px;
  padding:16px 16px 12px;border-radius:20px;
  background:linear-gradient(165deg,#241a6ef0,#0c1238fe);
  border:2px solid #7a5cffaa;box-shadow:0 0 40px #5a3cff55,0 16px 48px #000c;
  animation:tlIn .28s ease both;
}
#tourLobby .tlPartModalIn header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#tourLobby .tlPartModalIn h3{margin:0;font:900 18px Baloo;color:#ffe08a}
#tourLobby .tlPartModalIn header button{
  appearance:none;width:36px;height:36px;border-radius:12px;border:1.5px solid #ffffff33;
  background:#ffffff14;color:#fff;font:900 20px/1 Barlow;cursor:pointer;
}
#tourLobby .tlPartQ{
  appearance:none;width:100%;box-sizing:border-box;padding:11px 14px;border-radius:12px;
  border:1.5px solid #7a5cff66;background:#0a1028;color:#fff;font:700 14px Barlow;
}
#tourLobby .tlPartQ:focus{outline:none;border-color:#f5c54288;box-shadow:0 0 0 2px #f5c54233}
#tourLobby .tlPartVirt{
  flex:1;min-height:240px;max-height:min(560px,70vh);overflow:auto;scrollbar-width:thin;
  border-radius:12px;background:#05081c88;border:1px solid #ffffff12;padding:6px;
  /* contain layout so virt window doesn't thrash whole lobby */
  contain:content;
}
#tourLobby .tlVirtPad{flex:none;pointer-events:none}

/* Desktop: keep chat dominant — part open is a slim chip, not a second panel */
@media (min-width:981px){
  #tourLobby .tlPlayersHead{border-bottom:0;padding:0}
  #tourLobby .tlArenaPhone{display:none!important}
  #tourLobby .tlStageIn{display:flex;flex-direction:column;gap:6px;overflow:hidden}
  #tourLobby .tlArena{max-height:min(280px,32vh);overflow:hidden;display:flex;flex-direction:column}
  #tourLobby .tlArenaList{flex:1;min-height:0}
}
@media (max-width:980px){
  #tourLobby .tlArena{display:none} /* desktop stage card; phone uses GRACZE host */
  #tourLobby[data-tab=gracze] .tlArenaPhone:not([hidden]){display:block}
  #tourLobby .tlPlayersHead{flex-wrap:wrap;gap:6px;margin-bottom:8px;border-bottom:1px solid #ffffff14;padding-bottom:8px}
  #tourLobby .tlPartOpen{width:100%}
}
/* Off-screen frame anim pause is handled by perf.js acOffv; virt keeps only ~20 rows in DOM */
@media (prefers-reduced-motion:reduce){
  #tourLobby .tlRkRow .lfr::before,#tourLobby .tlRkRow .lfr::after{animation:none!important}
}


/* Full profile / report overlays above opaque lobby (9200) and pCard (10050) */
.rpOv.acConf,.acConf.rpOv,.rpOv.rpProf{
  z-index:10060!important;
}

/* ========== lobby-28 long-nick guard (max 16 from NICK_RE) ========== */
#tourLobby{overflow-x:hidden}
#tourLobby .tlStage,#tourLobby .tlRight,#tourLobby .tlLeft,
#tourLobby .tlChatCard,#tourLobby .tlPlayersCard,#tourLobby .tlArena,
#tourLobby .tlPartModalIn,#tourLobby .tlPartBody{min-width:0;max-width:100%}
/* ranking / Twoja arena / Zapisani / Wszyscy */
#tourLobby .tlRkRow .nk{
  flex:1 1 0;min-width:0;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#tourLobby .tlRkRow .lbadge,
#tourLobby .tlRkRow .av2W,#tourLobby .tlRkRow .ava.av2,
#tourLobby .tlRkRow .vipCr,#tourLobby .tlRkRow .tlSt{flex:none;flex-shrink:0}
/* lineup under stage */
#tourLobby .tlLineup .tlFig{min-width:0;max-width:100px}
#tourLobby .tlLineup .tlFig small{
  display:block;max-width:100%;width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* Zapisani compact list (legacy .tlP) */
#tourLobby .tlP{min-width:0}
#tourLobby .tlP > div{min-width:0;overflow:hidden}
#tourLobby .tlP b{
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* pCard over lobby */
#tourLobby ~ #pCard .pcTop,
body:has(#tourLobby.on) #pCard .pcTop{display:flex;gap:10px;align-items:center;min-width:0}
#tourLobby ~ #pCard .pcTop > div,
body:has(#tourLobby.on) #pCard .pcTop > div{min-width:0;flex:1;overflow:hidden}
#tourLobby ~ #pCard .pcTop b,
body:has(#tourLobby.on) #pCard .pcTop b,
#tourLobby ~ #pCard .chN,
body:has(#tourLobby.on) #pCard .chN{
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#pCard .pcTop > div{min-width:0;overflow:hidden}
#pCard .pcTop b,#pCard .chN{
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#pCard .pcTop b{display:block}
/* full profile overlay title */
.rpProf .pv h3{
  max-width:100%;min-width:0;justify-content:center;
  overflow:hidden;
}
.rpProf .pv h3 > span{
  display:inline-block;max-width:min(100%,420px);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;
}

/* ===== lobby-unify-sidebar 2026-11-04 =====
   One shared #room wait-lobby sidebar for ALL room types (duel/team/vip/custom/dm/ranked).
   Settings panel must never push Czat off-screen; chat always keeps reserved space.
   Overrides style2.css overflow:visible!important on .slChat when hosted in #room. */
#room.slNoCs > .slWrap > .slMain{
  flex:1 1 auto!important;
  min-height:0!important;
}
#room .slMain:not(.csMode) .slSide{
  display:flex!important;
  flex-direction:column!important;
  gap:10px;
  min-height:0!important;
  min-width:0;
  overflow:hidden!important;
  align-content:stretch;
  align-self:stretch;
}
#room .slSide .slSet{
  flex:0 1 auto!important;
  min-height:0;
  max-height:min(48vh,380px);
  overflow:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  scrollbar-color:#7d6bff55 transparent;
}
#room .slSide .slSet > summary{position:sticky;top:0;z-index:2;background:inherit;padding-bottom:2px}
#room .slSide .slChat{
  flex:1 1 auto!important;
  min-height:160px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  contain:none;
  padding:10px 0 0!important;
}
#room .slSide .slChat > h4{flex:none}
#room .slSide .slChat #slChatHost,
#room .slSide .slChat #slChatHost #acChat{
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  height:auto!important;
  max-height:none!important;
}
#room .slSide .slChat #slChatHost #chForm,
#room #slChatHost #chForm{
  flex:none!important;
  overflow:visible!important; /* emoji popover */
}
#room .slSide .slChat #acChat .chLog,
#room #slChatHost #acChat .chLog{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
@media (max-height:800px){
  #room .slSide .slSet{max-height:min(42vh,300px)}
  #room .slSide .slChat{min-height:140px!important}
}
@media (max-height:520px){
  #room .slSide .slSet{max-height:min(38vh,200px)}
  #room .slSide .slChat{min-height:110px!important}
}
@media (max-width:900px){
  /* portrait / tall phone: settings scroll, chat still reachable */
  #room .slSide .slSet{max-height:min(40vh,280px)}
  #room .slSide .slChat{min-height:200px!important}
}
/* lobby-unify-app-landscape 2026-11-04 */
/* App landscape 900×415 (NagradzaniApp): keep SAME two-column lobby as desktop —
   do not stack settings above chat (that pushed Czat below the fold). */
@media (max-width:980px) and (max-height:520px){
  #room.slNoCs{overflow:hidden!important;place-items:stretch center!important}
  #room.slNoCs>.slWrap{height:100vh!important;height:100dvh!important;gap:4px;padding:4px 8px 6px!important}
  #room.slNoCs>.slWrap>.slMain{flex:1 1 auto!important;min-height:0!important}
  #room .slStake{flex:none;padding:4px 8px!important;gap:4px;font-size:11px;max-height:52px;overflow:hidden}
  #room .slMain:not(.csMode){
    grid-template-columns:minmax(0,1fr) clamp(200px,34vw,260px)!important;
    gap:6px!important;
  }
  #room .slMain:not(.csMode) .slTeams{
    grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;
  }
  #room .slMain:not(.csMode) .slVs{font-size:16px}
  #room .slSide .slSet{max-height:min(32vh,118px);padding:4px 6px!important}
  #room .slSetB{gap:3px;margin-top:3px}
  #room .slSetB label{font-size:11px!important;gap:1px!important}
  #room .slSetB :is(input,select){padding:3px 6px!important;font-size:11px!important}
  #room .slSide .slChat{min-height:78px!important;padding:4px 0 0!important}
  #room .slSide .slChat > h4{padding:0 8px 4px;font-size:12px}
  #room #slChatHost #chForm{padding:4px 6px!important}
  #rsMapBox .mwGrid,#rsMapBox .mwGrid.sm{max-height:56px}
  #room .slHead{gap:4px}
  #room .slMeta{gap:3px}
  #room .slLeft .slFoot{padding:4px 0 0!important}
  #room .slot{min-height:44px!important;height:44px!important}
}

/* ===== phonelobby-5v5 2026-11-04 ===== */
/* (2) 5v5 start countdown: dock over the right (settings/chat) column, never over the 10 player cards */
#room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4)){position:relative}
#room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4))>.slCount{
  position:absolute!important;inset:0 18px 0 auto!important;width:clamp(280px,27vw,360px);
  justify-content:center!important;padding:8px!important;box-sizing:border-box;
  background:radial-gradient(circle at 50% 45%,rgba(40,20,90,.92),rgba(5,4,20,.97));border-radius:16px;
}
#room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4))>.slCount small{letter-spacing:.14em;text-align:center}
@media (max-width:1200px){#room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4))>.slCount{width:clamp(250px,25vw,320px)}}
/* (1) phone app landscape lobby: compact one-row header so cards/settings/chat get the screen */
@media (max-width:980px) and (max-height:520px){
  #room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4))>.slCount{inset:0 8px 0 auto!important;width:clamp(200px,34vw,260px);gap:2px}
  #room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4))>.slCount small{font-size:11px}
  #room .slHead{grid-template-columns:auto minmax(0,1fr) auto!important;text-align:left!important;padding:4px 8px!important;gap:8px!important;flex:none}
  #room .slHead .slBack{padding:5px 9px!important;font-size:11px!important;min-height:0!important}
  #room .slHead .slBack svg{width:14px;height:14px}
  #room .slTitle{min-width:0}
  #room .slTitle .slTop{gap:6px;justify-content:flex-start!important;flex-wrap:nowrap;min-width:0}
  #room .slTitle h2{font-size:15px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin:0}
  #room .slTitle .mBadge{font-size:10px!important;padding:2px 6px!important}
  #room .slMeta{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;justify-content:flex-start!important;margin-top:2px!important}
  #room .slMeta::-webkit-scrollbar{display:none}
  #room .slMeta .chip{font-size:10px!important;padding:1px 7px!important;white-space:nowrap;flex:none}
  #room .slCode{grid-auto-flow:column;align-items:center;gap:6px!important;padding:3px 8px!important}
  #room .slCode small{font-size:10px}
  #room .slCode b{font-size:15px!important;letter-spacing:2px!important}
  #room .slCode .btn{padding:4px 8px!important;font-size:10px!important;min-height:0!important;white-space:nowrap}
  #room .slMain:not(.csMode) .tCol:has(>.slot:nth-of-type(4)){gap:4px!important}
  #room .slMain:not(.csMode) .slot{grid-template-columns:30px minmax(0,1fr) auto auto!important;gap:5px!important;padding:3px 6px!important}
  #room .slMain:not(.csMode) .slot .sAv{width:28px!important;height:28px!important;font-size:16px}
  #room .slMain:not(.csMode) .slot>div{min-width:0}
  #room .slMain:not(.csMode) .slot>div>b{display:block;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #room .slMain:not(.csMode) .slot>div>small{display:block;font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #room .slMain:not(.csMode) .slot .rdy{font-size:10px!important;padding:2px 5px!important}
  #room .slMain:not(.csMode) .slot .sCt{gap:3px!important}
  #room .slMain:not(.csMode) .slot .sCt .ib2{width:24px!important;height:24px!important;min-width:0!important;padding:0!important;font-size:11px}
}
@media (max-width:820px) and (max-height:380px){
  #room .slMain:not(.csMode){grid-template-columns:minmax(0,1fr) 224px!important}
  #room.slNoCs>.slWrap:has(.tCol>.slot:nth-of-type(4))>.slCount{width:224px}
  #room .slMain:not(.csMode) .slTeams{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;gap:4px!important}
  #room .slCode small{display:none}
  #room .slCode .btn{padding:3px 6px!important;font-size:10px!important}
  #room .slMain:not(.csMode) .slot .rdy{padding:2px 4px!important;letter-spacing:0!important}
  #room .slMain:not(.csMode) .slot .bLv button{min-width:0!important;width:18px!important;height:18px!important;padding:0!important;font-size:10px!important}
}
