:root {
  --bg-dark: #07070d;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --gold: #ffb800;
  --coral: #ff3b6b;
  --lime: #1db954;
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-syne: 'Syne', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.app-shell {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 184, 0, 0.16), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(29, 185, 84, 0.16), transparent 45%),
    #05050a;
}

.story-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  overflow: hidden;
  background: #0b0b14;
  display: flex;
  flex-direction: column;
}

/* On desktop viewports, frame it like a sleek Wrapped phone stage */
@media (min-width: 540px) {
  .story-stage {
    width: min(430px, 94vw);
    height: min(860px, 94dvh);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.78),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }
}

/* =========================================================
   TOP HUD & SEGMENTED PROGRESS BARS
   ========================================================= */
.story-hud {
  position: relative;
  z-index: 30;
  padding: calc(10px + var(--safe-top)) 14px 6px;
  background: linear-gradient(180deg, rgba(5, 5, 10, 0.76) 0%, rgba(5, 5, 10, 0) 100%);
  pointer-events: none;
}

.progress-bars {
  display: flex;
  gap: 5px;
  width: 100%;
  margin-bottom: 10px;
}

.progress-seg {
  flex: 1;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.progress-seg-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 99px;
  transition: width 0.12s linear;
}

.progress-seg.done .progress-seg-fill {
  width: 100%;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.hud-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 22, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  min-width: 30px;
  padding: 0 9px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hud-btn:active {
  transform: scale(0.92);
}

.hud-btn[hidden] {
  display: none;
}

/* =========================================================
   TAP ZONES
   ========================================================= */
.tap-zone {
  position: absolute;
  top: 72px;
  bottom: 112px;
  z-index: 15;
  cursor: pointer;
}

.tap-zone-prev {
  left: 0;
  width: 22%;
}

.tap-zone-next {
  right: 0;
  width: 24%;
}

/* =========================================================
   SLIDES CONTAINER & BASE SLIDE
   ========================================================= */
.slides-container {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  z-index: 10;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 18px 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.slide::-webkit-scrollbar {
  display: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

/* Background Art Layer */
.slide-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.slide-inner {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto 0;
}

/* =========================================================
   10 ROCKY × PHILLY SPOTIFY WRAPPED THEMES
   ========================================================= */

/* 0. INTRO THEME */
.theme-intro .slide-bg {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 184, 0, 0.42), transparent 50%),
    radial-gradient(circle at 18% 82%, rgba(255, 59, 107, 0.45), transparent 52%),
    linear-gradient(155deg, #130b29 0%, #090912 52%, #1d1106 100%);
}

/* 1. CHEESESTEAK BOXING GLOVES */
.theme-cheesesteak .slide-bg {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 208, 0, 0.42), transparent 52%),
    radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.42), transparent 55%),
    linear-gradient(160deg, #271303 0%, #140b07 55%, #2e1b04 100%);
}
.theme-cheesesteak .bg-orb-1 { background: #ffd000; }
.theme-cheesesteak .bg-orb-2 { background: #ea580c; }
.theme-cheesesteak .kicker-pill { color: #ffd000; }

/* 2. ROCKY STEPS */
.theme-steps .slide-bg {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 184, 0, 0.44), transparent 52%),
    radial-gradient(circle at 15% 85%, rgba(255, 79, 110, 0.36), transparent 55%),
    linear-gradient(165deg, #1f0e24 0%, #100c1e 55%, #2a1808 100%);
}

/* 3. LIBERTY BELL KNOCKOUT */
.theme-liberty .slide-bg {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 184, 0, 0.36), transparent 54%),
    radial-gradient(circle at 85% 80%, rgba(0, 229, 255, 0.32), transparent 50%),
    linear-gradient(160deg, #0b1422 0%, #110d1b 55%, #221908 100%);
}
.theme-liberty .bg-orb-1 { background: #fbbf24; }
.theme-liberty .bg-orb-2 { background: #00e5ff; }
.theme-liberty .kicker-pill { color: #00e5ff; }

/* 4. PRETZEL POWER-UP */
.theme-pretzel .slide-bg {
  background:
    radial-gradient(circle at 80% 22%, rgba(251, 146, 60, 0.44), transparent 50%),
    radial-gradient(circle at 18% 82%, rgba(250, 204, 21, 0.34), transparent 52%),
    linear-gradient(160deg, #251208 0%, #120c0a 54%, #261a0a 100%);
}
.theme-pretzel .bg-orb-1 { background: #fb923c; }
.theme-pretzel .bg-orb-2 { background: #facc15; }
.theme-pretzel .kicker-pill { color: #fdba74; }

/* 5. ROCKY TRAINING MONTAGE (1980s VHS) */
.theme-montage .slide-bg {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 59, 107, 0.44), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.48), transparent 52%),
    linear-gradient(160deg, #1a082f 0%, #090916 55%, #260b1d 100%);
}
.theme-montage .bg-orb-1 { background: #ff3b6b; }
.theme-montage .bg-orb-2 { background: #00e5ff; }
.theme-montage .kicker-pill { color: #ff5f8f; }

/* 6. PHILLY UNDERDOG (Eagles-Inspired Midnight Green & Silver) */
.theme-underdog .slide-bg {
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 128, 128, 0.48), transparent 55%),
    radial-gradient(circle at 20% 85%, rgba(165, 172, 175, 0.25), transparent 52%),
    linear-gradient(160deg, #002b30 0%, #061316 55%, #004c54 100%);
}
.theme-underdog .bg-orb-1 { background: #007a78; }
.theme-underdog .bg-orb-2 { background: #a5acaf; }
.theme-underdog .kicker-pill { color: #6ee7b7; }

/* 7. 12 ROUNDS OF MOTIVATION */
.theme-rounds .slide-bg {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 184, 0, 0.30), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(220, 38, 38, 0.40), transparent 52%),
    linear-gradient(160deg, #0b0b10 0%, #1c0c12 55%, #1d1607 100%);
}
.theme-rounds .bg-orb-1 { background: var(--gold); opacity: 0.32; }
.theme-rounds .bg-orb-2 { background: #ef4444; opacity: 0.36; }

/* 8. LOVE PARK */
.theme-lovepark .slide-bg {
  background:
    radial-gradient(circle at 22% 24%, rgba(239, 68, 68, 0.44), transparent 50%),
    radial-gradient(circle at 82% 78%, rgba(37, 99, 235, 0.40), transparent 52%),
    linear-gradient(160deg, #240914 0%, #0e0c1e 55%, #091d36 100%);
}
.theme-lovepark .bg-orb-1 { background: #ef4444; }
.theme-lovepark .bg-orb-2 { background: #3b82f6; }
.theme-lovepark .kicker-pill { color: #fda4af; }

/* 9. BROAD STREET BEAT DROP */
.theme-broadstreet .slide-bg {
  background:
    radial-gradient(circle at 15% 22%, rgba(0, 229, 255, 0.38), transparent 48%),
    radial-gradient(circle at 85% 75%, rgba(29, 185, 84, 0.38), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.25), transparent 60%),
    linear-gradient(160deg, #07131e 0%, #0e0b23 52%, #071915 100%);
}
.theme-broadstreet .bg-orb-1 { background: var(--cyan); }
.theme-broadstreet .bg-orb-2 { background: var(--lime); }
.theme-broadstreet .kicker-pill { color: var(--cyan); }

/* 10. ROCKY CHAMPIONSHIP BELT & FINALE */
.theme-belt .slide-bg,
.theme-finale .slide-bg {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 200, 44, 0.46), transparent 55%),
    radial-gradient(circle at 20% 85%, rgba(29, 185, 84, 0.32), transparent 52%),
    linear-gradient(165deg, #1c1304 0%, #0c0b16 54%, #091d14 100%);
}

/* Living Mesh Orb */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.45;
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 240px;
  height: 240px;
  top: -40px;
  right: -60px;
  background: var(--gold);
}

.bg-orb-2 {
  width: 220px;
  height: 220px;
  bottom: 40px;
  left: -70px;
  background: var(--coral);
  animation-delay: -4s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-22px, 28px) scale(1.16); }
}

/* Custom Theme Vector Artwork */
.theme-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.slide.active .theme-art {
  opacity: 1;
}

/* 1. Cheesesteak glove jab + dripping cheese */
.slide.active .glove-jab-left {
  animation: gloveJabLeft 2s ease-in-out infinite alternate;
}
.slide.active .glove-jab-right {
  animation: gloveJabRight 2s ease-in-out infinite alternate;
}
.slide.active .cheese-drip {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: cheeseDrip 2.4s ease-in-out infinite;
}
@keyframes gloveJabLeft {
  0% { transform: translate(0, 0) rotate(-6deg); }
  100% { transform: translate(12px, -6px) rotate(4deg); }
}
@keyframes gloveJabRight {
  0% { transform: translate(0, 0) rotate(6deg); }
  100% { transform: translate(-12px, -6px) rotate(-4deg); }
}
@keyframes cheeseDrip {
  0% { stroke-dashoffset: 90; opacity: 0.2; }
  60% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0.35; }
}

/* 2. Rocky Steps + musical notes */
.step-bar {
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}
.slide.active .step-bar {
  animation: stepReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.slide.active .step-note {
  animation: noteFloat 2.4s ease-in-out infinite alternate;
}
@keyframes stepReveal {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 0.24; }
}
@keyframes noteFloat {
  from { transform: translateY(0) scale(0.9); opacity: 0.25; }
  to { transform: translateY(-18px) scale(1.18); opacity: 0.65; }
}

/* 3. Liberty Bell swing + shockwave rings */
.liberty-bell-swing {
  transform-origin: 200px 95px;
}
.slide.active .liberty-bell-swing {
  animation: bellSwing 2.2s ease-in-out infinite alternate;
}
.bell-ring {
  transform-origin: center;
  opacity: 0;
}
.slide.active .bell-ring-1 {
  animation: bellShock 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.slide.active .bell-ring-2 {
  animation: bellShock 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s infinite;
}
@keyframes bellSwing {
  0% { transform: rotate(-9deg); }
  100% { transform: rotate(9deg); }
}
@keyframes bellShock {
  0% { transform: scale(0.35); opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* 4. Pretzel power-up + salt crystals */
.slide.active .pretzel-track {
  animation: pretzelPulse 2.4s ease-in-out infinite alternate;
}
.slide.active .salt-crystal {
  animation: saltFloat 2.6s ease-in-out infinite alternate;
}
@keyframes pretzelPulse {
  0% { stroke-opacity: 0.25; transform: scale(0.98); transform-origin: 200px 200px; }
  100% { stroke-opacity: 0.55; transform: scale(1.03); transform-origin: 200px 200px; }
}
@keyframes saltFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(25deg); }
}

/* 5. Retro 80s VHS Training Montage */
.montage-vhs-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}
.vhs-osd {
  position: absolute;
  top: 76px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(74, 222, 128, 0.65);
  text-shadow: 2px 0 rgba(255, 0, 128, 0.5);
}
.route-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.slide.active .route-path {
  animation: drawRoute 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.slide.active .sweat-drop {
  animation: sweatDrop 1.8s ease-in infinite;
}
@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}
@keyframes sweatDrop {
  0% { transform: translateY(-8px); opacity: 0; }
  35% { opacity: 0.65; }
  100% { transform: translateY(28px); opacity: 0; }
}

/* 6. Philly Underdog wings */
.eagle-wing {
  transform-origin: 200px 215px;
}
.slide.active .eagle-wing {
  animation: wingSpread 2.2s ease-in-out infinite alternate;
}
@keyframes wingSpread {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.06); }
}

/* 8. LOVE Park rising hearts */
.slide.active .love-heart {
  animation: heartRise 2.4s ease-in-out infinite alternate;
}
@keyframes heartRise {
  0% { transform: translateY(0) scale(0.9); opacity: 0.25; }
  100% { transform: translateY(-20px) scale(1.22); opacity: 0.72; }
}

/* 9. Broad Street Beat Drop skyline equalizer */
.skyline-eq-bar {
  transform-origin: bottom center;
}
.slide.active .skyline-eq-bar {
  animation: skylineBeat 0.85s ease-in-out infinite alternate;
}
@keyframes skylineBeat {
  0% { transform: scaleY(0.45); }
  100% { transform: scaleY(1.12); }
}

/* 10. Championship Belt Banner */
.champ-belt-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 92px;
  margin: 2px auto;
  overflow: hidden;
  border-radius: 14px;
  filter: drop-shadow(0 10px 24px rgba(255, 184, 0, 0.35));
}
.belt-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: beltShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes beltShine {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(130%); }
}

/* Confetti Canvas for Finale */
.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* =========================================================
   KINETIC STAGGERED ANIMATIONS
   ========================================================= */
.anim-item {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
}

.slide.active .anim-item {
  animation: kineticIn 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide.active .anim-slam {
  animation: kineticSlam 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.active .anim-d1 { animation-delay: 0.08s; }
.slide.active .anim-d2 { animation-delay: 0.2s; }
.slide.active .anim-d3 { animation-delay: 0.34s; }
.slide.active .anim-d4 { animation-delay: 0.48s; }
.slide.active .anim-d5 { animation-delay: 0.62s; }

@keyframes kineticIn {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes kineticSlam {
  0% { opacity: 0; transform: scale(1.22) translateY(-10px); letter-spacing: 0.08em; }
  70% { opacity: 1; transform: scale(0.97) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); letter-spacing: 0.01em; }
}

/* =========================================================
   TYPOGRAPHY & BADGES
   ========================================================= */
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.theme-electric .kicker-pill { color: var(--cyan); }
.theme-pace .kicker-pill { color: #ff9f43; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 11vw, 58px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero-title-accent {
  color: var(--gold);
  display: block;
}

.friend-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 9.5vw, 48px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.lead-copy {
  font-size: 15px;
  line-height: 1.48;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pace mile ticker pill */
.mile-ticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-syne);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 95, 31, 0.24);
  border: 1px solid rgba(255, 145, 77, 0.5);
  padding: 4px 10px;
  border-radius: 8px;
  align-self: flex-start;
}

/* =========================================================
   INTRO & FINALE CARDS
   ========================================================= */
.intro-badge-box {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-chip {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  line-height: 1.05;
}

.stat-chip span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta-btn {
  appearance: none;
  border: none;
  width: 100%;
  padding: 15px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #ff7b00 100%);
  color: #111;
  font-family: var(--font-syne);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 184, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn-spotify {
  background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
  color: #06140b;
  box-shadow: 0 12px 30px rgba(29, 185, 84, 0.36);
}

.cta-subhint {
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   SMART VIDEO FRAME (VERTICAL 9:16 vs HORIZONTAL 16:9)
   ========================================================= */
.video-card {
  position: relative;
  z-index: 25;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #05050a;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Default vertical story frame */
  aspect-ratio: 9 / 13.5;
  max-height: 45dvh;
  margin: 0 auto;
}

.theme-rounds .video-card,
.theme-cheesesteak .video-card,
.theme-belt .video-card {
  border-color: rgba(255, 184, 0, 0.65);
  box-shadow: 0 16px 44px rgba(255, 184, 0, 0.2);
}

.theme-broadstreet .video-card,
.theme-liberty .video-card {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 16px 44px rgba(0, 229, 255, 0.18);
}

.theme-underdog .video-card {
  border-color: rgba(110, 231, 183, 0.55);
  box-shadow: 0 16px 44px rgba(0, 76, 84, 0.45);
}

.theme-lovepark .video-card,
.theme-montage .video-card {
  border-color: rgba(255, 59, 107, 0.6);
  box-shadow: 0 16px 44px rgba(255, 59, 107, 0.22);
}

/* Automatically switches when video is horizontal (16:9) */
.video-card.is-horizontal-video {
  aspect-ratio: 16 / 9;
  max-height: 32dvh;
  width: 100%;
}

.video-card.is-vertical-crop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-card.is-vertical-video video {
  object-fit: cover;
}

.video-overlay-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.video-pill-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 16, 0.76);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.video-orientation-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

/* =========================================================
   WRITTEN QUOTE / MESSAGE CARD
   ========================================================= */
.quote-card {
  position: relative;
  z-index: 22;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(12, 12, 22, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
}

.quote-card.is-featured-quote {
  padding: 22px 18px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(12, 12, 22, 0.65) 100%);
  border-color: rgba(255, 184, 0, 0.35);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 0.7;
  color: var(--gold);
  margin-right: 4px;
  vertical-align: -4px;
}

/* =========================================================
   SPOTIFY SONG / PLAYLIST CARD (NO OFFICIAL LOGO)
   ========================================================= */
.spotify-card {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 14, 14, 0.78);
  border: 1px solid rgba(29, 185, 84, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.spotify-card.is-hero-song {
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px;
  gap: 16px;
  border-width: 1.5px;
  background: linear-gradient(155deg, rgba(29, 185, 84, 0.2) 0%, rgba(10, 14, 16, 0.88) 100%);
}

.spotify-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.eq-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #1ed760 0%, #15803d 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 9px 7px;
}

.eq-bar {
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: #06140b;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.eq-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; height: 13px; }
.eq-bar:nth-child(4) { animation-delay: 0.1s; height: 20px; }

@keyframes eqBounce {
  0% { transform: scaleY(0.45); }
  100% { transform: scaleY(1.05); }
}

.spotify-text {
  min-width: 0;
  flex: 1;
}

.spotify-type-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 2px;
}

.spotify-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-hero-song .spotify-title {
  font-size: 19px;
  white-space: normal;
}

.spotify-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-open-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #1db954;
  color: #051409;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.spotify-open-btn:active {
  transform: scale(0.95);
}

.is-hero-song .spotify-open-btn {
  padding: 13px 16px;
  font-size: 14px;
}

/* =========================================================
   BOTTOM WOMAN RUNNER PROGRESS BAR + NAV FOOTER
   ========================================================= */
.story-footer {
  position: relative;
  z-index: 30;
  padding: 8px 14px calc(10px + var(--safe-bottom));
  background: linear-gradient(0deg, rgba(6, 6, 12, 0.94) 40%, rgba(6, 6, 12, 0.55) 85%, rgba(6, 6, 12, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.runner-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.runner-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.runner-mile-badge {
  color: var(--gold);
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.runner-track {
  position: relative;
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: visible;
}

.runner-track-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12%;
  pointer-events: none;
}

.runner-track-ticks span {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.runner-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b6b 0%, #ffb800 55%, #1db954 100%);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.55);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.runner-woman {
  position: absolute;
  top: -24px;
  left: 0%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  pointer-events: none;
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
}

/* Animated Woman Runner Stride */
.runner-body-bounce {
  transform-origin: 22px 24px;
  animation: runnerBounce 0.36s ease-in-out infinite alternate;
}

.runner-ponytail {
  transform-origin: 19px 11px;
  animation: runnerPonytail 0.36s ease-in-out infinite alternate;
}

.runner-leg-front {
  transform-origin: 22px 25px;
  animation: runnerStrideFront 0.42s ease-in-out infinite alternate;
}

.runner-leg-back {
  transform-origin: 21px 25px;
  animation: runnerStrideBack 0.42s ease-in-out infinite alternate;
}

.runner-arm-front {
  transform-origin: 23px 16px;
  animation: runnerArmFront 0.42s ease-in-out infinite alternate;
}

.runner-arm-back {
  transform-origin: 22px 16px;
  animation: runnerArmBack 0.42s ease-in-out infinite alternate;
}

.runner-arms-victory {
  display: none;
}

/* At 100% / Finale: she celebrates with raised arms at the top of the steps */
.runner-woman.is-finished .runner-arm-front,
.runner-woman.is-finished .runner-arm-back {
  display: none;
}

.runner-woman.is-finished .runner-arms-victory {
  display: block;
}

.runner-woman.is-finished .runner-leg-front,
.runner-woman.is-finished .runner-leg-back {
  animation: none;
}

.runner-woman.is-finished .runner-body-bounce {
  animation: runnerVictoryJump 0.55s ease-in-out infinite alternate;
}

@keyframes runnerBounce {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-2.2px); }
}

@keyframes runnerVictoryJump {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

@keyframes runnerPonytail {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(12deg); }
}

@keyframes runnerStrideFront {
  0% { transform: rotate(-28deg); }
  100% { transform: rotate(28deg); }
}

@keyframes runnerStrideBack {
  0% { transform: rotate(28deg); }
  100% { transform: rotate(-28deg); }
}

@keyframes runnerArmFront {
  0% { transform: rotate(24deg); }
  100% { transform: rotate(-24deg); }
}

@keyframes runnerArmBack {
  0% { transform: rotate(-24deg); }
  100% { transform: rotate(24deg); }
}

.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.nav-btn-primary {
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b12;
  border-color: transparent;
}

.slide-counter {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.06em;
}
