/* ===== Panel gracza w bocznym menu (2026-11-02) =====
   Wspólny dla strony głównej (.k-sidebar, ładowany po home-light.css) i podstron (.site-side + side-panel.js):
   sekcja Znajomi i Twój profil w tym samym wyglądzie. Kolory z fallbackiem, bo podstrony nie mają zmiennych --club-*. */
.site-side{overflow-y:auto;scrollbar-width:thin}
.site-side .k-side-friends .site-caption,.site-side #sidebarAccount .site-caption{display:block;margin:0 0 6px}
.site-side #sidebarAccount.k-side-account .k-account-caption{margin:0 0 6px}
/* Pasek podstron jest węższy (240 px): na niższych ekranach ciaśniejsze menu i mniejsza czcionka przycisków konta. */
@media(min-width:761px) and (max-height:1150px){
  .site-side{gap:4px}
  .site-side .site-nav a{padding-top:8px;padding-bottom:8px}
  .site-side #sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn{font-size:12px;padding:0 4px}
}
#userProfileCard .btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--club-accent,#6D28D9);color:#fff;font-family:inherit;font-weight:700;cursor:pointer;text-decoration:none}
#userProfileCard .btn.ghost{background:#fff;color:var(--club-accent,#6D28D9);border:1.5px solid var(--club-border-strong,#D6CBF2)}
.k-side-friends-lock a{font-weight:700;color:var(--club-accent,#6D28D9);text-underline-offset:2px}
.site-side .k-side-friends{margin-top:18px}
.site-side #sidebarAccount .name-display{font-size:15px}

/* ---------- profil gracza w pasku bocznym (2026-11-02) ----------
   Bez osobnej karty: sekcja paska jak nawigacja — podpis „TWÓJ PROFIL”, te same wcięcia co pozycje menu.
   ELO i poziom jako dwie liczby rozdzielone kreską (jak statystyki profilu w aplikacji), niżej pasek XP
   i kod znajomego. Zakotwiczona na dole paska, nad linkami. Selektor z #sidebarAccount działa też
   na podstronie gry (#gameHub), dokąd pasek jest przenoszony. */
@media(min-width:761px){
  :is(.k-sidebar,.site-side) #sidebarAccount.k-side-account{margin-top:auto;padding-top:24px}
  :is(.k-sidebar,.site-side) #sidebarAccount~.k-sidebar-bottom{margin-top:0;padding:20px 12px 0}
}
#sidebarAccount.k-side-account .k-account-caption{display:block;margin:0 12px 16px}
#sidebarAccount.k-side-account #userProfileCard{display:flex;flex-direction:column;gap:16px;padding:0 12px;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--club-ink,#1F1633)}
#sidebarAccount.k-side-account #userProfileCard .profile-identity{position:static;display:flex;align-items:center;gap:12px;margin:0;padding:0}
#sidebarAccount.k-side-account #userProfileCard .profile-avatar-v2{width:46px;height:46px;min-width:46px;margin:0;border-radius:50%;font-size:19px;font-weight:700;background:linear-gradient(135deg,#EDE4FF,#FCE7F3);color:var(--club-accent,#6D28D9);border:3px solid #fff;box-shadow:0 0 0 2px var(--app-pink-light,#F472B6),0 4px 12px rgba(109,40,217,.18)}
#sidebarAccount.k-side-account #userProfileCard .name-display{font-size:16px;font-weight:700;line-height:1.25;letter-spacing:-.2px;color:var(--club-ink,#1F1633)}
#sidebarAccount.k-side-account #userProfileCard .name-note{margin-top:3px;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--club-muted,#5B5370)}
#sidebarAccount.k-side-account #userProfileCard .name-note:empty{display:none}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;padding:12px 0;border:0;border-top:1px solid var(--club-line,#E8E1F8);border-bottom:1px solid var(--club-line,#E8E1F8);border-radius:0;background:none}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers>div{grid-column:auto;display:flex;flex-direction:column-reverse;align-items:flex-start;justify-content:flex-end;gap:2px;margin:0;padding:0 0 0 14px;border:0;background:none;text-align:left}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers>div:first-child{padding-left:0;border-right:1px solid var(--club-line,#E8E1F8)}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers>div:last-child{grid-column:auto;flex-direction:column-reverse;align-items:flex-start}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers span{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;line-height:1.3;white-space:nowrap;color:var(--club-muted,#5B5370)}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers b{padding:0;border:0;background:none;font-size:22px;font-weight:700;line-height:1.15;letter-spacing:-.4px;color:var(--club-ink,#1F1633)}
#sidebarAccount.k-side-account #userProfileCard .profile-numbers .elo-chip{color:var(--app-pink,#DB2777)}
#sidebarAccount.k-side-account #userProfileCard .profile-progress{display:block;margin:0;padding:0;border:0}
#sidebarAccount.k-side-account #userProfileCard .profile-progress>div:first-child{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--club-muted,#5B5370)}
#sidebarAccount.k-side-account #userProfileCard .xp-num{font-size:12px;font-weight:700;letter-spacing:0;color:var(--club-accent,#6D28D9)}
#sidebarAccount.k-side-account #userProfileCard .xp-bar{height:8px;border-radius:999px;background:var(--club-strong,#EEE9FB)}
#sidebarAccount.k-side-account #userProfileCard .xp-bar i{min-width:8px;border-radius:999px;box-shadow:none;background:linear-gradient(90deg,var(--club-accent,#6D28D9),var(--app-pink,#DB2777))}
#sidebarAccount.k-side-account #userProfileCard .profile-code{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0}
#sidebarAccount.k-side-account #userProfileCard .profile-code>span{font-size:12px;font-weight:500;white-space:nowrap;color:var(--club-muted,#5B5370)}
#sidebarAccount.k-side-account #userProfileCard .pc-code{display:inline-flex;align-items:center;gap:8px;width:auto;margin:0;padding:0;border:0;background:none;font-size:14px;font-weight:700;letter-spacing:1.6px;color:var(--club-ink,#1F1633);cursor:pointer;transition:color .15s}
#sidebarAccount.k-side-account #userProfileCard .pc-code::after{display:inline-grid;place-items:center;content:'⧉';width:26px;height:26px;border-radius:50%;background:var(--club-strong,#EEE9FB);font-size:12px;letter-spacing:0;opacity:1;color:var(--club-accent,#6D28D9);transition:background .15s,color .15s}
#sidebarAccount.k-side-account #userProfileCard .pc-code:hover{color:var(--club-accent,#6D28D9)}
#sidebarAccount.k-side-account #userProfileCard .pc-code:hover::after{background:var(--club-accent,#6D28D9);color:#fff}
#sidebarAccount.k-side-account #userProfileCard .ach-row{margin:0}
#sidebarAccount.k-side-account #userProfileCard .pc-account{margin:0;padding:0;border:0}
#sidebarAccount.k-side-account #userProfileCard .guest-account-copy{margin:4px 0 -6px;padding:0;border:0;font-size:12px;line-height:1.5;text-align:center;color:var(--club-muted,#5B5370)}
#sidebarAccount.k-side-account #userProfileCard:not(.guest-mode) .guest-account-actions{display:none}
#sidebarAccount.k-side-account #userProfileCard.guest-mode .guest-account-actions{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;width:100%}
#sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn,#sidebarAccount.k-side-account #userProfileCard .pc-account .btn{width:100%;min-height:46px;padding:0 12px;border-radius:999px;font-size:14px;font-weight:700;letter-spacing:.2px;text-transform:none}
#sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn:not(.ghost),#sidebarAccount.k-side-account #userProfileCard .pc-account .btn:not(.ghost){box-shadow:0 6px 16px rgba(109,40,217,.25)}
#sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn.ghost,#sidebarAccount.k-side-account #userProfileCard .pc-account .btn.ghost{min-height:40px;background:none;border:0;box-shadow:none;color:var(--club-accent,#6D28D9)}
#sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn.ghost:hover,#sidebarAccount.k-side-account #userProfileCard .pc-account .btn.ghost:hover{background:var(--club-strong,#EEE9FB)}
@media(max-width:760px){
  #sidebarAccount.k-side-account .k-account-caption{display:none}
  #sidebarAccount.k-side-account #userProfileCard{padding:6px 7px 18px}
  #sidebarAccount.k-side-account #userProfileCard.guest-mode .guest-account-actions{flex-direction:row}
  #sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn{flex:1}
}

/* Podstawowe awatary z aplikacji (zwierzęta) — obrazek wypełnia kółko, ramka i obrys zostają na kontenerze. */
.basic-av{overflow:hidden;padding:0!important;background:#EDE4FF!important}
.basic-av>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#menu .ranking-avatar-v2.basic-av,#menu .friend-avatar-v2.basic-av,#gameHub .ranking-avatar-v2.basic-av,#gameHub .friend-avatar-v2.basic-av{border-radius:50%}

/* ---------- Znajomi w pasku bocznym (2026-11-02) ----------
   Między menu a profilem. Gość widzi przykładową, rozmytą listę z kłódką i zachętą do konta;
   zalogowany — do 5 swoich znajomych, najpierw ci online. Na telefonie pasek jest u góry, więc sekcja znika. */
:is(.k-sidebar,.site-side) .k-side-friends{margin-top:28px;flex:none}
:is(.k-sidebar,.site-side) .k-side-friends .k-nav-caption{display:block;margin:0 12px 12px}
.k-side-friends-preview,.k-side-friends-lock{display:none}
.k-side-friends.guest-locked .k-side-friends-preview,.k-side-friends.guest-locked .k-side-friends-lock{display:flex}
.k-side-friends.guest-locked .k-side-friends-list{display:none}
.k-side-friends-preview,.k-side-friends-list{flex-direction:column;gap:2px}
.k-side-friends-list{display:flex}
.k-side-friends-preview{filter:blur(1.4px) saturate(.85);opacity:.75;pointer-events:none;user-select:none;
  -webkit-mask-image:linear-gradient(180deg,#000 45%,transparent 95%);mask-image:linear-gradient(180deg,#000 45%,transparent 95%)}
.k-side-friends .friend-row{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:999px;background:none;font:inherit;text-align:left;color:var(--club-ink,#1F1633);cursor:pointer}
.k-side-friends-list .friend-row:hover{background:var(--club-strong,#EEE9FB)}
.k-side-friends .friend-avatar-v2{width:30px;height:30px;min-width:30px;border-radius:50%;font-size:13px}
.k-side-friends .dot{order:3;width:8px;height:8px;min-width:8px;border-radius:50%;background:var(--club-border-strong,#D6CBF2)}
.k-side-friends .dot.on{background:#17744F}
.k-side-friends .fname{order:2;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
.k-side-friends .felo{display:none}
.k-side-friends-lock{align-items:flex-start;gap:8px;margin:2px 12px 0;font-size:13px;line-height:1.5;color:var(--club-muted,#5B5370)}
.k-side-friends-lock>span:first-child{flex:none;font-size:14px}
.k-side-friends-lock button{padding:0;border:0;background:none;font:inherit;font-weight:700;color:var(--club-accent,#6D28D9);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.k-side-friends-empty{margin:0 12px;font-size:13px;line-height:1.5;color:var(--club-muted,#5B5370)}
@media(max-width:760px){:is(.k-sidebar,.site-side) .k-side-friends{display:none}}

/* Jedna zachęta do konta w pasku: bez powtórzonego tekstu w profilu i bez „Załóż konto” w górnym pasku
   dla gościa na komputerze (pasek boczny ma już oba przyciski). */
#sidebarAccount.k-side-account #userProfileCard .guest-account-copy{display:none}
@media(min-width:761px){#menu:has(#userProfileCard.guest-mode) #accountQuick{display:none}}

/* Niższe ekrany: pasek boczny mieści się bez przewijania (sprawdzone 1440×1000 i 1440×860). */
@media(min-width:761px) and (max-height:1150px){
  .k-sidebar .k-nav-item{min-height:42px}
  :is(.k-sidebar,.site-side) .k-side-friends{margin-top:18px}
  .k-side-friends-preview .friend-row:nth-child(n+3),.k-side-friends-list .friend-row:nth-child(n+4){display:none}
  .k-side-friends-preview{-webkit-mask-image:linear-gradient(180deg,#000 30%,transparent 100%);mask-image:linear-gradient(180deg,#000 30%,transparent 100%)}
  :is(.k-sidebar,.site-side) #sidebarAccount.k-side-account{padding-top:16px}
  #sidebarAccount.k-side-account .k-account-caption{margin-bottom:12px}
  #sidebarAccount.k-side-account #userProfileCard{gap:12px}
  #sidebarAccount.k-side-account #userProfileCard.guest-mode .guest-account-actions{flex-direction:row;gap:6px}
  #sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn{flex:1 1 0;min-height:42px;padding:0 6px;font-size:13px;white-space:nowrap}
  #sidebarAccount.k-side-account #userProfileCard .guest-account-actions .btn.ghost{border:1.5px solid var(--club-border-strong,#D6CBF2);background:#fff}
  :is(.k-sidebar,.site-side) #sidebarAccount~.k-sidebar-bottom{flex-direction:row;flex-wrap:wrap;gap:6px 14px;padding-top:14px}
}
@media(min-width:761px) and (max-height:900px){
  .k-side-friends-preview,.k-side-friends-list .friend-row:nth-child(n+3){display:none!important}
  .k-sidebar .k-nav-caption{margin-top:18px}
}

.k-side-friends a.friend-row{text-decoration:none}
