:root {
  --top-one-background: linear-gradient(90deg,
      rgb(255 219 92 / 15%) -6%,
      var(--transparent-5-w) 8%,
      var(--transparent-5-w) 26%,
      var(--transparent-5-w),
      var(--transparent-5-w));
  --top-two-background: linear-gradient(90deg,
      rgb(191 224 255 / 15%) -6%,
      var(--transparent-5-w) 8%,
      var(--transparent-5-w) 26%,
      var(--transparent-5-w),
      var(--transparent-5-w));
  --top-three-background: linear-gradient(90deg,
      rgb(248 167 133 / 15%) -6%,
      var(--transparent-5-w) 8%,
      var(--transparent-5-w) 26%,
      var(--transparent-5-w),
      var(--transparent-5-w));
}

.top_players_avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--br-50);
  outline: 2px solid var(--transparent-10-w);
}

.user_online_status {
  position: absolute;
  display: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: var(--br-50);
  background: var(--green);
  top: -1px;
  left: -4px;
  border: 3px solid var(--input-form);
}

.leaderboard__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block: 0.5rem;
  width: 100%;
}

.leaderboard__my-stat,
.leaderboard__my-stat-auth {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: relative;
  background-color: transparent;
  gap: 0.5rem;
}

#userStatsContainer {
  margin-bottom: .3rem;
  border: 1px solid var(--transparent-5-w);
  border-radius: var(--br-12);
  overflow: hidden;
}

.leaderboard__my-stat-auth button {
  z-index: 1;
  margin-top: auto;
}

.leaderboard__my-stat-header {
  display: flex;
  align-items: center;
  z-index: 1;
}

.leaderboard__my-stat-text {
  width: 100%;
  display: grid;
}

.leaderboard__my-stat-hello-text {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  color: var(--span);
  font-size: var(--font-size-m);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.leaderboard__my-stat-nickname {
  color: inherit;
  font-weight: var(--font-weight-7);
  white-space: nowrap;
  overflow: hidden;
  max-width: 9rem;
  text-overflow: ellipsis;
}

.leaderboard__my-stat-description {
  font-size: var(--font-size-s);
  color: var(--span);
  filter: brightness(1.3);
  opacity: 0.5;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.leaderboard__my-stat-rank {
  max-width: 4rem;
  margin-left: auto;
}

.leaderboard__my-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

.leaderboard__my-stat-line-1,
.leaderboard__my-stat-line-2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaderboard__my-stat-avatar {
  height: 44px;
  width: 44px;
  border-radius: var(--br-10);
}

.leaderboard__my-stat-block {
  flex: auto;
  border-radius: var(--br-10);
  background-color: var(--transparent-3-w);
  display: flex;
  flex-direction: column;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--transparent-3-w);
  white-space: nowrap;
}

.leaderboard__my-stat-title {
  font-size: var(--font-size-xs);
  color: var(--text-custom);
}

.leaderboard__my-stat-value {
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-7);
}

.sticky-filter {
  position: sticky;
  top: 0.5rem;
}

.leaderboard__table-rank {
  width: auto;
  height: 1.4rem;
}

.leaderboard__table-user {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}

.leaderboard__table-nickname {
  color: var(--text-default);
  display: grid;
  grid-auto-flow: column;
  align-items: center;
}

.leaderboard__form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}

.leaderboard__form-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--lb-soft);
  background: #0a0a0b;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 0;
  transition: 0.15s ease;
  user-select: none;
  min-height: 38px;
}

.leaderboard__form-label:hover {
  color: var(--lb-text);
  border-color: var(--lb-line-strong);
  background: #0f1013;
}

.leaderboard__form-label:focus-within {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.15);
}

.leaderboard__form-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--lb-muted);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: 0.15s ease;
}

.leaderboard__form-label input[type="checkbox"]:checked {
  background: var(--brass);
  border-color: var(--brass);
}

.leaderboard__form-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.leaderboard__form-label input[type="checkbox"]:hover {
  border-color: var(--brass);
}

.leaderboard__form-label:hover {
  filter: brightness(120%);
}

.leaderboard__fieldset {
  padding: 0.5rem 1rem;
  margin-bottom: 0;
}

.leaderboard__my-stat-auth-text {
  text-align: center;
  font-size: var(--font-size-m);
  color: var(--text-secondary);
  border: 1px dashed currentColor;
  padding: .8rem;
  border-radius: var(--br-8);
}

.leaderboard__my-stat-auth-text span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
}

.leaderboard__table-top-background-1 {
  background-image: var(--top-one-background);
}

.leaderboard__table-top-background-2 {
  background-image: var(--top-two-background);
}

.leaderboard__table-top-background-3 {
  background-image: var(--top-three-background);
}

.leaderboard__table-place {
  font-weight: var(--font-weight-7);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard__table-top-img-1,
.leaderboard__table-top-img-2,
.leaderboard__table-top-img-3 {
  position: relative;
  font-size: 0;
}

.leaderboard__table-top-img-1:before,
.leaderboard__table-top-img-2:before,
.leaderboard__table-top-img-3:before {
  content: "";
  position: absolute;
  -webkit-mask-image: url(../img/shield-medal.svg);
  mask-image: url(../img/shield-medal.svg);
  mask-size: cover;
  -webkit-mask-size: cover;
  width: 1.6rem;
  height: 1.6rem;
}

.leaderboard__table-top-img-1:before { background-color: var(--top-one); }
.leaderboard__table-top-img-2:before { background-color: var(--top-two); }
.leaderboard__table-top-img-3:before { background-color: var(--top-three); }

.leaderboard__table-top-border-1 { outline-color: var(--top-one); }
.leaderboard__table-top-border-2 { outline-color: var(--top-two); }
.leaderboard__table-top-border-3 { outline-color: var(--top-three); }

.leaderboard__table-top-nick-1 { color: var(--top-one); }
.leaderboard__table-top-nick-2 { color: var(--top-two); }
.leaderboard__table-top-nick-3 { color: var(--top-three); }

.leaderboard__table-grey-text {
  color: var(--text-secondary);
  font-size: var(--font-size-s);
}

.banned {
  text-decoration: line-through;
  color: var(--red);
  opacity: 0.6;
}

.leaderboard__ghost {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--transparent-10-b);
  backdrop-filter: blur(10px);
  z-index: 2;
  top: 0;
  left: 0;
  font-size: var(--font-size-m);
  text-align: center;
  font-weight: var(--font-weight-6);
  justify-content: center;
  font-family: var(--font-family-1);
  color: var(--text-custom);
  cursor: default;
  padding: 1rem;
}

.leaderboard__badges {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem;
  border-radius: var(--br-6);
  background-color: var(--transparent-5-w);
  border: 1px solid var(--transparent-4-w);
  margin-left: .3rem;
}

.leaderboard__badges svg {
  width: 1rem;
  height: 1rem;
}

.banned-svg { fill: var(--red); }
.admin-svg { fill: var(--ct); }
.vip-svg { fill: var(--money); }

.leaderboard__nick-hidden {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Leaderboard noir design */
.leaderboard-noir {
  --lb-panel: #060607;
  --lb-panel-2: #09090b;
  --lb-line: rgba(255, 255, 255, 0.075);
  --lb-line-strong: rgba(255, 255, 255, 0.14);
  --lb-text: #f4f4f5;
  --lb-soft: rgba(226, 228, 234, 0.7);
  --lb-muted: rgba(226, 228, 234, 0.48);
  --lb-frame-gs: linear-gradient(135deg, #28c9ff 0%, #705cff 32%, #ff5eb8 63%, #dce65c 100%);
  --lb-frame-blue: linear-gradient(135deg, #7adfff 0%, #3d69ff 48%, #b8f8ff 100%);
  --lb-frame-steel: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.055) 42%, rgba(255, 255, 255, 0.24));
  display: grid;
  gap: 12px;
  color: var(--lb-text);
}

.leaderboard-noir__mast,
.leaderboard-noir__panel,
.leaderboard-noir__table {
  background: linear-gradient(var(--lb-panel), var(--lb-panel)) padding-box, var(--lb-frame-steel) border-box !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.leaderboard-noir__mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 20px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.leaderboard-noir__mast:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.leaderboard-noir__kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--lb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-noir__mast h1 {
  margin: 0;
  color: var(--lb-text);
  font-family: Oswald, sans-serif;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.leaderboard-noir__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
  align-content: center;
}

.leaderboard-noir__meta > div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #080809;
  border: 1px solid var(--lb-line);
  position: relative;
  overflow: hidden;
}

.leaderboard-noir__meta > div:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.leaderboard-noir__meta span {
  font-size: 10px;
}

.leaderboard-noir__meta strong {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.leaderboard-noir__meta span,
.leaderboard-noir .card-header h5,
.leaderboard-noir fieldset legend,
.leaderboard__my-stat-title {
  color: var(--lb-muted) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leaderboard-noir__meta strong {
  color: var(--lb-text);
  font-size: 22px;
  line-height: 1;
}

.leaderboard-noir__layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.leaderboard-noir__layout > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: initial;
  padding: 0;
}

.leaderboard-noir__panel {
  border-radius: 16px !important;
  background-color: var(--lb-panel) !important;
  border: 1px solid var(--lb-line) !important;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255,255,255,0.02) inset, 0 8px 32px rgba(0,0,0,0.4);
}

.leaderboard-noir__filters {
  padding: 0;
}

.leaderboard-noir__filters .card-header {
  padding: 16px 16px 10px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--lb-line);
}

.leaderboard-noir__filters .card-container {
  padding: 12px 14px 14px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-noir .card-header {
  padding: 14px 14px 8px !important;
  border-bottom: 1px solid var(--lb-line);
  margin-bottom: 10px;
}

.leaderboard-noir .card-header .badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lb-muted);
}

.leaderboard-noir .card-container {
  padding: 0 14px 14px !important;
}

.leaderboard-noir .inputs-inline {
  gap: 7px;
}

.leaderboard-noir .adaptive-select,
.leaderboard-noir .adaptive-select__dropdown-list,
.leaderboard-noir input:not([type="radio"]):not([type="checkbox"]) {
  background: #080809 !important;
  border-color: var(--lb-line) !important;
  color: var(--lb-text) !important;
  box-shadow: none !important;
}

.leaderboard-noir .adaptive-select input,
.leaderboard-noir .adaptive-select__dropdown-list input {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--lb-text) !important;
  font-size: 14px !important;
  font-weight: 600;
  width: 100%;
}

.leaderboard-noir .adaptive-select input:focus {
  outline: none;
}

.leaderboard-noir .adaptive-select input::placeholder {
  color: var(--lb-muted);
}

.leaderboard-noir .adaptive-select {
  min-height: 42px;
  border-radius: 13px;
}

.leaderboard-noir .adaptive-select__label {
  border-radius: 10px;
  border: 1px solid var(--lb-line);
  background: #080809;
  padding: 8px 12px;
  transition: 0.15s ease;
}

.leaderboard-noir .adaptive-select__label:hover,
.leaderboard-noir .adaptive-select__label:has(input:checked) {
  background: #111216;
  border-color: var(--lb-line-strong);
  color: var(--lb-text);
}

.leaderboard-noir .adaptive-select__label input {
  width: auto;
}

.leaderboard-noir .adaptive-select__arrow {
  color: var(--lb-muted);
}

.leaderboard__form {
  gap: 7px;
  margin-bottom: 12px;
}

.leaderboard__form .inputs-inline {
  margin: 0;
}

.leaderboard__form .leaderboard__form-label:last-child {
  margin-bottom: 0;
}

.leaderboard__form-label {
  min-height: 39px;
  width: 100%;
  margin: 0;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--lb-soft);
  background: #080809;
  border: 1px solid var(--lb-line);
  font-size: 13px;
  font-weight: 700;
}

.leaderboard__form-label:hover,
.leaderboard__form-label:has(input:checked) {
  color: var(--lb-text);
  background: #111216;
  border-color: var(--lb-line-strong);
  filter: none;
}

.leaderboard__form-label input,
.leaderboard-noir .switch {
  accent-color: #f4f4f5;
}

.leaderboard-noir #resetFilter,
.leaderboard__my-stat-auth button {
  min-height: 42px;
  border-radius: 12px;
  color: var(--lb-text) !important;
  background: #101113 !important;
  border: 1px solid var(--lb-line) !important;
  box-shadow: none !important;
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s ease;
}

.leaderboard-noir #resetFilter:hover,
.leaderboard__my-stat-auth button:hover {
  background: linear-gradient(#15161a, #15161a) padding-box, var(--lb-frame-gs) border-box !important;
  border-color: transparent !important;
}

#userStatsContainer {
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(#050506, #050506) padding-box, var(--lb-frame-steel) border-box;
}

.leaderboard__my-stat,
.leaderboard__my-stat-auth {
  padding: 12px;
}

.leaderboard__my-stat-block {
  background: #0a0a0b;
  border-color: var(--lb-line);
  border-radius: 11px;
}

.leaderboard__my-stat-hello-text,
.leaderboard__my-stat-value {
  color: var(--lb-text);
}

.leaderboard__my-stat-description,
.leaderboard__table-grey-text {
  color: var(--lb-muted) !important;
}

.leaderboard__my-stat-avatar,
.top_players_avatar {
  border-radius: 10px;
  outline: 1px solid var(--lb-line-strong);
}

.leaderboard-noir__table {
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
}

.leaderboard-noir .table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 7px;
  background: transparent !important;
}

.leaderboard-noir .table thead th {
  padding: 10px 10px;
  color: var(--lb-text) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 0 !important;
  border-bottom: 2px solid var(--lb-line-strong) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-noir .table tbody tr {
  background: #070708 !important;
  outline: 1px solid var(--lb-line);
  outline-offset: -1px;
  transition: 0.18s ease;
}

.leaderboard-noir .table tbody tr:hover {
  background: #101113 !important;
  outline-color: var(--lb-line-strong);
}

.leaderboard-noir .table tbody td {
  padding: 12px 10px;
  color: var(--lb-soft);
  border: 0 !important;
  vertical-align: middle;
  font-weight: 600;
}

.leaderboard-noir .table tbody td:first-child {
  border-radius: 12px 0 0 12px;
  box-shadow: none;
}

.leaderboard-noir .table tbody td:last-child {
  border-radius: 0 12px 12px 0;
  color: rgba(214, 218, 228, 0.7) !important;
}

.leaderboard-noir .table tbody tr td:nth-child(3),
.leaderboard-noir .table tbody tr td:nth-child(4),
.leaderboard-noir .table tbody tr td:nth-child(5),
.leaderboard-noir .table tbody tr td:nth-child(6) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.leaderboard-noir .table tbody tr td:nth-child(7) {
  color: var(--lb-muted);
}

.leaderboard__table-place {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--lb-line);
  color: var(--lb-text);
  font-weight: 900;
  font-size: 14px;
  transition: 0.15s ease;
}

.leaderboard-noir .table tbody tr:hover .leaderboard__table-place {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--lb-line-strong);
}

.leaderboard__table-nickname,
.leaderboard__table-nickname a,
.leaderboard__nick-hidden {
  color: var(--lb-text) !important;
  font-weight: 800;
}

.leaderboard__badges {
  background: #0d0d0f;
  border-color: var(--lb-line);
  border-radius: 999px;
}

.leaderboard__table-top-background-1 {
  background: linear-gradient(90deg, rgba(255, 219, 92, 0.1), #070708 30%) !important;
}

.leaderboard__table-top-background-2 {
  background: linear-gradient(90deg, rgba(191, 224, 255, 0.09), #070708 30%) !important;
}

.leaderboard__table-top-background-3 {
  background: linear-gradient(90deg, rgba(248, 167, 133, 0.09), #070708 30%) !important;
}

#contentPagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  gap: 4px;
}

#contentPagination a,
#contentPagination span {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--lb-line);
  color: var(--lb-soft);
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s ease;
}

#contentPagination a:hover {
  border-color: var(--lb-line-strong);
  color: var(--lb-text);
  background: rgba(255, 255, 255, 0.03);
}

#contentPagination span {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

@media (max-width: 1100px) {
  .leaderboard-noir__layout,
  .leaderboard-noir__mast {
    grid-template-columns: 1fr;
  }

  .leaderboard-noir__filters .sticky-filter {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .leaderboard-noir__meta {
    grid-template-columns: 1fr;
  }

  .leaderboard-noir__table {
    padding: 6px;
  }
}

.leaderboard-noir__table {
  background:
    linear-gradient(#030304, #030304) padding-box,
    var(--lb-frame-steel) border-box !important;
}

.leaderboard-noir .table {
  border-spacing: 0 6px;
}

.leaderboard-noir .table thead th {
  color: rgba(245, 246, 249, 0.62) !important;
}

.leaderboard-noir .table tbody tr {
  background: linear-gradient(90deg, #090a0c 0%, #050506 34%, #030304 100%) !important;
  outline-color: rgba(255, 255, 255, 0.11);
}

.leaderboard-noir .table tbody tr:hover {
  background: linear-gradient(90deg, #111317 0%, #08090b 42%, #050506 100%) !important;
  outline-color: rgba(255, 255, 255, 0.22);
}

.leaderboard-noir .table tbody td {
  color: rgba(238, 240, 246, 0.82) !important;
  font-weight: 700;
}

.leaderboard-noir .table tbody td:first-child {
  box-shadow: inset 2px 0 0 rgba(244, 244, 245, 0.28);
}

.leaderboard-noir .table tbody td:last-child {
  color: rgba(214, 218, 228, 0.7) !important;
}

.leaderboard__table-grey-text {
  color: rgba(245, 246, 249, 0.84) !important;
}

.leaderboard__table-place {
  background: #121319;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 900;
}

.leaderboard__table-user {
  gap: 11px;
}

.leaderboard__table-rank {
  filter: contrast(1.08) brightness(1.08);
}

.leaderboard__table-top-background-1 td:first-child {
  box-shadow: inset 2px 0 0 #f3d75f;
}

.leaderboard__table-top-background-2 td:first-child {
  box-shadow: inset 2px 0 0 #dce7f5;
}

.leaderboard__table-top-background-3 td:first-child {
  box-shadow: inset 2px 0 0 #d6a083;
}

.leaderboard__manage-cell {
  width: 3.25rem;
  text-align: right;
}

.leaderboard__delete-player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 96, 96, 0.28);
  background: rgba(255, 76, 76, 0.08);
  color: #ff8b8b;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.leaderboard__delete-player:hover {
  background: rgba(255, 76, 76, 0.16);
  border-color: rgba(255, 124, 124, 0.55);
  transform: translateY(-1px);
}

.leaderboard__delete-player svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

/* =========================================================
   Premier ranks (CS:Ratings tier system)
   ========================================================= */

@font-face {
  font-family: Stratum2;
  src: url('../../../../assets/fonts/Stratum2-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Stratum2;
  src: url('../../../../assets/fonts/Stratum2-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-csrating-tier-0: #b0c3d9;
  --color-csrating-tier-1: #8cc6ff;
  --color-csrating-tier-2: #6a7dff;
  --color-csrating-tier-3: #c166ff;
  --color-csrating-tier-4: #f03cff;
  --color-csrating-tier-5: #eb4b4b;
  --color-csrating-tier-6: #ffd700;

  --bg-csrating-tier-0: #3C414A;
  --bg-csrating-tier-1: #2E4358;
  --bg-csrating-tier-2: #202657;
  --bg-csrating-tier-3: #421E58;
  --bg-csrating-tier-4: #540E58;
  --bg-csrating-tier-5: #591015;
  --bg-csrating-tier-6: #5B4805;
}

.rank {
  position: relative;
  width: 5rem;
  height: 2rem;
  display: flex;
  transform: skewX(169deg);
  align-items: center;
  justify-content: flex-start;
  background-color: var(--transparent-5-w, rgba(255, 255, 255, 0.055));
  flex: none;
  scale: .8;
}

.custom-rank {
  width: 5rem;
}

.rank__double-lines {
  display: flex;
  gap: .15rem;
  height: 100%;
}

.rank__double-line {
  width: 4px;
  height: 100%;
  background-color: var(--text-default, #f4f4f5);
  opacity: .95;
}

.rank__ghost-lines {
  display: flex;
  padding: 1px;
  gap: .1rem;
  height: 100%;
  width: 100%;
  border: 1px solid rgb(255 255 255 / 6%);
}

.rank__ghost-line-1,
.rank__ghost-line-2,
.rank__ghost-line-3,
.rank__ghost-line-4 {
  height: 100%;
  width: 2px;
  background-color: var(--text-default, #f4f4f5);
  opacity: .3;
}

.rank__ghost-line-2 { width: 4px; opacity: .1; }
.rank__ghost-line-3 { width: 8px; opacity: .05; }
.rank__ghost-line-4 { width: 18px; opacity: .02; }

.rank__text {
  position: absolute;
  left: 0;
  right: 0;
  color: var(--text-default, #f4f4f5);
  font-size: var(--font-size-xl, 20px);
  font-weight: 600;
  font-family: Stratum2, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
  gap: .1rem;
  text-shadow: 1px 1px rgb(0 0 0 / 74%);
  filter: brightness(1.2);
}

.over-100k { font-size: var(--font-size-l, 18px); }
.over-1m { font-size: 15px; }

.rank__text small {
  font-size: 70%;
  margin-bottom: -4px;
}

.rank.tier-0:before,
.rank.tier-1:before,
.rank.tier-2:before,
.rank.tier-3:before,
.rank.tier-4:before,
.rank.tier-5:before,
.rank.tier-6:before {
  content: '';
  position: absolute;
  width: 39%;
  height: 100%;
  z-index: 0;
  opacity: .3;
  left: 6px;
}

.rank.tier-0 { background-color: var(--bg-csrating-tier-0); }
.rank.tier-0:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-0), transparent); }
.rank.tier-0 .rank__double-line { background-color: var(--color-csrating-tier-0); }
.rank.tier-0 .rank__ghost-line-1,
.rank.tier-0 .rank__ghost-line-2,
.rank.tier-0 .rank__ghost-line-3,
.rank.tier-0 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-0); }
.rank.tier-0 .rank__text { color: var(--color-csrating-tier-0); }

.rank.tier-1 { background-color: var(--bg-csrating-tier-1); }
.rank.tier-1:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-1), transparent); }
.rank.tier-1 .rank__double-line { background-color: var(--color-csrating-tier-1); }
.rank.tier-1 .rank__ghost-line-1,
.rank.tier-1 .rank__ghost-line-2,
.rank.tier-1 .rank__ghost-line-3,
.rank.tier-1 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-1); }
.rank.tier-1 .rank__text { color: var(--color-csrating-tier-1); }

.rank.tier-2 { background-color: var(--bg-csrating-tier-2); }
.rank.tier-2:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-2), transparent); }
.rank.tier-2 .rank__double-line { background-color: var(--color-csrating-tier-2); }
.rank.tier-2 .rank__ghost-line-1,
.rank.tier-2 .rank__ghost-line-2,
.rank.tier-2 .rank__ghost-line-3,
.rank.tier-2 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-2); }
.rank.tier-2 .rank__text { color: var(--color-csrating-tier-2); }

.rank.tier-3 { background-color: var(--bg-csrating-tier-3); }
.rank.tier-3:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-3), transparent); }
.rank.tier-3 .rank__double-line { background-color: var(--color-csrating-tier-3); }
.rank.tier-3 .rank__ghost-line-1,
.rank.tier-3 .rank__ghost-line-2,
.rank.tier-3 .rank__ghost-line-3,
.rank.tier-3 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-3); }
.rank.tier-3 .rank__text { color: var(--color-csrating-tier-3); }

.rank.tier-4 { background-color: var(--bg-csrating-tier-4); }
.rank.tier-4:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-4), transparent); }
.rank.tier-4 .rank__double-line { background-color: var(--color-csrating-tier-4); }
.rank.tier-4 .rank__ghost-line-1,
.rank.tier-4 .rank__ghost-line-2,
.rank.tier-4 .rank__ghost-line-3,
.rank.tier-4 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-4); }
.rank.tier-4 .rank__text { color: var(--color-csrating-tier-4); }

.rank.tier-5 { background-color: var(--bg-csrating-tier-5); }
.rank.tier-5:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-5), transparent); }
.rank.tier-5 .rank__double-line { background-color: var(--color-csrating-tier-5); }
.rank.tier-5 .rank__ghost-line-1,
.rank.tier-5 .rank__ghost-line-2,
.rank.tier-5 .rank__ghost-line-3,
.rank.tier-5 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-5); }
.rank.tier-5 .rank__text { color: var(--color-csrating-tier-5); }

.rank.tier-6 { background-color: var(--bg-csrating-tier-6); }
.rank.tier-6:before { background-image: linear-gradient(90deg, var(--color-csrating-tier-6), transparent); opacity: .2; }
.rank.tier-6 .rank__double-line { background-color: var(--color-csrating-tier-6); }
.rank.tier-6 .rank__ghost-line-1,
.rank.tier-6 .rank__ghost-line-2,
.rank.tier-6 .rank__ghost-line-3,
.rank.tier-6 .rank__ghost-line-4 { background-color: var(--color-csrating-tier-6); }
.rank.tier-6 .rank__text { color: var(--color-csrating-tier-6); }

/* Compact leaderboard workspace: data-first, with a restrained graphite shell. */
.y-lb { --y-line: rgba(255,255,255,.09); --y-dim: #858996; --y-text: #f2f3f6; width: 100%; max-width: none; color: var(--y-text); }
.y-lb__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 18px 0 20px; border-bottom: 1px solid var(--y-line); }
.y-lb__eyebrow { margin: 0 0 7px; color: #b8bac4; font: 700 10px/1 var(--font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.y-lb h1 { margin: 0; font: 700 clamp(28px, 4vw, 42px)/.95 Oswald, sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.y-lb__sub { margin: 9px 0 0; color: var(--y-dim); font-size: 13px; }
.y-lb__totals { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); border: 1px solid var(--y-line); border-radius: 12px; overflow: hidden; background: #090a0d; }
.y-lb__totals > div { min-width: 110px; padding: 11px 15px; border-left: 1px solid var(--y-line); }
.y-lb__totals > div:first-child { border-left: 0; }
.y-lb__totals span, .y-lb__you span { display: block; margin-bottom: 5px; color: var(--y-dim); font: 700 10px/1 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.y-lb__totals strong { font: 700 16px/1.1 var(--font-mono, monospace); white-space: nowrap; }
.y-lb__you { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(204,215,255,.18); border-radius: 12px; background: linear-gradient(90deg, rgba(61,87,177,.14), rgba(9,10,13,.88) 42%); }
.y-lb__you img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.y-lb__you strong { display: block; font-size: 14px; }
.y-lb__you-score { margin-left: auto; min-width: 100px; }
.y-lb__you-score b { font: 700 14px/1 var(--font-mono, monospace); }
.y-lb__you a { color: var(--y-text); font-size: 12px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.y-lb__toolbar { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; padding: 9px; border: 1px solid var(--y-line); border-radius: 13px; background: #090a0d; }
.y-lb__search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 170px; padding: 0 10px; border: 1px solid var(--y-line); border-radius: 8px; background: #050608; color: var(--y-dim); }
.y-lb__search input, .y-lb__select { height: 36px; border: 0; outline: 0; background: transparent; color: var(--y-text); font: 600 13px var(--font-sans, sans-serif); }
.y-lb__search input { min-width: 0; width: 100%; }
.y-lb__search input::placeholder { color: var(--y-dim); }
.y-lb__select { max-width: 185px; padding: 0 8px; border: 1px solid var(--y-line); border-radius: 8px; background: #050608; }
.y-lb__sort { display: flex; align-items: center; padding: 3px; border: 1px solid var(--y-line); border-radius: 9px; }
.y-lb__sort button { height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--y-dim); cursor: pointer; font: 700 11px var(--font-sans, sans-serif); transition: background .16s ease, color .16s ease; }
.y-lb__sort button:hover, .y-lb__sort button.is-active { background: #252a36; color: #fff; }
.y-lb__check { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #b8bac4; font-size: 11px; font-weight: 600; cursor: pointer; }
.y-lb__check input { accent-color: #d9e2ff; }
.y-lb__board { overflow-x: auto; border: 1px solid var(--y-line); border-radius: 13px; background: linear-gradient(135deg, #0d0e12, #050608 60%); }
.y-lb__board .table { width: 100%; min-width: 800px; margin: 0; border-collapse: collapse; background: transparent !important; }
.y-lb__board .table th { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--y-line); color: var(--y-dim); background: rgba(255,255,255,.018); font: 700 10px var(--font-mono, monospace); letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.y-lb__board .table td { padding: 10px 14px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); color: #d9dbe2; font-size: 13px; font-weight: 600; vertical-align: middle; }
.y-lb__board .table tbody tr { background: transparent !important; outline: 0; transition: background .16s ease; }
.y-lb__board .table tbody tr:hover { background: rgba(255,255,255,.035) !important; }
.y-lb__board .table tbody tr:last-child td { border-bottom: 0; }
.y-lb__board .leaderboard__table-user { display: flex; align-items: center; gap: 10px; }
.y-lb__board .leaderboard__table-nickname { display: flex; align-items: center; gap: 10px; color: #f4f5f7 !important; font-weight: 800; }
.y-lb__place { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--y-line); border-radius: 7px; background: #11131a; color: #d7d9e2; font: 800 12px var(--font-mono, monospace); }
.y-lb__board .leaderboard__table-top-background-1 { background: linear-gradient(90deg, rgba(234,196,85,.13), transparent 38%) !important; }
.y-lb__board .leaderboard__table-top-background-2 { background: linear-gradient(90deg, rgba(182,203,230,.11), transparent 38%) !important; }
.y-lb__board .leaderboard__table-top-background-3 { background: linear-gradient(90deg, rgba(197,135,92,.11), transparent 38%) !important; }
.y-lb__board .leaderboard__table-top-background-1 .y-lb__place { color: #f0d36e; border-color: rgba(240,211,110,.4); }
.y-lb__board .leaderboard__table-top-background-2 .y-lb__place { color: #e1e9f4; }
.y-lb__board .leaderboard__table-top-background-3 .y-lb__place { color: #e3ad8c; }
.y-lb #contentPagination { justify-content: flex-end; padding: 12px; margin: 0; border-top: 1px solid var(--y-line); }
@media (max-width: 980px) { .y-lb__head { align-items: start; flex-direction: column; } .y-lb__toolbar { flex-wrap: wrap; } .y-lb__sort { order: 3; } }
@media (max-width: 620px) { .y-lb__head { padding-top: 8px; } .y-lb__totals { width: 100%; } .y-lb__totals > div { min-width: 0; padding: 10px; } .y-lb__totals strong { font-size: 13px; } .y-lb__you { flex-wrap: wrap; } .y-lb__you-score { margin-left: 0; } .y-lb__toolbar { align-items: stretch; } .y-lb__search { flex-basis: 100%; } .y-lb__select { flex: 1; max-width: none; } .y-lb__check { padding: 5px 0; } }

/* Wide, restrained leaderboard. */
.y-lb{width:min(1540px,calc(100% - 48px));max-width:none;margin:0 auto;padding:58px 0 100px}.y-lb__head{padding:0 0 30px;border-bottom:1px solid rgba(255,255,255,.09)}.y-lb__head h1{font-size:clamp(38px,5vw,62px);letter-spacing:-.065em}.y-lb__sub{margin-top:10px;color:#686d77}.y-lb__totals>div{padding:3px 24px;background:none}.y-lb__totals span{font-size:10px}.y-lb__totals strong{font-size:16px}.y-lb__you{margin:18px 0 0;padding:12px 14px;border-radius:11px;background:rgba(255,255,255,.018);box-shadow:none}.y-lb__toolbar{display:flex;align-items:center;gap:8px;margin:16px 0 12px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.y-lb__search{min-height:40px;border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.018)}.y-lb__toolbar>.custom-select{width:210px;flex:none}.y-lb__sort{padding:3px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.018)}.y-lb__sort button{min-height:32px;border-radius:6px}.y-lb__check{display:flex;align-items:center;gap:7px;padding:0 5px;color:#777c87;font-size:11px}.y-lb__check input{width:16px;height:16px}.y-lb__board{border-radius:13px;background:rgba(8,8,10,.28);box-shadow:inset 0 1px rgba(255,255,255,.035);overflow:hidden}.y-lb__board .table th{height:44px;background:transparent;color:#626873;font-size:10px;font-weight:550;text-transform:none;letter-spacing:.02em}.y-lb__board .table td{height:58px;border-top-color:rgba(255,255,255,.055);color:#aaaeb8;font-size:12px}.y-lb__board .table tbody tr:hover{background:rgba(255,255,255,.025)!important}.y-lb__place{width:auto;height:auto;border:0;border-radius:0;color:#777d88;font-size:11px}.y-lb #contentPagination{justify-content:center;background:transparent}@media(max-width:900px){.y-lb{width:calc(100% - 28px);padding-top:38px}.y-lb__toolbar{align-items:stretch;flex-wrap:wrap}.y-lb__search{flex-basis:100%}.y-lb__toolbar>.custom-select{width:auto;flex:1}.y-lb__sort{order:3;width:100%;display:flex;overflow-x:auto}.y-lb__sort button{flex:1}.y-lb__board{overflow-x:auto}.y-lb__board .table{min-width:760px}}

/* Site-native black glass */
.y-lb{font-family:var(--font);--y-line:rgba(255,255,255,.085);--y-dim:#74747e;--y-text:#f1f1f3}.y-lb__totals{border:0;border-radius:0;background:none;overflow:visible}.y-lb__totals>div{border-left-color:rgba(255,255,255,.13)}.y-lb__sort button:hover,.y-lb__sort button.is-active{background:rgba(255,255,255,.09)}.y-lb__board .leaderboard__table-top-background-1,.y-lb__board .leaderboard__table-top-background-2,.y-lb__board .leaderboard__table-top-background-3{background:transparent!important}.y-lb__board .leaderboard__table-top-background-1:hover,.y-lb__board .leaderboard__table-top-background-2:hover,.y-lb__board .leaderboard__table-top-background-3:hover{background:rgba(255,255,255,.035)!important}

/* Deliberate wide breakout; the rest of the site stays inside the shared shell. */
.y-lb{width:100%;max-width:var(--shell);margin:0 auto;transform:none}@media(max-width:900px){.y-lb{width:100%}}
.y-lb #contentPagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;min-height:48px}.y-lb #contentPagination a,.y-lb #contentPagination span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 10px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.025);color:#9da2ad;font-size:11px;text-decoration:none}.y-lb #contentPagination a:hover{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.07);color:#fff}.y-lb #contentPagination span[aria-current="page"]{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:#fff}.y-lb #contentPagination .pagination-prev,.y-lb #contentPagination .pagination-next{padding:0 13px;color:#d7d9e0}
