/* ==========================================================================
   AWAKEN THE LION — Full Experience
   Lumbini · Buddha · Red Paltan · NPL Champions
   ========================================================================== */

:root {
  --red: #9b0f0f;
  --red-deep: #5c0808;
  --red-bright: #d42020;
  --gold: #e8c547;
  --gold-dark: #b8942e;
  --cream: #f0ebe0;
  --muted: #9a9590;
  --bg: #080605;
  --bg-panel: #0e0a08;

  --font-display: 'Cinzel', Georgia, serif;
  --font-impact: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-nepali: 'Noto Sans Devanagari', sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: auto;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--cream); }

img { max-width: 100%; display: block; }

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020202;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  cursor: pointer;
}

#preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner { text-align: center; }

.preloader__om {
  font-family: var(--font-nepali);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.6;
  animation: pulseOm 2s ease-in-out infinite;
}

.preloader__text {
  font-family: var(--font-display);
  letter-spacing: 0.6em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  text-transform: uppercase;
}

.preloader__hint {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 1.25rem;
  opacity: 0.85;
  animation: preloaderHint 2s ease-in-out infinite;
}

@keyframes preloaderHint {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.preloader__bar {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 1.5rem auto 0;
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: loadBar 2s var(--ease-out) forwards;
}

@keyframes pulseOm {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes loadBar {
  to { width: 100%; }
}

/* ── Cricket bat cursor ── */
.cricket-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 100px;
  pointer-events: none;
  z-index: 9998;
  display: none;
  transform-origin: 50% 0%;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

.cricket-cursor__bat {
  width: 100%;
  height: 100%;
  display: block;
}

.cricket-cursor.is-hover {
  filter: drop-shadow(0 0 10px rgba(232, 197, 71, 0.55)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.45));
}

.cricket-cursor.is-swinging {
  filter: drop-shadow(0 0 14px rgba(212, 32, 32, 0.5)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.45));
}

@media (hover: hover) and (pointer: fine) {
  .cricket-cursor { display: block; }
}

/* Hit effects layer */
.hit-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  overflow: hidden;
}

.hit-ball {
  position: fixed;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e84040, #9b0f0f 60%, #5c0808);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}

.hit-ball::before,
.hit-ball::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hit-ball::before {
  transform: rotate(30deg) scaleX(0.85);
}

.hit-ball::after {
  transform: rotate(-30deg) scaleX(0.85);
}

.hit-flash {
  position: fixed;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 197, 71, 0.7) 0%, transparent 70%);
  pointer-events: none;
}

.hit-ring {
  position: fixed;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border-radius: 50%;
  border: 2px solid rgba(232, 197, 71, 0.6);
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: linear-gradient(to bottom, rgba(8,6,5,0.9), transparent);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s, transform 0.6s var(--ease-out);
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  cursor: none;
}

.logo__star { color: var(--gold); font-size: 0.8rem; }

.audio-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(232,197,71,0.3);
  color: var(--gold);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s;
}

.audio-toggle:hover { background: rgba(232,197,71,0.1); }

.audio-toggle.is-playing .audio-toggle__icon {
  animation: pulseAudio 0.8s ease-in-out infinite;
}

.audio-toggle__icon {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

@keyframes pulseAudio {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  background: rgba(255,255,255,0.05);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.1s linear;
}

/* ── Prayer flags ── */
.prayer-flags {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 40px;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 3rem;
  pointer-events: none;
  opacity: 0.4;
}

.flag {
  width: 12px;
  height: 28px;
  transform-origin: top center;
  animation: flagWave 4s ease-in-out infinite;
}

.flag--red { background: var(--red); animation-delay: 0s; }
.flag--gold { background: var(--gold); animation-delay: 0.5s; }
.flag--white { background: var(--cream); animation-delay: 1s; }
.flag--blue { background: #2a4a7a; animation-delay: 1.5s; }

@keyframes flagWave {
  0%, 100% { transform: rotate(-3deg) skewX(2deg); }
  50% { transform: rotate(3deg) skewX(-2deg); }
}

/* ── Particles canvas ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Panels ── */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2;
}

.panel--hero {
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.95) saturate(0.9);
}

.panel__overlay--hero {
  background: linear-gradient(
    to bottom,
    rgba(8, 6, 5, 0.55) 0%,
    rgba(8, 6, 5, 0.45) 45%,
    rgba(8, 6, 5, 0.88) 100%
  );
  z-index: 1;
}

.panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.panel__bg--lumbini {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Lumbini_%28Birth_Place_of_Gautam_Buddha%29.jpg/1920px-Lumbini_%28Birth_Place_of_Gautam_Buddha%29.jpg');
}

.panel__bg--red {
  background: radial-gradient(ellipse at 30% 50%, var(--red-deep) 0%, var(--bg) 70%);
}

.panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,6,5,0.7) 0%,
    rgba(8,6,5,0.5) 50%,
    rgba(8,6,5,0.95) 100%
  );
}

.panel__content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  text-align: center;
}

.panel__content--wide { max-width: 1100px; margin: 0 auto; }

/* ── Hero ── */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow--gold { color: var(--gold-dark); }

.hero-title {
  font-family: var(--font-impact);
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
}

.hero-title__line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title__line--gold { color: var(--gold); }

.hero-sub {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.hero-coords {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(240,235,224,0.5);
}

.hero-coords .divider { margin: 0 0.75rem; opacity: 0.4; }

.scroll-cue {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: bounceCue 2.5s ease-in-out infinite;
  cursor: none;
}

@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.buddha-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 80vw);
  height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(232,197,71,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Sacred section ── */
.panel--sacred {
  background: var(--bg-panel);
  padding: calc(var(--header-h) + 3rem) 1.5rem 6rem;
}

.sacred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sacred-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
}

.sacred-card--large {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.sacred-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease-out);
}

.sacred-card--dim img {
  opacity: 0.42;
}

.sacred-card--dim:hover img {
  opacity: 0.65;
}

.sacred-card:hover img { transform: scale(1.05); }

.sacred-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(8,6,5,0.95));
}

.sacred-card__caption h2,
.sacred-card__caption h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.sacred-card__caption p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Cinematic drone video ── */
.cinematic-video {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cinematic-video__frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 71, 0.2);
  background: #000;
  aspect-ratio: 16 / 9;
}

.cinematic-video__player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cinematic-video__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: rgba(8, 6, 5, 0.75);
  border: 1px solid rgba(232, 197, 71, 0.25);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.cinematic-video__logo {
  width: 48px;
  height: auto;
  border-radius: 2px;
}

.cinematic-video__badge span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.cinematic-video__caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.buddha-quote {
  max-width: 700px;
  margin: 5rem auto 0;
  text-align: center;
  border-top: 1px solid rgba(232,197,71,0.2);
  border-bottom: 1px solid rgba(232,197,71,0.2);
  padding: 3rem 1rem;
}

.buddha-quote__en {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--cream);
}

.buddha-quote__ne {
  font-family: var(--font-nepali);
  font-size: 1rem;
  color: var(--gold-dark);
  margin-top: 1rem;
}

.buddha-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
}

.transition-bridge {
  text-align: center;
  margin-top: 5rem;
  padding: 0 1rem;
}

.transition-bridge__text {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.transition-bridge__text--fire {
  color: var(--red-bright);
  font-weight: 600;
  margin-top: 1rem;
}

.transition-bridge__line {
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--gold), var(--red));
  margin: 2rem auto;
}

/* ── Pride section ── */
.panel--pride { overflow: hidden; }

.section-title {
  font-family: var(--font-impact);
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.05em;
  line-height: 1;
}

.section-title__sub {
  display: block;
  font-size: 0.45em;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-top: 0.25rem;
}

.section-title--champion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trophy-icon { font-size: 0.7em; }

.section-lead {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.pride-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.lion-logo__img {
  width: min(220px, 45vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(232, 197, 71, 0.35));
  animation: lionGlow 3s ease-in-out infinite;
}

@keyframes lionGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(232,197,71,0.2)); }
  50% { filter: drop-shadow(0 0 40px rgba(212,32,32,0.4)); }
}

.pride-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  border-left: 2px solid var(--red);
  padding: 0.75rem 1.25rem;
  text-align: left;
}

.stat-card__num {
  display: block;
  font-family: var(--font-impact);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.stat-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nepali-callout {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(212,32,32,0.4);
  background: rgba(155,15,15,0.15);
}

.nepali-callout__text {
  display: block;
  font-family: var(--font-impact);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nepali-callout__sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Squad ── */
.panel--squad {
  background: var(--bg-panel);
  padding: calc(var(--header-h) + 4rem) 1.5rem 6rem;
}

.squad-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.squad-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.squad-row--captain {
  display: flex;
  justify-content: center;
}

.squad-row--captain .player-card--captain {
  width: min(100%, 300px);
  padding: 1.5rem 1.25rem;
}

.squad-row--international {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.squad-row--domestic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.player-card {
  padding: 1.25rem 1rem;
  background: rgba(155, 15, 15, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid var(--red);
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 197, 71, 0.35);
}

.player-card--captain {
  border-top-color: var(--gold);
  background: rgba(232, 197, 71, 0.08);
}

.player-card--international {
  border-top-color: rgba(232, 197, 71, 0.55);
}

.player-card__photo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.player-card__role {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.player-card__name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.player-card__type {
  font-size: 0.7rem;
  color: var(--muted);
}

.squad-source {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
}

.squad-source a {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Champions ── */
.panel--champions {
  background: var(--bg);
  padding: calc(var(--header-h) + 4rem) 0 6rem;
}

.champions-header {
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  padding: 2rem;
  max-width: 900px;
  flex-wrap: wrap;
}

.final-score__team {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.final-score__team--winner {
  border-color: var(--gold);
  background: rgba(232,197,71,0.05);
  overflow: visible;
  isolation: isolate;
}

.final-score__team--winner.is-celebrating {
  animation: winner-glow 2.5s ease-in-out infinite;
}

.final-score__team--winner > :not(.celebration) {
  position: relative;
  z-index: 2;
}

/* Celebration — confetti & party poppers (logo red + gold) */
.celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.celebration__popper {
  position: absolute;
  top: -10px;
  width: 22px;
  height: 30px;
  opacity: 0;
  transform-origin: bottom center;
}

.celebration__popper--left { left: 16%; }
.celebration__popper--right { right: 16%; transform: scaleX(-1); }

.celebration__popper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--gold) 42%, var(--red) 42%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.celebration__popper::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: radial-gradient(circle, var(--gold) 30%, var(--red-bright) 100%);
  border-radius: 50%;
  opacity: 0;
}

.final-score__team--winner.is-celebrating .celebration__popper {
  animation: popper-pop 0.55s var(--ease-out) forwards;
}

.final-score__team--winner.is-celebrating .celebration__popper--right {
  animation-delay: 0.08s;
}

.final-score__team--winner.is-celebrating .celebration__popper::after {
  animation: popper-spark 0.7s var(--ease-out) forwards;
}

.celebration__piece {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 0%);
  background: var(--color, var(--gold));
  opacity: 0;
  will-change: transform, opacity;
}

.celebration__piece--streamer {
  width: 3px;
  height: 14px;
  border-radius: 2px;
}

.celebration__piece:not(.celebration__piece--streamer) {
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 1px;
}

.final-score__team--winner.is-celebrating .celebration__piece {
  animation: confetti-fall var(--dur, 2.4s) var(--delay, 0s) infinite ease-out;
}

.final-score__team--winner.is-celebrating--burst .celebration__piece {
  animation: confetti-burst var(--dur, 2s) var(--delay, 0s) ease-out forwards;
}

.final-score__team--winner.is-celebrating .final-score__runs {
  animation: score-shimmer 2.2s ease-in-out infinite;
}

@keyframes popper-pop {
  0% { opacity: 0; transform: scale(0.2) rotate(-25deg); }
  55% { opacity: 1; transform: scale(1.15) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes popper-spark {
  0% { opacity: 0; transform: scale(0); }
  40% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(2.2); }
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.3);
  }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%)
      translate(calc(var(--burst-x) + var(--drift)), calc(var(--burst-y) + 160px))
      rotate(var(--rot))
      scale(0.6);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--start-x, 0), -24px) rotate(0deg);
  }
  8% { opacity: 1; }
  92% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%)
      translate(calc(var(--start-x, 0px) + var(--drift)), 210px)
      rotate(var(--rot));
  }
}

@keyframes winner-glow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(232, 197, 71, 0.12),
      inset 0 0 24px rgba(155, 15, 15, 0.04);
  }
  50% {
    box-shadow:
      0 0 36px rgba(232, 197, 71, 0.38),
      0 0 56px rgba(155, 15, 15, 0.18),
      inset 0 0 36px rgba(232, 197, 71, 0.1);
  }
}

@keyframes score-shimmer {
  0%, 100% {
    text-shadow: 0 0 16px rgba(232, 197, 71, 0.25);
    transform: scale(1);
  }
  50% {
    text-shadow:
      0 0 28px rgba(232, 197, 71, 0.65),
      0 0 48px rgba(155, 15, 15, 0.25);
    transform: scale(1.04);
  }
}

.final-score__badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 0.2rem 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.final-score__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.final-score__runs {
  display: block;
  font-family: var(--font-impact);
  font-size: 3rem;
  color: var(--cream);
}

.final-score__team--winner .final-score__runs { color: var(--gold); }

.final-score__detail {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.final-score__vs {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--red-bright);
}

/* Horizontal moments track */
.moments-track {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem 0 2rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  cursor: grab;
}

.moments-track:active { cursor: grabbing; }

.moments-track__inner {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-right: 1.5rem;
}

.moment-card {
  width: 300px;
  flex-shrink: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(155,15,15,0.2), rgba(8,6,5,0.8));
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 2px solid var(--red);
}

.moment-card__num {
  font-family: var(--font-impact);
  font-size: 2.5rem;
  color: rgba(232,197,71,0.2);
  line-height: 1;
}

.moment-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin: 0.75rem 0;
  color: var(--gold);
}

.moment-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.champions-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  align-items: stretch;
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s;
}

.gallery-item:hover img { filter: grayscale(0%); }

.gallery-item figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 0;
  flex-shrink: 0;
}

.gallery-item--photo {
  display: flex;
  flex-direction: column;
}

.gallery-item--photo img {
  flex: 1;
  min-height: 0;
  height: 100%;
  filter: none;
}

.gallery-item__logo {
  width: 100px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 16px rgba(232, 197, 71, 0.3));
}

.gallery-item--accent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--red-deep);
  padding: 2rem;
  height: 100%;
}

.gallery-item__text p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
}

.gallery-item__text span {
  display: block;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.source-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2rem;
  padding: 0 1.5rem;
}

.source-note a { color: var(--gold-dark); }

/* ── Music (Lion's Song + Anthem) ── */
.panel--music {
  background: radial-gradient(ellipse at center, var(--red-deep) 0%, var(--bg) 60%);
  padding: calc(var(--header-h) + 4rem) 1.5rem 6rem;
}

.music-wrap {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.music-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 1px solid rgba(232, 197, 71, 0.35);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.35s var(--ease-out);
}

.music-btn:hover,
.music-btn--active {
  background: rgba(232, 197, 71, 0.12);
  border-color: var(--gold);
}

.music-btn.is-playing {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.music-btn__icon {
  font-size: 0.65rem;
}

.music-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.music-column__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: center;
}

.music-player__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border: 1px solid rgba(232, 197, 71, 0.2);
  overflow: hidden;
}

.music-player__frame iframe,
#youtube-player-song,
#youtube-player-anthem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin-top: 1.5rem;
}

.visualizer span {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transition: height 0.1s;
}

.visualizer.is-active span {
  animation: vizBar 0.6s ease-in-out infinite alternate;
}

.visualizer.is-active span:nth-child(odd) { animation-duration: 0.5s; }
.visualizer.is-active span:nth-child(3n) { animation-duration: 0.7s; }
.visualizer.is-active span:nth-child(1) { animation-delay: 0s; }
.visualizer.is-active span:nth-child(2) { animation-delay: 0.1s; }
.visualizer.is-active span:nth-child(3) { animation-delay: 0.2s; }
.visualizer.is-active span:nth-child(4) { animation-delay: 0.05s; }
.visualizer.is-active span:nth-child(5) { animation-delay: 0.15s; }

@keyframes vizBar {
  from { height: 8px; opacity: 0.4; }
  to { height: 32px; opacity: 1; }
}

/* ── Showcase ── */
.panel--showcase {
  background: var(--bg-panel);
  padding: calc(var(--header-h) + 4rem) 1.5rem 4rem;
}

.showcase-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.showcase-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(232, 197, 71, 0.35));
}

.showcase-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.showcase-title {
  font-family: var(--font-impact);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1;
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}

.showcase-title__accent {
  color: var(--gold);
  text-shadow: 0 0 60px rgba(232,197,71,0.3);
}

.showcase-lead {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.feature {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, transform 0.3s;
}

.feature:hover {
  border-color: rgba(232,197,71,0.3);
  transform: translateY(-4px);
}

.feature__icon { font-size: 1.5rem; }

.feature h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin: 0.75rem 0 0.5rem;
  color: var(--gold);
}

.feature p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.showcase-tech {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.showcase-tech__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  margin-top: 0.5rem;
}

.showcase-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
  cursor: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}

.btn--gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
  border-color: var(--cream);
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer p {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer__copy { margin-top: 1rem; opacity: 0.6; }

/* ── Reveal animations (initial state) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body { cursor: auto; }

  .cursor, .cursor-ring,
  .cricket-cursor, .hit-fx-layer { display: none !important; }

  .audio-toggle__label { display: none; }

  .sacred-grid { grid-template-columns: 1fr; }
  .sacred-card--large { grid-column: span 1; aspect-ratio: 16/9; }

  .champions-gallery { grid-template-columns: 1fr; }

  .gallery-item { min-height: 320px; }

  .music-grid { grid-template-columns: 1fr; }

  .showcase-features { grid-template-columns: 1fr; }

  .squad-row--international {
    grid-template-columns: repeat(2, 1fr);
  }

  .squad-row--domestic {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-card__photo {
    width: 110px;
    height: 110px;
  }

  .final-score { flex-direction: column; }
  .final-score__vs { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .final-score__team--winner.is-celebrating {
    animation: none;
    box-shadow: 0 0 24px rgba(232, 197, 71, 0.2);
  }

  .celebration { display: none; }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #preloader { display: none; }
}
