/* Clash of Ballers landing: football meets the Colosseum (docs/POSTERS.md colours, the app's lettering faces). */
:root {
  --night: #0b0d1a;
  --night-2: #12152b;
  --navy: #1b2a6b;
  --blue: #1f3fa8;
  --red: #b3121b;
  --red-2: #d42a1e;
  --gold: #e8b23a;
  --gold-light: #ffd34a;
  --gold-deep: #b8860b;
  --sand: #e3c99a;
  --sand-dark: #b89568;
  --fire: #ff8a1e;
  --legend: #a45ee5;
  --chalk: #f6f1e6;
  --chalk-dim: #c9c0ae;
  --display: 'Luckiest Guy', 'Lilita One', Impact, sans-serif;
  --sub: 'Lilita One', 'Luckiest Guy', Impact, sans-serif;
  --print: 'Big Shoulders Display', Impact, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
/* The tilted banner and the card fan reach past the edges: clip them, so no phone can scroll sideways
   (some ignore overflow-x on body). */
main {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 600 17px/1.6 var(--body);
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--gold);
  color: #1a1206;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 28px;
  border-radius: 14px;
  font: 400 20px/1 var(--display);
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  padding-top: 4px;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold {
  color: #3a1d00;
  background: linear-gradient(180deg, #fff1a8 0%, var(--gold-light) 22%, var(--gold) 60%, var(--gold-deep) 100%);
  border: 3px solid #5a3200;
  box-shadow:
    inset 0 -5px 0 rgba(120, 60, 0, 0.45),
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    0 6px 0 #3a1d00,
    0 12px 28px rgba(255, 160, 30, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn-gold:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -3px 0 rgba(120, 60, 0, 0.45),
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 #3a1d00,
    0 6px 16px rgba(255, 160, 30, 0.3);
}
.btn-sm {
  --h: 42px;
  padding: 0 18px;
  font-size: 16px;
  border-radius: 11px;
}
.btn-lg {
  --h: 64px;
  padding: 0 36px;
  font-size: clamp(20px, 2.4vw, 26px);
  border-radius: 18px;
}
.btn-ball {
  font-size: 1.1em;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.nav.scrolled {
  background: rgba(11, 13, 26, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(232, 178, 58, 0.25), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.nav-logo img {
  width: 132px;
  height: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav.scrolled .nav-logo img {
  opacity: 1;
  transform: none;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font: 400 18px/1 var(--sub);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}
.nav-links a:hover {
  color: var(--gold-light);
  opacity: 1;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 90px var(--gutter) 80px;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
}
.hero-bg img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  animation: hero-zoom 18s ease-out both;
}
.hero-video {
  position: absolute;
  inset: 0;
  object-position: center 55%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.wide-video.ready {
  opacity: 1;
}
@media (min-width: 761px) {
  .hero-bg img {
    object-position: center 55%;
  }
  /* The wide arena is bright: a lighter veil, darker only behind the headline and at the bottom. */
  .hero .hero-shade {
    background:
      radial-gradient(ellipse 38% 46% at 50% 50%, rgba(11, 13, 26, 0.5), rgba(11, 13, 26, 0) 100%),
      linear-gradient(180deg, rgba(11, 13, 26, 0.45) 0%, rgba(11, 13, 26, 0.1) 22%, rgba(11, 13, 26, 0.15) 60%, var(--night) 100%);
  }
}
@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(11, 13, 26, 0.15), rgba(11, 13, 26, 0.75) 80%),
    linear-gradient(180deg, rgba(11, 13, 26, 0.55) 0%, rgba(11, 13, 26, 0) 25%, rgba(11, 13, 26, 0) 55%, var(--night) 100%);
}
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-fighter {
  position: absolute;
  bottom: 0;
  z-index: 0;
  width: clamp(260px, 32vw, 520px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.hero-blue {
  left: max(-60px, calc(50% - 760px));
  animation: in-left 1s 0.3s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.hero-red {
  right: max(-60px, calc(50% - 760px));
  animation: in-right 1s 0.45s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
@keyframes in-left {
  from {
    opacity: 0;
    translate: -40% 10%;
  }
}
@keyframes in-right {
  from {
    opacity: 0;
    translate: 40% 10%;
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 760px;
}
.hero-logo img {
  width: min(680px, 88vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255, 138, 30, 0.45)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  animation: logo-slam 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes logo-slam {
  from {
    opacity: 0;
    transform: scale(1.6) rotate(-3deg);
  }
}
.hero-tagline {
  margin: 4px 0 0;
  font: 400 clamp(28px, 4.6vw, 52px) / 1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px #1a0d02;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #1a0d02, 0 10px 24px rgba(0, 0, 0, 0.6);
}
.hero-tagline span {
  display: inline-block;
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.hero-tagline span:nth-child(1) {
  animation-delay: 0.7s;
}
.hero-tagline span:nth-child(2) {
  animation-delay: 0.85s;
}
.hero-tagline span:nth-child(3) {
  animation-delay: 1s;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
  }
}
.gold,
.t-gold {
  color: var(--gold-light);
}
.t-legend {
  color: #d6a8ff;
}
.hero-sub {
  max-width: 540px;
  margin: 14px 0 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--chalk);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  animation: fade-up 0.7s 1.15s both;
}
.hero-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: fade-up 0.7s 1.3s both;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
/* Apple's and Google's own badge artwork, unchanged; only its height is set (the same for both). */
.gp-badge,
.as-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.gp-badge img,
.as-badge img {
  display: block;
  height: 52px;
  width: auto;
}
.gp-badge:hover,
.as-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}
.gp-badge-lg img,
.as-badge-lg img {
  height: 60px;
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: cue 1.6s infinite;
}
@keyframes cue {
  to {
    transform: translateY(16px);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .hero {
    align-items: start;
    padding-top: 84px;
  }
  .hero-fighter {
    width: 54vw;
    opacity: 0.95;
  }
  .hero-blue {
    left: -14vw;
  }
  .hero-red {
    right: -14vw;
  }
  .hero-content {
    padding-bottom: 46vw;
  }
  .scroll-cue {
    display: none;
  }
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(180deg, var(--red-2), var(--red) 60%, #7c0a10);
  border-block: 4px solid var(--gold);
  box-shadow: 0 0 0 2px #3a1d00, 0 14px 30px rgba(0, 0, 0, 0.5);
  rotate: -1.5deg;
  margin: -24px -10px 0;
}
.banner-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0 10px;
  font: 400 clamp(22px, 3vw, 34px) / 1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 3px 0 #4a0408;
  animation: marquee 26s linear infinite;
}
.banner-track i {
  font-style: normal;
  color: var(--gold-light);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) var(--gutter);
}
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 16px 3px;
  border-radius: 999px;
  background: rgba(232, 178, 58, 0.14);
  border: 1px solid rgba(232, 178, 58, 0.5);
  color: var(--gold-light);
  font: 400 15px/1.2 var(--sub);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
h2 {
  font: 400 clamp(36px, 6vw, 68px) / 1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fff 0%, #fff 45%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #1a0d02) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  padding-top: 0.08em;
}
.lead {
  margin: 18px auto 0;
  max-width: 600px;
  color: var(--chalk-dim);
  font-size: 18px;
}

/* Stone texture used behind sections: sand blocks fading into the night. */
.how {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 138, 30, 0.14), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

/* ---------- Full-bleed section backgrounds ----------
   A painted scene behind the whole section (GPT Image in the game's style, docs/LANDING.md). Wide screens get
   a 4:3 scene that fills the section (its detail at the left and right fifths, its middle calm for the
   words), drifting a little slower than the page (main.js sets --py). Phones get their own 9:16 scene at the
   section's full width from its top, fading into the night below. Both fade into the night at the section's
   top and bottom so the sections run into each other. */
.section:has(> .section-bg) {
  isolation: isolate;
}
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--night);
}
.section-bg img {
  position: absolute;
  left: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--py, 0px), 0);
}
.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 46% at 50% 48%, rgba(11, 13, 26, 0.38), transparent 100%),
    linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 26, 0) 14%, rgba(11, 13, 26, 0) 86%, var(--night) 100%);
}
.section-bg-modes img {
  object-position: center 70%;
}
/* The gates' banners sit behind the heading: a darker veil there. */
.section-bg-modes::after {
  background:
    radial-gradient(ellipse 40% 26% at 50% 22%, rgba(11, 13, 26, 0.75), transparent 100%),
    radial-gradient(ellipse 34% 46% at 50% 55%, rgba(11, 13, 26, 0.3), transparent 100%),
    linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 26, 0) 14%, rgba(11, 13, 26, 0) 86%, var(--night) 100%);
}
@media (max-width: 760px) {
  .section-bg img {
    top: 0;
    height: auto;
    transform: none;
  }
  /* The heading sits over the scene's busiest part on a phone: a dark veil behind it. */
  .section .section-bg::after {
    background:
      radial-gradient(ellipse 62% 230px at 50% 175px, rgba(11, 13, 26, 0.82), rgba(11, 13, 26, 0.35) 70%, transparent 100%),
      linear-gradient(
      180deg,
      var(--night) 0%,
      rgba(11, 13, 26, 0) 7%,
      rgba(11, 13, 26, 0.15) calc(100vw * 1.787 - 220px),
      var(--night) calc(100vw * 1.787),
      var(--night) 100%
    );
  }
}
.section:has(> .section-bg) .lead {
  color: var(--chalk);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8);
}

/* ---------- Section ornament and accents ----------
   The gold crest over every section heading, and the characters and props standing beside some sections
   (GPT Image with transparent backgrounds): the sly captain by the trick cards, the lion with the League cup,
   the treasure chest by the Season Pass. The accents show on wide screens only, floating gently. */
.section-head::before {
  content: '';
  display: block;
  width: clamp(150px, 16vw, 210px);
  aspect-ratio: 520 / 295;
  margin: 0 auto 6px;
  background: url('/landing/img/acc-crest.webp') center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.accent {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
}
.accent.done {
  animation: float 6s ease-in-out infinite;
}
.accent-captain {
  right: max(12px, calc(50% - 700px));
  top: clamp(260px, 22vw, 330px);
  width: clamp(190px, 17vw, 260px);
}
.accent-lion {
  right: max(8px, calc(50% - 690px));
  bottom: clamp(30px, 4vw, 70px);
  width: clamp(170px, 15vw, 230px);
}
.accent-chest {
  left: max(8px, calc(50% - 720px));
  top: clamp(330px, 32vw, 480px);
  width: clamp(170px, 15vw, 240px);
}
@media (max-width: 1099px) {
  .accent {
    display: none;
  }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.step {
  position: relative;
  padding: 14px 14px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #2a2440, #191630);
  border: 3px solid var(--gold-deep);
  box-shadow:
    inset 0 0 0 2px rgba(255, 211, 74, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  transition: transform 0.25s ease;
}
.step:hover {
  transform: translateY(-6px) rotate(-0.6deg);
}
.step-art {
  aspect-ratio: 4 / 4.2;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.6);
}
.step-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s ease;
}
.step:hover .step-art img {
  transform: scale(1.06);
}
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -36px auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1a8, var(--gold) 45%, var(--gold-deep));
  border: 3px solid #3a1d00;
  box-shadow: 0 6px 0 #3a1d00, 0 10px 20px rgba(0, 0, 0, 0.5);
  color: #3a1d00;
  font: 400 34px/1 var(--display);
  padding-top: 5px;
}
.step h3 {
  font: 400 30px/1.1 var(--display);
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 3px 0 #1a0d02;
  padding-top: 4px;
}
.step p {
  margin: 10px auto 0;
  max-width: 300px;
  color: var(--chalk-dim);
}
.kickoff {
  margin: clamp(40px, 6vw, 70px) auto 0;
  width: min(640px, 90vw);
}
.kickoff img {
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* ---------- Modes ---------- */
.modes {
  background: linear-gradient(180deg, var(--night-2), var(--night));
}
.mode-row {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding-top: 50px;
}
.mode {
  --tone: #1f3fa8;
  position: relative;
  padding: 86px 26px 28px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--tone) 55%, transparent), transparent 70%),
    linear-gradient(180deg, #221d3a, #15122a);
  border: 3px solid var(--gold-deep);
  box-shadow: inset 0 0 0 2px rgba(255, 211, 74, 0.2), 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.3s ease;
}
.mode-coach {
  --tone: #b3121b;
}
.mode-draft {
  --tone: #6c2bb0;
}
.mode:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 2px rgba(255, 211, 74, 0.35), 0 26px 50px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--tone) 45%, transparent);
}
.mode-emblem {
  position: absolute;
  top: -56px;
  left: 50%;
  width: 132px;
  height: 132px;
  translate: -50% 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.mode:hover .mode-emblem {
  transform: scale(1.08) rotate(-6deg);
}
.mode h3 {
  font: 400 30px/1.1 var(--display);
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 3px 0 #1a0d02;
  padding-top: 4px;
}
.mode ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--chalk-dim);
  font-size: 16px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .mode-row {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 76px;
  }
}

/* ---------- Player cards ---------- */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
.cards h2 {
  text-align: left;
}
.cards-copy p {
  color: var(--chalk-dim);
  font-size: 18px;
}
.tiers {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font: 400 20px/1 var(--sub);
}
.tiers li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
}
.dot-normal {
  background: linear-gradient(135deg, #f4f4f4, #9aa3ad);
}
.dot-gold {
  background: linear-gradient(135deg, #fff1a8, var(--gold-deep));
}
.dot-legend {
  background: linear-gradient(135deg, #f0c4ff, #6c2bb0);
}
.card-fan {
  position: relative;
  height: clamp(380px, 46vw, 540px);
  perspective: 1200px;
}
.pcard {
  --rot: 0deg;
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 21vw, 270px);
  aspect-ratio: 5 / 7;
  padding: 10px;
  border-radius: 18px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotate(var(--rot)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  cursor: pointer;
}
.pcard.tier-normal {
  --rot: -14deg;
  margin-left: -32%;
  margin-top: 4%;
  background: linear-gradient(145deg, #ffffff, #c9d0d8 40%, #8d97a2);
}
.pcard.tier-gold {
  --rot: 14deg;
  margin-left: 32%;
  margin-top: 4%;
  z-index: 1;
  background: linear-gradient(145deg, #fff1a8, var(--gold) 35%, var(--gold-deep) 70%, #ffe27a);
  box-shadow: 0 0 50px rgba(255, 196, 60, 0.35), 0 30px 50px rgba(0, 0, 0, 0.55);
}
.pcard.tier-legend {
  --rot: 0deg;
  z-index: 2;
  margin-top: -3%;
  background: linear-gradient(145deg, #f3c9ff, #a45ee5 35%, #4b1a8c 70%, #93cef0);
  box-shadow: 0 0 60px rgba(180, 100, 255, 0.45), 0 30px 50px rgba(0, 0, 0, 0.55);
}
.pcard:hover {
  z-index: 5;
}
.pcard-art {
  position: relative;
  height: 72%;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 22px, transparent 22px 44px),
    linear-gradient(180deg, #4dbbea, #2aa7df);
  border: 2px solid rgba(0, 0, 0, 0.5);
}
.tier-legend .pcard-art {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 22px, transparent 22px 44px),
    linear-gradient(180deg, #6a3bb5, #2a1660);
}
.tier-gold .pcard-art {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 22px, transparent 22px 44px),
    linear-gradient(180deg, #d42a1e, #7c0a10);
}
.pcard-art img,
.pcard-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.pcard-tier {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 4px 10px 2px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  font: 900 13px/1.1 var(--print);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pcard-name {
  margin-top: 6px;
  color: #151515;
  font: 900 clamp(18px, 2vw, 24px) / 1 var(--print);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
}
.tier-legend .pcard-name {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.pcard-stats {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.pcard-stats span {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 2px;
  border-radius: 8px;
  border: 2px solid #fff;
  color: #fff;
  font: 900 clamp(22px, 2.4vw, 30px) / 1 var(--print);
}
.pcard-stats small {
  font-size: 0.45em;
  letter-spacing: 1px;
  opacity: 0.85;
}
.atk {
  background: #b3141c;
}
.def {
  background: #151515;
}
.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%);
  background-size: 250% 100%;
  mix-blend-mode: overlay;
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.tier-legend .shine {
  background: linear-gradient(115deg, transparent 25%, rgba(238, 159, 214, 0.6) 40%, rgba(147, 206, 240, 0.6) 50%, rgba(159, 228, 196, 0.5) 58%, transparent 70%);
  background-size: 250% 100%;
  animation-delay: 1.4s;
}
@keyframes shine {
  0%,
  40% {
    background-position: 150% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cards h2 {
    text-align: center;
  }
  .tiers {
    justify-content: center;
  }
  .card-fan {
    height: clamp(360px, 95vw, 480px);
  }
  .pcard {
    width: clamp(160px, 42vw, 230px);
  }
}

/* ---------- Options ---------- */
.options {
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(31, 63, 168, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
}
.options-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}
.mystery {
  position: relative;
  width: 170px;
  margin-bottom: 40px;
  animation: float 4s ease-in-out infinite;
}
.mystery img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--gold), 0 0 60px rgba(164, 94, 229, 0.7), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.mystery span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 110px/1 var(--display);
  color: var(--gold-light);
  -webkit-text-stroke: 4px #2a0f45;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #2a0f45, 0 0 30px rgba(255, 211, 74, 0.8);
  padding-top: 14px;
}
@keyframes float {
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}
.coins {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.coin {
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.coin:hover {
  background: linear-gradient(135deg, rgba(232, 178, 58, 0.16), rgba(232, 178, 58, 0.04) 60%);
  border-color: rgba(255, 211, 74, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 196, 60, 0.18);
  transform: translateY(-4px);
}
/* The coin: a golden halo wakes up behind it, it pops with a little tilt, and a glint sweeps its face. */
.coin-icon {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
}
.coin-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 74, 0.8) 0%, rgba(255, 160, 30, 0.35) 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.coin-icon::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.75) 48%, transparent 60%);
  background-size: 300% 100%;
  background-position: 120% 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.coin img {
  position: relative;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}
.coin:hover .coin-icon::before {
  opacity: 1;
  transform: scale(1);
}
.coin:hover img {
  animation: coin-pop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) forwards;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)) brightness(1.08);
}
.coin:hover .coin-icon::after {
  animation: coin-glint 0.8s 0.15s ease-out;
}
@keyframes coin-pop {
  0% {
    transform: scale(1) rotate(0);
  }
  45% {
    transform: scale(1.2) rotate(-10deg);
  }
  75% {
    transform: scale(1.08) rotate(5deg);
  }
  100% {
    transform: scale(1.12) rotate(0);
  }
}
@keyframes coin-glint {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -40% 0;
  }
}
.coin h3 {
  font: 400 22px/1.1 var(--sub);
  color: var(--gold-light);
  align-self: end;
}
.coin p {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--chalk-dim);
  align-self: start;
}
@media (max-width: 900px) {
  .coins {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .coins {
    grid-template-columns: 1fr;
  }
}

/* ---------- Packs ---------- */
.packs {
  overflow: hidden;
  isolation: isolate;
}
.packs-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.packs-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.packs-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 26, 0.35) 30%, rgba(11, 13, 26, 0.35) 70%, var(--night) 100%);
}
.pack-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
  align-items: end;
}
.pack {
  margin: 0;
  text-align: center;
}
.sprite {
  width: 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}
.pack-mid .sprite {
  transform: scale(1.12);
}
.pack figcaption {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.pack b {
  font: 400 28px/1 var(--display);
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 3px 0 #1a0d02;
}
.pack b.t-legend {
  color: #d6a8ff;
}
.pack span {
  color: var(--chalk-dim);
  font-size: 15px;
}
/* Wide screens: the vault picture spans the section, bottom-aligned, and each pack stands on one of its
   three pedestals (centred at 29.75 %, 50 % and 70 % of the picture's width, their tops 16.3 % of the width
   above its bottom), with its name on the pedestal's face. */
@media (min-width: 900px) {
  .packs {
    padding-bottom: 13.6vw;
  }
  .packs-bg {
    background: #0d0b24;
  }
  .packs-bg img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    opacity: 1;
  }
  .packs-bg::after {
    background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 26, 0.72) 24%, rgba(11, 13, 26, 0) 50%, rgba(11, 13, 26, 0) 88%, var(--night) 100%);
  }
  .pack-row {
    width: 60.5vw;
    max-width: none;
    gap: 0;
    margin-left: calc(50% - 30.25vw + 0.5vw * 0);
  }
  .pack {
    position: relative;
    padding: 0 2.2vw;
  }
  .pack-mid .sprite {
    transform: none;
  }
  .pack figcaption {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 15vw;
    translate: -50% 0;
    margin-top: 0.5vw;
    gap: 2px;
  }
  .pack b {
    font-size: clamp(20px, 1.7vw, 30px);
  }
  .pack span {
    white-space: nowrap;
    font-size: clamp(11px, 0.85vw, 14px);
    line-height: 1.3;
    color: #e9e2ff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  }
}
@media (max-width: 700px) {
  .pack-row {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

/* ---------- Weekly League ---------- */
.league {
  background:
    radial-gradient(ellipse 60% 45% at 50% 20%, rgba(108, 43, 176, 0.3), transparent 70%),
    linear-gradient(180deg, var(--night), #120f26);
}
.league-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}
.league-art {
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  border-radius: 24px;
  border: 3px solid var(--gold-deep);
  box-shadow: inset 0 0 0 2px rgba(255, 211, 74, 0.2), 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(108, 43, 176, 0.35);
}
.league-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.8s ease;
}
.league-art:hover img {
  transform: scale(1.05);
}
.league-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.league-rules li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1.35;
}
.league-rules b img {
  width: 70%;
  height: auto;
}
.league-rules b {
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1a8, var(--gold) 45%, var(--gold-deep));
  border: 3px solid #3a1d00;
  box-shadow: 0 5px 0 #3a1d00;
  color: #3a1d00;
  font: 400 28px/1 var(--display);
  padding-top: 4px;
}
.divisions {
  list-style: none;
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding: 0 0 18px;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  position: relative;
}
/* A gold rail under the trophies, rising from the backstreets to the Colosseum. */
.divisions::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 44px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8a5a2b, var(--gold-light));
  box-shadow: 0 0 18px rgba(255, 211, 74, 0.5);
}
.div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.div img {
  width: clamp(70px, 9vw, 110px);
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.div:nth-child(2) img {
  width: clamp(78px, 10vw, 122px);
}
.div:nth-child(3) img {
  width: clamp(86px, 11vw, 134px);
}
.div:nth-child(4) img {
  width: clamp(94px, 12vw, 148px);
}
.div-top img {
  width: clamp(104px, 13.5vw, 170px);
  filter: drop-shadow(0 0 30px rgba(255, 211, 74, 0.55)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
}
.div:hover img {
  transform: translateY(-8px) scale(1.06);
}
.div span {
  position: relative;
  z-index: 1;
  padding: 6px 12px 3px;
  border-radius: 999px;
  background: #1b1636;
  border: 2px solid var(--gold-deep);
  font: 400 clamp(13px, 1.3vw, 17px) / 1 var(--sub);
  color: var(--chalk);
}
.div-top span {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
@media (max-width: 860px) {
  .league-row {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .league-art {
    aspect-ratio: 16 / 11;
  }
  .league-rules li {
    font-size: 16px;
  }
  .league-rules b {
    flex-basis: 52px;
    height: 52px;
    font-size: 22px;
  }
  .divisions {
    gap: 4px;
  }
  .div span {
    padding: 5px 7px 2px;
  }
}

/* ---------- Season Pass ---------- */
.pass {
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(232, 178, 58, 0.14), transparent 70%),
    linear-gradient(180deg, #120f26, var(--night));
}
.pass-banner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  border: 3px solid var(--gold-deep);
  box-shadow: inset 0 0 0 2px rgba(255, 211, 74, 0.2), 0 24px 50px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 7;
}
.pass-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.pass-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 13, 26, 0.85) 100%);
}
.pass-points {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 18px;
  list-style: none;
  margin: 0;
  padding: 0 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pass-points li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px 6px;
  border-radius: 999px;
  background: rgba(11, 13, 26, 0.75);
  border: 1px solid rgba(255, 211, 74, 0.45);
  font-size: 15px;
  color: var(--chalk);
}
.pass-points b {
  font: 400 22px/1 var(--display);
  color: var(--gold-light);
}
.pass-points .pass-per {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #3a1d00;
  font-weight: 800;
}
.pass-points .pass-per b {
  color: #3a1d00;
}
.track-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: clamp(36px, 5vw, 56px) 0 16px;
  font: 400 16px/1 var(--sub);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.track-legend span::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: -1px;
}
.lg-free::before {
  background: #2f5fbf;
}
.lg-premium::before {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
}
.track {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
}
.tier {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #1b1636;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.2, 1.2, 0.4, 1), border-color 0.3s ease;
}
.tier:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 211, 74, 0.6);
}
.tier-top {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255, 196, 60, 0.3);
}
.tier-num {
  justify-self: center;
  padding: 5px 14px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font: 400 18px/1 var(--display);
  color: var(--gold-light);
  text-transform: uppercase;
}
.rw {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}
.rw-free {
  background: linear-gradient(180deg, #2f5fbf, #1d3a7a);
}
.rw-premium {
  background: linear-gradient(180deg, #c99a2e, #7a5410);
  color: #fff7dc;
}
.rw img {
  width: clamp(48px, 5vw, 64px);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}
.rw-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rw-pair > img {
  width: clamp(40px, 4vw, 52px);
}
/* An avatar frame: a ring in the frame's colours (apps/mobile/src/lib/frames.ts). */
.rw-frame {
  display: grid;
  place-items: center;
  width: clamp(42px, 4.2vw, 54px);
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 50%;
}
.rw-frame img {
  width: 100%;
  border-radius: 50%;
  filter: none;
}
.rw-frame-laurel {
  background: conic-gradient(#b8e07a, #3e8e41, #f5d46a, #2e6b2f, #b8e07a);
}
.rw-frame-flame {
  background: conic-gradient(#ffe27a, #ff8a1f, #e5262e, #7a0a12, #ffe27a);
}
.rw-frame-champion {
  background: conic-gradient(#fff6c2, #f2c94c, #b8860b, #ffe27a, #fff6c2);
}
.track-note {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--chalk-dim);
  font-size: 15px;
}
/* Narrower screens: the five tiers wrap (3 + 2, then 2 + 2 + 1), tier 30 taking the last row's room. */
@media (max-width: 1000px) {
  .pass-banner {
    aspect-ratio: 16 / 9;
  }
  .track {
    grid-template-columns: repeat(3, 1fr);
    max-width: 680px;
  }
  .tier-top {
    grid-column: span 2;
  }
  .tier-top .rw {
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .pass-banner {
    aspect-ratio: 4 / 3;
  }
  .pass-points li {
    padding: 6px 12px 4px;
    font-size: 13px;
  }
  .pass-points b {
    font-size: 18px;
  }
  .track {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-top .rw {
    grid-auto-flow: row;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  padding-inline: 0;
}
.reel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 24px;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar {
  display: none;
}
.reel img {
  flex: 0 0 auto;
  width: min(720px, 82vw);
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid var(--gold-deep);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  scroll-snap-align: center;
}
.reel-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.reel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #3a1d00;
  background: radial-gradient(circle at 35% 30%, #fff1a8, var(--gold) 45%, var(--gold-deep));
  color: #3a1d00;
  font: 400 34px/1 var(--display);
  cursor: pointer;
  box-shadow: 0 5px 0 #3a1d00;
  padding: 0 0 2px;
}
.reel-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #3a1d00;
}

/* ---------- Play anywhere ---------- */
.anywhere {
  display: grid;
  grid-template-columns: auto minmax(0, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(179, 18, 27, 0.25), transparent 70%);
}
.phone {
  position: relative;
  width: clamp(230px, 24vw, 300px);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(145deg, #3b3f4a, #111318);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 0 3px #0a0b0f,
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 138, 30, 0.25);
  rotate: -5deg;
}
.phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 32%;
  height: 22px;
  translate: -50% 0;
  border-radius: 12px;
  background: #000;
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  background: #000;
}
.anywhere-copy h2 {
  text-align: left;
}
.anywhere-copy > p {
  color: var(--chalk-dim);
  font-size: 18px;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: grid;
  gap: 10px;
}
.perks li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.perks li::before {
  content: '✓';
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #3a1d00;
  font-weight: 800;
}
.anywhere-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}
.qr {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.4;
  color: var(--chalk-dim);
}
.qr img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.qr b {
  color: var(--chalk);
}
@media (max-width: 820px) {
  .anywhere {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .anywhere-copy h2 {
    text-align: center;
  }
  .perks {
    justify-items: center;
  }
  .anywhere-stores {
    justify-content: center;
  }
  .qr {
    display: none;
  }
}

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(100px, 14vw, 180px) var(--gutter);
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.final-bg img,
.final-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.final-video {
  position: absolute;
  inset: 0;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
/* Wide screens: the arena's own trophy on its podium is the picture, so the section opens up to show it
   and the words sit low, on the sand, under it. */
@media (min-width: 761px) {
  .final {
    min-height: min(66vw, 1000px);
    align-content: end;
    gap: 10px;
    padding-bottom: clamp(32px, 3.5vw, 56px);
  }
  .final-bg img {
    object-position: center 40%;
  }
  .final .final-trophy {
    display: none;
  }
  .final .final-bg::after {
    background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 26, 0) 16%, rgba(11, 13, 26, 0) 62%, rgba(11, 13, 26, 0.8) 86%, rgba(11, 13, 26, 0.92) 100%);
  }
}
.final-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 26, 0.25) 35%, rgba(11, 13, 26, 0.55) 100%);
}
.final-trophy {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255, 211, 74, 0.7));
  animation: float 4s ease-in-out infinite;
}
.final p {
  margin: 0 0 16px;
  font: 400 22px/1.2 var(--sub);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.final-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.final .final-small {
  margin: 0;
  font: 600 13px/1.4 var(--body);
  color: var(--chalk-dim);
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 48px var(--gutter) max(40px, env(safe-area-inset-bottom));
  background: #07080f;
  border-top: 3px solid var(--gold-deep);
  color: var(--chalk-dim);
  font-size: 14px;
  text-align: center;
}
.footer img {
  width: 160px;
  height: auto;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer nav a {
  text-decoration: none;
  font: 400 17px/1 var(--sub);
  color: var(--chalk);
}
.footer nav a:hover {
  color: var(--gold-light);
}
.footer p {
  margin: 0;
}

/* ---------- Scroll entrances ----------
   Every block enters in its own way as it scrolls into view (main.js adds .in, staggering siblings
   through --delay, then swaps .in for .done so hover effects and idle loops take over):
   pop (labels, buttons), slam (headlines, like the logo), rise, deal (cards dealt onto the table), stamp,
   left / right, flip (the face-down card), roll (the trick coins), drop (onto a pedestal or the sand),
   tilt (the phone). */
.js .reveal {
  opacity: 0;
}
.js .reveal.done {
  opacity: 1;
}
.js .reveal.in:not(.pcard) {
  animation: var(--anim, a-rise) var(--dur, 0.8s) var(--ease, cubic-bezier(0.2, 1, 0.3, 1)) var(--delay, 0s) both;
}
[data-anim='pop'] {
  --anim: a-pop;
  --dur: 0.6s;
  --ease: cubic-bezier(0.3, 1.5, 0.5, 1);
}
[data-anim='slam'] {
  --anim: a-slam;
  --dur: 0.75s;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}
[data-anim='rise'] {
  --anim: a-rise;
}
[data-anim='deal'] {
  --anim: a-deal;
  --dur: 0.9s;
}
[data-anim='stamp'] {
  --anim: a-stamp;
  --dur: 0.7s;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}
[data-anim='left'] {
  --anim: a-left;
}
[data-anim='right'] {
  --anim: a-right;
}
[data-anim='flip'] {
  --anim: a-flip;
  --dur: 1s;
}
[data-anim='roll'] {
  --anim: a-roll;
  --dur: 0.7s;
}
[data-anim='drop'] {
  --anim: a-drop;
  --dur: 0.9s;
  --ease: ease-out;
}
[data-anim='tilt'] {
  --anim: a-tilt;
  --dur: 1s;
}
@keyframes a-pop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  60% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-slam {
  0% {
    opacity: 0;
    transform: scale(1.9) rotate(-3deg);
  }
  55% {
    opacity: 1;
    transform: scale(0.95) rotate(0.5deg);
  }
  68% {
    transform: translate(-4px, 2px) scale(1.02);
  }
  80% {
    transform: translate(3px, -1px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-deal {
  0% {
    opacity: 0;
    transform: translateY(140px) rotate(-14deg) scale(0.75);
  }
  65% {
    opacity: 1;
    transform: translateY(-10px) rotate(2deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-stamp {
  0% {
    opacity: 0;
    transform: scale(2.4) rotate(-8deg);
  }
  50% {
    opacity: 1;
    transform: scale(0.92) rotate(1deg);
  }
  62% {
    transform: translate(-6px, 3px);
  }
  74% {
    transform: translate(5px, -2px);
  }
  86% {
    transform: translate(-2px, 1px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-left {
  from {
    opacity: 0;
    transform: translateX(-80px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-right {
  from {
    opacity: 0;
    transform: translateX(80px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-flip {
  0% {
    opacity: 0;
    transform: perspective(900px) translateY(-60px) rotateY(180deg) scale(0.6);
  }
  40% {
    opacity: 1;
  }
  75% {
    transform: perspective(900px) translateY(6px) rotateY(-12deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateY(0) scale(1);
  }
}
@keyframes a-roll {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-drop {
  0% {
    opacity: 0;
    transform: translateY(-160px);
  }
  45% {
    opacity: 1;
    transform: translateY(0);
  }
  62% {
    transform: translateY(-22px);
  }
  78% {
    transform: translateY(0);
  }
  89% {
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-tilt {
  0% {
    opacity: 0;
    transform: translateY(120px) rotate(-14deg);
  }
  70% {
    opacity: 1;
    transform: translateY(-8px) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Parts that land a beat after their block: the step's gold number, a mode's emblem, the League cup,
   each trick coin. */
@keyframes a-coin {
  0% {
    opacity: 0;
    transform: translateY(-90px) rotate(-220deg) scale(0.4);
  }
  65% {
    opacity: 1;
    transform: translateY(6px) rotate(12deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes a-spin {
  from {
    transform: rotate(-360deg) scale(0.5);
  }
  to {
    transform: none;
  }
}
.js .step.in .step-num,
.js .mode.in .mode-emblem,
.js .tier-top.in .rw-frame {
  animation: a-coin 0.8s cubic-bezier(0.2, 1, 0.3, 1) calc(var(--delay, 0s) + 0.35s) both;
}
.js .coin.in .coin-icon img {
  animation: a-spin 0.8s cubic-bezier(0.2, 1, 0.3, 1) var(--delay, 0s) both;
}

/* The player cards are dealt from the deck, each to its place in the fan. */
.js .pcard.reveal {
  transform: translate(-50%, -50%) translateY(120px) rotate(0deg) scale(0.65);
}
.js .pcard.reveal.in {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--rot)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, opacity 0.5s ease;
}
.js .pcard.reveal.in.entering {
  transition: transform 1s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .pcard.reveal {
    transform: translate(-50%, -50%) rotate(var(--rot));
  }
  .embers {
    display: none;
  }
}
