.sub-ratings h3 {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.sub-ratings a {
  color: var(--c-font-page);
  text-shadow: 0 1px 0 var(--c-font-shadow);
}

.perf-stat .resultStreak .streak, .perf-stat .playStreak .streak {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.perf-stat .split {
  flex-flow: wrap;
  display: flex;
}

.perf-stat .box__top__title, .sub-ratings a {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.sub-ratings a > span {
  flex-flow: column;
  display: flex;
}

.sub-ratings a {
  border-radius: var(---ui-roundness, 7px) 0 0 var(---ui-roundness, 7px);
}

.sub-ratings a.active {
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

.sub-ratings a {
  padding-inline: .4em var(---block-gap);
  white-space: nowrap;
  padding-top: .7em;
  padding-bottom: .7em;
  transition: background .15s;
}

.sub-ratings a.empty {
  opacity: .5;
}

.sub-ratings a:before {
  opacity: .5;
  margin-inline-end: .2em;
  font-size: 3em;
  transition: opacity .15s, color .15s;
}

.sub-ratings a[href=""] {
  pointer-events: none;
}

.sub-ratings a[href]:hover {
  background: color-mix(in oklab, var(--c-bg-page) 50%, var(--c-bg));
}

.sub-ratings a[href]:hover:before {
  color: var(--c-link);
  opacity: .7;
}

.sub-ratings a.active {
  background: var(--c-bg-box);
}

.sub-ratings a.active:before {
  color: var(--c-accent);
  opacity: .7;
}

.sub-ratings a > span {
  flex: 100%;
  margin-inline-end: .5em;
}

.sub-ratings a rating span, .sub-ratings a .rank {
  font-size: .9em;
}

.sub-ratings a icon {
  opacity: .2;
  color: var(--c-font-dim);
  font-size: .75em;
  transition: all .15s;
}

.sub-ratings a:hover icon {
  color: var(--c-link);
  opacity: .7;
}

.sub-ratings a.active icon {
  display: none;
}

.sub-ratings a .shy {
  opacity: .6;
  font-size: .8em;
  line-height: 1em;
}

.sub-ratings hr {
  margin: var(---block-gap) auto;
  width: 80%;
}

.sub-ratings h3 {
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  font-size: 1.1em;
  display: inline-block;
}

.sub-ratings strong {
  color: var(--c-font-dim);
  font-size: 1.2em;
  font-weight: bold;
}

@media (max-width: 1019.29px) {
  .sub-ratings a {
    padding: .3em;
  }

  .sub-ratings a > icon, .sub-ratings h3, .sub-ratings hr, .sub-ratings rating .rp, .sub-ratings rating span {
    display: none;
  }
}

@media (max-width: 799.29px) {
  .sub-ratings {
    grid-template-columns: repeat(auto-fit, minmax(9ch, 1fr));
    display: grid;
  }

  .sub-ratings hr, .sub-ratings .rank {
    display: none;
  }

  .sub-ratings a {
    justify-content: center;
    display: flex;
  }

  .sub-ratings a:before {
    opacity: .8;
    font-size: 1.5em;
  }

  .sub-ratings a > span {
    flex: none;
    margin-inline-end: 0;
  }

  .sub-ratings a strong {
    font-weight: normal;
  }
}

.rating-history-container {
  flex: 58%;
  height: 350px;
}

.rating-history-container .chart-container {
  height: 80%;
}

.rating-history-container .chart-container .panning {
  cursor: move;
}

.rating-history-container .spinner {
  width: 90px;
  height: 90px;
  margin: 120px auto 0;
}

.rating-history-container .time-selector-buttons {
  margin: 4px 0 -4px 4px;
}

.rating-history-container .time-selector-buttons button {
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  box-shadow: none;
  border-right: 0;
  display: inline-flex;
}

.rating-history-container .time-selector-buttons button:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: none;
}

.rating-history-container .time-selector-buttons button:last-child {
  border-right: 1px solid var(--c-border);
}

.rating-history-container .time-selector-buttons button.active {
  color: var(--c-font);
  background-color: #262421;
  text-shadow: none !important;
}

:where(html.light) .rating-history-container .time-selector-buttons button.active {
  background-color: #dbebfc;
}

.rating-history-container .time-selector-buttons button.active:hover:not(.disabled, :disabled, [disabled]) {
  background-color: var(--c-bg-input);
}

:where(html.light) .rating-history-container .time-selector-buttons button.active:hover:not(.disabled, :disabled, [disabled]) {
  background-color: #e6f1fb;
}

.rating-history-container .noUi-target, .rating-history-container .noUi-target * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: #0000;
  touch-action: none;
  box-sizing: border-box;
}

.rating-history-container .noUi-target {
  position: relative;
}

.rating-history-container .noUi-base, .rating-history-container .noUi-connects {
  z-index: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

.rating-history-container .noUi-base {
  background-color: var(--c-bg-zebra);
  border-radius: 4px;
}

.rating-history-container .noUi-connects {
  z-index: 0;
  overflow: hidden;
}

.rating-history-container .noUi-connect, .rating-history-container .noUi-origin {
  will-change: transform;
  z-index: 1;
  transform-origin: 0 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  position: absolute;
  top: 0;
  right: 0;
}

.rating-history-container .noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
  left: 0;
  right: auto;
}

.rating-history-container .noUi-horizontal .noUi-origin {
  height: 0;
}

.rating-history-container .noUi-handle {
  backface-visibility: hidden;
  position: absolute;
}

.rating-history-container .noUi-touch-area {
  cursor: ew-resize;
  width: 100%;
  height: 100%;
}

.rating-history-container .noUi-state-tap .noUi-connect, .rating-history-container .noUi-state-tap .noUi-origin {
  transition: transform .3s;
}

.rating-history-container .noUi-state-drag * {
  cursor: grabbing !important;
}

.rating-history-container .noUi-horizontal {
  height: 9px;
  margin-top: 3px;
  margin-left: 32px;
  margin-right: 36px;
}

.rating-history-container .noUi-horizontal .noUi-handle {
  width: 7px;
  height: 20px;
  top: -6px;
  right: -2px;
}

.rating-history-container .noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  left: 0;
  right: auto;
}

.rating-history-container .noUi-target {
  border: 1px solid var(--c-border);
  background: #fff0;
  border-radius: 4px;
}

.rating-history-container .noUi-connects {
  border-radius: 3px;
}

.rating-history-container .noUi-connect {
  background: var(--c-primary);
  cursor: grab;
}

.rating-history-container .noUi-handle {
  cursor: ew-resize;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  box-shadow: inset 0 0 1px #fff, inset 0 1px 7px #ebebeb, 0 3px 6px -3px #bbb;
}

.rating-history-container .noUi-active {
  box-shadow: inset 0 0 1px #fff, inset 0 1px 7px #ddd, 0 3px 6px -3px #bbb;
}

.rating-history-container .noUi-handle:before, .rating-history-container .noUi-handle:after {
  left: 17px;
}

.rating-history-container .noUi-pips, .rating-history-container .noUi-pips * {
  box-sizing: border-box;
}

.rating-history-container .noUi-pips {
  color: var(--c-font);
  position: absolute;
}

.rating-history-container .noUi-value {
  white-space: nowrap;
  text-align: center;
  position: absolute;
}

.rating-history-container .noUi-value-sub {
  color: #ccc;
  font-size: 10px;
}

.rating-history-container .noUi-marker {
  background: var(--c-border);
  position: absolute;
}

.rating-history-container .noUi-marker-sub, .rating-history-container .noUi-marker-large {
  background: #aaa;
}

.rating-history-container .noUi-pips-horizontal {
  width: 100%;
  height: 100%;
  top: 100%;
  left: 0;
}

.rating-history-container .noUi-value-horizontal {
  transform: translate(-50%, 50%);
}

.rating-history-container .noUi-rtl .noUi-value-horizontal {
  transform: translate(50%, 50%);
}

.rating-history-container .noUi-marker-horizontal.noUi-marker {
  width: 2px;
  height: 5px;
  margin-left: -1px;
}

.rating-history-container .noUi-marker-horizontal.noUi-marker-sub {
  height: 10px;
}

.rating-history-container .noUi-marker-horizontal.noUi-marker-large {
  height: 15px;
}

.perf-stat {
  padding-bottom: 2em;
}

.perf-stat .box__top__title {
  gap: .4em;
}

.perf-stat h1 span {
  margin-inline-start: .4em;
}

.perf-stat .trophy {
  margin-top: -1rem;
  margin-inline: -.6em .2em;
}

.perf-stat .trophy.top1 {
  filter: drop-shadow(0 0 6px var(--c-brag));
}

.perf-stat .trophy.top50 img {
  transform: translateY(-12px);
}

.perf-stat .trophy.top100 img {
  transform: translateY(-15px);
}

.perf-stat .trophy img {
  height: 8rem;
}

.perf-stat h2 {
  font-size: 2em;
}

.perf-stat h2 .details {
  opacity: .8;
}

.perf-stat h3 {
  font-size: 1.3em;
}

.perf-stat time {
  display: inline;
}

.perf-stat green {
  color: var(--c-good);
}

.perf-stat red {
  color: var(--c-bad);
}

.perf-stat__content [title] {
  border-bottom: 1px dashed var(--c-link);
  cursor: help;
}

.perf-stat section {
  margin-top: 4em;
}

.perf-stat .split > div {
  flex: 1 0 49%;
}

.perf-stat .split > div:first-child {
  margin-inline-end: 2%;
}

.perf-stat .split > div {
  margin-bottom: 1em;
}

.perf-stat table {
  width: 100%;
}

.perf-stat .glicko h2 {
  margin-bottom: 1em;
}

.perf-stat .counter th {
  padding-inline-start: 1.5em;
}

.perf-stat .counter td {
  text-align: right;
  padding: .8em 1.2em;
  font-size: 1.2em;
  font-weight: bold;
}

.perf-stat .counter tr.full td:last-child {
  background: var(--c-bg-zebra);
}

.perf-stat .counter tr:first-child {
  border-bottom: 1px solid var(--c-border);
}

.perf-stat .highlow a, .perf-stat .highlow span {
  text-indent: 20px;
  display: inline-block;
}

.perf-stat .result th, .perf-stat .result td {
  padding: .8em 0;
}

.perf-stat .result td:first-child {
  white-space: nowrap;
  padding-inline-start: 20px;
}

.perf-stat .result td:last-child {
  text-align: right;
}

.perf-stat .result thead tr {
  border-bottom: 1px solid var(--c-border);
}

.perf-stat .resultStreak .streak, .perf-stat .playStreak .streak {
  margin: 1em 0 1em 1.5em;
}

.perf-stat .playStreak {
  white-space: nowrap;
}
