:root {
  --page-bg: #03060c;
  --panel: rgba(7, 12, 23, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #f7f9ff;
  --muted: rgba(247, 249, 255, 0.68);
  --blue: #43a3ff;
  --pink: #ff1493;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: kamerik-3d;
  src: url(../fonts/kamerik205-heavy.woff2);
  font-weight: 900;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--bs-site-font, Arial, sans-serif);
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(3, 6, 12, 0.16), rgba(3, 6, 12, 0.36)),
    radial-gradient(circle at 16% 14%, rgba(67, 163, 255, 0.16), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(255, 20, 147, 0.14), transparent 28%),
    var(--season-bg);
  background-size: cover;
  background-position: center;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.18) 0%, rgba(2, 4, 10, 0.26) 52%, rgba(2, 4, 10, 0.48) 100%),
    rgba(8, 12, 24, 0.04);
  backdrop-filter: blur(1px) saturate(125%);
}

.leaderboard-page {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: var(--bs-small-viewport-height, 100vh);
  margin: 0 auto;
  padding: 116px 24px 54px;
}

.leaderboard-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(138%);
}

.leaderboard-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.leaderboard-heading .page-heading__main {
  min-width: 0;
}

.leaderboard-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leaderboard-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.56);
}

.leaderboard-heading p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.leaderboard-heading > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(14px) saturate(130%);
}

.leaderboard-tabs {
  --leaderboard-tab-width: clamp(170px, 22vw, 240px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.leaderboard-tabs__viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.leaderboard-tabs__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  padding-inline: max(0px, calc(50% - var(--leaderboard-tab-width) / 2));
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.leaderboard-tabs[data-selected-board="game"] .leaderboard-tabs__track {
  transform: translate3d(calc(-1 * var(--leaderboard-tab-width)), 0, 0);
}

.leaderboard-tabs__item {
  display: grid;
  align-items: center;
  justify-items: center;
  flex: 0 0 var(--leaderboard-tab-width);
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 900;
  text-decoration: none;
  transition: color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.leaderboard-tabs__item span {
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-tabs__item:hover,
.leaderboard-tabs__item:focus-visible {
  color: rgba(255, 255, 255, 0.78);
}

.leaderboard-tabs__item:focus-visible {
  border-radius: 12px;
  outline: 2px solid rgba(67, 163, 255, 0.65);
  outline-offset: -4px;
}

.leaderboard-tabs__item.is-active {
  color: #fff;
  transform: scale(1.08);
}

.leaderboard-tabs__item.is-active span {
  color: var(--blue);
  font-size: 18px;
}

.leaderboard-tabs__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.leaderboard-tabs__arrow:hover,
.leaderboard-tabs__arrow:focus-visible {
  color: var(--blue);
}

.leaderboard-tabs__arrow[data-leaderboard-previous]:hover {
  transform: translateX(-2px);
}

.leaderboard-tabs__arrow[data-leaderboard-next]:hover {
  transform: translateX(2px);
}

.leaderboard-tabs__arrow:focus-visible {
  outline: 2px solid rgba(67, 163, 255, 0.65);
  outline-offset: 2px;
}

.leaderboard-profile-lookup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(67, 163, 255, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 12%, rgba(67, 163, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(67, 163, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(7, 12, 23, 0.79);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(138%);
}

.leaderboard-profile-lookup::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -40px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(117, 214, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 70px rgba(67, 163, 255, 0.1);
}

.leaderboard-profile-lookup__intro,
.leaderboard-profile-lookup__form,
.leaderboard-profile-lookup__access {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.leaderboard-profile-lookup__intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.leaderboard-profile-lookup__intro > p:last-child {
  max-width: 520px;
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.leaderboard-profile-lookup__form {
  display: grid;
  gap: 9px;
}

.leaderboard-profile-lookup__form > label {
  color: rgba(247, 249, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-profile-lookup__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.leaderboard-profile-lookup__controls input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  color: #fff;
  background: rgba(3, 8, 17, 0.76);
  font: inherit;
  font-weight: 900;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.leaderboard-profile-lookup__controls input:focus {
  border-color: rgba(67, 163, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(67, 163, 255, 0.12);
}

.leaderboard-profile-lookup__controls input::placeholder {
  color: rgba(247, 249, 255, 0.38);
  opacity: 1;
}

.leaderboard-profile-lookup__controls button,
.leaderboard-profile-lookup__access a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(67, 163, 255, 0.5);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, rgba(67, 163, 255, 0.34), rgba(67, 163, 255, 0.17));
  box-shadow: 0 12px 30px rgba(30, 112, 190, 0.17);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.leaderboard-profile-lookup__controls button:hover,
.leaderboard-profile-lookup__controls button:focus-visible,
.leaderboard-profile-lookup__access a:hover,
.leaderboard-profile-lookup__access a:focus-visible {
  border-color: rgba(117, 214, 255, 0.82);
  background: linear-gradient(135deg, rgba(67, 163, 255, 0.46), rgba(67, 163, 255, 0.24));
  outline: none;
  transform: translateY(-1px);
}

.leaderboard-profile-lookup__form > small {
  color: rgba(247, 249, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.leaderboard-profile-lookup__access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(3, 8, 17, 0.58);
}

.leaderboard-profile-lookup__access span {
  color: rgba(247, 249, 255, 0.66);
  font-weight: 800;
  line-height: 1.4;
}

.leaderboard-profile-lookup__access a {
  min-height: 44px;
  flex: 0 0 auto;
  padding-inline: 16px;
}

.leaderboard-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 22px;
}

.leaderboard-updated {
  margin: 0 0 14px;
  padding: 0 4px;
  color: rgba(247, 249, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0 0 12px;
}

.leaderboard-search__control {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 46px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: rgba(247, 249, 255, 0.5);
  background: rgba(3, 8, 17, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.leaderboard-search__control:focus-within {
  border-color: rgba(67, 163, 255, 0.62);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67, 163, 255, 0.11);
}

.leaderboard-search__control > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.leaderboard-search__control input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.leaderboard-search__control input::-webkit-search-cancel-button {
  display: none;
}

.leaderboard-search__control input::placeholder {
  color: rgba(247, 249, 255, 0.38);
  opacity: 1;
}

.leaderboard-search__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: rgba(247, 249, 255, 0.52);
  background: transparent;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.18s ease, background 0.18s ease;
}

.leaderboard-search__clear:hover,
.leaderboard-search__clear:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.leaderboard-search__clear[hidden] {
  display: none;
}

.leaderboard-search__submit {
  min-width: 104px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(67, 163, 255, 0.42);
  border-radius: 13px;
  color: #fff;
  background: rgba(67, 163, 255, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.leaderboard-search__submit:hover,
.leaderboard-search__submit:focus-visible {
  border-color: rgba(104, 190, 255, 0.78);
  background: rgba(67, 163, 255, 0.24);
  outline: none;
}

.leaderboard-search__status {
  min-height: 18px;
  margin: -3px 4px 12px;
  color: rgba(247, 249, 255, 0.56);
  font-size: 13px;
  font-weight: 900;
}

.leaderboard-search__status b {
  color: var(--blue);
}

.leaderboard-search__status.is-error {
  color: #ff8ca5;
}

.leaderboard-search__status[hidden],
.leaderboard-table[hidden],
.leaderboard-search__empty[hidden] {
  display: none;
}

.leaderboard-table[aria-busy="true"] {
  opacity: 0.55;
}

.leaderboard-search__empty {
  min-height: 190px;
}

.leaderboard-table {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) 180px;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(4, 8, 16, 0.62);
}

.leaderboard-row--game {
  grid-template-columns: 90px minmax(210px, 1fr) minmax(140px, 0.7fr) 120px minmax(132px, 0.48fr);
}

.leaderboard-row--game-reviews {
  grid-template-columns: 80px minmax(190px, 1fr) minmax(120px, 0.65fr) 100px minmax(132px, 0.48fr) 72px;
}

.leaderboard-row--mission {
  grid-template-columns: minmax(220px, 1fr) 180px;
}

.leaderboard-row--head {
  min-height: 48px;
  color: rgba(247, 249, 255, 0.56);
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-place,
.leaderboard-balance,
.leaderboard-points {
  color: var(--blue);
  font-weight: 900;
}
.leaderboard-row strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.leaderboard-player {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.leaderboard-player > a,
.leaderboard-player > strong,
.leaderboard-player > strong > a {
  width: fit-content;
  max-width: 100%;
}

.leaderboard-player a,
.leaderboard-clan a,
.leaderboard-change-card strong a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.leaderboard-player a:hover,
.leaderboard-player a:focus-visible,
.leaderboard-clan a:hover,
.leaderboard-clan a:focus-visible,
.leaderboard-change-card strong a:hover,
.leaderboard-change-card strong a:focus-visible {
  color: var(--blue);
  outline: none;
}

.leaderboard-change-card small a {
  color: inherit;
}

.leaderboard-player small {
  max-width: min(360px, 48vw);
  overflow: hidden;
  color: rgba(247, 249, 255, 0.48);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-cheat-risk-column-title {
  justify-self: center;
  max-width: 148px;
  line-height: 1.2;
  text-align: center;
}

.leaderboard-cheat-risk {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
}

.leaderboard-cheat-risk svg,
.leaderboard-cheat-risk > b {
  grid-area: 1 / 1;
}

.leaderboard-cheat-risk::after {
  display: none;
  content: attr(data-label);
}

.leaderboard-cheat-risk svg {
  display: block;
  width: 44px;
  height: 44px;
  overflow: visible;
}

.leaderboard-cheat-risk circle {
  fill: none;
  stroke-width: 3.5;
}

.leaderboard-cheat-risk__track {
  stroke: rgba(247, 249, 255, 0.12);
}

.leaderboard-cheat-risk__value {
  stroke: #63d59a;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

.leaderboard-cheat-risk.is-medium .leaderboard-cheat-risk__value {
  stroke: #ffc766;
}

.leaderboard-cheat-risk.is-high .leaderboard-cheat-risk__value {
  stroke: #ff718d;
}

.leaderboard-cheat-risk.is-unknown .leaderboard-cheat-risk__track {
  stroke: rgba(247, 249, 255, 0.2);
  stroke-dasharray: 2 4;
}

.leaderboard-cheat-risk > b {
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.leaderboard-row code {
  color: #d7ebff;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.leaderboard-row span {
  color: var(--muted);
}

.leaderboard-review-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-block: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.leaderboard-review-access a {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.leaderboard-review-access a:hover,
.leaderboard-review-access a:focus-visible {
  color: #fff;
  outline: none;
}

.leaderboard-review-access.is-error {
  color: #ff8da4;
}

.leaderboard-review-pagination button,
.leaderboard-review-form button {
  border: 1px solid rgba(67, 163, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(67, 163, 255, 0.17), rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 26, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.leaderboard-review-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
  min-height: 34px;
  justify-self: center;
  padding: 3px 6px;
  border: 0;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.18s ease;
}

.leaderboard-review-trigger b {
  color: currentColor;
  font-size: 12px;
}

.leaderboard-review-trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaderboard-review-pagination button:hover,
.leaderboard-review-pagination button:focus-visible,
.leaderboard-review-form button:hover,
.leaderboard-review-form button:focus-visible {
  border-color: rgba(104, 190, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(67, 163, 255, 0.25), rgba(255, 255, 255, 0.055)),
    rgba(8, 14, 26, 0.82);
  outline: none;
}

.leaderboard-review-trigger:hover,
.leaderboard-review-trigger:focus-visible {
  color: #fff;
  outline: none;
}

.leaderboard-review-pagination button:active,
.leaderboard-review-form button:active {
  transform: translateY(1px);
}

.leaderboard-review-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 20, 0.95);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(24px) saturate(145%);
}

.leaderboard-review-dialog::backdrop {
  background: rgba(1, 4, 10, 0.7);
  backdrop-filter: blur(7px);
}

.leaderboard-review-dialog[open] {
  transform-origin: center;
  animation: leaderboard-review-dialog-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.leaderboard-review-dialog[open]::backdrop {
  animation: leaderboard-review-backdrop-enter 180ms ease-out;
}

@keyframes leaderboard-review-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes leaderboard-review-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.leaderboard-review-dialog__surface {
  display: flex;
  height: min(720px, calc(100dvh - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  flex-direction: column;
  overflow: hidden;
}

.leaderboard-review-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.leaderboard-review-dialog__header p,
.leaderboard-review-dialog__header h2,
.leaderboard-review-dialog__header span {
  margin: 0;
}

.leaderboard-review-dialog__header p {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-review-dialog__header h2 {
  max-width: min(560px, 70vw);
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-review-dialog__header span {
  display: block;
  margin-top: 7px;
  color: rgba(247, 249, 255, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-review-dialog__close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  color: rgba(247, 249, 255, 0.64);
  background: transparent;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease;
}

.leaderboard-review-dialog__close:hover,
.leaderboard-review-dialog__close:focus-visible {
  color: #fff;
  background: transparent;
  outline: none;
}

.leaderboard-review-form {
  flex: 0 0 auto;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 7, 15, 0.44);
}

.leaderboard-review-form[hidden] {
  display: none;
}

.leaderboard-review-form label {
  display: block;
}

.leaderboard-review-form__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: end;
  gap: 10px;
}

.leaderboard-review-form__composer label {
  min-width: 0;
}

.leaderboard-review-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.leaderboard-review-form textarea {
  width: 100%;
  min-height: 58px;
  max-height: 136px;
  resize: none;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 5, 12, 0.56);
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.leaderboard-review-form textarea::placeholder {
  color: rgba(247, 249, 255, 0.38);
}

.leaderboard-review-form textarea:focus {
  border-color: rgba(67, 163, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(67, 163, 255, 0.12);
  outline: none;
}

.leaderboard-review-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
}

.leaderboard-review-form__footer > span {
  color: rgba(247, 249, 255, 0.42);
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-review-form button {
  min-height: 42px;
  padding: 0 16px;
}

.leaderboard-review-form .leaderboard-review-send {
  position: relative;
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(67, 163, 255, 0.44);
  border-radius: 13px;
  color: #fff;
  background: rgba(40, 135, 202, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.leaderboard-review-form .leaderboard-review-send:hover,
.leaderboard-review-form .leaderboard-review-send:focus-visible {
  border-color: rgba(104, 190, 255, 0.74);
  background: rgba(48, 151, 224, 0.72);
  box-shadow: 0 0 24px rgba(67, 163, 255, 0.17);
}

.leaderboard-review-send svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaderboard-review-send::after {
  position: absolute;
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: leaderboard-review-spin 0.75s linear infinite;
}

.leaderboard-review-send.is-loading svg {
  opacity: 0;
}

.leaderboard-review-send.is-loading::after {
  display: block;
}

.leaderboard-review-form button:disabled,
.leaderboard-review-pagination button:disabled,
.leaderboard-review-icon-button:disabled,
.leaderboard-review-reaction:disabled {
  cursor: wait;
  opacity: 0.58;
}

.leaderboard-review-form__status {
  flex: 0 0 auto;
  min-height: 18px;
  margin: 10px 24px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-review-form__status:empty {
  display: none;
}

.leaderboard-review-form__status.is-success {
  color: #5ee58a;
}

.leaderboard-review-form__status.is-error {
  color: #ff7b96;
}

.leaderboard-review-results {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 24px 22px;
  overflow-y: auto;
  scrollbar-color: rgba(67, 163, 255, 0.72) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.leaderboard-review-results > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.leaderboard-review-results h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.leaderboard-review-total {
  color: rgba(247, 249, 255, 0.5);
  font-weight: 900;
}

.leaderboard-review-total b {
  color: var(--blue);
}

.leaderboard-review-list {
  display: grid;
}

.leaderboard-review-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.leaderboard-review-item.is-own {
  box-shadow: inset 3px 0 0 rgba(67, 163, 255, 0.74);
  padding-left: 12px;
}

.leaderboard-review-item > img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
}

.leaderboard-review-item > div {
  min-width: 0;
}

.leaderboard-review-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-review-item header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.leaderboard-review-item a {
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-review-item a:hover,
.leaderboard-review-item a:focus-visible {
  color: var(--blue);
  outline: none;
}

.leaderboard-review-item header span {
  color: rgba(247, 249, 255, 0.44);
  font-size: 11px;
  font-weight: 800;
}

.leaderboard-review-item header > .leaderboard-review-item__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  width: 70px;
  gap: 6px;
}

.leaderboard-review-item__actions [data-review-edit] {
  margin-right: auto;
}

.leaderboard-review-item__actions [data-review-delete] {
  margin-left: auto;
}

.leaderboard-review-icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  color: rgba(247, 249, 255, 0.62);
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.leaderboard-review-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaderboard-review-icon-button:hover,
.leaderboard-review-icon-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.leaderboard-review-icon-button.is-danger:hover,
.leaderboard-review-icon-button.is-danger:focus-visible {
  color: #ff8ca5;
  background: rgba(255, 91, 126, 0.1);
}

.leaderboard-review-icon-button.is-loading svg {
  animation: leaderboard-review-spin 0.75s linear infinite;
}

.leaderboard-review-item p {
  margin: 10px 0 0;
  color: rgba(247, 249, 255, 0.76);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.leaderboard-review-reactions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.leaderboard-review-reaction {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 30px;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  color: rgba(247, 249, 255, 0.52);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.18s ease;
}

.leaderboard-review-reaction svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaderboard-review-reaction:hover,
.leaderboard-review-reaction.is-active,
.leaderboard-review-reaction:focus-visible {
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.leaderboard-review-reaction:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.leaderboard-review-reaction:hover,
.leaderboard-review-reaction.is-active {
  outline: none;
}

.leaderboard-review-reaction:disabled {
  cursor: default;
}

.leaderboard-review-reaction.is-loading {
  cursor: wait;
}

.leaderboard-review-state {
  display: grid;
  min-height: 124px;
  margin: 0;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.leaderboard-review-state.is-loading {
  align-content: center;
  gap: 12px;
}

.leaderboard-review-state.is-loading::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: leaderboard-review-spin 0.75s linear infinite;
}

.leaderboard-review-state.is-error {
  color: #ff7b96;
}

.leaderboard-review-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.leaderboard-review-pagination[hidden] {
  display: none;
}

.leaderboard-review-pagination button {
  min-width: 38px;
  min-height: 36px;
  padding: 0 10px;
}

.leaderboard-review-pagination button.is-active {
  border-color: rgba(104, 190, 255, 0.72);
  color: #06111f;
  background: var(--blue);
}

.leaderboard-review-pagination button:disabled {
  cursor: default;
  opacity: 0.36;
}

.leaderboard-review-pagination > span {
  min-width: 18px;
  color: rgba(247, 249, 255, 0.42);
  text-align: center;
}

@keyframes leaderboard-review-spin {
  to {
    transform: rotate(360deg);
  }
}

.leaderboard-history {
  margin-bottom: 18px;
  padding: 4px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.leaderboard-history-summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-height: 58px;
  padding: 4px 4px 12px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.leaderboard-history-summary::marker {
  content: "";
}

.leaderboard-history-summary::-webkit-details-marker {
  display: none;
}

.leaderboard-history-summary:focus-visible {
  border-radius: 10px;
  outline: 2px solid rgba(67, 163, 255, 0.72);
  outline-offset: 3px;
}

.leaderboard-history-summary__caret {
  justify-self: center;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, 0.66);
  border-bottom: 2px solid rgba(255, 255, 255, 0.66);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.leaderboard-history[open]:not(.is-history-controlled) .leaderboard-history-summary__caret,
.leaderboard-history.is-expanded .leaderboard-history-summary__caret {
  border-color: var(--blue);
  transform: rotate(225deg) translate(-2px, -1px);
}

.leaderboard-history-summary__heading {
  display: grid;
  min-width: 0;
}

.leaderboard-history-summary__heading .leaderboard-kicker {
  margin-bottom: 5px;
}

.leaderboard-history-summary__heading strong {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.leaderboard-history-summary__total {
  justify-self: end;
  color: rgba(247, 249, 255, 0.56);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-history-content {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
}

.leaderboard-history[open] > .leaderboard-history-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

.leaderboard-history-content__inner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 14px;
  transition: opacity 0.16s ease;
}

.leaderboard-history.is-page-loading .leaderboard-history-content__inner,
.leaderboard-history.is-page-loading + .leaderboard-history-changes-region > section {
  opacity: 0.52;
  pointer-events: none;
}

.leaderboard-history-changes-region {
  display: contents;
}

.leaderboard-update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.leaderboard-update {
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(247, 249, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.leaderboard-update:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.leaderboard-update:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.leaderboard-update:hover,
.leaderboard-update:focus-visible,
.leaderboard-update.is-selected {
  color: rgba(247, 249, 255, 0.8);
  background: rgba(67, 163, 255, 0.1);
  outline: none;
}

.leaderboard-update.is-selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.leaderboard-update__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #fff;
}

.leaderboard-update__title b {
  color: var(--blue);
  font-size: 15px;
}

.leaderboard-update__title time {
  color: rgba(247, 249, 255, 0.62);
  font-size: 12px;
}

.leaderboard-history-pagination {
  display: grid;
  grid-template-columns: 40px max-content 40px;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  padding-top: 14px;
}

.leaderboard-history-pagination a,
.leaderboard-history-pagination span {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-weight: 900;
  text-decoration: none;
}

.leaderboard-history-pagination__previous,
.leaderboard-history-pagination span,
.leaderboard-history-pagination__next {
  grid-row: 1;
}

.leaderboard-history-pagination__previous {
  grid-column: 1;
}

.leaderboard-history-pagination span {
  grid-column: 2;
}

.leaderboard-history-pagination__next {
  grid-column: 3;
}

.leaderboard-history-pagination a {
  color: rgba(247, 249, 255, 0.72);
  font-size: 24px;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.leaderboard-history-pagination a:hover {
  color: var(--blue);
  background: transparent;
  text-shadow: 0 0 18px rgba(67, 163, 255, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.leaderboard-history-pagination a:focus-visible {
  color: var(--blue);
  background: transparent;
  outline: 2px solid rgba(67, 163, 255, 0.72);
  outline-offset: 2px;
}

.leaderboard-changes {
  margin: 0 0 18px;
  padding: 4px 4px 22px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.leaderboard-changes-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.leaderboard-changes-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.leaderboard-changes-header > span {
  flex: 0 0 auto;
  color: rgba(247, 249, 255, 0.56);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.leaderboard-change-card {
  --change-accent: var(--blue);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.leaderboard-change-card--appeared {
  --change-accent: #5ee58a;
}

.leaderboard-change-card--disappeared {
  --change-accent: #ff6a87;
}

.leaderboard-change-card--appeared + .leaderboard-change-card--disappeared {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.leaderboard-change-card--wide {
  grid-column: 1 / -1;
}

.leaderboard-change-card--wide:not(:first-child) {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.leaderboard-change-card > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  color: rgba(247, 249, 255, 0.9);
  font-size: 1rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.leaderboard-change-card > summary::marker {
  content: "";
}

.leaderboard-change-card > summary::-webkit-details-marker {
  display: none;
}

.leaderboard-change-card > summary::after {
  width: 8px;
  height: 8px;
  margin: -4px 5px 0 auto;
  border-right: 2px solid rgba(247, 249, 255, 0.42);
  border-bottom: 2px solid rgba(247, 249, 255, 0.42);
  content: "";
  transform: rotate(-45deg);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.leaderboard-change-card[open] > summary::after {
  margin-top: -7px;
  transform: rotate(45deg);
}

.leaderboard-change-card > summary:hover,
.leaderboard-change-card > summary:focus-visible {
  color: #fff;
}

.leaderboard-change-card > summary:hover::after,
.leaderboard-change-card > summary:focus-visible::after {
  border-color: rgba(247, 249, 255, 0.78);
}

.leaderboard-change-card > summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(67, 163, 255, 0.42);
  outline-offset: 2px;
}

.leaderboard-change-card > summary b {
  color: var(--change-accent);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}

.leaderboard-change-card:not([open]) > ol {
  display: none;
}

.leaderboard-change-card ol {
  display: grid;
  gap: 0;
  max-height: 420px;
  margin: 0;
  padding: 0 8px 0 0;
  overflow: auto;
  scrollbar-color: rgba(67, 163, 255, 0.34) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  list-style: none;
}

.leaderboard-change-card ol::-webkit-scrollbar {
  width: 6px;
}

.leaderboard-change-card ol::-webkit-scrollbar-track {
  background: transparent;
}

.leaderboard-change-card ol::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(67, 163, 255, 0.34);
}

.leaderboard-change-card li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
  transition: background 0.18s ease;
}

.leaderboard-change-card li:last-child {
  border-bottom: 0;
}

.leaderboard-change-card li:hover {
  background: rgba(255, 255, 255, 0.025);
}

.leaderboard-change-card--wide li {
  grid-template-columns: 100px minmax(0, 1fr) auto auto;
}

.leaderboard-change-card strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-change-card small,
.leaderboard-change-card li > span {
  color: var(--muted);
  font-weight: 900;
}

.leaderboard-change-place,
.leaderboard-change-points {
  color: var(--blue);
  font-weight: 900;
}

.leaderboard-change-points.is-positive {
  color: #5ee58a;
}

.leaderboard-change-points.is-negative {
  color: #ff5b7e;
}

.leaderboard-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
}

.leaderboard-empty h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
}

.leaderboard-empty p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.leaderboard-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(67, 163, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(67, 163, 255, 0.12);
  font-weight: 900;
  text-decoration: none;
}

.leaderboard-empty code {
  color: #fff;
}

.bs-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  .leaderboard-page {
    width: min(100%, 680px);
    padding: 96px 14px 40px;
  }

  .leaderboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-profile-lookup {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .leaderboard-row,
  .leaderboard-row--head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .leaderboard-row--game {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .leaderboard-row--game-reviews {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .leaderboard-row--mission {
    grid-template-columns: minmax(0, 1fr);
  }

  .leaderboard-row--head span:nth-child(3),
  .leaderboard-row--head span:nth-child(4),
  .leaderboard-row--head span:nth-child(5),
  .leaderboard-row--head span:nth-child(6) {
    display: none;
  }

  .leaderboard-row--head.leaderboard-row--mission span:nth-child(2) {
    display: none;
  }

  .leaderboard-row span:nth-child(3),
  .leaderboard-row .leaderboard-balance,
  .leaderboard-row .leaderboard-points {
    grid-column: 2;
  }

  .leaderboard-row--mission .leaderboard-points {
    grid-column: 1;
  }

  .leaderboard-review-trigger {
    grid-column: 2;
    justify-self: start;
  }

  .leaderboard-cheat-risk {
    grid-column: 2;
    grid-template-columns: 44px minmax(0, auto);
    justify-self: start;
    width: auto;
    gap: 8px;
  }

  .leaderboard-cheat-risk::after {
    display: block;
    grid-area: 1 / 2;
    color: rgba(247, 249, 255, 0.54);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
  }

  .leaderboard-changes-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-history-summary__total {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 9px;
  }

  .leaderboard-update-list {
    grid-template-columns: 1fr;
  }

  .leaderboard-update:nth-child(odd) {
    border-right: 0;
  }

  .leaderboard-change-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .leaderboard-change-card + .leaderboard-change-card {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .leaderboard-change-card--appeared + .leaderboard-change-card--disappeared {
    padding-left: 0;
    border-left: 0;
  }

  .leaderboard-change-card li {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .leaderboard-change-card--wide li {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .leaderboard-change-card--wide .leaderboard-change-place {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .leaderboard-change-card--wide strong {
    grid-column: 2;
    grid-row: 1;
  }

  .leaderboard-change-card--wide .leaderboard-change-range {
    grid-column: 2;
    grid-row: 2;
  }

  .leaderboard-change-card--wide .leaderboard-change-points {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (max-width: 520px) {
  .leaderboard-page {
    width: min(100%, 520px);
  }

  .leaderboard-tabs {
    --leaderboard-tab-width: 150px;
  }

  .leaderboard-profile-lookup {
    padding: 18px;
    border-radius: 18px;
  }

  .leaderboard-profile-lookup__controls {
    grid-template-columns: 1fr;
  }

  .leaderboard-profile-lookup__controls button {
    width: 100%;
  }

  .leaderboard-profile-lookup__access {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-profile-lookup__access a {
    width: 100%;
  }

  .leaderboard-heading.page-heading h1 {
    max-width: 100%;
    font-size: 2.85rem;
    overflow-wrap: break-word;
  }

  .leaderboard-panel {
    padding: 12px;
  }

  .leaderboard-row {
    gap: 8px 12px;
    padding: 16px;
  }

  .leaderboard-review-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-review-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .leaderboard-review-dialog__surface {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .leaderboard-review-dialog__header,
  .leaderboard-review-form,
  .leaderboard-review-results {
    padding-inline: 16px;
  }

  .leaderboard-review-form__status {
    margin-inline: 16px;
  }

  .leaderboard-review-dialog__header h2 {
    max-width: calc(100vw - 108px);
  }

  .leaderboard-review-form__composer {
    gap: 8px;
  }

  .leaderboard-review-form textarea {
    font-size: 16px;
  }

  .leaderboard-review-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .leaderboard-review-item > img {
    width: 38px;
    height: 38px;
  }

  .leaderboard-review-item header {
    gap: 8px;
  }

  .leaderboard-review-item header > .leaderboard-review-item__actions {
    width: 64px;
    gap: 4px;
  }

  .leaderboard-review-item__actions b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-history-summary__caret,
  .leaderboard-history-content__inner {
    transition: none;
  }

  .leaderboard-review-dialog[open],
  .leaderboard-review-dialog[open]::backdrop {
    animation: none;
  }

  .leaderboard-review-state.is-loading::before {
    animation-duration: 1.5s;
  }
}
