@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #06142b;
  --bg-deep: #020916;
  --panel: rgba(9, 25, 55, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(125, 188, 255, 0.24);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6fbff;
  --muted: #a7bdd8;
  --accent: #2b8cff;
  --accent-strong: #155ac7;
  --accent-soft: #a7daff;
  --red-accent: #ef4f61;
  --gold: #ffcf70;
  --success: #79ddb1;
  --warning: #ffb86b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(43, 140, 255, 0.26), transparent 24%),
    radial-gradient(circle at 82% 0%, rgba(239, 79, 97, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 207, 112, 0.08), transparent 30%),
    linear-gradient(180deg, #041022 0%, #0a2149 42%, #071426 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
  pointer-events: none;
  opacity: 0.24;
}

body::after {
  content: "";
  position: fixed;
  top: -14rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
  background:
    radial-gradient(circle, rgba(43, 140, 255, 0.18), transparent 62%),
    radial-gradient(circle at 62% 28%, rgba(239, 79, 97, 0.12), transparent 20%);
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.85;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 3vw, 2.4rem);
  background: linear-gradient(90deg, rgba(3, 12, 27, 0.88), rgba(5, 19, 45, 0.76));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: grid;
  gap: 0.08rem;
  text-decoration: none;
}

.nav-brand-mark {
  color: var(--accent-soft);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-brand-name {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.nav-menu-toggle,
.nav-mobile-backdrop {
  display: none;
}

.nav-menu-toggle {
  align-items: center;
  gap: 0.75rem;
  min-height: 2.85rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(125, 188, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.nav-menu-toggle__icon {
  display: inline-grid;
  gap: 0.22rem;
}

.nav-menu-toggle__icon span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.navbar.is-nav-open .nav-menu-toggle__icon span:nth-child(1) {
  transform: translateY(0.26rem) rotate(45deg);
}

.navbar.is-nav-open .nav-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.navbar.is-nav-open .nav-menu-toggle__icon span:nth-child(3) {
  transform: translateY(-0.26rem) rotate(-45deg);
}

.nav-menu-toggle__label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    color 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(43, 140, 255, 0.16);
  border-color: rgba(125, 188, 255, 0.4);
  transform: translateY(-1px);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0;
}

.nav-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(125, 188, 255, 0.24);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.nav-auth-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.nav-auth-link--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(43, 140, 255, 0.22);
}

.nav-user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.small-label,
.metric-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn,
.button-secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    filter 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.btn,
button {
  color: #f9fcff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 40px rgba(43, 140, 255, 0.24);
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 24px 44px rgba(43, 140, 255, 0.3);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn-secondary,
.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  box-shadow: none;
}

.btn-secondary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--text);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  min-height: calc(100svh - 86px - var(--live-strip-height, 0px));
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(2, 8, 20, 0.05) 0%, rgba(2, 8, 20, 0.84) 72%),
    radial-gradient(circle at 18% 22%, rgba(43, 140, 255, 0.24), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(239, 79, 97, 0.16), transparent 18%),
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  opacity: 0.42;
  pointer-events: none;
}

.hero-copy,
.hero-board,
.section-shell,
.page-shell {
  position: relative;
  z-index: 1;
}

.hero-copy {
  animation: rise-in 820ms var(--ease) both;
}

.hero-brandbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(167, 218, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #5fb7ff, #1c57a8 48%, #08172f 72%);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.05),
    0 22px 48px rgba(4, 12, 28, 0.36);
  overflow: hidden;
}

.hero-crest::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.hero-crest::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: 0.58rem;
  width: 1.08rem;
  height: 1.08rem;
  background: radial-gradient(circle at 35% 35%, #ff8f99, var(--red-accent));
  clip-path: polygon(50% 0, 63% 32%, 100% 35%, 72% 58%, 82% 100%, 50% 76%, 18% 100%, 28% 58%, 0 35%, 37% 32%);
  transform: rotate(16deg);
}

.hero-crest span {
  position: relative;
  z-index: 1;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2.1rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
}

.hero-brand-copy {
  display: grid;
  gap: 0.38rem;
}

.hero-brand-copy strong {
  max-width: 20rem;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-copy h1 {
  margin: 0.7rem 0 1rem;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(4rem, 11vw, 8.75rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  max-width: 9ch;
}

.hero-lede {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.15vw, 1.15rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-actions .text-link {
  margin-top: 0;
}

.hero-note {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: rgba(246, 251, 255, 0.78);
  line-height: 1.75;
}

.hero-board {
  justify-self: end;
  width: 100%;
  max-width: 34rem;
  padding: 1.5rem;
  border: 1px solid var(--panel-border);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(13, 36, 83, 0.97), rgba(5, 14, 31, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-2deg);
  animation: board-in 900ms var(--ease) 160ms both;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: auto -22% 22% 34%;
  height: 12rem;
  background: radial-gradient(circle, rgba(0, 166, 255, 0.32), transparent 65%);
  pointer-events: none;
}

.hero-board-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.board-label {
  position: relative;
  z-index: 1;
  margin: 1.6rem 0 0.95rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-checklist {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-checklist li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-checklist span {
  color: var(--accent);
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-checklist strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 1rem;
}

.hero-checklist p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-board-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.mini-callout {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.mini-callout strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.section-shell,
.page-shell,
.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-shell {
  padding: 0 0 4.5rem;
}

.home-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) 320px;
  gap: 1rem;
  align-items: start;
}

.next-up-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.next-up-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.3rem;
}

.next-team {
  display: grid;
  gap: 0.38rem;
  min-height: 11rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.next-team--bluejays {
  background:
    radial-gradient(circle at top left, rgba(43, 140, 255, 0.24), transparent 45%),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(125, 188, 255, 0.24);
}

.next-team strong {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.next-up-center {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  min-width: 220px;
}

.next-up-time {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  letter-spacing: 0.05em;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.next-up-note {
  max-width: 20rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.next-up-meta-grid,
.trend-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.next-up-actions {
  margin-top: 1.2rem;
}

.home-state-panel,
.series-widget {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.home-state-panel-head,
.series-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-state-panel-head strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.home-state-copy,
.series-widget-text {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.home-state-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.home-state-pill {
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
}

.home-state-pill strong {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

.live-pulse-dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #59f08c;
  box-shadow: 0 0 0 0 rgba(89, 240, 140, 0.5);
  animation: live-pulse 1.4s ease-out infinite;
}

.series-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.series-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.series-dot--win {
  background: rgba(121, 221, 177, 0.18);
  color: var(--success);
}

.series-dot--loss {
  background: rgba(255, 126, 103, 0.18);
  color: #ffb2a5;
}

.home-teaser-panel h2 {
  margin: 0.55rem 0 0.7rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.home-teaser-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.pulse-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -1rem;
}

.pulse-item,
.tool-panel,
.side-panel,
.surface-panel,
.cta-banner {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 25, 52, 0.94), rgba(6, 18, 36, 0.94));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.page-home .surface-panel::before,
.page-home .pulse-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--red-accent));
  opacity: 0.95;
}

.pulse-item {
  padding: 1.45rem 1.45rem 1.55rem;
  border-radius: 1.35rem;
  overflow: hidden;
  animation: rise-in 760ms var(--ease) both;
}

.pulse-item:nth-child(2) {
  animation-delay: 120ms;
}

.pulse-item:nth-child(3) {
  animation-delay: 180ms;
}

.pulse-item h2 {
  margin: 0.55rem 0 0.7rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.pulse-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 11ch;
}

.section-heading p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.feature-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.03);
}

.feature-index {
  color: var(--gold);
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 38rem;
}

.feature-arrow {
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(125, 188, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 1.8rem;
  margin-bottom: 4rem;
  animation: rise-in 820ms var(--ease) both;
}

.cta-banner h2 {
  margin: 0.55rem 0 0.75rem;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.05em;
  line-height: 0.96;
  text-transform: uppercase;
  max-width: 10ch;
}

.cta-banner p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-shell {
  padding: 1.8rem 0 4rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 1.35rem;
  align-items: end;
  padding-bottom: 2rem;
  animation: rise-in 760ms var(--ease) both;
}

.page-hero h1 {
  margin: 0.55rem 0 0.85rem;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  letter-spacing: 0.05em;
  line-height: 0.93;
  text-transform: uppercase;
  max-width: 10ch;
}

.page-hero p:last-child {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.page-hero-side {
  display: grid;
  gap: 0.85rem;
}

.hero-metric {
  padding: 1rem 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero-metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.panel-stack {
  display: grid;
  gap: 1rem;
}

.tool-panel,
.side-panel,
.surface-panel {
  border-radius: 1.5rem;
  overflow: hidden;
}

.tool-panel,
.surface-panel {
  padding: 1.45rem;
  animation: rise-in 820ms var(--ease) both;
}

.side-panel {
  position: sticky;
  top: calc(6.1rem + var(--live-strip-height, 0px));
  padding: 1.3rem;
  animation: rise-in 820ms var(--ease) 120ms both;
}

.panel-heading {
  display: grid;
  gap: 0.55rem;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.panel-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.surface-note {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-meta-note {
  margin: 0.4rem 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
  margin: 1.5rem 0 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  flex: 1 1 220px;
}

label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

input[type="date"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

select {
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

input[type="date"]:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.table-shell {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background: rgba(2, 10, 22, 0.36);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-link {
  color: var(--accent-soft);
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.info-list {
  display: grid;
  gap: 0.95rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.info-list li {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.info-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.98rem;
}

.info-list span,
.muted-note {
  color: var(--muted);
  line-height: 1.72;
}

.muted-note {
  margin: 1.05rem 0 0;
}

.side-section {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.55rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-chip--live {
  background: rgba(0, 166, 255, 0.16);
  color: var(--accent-soft);
}

.status-chip--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status-chip--ghost {
  background: rgba(167, 189, 216, 0.14);
  color: var(--muted);
}

.status-chip--fresh {
  background: rgba(121, 221, 177, 0.14);
  color: var(--success);
}

.status-chip--available {
  background: rgba(143, 211, 255, 0.14);
  color: var(--accent-soft);
}

.status-chip--warning {
  background: rgba(255, 184, 107, 0.14);
  color: var(--warning);
}

.live-strip {
  position: sticky;
  top: var(--live-strip-offset, 86px);
  z-index: 18;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 166, 255, 0.08), transparent 30%),
    rgba(3, 12, 25, 0.86);
  backdrop-filter: blur(20px);
}

.live-strip-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1.15fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0 0.95rem;
}

.live-strip-lead {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.live-strip-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.live-strip-title,
.live-strip-subtitle,
.live-strip-note {
  margin: 0;
}

.live-strip-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.live-strip-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.live-strip-score {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  justify-self: center;
}

.live-strip-team {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
}

.live-strip-abbrev {
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.live-strip-score-number {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
}

.live-strip-separator {
  color: var(--muted);
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.live-strip-context {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.live-strip-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.live-strip-meta-item {
  min-width: 0;
}

.live-strip-meta-item strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.live-strip-note {
  color: rgba(246, 251, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-strip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.live-strip-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.live-strip-season {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-strip-season-text {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.62rem 0 0.72rem;
  color: rgba(246, 251, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stats-view-stack + .stats-view-stack {
  margin-top: 1rem;
}

.stats-toggle-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stats-toggle-button {
  width: auto;
  min-width: 11rem;
  min-height: 3rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-toggle-button.is-active {
  border-color: rgba(125, 188, 255, 0.28);
  background: rgba(45, 128, 255, 0.14);
  color: var(--text);
}

.table-sort {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.table-sort.is-active {
  color: var(--accent-soft);
}

.table-sort[data-direction="asc"]::after {
  content: ' ↑';
}

.table-sort[data-direction="desc"]::after {
  content: ' ↓';
}

.surface-panel + .surface-panel {
  margin-top: 1rem;
}

.scoreboard-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.scoreboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.3rem;
}

.team-score-card {
  display: grid;
  gap: 0.4rem;
  min-height: 12rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.team-score-card--bluejays {
  background:
    radial-gradient(circle at top left, rgba(0, 166, 255, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.06);
}

.team-role {
  color: var(--accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.team-name {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.score-column {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  min-width: 220px;
}

.score-pair {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.score-side {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
}

.score-label {
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.score-number {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(4.25rem, 10vw, 7rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
}

.score-vs {
  color: var(--muted);
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.score-detail {
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.scoreboard-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.score-fact,
.situation-card,
.decision-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.score-fact strong,
.situation-card strong,
.decision-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.game-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1rem;
  align-items: start;
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.situation-card--bases {
  grid-column: span 2;
}

.bases-diamond {
  position: relative;
  width: 8.4rem;
  height: 8.4rem;
  margin: 1rem auto 0;
}

.base-node {
  position: absolute;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(45deg);
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.base-node--second {
  top: 0;
  left: 50%;
  margin-left: -0.825rem;
}

.base-node--third {
  top: 50%;
  left: 0;
  margin-top: -0.825rem;
}

.base-node--first {
  top: 50%;
  right: 0;
  margin-top: -0.825rem;
}

.base-node--home {
  bottom: 0;
  left: 50%;
  margin-left: -0.825rem;
}

.base-node.is-occupied {
  background: linear-gradient(135deg, var(--gold), #ffe7ad);
  box-shadow: 0 0 0 1px rgba(255, 207, 112, 0.12);
}

.base-caption {
  min-height: 2.8rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.event-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.compact-event-list .event-item {
  padding: 0.95rem 1rem;
}

.event-list--scrollable {
  max-height: 38rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.event-item {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.event-item--scoring {
  border-color: rgba(255, 207, 112, 0.22);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-summary {
  margin: 0.55rem 0 0;
  color: var(--text);
  line-height: 1.72;
}

.event-item--button {
  width: 100%;
  min-height: auto;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.event-item--button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.event-matchup {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-detail {
  display: none;
  gap: 0.45rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.event-item--button.is-expanded .event-detail {
  display: grid;
}

.event-filter-bar {
  align-items: center;
  margin: 1.1rem 0 0;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.toggle-chip input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.player-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.player-link:hover {
  color: var(--accent-soft);
}

.player-inline,
.season-player-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.season-player-cell {
  flex-wrap: wrap;
  row-gap: 0.45rem;
}

.player-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(10, 32, 74, 0.92);
  overflow: hidden;
}

.player-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-avatar-fallback {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid rgba(125, 188, 255, 0.2);
  border-radius: 999px;
  background: rgba(43, 140, 255, 0.12);
  color: var(--accent-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-facts-grid {
  margin-top: 1.25rem;
}

.player-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.player-stat-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.player-stat-card .mini-stat-list {
  margin-top: 0.7rem;
}

.player-actions {
  margin-top: 1.2rem;
}

.auth-favorite-panel {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.auth-favorite-note {
  margin-top: 0;
}

.auth-shell {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.auth-widget-shell {
  min-height: 32rem;
  margin-top: 1.35rem;
}

.favorites-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.favorite-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.favorite-card h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.2rem;
}

.favorite-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.favorite-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.favorite-remove {
  min-height: 2.85rem;
  padding: 0.78rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.favorite-remove:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.account-empty-state {
  margin-top: 1rem;
}

.utility-shell {
  display: grid;
  min-height: calc(100vh - 18rem);
  place-items: center;
}

.utility-card {
  width: min(100%, 48rem);
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.utility-code {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.utility-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
}

.utility-card p {
  margin: 0;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.team-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-stat-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.mini-stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.mini-stat-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-stat-list span {
  color: var(--muted);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.placeholder-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.link-card {
  display: grid;
  gap: 0.55rem;
  min-height: 10.5rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
}

.link-card-tag {
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-card-title {
  font-size: 1.08rem;
  line-height: 1.35;
}

.link-card-copy {
  color: var(--muted);
  line-height: 1.65;
}

.link-card-action {
  align-self: end;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-name {
  font-weight: 700;
}

#trivia-container {
  display: grid;
  gap: 1rem;
}

#question {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.28;
  max-width: 24ch;
}

#options {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.option-button {
  width: 100%;
  justify-content: flex-start;
  gap: 0.9rem;
  min-height: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.option-button:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.option-button:disabled {
  cursor: default;
  opacity: 1;
}

.option-button.is-selected {
  border-color: var(--accent-soft);
  background: rgba(0, 166, 255, 0.12);
}

.option-button.is-correct {
  border-color: var(--success);
  background: rgba(121, 221, 177, 0.14);
}

.option-button.is-incorrect {
  border-color: var(--warning);
  background: rgba(255, 184, 107, 0.12);
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.answer-callout {
  min-height: 1.5rem;
  margin: 0;
  color: var(--gold);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.footer {
  padding: 0 0 2rem;
}

.footer p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes board-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-4deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-2deg);
  }
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(89, 240, 140, 0.45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(89, 240, 140, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(89, 240, 140, 0);
  }
}

@media (max-width: 980px) {
  .live-strip-inner,
  .home-hero,
  .home-spotlight-grid,
  .page-hero,
  .tool-layout,
  .game-center-layout,
  .player-section-grid,
  .stats-grid,
  .pulse-band,
  .cta-banner,
  .next-up-matchup,
  .next-up-meta-grid,
  .trend-kpi-grid,
  .link-grid,
  .scoreboard-grid,
  .scoreboard-facts,
  .situation-grid,
  .team-line-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 1.3rem;
  }

  .home-hero {
    gap: 1.25rem;
    padding-top: 1.65rem;
    padding-bottom: 3.1rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

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

  .next-up-matchup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .next-up-center,
  .score-column {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .next-team,
  .team-score-card {
    min-height: auto;
  }

  .next-up-meta-grid,
  .trend-kpi-grid,
  .scoreboard-facts,
  .situation-grid,
  .team-line-grid,
  .decision-grid,
  .home-state-meta,
  .link-grid,
  .player-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .live-strip-score {
    justify-self: start;
  }

  .home-hero,
  .page-hero {
    min-height: auto;
  }

  .hero-board {
    justify-self: stretch;
    transform: none;
  }

  .next-up-center {
    min-width: 0;
  }

  .side-panel {
    position: static;
  }

  .situation-card--bases {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  body.nav-open {
    overflow: hidden;
  }

  .navbar {
    position: sticky;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.85rem;
  }

  .nav-brand {
    width: auto;
    justify-items: start;
    min-width: 0;
  }

  .nav-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 18;
    border: 0;
    background: rgba(1, 6, 16, 0.58);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms var(--ease);
  }

  .navbar.is-nav-open + .nav-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-mobile-panel {
    position: fixed;
    top: calc(var(--live-strip-offset, 86px) + 0.5rem);
    right: 0.85rem;
    left: 0.85rem;
    z-index: 19;
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    border: 1px solid rgba(125, 188, 255, 0.14);
    border-radius: 1.35rem;
    background:
      linear-gradient(180deg, rgba(8, 20, 47, 0.98), rgba(4, 12, 29, 0.96)),
      rgba(5, 15, 36, 0.96);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem) scale(0.98);
    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease);
  }

  .navbar.is-nav-open .nav-mobile-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links {
    width: 100%;
    display: grid;
    gap: 0.5rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    min-height: 2.9rem;
    padding: 0.72rem 0.95rem;
    font-size: 0.9rem;
  }

  .nav-auth {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav-auth > * {
    width: 100%;
  }

  .hero-actions,
  .cta-actions,
  .control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .field {
    flex-basis: 100%;
  }

  .hero-brandbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-crest {
    width: 4.7rem;
  }

  .hero-crest span {
    font-size: 1.75rem;
  }

  .hero-brand-copy strong {
    max-width: none;
    font-size: 0.94rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 16vw, 4.9rem);
  }

  .hero-lede,
  .hero-note,
  .panel-heading p:last-child,
  .section-heading p:last-child,
  .page-hero p:last-child,
  .feature-row p {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .hero-board,
  .tool-panel,
  .surface-panel,
  .side-panel,
  .pulse-item {
    padding: 1.1rem;
    border-radius: 1.2rem;
  }

  .btn,
  .btn-secondary,
  .button-secondary,
  button {
    width: 100%;
  }

  .feature-row {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 1.05rem 0;
  }

  .feature-arrow {
    grid-column: 2;
    justify-self: start;
  }

  .feature-index {
    font-size: 1.55rem;
  }

  .page-hero {
    gap: 1rem;
    padding-bottom: 1.4rem;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .page-hero-side {
    grid-template-columns: 1fr;
  }

  .next-up-time {
    font-size: clamp(2rem, 13vw, 3.25rem);
  }

  .next-team strong,
  .team-name {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .next-up-meta-grid,
  .trend-kpi-grid,
  .scoreboard-facts,
  .situation-grid,
  .team-line-grid,
  .decision-grid,
  .link-grid,
  .player-section-grid,
  .home-state-meta,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .score-number {
    font-size: clamp(3.3rem, 15vw, 4.9rem);
  }

  .score-pair {
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
  }

  .hero-board-footer {
    grid-template-columns: 1fr;
  }

  .score-pair {
    gap: 0.6rem;
  }

  .score-column {
    min-width: 0;
  }

  .live-strip {
    position: static;
  }

  .live-strip-inner {
    width: min(1180px, calc(100% - 1.25rem));
    gap: 0.75rem;
    padding: 0.72rem 0 0.8rem;
  }

  .live-strip-season-text {
    width: min(1180px, calc(100% - 1.25rem));
    padding: 0.6rem 0 0.72rem;
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .live-strip-score {
    justify-self: stretch;
    justify-content: flex-start;
  }

  .live-strip-link {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.68rem 0.9rem;
    font-size: 0.76rem;
  }

  .live-strip-note {
    white-space: normal;
  }

  .live-strip-subtitle {
    display: none;
  }

  .live-strip-score-number {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .live-strip-meta-item strong {
    font-size: 0.92rem;
  }

  .hero-board-top,
  .scoreboard-topbar,
  .event-meta,
  .mini-stat-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .toggle-chip {
    width: 100%;
    justify-content: center;
  }

  .stats-toggle-row {
    flex-direction: column;
  }

  .stats-toggle-button {
    width: 100%;
  }

  .favorite-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .favorite-card-actions {
    justify-content: stretch;
  }

  .event-list--scrollable {
    max-height: none;
    padding-right: 0;
  }

  input[type="date"],
  select {
    font-size: 16px;
  }

  table {
    min-width: 470px;
  }

  th,
  td {
    padding: 0.78rem 0.82rem;
  }

  th {
    font-size: 0.68rem;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .page-shell,
  .footer {
    width: min(1180px, calc(100% - 1rem));
  }

  .navbar {
    padding-inline: 0.72rem;
  }

  .nav-brand-name {
    font-size: 1.7rem;
  }

  .nav-brand-mark {
    font-size: 0.64rem;
    letter-spacing: 0.2em;
  }

  .home-hero {
    padding: 1rem 0.5rem 2.2rem;
    gap: 0.95rem;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .hero-crest {
    width: 4rem;
  }

  .hero-crest span {
    font-size: 1.45rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 17vw, 4.15rem);
  }

  .hero-copy h1,
  .page-hero h1,
  .section-heading h2,
  .cta-banner h2 {
    max-width: none;
  }

  .page-hero h1 {
    font-size: clamp(2.45rem, 14vw, 3.6rem);
  }

  .section-heading h2 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .panel-heading h2,
  .home-teaser-panel h2,
  .pulse-item h2 {
    font-size: 1.35rem;
  }

  .next-up-meta-grid,
  .trend-kpi-grid,
  .scoreboard-facts,
  .situation-grid,
  .team-line-grid,
  .decision-grid,
  .link-grid,
  .player-section-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.95rem 0;
  }

  .feature-arrow {
    grid-column: auto;
  }

  .nav-mobile-panel {
    right: 0.72rem;
    left: 0.72rem;
    padding: 0.88rem;
  }

  .next-up-matchup,
  .scoreboard-grid {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .score-column {
    gap: 0.65rem;
  }

  .live-strip-meta {
    grid-template-columns: 1fr;
  }

  .live-strip-inner {
    width: calc(100% - 1rem);
  }

  .live-strip-season-text {
    width: calc(100% - 1rem);
  }

  .live-strip-title {
    font-size: 0.95rem;
  }

  .live-strip-note {
    font-size: 0.86rem;
  }

  .surface-note,
  .muted-note,
  .base-caption,
  .event-matchup,
  .event-detail {
    font-size: 0.92rem;
  }

  .auth-widget-shell {
    min-height: 28rem;
  }

  table {
    min-width: 410px;
  }

  th,
  td {
    padding: 0.72rem 0.72rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  body::after {
    right: -16rem;
    width: 30rem;
    height: 30rem;
    opacity: 0.6;
  }

  .hero-brand-copy strong,
  .hero-lede,
  .hero-note,
  .panel-heading p:last-child,
  .section-heading p:last-child,
  .page-hero p:last-child,
  .feature-row p {
    font-size: 0.92rem;
  }

  .next-team,
  .team-score-card,
  .score-fact,
  .situation-card,
  .decision-card,
  .link-card,
  .hero-metric {
    padding: 0.92rem;
  }

  .pulse-item,
  .tool-panel,
  .surface-panel,
  .side-panel,
  .hero-board {
    padding: 1rem;
  }

  .hero-checklist li {
    gap: 0.75rem;
  }

  .live-strip-score {
    gap: 0.55rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
