#ligue.view {
  --league-gold: #f0c76a;
  --league-muted: #9aa9bd;
}

#ligue .league-page-hero {
  position: relative;
  display: flex;
  min-height: 178px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin: 5px 0 14px;
  padding: 27px 30px;
  background:
    radial-gradient(circle at 90% 5%, rgba(240, 199, 106, .2), transparent 31%),
    radial-gradient(circle at 4% 100%, rgba(47, 125, 246, .14), transparent 35%),
    linear-gradient(125deg, rgba(23, 38, 58, .98), rgba(10, 19, 32, .98));
  border: 1px solid rgba(240, 199, 106, .17);
  border-radius: 25px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .25);
}

#ligue .league-page-hero::after {
  position: absolute;
  right: 20%;
  bottom: -130px;
  width: 260px;
  height: 200px;
  content: "";
  background: rgba(240, 199, 106, .06);
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
}

#ligue .league-page-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

#ligue .league-page-hero__eyebrow {
  color: #dfbc6c;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .14em;
}

#ligue .league-page-hero__eyebrow > span {
  margin-right: 5px;
  color: #58d39a;
  text-shadow: 0 0 10px rgba(88, 211, 154, .7);
}

#ligue .league-page-hero h2 {
  margin: 9px 0 8px;
  color: #f5f7fb;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: 1;
}

#ligue .league-page-hero__copy p {
  max-width: 55ch;
  margin: 0;
  color: #a7b4c7;
  font-size: .9rem;
  line-height: 1.6;
}

#ligue .league-page-hero__mark {
  position: absolute;
  top: 50%;
  right: 42px;
  color: rgba(240, 199, 106, .15);
  font-size: clamp(5rem, 11vw, 8rem);
  transform: translateY(-50%) rotate(9deg);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .18));
  pointer-events: none;
}

#ligue .league-page-hero__jump {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 14px;
  color: #f2d995;
  font-size: .77rem;
  font-weight: 750;
  text-decoration: none;
  background: rgba(240, 199, 106, .08);
  border: 1px solid rgba(240, 199, 106, .19);
  border-radius: 13px;
}

#ligue .league-page-hero__jump:hover {
  background: rgba(240, 199, 106, .14);
}

#ligue .league-info-note {
  padding: 13px 16px;
  color: #c4d6e9;
  font-size: .78rem;
  line-height: 1.5;
  background: linear-gradient(100deg, rgba(47, 125, 246, .11), rgba(13, 26, 43, .75)) !important;
  border: 1px solid rgba(91, 160, 255, .15);
  border-radius: 15px;
}

#ligue .league-card {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 199, 106, .075), transparent 32%),
    linear-gradient(145deg, rgba(17, 32, 50, .98), rgba(10, 21, 36, .98)) !important;
  border: 1px solid rgba(240, 199, 106, .14) !important;
  border-radius: 23px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24) !important;
}

#ligue .league-hero {
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  padding-bottom: 18px;
  border-color: rgba(148, 171, 203, .13);
}

#ligue .league-hero-ico {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(240, 199, 106, .11);
  border: 1px solid rgba(240, 199, 106, .19);
  border-radius: 16px;
}

#ligue .league-hero-copy {
  min-width: 0;
  flex: 1;
}

#ligue .league-entry-eyebrow {
  margin-bottom: 3px;
  color: #d8b660;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .12em;
}

#ligue .league-entry-title {
  margin: 0;
  color: #f0f4fa;
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

#ligue .league-hero .card-desc {
  margin-top: 4px;
  color: #91a0b5;
  font-size: .76rem;
  line-height: 1.45;
}

#ligue .league-series-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #e6cd8d;
  font-size: .68rem;
  font-weight: 750;
  background: rgba(240, 199, 106, .08);
  border: 1px solid rgba(240, 199, 106, .15);
  border-radius: 999px;
}

#ligue .league-mode-row {
  min-height: 0;
  margin-bottom: 11px;
}

#ligue .league-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #bcebd2;
  font-size: .7rem;
  font-weight: 750;
  background: rgba(55, 201, 134, .09);
  border: 1px solid rgba(55, 201, 134, .17);
  border-radius: 999px;
}

#ligue .league-catchup-card {
  margin: 0 0 15px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 199, 106, .1), transparent 38%),
    rgba(19, 32, 48, .82);
  border: 1px solid rgba(240, 199, 106, .18);
  border-radius: 18px;
}

#ligue .league-lane-panel {
  margin-bottom: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(148, 171, 203, .12);
  border-radius: 16px;
}

#ligue .league-lane-panel__icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  font-size: 1.12rem;
  background: rgba(91, 160, 255, .1);
  border: 1px solid rgba(91, 160, 255, .12);
  border-radius: 13px;
}

#ligue .league-lane-panel__label {
  color: #e0e8f3;
  font-weight: 730;
}

#ligue .league-lane-panel__copy small {
  display: block;
  margin-top: 3px;
  color: #8695ab;
  line-height: 1.4;
}

#ligue .league-lane-panel__input {
  width: 80px;
  min-height: 55px;
  color: #f2d995 !important;
  font-size: 1.25rem !important;
  font-weight: 800;
  text-align: center;
  background: rgba(5, 14, 25, .7) !important;
  border: 1px solid rgba(240, 199, 106, .2) !important;
  border-radius: 14px !important;
}

#ligue .league-summary {
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  background: rgba(5, 14, 25, .36);
  border: 1px solid rgba(148, 171, 203, .09);
  border-radius: 18px;
}

#ligue .total-badge {
  min-width: 100px;
  justify-content: center;
  background: linear-gradient(145deg, rgba(240, 199, 106, .15), rgba(240, 199, 106, .05));
  border: 1px solid rgba(240, 199, 106, .24);
  border-radius: 15px;
}

#ligue .total-badge__k {
  color: #d8b660;
  font-size: .62rem;
  font-weight: 800;
}

#ligue .total-badge__v {
  color: #fff4d3;
  font-size: 1.7rem;
}

#ligue .league-chips {
  flex-wrap: wrap;
  gap: 7px;
}

#ligue .chip {
  min-width: 70px;
  justify-content: center;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .045);
  border-color: rgba(148, 171, 203, .12);
  border-radius: 13px;
}

#ligue .chip__k {
  color: #8c9bb0;
  font-size: .61rem;
  font-weight: 750;
}

#ligue .chip__v {
  color: #eaf0f8;
  font-size: 1rem;
  font-weight: 750;
}

#ligue .chip.done {
  background: rgba(55, 201, 134, .09);
  border-color: rgba(55, 201, 134, .22);
}

#ligue .chip.done .chip__v {
  color: #b6f3d0;
}

#ligue .league-handicap-note {
  width: 100%;
  margin: 0;
  color: #77869b;
  font-size: .65rem;
  text-align: left;
}

#ligue .stepper-dots {
  justify-content: center;
  gap: 9px;
  margin: 17px 0 10px;
}

#ligue .stepper-dots .dot {
  display: flex;
  width: 29px;
  height: 29px;
  font-size: .7rem;
  font-weight: 800;
}

#ligue .stepper-dots .dot.active {
  background: var(--league-gold);
  border-color: var(--league-gold);
  color: #15120b;
  box-shadow: 0 0 0 4px rgba(240, 199, 106, .12);
}

#ligue .stepper-dots .dot.done {
  background: rgba(55, 201, 134, .14);
  border-color: rgba(55, 201, 134, .28);
  color: #9de7bc;
}

#ligue .league-progress-bar {
  height: 5px;
  margin-bottom: 17px;
  background: rgba(255, 255, 255, .075);
}

#ligue .league-progress-fill {
  background: linear-gradient(90deg, #e3b957, #f3d889);
  box-shadow: 0 0 12px rgba(240, 199, 106, .35);
}

#ligue .league-steps .step {
  max-width: 480px;
  margin: 0 auto;
  padding: 19px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(148, 171, 203, .1);
  border-radius: 18px;
}

#ligue .league-steps .step.active {
  animation: leagueStepIn .22s ease both;
}

#ligue .league-steps .step-title {
  margin-bottom: 10px;
  color: #d8b660;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .11em;
}

#ligue .league-steps .step input {
  min-height: 68px;
  font-size: 1.8rem !important;
  font-weight: 820;
  text-align: center;
  background: rgba(5, 14, 25, .68) !important;
  border: 1px solid rgba(148, 171, 203, .17) !important;
  border-radius: 15px !important;
}

#ligue .league-steps .step input:focus {
  border-color: rgba(240, 199, 106, .5) !important;
  box-shadow: 0 0 0 3px rgba(240, 199, 106, .1) !important;
}

#ligue .league-steps .step .btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px !important;
}

#ligue .league-steps .step .btn--primary {
  color: #1c170a !important;
  background: linear-gradient(120deg, #f3d889, #dcae49) !important;
  box-shadow: 0 9px 23px rgba(191, 144, 46, .16) !important;
}

#ligue .league-closed,
#ligue .league-done {
  border-radius: 18px;
}

#ligue .league-done .done-box,
#ligue .league-closed .done-box {
  padding: 27px;
  border-color: rgba(240, 199, 106, .2);
  border-radius: 20px;
}

#ligue .league-done .done-ico,
#ligue .league-closed .done-ico {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 12px;
  background: rgba(240, 199, 106, .1);
  border-radius: 19px;
}

#ligue .league-rankings-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 2px 12px;
  scroll-margin-top: 20px;
}

#ligue .league-rankings-heading h2 {
  margin: 5px 0 0;
  color: #f2f5fa;
  font-size: 1.4rem;
  font-weight: 780;
  letter-spacing: -.035em;
}

#ligue .league-rankings-heading p {
  max-width: 44ch;
  margin: 0;
  color: #8998ae;
  font-size: .75rem;
  line-height: 1.45;
  text-align: right;
}

#ligue .league-boards {
  align-items: start;
  gap: 12px;
  margin-top: 0 !important;
}

#ligue .league-boards > .glass-card {
  min-width: 0;
  padding: 17px;
  background: linear-gradient(145deg, rgba(17, 32, 50, .97), rgba(10, 21, 36, .97)) !important;
  border: 1px solid rgba(148, 171, 203, .12) !important;
  border-radius: 19px !important;
}

#ligue .league-boards .card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #eaf0f8 !important;
  font-size: .8rem !important;
  font-weight: 760;
  letter-spacing: 0 !important;
  text-transform: none;
}

#ligue .league-boards .table-v2 {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0 5px !important;
}

#ligue .league-boards .table-v2 th:first-child,
#ligue .league-boards .table-v2 td:first-child {
  width: 36px;
  padding-right: 4px;
  padding-left: 4px;
}

#ligue .league-boards .table-v2 th:nth-child(2),
#ligue .league-boards .table-v2 td:nth-child(2) {
  width: 38%;
  padding-left: 8px;
}

#ligue .league-boards .table-v2 th:nth-child(3),
#ligue .league-boards .table-v2 td:nth-child(3) {
  width: 23%;
}

#ligue .league-boards .table-v2 th {
  padding: 7px 8px;
  color: #8392a8;
  font-size: .61rem;
  line-height: 1.3;
  white-space: nowrap;
}

#ligue .league-boards .table-v2 td {
  padding: 9px 8px;
  color: #dfe7f2;
  font-size: .73rem;
  vertical-align: middle;
}

#ligue .league-boards .table-v2 tbody tr.league-row--me td {
  background: rgba(76, 201, 240, .12);
}

#ligue .league-boards .table-v2 tbody tr.league-row--me td:first-child {
  border-radius: 10px 0 0 10px;
}

#ligue .league-boards .table-v2 tbody tr.league-row--me td:last-child {
  border-radius: 0 10px 10px 0;
}

#ligue .league-boards .table-v2 td:first-child {
  color: #d8b660;
  font-weight: 800;
}

#ligue .league-boards .table-v2 td:nth-child(2) > strong {
  display: inline-block;
  line-height: 1.35;
}

#ligue .league-boards .league-total-handicap {
  color: #91a0b5;
  font-size: .88em;
  white-space: nowrap;
}

#ligue .league-boards .league-player-meta {
  margin-top: 4px;
  color: #91a0b5;
  font-size: .65rem;
  line-height: 1.4;
}

#ligue .league-boards .league-player-meta strong {
  color: #eaf0f8;
}

#ligue .league-boards .table-v2 tbody tr:first-child td:first-child {
  color: #f2d98f;
}

@keyframes leagueStepIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  #ligue .league-page-hero {
    min-height: 0;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2px;
    padding: 21px 18px;
    border-radius: 21px;
  }

  #ligue .league-page-hero__copy {
    max-width: 100%;
    padding-right: 10px;
  }

  #ligue .league-page-hero h2 {
    margin-top: 8px;
    font-size: 2rem;
  }

  #ligue .league-page-hero__copy p {
    max-width: 38ch;
    font-size: .8rem;
  }

  #ligue .league-page-hero__mark {
    top: 20px;
    right: 13px;
    font-size: 3.3rem;
    opacity: .75;
    transform: rotate(9deg);
  }

  #ligue .league-page-hero__jump {
    position: absolute;
    right: 14px;
    bottom: 12px;
    min-height: 34px;
    padding: 0 9px;
    font-size: .66rem;
  }

  #ligue .league-page-hero__copy {
    padding-bottom: 31px;
  }

  #ligue .league-info-note {
    margin-bottom: 10px !important;
    padding: 11px 12px;
    font-size: .71rem;
  }

  #ligue .league-card {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  #ligue .league-hero {
    gap: 10px;
    padding-bottom: 14px;
  }

  #ligue .league-hero-ico {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1.1rem;
    border-radius: 13px;
  }

  #ligue .league-entry-title {
    font-size: .98rem;
  }

  #ligue .league-hero .card-desc {
    font-size: .68rem;
  }

  #ligue .league-series-count {
    padding: 6px 8px;
    font-size: .61rem;
  }

  #ligue .league-summary {
    gap: 8px;
    padding: 10px;
  }

  #ligue .total-badge {
    min-width: 74px;
    padding: 7px 10px;
  }

  #ligue .league-chips {
    flex: 1;
    gap: 5px;
  }

  #ligue .league-chips .chip {
    min-width: 53px;
    flex: 1;
    padding: 7px 6px;
  }

  #ligue .league-chips .chip--accent {
    min-width: 65px;
  }

  #ligue .league-rankings-heading {
    display: block;
    margin-top: 23px;
  }

  #ligue .league-rankings-heading h2 {
    font-size: 1.2rem;
  }

  #ligue .league-rankings-heading p {
    margin-top: 6px;
    text-align: left;
  }

  #ligue .league-boards {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }

  #ligue .league-boards > .glass-card {
    padding: 14px;
    border-radius: 17px !important;
  }

  #ligue .league-boards .table-v2 {
    display: table !important;
    min-width: 0 !important;
    table-layout: fixed;
    overflow: visible !important;
  }

  #ligue .league-boards .table-v2 th,
  #ligue .league-boards .table-v2 td {
    padding-right: 5px;
    padding-left: 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  #ligue .league-page-hero {
    padding: 18px 14px;
  }

  #ligue .league-page-hero__jump {
    right: 10px;
  }

  #ligue .league-series-count {
    display: none;
  }

  #ligue .league-card {
    padding: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ligue .league-steps .step.active {
    animation: none;
  }
}


#ligue .league-week-cards {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

#ligue .league-week-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  color: #e0e8f3;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 171, 203, .16);
  border-radius: 15px;
}

#ligue .league-week-card strong { display: block; font-size: .95rem; }
#ligue .league-week-card small { color: #8695ab; }
#ligue .league-week-card__dates { display: block; margin-top: 2px; font-size: .74rem; font-weight: 500; color: #a9b7cb; }

#ligue .league-extra-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
#ligue .league-extra-badge {
  display: inline-block;
  width: fit-content;
  padding: 1px 6px;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
}
#ligue .league-extra-badge--anticipation { color: #9fd0ff; background: rgba(80, 155, 255, .12); border-color: rgba(80, 155, 255, .3); }
#ligue .league-extra-badge--catchup { color: #f2d995; background: rgba(242, 217, 149, .1); border-color: rgba(242, 217, 149, .28); }
#ligue .league-week-card__tag { font-size: .68rem; font-weight: 800; white-space: nowrap; color: #f2d995; }
#ligue .league-week-card[data-kind="current"] { border-color: rgba(55, 201, 134, .3); }
#ligue .league-week-card[data-kind="current"] .league-week-card__tag { color: #bcebd2; }
#ligue .league-week-card:disabled { opacity: .5; cursor: not-allowed; }

#ligue .league-catchup-actions { margin-top: 12px; }

#lg_entry.league-picking .league-lane-panel,
#lg_entry.league-picking .league-summary,
#lg_entry.league-picking .stepper-dots,
#lg_entry.league-picking .league-progress-bar,
#lg_entry.league-picking .league-steps,
#lg_entry.league-picking .league-week-lock-hint {
  display: none !important;
}

#ligue .league-week-card .league-week-card__deadline,
#ligue .league-catchup-hint .league-week-card__deadline { display: block; margin-top: 4px; color: #f2d995; font-size: .72rem; }
#ligue .league-catchup-hint .league-week-card__deadline { margin-top: 0; }

#ligue .league-catchup-count:empty { display: none; }
#ligue .league-week-card > span:first-child { min-width: 0; }
#ligue .league-week-card__deadline { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  #ligue .league-week-card { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px; min-height: 48px; }
  #ligue .league-catchup-title { font-size: 16px; }
  #ligue .league-catchup-card { padding: 14px; }
}

#ligue .league-catchup-actions:has(#lg_catchup_cancel[hidden]) { display: none; }
#lg_catchup_cancel[hidden] { display: none !important; }

#lg_entry.league-picking .league-catchup-hint {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
