/* SoccerHeros cinematic matchday motion layer. Decorative elements remain
   usable as a static composition when GSAP is unavailable. */

:root {
  --motion-blue: #48a4ff;
  --motion-mint: #20d5ad;
  --motion-orange: #ff7d21;
  --motion-ink: #06111d;
}

body.cinematic-motion #soccerheros-panel .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

#soccerheros-panel [data-motion-scene] {
  position: relative;
  isolation: isolate;
}

#soccerheros-panel [data-motion-scene] > :not([aria-hidden="true"]) {
  position: relative;
  z-index: 2;
}

/* Hero: a broadcast-style night match wrapped around the existing video. */
.soccer-hero {
  overflow: visible;
  perspective: 1100px;
}

.soccer-hero::before {
  content: "";
  position: absolute;
  inset: 21% -22vw 3%;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(72, 164, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 164, 255, 0.045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  transform: perspective(760px) rotateX(62deg) translateY(27%);
  transform-origin: center bottom;
}

.soccer-hero h1 {
  position: relative;
  z-index: 2;
  text-shadow: 0 16px 55px rgba(0, 0, 0, 0.42);
}

.soccer-hero h1 span {
  display: block;
  color: #f4f8fc;
  will-change: transform, opacity;
}

.soccer-hero h1 span:nth-child(2) {
  color: var(--motion-orange);
}

.soccer-hero h1 span:nth-child(3) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(102, 184, 255, 0.92);
  text-shadow: 0 0 34px rgba(72, 164, 255, 0.2);
}

.matchday-atmosphere {
  position: absolute;
  inset: -2rem -16vw auto;
  z-index: -1;
  height: min(840px, 82vh);
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.stadium-light {
  position: absolute;
  top: -12%;
  width: 42vw;
  height: 82%;
  opacity: 0.38;
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(151, 213, 255, 0.32), rgba(72, 164, 255, 0.065) 54%, transparent 90%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
}

.stadium-light-left {
  left: 1%;
  transform: rotate(9deg);
}

.stadium-light-right {
  right: 1%;
  transform: rotate(-9deg);
}

.stadium-haze {
  position: absolute;
  inset: 18% 5% 0;
  background: radial-gradient(ellipse at center, rgba(72, 164, 255, 0.14), transparent 66%);
  filter: blur(22px);
}

.stadium-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bfe5ff;
  box-shadow: 0 0 13px #83c8ff;
  opacity: 0.42;
}

.particle-one { left: 16%; top: 31%; }
.particle-two { left: 35%; top: 51%; width: 2px; height: 2px; }
.particle-three { right: 23%; top: 25%; width: 3px; height: 3px; }
.particle-four { right: 10%; top: 57%; width: 2px; height: 2px; }

.hero-stage {
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
}

.hero-stage::before {
  content: "MATCHDAY / LIVE";
  position: absolute;
  top: -3.1rem;
  left: 50%;
  z-index: -1;
  color: rgba(86, 171, 255, 0.16);
  font: 800 clamp(2.4rem, 7vw, 5.8rem)/1 "Rajdhani", sans-serif;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-video-shell {
  overflow: visible;
  will-change: transform;
}

.hero-video-shell video {
  position: relative;
  z-index: 0;
}

.hero-video-vignette {
  position: absolute;
  inset: 8px;
  z-index: 1;
  border-radius: 29px;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(3, 10, 18, 0.1) 45%, rgba(3, 10, 18, 0.86)),
    radial-gradient(circle at center, transparent 48%, rgba(1, 6, 11, 0.48));
}

.broadcast-score {
  position: absolute;
  right: -4.2rem;
  bottom: 2.4rem;
  z-index: 4;
  width: 176px;
  padding: 0.68rem 0.8rem;
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(72, 164, 255, 0.38);
  border-radius: 10px;
  background: rgba(5, 18, 31, 0.89);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4), inset 3px 0 var(--motion-orange);
  backdrop-filter: blur(14px);
  color: #ddecf8;
  font-family: "Sora", sans-serif;
}

.broadcast-score span,
.broadcast-score em {
  color: #7fa8c9;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.broadcast-score strong {
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.broadcast-score strong b:first-child { color: #ff765d; }
.broadcast-score strong b:last-child { color: #72b8ff; }
.broadcast-score em { color: var(--motion-mint); }

.pitch-radar {
  position: absolute;
  left: -3.3rem;
  bottom: 5rem;
  z-index: 4;
  width: 112px;
  padding: 0.5rem;
  border: 1px solid rgba(32, 213, 173, 0.32);
  border-radius: 10px;
  background: rgba(4, 22, 29, 0.82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.pitch-radar svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.pitch-radar rect,
.pitch-radar path:not(.radar-run) {
  fill: none;
  stroke: rgba(151, 244, 215, 0.3);
  stroke-width: 1;
}

.pitch-radar .radar-run {
  fill: none;
  stroke: var(--motion-orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
}

.radar-player { fill: var(--motion-mint); }
.radar-player.player-b { fill: var(--motion-blue); }
.radar-player.player-c { fill: var(--motion-orange); }

.hero-ball-trail {
  position: absolute;
  left: -0.8rem;
  top: 28%;
  z-index: 5;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7fbff;
  box-shadow: 0 0 15px #fff, -18px 8px 18px rgba(72, 164, 255, 0.6), -36px 13px 24px rgba(72, 164, 255, 0.22);
  pointer-events: none;
}

.hero-ball-trail i {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.hero-callouts {
  will-change: transform;
}

/* The product chapters are a continuous match story. The original static
   layout used two large, consecutive section gutters that felt like blank
   space once motion was introduced. */
.marketing-chapter {
  padding-block: clamp(3.75rem, 5vw, 4.75rem);
}

/* A full scroll-scrubbed match: the ball follows the play route while the
   stage stays in view and the story advances from invite to full time. */
.scroll-pitch-story {
  /* Enough room for the ball to travel, without leaving a dead scroll zone
     below the scene once the play has finished. */
  height: min(110vh, 1040px);
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);
}

.pitch-story-sticky {
  position: sticky;
  top: 78px;
  height: min(760px, calc(100vh - 92px));
  min-height: 0;
  padding: clamp(1.2rem, 3vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(540px, 1.38fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(72, 164, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 75% 22%, rgba(72, 164, 255, 0.13), transparent 30%),
    radial-gradient(circle at 22% 84%, rgba(255, 125, 33, 0.1), transparent 26%),
    linear-gradient(145deg, rgba(8, 26, 42, 0.98), rgba(3, 14, 24, 0.99));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 35px 90px rgba(0, 0, 0, 0.28);
}

.pitch-story-sticky::before {
  content: "MATCHDAY";
  position: absolute;
  left: -0.04em;
  bottom: -0.16em;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(72, 164, 255, 0.08);
  font: 800 clamp(7rem, 18vw, 15rem)/0.8 "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.pitch-story-heading {
  position: relative;
  z-index: 3;
}

.pitch-story-heading h2 {
  margin: 0.6rem 0 1rem;
  color: #f4f8fc;
  font: 400 clamp(3.7rem, 6vw, 6.8rem)/0.86 "Bebas Neue", sans-serif;
  letter-spacing: 0.015em;
}

.pitch-story-heading h2 span {
  color: var(--motion-orange);
}

.pitch-story-heading > p:last-child {
  max-width: 39ch;
  color: #93b1cb;
  line-height: 1.7;
}

.cinematic-pitch {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1000 / 620;
  border: 1px solid rgba(84, 224, 183, 0.34);
  border-radius: 25px;
  background: #071f23;
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.46),
    0 0 60px rgba(32, 213, 173, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1100px) rotateX(5deg);
  transform-origin: center bottom;
  overflow: hidden;
  will-change: transform;
}

.cinematic-pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(3, 12, 19, 0.25), transparent 24%, transparent 70%, rgba(2, 9, 14, 0.42)),
    radial-gradient(ellipse at center, transparent 50%, rgba(1, 7, 11, 0.45));
}

.scroll-pitch-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.pitch-surface {
  fill: url(#pitch-surface);
}

.pitch-markings {
  fill: none;
  stroke: rgba(217, 255, 241, 0.4);
  stroke-width: 3;
}

.pitch-players circle {
  fill: rgba(7, 24, 35, 0.95);
  stroke-width: 7;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.4));
}

.pitch-players.team-orange circle { stroke: var(--motion-orange); }
.pitch-players.team-blue circle { stroke: var(--motion-blue); }

.scroll-play-route {
  fill: none;
  stroke: #ffb06f;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 9px rgba(255, 125, 33, 0.85));
}

.scroll-ball-aura {
  fill: url(#ball-glow);
}

.scroll-ball-core {
  fill: #f8fbff;
  stroke: #07131f;
  stroke-width: 3;
  filter: drop-shadow(0 0 11px rgba(255, 255, 255, 0.9));
}

.scroll-ball path {
  fill: none;
  stroke: #07131f;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.pitch-flood {
  position: absolute;
  top: -22%;
  z-index: 3;
  width: 38%;
  height: 86%;
  opacity: 0.28;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(188, 229, 255, 0.45), rgba(72, 164, 255, 0.05) 58%, transparent);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
}

.pitch-flood-left { left: -7%; transform: rotate(17deg); }
.pitch-flood-right { right: -7%; transform: rotate(-17deg); }

.pitch-scoreboard {
  position: absolute;
  top: 4%;
  left: 50%;
  z-index: 6;
  min-width: 236px;
  padding: 0.55rem 0.72rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.18rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(4, 16, 26, 0.9);
  box-shadow: inset 3px 0 var(--motion-orange), 0 12px 28px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  font-family: "Sora", sans-serif;
}

.pitch-scoreboard span {
  grid-column: 1 / -1;
  color: #8eabc3;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pitch-scoreboard strong {
  color: #f5f9fc;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.pitch-scoreboard em {
  color: var(--motion-mint);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 800;
}

.pitch-scroll-copy {
  position: absolute;
  left: 4%;
  bottom: 5%;
  z-index: 6;
  height: 28px;
  pointer-events: none;
}

.pitch-scroll-copy span {
  position: absolute;
  left: 0;
  bottom: 0;
  width: max-content;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 125, 33, 0.36);
  border-radius: 7px;
  background: rgba(4, 17, 28, 0.86);
  color: #a7bed2;
  font: 800 0.56rem/1 "Sora", sans-serif;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.pitch-scroll-copy span.is-active {
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}

.pitch-scroll-progress {
  position: absolute;
  right: 4%;
  bottom: 7%;
  z-index: 6;
  width: 32%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.pitch-scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--motion-orange), var(--motion-mint));
  box-shadow: 0 0 10px var(--motion-mint);
  transform: scaleX(0);
  transform-origin: left;
}

/* Match flow: one route advances through the four match stages. */
.matchday-system {
  overflow: hidden;
}

.matchday-system > :not(.matchday-pitch-map) {
  position: relative;
  z-index: 2;
}

.matchday-pitch-map {
  position: absolute;
  inset: 12% -8% 3%;
  z-index: -1;
  opacity: 0.52;
  pointer-events: none;
}

.matchday-pitch-map svg {
  width: 100%;
  height: 100%;
}

.pitch-outline {
  fill: rgba(10, 44, 48, 0.16);
  stroke: rgba(68, 184, 151, 0.12);
  stroke-width: 2;
}

.match-route {
  fill: none;
  stroke: var(--motion-orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.018 0.018;
  filter: drop-shadow(0 0 9px rgba(255, 125, 33, 0.6));
}

.route-ball {
  position: absolute;
  top: 72%;
  left: 7.3%;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #111b24;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.matchday-flow article {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.matchday-flow article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--motion-orange), var(--motion-blue));
  transform: scaleX(var(--flow-progress, 0));
  transform-origin: left;
}

/* Tactical board behind the TeamMaker product shot. */
.teammaker-chapter {
  overflow: hidden;
}

.tactics-board {
  position: absolute;
  top: 50%;
  right: -3%;
  z-index: -1;
  width: min(51vw, 580px);
  height: 88%;
  opacity: 0.28;
  transform: translateY(-50%) rotate(5deg);
  pointer-events: none;
}

.tactics-pitch {
  fill: rgba(16, 74, 65, 0.13);
  stroke: rgba(70, 205, 166, 0.3);
  stroke-width: 2;
}

.tactics-run {
  fill: none;
  stroke: var(--motion-orange);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0.03 0.025;
  filter: drop-shadow(0 0 8px rgba(255, 125, 33, 0.46));
}

.tactics-players circle {
  fill: #0b2331;
  stroke: var(--motion-mint);
  stroke-width: 5;
}

/* Player identity turns the screenshots into a collectible-card reveal. */
.player-story-chapter {
  overflow: hidden;
}

.player-story-chapter::before {
  content: "PLAYER LEGACY";
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: -2;
  color: transparent;
  -webkit-text-stroke: 1px rgba(72, 164, 255, 0.11);
  font: 800 clamp(5rem, 16vw, 13rem)/0.8 "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.career-stat-cloud {
  position: absolute;
  inset: 47% 0 auto;
  z-index: 5;
  pointer-events: none;
}

.career-stat-cloud span {
  position: absolute;
  min-width: 108px;
  padding: 0.58rem 0.7rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  border: 1px solid rgba(72, 164, 255, 0.34);
  border-radius: 9px;
  background: rgba(6, 23, 38, 0.84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  color: #8aaac5;
  font: 700 0.53rem/1 "Sora", sans-serif;
  letter-spacing: 0.09em;
}

.career-stat-cloud span b {
  color: var(--motion-orange);
  font: 800 1rem/1 "Rajdhani", sans-serif;
}

.career-stat-cloud span:nth-child(1) { left: 7%; top: 32px; }
.career-stat-cloud span:nth-child(2) { right: 7%; top: -10px; }
.career-stat-cloud span:nth-child(3) { left: 11%; top: 330px; }
.career-stat-cloud span:nth-child(4) { right: 9%; top: 380px; }

/* Fitness telemetry is subtle and stays behind the actual product UI. */
.health-chapter {
  overflow: hidden;
}

.health-telemetry {
  position: absolute;
  right: -5%;
  bottom: 7%;
  z-index: -1;
  width: 72%;
  height: 32%;
  opacity: 0.32;
  pointer-events: none;
}

.telemetry-grid {
  fill: none;
  stroke: rgba(72, 164, 255, 0.1);
  stroke-width: 1;
}

.telemetry-line {
  fill: none;
  stroke: var(--motion-mint);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(32, 213, 173, 0.5));
}

/* Club proof arrives like a post-match broadcast package. */
.club-proof-chapter {
  overflow: hidden;
}

.club-match-ticker {
  width: min(810px, calc(100% - 1rem));
  margin: 0 auto 0.5rem;
  padding: 0.62rem 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255, 125, 33, 0.28);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 125, 33, 0.16), rgba(7, 25, 40, 0.9) 22%, rgba(7, 25, 40, 0.9) 78%, rgba(72, 164, 255, 0.13));
  color: #f4f8fc;
  font-family: "Sora", sans-serif;
}

.club-match-ticker span,
.club-match-ticker em {
  color: var(--motion-orange);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.club-match-ticker strong {
  text-align: center;
  font: 800 0.78rem/1 "Rajdhani", sans-serif;
  letter-spacing: 0.08em;
}

.club-match-ticker em { color: var(--motion-mint); }

/* Full-time download moment. */
.release-2026 {
  overflow: hidden;
  border-block: 1px solid rgba(72, 164, 255, 0.1);
}

.release-2026::before {
  content: "";
  position: absolute;
  inset: 8% -12%;
  z-index: -2;
  background:
    radial-gradient(circle at 68% 50%, rgba(255, 125, 33, 0.17), transparent 31%),
    linear-gradient(105deg, transparent 43%, rgba(72, 164, 255, 0.06) 43.2%, transparent 43.5%);
}

.full-time-mark {
  position: absolute;
  top: 1.2rem;
  right: 0;
  z-index: 0;
  display: grid;
  justify-items: end;
  opacity: 0.18;
  pointer-events: none;
}

.full-time-mark span {
  color: var(--motion-orange);
  font: 800 clamp(2.8rem, 6vw, 5rem)/0.8 "Rajdhani", sans-serif;
}

.full-time-mark strong {
  color: #d8eafa;
  font: 800 clamp(4.5rem, 12vw, 10rem)/0.78 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.full-time-mark i {
  width: 64%;
  height: 3px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, transparent, var(--motion-orange));
}

.release-2026 .store-card {
  overflow: hidden;
  will-change: transform;
}

.release-2026 .store-card::before {
  content: "";
  position: absolute;
  top: -110%;
  left: -55%;
  width: 60%;
  height: 310%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(22deg);
  transition: transform 0.8s ease;
}

.release-2026 .store-card:hover::before,
.release-2026 .store-card:focus-visible::before {
  transform: translateX(320%) rotate(22deg);
}

/* Ambient movement starts only after the motion controller is ready. */
body.cinematic-motion:not(.motion-paused) .stadium-light-left,
body.motion-fallback:not(.motion-paused) .stadium-light-left {
  animation: floodlight-left 7s ease-in-out infinite alternate;
}

body.cinematic-motion:not(.motion-paused) .stadium-light-right,
body.motion-fallback:not(.motion-paused) .stadium-light-right {
  animation: floodlight-right 8s ease-in-out infinite alternate;
}

body.cinematic-motion:not(.motion-paused) .stadium-particle,
body.motion-fallback:not(.motion-paused) .stadium-particle {
  animation: stadium-drift 7s ease-in-out infinite alternate;
}

body.cinematic-motion:not(.motion-paused) .pitch-radar .radar-run,
body.motion-fallback:not(.motion-paused) .pitch-radar .radar-run {
  animation: radar-dash 8s linear infinite;
}

body.motion-fallback:not(.motion-paused) .hero-ball-trail {
  animation: fallback-ball 4.8s 1.2s ease-in-out infinite;
}

@keyframes floodlight-left {
  to { opacity: 0.56; transform: rotate(4deg) scaleX(1.07); }
}

@keyframes floodlight-right {
  to { opacity: 0.52; transform: rotate(-4deg) scaleX(1.08); }
}

@keyframes stadium-drift {
  to { opacity: 0.1; transform: translate3d(22px, -38px, 0) scale(1.5); }
}

@keyframes radar-dash {
  to { stroke-dashoffset: -80; }
}

@keyframes fallback-ball {
  0%, 12%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
  20% { opacity: 1; }
  52% { opacity: 1; transform: translate3d(145px, -25px, 0); }
  72% { opacity: 0; transform: translate3d(252px, 42px, 0); }
}

@media (max-width: 980px) {
  .broadcast-score { right: -2rem; }
  .pitch-radar { left: -2rem; }
  .career-stat-cloud span:nth-child(1),
  .career-stat-cloud span:nth-child(3) { left: 1%; }
  .career-stat-cloud span:nth-child(2),
  .career-stat-cloud span:nth-child(4) { right: 1%; }
}

@media (max-width: 820px) {
  .topbar .btn-mini,
  .product-tab,
  .hero-download-actions > a,
  .chapter-guide-link,
  .store-card {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .hero-video-shell,
  .broadcast-score,
  .pitch-radar,
  .matchday-flow article,
  .career-stat-cloud span,
  .pitch-scoreboard {
    backdrop-filter: none;
  }

  .scroll-play-route,
  .scroll-ball-core,
  .telemetry-line,
  .tactics-run {
    filter: none;
  }

  .matchday-atmosphere {
    inset-inline: -5vw;
    height: 620px;
  }

  .stadium-light { width: 65vw; }

  .soccer-hero::before {
    inset-inline: -8vw;
    background-size: 56px 56px;
  }

  .soccer-hero h1 {
    font-size: clamp(3.1rem, 15.5vw, 4rem);
  }

  .soccer-hero h1 span {
    white-space: nowrap;
  }

  .hero-stage::before {
    top: -1.8rem;
    font-size: clamp(2.1rem, 11vw, 4rem);
  }

  .broadcast-score {
    right: -1.1rem;
    bottom: 1.8rem;
    width: 154px;
  }

  .pitch-radar {
    left: -1rem;
    bottom: 5.5rem;
    width: 90px;
  }

  .hero-ball-trail { display: none; }

  .scroll-pitch-story {
    height: auto;
    margin-inline: -0.1rem;
    margin-bottom: 0;
  }

  .pitch-story-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 1.1rem;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.1rem;
    border-radius: 22px;
  }

  .pitch-story-heading h2 {
    margin-block: 0.35rem 0.55rem;
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .pitch-story-heading > p:last-child {
    margin: 0;
    font-size: 0.86rem;
  }

  .cinematic-pitch {
    width: 112%;
    margin-left: -6%;
    transform: perspective(800px) rotateX(7deg);
  }

  .pitch-story-sticky::before {
    font-size: 34vw;
  }

  .matchday-pitch-map {
    inset: 16% -55% 5%;
    opacity: 0.34;
  }

  .matchday-system {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .matchday-flow {
    margin-bottom: 2rem;
  }

  /* Keep the mobile story connected: adjacent sections should not stack
     two desktop-sized gutters between their last and first pieces of content. */
  .release-ribbon {
    margin-top: 1.5rem;
    margin-bottom: 2.25rem;
  }

  .marketing-chapter {
    padding-block: 2.75rem;
  }

  .teammaker-chapter {
    padding-top: 2.15rem;
  }

  .touchline-promo {
    margin-block: 1.25rem;
  }

  .release-2026 {
    padding-block: 3.5rem;
  }

  .final-cta {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }

  .tactics-board {
    top: auto;
    right: -22%;
    bottom: 4%;
    width: 100vw;
    height: 54%;
    transform: rotate(6deg);
  }

  .career-stat-cloud {
    inset: 40% 0 auto;
    opacity: 0.8;
  }

  .career-stat-cloud span:nth-child(1) { left: 0; top: 40px; }
  .career-stat-cloud span:nth-child(2) { right: 0; top: 220px; }
  .career-stat-cloud span:nth-child(3),
  .career-stat-cloud span:nth-child(4) { display: none; }

  .health-telemetry {
    right: -25%;
    bottom: 2%;
    width: 130%;
    height: 25%;
  }

  .club-match-ticker {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    justify-items: center;
  }

  .full-time-mark {
    top: 2rem;
    right: -2rem;
  }

  .release-2026 .store-grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .release-2026 .store-card {
    min-height: 205px;
    padding: 1rem;
  }

  .release-2026 .store-card h3 {
    font-size: 1.35rem;
  }

  .release-2026 .store-card small {
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  .product-gateway {
    padding: 0.55rem;
  }

  .product-gateway-heading {
    padding: 0.3rem 0.45rem 0.55rem;
  }

  .product-gateway-heading h2 {
    font-size: 1.18rem;
  }

  .product-gateway-card {
    min-height: 76px;
    padding: 0.65rem;
  }

  .product-card-copy small {
    display: none;
  }

  .product-card-copy strong {
    font-size: 0.98rem;
  }

  .product-card-copy em {
    font-size: 0.54rem;
  }

  .marketing-chapter {
    padding-block: 2.5rem;
  }

  .teammaker-chapter { padding-top: 2rem; }

  .release-ribbon { margin-bottom: 1.75rem; }

  .release-2026 { padding-block: 3rem; }

  .final-cta { padding-bottom: 3rem; }

  .marketing-phone-shot picture {
    border-width: 4px;
    border-radius: 27px;
  }

  .pitch-radar { display: none; }

  .broadcast-score {
    right: -0.5rem;
    bottom: 1rem;
    width: 142px;
  }

  .career-stat-cloud span {
    min-width: 96px;
    padding: 0.48rem 0.55rem;
  }

  .career-stat-cloud span:nth-child(1) { top: 18px; }
  .career-stat-cloud span:nth-child(2) { top: 270px; }

  .pitch-scoreboard {
    top: 3%;
    min-width: 205px;
    padding: 0.42rem 0.58rem;
  }

  .pitch-scroll-copy { left: 3%; bottom: 4%; }
  .pitch-scroll-progress { right: 3%; bottom: 6%; width: 28%; }

  .release-2026 .store-card {
    min-height: 190px;
    padding: 0.82rem;
  }

  .release-2026 .store-card h3 { font-size: 1.15rem; }
  .release-2026 .store-card small { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stadium-light,
  .stadium-particle,
  .pitch-radar .radar-run,
  .release-2026 .store-card::before {
    animation: none !important;
    transition: none !important;
  }

  .hero-ball-trail,
  .route-ball {
    display: none;
  }

  .scroll-pitch-story {
    height: auto;
  }

  .pitch-story-sticky {
    position: relative;
    top: auto;
    height: auto;
  }

  .scroll-play-route {
    stroke-dashoffset: 0;
  }
}

body.motion-fallback .scroll-pitch-story {
  height: auto;
}

body.motion-fallback .pitch-story-sticky {
  position: relative;
  top: auto;
  height: auto;
}

body.motion-fallback .scroll-play-route {
  stroke-dashoffset: 0;
}
