:root {
  color-scheme: light;
  --ink: #121a17;
  --muted: #66716d;
  --line: #d7ddd6;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --field: #0f5949;
  --field-dark: #09382f;
  --sun: #d49b2f;
  --clay: #ab5241;
  --sky: #d9e9ef;
  --shadow: 0 18px 48px rgba(18, 26, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--field);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 18px;
}

button:hover {
  background: var(--field-dark);
}

.fan-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 42px;
}

.hero {
  min-height: min(78vh, 760px);
  background:
    linear-gradient(90deg, rgba(8, 13, 12, 0.86), rgba(8, 13, 12, 0.5) 48%, rgba(8, 13, 12, 0.16)),
    linear-gradient(180deg, rgba(8, 13, 12, 0.08), rgba(8, 13, 12, 0.62)),
    url("/assets/hbcu-football-hero.png") center / cover no-repeat;
  color: #fff;
}

.team-hero {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(8, 13, 12, 0.9), rgba(8, 13, 12, 0.58)),
    url("/assets/hbcu-football-hero.png") center / cover no-repeat;
  color: #fff;
  padding: 24px max(16px, calc((100vw - 1180px) / 2));
}

.hero-overlay {
  display: grid;
  align-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: min(78vh, 760px);
  margin: 0 auto;
  padding: 24px 0 74px;
}

.fan-header,
.fan-grid,
.provider-row {
  display: grid;
  gap: 16px;
}

.fan-header {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.home-link {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
  padding: 11px 16px;
  text-decoration: none;
}

.home-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

.brand-logo {
  width: clamp(110px, 14vw, 168px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.hero-copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

p,
h1,
h2 {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.hero-copy p,
.eyebrow {
  color: var(--field);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy p {
  color: var(--sun);
}

.hero-copy span {
  max-width: 620px;
  color: #f7efe2;
  font-size: clamp(1rem, 2vw, 1.32rem);
  line-height: 1.45;
}

.team-profile-head {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 90px;
}

.team-profile-head h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.team-profile-head span {
  color: #f7efe2;
  font-size: 1.1rem;
}

.team-profile-mark {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--field);
  font-size: 1.4rem;
  font-weight: 900;
}

.team-profile-mark img {
  max-width: 104px;
  max-height: 104px;
  object-fit: contain;
}

.team-page-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel,
.team-ticker,
.game-spotlight {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mini-card span,
.game-card span,
.game-card time,
.provider-card small,
.ticker-empty {
  color: var(--muted);
}

.team-ticker {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 16px;
}

.game-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  min-height: 174px;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 24px;
}

.game-spotlight h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.game-spotlight p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.spotlight-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spotlight-scoreboard article {
  display: grid;
  align-content: space-between;
  min-height: 126px;
  border-radius: 7px;
  background: #f7f5ee;
  padding: 16px;
}

.spotlight-scoreboard span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight-scoreboard strong {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.1;
}

.fan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  min-height: 260px;
  padding: 18px;
}

.wide {
  grid-column: span 2;
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.pill {
  border-radius: 999px;
  background: #f4e0b1;
  color: #65450f;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.cards,
.stack,
.provider-row,
.prediction-grid,
.team-grid,
.rating-stack {
  display: grid;
  gap: 10px;
}

.prediction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card,
.mini-card,
.provider-card,
.prediction-card,
.team-card,
.rating-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 13px;
}

.game-card,
.mini-card {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.game-card strong,
.mini-card strong,
.provider-card strong {
  display: block;
}

.game-card a,
.team-card a,
.rating-card a,
.prediction-card a,
.standings-row a {
  color: inherit;
  text-decoration: none;
}

.game-card a:hover,
.team-card a:hover,
.rating-card a:hover,
.prediction-card a:hover,
.standings-row a:hover {
  color: var(--field);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-card em,
.mini-card em,
.provider-card span {
  font-style: normal;
  font-weight: 900;
  text-transform: capitalize;
}

.provider-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
}

.compact-stack {
  margin-top: 12px;
}

.prediction-panel {
  grid-column: span 2;
}

.teams-panel {
  grid-column: span 2;
}

.ticker-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ticker-team {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 46px;
  padding: 7px 10px 7px 7px;
  text-decoration: none;
}

.ticker-team:hover {
  border-color: var(--field);
  color: var(--field);
}

.ticker-team span {
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.ticker-team em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.team-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 90px;
  overflow: hidden;
}

.team-card strong,
.team-card span {
  display: block;
}

.team-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.team-card em {
  align-self: start;
  border-radius: 999px;
  background: #f7f5ee;
  color: var(--team-accent);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.team-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: var(--team-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.team-mark img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.rating-card {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.rating-card > span {
  color: var(--sun);
  font-weight: 900;
}

.rating-card strong,
.rating-card small {
  display: block;
}

.rating-card small {
  color: var(--muted);
  line-height: 1.35;
}

.rating-card em {
  color: var(--field);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 900;
}

.prediction-card {
  display: grid;
  gap: 14px;
  min-height: 250px;
}

.prediction-matchup,
.prediction-pick {
  display: grid;
  gap: 4px;
}

.matchup-marks {
  display: flex;
  gap: 6px;
  min-height: 34px;
}

.prediction-matchup strong,
.prediction-pick strong {
  font-size: 1.12rem;
}

.prediction-card span,
.prediction-card time,
.prediction-card p,
.prediction-card dt {
  color: var(--muted);
}

.prediction-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.prediction-card dl div {
  border-radius: 7px;
  background: #f7f5ee;
  padding: 10px;
}

.prediction-card dt,
.prediction-card dd {
  margin: 0;
}

.prediction-card dt {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-card dd {
  font-size: 1.05rem;
  font-weight: 900;
}

.prediction-card p {
  line-height: 1.45;
}

.market-lines {
  display: grid;
  gap: 8px;
}

.market-lines > span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-lines > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.market-lines article {
  border-radius: 7px;
  background: #f7f5ee;
  padding: 9px;
}

.market-lines strong,
.market-lines em {
  display: block;
}

.market-lines strong {
  font-size: 0.74rem;
}

.market-lines em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 3px;
}

.standings-table {
  display: grid;
  gap: 6px;
}

.profile-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-weight: 900;
  padding: 12px;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--field);
  color: var(--field);
}

.standings-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(74px, 86px) minmax(64px, 74px) repeat(2, minmax(34px, 48px));
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.standings-row:last-child {
  border-bottom: 0;
}

.standings-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.standings-row strong {
  text-align: center;
}

.standings-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 28px;
  text-transform: uppercase;
}

.mini-team-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #f7f5ee;
}

.mini-team-mark img {
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}

.text-mark {
  background: var(--field);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
}

.good {
  color: var(--field);
}

.warn {
  color: var(--sun);
}

.bad {
  color: var(--clay);
}

@media (max-width: 900px) {
  .fan-grid,
  .provider-row,
  .game-spotlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide {
    grid-column: span 2;
  }

  .prediction-panel {
    grid-column: span 2;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fan-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .fan-header,
  .team-profile-head,
  .team-page-shell,
  .fan-grid,
  .provider-row,
  .prediction-grid,
    .game-spotlight,
  .spotlight-scoreboard,
  .game-card,
  .mini-card {
    grid-template-columns: 1fr;
  }

  .team-profile-head {
    margin-top: 60px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wide {
    grid-column: span 1;
  }

  .prediction-panel {
    grid-column: span 1;
  }

  .team-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .team-card em {
    grid-column: 2;
    justify-self: start;
  }

  .prediction-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-lines > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standings-row {
    grid-template-columns: minmax(130px, 1fr) minmax(62px, 74px) minmax(54px, 66px);
  }

  .standings-row span:nth-child(4),
  .standings-row span:nth-child(5),
  .standings-row strong:nth-child(4),
  .standings-row strong:nth-child(5) {
    display: none;
  }

}
