/* Users page: search + view switch + players on the left, a tabbed panel (leaderboard / online now) on the right. */
body.users-body .container.us-page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 28px clamp(16px, 2.4vw, 40px) 72px; box-sizing: border-box; }
.us-page svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- title */
.us-title { margin-bottom: 20px; }
.us-title h1 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 780; letter-spacing: -.03em; line-height: 1.08; }
.us-title h1 span { background: linear-gradient(100deg, #7cc4ff, #4aa8ff 55%, #8f9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.us-title p { margin: 8px 0 0; min-height: 21px; color: #8d9ab0; font-size: 14.5px; transition: opacity .38s ease, transform .38s ease; }
.us-title p.is-out { opacity: 0; transform: translateY(4px); }
.us-loading { display: flex; align-items: center; gap: 10px; padding: 40px 0; color: #8d9ab0; font-size: 14px; }
.us-loading i { width: 9px; height: 9px; border-radius: 50%; background: #4aa8ff; animation: us-dot 1s ease-in-out infinite; }
.us-loading i:nth-child(2) { animation-delay: .15s; }
.us-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes us-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.7); } 40% { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------- layout */
.us-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.us-main { min-width: 0; }
.us-side { position: sticky; top: 16px; display: flex; flex-direction: column; height: calc(100vh - 32px); max-height: 900px; min-height: 420px; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line, rgba(255,255,255,.07)); border-radius: var(--r-lg, 14px); background: var(--surface-1, rgba(14,19,29,.82)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------------------------------------------------------------- controls: one card */
.us-controls { position: relative; z-index: 5; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line-strong, rgba(255,255,255,.13)); border-radius: 18px; background: rgba(10,15,24,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 50px -24px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05); }
.us-search { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; margin: 0; padding: 0 14px 0 18px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.05); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.us-search:focus-within { border-color: rgba(96,175,255,.7); background: rgba(64,162,250,.07); box-shadow: 0 0 0 3px rgba(64,162,250,.15); }
.us-search-ico { width: 20px; height: 20px; flex: 0 0 20px; color: #7f9bc2; }
.us-search:focus-within .us-search-ico { color: #8ccaff; }
#usSearch { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #f2f6fc; font: 500 16px/1 Inter, sans-serif; outline: none; }
#usSearch::placeholder { color: #6f7f97; }
#usSearch::-webkit-search-cancel-button { display: none; }
.us-kbd { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong, rgba(255,255,255,.13)); border-radius: 6px; color: #7f8da4; font: 600 12px/1 Inter, sans-serif; }
.us-search:focus-within .us-kbd { display: none; }
.us-search-clear { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #cdd7e6; font-size: 18px; line-height: 1; cursor: pointer; }
.us-search-clear:hover { background: rgba(255,255,255,.16); }
.us-search-clear[hidden] { display: none; }

.us-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 12px 2px 0; padding-top: 12px; border-top: 1px solid var(--line, rgba(255,255,255,.07)); }
.us-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); }
.us-seg-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #9aa9c0; font: 650 13px/1 Inter, sans-serif; cursor: pointer; transition: color .18s ease, background .18s ease; }
.us-seg-btn b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cdd7e6; font-size: 11px; font-weight: 700; }
.us-seg-btn:hover { color: #fff; }
.us-seg-btn.is-on { background: linear-gradient(135deg, #2c7be0, #3d9cf4); color: #fff; box-shadow: 0 8px 20px -8px rgba(64,162,250,.9), inset 0 0 0 1px rgba(255,255,255,.16); }
.us-seg-btn.is-on b { background: rgba(255,255,255,.22); color: #fff; }
.us-live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: us-pulse 1.8s ease-out infinite; }
@keyframes us-pulse { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.us-count { color: #8d9ab0; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- player tiles */
.us-list[hidden] { display: none; }
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.users-grid .user-card[hidden] { display: none !important; }
.users-load-more-sentinel { grid-column: 1 / -1; min-height: 1px; pointer-events: none; }
.user-card { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line, rgba(255,255,255,.07)); border-radius: 14px; background: var(--surface-1, rgba(14,19,29,.82)); color: inherit; text-decoration: none; transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .2s ease, background .2s ease, box-shadow .25s ease; }
.user-card:hover { transform: translateY(-3px); border-color: rgba(96,175,255,.5); background: rgba(22,32,50,.9); box-shadow: 0 16px 34px -16px rgba(0,0,0,.8); }
.uc-avatar { position: relative; display: block; width: 54px; height: 54px; flex: 0 0 54px; }
.user-avatar { display: block; width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--user-status-color, #64748b); border-radius: 50%; background: #101722; box-shadow: 0 0 16px -5px var(--user-status-color, transparent); }
.us-dot { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border: 2.5px solid #0d121b; border-radius: 50%; background: #64748b; }
.us-dot.status-ingame { background: #10b981; }
.us-dot.status-online { background: #40a2fa; }
.us-dot.status-roblox-online { background: #6a9fd4; }
.us-dot.status-offline { background: #64748b; }
.us-dot.status-studio { background: #f59e0b; }
.uc-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
.user-display-name { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; color: #eef3fa; letter-spacing: -.005em; }
.uc-friend { flex: 0 0 auto; padding: 2px 7px; border-radius: 6px; background: rgba(64,162,250,.2); color: #9fd0ff; font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.user-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8091a9; font-size: 12.5px; }
.uc-status { flex: 0 0 auto; align-self: center; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: #aebbd0; font-size: 11.5px; font-weight: 600; }

/* empty states */
.us-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border: 1px dashed var(--line-strong, rgba(255,255,255,.13)); border-radius: 14px; background: rgba(255,255,255,.025); }
.us-empty[hidden] { display: none; }
.us-empty strong { font-size: 15px; font-weight: 650; }
.us-empty span { color: #8d9ab0; font-size: 13.5px; line-height: 1.5; }
.us-btn { display: inline-flex; align-items: center; height: 38px; margin-top: 8px; padding: 0 18px; border: 1px solid rgba(120,190,255,.4); border-radius: 9px; background: linear-gradient(135deg, #2f7fe0, #3a9bf0); color: #fff; font-size: 13px; font-weight: 650; text-decoration: none; }

/* ---------------------------------------------------------------- side panel */
.us-side-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.07)); flex: 0 0 auto; }
.us-side-tab { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 8px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: #8d9ab0; font: 650 13px/1 Inter, sans-serif; cursor: pointer; transition: color .18s ease, background .18s ease; }
.us-side-tab svg { width: 16px; height: 16px; }
.us-side-tab:hover { color: #e6edf7; background: rgba(255,255,255,.04); }
.us-side-tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #4aa8ff, #8f9bff); box-shadow: 0 0 12px rgba(74,168,255,.7); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
.us-side-tab.is-on { color: #fff; }
.us-side-tab.is-on::after { transform: scaleX(1); }
.us-count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(52,211,153,.18); color: #8ff0c0; font-size: 11px; font-weight: 700; }
.us-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.us-pane[hidden] { display: none; }

.us-you { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid rgba(96,175,255,.3); border-radius: 12px; background: linear-gradient(135deg, rgba(47,127,224,.22), rgba(143,155,255,.1)); flex: 0 0 auto; }
.us-you span { color: #a9c4e6; font-size: 12.5px; }
.us-you strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.us-you em { margin-left: auto; font-style: normal; color: #bcd9ff; font-size: 13px; font-weight: 700; }
.us-you.is-guest { background: rgba(255,255,255,.04); border-color: var(--line, rgba(255,255,255,.07)); }

.lb-list, .on-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .18s ease; }
.lb-row:hover { background: rgba(255,255,255,.06); }
.lb-row b { width: 26px; color: #8d9ab0; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.lb-row.is-top-1 b { color: #ffd166; font-size: 16px; }
.lb-row.is-top-2 b { color: #cfd8e6; font-size: 15px; }
.lb-row.is-top-3 b { color: #e6a06a; font-size: 15px; }
.lb-row img { width: 38px; height: 38px; flex: 0 0 38px; object-fit: cover; border-radius: 50%; background: #101722; }
.lb-row.is-top-1 img { box-shadow: 0 0 0 2px #ffd166, 0 0 14px -2px rgba(255,209,102,.6); }
.lb-row.is-top-2 img { box-shadow: 0 0 0 2px #cfd8e6; }
.lb-row.is-top-3 img { box-shadow: 0 0 0 2px #e6a06a; }
.lb-name { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 1px; }
.lb-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.lb-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7f8da4; font-size: 11.5px; }
.lb-row em { color: #cfe0f7; font-size: 13px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-row.is-you { background: rgba(64,162,250,.14); box-shadow: inset 0 0 0 1px rgba(96,175,255,.4); }

.on-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .18s ease; }
.on-row:hover { background: rgba(255,255,255,.06); }
.on-avatar { position: relative; display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.on-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--user-status-color, #64748b); border-radius: 50%; background: #101722; }
.on-avatar .us-dot { width: 13px; height: 13px; border-width: 2px; }
.on-meta { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 2px; }
.on-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.on-meta small { color: #8d9ab0; font-size: 12px; }
.on-game { flex: 0 1 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(16,185,129,.14); color: #8ff0c0; font-size: 11.5px; font-weight: 600; }

/* ---------------------------------------------------------------- phones: the panel is a sheet */
.us-side-fab, .us-side-scrim { display: none; }
@media (max-width: 1100px) {
    .us-layout { grid-template-columns: minmax(0, 1fr); }
    .us-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; height: 78vh; max-height: none; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .34s cubic-bezier(.2,.9,.25,1); box-shadow: 0 -30px 80px rgba(0,0,0,.6); background: #0a0f18; }
    body.us-side-open .us-side { transform: translateY(0); }
    .us-side-scrim { position: fixed; inset: 0; z-index: 2400; display: block; background: rgba(3,6,12,.6); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
    body.us-side-open .us-side-scrim { opacity: 1; pointer-events: auto; }
    .us-side-fab { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 2300; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 1px solid rgba(120,190,255,.45); border-radius: 999px; background: linear-gradient(135deg, #2f7fe0, #3a9bf0); color: #fff; font: 700 13px/1 Inter, sans-serif; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(58,155,240,.9); }
    .us-side-fab svg { width: 18px; height: 18px; }
    body.us-side-open .us-side-fab { opacity: 0; pointer-events: none; }
}
@media (min-width: 1101px) and (max-width: 1360px) { .us-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 650px) {
    body.users-body .container.us-page { padding: 16px 14px 40px; }
    .us-search { height: 48px; padding-left: 14px; }
    .us-kbd { display: none; }
    .users-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .us-seg { width: 100%; }
    .us-seg-btn { flex: 1; justify-content: center; padding: 0 8px; }
    .uc-status { display: none; }
}
@media (prefers-reduced-motion: reduce) { .us-side, .us-title p { transition: none !important; } .us-live, .us-loading i { animation: none; } }

/* ================================================================ round 2 */
/* view switch: plain tabs, the active one gets a line that grows in underneath */
.us-bar { align-items: flex-end; margin-top: 10px; padding-top: 0; border-top: 0; }
.us-seg { gap: 6px; padding: 0; background: none; border-radius: 0; }
.us-seg-btn { height: 42px; padding: 0 14px; gap: 9px; border-radius: 10px 10px 0 0; background: transparent !important; box-shadow: none !important; color: #8b9ab1; font-size: 14px; font-weight: 650; }
.us-seg-btn::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #4aa8ff, #8f9bff); box-shadow: 0 0 12px rgba(74,168,255,.7); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
.us-seg-btn b { min-width: 0; height: auto; padding: 0; background: none !important; color: #66768f; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.us-seg-btn:hover { color: #e6edf7; background: rgba(255,255,255,.04) !important; }
.us-seg-btn.is-on { color: #fff; }
.us-seg-btn.is-on b { color: #8ccaff; }
.us-seg-btn.is-on::after { transform: scaleX(1); }
.us-bar { border-bottom: 1px solid var(--line, rgba(255,255,255,.07)); margin-bottom: 0; }
.us-count { padding-bottom: 12px; }
.us-controls { padding-bottom: 0; }

/* tiles: calmer, the status lives in the dot on the avatar; offline people are a little faded */
.users-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; margin-top: 4px; }
.user-card { gap: 14px; padding: 14px 16px; border-radius: 16px; }
.uc-avatar { width: 56px; height: 56px; flex-basis: 56px; }
.uc-avatar:has(.us-dot.status-offline) .user-avatar { filter: grayscale(.55); opacity: .72; box-shadow: none; }
.uc-meta { gap: 4px; }
.user-display-name { font-size: 15.5px; }
.user-username { font-size: 12.5px; }
.user-card:has(.us-dot.status-ingame) { border-color: rgba(16,185,129,.35); background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(14,19,29,.82) 55%); }
.user-card:has(.us-dot.status-online):hover, .user-card:has(.us-dot.status-ingame):hover { border-color: rgba(96,175,255,.6); }

/* side tabs: the online count sits in the middle where the icon was */
.us-side-tab { gap: 9px; }
.us-side-tab .us-count-pill { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgba(52,211,153,.16); box-shadow: inset 0 0 0 1px rgba(52,211,153,.32); color: #8ff0c0; font-size: 12px; font-weight: 750; line-height: 1; }
.us-side-tab.is-on .us-count-pill { background: rgba(52,211,153,.26); }

/* leaderboard: no boxed row for yourself; a small glowing dot next to your name */
.us-you { background: rgba(255,255,255,.04); border-color: var(--line, rgba(255,255,255,.07)); }
.us-you strong { color: #8ccaff; }
.us-you em { color: #cfe0f7; }
.lb-list { gap: 0; }
.lb-row { padding: 9px 8px; border-radius: 10px; }
.lb-row.is-you { background: transparent; box-shadow: none; }
.lb-row.is-you .lb-name strong { color: #8ccaff; }
.lb-row.is-you b { color: #8ccaff; }
.lb-me { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #4aa8ff; box-shadow: 0 0 10px rgba(74,168,255,.9); vertical-align: middle; }
.lb-name strong { display: flex; align-items: center; }
.lb-row.is-top-1 { background: linear-gradient(90deg, rgba(255,209,102,.1), transparent 70%); }
.lb-row.is-top-2 { background: linear-gradient(90deg, rgba(207,216,230,.07), transparent 70%); }
.lb-row.is-top-3 { background: linear-gradient(90deg, rgba(230,160,106,.08), transparent 70%); }
.lb-row.is-top-1 img, .lb-row.is-top-2 img, .lb-row.is-top-3 img { width: 42px; height: 42px; flex-basis: 42px; }

@media (max-width: 650px) { .us-seg-btn { padding: 0 8px; gap: 6px; } .us-seg { width: 100%; justify-content: space-between; } .us-seg-btn { flex: 1; justify-content: center; } }

/* round 3 */
.us-live { display: none; }
.lb-list { gap: 6px; }
.lb-row { padding: 9px 10px; }
.lb-row.is-top-1, .lb-row.is-top-2, .lb-row.is-top-3 { border-radius: 0; }
.us-side-tab .us-count-pill { min-width: 18px; height: 18px; padding: 0 5px; box-shadow: none; font-size: 10.5px; font-weight: 700; }
.us-side-tab { gap: 8px; }
.user-card, .on-row, .lb-row, .rdash-friend-item { cursor: pointer; }

/* ================================================================ narrow screens */
/* the sheet is pinned by its bottom edge; the "top" of the desktop (sticky) version must not stay, or the closed sheet peeks out above the menu */
@media (max-width: 1100px) { .us-side { top: auto; } }
@media (max-width: 760px) {
    /* heading on one line, the subtitle under it */
    header.us-title { display: block !important; width: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .us-title h1 { white-space: nowrap; }
    .us-title p { display: block; margin: 6px 0 0; }
}
@media (max-width: 650px) {
    /* the ranking sheet opens above the bottom menu instead of covering it */
    .us-side { bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 1050; height: min(70vh, calc(100dvh - 74px - env(safe-area-inset-bottom) - 84px)); transform: translateY(calc(100% + 90px)); border-radius: 18px 18px 0 0; }
    body.us-side-open .us-side { transform: translateY(0); }
    .us-side-scrim { z-index: 1040; }
    .us-side-fab { z-index: 1045; }
    .us-title { margin-bottom: 14px; }
    .us-title p { min-height: 0; font-size: 13.5px; }
    .us-controls { padding: 12px; border-radius: 16px; }
    .us-bar { gap: 10px; }
    .us-count { font-size: 12px; }
}

/* phones: the players are a clean list (one row each) - the old square-tile rules of the shared mobile styles are switched off here */
@media (max-width: 650px) {
    body.users-body .users-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
    body.users-body .users-grid .user-card { aspect-ratio: auto !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 14px !important; padding: 11px 14px !important; border-radius: 16px !important; text-align: left !important; }
    body.users-body .users-grid .uc-avatar { width: 52px !important; height: 52px !important; flex: 0 0 52px !important; }
    body.users-body .users-grid .user-avatar { width: 100% !important; height: 100% !important; }
    body.users-body .users-grid .uc-meta { flex: 1; min-width: 0; align-items: flex-start; text-align: left; }
    body.users-body .users-grid .user-display-name { margin: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px !important; font-weight: 700 !important; text-align: left !important; }
    body.users-body .users-grid .user-username { font-size: 12.5px !important; text-align: left !important; }
    body.users-body .users-grid .uc-status { display: block; max-width: 110px; }
}

/* the "N players" line next to the Everyone / Friends / Online tabs is not shown (the tabs carry the numbers) */
.us-count { display: none !important; }


/* ================================================================ round 4: invisible controls, tab row under the search, roomy tiles */
.us-controls { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; margin-bottom: 18px; }
.us-search { height: 54px; border: 1px solid var(--line-strong, rgba(255,255,255,.13)); background: rgba(10, 15, 24, .72); }
.us-bar { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 12px 0 0; padding: 0; border: 0; }
.us-seg { display: inline-flex; gap: 8px; padding: 0; background: none; border-radius: 0; }
.us-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong, rgba(255,255,255,.13)) !important; border-radius: 11px; background: rgba(10, 15, 24, .72) !important; box-shadow: none !important; color: #aebbd0; font: 650 14px/1 Inter, sans-serif; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.us-seg-btn::after { display: none !important; }
.us-seg-btn b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.08) !important; color: #aebbd0; font-size: 12px; font-weight: 700; }
.us-seg-btn:hover { background: rgba(255,255,255,.07) !important; color: #fff; }
.us-seg-btn:active { transform: scale(.97); }
.us-seg-btn.is-on { border-color: rgba(120,190,255,.55) !important; background: linear-gradient(135deg, rgba(47,127,224,.55), rgba(58,155,240,.4)) !important; color: #fff; }
.us-seg-btn.is-on b { background: rgba(255,255,255,.22) !important; color: #fff; }

/* player tiles */
.users-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-top: 0; }
.user-card { gap: 16px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(21,30,45,.88), rgba(13,18,28,.88)); }
.user-card:hover { transform: translateY(-3px); }
.uc-avatar { width: 64px; height: 64px; flex-basis: 64px; }
.user-avatar { border-width: 3px; box-shadow: none; }
.us-dot { width: 16px; height: 16px; right: -1px; bottom: -1px; border-width: 3px; }
.uc-meta { gap: 3px; }
.user-display-name { font-size: 16.5px; font-weight: 700; }
.user-username { font-size: 13px; }
.uc-state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: #7f8da4; font-size: 12.5px; font-weight: 600; }
.user-card:has(.us-dot.status-ingame) .uc-state { color: #5fe0a8; }
.user-card:has(.us-dot.status-online) .uc-state { color: #7cc4ff; }
@media (max-width: 760px) {
    body.users-body .users-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    body.users-body .users-grid .user-card { padding: 12px 12px !important; gap: 12px !important; border-radius: 14px !important; }
    body.users-body .users-grid .uc-avatar { width: 52px !important; height: 52px !important; flex-basis: 52px !important; }
    body.users-body .users-grid .user-display-name { font-size: 14.5px !important; }
    body.users-body .users-grid .user-username { font-size: 12px !important; }
    .us-search { height: 50px; }
    .us-bar { margin-top: 10px; }
    .us-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
    .us-seg-btn { height: 40px; padding: 0 8px; gap: 6px; font-size: 13.5px; }
}
@media (max-width: 480px) { body.users-body .users-grid { grid-template-columns: minmax(0, 1fr) !important; } body.users-body .users-grid .uc-avatar { width: 56px !important; height: 56px !important; flex-basis: 56px !important; } }
@media (prefers-reduced-motion: reduce) { .us-seg-btn { transition: none !important; } }


/* ================================================================ round 5: segmented tabs with a sliding highlight, clean tiles */
.us-bar { margin-top: 14px; }
.us-seg { position: relative; display: inline-flex; gap: 0; padding: 4px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 14px; background: rgba(10, 15, 24, .72); }
.us-seg-thumb { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 10px; background: linear-gradient(135deg, #2c7be0, #3d9cf4); box-shadow: 0 8px 22px -10px rgba(64,162,250,.95), inset 0 0 0 1px rgba(255,255,255,.18); pointer-events: none; }
.us-seg.is-ready .us-seg-thumb { transition: transform .34s cubic-bezier(.3,.9,.3,1), width .34s cubic-bezier(.3,.9,.3,1); }
.us-seg-btn { position: relative; z-index: 1; height: 38px; padding: 0 18px; border: 0 !important; border-radius: 10px; background: transparent !important; color: #93a3bb; font: 650 14px/1 Inter, sans-serif; }
.us-seg-btn:hover { background: transparent !important; color: #fff; }
.us-seg-btn b { min-width: 0; height: auto; padding: 0; background: none !important; color: #6b7b94; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.us-seg-btn.is-on, .us-seg-btn.is-on:hover { border: 0 !important; background: transparent !important; color: #fff; }
.us-seg-btn.is-on b { background: none !important; color: rgba(255,255,255,.8); }

.users-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.user-card { gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.06); background: rgba(14, 20, 31, .85); }
.user-card:has(.us-dot.status-ingame) { border-color: rgba(52,211,153,.3); background: rgba(14, 20, 31, .85); }
.user-card:hover { transform: translateY(-2px); border-color: rgba(96,175,255,.45); background: rgba(19, 28, 44, .95); box-shadow: 0 14px 30px -16px rgba(0,0,0,.85); }
.uc-avatar { width: 52px; height: 52px; flex-basis: 52px; }
.user-avatar { border-width: 2px; }
.us-dot { width: 14px; height: 14px; border-width: 3px; border-color: #0e141f; }
.uc-meta { gap: 2px; }
.user-display-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.user-username { font-size: 12.5px; color: #77879f; }
.uc-state { flex: 0 1 auto; align-self: center; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); color: #8b9ab1; font-size: 12px; font-weight: 650; }
.user-card:has(.us-dot.status-ingame) .uc-state { background: rgba(16,185,129,.16); color: #5fe0a8; }
.user-card:has(.us-dot.status-online) .uc-state, .user-card:has(.us-dot.status-roblox-online) .uc-state { background: rgba(64,162,250,.16); color: #8ccaff; }
@media (max-width: 760px) {
    .us-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .us-seg-btn { padding: 0 6px; }
    body.users-body .users-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
    body.users-body .users-grid .user-card { padding: 12px 14px !important; gap: 12px !important; }
    body.users-body .users-grid .uc-avatar { width: 48px !important; height: 48px !important; flex-basis: 48px !important; }
    body.users-body .users-grid .user-display-name { font-size: 15px !important; }
    body.users-body .users-grid .uc-state { display: block; }
}

/* the leaderboard sheet takes less of the screen and its rows are tighter */
@media (max-width: 1100px) {
    .us-side { height: min(58vh, 560px); }
    .us-side-tab { height: 40px; }
    .us-pane { padding: 10px 12px; }
    .us-you { margin-bottom: 8px; padding: 9px 12px; }
    .us-you strong { font-size: 17px; }
    .lb-row { gap: 10px; padding: 5px 8px; }
    .lb-row img { width: 32px; height: 32px; flex-basis: 32px; }
    .lb-name strong { font-size: 13.5px; }
}
@media (max-width: 650px) {
    .us-side { height: min(56vh, calc(100dvh - 74px - env(safe-area-inset-bottom) - 100px)); }
}

/* same height as the filter sheet on the games page */
@media (max-width: 650px) {
    .us-side { height: min(52vh, calc(100dvh - 74px - env(safe-area-inset-bottom) - 100px)); }
}

@media (min-width: 651px) and (max-width: 1100px) { .us-side { height: min(52vh, 520px); } }


/* ================================================================ round 6: pill tabs, vertical player cards, no tagline on phones */
.us-seg { display: inline-flex; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; }
.us-seg-thumb { display: none; }
.us-seg-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 14px; border: 1px solid var(--line-strong, rgba(255,255,255,.13)) !important; border-radius: 999px; background: rgba(255,255,255,.03) !important; color: #aab8cd; font: 650 13.5px/1 Inter, sans-serif; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.us-seg-btn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #64748b; transition: background .18s ease, box-shadow .18s ease; }
.us-seg-btn[data-users-view="online"]::before { background: #34d399; }
.us-seg-btn[data-users-view="friends"]::before { background: #8f9bff; }
.us-seg-btn[data-users-view="all"]::before { background: #4aa8ff; }
.us-seg-btn b { min-width: 0; height: auto; padding: 0; background: none !important; color: #6f7f97; font-size: 12.5px; font-weight: 650; }
.us-seg-btn:hover { background: rgba(255,255,255,.08) !important; color: #fff; }
.us-seg-btn:active { transform: scale(.96); }
.us-seg-btn.is-on, .us-seg-btn.is-on:hover { border-color: rgba(120,190,255,.6) !important; background: rgba(64,162,250,.22) !important; color: #fff; box-shadow: 0 0 0 3px rgba(64,162,250,.12) !important; }
.us-seg-btn.is-on b { color: #bcd9ff; }
.us-seg-btn.is-on::before { box-shadow: 0 0 10px currentColor; }

.users-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.user-card { position: relative; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding: 22px 14px 16px; overflow: hidden; text-align: center; border-radius: 18px; border: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(20,29,45,.9), rgba(12,17,27,.9)); }
.user-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #475569; opacity: .6; }
.user-card:has(.us-dot.status-ingame)::before { background: linear-gradient(90deg, #10b981, #34d399); opacity: 1; }
.user-card:has(.us-dot.status-online)::before, .user-card:has(.us-dot.status-roblox-online)::before { background: linear-gradient(90deg, #2f7fe0, #4aa8ff); opacity: 1; }
.user-card:has(.us-dot.status-ingame) { border-color: rgba(255,255,255,.07); }
.user-card:hover { transform: translateY(-3px); border-color: rgba(96,175,255,.5); box-shadow: 0 18px 36px -18px rgba(0,0,0,.9); }
.uc-avatar { width: 76px; height: 76px; flex: 0 0 76px; margin-bottom: 12px; }
.user-avatar { border-width: 3px; }
.us-dot { width: 17px; height: 17px; right: 1px; bottom: 1px; border-width: 3.5px; border-color: #0f1520; }
.uc-meta { flex: 0 0 auto; align-items: center; width: 100%; gap: 3px; }
.user-display-name { justify-content: center; max-width: 100%; font-size: 15.5px; font-weight: 700; }
.user-username { max-width: 100%; text-align: center; font-size: 12.5px; }
.uc-state { align-self: center; max-width: 100%; margin-top: 12px; padding: 5px 13px; font-size: 12px; }

@media (max-width: 760px) {
    .us-title p { display: none !important; }
    .us-title { margin-bottom: 12px; }
    .us-seg { display: flex; width: 100%; gap: 6px; }
    .us-seg-btn { flex: 1; justify-content: center; padding: 0 8px; gap: 6px; font-size: 13px; }
    .us-seg-btn::before { display: none; }
    body.users-body .users-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    body.users-body .users-grid .user-card { flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; gap: 0 !important; padding: 18px 10px 14px !important; border-radius: 16px !important; text-align: center !important; }
    body.users-body .users-grid .uc-avatar { width: 64px !important; height: 64px !important; flex: 0 0 64px !important; margin-bottom: 10px; }
    body.users-body .users-grid .uc-meta { align-items: center !important; text-align: center !important; }
    body.users-body .users-grid .user-display-name { justify-content: center; font-size: 14.5px !important; text-align: center !important; }
    body.users-body .users-grid .user-username { text-align: center !important; font-size: 12px !important; }
    body.users-body .users-grid .uc-state { display: block; margin-top: 10px; max-width: 100%; padding: 4px 11px; font-size: 11.5px; }
}
@media (max-width: 330px) { body.users-body .users-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* the status tag is gone: the dot on the avatar and the colour bar on top already show it */
.uc-state, body.users-body .users-grid .uc-state { display: none !important; }
.uc-avatar { margin-bottom: 14px; }
.user-card { padding-bottom: 20px; }
@media (max-width: 760px) { body.users-body .users-grid .user-card { padding-bottom: 16px !important; } }

/* floating button (the same one on Games and Users) */
body .us-side-fab { height: 48px; gap: 10px; padding: 0 20px 0 8px; border: 1px solid rgba(170, 205, 255, .42); border-radius: 999px; background: linear-gradient(135deg, #2f86e8 0%, #5a67e8 100%); box-shadow: 0 14px 32px -10px rgba(72, 120, 240, .85), 0 4px 12px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .22); color: #fff; font: 750 14px/1 Inter, sans-serif; letter-spacing: .01em; backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, opacity .2s ease; }
body .us-side-fab svg { box-sizing: border-box; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; }
body .us-side-fab:hover { border-color: rgba(210, 228, 255, .75); background: linear-gradient(135deg, #3a92f4 0%, #6674f2 100%); filter: brightness(1.05); transform: translateY(-2px); }
body .us-side-fab:active { transform: scale(.96); }

/* ---- leaderboard: Everyone / Friends */
.lb-scope { position: relative; display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; margin-bottom: 12px; padding: 4px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.lb-scope::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: linear-gradient(135deg, #2f86e8, #5a67e8); box-shadow: 0 6px 16px -8px rgba(72, 120, 240, .9); transition: transform .3s cubic-bezier(.2, .9, .25, 1); }
.lb-scope.is-friends::before { transform: translateX(100%); }
.lb-scope button { position: relative; z-index: 1; height: 32px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: #93a1ba; font: 700 13px/1 Inter, sans-serif; cursor: pointer; transition: color .2s ease; }
.lb-scope button:hover { color: #e6edf7; }
.lb-scope button.is-on { color: #fff; }
.lb-board { animation: lb-board-in .26s ease; }
.lb-board[hidden] { display: none; }
.us-you small { align-self: flex-end; margin: 0 0 2px -7px; color: #8d9ab0; font-size: 12px; font-weight: 650; }
@keyframes lb-board-in { from { opacity: 0; transform: translateY(6px); } }

/* ---- tile hover: the tile keeps its own background and a second layer with the colour fades in over it
   (swapping a gradient for a plain colour cannot be animated, which made the tile blink) */
.users-grid a.user-card.user-card { isolation: isolate; background: linear-gradient(180deg, rgba(20, 29, 45, .9), rgba(12, 17, 27, .9)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .35s ease; }
.users-grid a.user-card.user-card::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(74, 150, 255, .2), rgba(74, 120, 235, .07) 70%, rgba(74, 120, 235, .04)); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.users-grid a.user-card.user-card:hover::after, .users-grid a.user-card.user-card:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lb-board { animation: none; } .lb-scope::before, .users-grid a.user-card.user-card, .users-grid a.user-card.user-card::after { transition: none; } }

/* see-through search bar, leaderboard panel and player tiles (below 1100px the panel slides over the page, so there it stays solid) */
.us-search:not(:focus-within) { background: rgb(10 15 24 / 60%); }
@media (min-width: 1101px) { .us-side { background: rgb(14 19 29 / 60%); } }
.users-grid a.user-card.user-card { background: linear-gradient(180deg, rgb(20 29 45 / 60%), rgb(12 17 27 / 60%)); }
