.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.14em;
  flex: none;
}
.btn .ui-icon, .text-link .ui-icon { width: 16px; height: 16px; }
.icon-button .ui-icon { width: 20px; height: 20px; }
.favorite-nav > span:first-child .ui-icon { width: 23px; height: 23px; }
.pick-star .ui-icon, .wl-star .ui-icon { width: 21px; height: 21px; }
.wl-empty-symbol .ui-icon { width: 26px; height: 26px; }
.search-field .ui-icon { width: 18px; height: 18px; }

.season-launch {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--panel);
}
.season-launch > div { display: grid; gap: 6px; }
.season-launch .micro { color: var(--muted); }
.season-launch strong { font: 700 31px/1.1 var(--display); }
.season-launch .btn { margin-left: auto; }
.hero-format-note { color: var(--muted); font-size: 12px; max-width: 225px; }
.hero-bottom { padding: 25px 0; }
.hero-bottom h2 { margin: 8px 0 10px; }

.league-home {
  padding: 27px;
  border: 1px solid #34505e;
  background: linear-gradient(125deg, #152b37, #101a23 80%);
  margin: 0 0 25px;
}
.league-home .section-head { margin-bottom: 24px; }
.league-home .section-head p { margin-top: 9px; color: var(--muted); }
.league-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.league-path li { position: relative; display: grid; align-content: start; gap: 11px; min-width: 0; padding: 20px 24px; border: 1px solid #2f4858; border-left: 0; }
.league-path li:first-child { border-left: 1px solid #2f4858; }
.league-path li:not(:last-child)::after { content: ''; position: absolute; top: 45px; right: -5px; z-index: 1; width: 9px; height: 9px; background: #142935; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
.league-path strong { color: var(--accent); font: 700 clamp(30px, 3.3vw, 50px)/1 'Barlow Condensed', Arial, sans-serif; white-space: nowrap; }
.league-path strong small { font: 600 18px/1 var(--display); }
.league-path li > span { font-size: 10px; line-height: 1.5; letter-spacing: 1px; max-width: 190px; }
.league-home-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: 12px; color: var(--muted); }
.league-home-note p { max-width: 740px; }
.league-home-note a { flex: none; }
.league-home-live { padding-top: 23px; }
.league-home-live .wl-round-card { margin-bottom: 0; }
.league-latest-winner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; padding-bottom: 20px; }
.league-latest-winner strong { font-size: 20px; }
.league-latest-winner a { margin-left: auto; }
.league-home-ranking { margin-top: 24px; }
.league-home-ranking .section-head { margin-bottom: 12px; }
.league-home-ranking .wl-extra { display: none; }

.partners-section { padding: 52px var(--gutter) 58px; border-top: 1px solid var(--line); background: linear-gradient(125deg, #101f29, #0c141c); scroll-margin-top: 25px; }
.partners-intro { display: flex; justify-content: space-between; align-items: center; gap: 36px; margin-bottom: 28px; }
.partners-intro h2 { margin-top: 13px; font-size: clamp(36px, 4vw, 58px); }
.partners-intro p { max-width: 610px; margin-top: 17px; color: var(--muted); }
.partners-intro > a { flex: none; }
.partner-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.partner-options article { padding: 23px; border: 1px solid #2a4252; background: #101c25; }
.partner-options h3 { font-size: 24px; margin: 15px 0 12px; }
.partner-options p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.partner-contact-note { color: var(--muted); margin-top: 19px; font-size: 12px; }

.season-selector { display: flex; align-items: center; gap: 23px; margin-bottom: 25px; }
.season-selector > .micro { color: var(--muted); }
.season-selector > div { display: flex; flex-wrap: wrap; gap: 7px; }
.season-selector a { display: grid; gap: 6px; padding: 12px 18px; min-width: 114px; min-height: 59px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.season-selector a > span { font-size: 12px; font-weight: 600; }
.season-selector a > small { font-size: 8px; letter-spacing: .5px; }
.season-selector a.active { border-color: #7ce8f080; color: var(--accent); background: #17303b; }
.season-selector a:hover { border-color: var(--accent); }
.season-preview-facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--panel); margin-bottom: 25px; }
.season-preview-facts > div { display: grid; gap: 12px; padding: 25px; }
.season-preview-facts > div + div { border-left: 1px solid var(--line); }
.season-preview-facts .micro { color: var(--muted); }
.season-preview-facts strong { color: var(--accent); font: 700 48px/1.1 var(--display); }
.season-preview-facts .preview-status { font-size: 28px; align-self: end; }
.season-preview-next { padding: 25px; background: var(--panel); border: 1px solid var(--line); }
.season-preview-next p { color: var(--muted); max-width: 780px; margin: 15px 0 20px; }
.historic-season { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: start; padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.historic-season > .legacy-crop { width: 135px; height: 135px; margin: 10px auto; }
.historic-season h2 { margin: 14px 0 10px; }
.historic-season p { margin-bottom: 18px; }
.historic-final { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 22px 0; padding: 20px; background: #0c1720; }
.historic-final strong { color: var(--accent); font-size: 25px; }

.page { padding-top: 30px; }
html[data-language] .page-head h1 { font-size: clamp(36px, 4vw, 58px); line-height: 1.1; }
.page-head > div:last-child { margin: 14px 0 23px; gap: 28px; }
.page-head p { font-size: 13px; line-height: 1.7; }
.archive-notice { margin-bottom: 18px; }
.filterbar { margin: 18px 0; }
.page .match-row { padding: 14px 18px; min-height: 84px; }
.team-profile { padding-top: 14px; padding-bottom: 25px; }
html[data-language] .team-profile h1 { font-size: clamp(34px, 4vw, 57px); }
.team-stats { margin-bottom: 30px; }
.team-stats > div { padding: 21px 25px; }
.team-stats strong { font-size: 47px; }
.team-page .section-head { margin-bottom: 17px; }
footer { column-gap: 25px; }

@media (max-width: 900px) {
  .season-launch { gap: 23px; }
  .season-launch strong { font-size: 27px; }
  .league-home { padding: 23px; }
  .league-path li { padding: 17px 15px; }
  .league-path strong { font-size: 37px; }
  .partners-intro { align-items: flex-start; flex-direction: column; gap: 23px; }
  .partner-options h3 { font-size: 22px; }
}

@media (max-width: 600px) {
  .season-launch { display: grid; grid-template-columns: 1fr 1fr; padding: 17px; gap: 18px 13px; }
  .season-launch .micro { font-size: 8px; }
  .season-launch strong { font-size: 27px; }
  .season-launch .btn { grid-column: 1 / -1; margin-left: 0; justify-content: space-between; }
  .hero-bottom { gap: 12px; padding: 22px 0; }
  .hero-format-note { max-width: none; }
  .league-home { padding: 20px; margin-top: 0; }
  .league-home .section-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .league-home .section-head p { font-size: 12px; }
  .league-home .section-head .btn { width: 100%; justify-content: space-between; }
  .league-path { grid-template-columns: 1fr 1fr; }
  .league-path li { padding: 19px 14px; gap: 10px; min-height: 127px; }
  .league-path li:nth-child(3) { border-left: 1px solid #2f4858; border-top: 0; }
  .league-path li:nth-child(4) { border-top: 0; }
  .league-path li:nth-child(2)::after { display: none; }
  .league-path strong { font-size: 36px; }
  .league-path strong small { font-size: 15px; }
  .league-path li > span { font-size: 9px; letter-spacing: .4px; }
  .league-home-note { align-items: flex-start; flex-direction: column; gap: 13px; }
  .league-latest-winner { align-items: flex-start; flex-direction: column; }
  .league-latest-winner a { margin-left: 0; }
  .league-home-live .wl-round-card { padding: 17px 14px; }
  .league-home-live .wl-round-prize { grid-column: 2; }
  .partners-section { padding-top: 35px; padding-bottom: 35px; }
  .partners-intro h2 { font-size: 36px; }
  .partners-intro p { font-size: 13px; }
  .partners-intro > a { width: 100%; justify-content: space-between; }
  .partner-options { grid-template-columns: 1fr; gap: 12px; }
  .partner-options article { padding: 20px; }
  .partner-options h3 { font-size: 26px; }
  .season-selector { display: block; margin-bottom: 23px; }
  .season-selector > .micro { display: block; margin-bottom: 10px; }
  .season-selector > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .season-selector a { padding: 10px 7px; min-width: 0; min-height: 60px; gap: 6px; }
  .season-selector a > span { font-size: 10px; }
  .season-selector a > small { font-size: 7px; letter-spacing: 0; line-height: 1.45; }
  .season-preview-facts { grid-template-columns: 1fr; }
  .season-preview-facts > div { padding: 20px; }
  .season-preview-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .season-preview-facts strong { font-size: 39px; }
  .season-preview-facts .preview-status { font-size: 25px; }
  .season-preview-next { padding: 20px; }
  .season-preview-next h2 { font-size: 27px; }
  .season-preview-next .buttons { align-items: flex-start; flex-direction: column; gap: 17px; }
  .historic-season { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
  .historic-season > .legacy-crop { margin: 0; width: 100px; height: 100px; }
  .historic-final { flex-direction: column; align-items: flex-start; }
  .page { padding-top: 25px; }
  html[data-language] .page-head h1 { font-size: clamp(32px, 8.6vw, 45px); line-height: 1.15; }
  .page-head > div:last-child { gap: 13px; margin-bottom: 20px; }
  .page-head p { font-size: 12px; }
  .filterbar { margin-top: 15px; }
  .page .match-row { padding: 13px 6px; min-height: 83px; }
  .team-stats > div { padding: 19px; }
  .team-stats strong { font-size: 40px; }
  html[data-language] .team-profile h1 { font-size: clamp(30px, 7.8vw, 43px); }
}

@media(max-width:1100px){.site-header nav.open{max-height:calc(100dvh - 78px);overflow-y:auto;overscroll-behavior:contain;}}

/* Keep following a team separate from opening its results. */
#team-picker .dialog-bar { position: sticky; top: 0; z-index: 1; }
#team-picker .picker-team { padding: 0; gap: 0; min-width: 0; }
.picker-team-link { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; min-height: 72px; padding: 12px; }
.picker-team-link > img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.picker-team-link > span { min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.picker-team-link > span > span { overflow-wrap: anywhere; }
.picker-team-link:hover { color: var(--accent); }
#team-picker .pick-star { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 10px; margin: 5px; border: 1px solid transparent; background: transparent; border-radius: 2px; }
#team-picker .pick-star:hover { border-color: var(--accent); background: #7ce8f00a; color: var(--accent); }
#team-picker .picker-team.selected { background: #142b35; }
#team-picker .picker-content > p:last-child { font-size: 10px; line-height: 1.7; letter-spacing: .4px; }
.favorite-home { margin-bottom: 25px; }
.favorite-home .favorite-module { margin-top: 0; }
.favorite-home-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.favorite-remove { min-width: 44px; min-height: 44px; border: 1px solid #3d6170; color: var(--accent); }
.favorite-remove:hover { background: #7ce8f012; border-color: var(--accent); }
.favorite-match { padding: 18px 24px 0; border: 1px solid var(--line); border-top: 0; background: #0f1a23; }
.favorite-match-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 13px; }
.favorite-match-heading > span:last-child { color: var(--muted); }
.favorite-match .match-row { border-bottom: 0; min-height: 90px; }
.favorite-match-empty { padding: 20px 24px; border: 1px solid var(--line); border-top: 0; color: var(--muted); font-size: 13px; }
@media(max-width:900px){
  .favorite-home .favorite-module { flex-wrap: wrap; }
  .favorite-home-actions { margin-left: auto; }
}
@media(max-width:600px){
  .picker-team-link { min-height: 67px; padding: 11px; gap: 10px; }
  .picker-team-link > span { font-size: 12px; }
  .picker-team-link > img { width: 27px; height: 27px; }
  .favorite-home .favorite-home-actions { grid-column: 1 / -1; width: 100%; margin-left: 0; justify-content: flex-start; gap: 10px; }
  .favorite-home-actions .btn { flex: 1; justify-content: space-between; }
  .favorite-home-actions .text-button { flex: 1; }
  .favorite-match { padding: 15px 14px 0; }
  .favorite-match-heading .micro { font-size: 8px; }
  .favorite-match .match-row { padding-left: 0; padding-right: 0; }
}
.favorite-home .favorite-home-actions .text-button { display: inline-flex; align-items: center; justify-content: center; }

/* Normalized champion marks: transparent, white, and sized consistently. */
.archive-team-mark { position: relative; display: grid; place-items: center; width: 80px; height: 80px; flex: none; z-index: 1; }
.archive-team-mark > img { display: block; width: 80px; height: 80px; object-fit: contain; }
@media(max-width:600px){.season-selector > div{grid-template-columns:repeat(2,minmax(0,1fr));}}

@media(max-width:600px){.archive-team-mark,.archive-team-mark > img{width:76px;height:76px;}}

/* Keep the complete wordmark inside narrow heroes, including fallback fonts. */
@media(max-width:480px){
 .mobile-hero-copy{left:18px;right:18px;min-width:0}
 .mobile-hero-copy h1{font-size:clamp(44px,15vw,64px)}
}
