/* ===== Лидерборд активных серверов, группы, приглашения, журнал входов ===== */

.profile-card, .profile-panel { position: relative; }
/* значки сезонов (место в лидерборде активных серверов) */
.pc-sbadges { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.sb-badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px 0 5px; border-radius: 7px; font-size: 12px; font-weight: 800; color: #fff; background: #26262c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sb-badge.p1, .sb-badge.top { background: linear-gradient(135deg, #b8860b, #fbbf24); color: #1c1302; }
.sb-badge.p2 { background: linear-gradient(135deg, #6b7280, #e5e7eb); color: #111; }
.sb-badge.p3 { background: linear-gradient(135deg, #7c3e12, #d97706); }
.sb-badge.p4, .sb-badge.p5 { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }


/* ---------- лидерборды ---------- */
.lb-modal { width: min(620px, 94vw) !important; padding: 0 !important; overflow: hidden; }
.lb-hero { position: relative; padding: 26px 24px 18px; overflow: hidden; background: radial-gradient(ellipse at 50% -20%, rgba(251, 191, 36, .28), transparent 65%), linear-gradient(180deg, #121216, #0b0b0e); }
.lb-hero h2 { margin: 4px 0 2px; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.lb-hero small { color: var(--muted); }
.lb-season { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(251, 191, 36, .14); color: #fde68a; }
.lb-timer { margin-top: 10px; display: flex; gap: 6px; }
.lb-timer span { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.lb-timer b { font-size: 18px; font-variant-numeric: tabular-nums; } .lb-timer em { font-style: normal; font-size: 10px; color: var(--muted); }
.lb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; padding: 18px 20px 6px; }
.lb-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.lb-pod .lb-step { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #111; }
.lb-pod.p1 .lb-step { height: 74px; background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 10px 30px -10px #f59e0b; }
.lb-pod.p2 .lb-step { height: 54px; background: linear-gradient(180deg, #f3f4f6, #9ca3af); }
.lb-pod.p3 .lb-step { height: 42px; background: linear-gradient(180deg, #fdba74, #b45309); }
.lb-pod b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pod small { color: var(--muted); font-size: 11.5px; }
.lb-gicon { width: 48px; height: 48px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; background: var(--bg-active); font-weight: 800; }
.lb-gicon img { width: 100%; height: 100%; object-fit: cover; }
.lb-pod.p1 .lb-gicon, .lb-pod.p1 .av { box-shadow: 0 0 0 3px #fbbf24, 0 0 22px rgba(251, 191, 36, .5); }
.lb-list { max-height: min(44vh, 420px); overflow-y: auto; padding: 8px 14px 16px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.lb-row:hover { background: rgba(255, 255, 255, .04); }
.lb-row.me { background: rgba(167, 139, 250, .12); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .35); }
.lb-place { width: 28px; text-align: center; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-row .lb-gicon { width: 36px; height: 36px; border-radius: 11px; }
.lb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-main small { color: var(--muted); font-size: 12px; }
.lb-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-lvl { display: inline-flex; align-items: center; gap: 4px; }
.lb-mine { margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lb-mine b { color: #fff; }
.lb-x2 { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #a78bfa, #60a5fa); color: #fff; font-size: 11px; font-weight: 900; }
.lb-badges { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.lb-empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- скрытый режим (панель владельца) ---------- */
.stealth-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; margin: 16px 0; max-width: 640px; background: var(--bg-panel); border: 1px solid var(--border); transition: background .3s, border-color .3s; }
.stealth-card.on { background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(15, 15, 20, .9)); border-color: rgba(129, 140, 248, .45); }
.stealth-card > div { flex: 1; display: flex; flex-direction: column; gap: 3px; } .stealth-card small { color: var(--muted); line-height: 1.4; }
.sc-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(129, 140, 248, .16); color: #a5b4fc; flex: none; }
.vc-member.stealthy, .tile.stealthy { opacity: .55; }
.stealth-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(129, 140, 248, .2); color: #c7d2fe; }

/* ---------- галочки прочтения ---------- */
.msg-read { display: inline-flex; align-items: center; margin-left: 6px; color: var(--muted); vertical-align: middle; }
.msg-read.seen { color: #60a5fa; }
.msg-read .ic { width: 15px; height: 15px; }

/* ---------- системные сообщения: вход/выход, группа ---------- */
.msg.sys-msg { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 22px; color: var(--muted); font-size: 14px; }
.sys-msg .sys-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sys-msg.join .sys-ic { background: rgba(52, 211, 153, .15); color: #34d399; }
.sys-msg.leave .sys-ic, .sys-msg.kick .sys-ic { background: rgba(248, 113, 113, .14); color: #f87171; }
.sys-msg.group .sys-ic { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.sys-msg b { color: var(--text); cursor: pointer; }
.sys-msg time { font-size: 12px; color: var(--faint); margin-left: 4px; }

/* ---------- приглашение в голосовой ---------- */
.vinv { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(52, 211, 153, .12), rgba(15, 15, 20, .6)); border: 1px solid rgba(52, 211, 153, .3); }
.vinv .lb-gicon { width: 42px; height: 42px; border-radius: 13px; }
.vinv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vinv-main small { color: var(--muted); font-size: 12px; } .vinv-main b { display: flex; align-items: center; gap: 5px; }
.vinv-live { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.vinv-live .av { margin-right: -6px; box-shadow: 0 0 0 2px #101014; }
.vinv .btn { flex: none; }

/* ---------- группы ---------- */
.grp-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #8b5cf6, #3b82f6); overflow: hidden; }
.grp-ic img { width: 100%; height: 100%; object-fit: cover; }
.grp-pick { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; margin-top: 8px; }
.grp-pick label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.grp-pick label:hover { background: var(--bg-hover); }
.grp-pick input { margin-left: auto; width: 18px; height: 18px; accent-color: #a78bfa; }
.grp-count { font-size: 12px; color: var(--muted); }

/* ---------- печатает в голосовом ---------- */
.typing-dots { display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bg-input) 85%, transparent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #e4e4e7; animation: tyDot 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tyDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.tile .typing-dots { position: absolute; top: 10px; right: 10px; z-index: 3; animation: fadeIn .2s; }
.vc-member .typing-dots { margin-left: auto; padding: 3px 5px; transform: scale(.85); }
.vc-member .typing-dots i { width: 4px; height: 4px; }

/* ---------- полоска уровня под названием сервера ---------- */
.gh-level { display: flex; flex-direction: column; gap: 7px; margin: 8px 10px 4px; padding: 9px 10px 10px; border-radius: 12px; background: var(--bg-panel); border: 1px solid var(--border); }
.ghl-top { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.ghl-top b { font-size: 12.5px; }
.ghl-top small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.ghl-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ghl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a1a1aa, #fff); box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.ghl-more { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 700; color: var(--text-2); padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.ghl-more:hover { background: var(--bg-hover); color: #fff; }
.lvi-modal { width: min(560px, 94vw) !important; padding: 0 !important; }
.lvi-head { position: relative; display: flex; gap: 16px; align-items: center; padding: 22px 22px 10px; }
.lvi-head h2 { margin: 2px 0 4px; } .lvi-head small { color: var(--muted); } .lvi-head p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.lvi-head .x { position: absolute; top: 12px; right: 12px; }
.lvi-body { padding: 4px 22px 8px; max-height: 60vh; overflow-y: auto; }
.lvi-body h4 { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lvi-earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lvi-earn > div { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; background: var(--bg-panel); border: 1px solid var(--border); }
.lvi-earn small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.lvi-steps { display: flex; flex-direction: column; gap: 6px; }
.lvi-step { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--bg-panel); border: 1px solid var(--border); opacity: .7; }
.lvi-step.on { opacity: 1; border-color: rgba(255, 255, 255, .22); }
.lvi-step > div { flex: 1; display: flex; flex-direction: column; } .lvi-step small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.lvi-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; flex: none; }
.lvi-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }
.lb-toggle { max-width: none; box-sizing: border-box; margin: 14px 0 12px;
}
.lb-toggle > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-toggle b { display: inline-flex; align-items: center; gap: 7px; }
.lb-toggle b svg { flex: none; }
.lb-toggle { padding: 12px 14px; border-radius: 14px; background: var(--bg-panel); border: 1px solid var(--border); }
.sb-badge.top.p2 { background: linear-gradient(135deg, #6b7280, #e5e7eb); color: #111; }
.sb-badge.top.p3 { background: linear-gradient(135deg, #7c3e12, #d97706); color: #fff; }
@media (max-width: 600px) { .lvi-earn { grid-template-columns: 1fr; } }

/* замок активности (до 5 уровня) */
.lb-lock { display: flex; align-items: center; gap: 14px; margin: 14px 20px 4px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lb-lock > .ic { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--bg-panel); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 18px rgba(255, 255, 255, .15); }
.lb-lock div { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lb-lock small { color: var(--muted); line-height: 1.4; }
.lb-lock .btn { flex: none; }
.lb-empty .ic { vertical-align: -3px; margin-right: 4px; }
/* кнопка активности под полоской уровня */
.ghl-act { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; padding: 5px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .04); transition: background .15s, color .15s; }
.ghl-act:hover { background: rgba(255, 255, 255, .08); color: var(--text, #fff); }
.ghl-act > span:not(.sb-badge) { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghl-act.on { color: #fde68a; }
.ghl-act .sb-badge { height: 18px; padding: 0 5px 0 4px; font-size: 11px; border-radius: 6px; }

/* «печатает…» в списке участников и личных сообщений */
.m-meta.is-typing > small:not(.m-typing), .dm-meta.is-typing > small:not(.m-typing) { display: none; }
.m-typing { display: flex !important; align-items: center; gap: 6px; color: var(--text, #fff) !important; font-weight: 600; }
.m-typing .typing-dots { padding: 0; background: none; box-shadow: none; gap: 2px; }
.m-typing .typing-dots i { width: 4px; height: 4px; }
/* ограниченный профиль */
.pc-limited { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .04); }
/* карточка клана */
.clan-pop { padding: 0 !important; overflow: hidden; width: 340px; border-radius: 18px !important; }
.clan-card { position: relative; }
.cc-banner { position: relative; height: 92px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 75%, #000), color-mix(in srgb, var(--cc) 25%, #050507)); }
.cc-banner i { position: absolute; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 60%, #fff) , transparent 70%); opacity: .35; filter: blur(2px); }
.cc-banner i:nth-child(1) { width: 140px; height: 140px; right: -30px; top: -50px; }
.cc-banner i:nth-child(2) { width: 70px; height: 70px; left: 40%; top: 30px; opacity: .2; }
.cc-banner i:nth-child(3) { width: 40px; height: 40px; left: 18px; top: 12px; opacity: .25; }
.cc-icon { position: absolute; left: 16px; top: 52px; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; color: var(--cc); background: var(--bg-input); box-shadow: 0 0 0 5px var(--bg-panel, #0e0e11), 0 0 24px color-mix(in srgb, var(--cc) 35%, transparent); overflow: hidden; }
.cc-icon .cb-img { width: 100% !important; height: 100% !important; object-fit: cover; }
.cc-body { padding: 44px 16px 16px; }
.cc-body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.cc-stats { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; }
.cc-stats span { display: inline-flex; align-items: center; gap: 6px; }
.cc-stats .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cc-meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.cc-meta b { color: var(--text, #fff); cursor: pointer; }
.cc-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); word-wrap: break-word; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cc-act { margin-top: 14px; }
.cc-act .btn { width: 100%; justify-content: center; height: 42px; }
.cc-join { background: #16a34a !important; color: #fff !important; }
.cc-join:hover { background: #15803d !important; }
.clan-tag[data-clan] { cursor: pointer; }
.msg-body > .msg-read { position: absolute; right: 16px; bottom: 4px; margin: 0; }
/* системные: уровень и подарок */
.sys-msg.level .sys-ic { background: rgba(253, 230, 138, .14); color: #fde68a; }
.sys-msg.gift .sys-ic { background: rgba(244, 114, 182, .15); color: #f9a8d4; }
.sys-msg b { color: var(--text, #fff); }
/* кнопка «подарить уровень» под названием сервера */
.ghl-gift { flex: none; margin-left: auto; width: 24px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #f9a8d4; background: rgba(244, 114, 182, .12); transition: background .15s, transform .15s; }
.ghl-gift:hover { background: rgba(244, 114, 182, .22); transform: translateY(-1px); }
.ghl-gift + .ghl-more { margin-left: 4px; }
/* окно подарка уровня */
.glv-modal { width: min(520px, 94vw) !important; padding: 0 !important; overflow: hidden; }
.glv-head { position: relative; padding: 26px 24px 14px; text-align: center; background: radial-gradient(ellipse at 50% -10%, rgba(244, 114, 182, .28), transparent 65%); }
.glv-head .x { position: absolute; right: 12px; top: 12px; }
.glv-head h2 { margin: 10px 0 4px; }
.glv-head p { margin: 0; font-size: 13.5px; }
.glv-ic { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 10px 30px -8px #ec4899; animation: glvBob 2.4s ease-in-out infinite; }
@keyframes glvBob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.glv-list { display: flex; flex-direction: column; gap: 8px; padding: 6px 18px 4px; max-height: 50vh; overflow-y: auto; }
.glv-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-input); border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, background .15s; }
.glv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.glv-opt:has(input:checked) { border-color: #f472b6; background: rgba(244, 114, 182, .08); }
.glv-opt div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.glv-opt small { color: var(--muted); font-size: 12px; }
.glv-opt em { font-style: normal; font-weight: 800; white-space: nowrap; }
.glv-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 18px; }
/* благодарность за подарок в общем чате */
.msg.sys-gift { display: block; padding: 6px 48px 6px 16px; margin-top: 14px; }
.msg.sys-gift:hover { background: transparent; }
.lg-card { position: relative; display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 16px 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(139, 92, 246, .16) 55%, rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(244, 114, 182, .3); }
.lg-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .08), transparent 30%); animation: lgSpin 6s linear infinite; pointer-events: none; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-emb { position: relative; flex: none; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .35)); }
.lg-main { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lg-main small { display: inline-flex; align-items: center; gap: 5px; color: #f9a8d4; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.lg-main b { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.lg-main b [data-user] { cursor: pointer; }
.lg-main p { margin: 0; color: #f4f4f5; line-height: 1.45; }
.sys-gift.fresh .lg-card { animation: lgIn .8s cubic-bezier(.2, .9, .3, 1.25); }
.sys-gift.fresh .lg-emb { animation: lgEmb 1.4s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes lgIn { 0% { transform: scale(.85) translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lgEmb { 0% { transform: scale(0) rotate(-180deg); } 60% { transform: scale(1.25) rotate(15deg); } 100% { transform: none; } }
.lg-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lg-confetti i { position: absolute; top: -10px; left: var(--x); width: 7px; height: 11px; border-radius: 2px; background: var(--c); opacity: 0; animation: lgConf 1.8s var(--d) ease-in forwards; }
@keyframes lgConf { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(150px) rotate(var(--r)); } }
.sys-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sys-pick .select { flex: 1; min-width: 240px; }
.sys-prev { margin: 18px 0; } .sys-prev .msg.sys-gift { padding-left: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .lg-glow, .lg-confetti, .glv-ic { animation: none !important; display: none; } }
/* значок места рядом с названием сервера */
.gh-badge { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 5px; margin-left: 6px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #1c1302; background: linear-gradient(135deg, #b8860b, #fbbf24); box-shadow: 0 0 10px rgba(251, 191, 36, .35); }
.gh-badge.p2 { background: linear-gradient(135deg, #6b7280, #e5e7eb); color: #111; box-shadow: 0 0 10px rgba(229, 231, 235, .3); }
.gh-badge.p3 { background: linear-gradient(135deg, #7c3e12, #d97706); color: #fff; box-shadow: 0 0 10px rgba(217, 119, 6, .35); }
.gh-badge.p4 { background: linear-gradient(135deg, #1e3a5f, #3b82f6); color: #fff; box-shadow: 0 0 10px rgba(59, 130, 246, .35); }
.gh-badge.live { background: rgba(0, 0, 0, .45); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(253, 230, 138, .5); }
.gh-badge .ic { width: 12px; height: 12px; }
.gh-row .gh-name { flex: 0 1 auto; min-width: 0; margin-right: auto; }
.gh-row .gh-name:has(+ .gh-badge) { margin-right: 0; }
.gh-row .gh-badge { margin-right: auto; }
/* окно «Итоги сезона» */
.gh-badge[data-ghbadge] { cursor: pointer; transition: transform .15s; } .gh-badge[data-ghbadge]:hover { transform: translateY(-1px) scale(1.06); }
.sr-modal { width: min(460px, 94vw) !important; padding: 0 !important; overflow: hidden; }
.sr { position: relative; }
.sr-x { position: absolute; right: 12px; top: 12px; z-index: 3; }
.sr-hero { --m1: #fde68a; --m2: #d97706; --glow: rgba(251, 191, 36, .45); position: relative; overflow: hidden; text-align: center; padding: 30px 24px 22px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--m2) 45%, transparent), transparent 70%), linear-gradient(180deg, #121216, #0b0b0e); }
.sr-hero.silver { --m1: #f3f4f6; --m2: #9ca3af; --glow: rgba(229, 231, 235, .35); }
.sr-hero.bronze { --m1: #fdba74; --m2: #b45309; --glow: rgba(217, 119, 6, .4); }
.sr-hero.blue { --m1: #93c5fd; --m2: #2563eb; --glow: rgba(59, 130, 246, .4); }
.sr-rays { position: absolute; left: 50%; top: 70px; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; opacity: .35;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--m1) 40%, transparent) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%); animation: srSpin 24s linear infinite; }
@keyframes srSpin { to { transform: rotate(360deg); } }
.sr-medal { position: relative; width: 92px; height: 92px; margin: 0 auto 14px; animation: srIn .9s cubic-bezier(.2, .9, .3, 1.35); }
.sr-medal-in { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #1c1302;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--m1) 28%, var(--m2) 100%); box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 40px var(--glow), inset 0 -6px 12px rgba(0, 0, 0, .25); }
.sr-medal-in b { font-size: 24px; font-weight: 900; line-height: 1; margin-top: 2px; }
.sr-hero.blue .sr-medal-in, .sr-hero.bronze .sr-medal-in { color: #fff; }
.sr-ribbon { position: absolute; z-index: 1; bottom: -16px; width: 22px; height: 40px; background: linear-gradient(180deg, var(--m2), color-mix(in srgb, var(--m2) 60%, #000)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.sr-ribbon.l { left: 20px; transform: rotate(18deg); } .sr-ribbon.r { right: 20px; transform: rotate(-18deg); }
.sr-medal.cur .sr-medal-in { background: radial-gradient(circle at 35% 30%, #1f2937, #0b0b0e); color: var(--m1); box-shadow: 0 0 0 2px var(--m1), 0 0 30px var(--glow); }
@keyframes srIn { 0% { transform: scale(0) rotate(-120deg); } 70% { transform: scale(1.12) rotate(8deg); } 100% { transform: none; } }
.sr-hero small { position: relative; color: var(--m1); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.sr-hero h2 { position: relative; margin: 4px 0 4px; font-size: 28px; }
.sr-hero p { position: relative; margin: 0 auto; max-width: 340px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.sr-stats { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sr-stats span { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sr-stats b { font-size: 15px; } .sr-stats em { font-style: normal; font-size: 11px; color: var(--muted); }
.sr-body { padding: 4px 20px 0; }
.sr-now { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: var(--text-2, #d4d4d8); background: rgba(255, 255, 255, .04); }
.sr-hist h4 { margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.sr-row div { display: flex; flex-direction: column; } .sr-row small { color: var(--muted); font-size: 12px; }
.sr-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 18px; }
@media (prefers-reduced-motion: reduce) { .sr-rays, .sr-medal { animation: none; } }
.sr-list { max-height: 220px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
/* карточки ссылок AudioHub: сервер, клан, сайт — в стиле приглашения в голосовой */
.lk-card { --lk: 255, 255, 255; position: relative; display: flex; align-items: center; gap: 12px; max-width: 440px; margin-top: 6px; padding: 12px 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--lk), .10), rgba(15, 15, 20, .6)); border: 1px solid rgba(var(--lk), .25); }
.lk-card::before { content: ""; position: absolute; inset: 0; background: var(--lkbg, none) center / cover; opacity: .14; pointer-events: none; }
.lk-card.guild { --lk: 129, 140, 248; }
.lk-card.clan { background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 16%, transparent), rgba(15, 15, 20, .6)); border-color: color-mix(in srgb, var(--cc) 40%, transparent); }
.lk-card.site { --lk: 255, 255, 255; }
.lk-card.dead { --lk: 248, 113, 113; opacity: .85; }
.lk-ic { position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 14px; color: #fff; background: var(--bg-hover); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lk-ic img { width: 100%; height: 100%; object-fit: cover; }
.lk-card.site .lk-ic { background: #000; } .lk-card.site .lk-ic img { width: 70%; height: 70%; object-fit: contain; }
.lk-card.clan .lk-ic { color: var(--cc); background: var(--bg-input); box-shadow: 0 0 16px color-mix(in srgb, var(--cc) 30%, transparent); }
.lk-card.dead .lk-ic { color: #f87171; }
.lk-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lk-main small { color: var(--muted); font-size: 12px; }
.lk-main > b { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-main > b .sb-badge { height: 18px; font-size: 11px; }
.lk-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.lk-stats span { display: inline-flex; align-items: center; gap: 5px; }
.lk-stats .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lk-btn { position: relative; flex: none; background: #fff !important; color: #000 !important; font-weight: 700; }
.lk-card.loading .lk-ic { animation: lkPulse 1.2s ease-in-out infinite; }
.lk-card.loading .skel-line { display: block; width: 160px; height: 12px; margin-top: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
@keyframes lkPulse { 50% { opacity: .5; } }
.lk-card { flex-wrap: wrap; } .lk-main { min-width: 150px; } .lk-btn { margin-left: auto; }

/* ================= лидерборд серверов: «табло сезона» ================= */
.lbx-modal { width: min(600px, 94vw) !important; padding: 0 !important; overflow: hidden; }
.lbx { position: relative; display: flex; flex-direction: column; max-height: min(88vh, 860px); }
.lbx-hero { position: relative; padding: 24px 24px 18px; background: linear-gradient(135deg, #232329, #0f0f12 60%); overflow: hidden; flex: none; }
.lbx-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 6px); pointer-events: none; }
.lbx-hero > * { position: relative; }
.lbx-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #f4f4f5;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.lbx-chip svg { color: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .45)); }
.lbx-hero h2 { margin: 12px 0 0; font-size: 22px; }
.lbx-clock { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; font: 800 40px/1 var(--display, 'Unbounded', sans-serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lbx-clock small { font: 700 13px var(--font, 'Manrope', sans-serif); color: var(--muted); margin-right: 10px; letter-spacing: 0; }
.lbx-sp { margin-top: 14px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lbx-sp i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #71717a, #fff); }
.lbx-spl { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 11px; font-weight: 700; color: var(--muted); }
.lbx-x { position: absolute; right: 14px; top: 14px; z-index: 2; }
.lbx-tabs { display: flex; gap: 4px; padding: 12px 16px 4px; flex: none; overflow-x: auto; }
.lbx-tabs button { flex: none; font: inherit; font-size: 13px; font-weight: 800; border: 0; background: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.lbx-tabs button:hover { color: #e4e4e7; } .lbx-tabs button.on { background: rgba(255, 255, 255, .08); color: #fff; }
.lbx-body { overflow-y: auto; min-height: 120px; }
.lbx-table { width: 100%; border-collapse: collapse; }
.lbx-table td { padding: 10px 8px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .05); }
.lbx-table td:first-child { padding-left: 24px; width: 58px; }
.lbx-table td:last-child { padding-right: 24px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lbx-table tr.me td { background: rgba(255, 255, 255, .045); }
.lbx-table tr.t1 td:first-child { box-shadow: inset 3px 0 0 #d4a72c; } .lbx-table tr.t2 td:first-child { box-shadow: inset 3px 0 0 #9ca3af; } .lbx-table tr.t3 td:first-child { box-shadow: inset 3px 0 0 #b0643a; }
.lbx-nm { display: flex; align-items: center; gap: 10px; min-width: 0; } .lbx-nm b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lbx-n { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbx-n.k1, .lbx-n.k2, .lbx-n.k3, .lbx-big.t1, .lbx-big.t2, .lbx-big.t3 { font: 800 17px var(--display, 'Unbounded', sans-serif); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lbx-n.k1, .lbx-big.t1 { background-image: linear-gradient(180deg, #fde68a, #d4a72c); }
.lbx-n.k2, .lbx-big.t2 { background-image: linear-gradient(180deg, #fff, #9ca3af); }
.lbx-n.k3, .lbx-big.t3 { background-image: linear-gradient(180deg, #fdba74, #9a4a1f); }
.lbx-d { flex: none; font-size: 11px; font-weight: 800; } .lbx-d.up { color: #4ade80; } .lbx-d.dn { color: #f87171; } .lbx-d.eq { color: var(--muted); }
.lbx-d.new { color: var(--text-2); padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.lbx-empty { display: flex; align-items: center; gap: 12px; margin: 10px 16px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 14px; }
.lbx-empty svg { flex: none; }
.lbx-mine { padding: 12px 24px 6px; }
.lbx-mhead { display: flex; align-items: center; gap: 12px; } .lbx-mhead > div { flex: 1; min-width: 0; } .lbx-mhead b { display: block; font-size: 16px; } .lbx-mhead small { color: var(--muted); }
.lbx-big { font: 800 44px/1 var(--display, 'Unbounded', sans-serif) !important; color: #fff; }
.lbx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.lbx-stats div { padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); text-align: center; }
.lbx-stats b { display: block; font: 700 16px var(--display, 'Unbounded', sans-serif); } .lbx-stats small { font-size: 11px; color: var(--muted); }
.lbx-note { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 14px; }
.lbx-hist { padding: 6px 16px; }
.lbx-hrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 8px; border-top: 1px solid rgba(255, 255, 255, .05); }
.lbx-hrow > div:first-child { flex: 1; min-width: 160px; } .lbx-hrow b { display: block; } .lbx-hrow small { color: var(--muted); font-size: 12px; }
.lbx-htop { display: flex; flex-wrap: wrap; gap: 6px; } .lbx-htop span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.lbx-htop .lbx-n { font-size: 12px !important; }
.lbx-rules { flex: none; padding: 12px 24px 18px; font-size: 12.5px; line-height: 1.55; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, .05); }
@media (max-width: 560px) { .lbx-clock { font-size: 30px; } .lbx-stats { grid-template-columns: 1fr 1fr; } .lbx-table td:first-child { padding-left: 16px; } .lbx-table td:last-child { padding-right: 16px; } }

/* ================= итоги сезона: лавровый венок ================= */
.srx-modal { width: min(480px, 94vw) !important; padding: 0 !important; overflow: hidden; }
.srx { position: relative; padding: 30px 24px 22px; text-align: center; }
.srx-x { position: absolute; right: 14px; top: 14px; }
.srx-wreath { position: relative; width: 200px; height: 170px; margin: 0 auto; animation: srxPop .8s cubic-bezier(.2, .8, .2, 1) both; }
.srx-wreath svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.srx-wreath b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 8px; font: 800 64px var(--display, 'Unbounded', sans-serif);
  background: linear-gradient(180deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.srx-wreath.cur { opacity: .85; }
@keyframes srxPop { from { opacity: 0; transform: scale(.6); } }
.srx-k { display: block; margin-top: 16px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.srx h2 { margin: 8px 0 0; font-size: 22px; }
.srx p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.srx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.srx-stats div { padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.srx-stats b { display: block; font: 700 16px var(--display, 'Unbounded', sans-serif); } .srx-stats small { font-size: 11px; color: var(--muted); }
.srx-hist { margin-top: 18px; text-align: left; } .srx-hist h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.srx-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid rgba(255, 255, 255, .05); }
.srx-row .lbx-n { width: 28px; text-align: center; } .srx-row b { display: block; font-size: 14px; } .srx-row small { color: var(--muted); font-size: 12px; }
.srx-foot { display: flex; gap: 10px; margin-top: 20px; } .srx-foot .btn { flex: 1; justify-content: center; }
body.no-anim .srx-wreath { animation: none; }
/* баннер клана */
.cc-banner.img { background-size: cover; background-position: center; }
.cc-banner.img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.cf-banner { display: flex; flex-direction: column; gap: 8px; }
.cf-bprev { height: 96px; border-radius: 14px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--border-2); }
.cf-bprev.empty { background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 75%, #000), color-mix(in srgb, var(--cc) 25%, #050507)); }
.cf-bbtns { display: flex; gap: 8px; flex-wrap: wrap; }
/* ---------- карточка клана «Обложка» ---------- */
.clan-pop:has(.ck2) { width: 330px; }
.ck2 { background: #0b0b0d; }
.ck2-ban { position: relative; height: 200px; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 75%, #000), color-mix(in srgb, var(--cc) 25%, #050507)); background-size: cover; background-position: center; }
.ck2-ban::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(11, 11, 13, .25) 40%, #0b0b0d); }
.ck2-ico { position: absolute; right: 14px; top: 14px; z-index: 2; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; color: var(--cc);
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); overflow: hidden; }
.ck2-ico .cb-img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ck2-over { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; }
.ck2-tag { font: 800 44px/1 var(--display, 'Unbounded', sans-serif); letter-spacing: -.02em; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); text-transform: uppercase; }
.ck2-over h3 { margin: 6px 0 0; font-size: 14.5px; font-weight: 700; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck2-body { padding: 4px 16px 16px; }
.ck2-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ck2-row > div { padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; }
.ck2-row b { display: flex; align-items: center; justify-content: center; height: 22px; font: 700 16px var(--display, 'Unbounded', sans-serif); color: #fff; }
.ck2-row small { font-size: 11px; color: var(--muted); }
.ck2 .cc-meta { margin-top: 10px; }
.cf-bbtns [hidden] { display: none !important; }
/* ---------- уровни сервера: «Путь» ---------- */
.lvp { margin-top: 6px; }
.lvp-path { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.lvp-path::before, .lvp-path::after { content: ''; position: absolute; left: 10%; top: 31px; height: 3px; border-radius: 3px; }
.lvp-path::before { right: 10%; background: rgba(255, 255, 255, .1); }
.lvp-path::after { width: calc(80% * var(--f)); background: linear-gradient(90deg, #71717a, #fff); }
.lvp-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.lvp-ring { padding: 4px; border-radius: 50%; background: var(--bg-panel, #0f0f12); transition: box-shadow .15s; }
.lvp-stop:hover .lvp-ring { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lvp-stop.sel .lvp-ring { box-shadow: 0 0 0 2px #fff; }
.lvp-stop.lock .lv-emb { opacity: .4; }
.lvp-stop b { font-size: 12px; line-height: 1.2; text-align: center; } .lvp-stop small { font-size: 11px; color: var(--muted); }
.lvp-det { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border-2); }
.lvp-t { flex: 1; min-width: 0; } .lvp-t h4 { margin: 0; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); }
.lvp-t p { margin: 3px 0 10px; color: var(--muted); font-size: 13px; }
.lvp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lvp-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--text-2); }
.lvp-st { flex: none; font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--text-2); }
.lvp-st.ok { background: #fff; color: #000; }
.lvp-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .lvp-stop b { font-size: 10.5px; } .lvp-det { flex-wrap: wrap; } }
