/* 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%;
}
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;
  justify-content: center;
}
.store {
  display: grid;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: left;
  line-height: 1.15;
}
.store b {
  font: 400 17px/1.1 var(--sub);
}
.store small {
  font-size: 12px;
  color: var(--chalk-dim);
}
.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%);
}

/* ---------- 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;
  }
}

/* ---------- 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;
  }
}

/* ---------- 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;
}
.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;
  }
  .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);
}

/* ---------- 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 reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .pcard.reveal {
  transform: translate(-50%, -50%) translateY(60px) rotate(0deg) scale(0.8);
}
.js .pcard.reveal.in {
  transform: translate(-50%, -50%) rotate(var(--rot)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, opacity 0.7s ease;
}
.js .pcard.reveal.in.entering {
  transition: transform 0.9s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.7s 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;
  }
}
