:root {
  --league-ink: #15231f;
  --league-forest: #173f37;
  --league-forest-deep: #0f2f2a;
  --league-mint: #aee8c9;
  --league-mint-soft: #e8f7ef;
  --league-sun: #f4c95d;
  --league-coral: #ed745f;
  --league-paper: #fffdf7;
  --league-line: #d8ded8;
  --league-muted: #68736f;
  --league-danger: #b94b43;
}

.league-detail-body .app-content {
  background:
    radial-gradient(circle at 8% 8%, rgba(174, 232, 201, 0.28), transparent 27rem),
    radial-gradient(circle at 90% 33%, rgba(244, 201, 93, 0.2), transparent 29rem),
    #eef2ef;
}

.league-detail-body .quag-layout-container {
  padding-top: 0;
  padding-left: clamp(0.75rem, 2vw, 2rem);
  padding-right: clamp(0.75rem, 2vw, 2rem);
}

.league-home {
  display: flex;
  flex-direction: column;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(0.75rem, 1.5vw, 1.5rem) 0 4rem;
  color: var(--league-ink);
}

.league-identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 31, 0.09);
  border-radius: 32px;
  background: var(--league-paper);
  box-shadow: 0 24px 64px rgba(21, 35, 31, 0.14);
}

.league-identity::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -11rem;
  left: -8rem;
  width: 31rem;
  height: 31rem;
  border: 5.5rem solid rgba(23, 63, 55, 0.045);
  border-radius: 50%;
}

.league-identity__shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}

.league-identity__shape--mint {
  top: -8rem;
  right: 18%;
  width: 18rem;
  height: 18rem;
  background: rgba(174, 232, 201, 0.56);
}

.league-identity__shape--sun {
  right: -5rem;
  bottom: 2rem;
  width: 16rem;
  height: 16rem;
  background: rgba(244, 201, 93, 0.34);
}

.league-identity__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  align-content: center;
  column-gap: clamp(1.4rem, 3vw, 3rem);
  row-gap: 0;
  min-height: 305px;
  padding: clamp(1.6rem, 4vw, 4rem);
  padding-bottom: clamp(4.8rem, 7vw, 7.5rem);
}

.league-identity__emblem {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  align-self: center;
  width: clamp(7.5rem, 14vw, 11.5rem);
  height: clamp(7.5rem, 14vw, 11.5rem);
  transform: rotate(-2deg);
}

.league-identity__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.96))
    drop-shadow(0 18px 24px rgba(21, 35, 31, 0.18));
}

.league-identity__emblem--placeholder {
  border-radius: 28% 42% 33% 47%;
  color: var(--league-paper);
  background: var(--league-forest);
  box-shadow: 0 20px 38px rgba(23, 63, 55, 0.2);
}

.league-identity__emblem--placeholder i {
  font-size: clamp(3rem, 6vw, 5rem);
}

.league-identity__copy,
.league-identity__body {
  grid-column: 2;
  width: 100%;
  max-width: 920px;
}

.league-identity__eyebrow,
.league-section-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--league-forest);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.league-identity__eyebrow span,
.league-section-kicker span {
  width: 2rem;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.league-identity__title {
  max-width: 1000px;
  margin: 0.7rem 0 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

.league-identity__description {
  max-width: 780px;
  margin: 1.15rem 0 0;
  color: #43504b;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.league-identity__description--quiet {
  color: var(--league-muted);
}

.league-description {
  max-width: 780px;
  margin-top: 1.15rem;
}

.league-description > summary {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
  color: #43504b;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.league-description > summary::-webkit-details-marker {
  display: none;
}

.league-description > summary strong {
  color: var(--league-forest);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.league-description__close-label {
  display: none;
}

.league-description[open] .league-description__open-label {
  display: none;
}

.league-description[open] .league-description__close-label {
  display: inline;
}

.league-description[open] .league-description__preview {
  display: none;
}

.league-description__full {
  margin-top: 0.8rem;
  color: #43504b;
  font-size: 1rem;
  line-height: 1.6;
}

.league-identity__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: 1.4rem;
}

.league-identity__facts > span {
  display: grid;
  gap: 0.05rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--league-sun);
  color: var(--league-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.league-identity__facts strong {
  max-width: 28rem;
  overflow: hidden;
  color: var(--league-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: normal;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.league-destination-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: calc(100% - clamp(1.4rem, 5vw, 5rem));
  margin: clamp(-4.6rem, -5vw, -3.6rem) auto 1.1rem;
}

.league-destinations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.league-destination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 102px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(21, 35, 31, 0.11);
  border-radius: 9px 24px 24px 24px;
  color: var(--league-ink);
  text-decoration: none;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 15px 35px rgba(21, 35, 31, 0.11);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.league-destination__icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  color: var(--league-forest);
  background: var(--league-mint-soft);
}

.league-destination__copy {
  display: grid;
  min-width: 0;
}

.league-destination__copy small {
  color: var(--league-coral);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.league-destination__copy strong {
  margin-top: 0.05rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.league-destination__copy span {
  margin-top: 0.15rem;
  overflow: hidden;
  color: var(--league-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-destination__arrow {
  font-size: 1rem;
}

.league-management {
  overflow: hidden;
  border: 1px solid rgba(21, 35, 31, 0.11);
  border-radius: 9px 24px 24px 24px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 15px 35px rgba(21, 35, 31, 0.11);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.league-management > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 102px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.league-management > summary::-webkit-details-marker {
  display: none;
}

.league-management__chevron {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.league-management[open] .league-management__chevron {
  transform: rotate(180deg);
}

.league-management__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid var(--league-line);
}

.league-management__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--league-line);
  border-radius: 0.85rem;
  color: var(--league-ink);
  font-weight: 800;
  text-decoration: none;
  background: var(--league-paper);
}

.league-management__action--primary {
  color: #fff;
  border-color: var(--league-forest);
  background: var(--league-forest);
}

.league-filter-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--league-sun);
  color: var(--league-ink);
  background: var(--league-paper);
}

.league-filter-notice a {
  color: var(--league-forest);
  font-weight: 800;
}

.league-now {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 2rem;
}

.league-next-game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(155px, 18vw, 220px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 11px 32px 32px 32px;
  color: #fff;
  background:
    radial-gradient(circle at 7% 110%, rgba(174, 232, 201, 0.26), transparent 20rem),
    linear-gradient(135deg, var(--league-forest) 0%, var(--league-forest-deep) 78%);
  box-shadow: 0 24px 52px rgba(15, 47, 42, 0.22);
}

.league-next-game::after {
  content: "";
  position: absolute;
  right: 15%;
  bottom: -8rem;
  width: 19rem;
  height: 19rem;
  border: 3rem solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.league-next-game--signed {
  background:
    radial-gradient(circle at 7% 110%, rgba(174, 232, 201, 0.34), transparent 20rem),
    linear-gradient(135deg, #1b5247 0%, var(--league-forest-deep) 78%);
}

.league-next-game--cancelled {
  background: linear-gradient(135deg, #4f3330 0%, #291d1c 78%);
}

.league-next-game__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
}

.league-next-game .league-section-kicker {
  color: var(--league-mint);
}

.league-section-kicker--coral {
  color: var(--league-coral);
}

.league-next-game__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
}

.league-next-game__topline .league-section-kicker {
  margin: 0;
}

.league-next-game--empty h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 800;
}

.league-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.league-status--signed {
  color: var(--league-forest-deep);
  background: var(--league-mint);
}

.league-status--cancelled {
  color: #fff;
  background: var(--league-danger);
}

.league-next-game__title {
  max-width: 820px;
  margin: 1.25rem 0 0;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.league-next-game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.league-next-game__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.league-next-game__meta i {
  color: var(--league-sun);
}

.league-next-game__description {
  max-width: 680px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.league-next-game__actions {
  width: 100%;
  margin-top: auto;
  padding-top: 1.5rem;
}

.league-next-game__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 1rem;
  color: var(--league-forest-deep);
  font-weight: 900;
  text-decoration: none;
  background: var(--league-mint);
}

.league-next-game--empty .league-next-game__action {
  margin-top: auto;
}

.league-next-game__date {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--league-forest-deep);
  background: var(--league-sun);
}

.league-next-game__date::before,
.league-next-game__date::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--league-forest-deep);
}

.league-next-game__date::before {
  top: -13px;
}

.league-next-game__date::after {
  bottom: -13px;
}

.league-next-game__relative-day {
  margin-bottom: 0.9rem;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.league-next-game__calendar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  column-gap: 0.55rem;
  row-gap: 0.25rem;
  max-width: 100%;
}

.league-next-game__calendar-day {
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.league-next-game__calendar-month {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding-bottom: 0.28rem;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.league-next-game__calendar-month small {
  font-size: 0.72em;
  font-weight: 900;
}

.league-next-game__time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
}

.league-next-game__time i {
  font-size: 0.52em;
}

.league-next-game--empty {
  grid-template-columns: minmax(0, 1fr) auto;
}

.league-next-game--empty h2 {
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.league-next-game--empty p {
  max-width: 560px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.league-next-game__empty-mark {
  align-self: center;
  padding: 2rem clamp(2rem, 5vw, 5rem) 2rem 1rem;
  color: rgba(174, 232, 201, 0.38);
  font-size: clamp(6rem, 11vw, 10rem);
}

.league-upcoming {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border: 1px solid rgba(21, 35, 31, 0.09);
  border-radius: 9px 28px 28px 28px;
  background: var(--league-paper);
  box-shadow: 0 18px 42px rgba(21, 35, 31, 0.1);
}

.league-upcoming__header,
.league-recent__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.league-upcoming__eyebrow {
  color: var(--league-coral);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.league-upcoming__header h2,
.league-recent__header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}

.league-upcoming__header > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--league-forest);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.league-upcoming__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.league-upcoming-game {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 82px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--league-line);
  border-radius: 7px 17px 17px 17px;
  color: var(--league-ink);
  text-decoration: none;
  background: #fffefa;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.league-upcoming-game--signed {
  border-color: rgba(23, 63, 55, 0.26);
  background: var(--league-mint-soft);
}

.league-upcoming-game--cancelled {
  opacity: 0.72;
}

.league-upcoming-game > time {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 62px;
  border-radius: 5px 14px 14px 14px;
  color: #fff;
  background: var(--league-forest);
}

.league-upcoming-game > time strong {
  font-size: 1.25rem;
  line-height: 1;
}

.league-upcoming-game > time span,
.league-upcoming-game > time small {
  font-size: 0.65rem;
  line-height: 1.1;
}

.league-upcoming-game__copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.league-upcoming-game__copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.league-upcoming-game__copy span {
  overflow: hidden;
  color: var(--league-muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-upcoming-game > i {
  color: var(--league-forest);
}

.league-upcoming__quiet {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 2rem;
  text-align: center;
}

.league-upcoming__quiet i {
  color: var(--league-mint);
  font-size: 3.4rem;
}

.league-upcoming__quiet p {
  max-width: 280px;
  margin: 0.7rem 0 0;
  color: var(--league-muted);
  line-height: 1.5;
}

.league-recent {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.league-recent__list {
  display: grid;
  margin-top: 1.4rem;
  border-top: 1px solid var(--league-line);
}

.league-recent-game {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  min-height: 92px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--league-line);
  color: var(--league-ink);
  text-decoration: none;
  transition: padding-left 0.2s ease, background-color 0.2s ease;
}

.league-recent-game > time {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.league-recent-game > time strong {
  color: var(--league-forest);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.league-recent-game > time span {
  color: var(--league-muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.league-recent-game__copy {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.league-recent-game__copy strong {
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.league-recent-game__copy span {
  color: var(--league-muted);
  font-size: 0.78rem;
}

.league-recent-game__status {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: var(--league-forest);
  font-size: 0.7rem;
  font-weight: 900;
  background: var(--league-mint-soft);
  white-space: nowrap;
}

.league-recent-game__status--waiting {
  color: #76530a;
  background: #fff2c9;
}

.league-recent-game__status--cancelled {
  color: var(--league-danger);
  background: #fbe7e4;
}

.league-recent-game__arrow {
  color: var(--league-forest);
}

.league-history {
  scroll-margin-top: 5.5rem;
}

.league-history__header {
  align-items: flex-start;
}

.league-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.league-history-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--league-line);
  border-radius: 999px;
  color: var(--league-muted);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 253, 247, 0.72);
}

.league-history-meta strong {
  color: var(--league-forest);
  font-size: 1rem;
  font-weight: 900;
}

.league-history-panel {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--league-line);
  border-radius: 8px 24px 24px 24px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 22px 54px rgba(21, 35, 31, 0.08);
}

.league-history-page__list {
  margin-top: 0;
  border-top: 0;
}

.league-history-page__list .league-recent-game {
  min-height: 98px;
  padding-right: 1.35rem;
  padding-left: 1.35rem;
}

.league-history-page__list .league-recent-game__copy strong {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.league-history-pagination {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--league-line);
  background: rgba(239, 244, 240, 0.62);
}

.league-pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
}

.league-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--league-line);
  border-radius: 0.8rem !important;
  color: var(--league-forest);
  font-size: 0.88rem;
  font-weight: 900;
  background: var(--league-paper);
}

.league-pagination__direction .page-link {
  padding-right: 0.9rem;
  padding-left: 0.9rem;
}

.league-pagination .page-item.disabled .page-link {
  color: var(--league-muted);
  background: transparent;
}

.league-pagination .page-item.active .page-link {
  border-color: var(--league-forest);
  color: #fff;
  background: var(--league-forest);
}

.league-recent__empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 150px;
  margin-top: 1.4rem;
  padding: 1.5rem;
  border: 1px solid var(--league-line);
  border-radius: 8px 22px 22px 22px;
  background: var(--league-paper);
}

.league-recent__empty > i {
  color: var(--league-mint);
  font-size: 3rem;
}

.league-recent__empty h3,
.league-recent__empty p {
  margin: 0;
}

.league-recent__empty h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

.league-recent__empty p {
  margin-top: 0.25rem;
  color: var(--league-muted);
}

.league-destination:focus-visible,
.league-description > summary:focus-visible,
.league-management > summary:focus-visible,
.league-management__action:focus-visible,
.league-next-game__action:focus-visible,
.league-upcoming__header > a:focus-visible,
.league-upcoming-game:focus-visible,
.league-recent-game:focus-visible,
.league-pagination .page-link:focus-visible {
  outline: 3px solid var(--league-coral);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .league-destination:hover {
    color: var(--league-ink);
    border-color: rgba(23, 63, 55, 0.28);
    box-shadow: 0 19px 42px rgba(21, 35, 31, 0.16);
    transform: translateY(-3px);
  }

  .league-management__action:hover {
    color: var(--league-forest);
    border-color: var(--league-forest);
  }

  .league-management__action--primary:hover {
    color: var(--league-forest-deep);
    border-color: var(--league-mint);
    background: var(--league-mint);
  }

  .league-next-game__action:hover {
    color: var(--league-forest-deep);
    background: var(--league-sun);
  }

  .league-upcoming-game:hover {
    color: var(--league-ink);
    border-color: rgba(23, 63, 55, 0.34);
    box-shadow: 0 10px 22px rgba(21, 35, 31, 0.1);
    transform: translateX(3px);
  }

  .league-recent-game:hover {
    color: var(--league-ink);
    padding-left: 1.35rem;
    background: rgba(255, 253, 247, 0.66);
  }

  .league-pagination a.page-link:hover {
    color: var(--league-paper);
    border-color: var(--league-forest);
    background: var(--league-forest);
  }
}

@media (max-width: 991.98px) {
  .league-identity__main {
    min-height: 0;
  }

  .league-now {
    grid-template-columns: 1fr;
  }

  .league-upcoming__quiet {
    min-height: 160px;
  }
}

@media (max-width: 767.98px) {
  .league-detail-body .quag-layout-container {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .league-home {
    padding-top: 0.7rem;
    padding-bottom: 2.5rem;
  }

  .league-identity {
    border-radius: 22px;
  }

  .league-identity__main {
    grid-template-columns: 82px minmax(0, 1fr);
    align-content: start;
    column-gap: 1rem;
    row-gap: 0;
    padding: 1.3rem 1rem;
  }

  .league-identity__emblem {
    grid-row: 1;
    width: 82px;
    height: 82px;
  }

  .league-identity__emblem--placeholder {
    border-radius: 20px;
  }

  .league-identity__emblem--placeholder i {
    font-size: 2.3rem;
  }

  .league-identity__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .league-identity__eyebrow span {
    width: 1.25rem;
  }

  .league-identity__title {
    margin-top: 0.45rem;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
  }

  .league-identity__body {
    grid-column: 1 / -1;
    max-width: none;
  }

  .league-identity__description,
  .league-description {
    margin-top: 0.9rem;
    font-size: 0.94rem;
  }

  .league-identity__facts {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .league-identity__facts strong {
    max-width: 15rem;
  }

  .league-destination-stack {
    order: 4;
    width: 100%;
    margin: 1rem 0 0;
  }

  .league-destinations {
    grid-template-columns: 1fr;
  }

  .league-identity {
    order: 1;
  }

  .league-filter-notice {
    order: 2;
    margin-top: 1rem;
  }

  .league-now {
    order: 3;
  }

  .league-recent {
    order: 6;
  }

  .league-destination {
    min-height: 86px;
    border-radius: 7px 18px 18px 18px;
  }

  .league-management {
    border-radius: 7px 18px 18px 18px;
  }

  .league-management > summary {
    min-height: 86px;
  }

  .league-management__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .league-now {
    margin-top: 1.4rem;
  }

  .league-next-game,
  .league-next-game--empty {
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "content";
    min-height: 0;
    border-radius: 8px 24px 24px 24px;
  }

  .league-next-game__content {
    grid-area: content;
    min-height: 330px;
    padding: 1.35rem;
  }

  .league-next-game__date {
    grid-area: date;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1rem;
    row-gap: 0.55rem;
    min-height: 108px;
    padding: 0.9rem 1.35rem;
  }

  .league-next-game__date::before,
  .league-next-game__date::after {
    display: none;
  }

  .league-next-game__relative-day {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 1rem;
  }

  .league-next-game__calendar-row {
    min-width: 0;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .league-next-game__calendar-day {
    font-size: 3.4rem;
  }

  .league-next-game__calendar-month {
    padding-bottom: 0.22rem;
    font-size: 1.2rem;
  }

  .league-next-game__time {
    align-self: end;
    margin-top: 0;
    padding-bottom: 0.12rem;
    font-size: 2rem;
    white-space: nowrap;
  }

  .league-next-game__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .league-next-game__action {
    width: 100%;
  }

  .league-next-game__empty-mark {
    display: none;
  }

  .league-upcoming {
    padding: 1.1rem;
    border-radius: 7px 22px 22px 22px;
  }

  /* Пустой вторичный анонс не задерживает мобильного пользователя перед разделами лиги. */
  .league-upcoming--quiet-state {
    display: none;
  }

  .league-upcoming__header h2,
  .league-recent__header h2 {
    font-size: 1.5rem;
  }

  .league-recent {
    margin-top: 3.2rem;
  }

  .league-recent__header {
    align-items: flex-start;
  }

  .league-history__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .league-history__header .league-section-kicker {
    white-space: nowrap;
  }

  .league-history-meta {
    justify-content: flex-start;
    width: 100%;
  }

  .league-history-meta span {
    justify-content: center;
    white-space: nowrap;
  }

  .league-recent-game {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 0.7rem;
    min-height: 96px;
    padding: 0.8rem 0.35rem;
  }

  .league-recent-game > time {
    display: grid;
    justify-items: center;
    gap: 0.1rem;
  }

  .league-recent-game > time strong {
    font-size: 1.7rem;
  }

  .league-recent-game > time span {
    text-align: center;
  }

  .league-recent-game__status {
    grid-column: 2;
    width: fit-content;
    padding: 0.25rem 0.45rem;
    white-space: normal;
  }

  .league-recent-game__arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .league-history-panel {
    margin-top: 1.25rem;
    border-radius: 7px 20px 20px 20px;
  }

  .league-history-page__list .league-recent-game {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .league-history-pagination {
    padding: 0.85rem 0.7rem;
  }
}

@media (max-width: 399.98px) {
  .league-identity__main {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .league-identity__emblem {
    width: 68px;
    height: 68px;
  }

  .league-identity__title {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .league-destination__copy span {
    white-space: normal;
  }

  .league-next-game__topline {
    align-items: flex-start;
  }

  .league-next-game__content {
    min-height: 350px;
  }

  .league-next-game__meta {
    display: grid;
  }

  .league-upcoming-game {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.55rem;
  }

  .league-upcoming-game > time {
    min-height: 58px;
  }

  .league-pagination__direction span {
    display: none;
  }

  .league-pagination__direction .page-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .league-destination,
  .league-management,
  .league-management__chevron,
  .league-upcoming-game,
  .league-recent-game {
    transition: none;
  }
}
