/* Homepage rivalry / next-game hero */
.hero--rivalry {
  --rival-cardinal: #8b1e2d;
  --rival-cardinal-deep: #5c101c;
  position: relative;
  width: 100%;
  min-height: clamp(28rem, 62vh, 38rem);
  padding: 0;
  overflow: hidden;
  background: #050506;
  display: flex;
  align-items: stretch;
}

.hero--rivalry .hero-rivalry-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--rivalry .hero-rivalry-media img,
.hero--rivalry .hero-rivalry-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
  transform-origin: 50% 40%;
  will-change: transform;
  animation: hero-rivalry-kenburns 18s ease-in-out infinite alternate;
}

.hero--rivalry.hero--rivalry-kinnick .hero-rivalry-media img,
.hero--rivalry.hero--rivalry-kinnick .hero-rivalry-photo {
  object-position: 50% 35%;
}

@keyframes hero-rivalry-kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero--rivalry .hero-rivalry-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0.4) 45%, rgba(5, 5, 6, 0.2) 70%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.35) 0%, transparent 32%, rgba(5, 5, 6, 0.88) 100%);
  transition: background 0.6s ease;
}

.hero--rivalry.hero--rivalry-home .hero-rivalry-shade {
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, rgba(255, 205, 0, 0.14), transparent 58%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0.4) 45%, rgba(5, 5, 6, 0.2) 70%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.35) 0%, transparent 32%, rgba(5, 5, 6, 0.88) 100%);
}

.hero--rivalry.hero--rivalry-away .hero-rivalry-shade {
  background:
    radial-gradient(ellipse 60% 50% at 72% 38%, rgba(40, 80, 140, 0.2), transparent 55%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.82) 0%, rgba(5, 5, 6, 0.48) 50%, rgba(5, 5, 6, 0.28) 75%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.4) 0%, transparent 32%, rgba(5, 5, 6, 0.9) 100%);
}

/* Single stacked content column — centered */
.hero--rivalry .hero-rivalry-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vh, 2.75rem) clamp(1.25rem, 4vw, 2.75rem) clamp(1.5rem, 3.5vh, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1.1rem, 2.8vh, 1.75rem);
  text-align: center;
}

.hero--rivalry .hero-rivalry-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.hero--rivalry .hero-rivalry-kicker {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0c;
  background: #ffcd00;
  border-radius: 2px;
}

.hero--rivalry .hero-rivalry-title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1em;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffcd00;
  text-align: center;
}

.hero--rivalry .hero-rivalry-line {
  display: block;
}

.hero--rivalry .hero-rivalry-line--gold {
  margin: 0;
  padding: 0;
  font-size: clamp(3.1rem, 11vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  color: #ffcd00;
  text-shadow:
    0 0 40px rgba(255, 205, 0, 0.28),
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 10px 36px rgba(0, 0, 0, 0.75);
}

.hero--rivalry .hero-rivalry-subhead {
  margin: 0 auto;
  max-width: 22rem;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: rgba(244, 244, 242, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-align: center;
}

/* Matchup band */
.hero--rivalry .hero-rivalry-matchup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px solid rgba(255, 205, 0, 0.35);
  width: 100%;
  max-width: 28rem;
}

.hero--rivalry .hero-rivalry-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.hero--rivalry .hero-rivalry-logo {
  width: clamp(2.6rem, 5.5vw, 3.35rem);
  height: clamp(2.6rem, 5.5vw, 3.35rem);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.hero--rivalry .hero-rivalry-vs {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #ffcd00;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero--rivalry .hero-rivalry-sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.9vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  line-height: 1.35;
  text-align: center;
}

.hero--rivalry .hero-rivalry-bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
  padding-top: 0.15rem;
}

.hero--rivalry .hero-body {
  margin: 0 auto;
  max-width: 26rem;
  color: rgba(244, 244, 242, 0.82);
  font-size: clamp(0.88rem, 1.7vw, 1rem);
  line-height: 1.5;
  text-align: center;
}

.hero--rivalry .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.hero--rivalry .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: #ffcd00;
  color: #0d0e10;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  border: none;
  border-radius: 2px;
}

.hero--rivalry .btn-primary:hover {
  filter: brightness(1.06);
}

.hero--rivalry .btn-ghost-rivalry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 2px;
}

.hero--rivalry .btn-ghost-rivalry:hover {
  border-color: #ffcd00;
  color: #ffcd00;
}

@media (max-width: 640px) {
  .hero--rivalry {
    min-height: clamp(30rem, 78vh, 40rem);
  }

  .hero--rivalry .hero-rivalry-inner {
    padding: 1.35rem 1.1rem 1.35rem;
    gap: 1.15rem;
    max-width: none;
  }

  .hero--rivalry .hero-rivalry-line--gold {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .hero--rivalry .hero-rivalry-subhead {
    max-width: none;
  }

  .hero--rivalry .hero-rivalry-matchup,
  .hero--rivalry .hero-rivalry-bot {
    max-width: none;
  }

  .hero--rivalry .hero-body {
    font-size: 0.9rem;
  }

  .hero--rivalry .hero-actions {
    width: 100%;
  }

  .hero--rivalry .hero-actions > a {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--rivalry .hero-rivalry-media img,
  .hero--rivalry .hero-rivalry-photo {
    animation: none;
    transform: none;
  }
}

/* FOUC: hide the idle hero while rivalry promo is active. */
html[data-hero-promo="rivalry"] .hero:not(.hero--rivalry) {
  display: none !important;
}
