:root {
  color-scheme: light;
  --bg: #ebe9e4;
  --bg-soft: #f7f6f2;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(13, 16, 18, 0.14);
  --text: #0b0d0f;
  --muted: #64707a;
  --accent: #0b0d0f;
  --accent-strong: #0b0d0f;
  --focus: #2366d1;
  --shadow: 0 20px 55px rgba(28, 33, 37, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.95), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.7), transparent 30rem),
    linear-gradient(180deg, #f3f2ee 0%, #ebe9e4 54%, #e4e2dc 100%);
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 0 24px 44px;
}

.site-header {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(220px, 24vw, 292px);
  height: auto;
}

.brand-label {
  padding: 8px 0 8px 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #0b0d0f;
  border-radius: 999px;
  color: #ffffff;
  background: #0b0d0f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.live-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54d999;
  box-shadow: 0 0 0 4px rgba(84, 217, 153, 0.18);
}

.live-chip span:last-child {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.live-chip[data-state="live"] {
  border-color: #b42318;
  background: #b42318;
}

.live-chip[data-state="live"] > span:first-child {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-chip[data-state="error"] {
  border-color: #a86f00;
  background: #8a5c00;
}

.live-chip[data-state="loading"] > span:first-child {
  animation: live-pulse 1.4s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 42px 0 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #111417;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: #56616a;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
}

.game-browser,
.selected-game {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.game-browser {
  padding: 24px;
}

.browser-heading,
.selected-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.browser-heading h2,
.selected-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.week-rail-label {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 13, 15, 0.09);
  color: #69747d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.week-buttons {
  display: flex;
  gap: 8px;
  margin: 7px -4px 0;
  padding: 0 4px 5px;
  overflow-x: auto;
  scrollbar-color: rgba(11, 13, 15, 0.3) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.week-button {
  flex: 0 0 auto;
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(11, 13, 15, 0.16);
  border-radius: 999px;
  color: #56616a;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.week-button:hover {
  color: #0b0d0f;
  border-color: rgba(11, 13, 15, 0.42);
}

.week-button[aria-selected="true"] {
  color: #ffffff;
  border-color: #0b0d0f;
  background: #0b0d0f;
}

.week-button:disabled {
  color: #9ba2a8;
  border-color: rgba(11, 13, 15, 0.08);
  background: #f1f0ec;
  cursor: not-allowed;
  opacity: 0.58;
}

.week-buttons[aria-busy="true"] .week-button {
  cursor: wait;
  opacity: 0.65;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters label {
  display: grid;
  gap: 6px;
}

.filters label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

select {
  min-width: 120px;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
}

select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.status {
  padding: 26px 4px 4px;
  color: var(--muted);
  font-size: 14px;
}

.status.error {
  color: #ffb4b4;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.game-option {
  position: relative;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(145deg, #ffffff, #f5f4f0);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.game-option::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--team-accent, var(--accent));
  opacity: 0.8;
}

.game-option:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 13, 15, 0.34);
}

.game-option[aria-selected="true"] {
  border-color: #0b0d0f;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #0b0d0f, 0 12px 28px rgba(26, 30, 34, 0.1);
}

.game-option.is-live {
  border-color: rgba(180, 35, 24, 0.48);
  background: linear-gradient(145deg, #ffffff, #fff4f2);
}

.game-option.is-live::before {
  background: #b42318;
  opacity: 1;
}

.game-time {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #69747d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-status.in {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b42318;
}

.score-status.in::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: live-pulse 1.4s ease-in-out infinite;
}

.score-status.post {
  color: #22282d;
}

.team-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
}

.team-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.2));
}

.team-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row span {
  color: #69747d;
  font-size: 11px;
  font-weight: 800;
}

.team-row .team-score {
  min-width: 28px;
  color: #6d747a;
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.team-row .team-score.winner {
  color: #0b0d0f;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 13, 15, 0.09);
  color: #69747d;
  font-size: 10px;
}

.selected-game {
  margin-top: 22px;
  padding: 24px;
}

.copy-link {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #0b0d0f;
  border-radius: 11px;
  color: #ffffff;
  background: #0b0d0f;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.copy-link:hover {
  background: #2b3034;
}

.card-mount {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #eef1f5;
}

.card-mount cfbdepth-game-card {
  display: block;
  width: 100%;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 2px 0;
  color: #69727a;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 0 12px 30px;
  }

  .site-header {
    min-height: 78px;
  }

  .brand-logo {
    width: 188px;
  }

  .brand-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px 4px 28px;
  }

  .game-browser,
  .selected-game {
    padding: 16px;
    border-radius: 18px;
  }

  .browser-heading,
  .selected-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .browser-heading .live-chip {
    align-self: flex-start;
  }

  .filters {
    width: 100%;
  }

  .filters label {
    flex: 1;
  }

  select {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .copy-link {
    width: 100%;
  }

  .card-mount {
    margin-right: -8px;
    margin-left: -8px;
    border-radius: 12px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-option {
    transition: none;
  }

  .week-button {
    transition: none;
  }

  .live-chip > span:first-child,
  .score-status.in::before {
    animation: none;
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}
