.league-page {
  display: grid;
  gap: 16px;
}
.league-hero h1 {
  margin: 0.1em 0;
}
.league-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.league-summary h2 {
  margin: 0.3rem 0;
}
.league-import {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.league-import h2,
.league-import p {
  width: 100%;
  margin: 0;
}
.league-import .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #63d58b;
  border-radius: 8px;
  background: #176b3a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}
.league-import .button:active {
  transform: scale(0.98);
}
.league-import .button:focus-visible {
  outline: 3px solid #b5f5cb;
  outline-offset: 2px;
}
.league-board,
.league-activities,
.league-movements {
  padding-left: 0;
  list-style: none;
}
.league-board li,
.league-activities li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid #d6e2d8;
}
.league-activities li[hidden] {
  display: none !important;
}
.league-board small {
  grid-column: 1/-1;
  color: #607466;
}
.league-board .league-up {
  border-left: 5px solid #238a4b;
  background: #edf9f0;
}
.league-board .league-down {
  border-left: 5px solid #bd4141;
  background: #fff0f0;
}
.league-board .league-champion {
  border-left: 5px solid #d49a12;
  background: #fff7d6;
  color: #805600;
}
.league-board .league-champion b {
  color: #805600;
}
.league-activities li {
  align-items: center;
}
.league-movements li {
  padding: 8px 0;
  border-bottom: 1px solid #d6e2d8;
}
progress {
  width: 100%;
  accent-color: #238a4b;
}
@media (max-width: 560px) {
  .league-summary {
    grid-template-columns: 1fr;
  }
}
html[data-theme="dark"] .league-board .league-up {
  background: #173b23;
}
html[data-theme="dark"] .league-board .league-down {
  background: #451f1f;
}
html[data-theme="dark"] .league-board .league-champion {
  background: #47360b;
  color: #ffd768;
}
html[data-theme="dark"] .league-board .league-champion b {
  color: #ffd768;
}
html[data-theme="dark"] .league-board li,
html[data-theme="dark"] .league-activities li,
html[data-theme="dark"] .league-movements li {
  border-color: #384b40;
}
