/* ==========================================================================
   SCORE — COMPLETE AAA VISUAL, MOTION & EDITORIAL OVERHAUL
   Miami Sunset Atmosphere · Mission Dossier Cards · Buttery Lenis + GSAP
   ========================================================================== */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   1. LAYERED GLOBAL ATMOSPHERE & PER-PAGE LIGHTING
   ========================================================================== */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-base {
  position: absolute;
  inset: 0;
  background: #08070C;
}

.ambient-wash {
  position: absolute;
  inset: -10%;
  opacity: 0.72;
  transition: background 600ms ease, opacity 600ms ease;
  background:
    radial-gradient(ellipse 68% 42% at 78% 12%, rgba(244, 109, 91, 0.085), transparent 62%),
    radial-gradient(ellipse 52% 46% at 16% 68%, rgba(36, 19, 34, 0.55), transparent 65%);
}

.ambient-rim {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: radial-gradient(ellipse 56% 32% at 50% 100%, rgba(245, 54, 147, 0.06), transparent 66%);
}

/* Scene lighting per route — subtle shift in mood while staying one cohesive world */
body[data-screen="bounties"] .ambient-wash {
  background:
    radial-gradient(ellipse 62% 38% at 84% 6%, rgba(242, 236, 229, 0.035), transparent 60%),
    radial-gradient(ellipse 48% 42% at 12% 30%, rgba(36, 19, 34, 0.42), transparent 65%);
}
body[data-screen="create"] .ambient-wash {
  background:
    radial-gradient(ellipse 58% 40% at 76% 8%, rgba(245, 54, 147, 0.11), transparent 62%),
    radial-gradient(ellipse 46% 38% at 18% 72%, rgba(244, 109, 91, 0.06), transparent 65%);
}
body[data-screen="treasury"] .ambient-wash {
  background:
    radial-gradient(ellipse 64% 42% at 50% 6%, rgba(245, 154, 89, 0.10), transparent 62%),
    radial-gradient(ellipse 48% 40% at 82% 72%, rgba(36, 19, 34, 0.5), transparent 65%);
}
body[data-screen="leaderboard"] .ambient-wash {
  background:
    radial-gradient(ellipse 66% 38% at 50% 4%, rgba(244, 109, 91, 0.10), transparent 58%),
    radial-gradient(ellipse 45% 40% at 15% 65%, rgba(245, 54, 147, 0.06), transparent 65%);
}

.film-grain {
  opacity: 0.026;
}

/* Branded Route Progress Hairline */
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 900;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-coral), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}
.route-progress.loading {
  opacity: 1;
  transform: scaleX(0.72);
}
.route-progress.done {
  opacity: 0;
  transform: scaleX(1);
}

/* ==========================================================================
   1.5 TOP UTILITY STRIP (CENTERED X + CA: SOON)
   ========================================================================== */
.score-top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 260;
  background: rgba(7, 6, 10, 0.96);
  border-bottom: 1px solid rgba(242, 236, 229, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.score-top-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.top-x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 3px;
  background: rgba(245, 54, 147, 0.14);
  border: 1px solid rgba(245, 54, 147, 0.42);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}

.top-x-link:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #FFFFFF;
}

.top-strip-dot {
  color: rgba(242, 236, 229, 0.28);
  font-weight: 700;
}

.top-ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 3px;
  background: rgba(242, 236, 229, 0.06);
  border: 1px solid rgba(242, 236, 229, 0.14);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.top-ca-btn:hover {
  background: rgba(242, 236, 229, 0.12);
  border-color: rgba(245, 54, 147, 0.45);
}

/* ==========================================================================
   2. INTEGRATED TRANSPARENT-TO-FLOATING NAVBAR
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 250;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease, backdrop-filter 320ms ease;
}

.site-nav .nav-inner {
  height: 78px;
  transition: height 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav.nav-transparent {
  background: linear-gradient(180deg, rgba(8, 7, 12, 0.72) 0%, rgba(8, 7, 12, 0) 100%);
}

.site-nav.nav-scrolled {
  background: rgba(11, 10, 15, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242, 236, 229, 0.09);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.site-nav.nav-scrolled .nav-inner {
  height: 62px;
}

.nav-links {
  position: relative;
}

.nav-marker {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-coral));
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(242, 236, 229, 0.74);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink-primary);
  background: transparent;
  box-shadow: none;
}

.nav-link-create {
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 4px;
  border: 1px solid rgba(242, 236, 229, 0.2);
  color: var(--ink-primary);
  background: rgba(242, 236, 229, 0.03);
  transition: border-color 180ms ease, background 180ms ease, transform 150ms ease;
}

.nav-link-create:hover,
.nav-link-create.active {
  border-color: var(--accent-pink);
  background: rgba(245, 54, 147, 0.12);
}

/* Premium Connect Wallet CTA with subtle sheen sweep */
.btn-wallet {
  position: relative;
  overflow: hidden;
  background: var(--ink-primary);
  color: #09080D;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.btn-wallet::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 54, 147, 0.24), transparent);
  transform: skewX(-22deg);
  transition: left 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-wallet:hover::after {
  left: 150%;
}

.wallet-chip {
  animation: walletPop 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wallet-dot {
  animation: dotPulseOnce 900ms ease-out 1;
}
@keyframes walletPop {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dotPulseOnce {
  0% { box-shadow: 0 0 0 0 rgba(56, 211, 153, 0.65); }
  100% { box-shadow: 0 0 0 8px rgba(56, 211, 153, 0); }
}

/* Inner screens clear top strip + fixed navbar cleanly */
.score-route:not([data-screen="home"]) {
  padding-top: 106px;
}

/* ==========================================================================
   3. MAGNETIC TACTILE BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, border-color 180ms ease, box-shadow 220ms ease, color 180ms ease;
}

.btn:active:not(:disabled) {
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(0.97);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-24deg);
  transition: left 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled)::before {
  left: 155%;
}

.btn-arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   4. CRISP NATIVE 3:1 HD BANNER HERO (ZERO PIXELATION / ZERO STRETCH)
   ========================================================================== */
.score-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-hd-section {
  position: relative;
  padding-top: 106px;
  background: #08070C;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 54, 147, 0.16);
}

.hero-hd-stage {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-hd-frame {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

.score-route.route-enter {
  animation: scoreRouteReveal 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes scoreRouteReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-hd-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  will-change: transform;
  animation: heroImgArrive 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroImgArrive {
  from { opacity: 0.35; scale: 1.035; }
  to { opacity: 1; scale: 1; }
}

.hero-hd-dock {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: clamp(-74px, -4.6vw, -24px) auto 0;
  padding: 0 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-hd-dock .hero-sub {
  animation: heroDockItem 520ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}
.hero-hd-dock .hero-actions {
  animation: heroDockItem 520ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}
.hero-hd-dock .hero-pool-bar {
  animation: heroDockItem 520ms cubic-bezier(0.22, 1, 0.36, 1) 340ms both;
}

@keyframes heroDockItem {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-hd-dock .hero-sub {
  max-width: 500px;
  font-size: 0.98rem;
  color: rgba(242, 236, 229, 0.84);
  margin-top: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-hd-dock .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-hd-dock .hero-pool-bar {
  margin-top: 26px;
  padding: 10px 20px;
  background: rgba(11, 10, 15, 0.86);
  border: 1px solid rgba(242, 236, 229, 0.14);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

@media (max-width: 720px) {
  .hero-hd-section { padding-top: 96px; }
  .hero-hd-frame { aspect-ratio: 1.85 / 1; }
  .hero-hd-dock { margin-top: -18px; padding: 0 16px 40px; }
}

.hero-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 40% at 78% 58%, rgba(245, 154, 89, 0.16), transparent 62%),
    radial-gradient(ellipse 46% 36% at 18% 64%, rgba(245, 54, 147, 0.12), transparent 64%);
  mix-blend-mode: screen;
  animation: heroHazeDrift 16s ease-in-out infinite alternate;
}

@keyframes heroHazeDrift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.06); opacity: 0.68; }
}

.hero-motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-motes i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 214, 178, 0.72);
  opacity: 0;
  animation: moteFloat 9s ease-in-out infinite;
}
.hero-motes i:nth-child(1) { left: 16%; top: 72%; animation-delay: -1s; }
.hero-motes i:nth-child(2) { left: 31%; top: 64%; animation-delay: -4s; }
.hero-motes i:nth-child(3) { left: 69%; top: 58%; animation-delay: -2.5s; }
.hero-motes i:nth-child(4) { left: 82%; top: 74%; animation-delay: -6s; }
.hero-motes i:nth-child(5) { left: 54%; top: 78%; animation-delay: -3.2s; }
@keyframes moteFloat {
  0%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
  45% { opacity: 0.55; }
  85% { opacity: 0; transform: translate3d(18px, -28px, 0); }
}

.hero-vignette-aaa {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 54% at 50% 46%, rgba(8, 7, 12, 0.52) 0%, rgba(8, 7, 12, 0.16) 62%, rgba(8, 7, 12, 0.74) 100%),
    linear-gradient(180deg, rgba(8, 7, 12, 0.52) 0%, rgba(8, 7, 12, 0.08) 38%, rgba(8, 7, 12, 0.65) 82%, #08070C 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  padding: 56px 28px 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(242, 236, 229, 0.88);
  margin-bottom: 12px;
}

.hero-wordmark-wrap {
  margin-bottom: 20px;
}

.hero-wordmark {
  font-size: clamp(5.2rem, 13.5vw, 10.2rem);
  line-height: 0.84;
  letter-spacing: 0.025em;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.65);
}

.hero-slash {
  height: 8px;
  width: 92%;
  margin-top: 8px;
  box-shadow: 0 0 28px rgba(245, 54, 147, 0.42);
}

.hero-headline {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  letter-spacing: 0.055em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.24em;
}

.hero-word {
  display: inline-block;
}
.hero-word-pink {
  color: var(--accent-pink);
}

.hero-sub {
  max-width: 470px;
  margin-top: 14px;
  font-size: 0.96rem;
  color: rgba(242, 236, 229, 0.76);
}

.hero-actions {
  margin-top: 34px;
  gap: 14px;
}

.hero-pool-bar {
  margin-top: 42px;
  padding: 10px 20px;
  background: rgba(11, 10, 15, 0.82);
  border: 1px solid rgba(242, 236, 229, 0.13);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 236, 229, 0.45);
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--accent-pink), transparent);
}

/* ==========================================================================
   5. EDITORIAL SECTION SPACING & CINEMATIC DIVIDERS
   ========================================================================== */
.section {
  padding: 108px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

.section-overlap {
  margin-top: -42px;
  padding-top: 72px;
  z-index: 3;
}

.section-head {
  margin-bottom: 44px;
}

.section-divider-word {
  position: absolute;
  top: -34px;
  right: 4%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(5.5rem, 13vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 236, 229, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ==========================================================================
   6. MISSION-DOSSIER BOUNTY CARDS (NOT SaaS, NOT NFT)
   ========================================================================== */
.bounty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bounty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border-radius: 6px;
  background: #100F15;
  border: 1px solid rgba(242, 236, 229, 0.09);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.bounty-card::before {
  display: none;
}

.bounty-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px 220px at var(--mx, 78%) var(--my, 12%), rgba(245, 54, 147, 0.14), transparent 72%);
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: 2;
}

.bounty-card:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  border-color: rgba(242, 236, 229, 0.22);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 54, 147, 0.18);
}

.bounty-card:hover::after {
  opacity: 1;
}

/* Mission Dossier Visual Header Strip */
.mission-visual {
  position: relative;
  height: 122px;
  overflow: hidden;
  background: #17131D;
  border-bottom: 1px solid rgba(242, 236, 229, 0.07);
}

.mission-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.06) saturate(1.05);
  transform: scale(1.01);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.bounty-card:hover .mission-visual-img {
  transform: scale(1.045);
  opacity: 0.88;
}

.mission-visual-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 13, 0.42) 0%, rgba(16, 15, 21, 0.25) 45%, #100F15 100%),
    linear-gradient(125deg, var(--cat-tint, rgba(245, 54, 147, 0.16)) 0%, transparent 62%);
}

.mission-visual-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.mission-code {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(242, 236, 229, 0.66);
  background: rgba(9, 8, 13, 0.68);
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid rgba(242, 236, 229, 0.1);
}

.mission-body {
  position: relative;
  z-index: 1;
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.mission-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mission-body .bounty-title {
  font-size: 1.65rem;
  margin-bottom: 4px;
  line-height: 1;
}

.mission-body .bounty-reward {
  font-size: 1.9rem;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.bounty-card:hover .bounty-reward {
  color: var(--accent-pink);
  text-shadow: 0 0 20px rgba(245, 54, 147, 0.34);
}

.mission-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(242, 236, 229, 0.12);
  color: var(--ink-secondary);
  font-size: 0.8rem;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease, border-color 200ms ease;
}

.bounty-card:hover .mission-arrow {
  color: var(--accent-pink);
  border-color: var(--border-pink);
  transform: translate(3px, -3px);
}

.bounty-meta {
  opacity: 0.82;
  transition: opacity 220ms ease;
}
.bounty-card:hover .bounty-meta {
  opacity: 1;
}

/* ==========================================================================
   7. HOMEPAGE 4-STEP PROGRESSION & FULL-BLEED NIGHT RUN BANNER
   ========================================================================== */
.run-progression {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(242, 236, 229, 0.12);
}

.run-progression-line {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-coral), var(--accent-orange), transparent);
}

.run-progression .step-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--border-subtle);
  padding: 32px 26px 26px;
}

.run-progression .step-card:last-child {
  border-right: 0;
}

.run-progression .step-num {
  font-size: 3.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

/* Full-bleed Community Contract Cinema Banner */
.cinema-contract {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cinema-contract-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cinema-contract-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.cinema-contract-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #08070C 0%, rgba(8, 7, 12, 0.92) 38%, rgba(8, 7, 12, 0.42) 72%, rgba(8, 7, 12, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 7, 12, 0.5) 0%, transparent 25%, transparent 75%, #08070C 100%);
}

.cinema-contract-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.cinema-contract .section-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.9;
  margin: 10px 0 16px;
}

/* ==========================================================================
   8. ANIMATED CATEGORY FILTERS & EXPANDING SEARCH
   ========================================================================== */
.filter-pills-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #100F15;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-pills-animated::-webkit-scrollbar { display: none; }

.filter-pills-animated .sliding-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  background: var(--accent-pink);
  border-radius: 3px;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.filter-pills-animated .pill {
  position: relative;
  z-index: 1;
  background: transparent;
  border-color: transparent;
  padding: 7px 14px;
}

.filter-pills-animated .pill.active {
  background: transparent;
  border-color: transparent;
  color: #FFFFFF;
}

.search-wrap {
  position: relative;
  width: 280px;
  max-width: 100%;
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.search-wrap:focus-within {
  width: 400px;
}

.search-wrap .search-input {
  max-width: none;
  padding-right: 54px;
}

.search-kbd {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(242, 236, 229, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--ink-muted);
  pointer-events: none;
}

/* ==========================================================================
   9. MISSION DETAIL PAGE (Editorial Numbered Sections + Drag-and-Drop Proof)
   ========================================================================== */
.mission-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #100F15;
  margin-bottom: 32px;
}

.mission-hero-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.mission-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 12, 0.32) 0%, rgba(16, 15, 21, 0.72) 55%, #100F15 100%);
}

.mission-hero-content {
  position: relative;
  margin-top: -116px;
  padding: 0 32px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mission-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
}

.mission-block-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-block-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-pink);
}

.mission-block-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* Drag-and-Drop Proof Zone */
.proof-dropzone {
  position: relative;
  border: 1px dashed rgba(242, 236, 229, 0.24);
  border-radius: 6px;
  padding: 28px 20px;
  background: #0B0A10;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
  margin-bottom: 18px;
}

.proof-dropzone:hover,
.proof-dropzone.is-dragging {
  border-color: var(--accent-pink);
  background: rgba(245, 54, 147, 0.06);
}

.proof-dropzone.is-dragging .drop-icon {
  transform: translateY(-5px) scale(1.08);
  color: var(--accent-pink);
}

.drop-icon {
  font-size: 1.65rem;
  margin-bottom: 8px;
  display: inline-block;
  color: var(--ink-secondary);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
}

.proof-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #14121B;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  text-align: left;
}

.proof-thumb {
  width: 56px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #08070C;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.pink-progress-bar {
  height: 3px;
  width: 100%;
  background: rgba(242, 236, 229, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}

.pink-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-coral));
  transition: width 260ms ease;
}

/* Pending Review Confirmation Timeline */
.proof-status-card {
  padding: 26px;
  background: linear-gradient(135deg, rgba(245, 54, 147, 0.09) 0%, #111016 58%);
  border: 1px solid var(--border-pink);
  border-radius: 6px;
  margin-bottom: 20px;
}

.proof-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.timeline-step.done { color: var(--accent-ok); }
.timeline-step.current { color: var(--accent-pink); font-weight: 700; }

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.mobile-sticky-cta {
  display: none;
}

/* ==========================================================================
   10. CREATE A BOUNTY — 4-STEP GTA CONTRACT CREATOR
   ========================================================================== */
.contract-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 32px;
  position: relative;
}

.contract-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #100F15;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.contract-step.active {
  border-color: var(--accent-pink);
  background: rgba(245, 54, 147, 0.08);
  color: var(--ink-primary);
}

.contract-step.completed {
  border-color: rgba(56, 211, 153, 0.34);
  color: var(--accent-ok);
}

.reward-hero-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px;
  background: #08070C;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.reward-hero-input-wrap:focus-within {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(245, 54, 147, 0.14);
}

.reward-hero-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ink-primary);
}

.reward-hero-unit {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent-pink);
}

.cat-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cat-tile {
  padding: 14px 12px;
  background: #0B0A10;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 150ms ease;
}

.cat-tile:hover {
  border-color: var(--border-medium);
}

.cat-tile.active {
  border-color: var(--accent-pink);
  background: rgba(245, 54, 147, 0.1);
}

.cat-tile-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.cat-tile-desc {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Transaction State Pill Banner */
.tx-state-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0B0A10;
  border: 1px solid var(--border-pink);
  border-radius: 5px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-primary);
}

.tx-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-pink);
  animation: txPulse 1s ease-in-out infinite;
}

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

/* Funding Success Cinematic Scene */
.funded-success-scene {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 58px 36px;
  text-align: center;
  background: #0F0E15;
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  overflow: hidden;
}

.funded-radial-bloom {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 42%, rgba(245, 54, 147, 0.24) 0%, rgba(245, 154, 89, 0.08) 38%, transparent 65%);
  animation: bloomIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}

@keyframes bloomIn {
  from { transform: scale(0.45); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.funded-emblem {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(245, 54, 147, 0.14);
  border: 1px solid var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-pink);
}

/* ==========================================================================
   11. TREASURY ANIMATED FLOW (TREASURY -> BOUNTY -> WINNER)
   ========================================================================== */
.treasury-flow-diagram {
  display: grid;
  grid-template-columns: 1fr 90px 1fr 90px 1fr;
  align-items: center;
  gap: 0;
  padding: 28px;
  background: #100F15;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 28px;
}

.flow-node {
  padding: 18px 20px;
  background: #0A090F;
  border: 1px solid var(--border-medium);
  border-radius: 5px;
}

.flow-node-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.flow-node-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  margin-top: 4px;
}

.flow-node-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.flow-rail {
  position: relative;
  height: 2px;
  background: rgba(242, 236, 229, 0.14);
  overflow: hidden;
}

.flow-rail::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -35%;
  width: 35%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), var(--accent-orange));
  animation: railPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes railPulse {
  0% { left: -35%; }
  100% { left: 105%; }
}

/* ==========================================================================
   12. LEADERBOARD PODIUM & COMPETITIVE ROWS
   ========================================================================== */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.podium-card {
  position: relative;
  padding: 24px 22px;
  background: #100F15;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease;
}

.podium-card.rank-1 {
  padding: 30px 24px;
  border-color: var(--border-pink);
  background: linear-gradient(155deg, rgba(245, 54, 147, 0.11) 0%, #100F15 62%);
}

.podium-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-row {
  display: grid;
  grid-template-columns: 64px 1.4fr 1fr 1fr 1fr 90px 36px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #100F15;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.lb-row:hover {
  border-color: rgba(245, 54, 147, 0.35);
  background: #15131D;
  transform: translateX(3px);
}

.lb-row-arrow {
  color: var(--ink-muted);
  transition: transform 180ms ease, color 180ms ease;
  text-align: right;
}

.lb-row:hover .lb-row-arrow {
  color: var(--accent-pink);
  transform: translateX(4px);
}

/* ==========================================================================
   13. STRONG EDITORIAL FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: #060509;
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 42px;
}

.footer-horizon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(245, 54, 147, 0.55) 35%, rgba(245, 154, 89, 0.45) 65%, transparent 95%);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.footer-wordmark-link {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.86;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  letter-spacing: 0.03em;
  color: var(--ink-primary);
}

.footer-slash {
  display: block;
  height: 4px;
  width: 92%;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-coral), transparent);
  transform: skewX(-22deg);
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--ink-secondary);
  margin-top: 14px;
}
.footer-tagline span { color: var(--accent-pink); }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  transition: color 150ms ease;
}

.footer-col a:hover { color: var(--ink-primary); }

.footer-treasury-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #0D0C12;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  margin-bottom: 28px;
}

.footer-treasury-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-treasury-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-orange);
}

.footer-treasury-addr {
  font-size: 0.82rem;
  color: var(--ink-primary);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* ==========================================================================
   14. MODALS & BRANDED TOASTS
   ========================================================================== */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  display: flex;
  transition: opacity 260ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.97) translateY(8px);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #13111A;
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--accent-pink);
  border-radius: 4px;
  padding: 12px 16px;
}

/* ==========================================================================
   15. RESPONSIVE MOBILE CRAFT (390px)
   ========================================================================== */
@media (max-width: 1024px) {
  .bounty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-progression { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-progression .step-card:nth-child(2) { border-right: 0; }
  .run-progression .step-card:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .treasury-flow-diagram { grid-template-columns: 1fr; gap: 12px; }
  .flow-rail { height: 26px; width: 2px; margin: 0 auto; }
  .podium-grid { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 44px 1.2fr 1fr 24px; }
  .lb-hide-sm { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero-aaa { min-height: 82svh; }
  .hero-bg-layer { background-position: 62% 45%; }
  .hero-inner { padding: 48px 16px 72px; }
  .bounty-grid { grid-template-columns: 1fr; }
  .mission-block { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .mission-hero-content { padding: 0 18px 22px; margin-top: -86px; }
  .contract-stepper { grid-template-columns: repeat(2, 1fr); }
  .cat-select-grid { grid-template-columns: repeat(2, 1fr); }
  .search-wrap, .search-wrap:focus-within { width: 100%; }
  .search-kbd { display: none; }
  .proof-timeline { grid-template-columns: 1fr; }
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    padding: 12px 16px;
    background: rgba(11, 10, 15, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-medium);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

/* ==========================================================================
   16. PREFERS REDUCED MOTION ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-haze, .hero-motes i, .flow-rail::after, .tx-pulse-dot, .funded-radial-bloom {
    animation: none !important;
  }
  .bounty-card, .btn, .mission-visual-img, .site-nav, .modal-card {
    transition: none !important;
    transform: none !important;
  }
}
