@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #172e70;
  background: #f4f5f9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c52a27;
  outline-offset: 5px;
}
.header {
  max-width: 1280px;
  margin: auto;
  padding: 28px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe3ed;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
}
.brand-mark {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -2px;
  transform: skew(-8deg);
}
.brand-mark span {
  color: #788650;
}
.brand-name {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1.3px;
  font-weight: 700;
}
.install {
  border: 1px solid #cfd6e4;
  border-radius: 6px;
  padding: 12px 17px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.install span {
  margin-left: 16px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 44px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px 0 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 15px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 5.6vw, 76px);
  letter-spacing: -1px;
  line-height: 0.98;
  margin-bottom: 0;
}
h1 span {
  color: #c52a27;
}
.season {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.season-number {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 90px;
  color: #dfe3ed;
  border-right: 1px solid #dfe3ed;
  padding-right: 20px;
  line-height: 1;
}
.season div span {
  display: block;
  margin-top: 10px;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  color: #617087;
}
.demo-note {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 12px 16px;
  background: #e8ebf3;
  border-left: 3px solid #c52a27;
  display: flex;
  gap: 15px;
  align-items: center;
}
.demo-note span {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
}
.nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #dfe3ed;
  margin: 24px 0 28px;
  overflow: auto;
}
.nav button {
  white-space: nowrap;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #617087;
  padding: 15px 0;
  font-size: 14px;
  font-weight: 600;
}
.nav button.active {
  color: #172e70;
  border-color: #172e70;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}
.match-feature {
  background: #172e70;
  color: #fff;
  padding: 28px 32px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 338px;
}
.match-feature:after {
  content: attr(data-week);
  position: absolute;
  right: -5px;
  bottom: -80px;
  font:
    320px "Barlow Condensed",
    Impact,
    sans-serif;
  color: #fff;
  opacity: 0.035;
  pointer-events: none;
}
.match-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.pill {
  background: #ffffff;
  color: #172e70;
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.versus {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 28px 0 20px;
  gap: 15px;
  z-index: 1;
}
.team-stack {
  text-align: center;
}
.crest {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 66px;
  clip-path: polygon(0 0, 100% 0, 100% 77%, 50% 100%, 0 77%);
  font:
    700 30px "Barlow Condensed",
    Impact,
    sans-serif;
  color: #172e70;
  background: var(--team);
  padding-bottom: 8px;
}
.team-stack h3 {
  font:
    600 30px "Barlow Condensed",
    Impact,
    sans-serif;
  margin: 12px 0 0;
}
.vs {
  font-size: 14px;
  letter-spacing: 2px;
  color: #a5b8ed;
}
.match-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #3a5090;
  padding-top: 18px;
  font-size: 14px;
  color: #d4defb;
  gap: 20px;
  z-index: 1;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  color: inherit;
  font-weight: 600;
  text-align: left;
}
.panel {
  border: 1px solid #dfe3ed;
  border-radius: 9px;
  background: #fff;
  padding: 24px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.section-head h2 {
  font:
    600 28px "Barlow Condensed",
    Impact,
    sans-serif;
  margin: 0;
  text-transform: uppercase;
}
.section-head .text-button {
  font-size: 13px;
  color: #c52a27;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: #6b7891;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 500;
  padding: 0 8px 13px;
}
td {
  padding: 14px 8px;
  border-top: 1px solid #edf0f5;
  white-space: nowrap;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:nth-child(n + 3),
th:nth-child(n + 3) {
  text-align: center;
}
.team-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.mini-crest {
  width: 24px;
  height: 26px;
  font-size: 12px;
  padding-bottom: 3px;
  flex-shrink: 0;
}
.rank {
  color: #8a94a7;
}
.record {
  font-weight: 700;
}
.lower {
  margin-top: 28px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.game {
  border: 1px solid #dfe3ed;
  border-radius: 7px;
  background: #fff;
  padding: 20px;
}
.game-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #6b7891;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 16px;
}
.score {
  font-size: 20px;
  font-weight: 700;
}
.muted {
  color: #617087;
  font-size: 14px;
  line-height: 1.6;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.filters button {
  background: transparent;
  border: 1px solid #cfd6e4;
  border-radius: 20px;
  padding: 8px 17px;
  font-size: 14px;
}
.filters button.selected {
  background: #172e70;
  color: white;
  border-color: #172e70;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  border: 1px solid #dfe3ed;
  border-radius: 8px;
  background: white;
  padding: 26px;
}
.team-card h2 {
  font:
    600 32px "Barlow Condensed",
    Impact,
    sans-serif;
  margin: 20px 0 6px;
}
.team-card p {
  font-size: 14px;
  color: #617087;
  line-height: 1.6;
}
.team-card .record {
  border-top: 1px solid #edf0f5;
  padding-top: 18px;
  margin-top: 20px;
  font-size: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  margin-top: 38px;
  border-top: 1px solid #dfe3ed;
  font-size: 12px;
  color: #6b7891;
}
.footer-brand {
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 36px;
  max-width: 480px;
  width: calc(100% - 32px);
  color: #172e70;
}
dialog::backdrop {
  background: rgba(12, 24, 62, 0.72);
}
dialog h2 {
  font:
    600 40px "Barlow Condensed",
    Impact,
    sans-serif;
  line-height: 1.1;
}
dialog p {
  line-height: 1.6;
}
dialog .eyebrow {
  font-size: 12px;
  padding-right: 12px;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 30px;
  border: 0;
  background: none;
}
.solid {
  background: #172e70;
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 5px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 9;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 900px) {
  h1 br {
    display: none;
  }
  h1 span {
    display: block;
  }
}
@media (max-width: 900px) {
  .season {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading {
    padding-top: 30px;
  }
}
@media (max-width: 560px) {
  .header {
    padding: 20px;
  }
  .brand-name {
    font-size: 10px;
  }
  .brand-mark {
    font-size: 34px;
  }
  main {
    padding: 0 20px;
  }
  .install {
    padding: 10px 12px;
  }
  .install span {
    margin-left: 5px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .heading {
    padding: 28px 0;
  }
  .demo-note {
    display: block;
    line-height: 1.5;
  }
  .demo-note span {
    display: block;
    margin-top: 4px;
  }
  .nav {
    gap: 24px;
    margin-top: 15px;
  }
  .results-grid,
  .teams-grid {
    grid-template-columns: 1fr;
  }
  .match-feature {
    padding: 24px 20px;
    min-height: 320px;
  }
  .match-bottom {
    font-size: 12px;
  }
  .panel {
    padding: 20px 16px;
  }
  .team-stack h3 {
    font-size: 28px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
  .section-head h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition: opacity 0.15s;
  }
  button:hover,
  a:hover {
    opacity: 0.75;
  }
}

.brand-emblem {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.header {
  background: #fff;
  padding-top: 18px;
  padding-bottom: 18px;
}
.heading {
  padding-top: 28px;
  padding-bottom: 20px;
}
.heading h1 {
  font-size: clamp(44px, 5vw, 64px);
}
.demo-note {
  padding-top: 9px;
  padding-bottom: 9px;
}
.nav {
  margin-top: 14px;
  margin-bottom: 22px;
}
.nav button {
  padding-top: 12px;
  padding-bottom: 12px;
}
.heading .eyebrow {
  color: #c52a27;
}
.nav button.active {
  border-color: #c52a27;
}
.brand-mark {
  display: none;
}

.team-logo {
  width: 64px;
  height: 66px;
  object-fit: contain;
}
.team-stack .team-logo {
  width: 108px;
  height: 108px;
}
.team-card .team-logo {
  width: 96px;
  height: 96px;
}
.public-player-photo,
.public-player-photo.fallback {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  object-fit: cover;
  color: #172e70;
  background: #e8ebf3;
  font-weight: 800;
}
.player-team-line,
.player-team-line .team-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.player-team-line > span + span::before {
  content: "·";
  margin-right: 7px;
}
.player-team-line .small-logo,
.player-team-line .mini-crest {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.unassigned-label {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8ebf3;
}
.small-logo {
  width: 26px;
  height: 26px;
}
.draft-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
  gap: 28px;
  align-items: start;
}
.draft-intro {
  background: #172e70;
  color: #fff;
  border-radius: 10px;
  padding: 32px;
}
.draft-intro h2 {
  font:
    600 42px/0.95 "Barlow Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
  margin: 12px 0 18px;
}
.draft-intro p:last-child {
  color: #cad3ef;
  line-height: 1.5;
}
.draft-list {
  display: grid;
  gap: 8px;
}
.draft-player {
  background: #fff;
  border: 1px solid #dfe3ed;
  border-left: 5px solid #c52a27;
  border-radius: 7px;
}
.player-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 34px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dfe3ed;
}
.profile-hero .public-player-photo {
  width: 100px;
  height: 100px;
  flex-basis: 100px;
}
.profile-hero h2 {
  margin: 0 0 8px;
  font:
    700 44px/1 "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
.profile-details,
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.profile-details div,
.profile-stats span {
  padding: 12px;
  border-radius: 7px;
  background: #f4f5f9;
}
.profile-details dt,
.profile-stats span {
  color: #617087;
  font-size: 11px;
  text-transform: uppercase;
}
.profile-details dd {
  margin: 5px 0 0;
  color: #172e70;
  font-weight: 800;
}
.profile-bio p {
  color: #617087;
  line-height: 1.6;
}
.profile-stats strong {
  display: block;
  margin-bottom: 4px;
  color: #172e70;
  font-size: 24px;
}
@media (max-width: 700px) {
  .draft-board {
    grid-template-columns: 1fr;
  }
  .team-stack .team-logo {
    width: 82px;
    height: 82px;
  }
}
.manager-link {
  margin-left: auto;
  margin-right: 20px;
  font-size: 14px;
  font-weight: 600;
}
.header {
  gap: 12px;
}
@media (max-width: 560px) {
  .manager-link {
    font-size: 12px;
    margin-right: 0;
  }
  .header .install {
    font-size: 12px;
  }
  .header .brand-name {
    display: none;
  }
}

/* Shared utilities */
[hidden] {
  display: none !important;
}
.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 7px;
  background: #e8ebf3;
  color: #3b4a6b;
  font-size: 14px;
}
.list-label {
  margin: 0 0 10px;
  color: #6b7891;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Tabs stay reachable while scrolling long views */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f4f5f9;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav button.active {
  font-weight: 700;
}

/* Games */
.game-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: #172e70;
  color: #fff;
  letter-spacing: 0.8px;
  font-size: 11px;
}
.game.upcoming .game-status {
  background: #e8ebf3;
  color: #172e70;
}
.game-row.lost {
  color: #8a94a7;
}
.game-row.lost .score {
  font-weight: 500;
}
.game-row.lost .team-logo {
  opacity: 0.6;
}
.game-details {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
  color: #617087;
  font-size: 13px;
}
.week-group + .week-group {
  margin-top: 26px;
}
.week-label {
  margin: 0 0 12px;
  font:
    700 20px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.also-week {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #d4defb;
  font-size: 13px;
  text-align: center;
}
.section-head .text-button,
.match-bottom .text-button {
  white-space: nowrap;
}

/* Standings */
table.standings caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 14px;
  color: #617087;
  font-size: 13px;
}
.diff.up {
  color: #1f7a45;
  font-weight: 700;
}
.diff.down {
  color: #c52a27;
  font-weight: 700;
}

/* Player links (tables, rosters, draft) */
.player-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.player-link .public-player-photo {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 14px;
}
.player-link strong {
  display: block;
  font-weight: 700;
}
.player-link small {
  display: block;
  color: #6b7891;
  font-size: 12px;
}
.player-link:hover strong {
  color: #c52a27;
  text-decoration: underline;
}

/* Player stats table */
.stats-table-wrap {
  border: 1px solid #dfe3ed;
  border-radius: 9px;
  background: #fff;
}
.stats-table th,
.stats-table td {
  padding: 10px 12px;
}
.stats-table thead th {
  padding-top: 14px;
  white-space: nowrap;
}
.stats-table thead th button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.stats-table thead th button.sorted {
  color: #172e70;
  font-weight: 700;
}
.stats-table thead th button.sorted::after {
  content: " ↓";
}
.stats-table tbody th {
  font-weight: inherit;
  border-top: 1px solid #edf0f5;
}
.stats-table th:first-child,
.stats-table td:first-child {
  padding-left: 16px;
}
.stats-table td:nth-child(2) {
  text-align: left;
}
.stats-table td {
  font-variant-numeric: tabular-nums;
}
.stats-table td.zero {
  color: #b3bbcb;
}
.stats-table td.sorted {
  font-weight: 700;
  background: #f7f8fb;
}
.stats-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 170px;
  background: #fff;
}

/* Teams */
.team-card {
  border-top: 5px solid var(--team);
}
.team-record {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}
.team-record dt {
  color: #6b7891;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.team-record dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
}
.team-roster,
.drafted-team ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Draft */
.draft-list {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-bottom: 26px;
}
.draft-player {
  display: block;
  padding: 12px 14px;
  border-left-color: #c52a27;
}
.draft-player .player-link strong {
  font:
    600 20px "Barlow Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
}
.drafted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.drafted-team {
  padding: 16px;
  border: 1px solid #dfe3ed;
  border-top: 4px solid var(--team);
  border-radius: 8px;
  background: #fff;
}
.drafted-team header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.drafted-team .count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e8ebf3;
  font-size: 13px;
  font-weight: 800;
}
.drafted-team .muted {
  margin: 0;
}

/* Player profile dialog */
.profile-details,
.profile-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-stats span,
.profile-details dt {
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .player-dialog {
    padding: 28px 18px;
  }
  .profile-hero .public-player-photo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .profile-hero h2 {
    font-size: 36px;
  }
  .profile-details,
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .draft-intro {
    padding: 24px;
  }
  .draft-intro h2 {
    font-size: 34px;
  }
}
.stats-table tbody th {
  color: #172e70;
  font-size: 14px;
  letter-spacing: 0;
}
@media (max-width: 560px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .filters button {
    flex: 0 0 auto;
  }
  .stats-table tbody th {
    min-width: 130px;
  }
  .stats-table .player-link small {
    display: none;
  }
}
@media (max-width: 560px) {
  .stats-table .team-name {
    display: none;
  }
}
@media (max-width: 560px) {
  .stats-table th,
  .stats-table td {
    padding: 10px 7px;
  }
  .stats-table th:first-child {
    padding-left: 12px;
  }
  .stats-table tbody th {
    min-width: 118px;
  }
  .stats-table .player-link {
    gap: 8px;
  }
  .stats-table .player-link .public-player-photo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
.close {
  border-radius: 6px;
  line-height: 1;
  padding: 4px 10px;
}
.close:focus-visible {
  outline-offset: 2px;
}

/* Phones: keep the headline short so league content shows on the first screen. */
@media (max-width: 560px) {
  .heading {
    padding: 18px 0 4px;
  }
  .heading .eyebrow {
    margin-bottom: 8px;
  }
  .heading h1 {
    font-size: 34px;
    line-height: 1;
  }
  .nav {
    margin-top: 6px;
    margin-bottom: 18px;
  }
  .match-feature {
    min-height: 0;
    padding: 20px 18px;
  }
  .versus {
    padding: 14px 0 12px;
  }
  .team-stack .team-logo {
    width: 72px;
    height: 72px;
  }
  .team-stack h3 {
    font-size: 24px;
  }
}
@media (max-width: 560px) {
  .nav {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 32px;
  }
}

/* History */
.history-list {
  display: grid;
  gap: 12px;
}
.history-entry {
  --kind: #172e70;
  padding: 16px 18px;
  border: 1px solid #dfe3ed;
  border-left: 5px solid var(--kind);
  border-radius: 8px;
  background: #fff;
}
.history-entry.kind-season {
  --kind: #e3a82b;
}
.history-entry.kind-award {
  --kind: #c52a27;
}
.history-entry.kind-trade {
  --kind: #3b6fd8;
}
.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #6b7891;
  font-size: 12px;
}
.history-kind {
  color: var(--kind);
  font-weight: 800;
  letter-spacing: 1.2px;
}
.history-entry.kind-season .history-kind {
  color: #9a6b00;
}
.history-entry h3 {
  margin: 0 0 6px;
  font:
    700 22px "Barlow Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
}
.history-entry .muted {
  margin: 0 0 10px;
}
.trade-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}
.trade-path .arrow {
  color: #6b7891;
  font-weight: 700;
}
.history-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.history-who .player-link {
  width: auto;
}
.history-empty h2 {
  font:
    700 28px "Barlow Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
}
.team-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: #172e70;
  font-size: 13px;
  font-weight: 600;
}
.team-titles span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbefd2;
  color: #7a5400;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.profile-history h3 {
  margin: 0 0 10px;
}
.profile-history .history-entry h3 {
  font-size: 18px;
}

/* Cartoon avatars fill their circle */
.public-player-photo.avatar,
.player-photo.avatar {
  display: block;
  padding: 0;
  overflow: hidden;
  background: none;
}
.avatar-art {
  display: block;
  width: 100%;
  height: 100%;
}

.team-card .home-field {
  margin: -2px 0 0;
  font-size: 13px;
}
.team-card .home-field strong {
  color: #172e70;
}

/* League emblem with the Utilava byline under the league name */
.brand-lockup {
  display: grid;
  justify-items: start;
}
.byline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -12px 0 0 61px;
  color: #6b7891;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.byline img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.byline:hover {
  color: #172e70;
  text-decoration: underline;
}
@media (max-width: 560px) {
  .byline {
    margin: 2px 0 0;
    font-size: 10px;
  }
}

/* Room for full player names */
.draft-list {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 1fr;
}
.draft-player .player-link {
  height: 100%;
}
@media (max-width: 1100px) {
  .draft-board {
    grid-template-columns: 1fr;
  }
  .draft-intro h2 {
    font-size: 34px;
  }
}
@media (min-width: 561px) {
  .stats-table .player-link strong {
    white-space: nowrap;
  }
}

.name-short {
  display: none;
}
@media (max-width: 560px) {
  .stats-table .name-full {
    display: none;
  }
  .stats-table .name-short {
    display: inline;
    white-space: nowrap;
  }
}

/* Home and away jerseys on team cards */
.team-jerseys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px 10px 10px;
  border-radius: 8px;
  background: #f4f5f9;
}
.team-jerseys figure {
  margin: 0;
  text-align: center;
}
.jersey-art,
.uniform-art {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
}
.team-jerseys figcaption {
  margin-top: 6px;
  color: #6b7891;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Overview activity feed */
.activity-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #dfe3ed;
  border-radius: 9px;
  background: #fff;
}
.activity-item {
  --kind: #172e70;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-left: 4px solid var(--kind);
}
.activity-item + .activity-item {
  border-top: 1px solid #edf0f5;
}
.activity-item.kind-draft {
  --kind: #2e7d46;
}
.activity-item.kind-trade {
  --kind: #3b6fd8;
}
.activity-item.kind-release {
  --kind: #d97706;
}
.activity-item.kind-result {
  --kind: #c52a27;
}
.activity-kind {
  color: var(--kind);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.activity-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.activity-item time {
  color: #6b7891;
  font-size: 12px;
  white-space: nowrap;
}
.inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: #172e70;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #cfd6e4;
  text-underline-offset: 3px;
}
.inline-link:hover {
  color: #c52a27;
}
.activity-more {
  margin-top: 12px;
  color: #c52a27;
}
@media (max-width: 640px) {
  .activity-item {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
  }
  .activity-item p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* A team's draft picks; ones acquired in trades stand out */
.team-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-picks li {
  padding: 4px 10px;
  border: 1px solid #d9dfeb;
  border-radius: 999px;
  background: #f5f7fb;
  color: #172e70;
  font-size: 12px;
  font-weight: 700;
}
.team-picks li.acquired {
  border-color: #e7b04b;
  background: #fff6e3;
  color: #7a4f00;
}
.list-label.picks-label {
  margin-top: 18px;
}

/* Manage league and Sign in sit together; only the first pushes right. */
.manager-link + .manager-link {
  margin-left: 0;
}
@media (max-width: 560px) {
  .manager-link,
  .header .install {
    white-space: nowrap;
  }
  .manager-link {
    margin-right: 0;
  }
  .header .install {
    padding: 8px 10px;
  }
  .header {
    gap: 10px;
  }
  .brand-lockup .byline {
    white-space: nowrap;
  }
}

/* Rosters: pick a team, see its players' size and age */
.roster-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.roster-picker button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid #dfe3ed;
  border-radius: 999px;
  background: #fff;
  color: #172e70;
  font:
    700 14px "DM Sans",
    Arial,
    sans-serif;
  cursor: pointer;
}
.roster-picker button.selected {
  border-color: #172e70;
  background: #172e70;
  color: #fff;
}
.roster-sheet {
  border-top: 5px solid var(--team-color);
}
.roster-sheet-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.roster-sheet-head h2 {
  margin: 0 0 4px;
}
.roster-sheet-head p {
  margin: 0;
}
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.roster-table th,
.roster-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e8ebf2;
  text-align: left;
  white-space: nowrap;
}
.roster-table thead th {
  color: #617087;
  font-size: 11px;
  letter-spacing: 1px;
}
.roster-table .jersey {
  color: #172e70;
  font:
    800 18px "Barlow Condensed",
    sans-serif;
}
.profile-size {
  margin-bottom: 10px;
}
.roster-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-align: left;
}
.roster-player img,
.roster-player .player-avatar,
.roster-player > :first-child {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}
/* Age and size sit in one row on wider screens. */
@media (min-width: 560px) {
  .profile-details.profile-size {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Stats & Standings: power rankings and league leaders */
.form {
  display: inline-flex;
  gap: 4px;
}
.form span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
  font:
    800 12px "DM Sans",
    sans-serif;
}
.form-W {
  background: #2e9d57;
}
.form-L {
  background: #c52a27;
}
.form-T {
  background: #8a94a7;
}
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.leader-board {
  padding: 14px 16px;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  background: #fff;
}
.leader-board h3 {
  margin: 0 0 8px;
  font:
    800 18px "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.leader-board ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: leader;
}
.leader-board li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  counter-increment: leader;
}
.leader-board li::before {
  content: counter(leader);
  color: #8a94a7;
  font-weight: 800;
}
.leader-name {
  min-width: 0;
}
.leader-value {
  color: #172e70;
  font:
    800 20px "Barlow Condensed",
    sans-serif;
}
.leader-board li:first-child .leader-value {
  color: #c52a27;
}

/* League Info */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.info-grid .panel {
  margin: 0;
}
.info-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}
.info-facts dt {
  color: #617087;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.info-facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.field-list,
.info-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.field-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.field-list li div,
.info-links li {
  display: grid;
  gap: 2px;
}
.info-links a {
  font-weight: 800;
}
.section-title {
  margin: 8px 0 16px;
}
.drafted {
  margin: 6px 0 0;
  color: #617087;
  font-size: 14px;
}
.drafted strong {
  color: #172e70;
}
.text-link {
  color: #c52a27;
  font-weight: 700;
  white-space: nowrap;
}

/* Player profile stats: per game, season, career, career highs */
.profile-section {
  margin-top: 18px;
}
.profile-tabs {
  margin-bottom: 10px;
}
.profile-section > .muted {
  margin: 0 0 10px;
  font-size: 13px;
}
.game-log {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.game-log th,
.game-log td {
  padding: 7px 6px;
  border-bottom: 1px solid #e8ebf2;
  text-align: right;
  white-space: nowrap;
}
.game-log th:first-child {
  text-align: left;
}
.game-log thead th {
  color: #617087;
  font-size: 10px;
  letter-spacing: 0.8px;
}
.game-log .zero {
  color: #b3bac8;
}
.career-highs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.high {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  background: #f3f5fa;
}
.high strong {
  color: #172e70;
  font:
    800 26px "Barlow Condensed",
    sans-serif;
}
.high span {
  color: #172e70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.high small {
  color: #617087;
  font-size: 12px;
}
.leader-modes {
  margin-bottom: 12px;
}
.leader-value small {
  display: block;
  color: #8a94a7;
  font:
    600 11px "DM Sans",
    sans-serif;
  text-align: right;
}

/* Growth charts on player profiles */
.growth-kinds,
.growth-metrics {
  margin-bottom: 8px;
}
.growth-chart {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-top: 6px;
  overflow: visible;
}
.growth-chart .axis {
  stroke: #cdd5e4;
  stroke-width: 1.5;
}
.growth-chart .grid {
  stroke: #eef1f6;
  stroke-width: 1;
}
.growth-chart .line {
  fill: none;
  stroke: #172e70;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.growth-chart .dot {
  fill: #c52a27;
  stroke: #fff;
  stroke-width: 2;
}
.growth-chart .value {
  fill: #172e70;
  font:
    800 14px "Barlow Condensed",
    sans-serif;
  text-anchor: middle;
}
.growth-chart .season-label {
  fill: #617087;
  font:
    700 12px "DM Sans",
    sans-serif;
  text-anchor: middle;
}
.growth-note {
  margin: 4px 0 0;
  font-size: 13px;
}

/* Award History: on profiles and in League history */
.award-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.award-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 4px solid #c9a227;
  border-radius: 8px;
  background: #fff9e8;
}
.award-list strong {
  color: #172e70;
  font:
    800 18px "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
.award-list span {
  color: #617087;
  font-size: 13px;
  font-weight: 700;
}
.award-picker {
  margin-bottom: 16px;
}
.award-seasons {
  display: grid;
  gap: 12px;
}
.award-season {
  padding: 14px 16px;
  border: 1px solid #e4e8f0;
  border-left: 4px solid #c9a227;
  border-radius: 10px;
  background: #fff;
}
.award-season h3 {
  margin: 0 0 8px;
  font:
    800 20px "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
