.statistics-menu,
.statistics-page,
.statistics-footer {
  width: min(1000px, calc(100vw - 30px));
}

.statistics-page {
  margin: 42px auto 56px;
}

.statistics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.statistics-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

.statistics-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2da44e;
}

.statistics-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.statistics-live {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.statistics-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0 38px;
}

.statistics-metrics article {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 17px 19px;
  border-radius: 8px;
  background: #f6f8fa;
}

.statistics-metrics strong {
  color: #24292f;
  font-size: 27px;
  line-height: 1;
}

.statistics-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.statistics-section {
  min-width: 0;
  margin-top: 34px;
}

.statistics-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.statistics-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.statistics-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.statistics-table-wrap {
  overflow-x: auto;
}

.statistics-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.statistics-table th,
.statistics-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.statistics-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.statistics-table td {
  color: var(--ink);
  font-size: 13px;
}

.statistics-table th:first-child,
.statistics-table td:first-child {
  width: 34%;
  padding-left: 3px;
}

.statistics-table th:last-child,
.statistics-table td:last-child {
  width: 27%;
  padding-right: 3px;
  text-align: right;
}

.statistics-place {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.statistics-place::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #2da44e;
  content: "";
}

.statistics-time {
  color: var(--muted) !important;
  white-space: nowrap;
}

.statistics-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.8fr);
  gap: 48px;
}

.statistics-breakdowns {
  min-width: 0;
}

.statistics-ranking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.statistics-ranking-compact {
  grid-template-columns: 1fr;
  gap: 11px;
}

.statistics-ranking li {
  min-width: 0;
}

.statistics-rank-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
}

.statistics-rank-line span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-rank-line strong {
  color: #24292f;
  font-size: 12px;
}

.statistics-bar {
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 2px;
  background: #d8dee4;
}

.statistics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #54aeff;
}

.statistics-empty {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.statistics-footer {
  margin: 0 auto;
  padding: 17px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.statistics-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .statistics-page {
    margin-top: 28px;
  }

  .statistics-heading {
    align-items: start;
  }

  .statistics-heading h1 {
    font-size: 25px;
  }

  .statistics-metrics {
    gap: 8px;
    margin: 20px 0 30px;
  }

  .statistics-metrics article {
    display: block;
    padding: 13px 12px;
  }

  .statistics-metrics strong,
  .statistics-metrics span {
    display: block;
  }

  .statistics-metrics strong {
    margin-bottom: 5px;
    font-size: 21px;
  }

  .statistics-metrics span {
    font-size: 10px;
  }

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

  .statistics-table-wrap {
    overflow: visible;
  }

  .statistics-table {
    table-layout: auto;
  }

  .statistics-table thead {
    display: none;
  }

  .statistics-table tbody,
  .statistics-table tr,
  .statistics-table td {
    display: block;
    width: auto !important;
  }

  .statistics-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 14px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
  }

  .statistics-table td {
    padding: 0 !important;
    border: 0;
    font-size: 12px;
  }

  .statistics-table td:nth-child(1),
  .statistics-table td:nth-child(2) {
    grid-column: 1;
  }

  .statistics-table td:nth-child(3),
  .statistics-table td:nth-child(4) {
    grid-column: 2;
    text-align: right;
  }

  .statistics-table td:nth-child(1),
  .statistics-table td:nth-child(4) {
    grid-row: 1;
  }

  .statistics-table td:nth-child(2),
  .statistics-table td:nth-child(3) {
    grid-row: 2;
    color: var(--muted);
    font-size: 10.5px;
  }

  .statistics-table td:nth-child(2) {
    padding-left: 15px !important;
  }
}

@media (max-width: 470px) {
  .statistics-ranking {
    grid-template-columns: 1fr;
  }

  .statistics-live {
    max-width: 100px;
    text-align: right;
  }
}
