/* Players page in the style of the new home page (styles/home-v2.css): flat dark page, thin grey lines, a divider before the side panel. Loaded last. */
.us-page { --v-line: rgba(255, 255, 255, .1); --v-dim: #8d9ab0; --v-blue: #4aa8ff; }
.us-page { margin-top: 18px; }

/* search */
.us-controls { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; margin-bottom: 14px; }
.us-search, .us-controls .us-search { height: 46px; padding: 0 10px 0 15px; border: 1px solid var(--v-line); border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.us-search:focus-within { border-color: rgba(98, 190, 255, .55); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 3px rgba(74, 168, 255, .14); }
.us-search-ico { width: 18px; height: 18px; flex-basis: 18px; color: var(--v-dim); }
#usSearch { font-size: 14.5px; }
#usSearch::placeholder { color: #a3b0c4; }
.us-kbd { width: 22px; height: 22px; border-radius: 5px; border-color: var(--v-line); color: var(--v-dim); }

/* the three views: plain tabs with a line under the chosen one */
.us-bar { margin: 12px 0 0; padding: 0; border-bottom: 1px solid var(--v-line); gap: 0; justify-content: flex-start; }
.us-seg, .us-seg.is-ready { gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.us-seg-thumb { display: none !important; }
.us-seg-btn { position: relative; height: 42px; padding: 0 16px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: #aab6c9; font-size: 14px; font-weight: 600; }
.us-seg-btn:hover { color: #fff; }
.us-seg-btn.is-on { color: #fff; }
.us-seg-btn.is-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--v-blue); }
.us-seg-btn b { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #c3cee0; font-size: 11.5px; font-weight: 650; }
.us-list { padding-top: 18px; }

/* the players: a round face and the name, no box */
.user-card, .user-card:hover { border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.users-grid { gap: 22px 14px; }
.user-card .user-display-name { font-size: 14.5px; font-weight: 650; }
.user-card .user-username { color: var(--v-dim); font-size: 12.5px; }
.us-empty { border: 1px solid var(--v-line); border-radius: 10px; background: none; }
.us-btn { border: 1px solid var(--v-line); border-radius: 8px; background: transparent; box-shadow: none; color: #e4ecf8; }

/* the side panel: no box, a line on its left */
.us-layout { gap: 0; align-items: stretch; }
.us-main { padding-right: 26px; }
.us-side { align-self: start; border: 0; border-left: 1px solid var(--v-line); border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-left: 14px; }
.us-side-tabs { padding: 0; border-bottom: 1px solid var(--v-line); }
.us-pane { padding: 14px 0 0; }
.lb-scope { border: 1px solid var(--v-line); border-radius: 8px; background: none; padding: 3px; }
.lb-scope button { border-radius: 6px; background: transparent !important; box-shadow: none !important; color: #aab6c9; }
.lb-scope button.is-on { background: rgba(74, 168, 255, .14) !important; color: #cfe6ff; }
.us-you { border: 1px solid var(--v-line); border-radius: 10px; background: none; }
.lb-list { gap: 0; }
.lb-list li { border-bottom: 1px solid var(--v-line); }
.lb-list li:last-child { border-bottom: 0; }
.lb-row, .lb-row:hover { border: 0; border-radius: 0; background: none; box-shadow: none; }
.lb-row:hover { background: rgba(255, 255, 255, .035); }
.lb-row.is-top-1 b { color: #ffc94d; }
.lb-row.is-top-2 b { color: #e2e9f4; }
.lb-row.is-top-3 b { color: #f0a15e; }

@media (max-width: 1100px) {
    .us-main { padding-right: 0; }
    .us-side { border-left: 0; padding-left: 0; }
}

/* wins over the older layers */
body.users-body .users-grid a.user-card.user-card { padding: 6px 4px 8px; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
body.users-body .users-grid a.user-card.user-card::before, body.users-body .users-grid a.user-card.user-card::after { display: none !important; }
body.users-body .users-grid a.user-card.user-card:hover { background: rgba(255, 255, 255, .03) !important; }
body.users-body .us-seg-btn, body.users-body .us-seg-btn.is-on, body.users-body .us-seg-btn.is-on:hover { border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.users-body .us-seg-btn::before { display: none !important; }
body.users-body .us-seg-btn.is-on b { background: rgba(74, 168, 255, .18) !important; color: #cfe6ff !important; }
body.users-body .us-seg-btn b { background: rgba(255, 255, 255, .07) !important; }
.lb-scope::before { background: rgba(74, 168, 255, .16); box-shadow: inset 0 0 0 1px rgba(74, 168, 255, .35); border-radius: 6px; }
.lb-scope button.is-on { color: #cfe6ff; background: none !important; }
.us-side-tab::after { box-shadow: none; background: var(--v-blue); }
.users-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body.users-body .us-seg-btn.is-on::after { content: ''; display: block; position: absolute; left: 10px; right: 10px; bottom: -1px; top: auto; height: 2px; border-radius: 0; background: #4aa8ff; box-shadow: none; opacity: 1; transform: none; }

/* round 2: the chosen view and the numbers */
body.users-body .us-seg-btn.is-on::after { display: block !important; left: 0 !important; right: 0 !important; bottom: -1px !important; height: 2px !important; background: #4aa8ff !important; transform: none !important; opacity: 1 !important; }
body.users-body .us-seg-btn { padding: 0 18px; gap: 7px; }
body.users-body .us-seg-btn:hover { background: rgba(255, 255, 255, .035) !important; }
body.users-body .us-seg-btn b, body.users-body .us-seg-btn.is-on b { margin: 0; padding: 0 !important; border-radius: 0; background: none !important; color: #6f7c92 !important; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.users-body .us-seg-btn.is-on b { color: #9fd0ff !important; }
body.users-body .us-bar { border-bottom: 1px solid rgba(255, 255, 255, .1); }

/* round 3: the tabs look and move like Charts / Collections / Favorites on the games page */
.us-bar { margin-top: 12px; padding: 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .07)); }
body.users-body .us-seg, body.users-body .lb-scope { display: flex; gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.users-body .lb-scope { margin: 0 0 12px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .07)); }
body.users-body .lb-scope::before { display: none !important; }
body.users-body .us-seg-btn, body.users-body .lb-scope button { position: relative; flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 14px; border: 0 !important; border-radius: 10px 10px 0 0 !important; background: transparent !important; box-shadow: none !important; color: #8d9ab0 !important; font: 650 13px/1 Inter, sans-serif; cursor: pointer; transition: color .18s ease, background .18s ease; }
body.users-body .us-seg-btn { flex: 0 0 auto; padding: 0 18px; }
body.users-body .us-seg-btn:hover, body.users-body .lb-scope button:hover { color: #e6edf7 !important; background: rgba(255, 255, 255, .04) !important; }
body.users-body .us-seg-btn.is-on, body.users-body .lb-scope button.is-on { color: #fff !important; background: transparent !important; }
body.users-body .us-seg-btn::after, body.users-body .lb-scope button::after { content: '' !important; display: block !important; position: absolute; left: 12px !important; right: 12px !important; bottom: -1px !important; top: auto !important; height: 2px !important; border-radius: 2px; background: linear-gradient(90deg, #4aa8ff, #8f9bff) !important; box-shadow: 0 0 12px rgba(74, 168, 255, .7); opacity: 1 !important; transform: scaleX(0) !important; transition: transform .3s cubic-bezier(.2, .9, .3, 1) !important; }
body.users-body .us-seg-btn.is-on::after, body.users-body .lb-scope button.is-on::after { transform: scaleX(1) !important; }
/* the Leaderboard heading: no line under it */
body.users-body .us-side-tab::after, body.users-body .us-side-tab.is-on::after { display: none !important; }
/* your rank: no border */
body.users-body .us-you { border: 0 !important; background: rgba(255, 255, 255, .03); }
@media (prefers-reduced-motion: reduce) { body.users-body .us-seg-btn::after, body.users-body .lb-scope button::after { transition: none !important; } }

/* the push between the views (scripts/pane-push.js) is the same as on the games page */
.lb-board, .lb-board:not([hidden]) { animation: none; }
.lb-board.is-push-out { animation: rdash-push-out .12s ease-in both; }
.lb-board.is-push-in { animation: rdash-push-in .28s cubic-bezier(.2, .9, .25, 1) both; }

/* round 4: the leaderboard panel is solid dark like the page, and without scrollbars */
.us-side { background: #05070b; }
.us-side, .us-side * { scrollbar-width: none !important; }
.us-side::-webkit-scrollbar, .us-side *::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 1100px) { .us-side { background: #05070b; border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 -24px 60px rgba(0, 0, 0, .6); } }
.us-search:focus-within { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); box-shadow: none; }

/* round 5: the same blocks and tabs as the games page */
body.users-body .users-grid a.user-card.user-card { padding: 18px 12px 16px !important; border-radius: 8px !important; background: rgba(255, 255, 255, .025) !important; transition: background .25s ease !important; }
body.users-body .users-grid a.user-card.user-card:hover { background: rgba(255, 255, 255, .045) !important; }
.users-grid { gap: 14px !important; }
body.users-body .us-seg-btn::after, body.users-body .lb-scope button::after { height: 2px !important; background: linear-gradient(90deg, #4aa8ff, #8f9bff) !important; box-shadow: 0 0 12px rgba(74, 168, 255, .7) !important; }
body.users-body .us-seg-btn { height: 46px; font-size: 13.5px; }
/* the leaderboard: one framed block with a tinted bar, like the panel of the games page */
.us-side { border: 1px solid rgba(255, 255, 255, .13) !important; border-radius: 10px !important; background: rgba(255, 255, 255, .02) !important; padding-left: 0 !important; overflow: hidden; }
.us-layout { gap: 24px !important; }
.us-main { padding-right: 0 !important; }
.us-side-tabs { background: rgba(255, 255, 255, .035); border-bottom: 1px solid rgba(255, 255, 255, .1) !important; }
.us-side-tab { height: 50px !important; justify-content: center; }
.us-pane { padding: 16px !important; }
body.users-body .lb-scope { margin: -16px -16px 16px; padding: 0; background: rgba(255, 255, 255, .025); border-bottom: 1px solid rgba(255, 255, 255, .08) !important; }
.lb-row { border-radius: 6px !important; padding: 10px 8px !important; }
@media (max-width: 1100px) { .us-side { background: #050a18 !important; border-radius: 14px 14px 0 0 !important; } }
