diff --git a/frontend/profile.html b/frontend/profile.html index 6ebdac3..0cd9c67 100644 --- a/frontend/profile.html +++ b/frontend/profile.html @@ -835,6 +835,21 @@ .av-or::before, .av-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); } + /* ── Рейтинг (leaderboard) ── */ + .lb-head { display: flex; justify-content: flex-end; margin: 4px 0 12px; } + .lb-tabs { display: inline-flex; gap: 4px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 3px; } + .lb-tab { padding: 5px 14px; border: none; background: none; border-radius: 7px; font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--text-3); cursor: pointer; transition: all 0.15s; } + .lb-tab:hover:not(.active) { color: var(--text-2); } + .lb-tab.active { background: var(--violet); color: #fff; } + .lb-list { display: flex; flex-direction: column; gap: 4px; } + .lb-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--border); transition: all 0.15s; } + .lb-row:hover { border-color: rgba(155,93,229,0.25); } + .lb-row-me { background: rgba(155,93,229,0.08); border-color: rgba(155,93,229,0.3); } + .lb-rank { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 0.95rem; width: 26px; text-align: center; flex-shrink: 0; } + .lb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; overflow: hidden; flex-shrink: 0; } + .lb-avatar img { width: 100%; height: 100%; object-fit: cover; } + .lb-name { flex: 1; font-weight: 600; font-size: 0.9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + .lb-xp { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--violet); flex-shrink: 0; }