/* ============================================================
   Landmark Rewards — landing page styles
   The showpiece: a theatrical "stage reveal" hero where velvet
   curtains part under converging spotlights to unveil the grand
   prize, followed by the lucky wheel, earn cards, and CTA band.
   ============================================================ */

/* ============================================================
   STAGE REVEAL HERO
   ============================================================ */
.stage-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% -8%, #322a23 0%, #1a1613 48%, #0e0c0b 100%);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.stage-hero .container { position: relative; z-index: 6; }

.stage-top { text-align: center; padding-top: clamp(34px, 5vw, 60px); }
.stage-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(232,214,169,.25);
  padding: 9px 18px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.stage-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--prize-pulse); box-shadow: 0 0 0 0 rgba(255,213,74,.7);
  animation: pulse 2.2s infinite;
}
.stage-eyebrow .eyebrow { color: var(--champ-2); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,213,74,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255,213,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,213,74,0); }
}
.stage-hero h1 {
  color: #fff; font-size: clamp(38px, 6.2vw, 76px); font-weight: 600;
  margin-top: 22px; letter-spacing: -.015em;
}
.stage-hero h1 em {
  font-style: italic; color: transparent;
  background: linear-gradient(120deg, var(--prize-pulse), #f0d28a 60%, var(--gold-300));
  -webkit-background-clip: text; background-clip: text;
}
.stage-hero .lead {
  color: var(--champ-3); font-size: clamp(15px, 1.4vw, 18px);
  max-width: 46ch; margin: 18px auto 0; opacity: .82;
}

/* ----- the stage ----- */
.reveal-stage { position: relative; height: clamp(340px, 46vw, 560px); margin-top: clamp(20px, 3vw, 30px); }

/* Spotlight beams — two cones of light converging on the prize */
.beam {
  position: absolute; top: -12%; width: 50%; height: 128%;
  mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,224,156,.30), rgba(255,224,156,.04) 62%, transparent 80%);
  filter: blur(7px); opacity: 0; transition: opacity 1.4s ease .5s;
  clip-path: polygon(43% 0%, 57% 0%, 96% 100%, 4% 100%);
}
.beam-l { left: 2%; transform: rotate(11deg); transform-origin: top center; animation: swayL 9s ease-in-out infinite; }
.beam-r { right: 2%; transform: rotate(-11deg); transform-origin: top center; animation: swayR 9s ease-in-out infinite; }
.revealed .beam { opacity: 1; }
@keyframes swayL { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(13deg); } }
@keyframes swayR { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-13deg); } }

/* Edge vignette to deepen the stage and pull focus to the car */
.stage-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 56% 72% at 50% 55%, transparent 28%, rgba(14,12,11,.5) 66%, rgba(14,12,11,.92) 100%);
}

/* Warm glow pool under the car */
.stage-glow {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  width: 64%; height: 30%;
  background: radial-gradient(ellipse at center, rgba(255,221,150,.4), rgba(255,221,150,.06) 55%, transparent 72%);
  filter: blur(22px); opacity: 0; transition: opacity 1.4s ease .6s;
}
.revealed .stage-glow { opacity: 1; }

/* The car — scales up + brightens as the curtains open */
.car-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; padding-top: clamp(44px, 7vw, 86px); }
.car {
  width: min(780px, 90%);
  height: auto; aspect-ratio: 1600 / 893;   /* lock the real ratio — the height="893" attr was getting stretched by the flex column on mobile */
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) brightness(.7) saturate(.9);
  -webkit-mask-image: radial-gradient(ellipse 58% 50% at 50% 60%, #000 46%, transparent 74%);
  mask-image: radial-gradient(ellipse 58% 50% at 50% 60%, #000 46%, transparent 74%);
  transform: scale(.92); opacity: 0;
  transition: opacity 1.3s ease .55s, transform 1.6s cubic-bezier(.16,.84,.3,1) .55s, filter 1.6s ease .55s;
}
.revealed .car { opacity: 1; transform: scale(1); filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) brightness(1.04) saturate(1.05); }

/* Floor reflection — a faint flipped copy fading downward */
.car-reflection {
  width: min(840px, 92%); margin-top: -7%; transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to top, transparent 6%, #000 60%), radial-gradient(ellipse 58% 50% at 50% 60%, #000 46%, transparent 74%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to top, transparent 6%, #000 60%), radial-gradient(ellipse 58% 50% at 50% 60%, #000 46%, transparent 74%);
  opacity: 0; filter: blur(1px) brightness(.6); transition: opacity 1.3s ease .8s;
}
.revealed .car-reflection { opacity: .16; }

/* Dust motes drifting in the light shafts */
.motes { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1.5s ease 1s; }
.revealed .motes { opacity: 1; }
.mote {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,235,190,.8); filter: blur(.5px); animation: float linear infinite;
}
@keyframes float {
  from { transform: translateY(10px); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .7; }
  to   { transform: translateY(-90px); opacity: 0; }
}

/* Curtains — burgundy velvet with gold-edged ropes and a scalloped valance */
.valance {
  position: absolute; top: 0; left: 0; right: 0; height: clamp(48px, 7vw, 84px); z-index: 7;
  background: linear-gradient(#5e1320, #43101a),
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 18px, rgba(255,255,255,.05) 18px 36px);
  background-blend-mode: multiply;
  -webkit-mask: radial-gradient(26px at 50% 100%, transparent 25px, #000 26px) 0 0 / 52px 100% repeat-x;
  mask: radial-gradient(26px at 50% 100%, transparent 25px, #000 26px) 0 0 / 52px 100% repeat-x;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.valance::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-200), var(--gold-400)); opacity: .5;
  -webkit-mask: radial-gradient(26px at 50% 100%, transparent 25px, #000 26px) 0 0 / 52px 100% repeat-x;
  mask: radial-gradient(26px at 50% 100%, transparent 25px, #000 26px) 0 0 / 52px 100% repeat-x;
}

.curtain {
  position: absolute; top: 0; bottom: 0; width: 54%; z-index: 6;
  background: repeating-linear-gradient(90deg, #4d1019 0 22px, #5e1522 22px 40px, #3e0d15 40px 58px);
  transition: transform 1.8s cubic-bezier(.7,.02,.28,1);
}
.curtain::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(var(--gold-300), var(--gold-500), var(--gold-300));
  box-shadow: 0 0 18px rgba(170,132,83,.5);
}
.curtain-l { left: 0; box-shadow: inset -50px 0 70px rgba(0,0,0,.55); }
.curtain-l::before { right: 0; }
.curtain-r { right: 0; box-shadow: inset 50px 0 70px rgba(0,0,0,.55); }
.curtain-r::before { left: 0; }
.revealed .curtain-l { transform: translateX(-102%); }
.revealed .curtain-r { transform: translateX(102%); }

/* Gold nameplate naming the prize */
.nameplate {
  position: relative; z-index: 6; margin: clamp(-30px, -2vw, -10px) auto 0;
  width: max-content; max-width: 90%; text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s ease 1.3s, transform .8s ease 1.3s;
}
.revealed .nameplate { opacity: 1; transform: none; }
.nameplate .pl { font-size: 11px; letter-spacing: var(--eyebrow-sp); text-transform: uppercase; color: var(--gold-300); }
.nameplate .pn { font-family: 'Playfair Display', serif; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin-top: 4px; }
.nameplate .pv {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,214,169,.28);
  padding: 8px 18px; border-radius: var(--r-pill);
}
.nameplate .pv b { font-family: 'Playfair Display', serif; color: var(--prize-pulse); }

/* Countdown (dark variant) */
.stage-cd { display: flex; gap: 12px; justify-content: center; margin-top: clamp(26px, 3vw, 38px); flex-wrap: wrap; }
.stage-cd .cd-unit {
  background: rgba(255,255,255,.05); border: 1px solid rgba(232,214,169,.2);
  border-radius: var(--r-lg); padding: 13px 18px; min-width: 74px; text-align: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.stage-cd .cd-num { display: block; font-family: 'Playfair Display', serif; font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: #fff; line-height: 1; }
.stage-cd .cd-lbl { font-size: 10px; letter-spacing: var(--eyebrow-sp); text-transform: uppercase; color: var(--champ-3); margin-top: 7px; opacity: .8; }
.stage-cd .cd-colon { align-self: center; font-family: 'Playfair Display', serif; font-size: 26px; color: var(--gold-500); }

.stage-cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.replay {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 3vw, 28px); z-index: 7;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,214,169,.25);
  color: var(--champ-2); font-size: 12.5px; padding: 9px 15px; border-radius: var(--r-pill);
  cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .15s;
}
.replay:hover { background: rgba(255,255,255,.12); }

/* Honor reduced-motion: open the curtain immediately, no sway/drift */
@media (prefers-reduced-motion: reduce) {
  .beam, .stage-glow, .car, .car-reflection, .motes, .nameplate,
  .curtain { transition: none; }
  .beam-l, .beam-r, .mote { animation: none; }
}

/* ============================================================
   LUCKY WHEEL + LEADERBOARD PREVIEW
   ============================================================ */
.wheel-section { background: radial-gradient(80% 60% at 50% 0%, var(--cream-3), transparent 60%), var(--cream-1); }
.wheel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.wheel-stage { position: relative; width: min(420px, 80vw); aspect-ratio: 1; margin-inline: auto; }
.wheel-disc {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  box-shadow: var(--luxe-lg), inset 0 0 0 10px #fff, inset 0 0 0 11px var(--gold-200);
  transition: transform 4.2s cubic-bezier(.13,.86,.18,1);
}
.wheel-disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 60px rgba(110,83,34,.18); pointer-events: none; }
.wheel-hub {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gold-200); display: grid; place-items: center;
  z-index: 3; box-shadow: var(--luxe); font-family: 'Playfair Display', serif; color: var(--gold-600); font-weight: 600;
}
.wheel-hub img { width: 48px; height: auto; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 4; color: var(--ink-900); filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.wheel-labels { position: absolute; inset: 0; pointer-events: none; }
.wheel-labels span { position: absolute; top: 50%; left: 50%; font-size: 11px; font-weight: 500; color: #4a3a1c; transform-origin: 0 0; white-space: nowrap; }
.wheel-cta { text-align: center; margin-top: 20px; }

.lb-preview { background: #fff; border: 1px solid var(--champ-2); border-radius: var(--r-3xl); padding: 8px; box-shadow: var(--luxe); }
.lb-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 12px 18px; border-radius: var(--r-lg); }
.lb-row + .lb-row { border-top: 1px solid var(--champ-1); }
.lb-rank { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold-600); width: 34px; text-align: center; }
.lb-rank.top { color: #fff; background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; }
.lb-name { font-weight: 500; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.lb-name .lb-phone { font-size: 12px; font-weight: 400; color: var(--ink-400); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lb-ent { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 17px; white-space: nowrap; }
.lb-ent small { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 11px; color: var(--ink-400); letter-spacing: .04em; margin-left: 6px; }

/* ============================================================
   HOW TO EARN
   ============================================================ */
.earn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; max-width: 760px; margin-inline: auto; }
.earn-card { padding: 30px 28px; }
.earn-card .num {
  font-family: 'Playfair Display', serif; font-size: 15px; color: var(--gold-500);
  border: 1px solid var(--gold-200); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 20px;
}
.earn-card h3 { font-size: 23px; margin-bottom: 10px; }
.earn-card p { font-size: 14.5px; color: var(--ink-500); }
.earn-card .conv {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  background: var(--champ-1); border: 1px solid var(--champ-2); padding: 7px 13px;
  border-radius: var(--r-pill); color: var(--gold-700); font-weight: 500;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink-900); color: #fff; border-radius: var(--r-3xl);
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -20%, rgba(255,213,74,.18), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.cta-band p { color: var(--champ-3); max-width: 46ch; margin: 18px auto 30px; }

/* ============================================================
   OFFICIAL-RULES STRIP — compact, quiet, sits above the footer
   ============================================================ */
.legal-strip {
  max-width: 940px; margin-inline: auto;
  border-top: 1px solid var(--champ-2);
  padding: 26px 6px 0; margin-top: clamp(40px, 6vw, 64px);
  color: var(--ink-400); font-size: 12.5px; line-height: 1.7; text-align: center;
}
.legal-strip strong { color: var(--ink-700); font-weight: 600; letter-spacing: .01em; }
.legal-strip p + p { margin-top: 8px; }
.legal-strip a { color: var(--gold-700); font-weight: 500; }

@media (max-width: 980px) {
  .wheel-wrap { grid-template-columns: 1fr; }
  .lb-preview { order: 2; }
  .earn-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRIZE BADGES · VALUE MEDALLION · CONFETTI · REPLAY FIX
   ============================================================ */

/* 1st-anniversary badge (top of hero) */
.anniv-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #3a2c0e; background: linear-gradient(135deg, var(--prize-pulse), var(--gold-500));
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
  box-shadow: 0 8px 22px -10px rgba(255,213,74,.5);
}

/* Floating "estimated value" medallion on the stage */
.value-medallion {
  position: absolute; top: clamp(64px, 11vw, 108px); right: clamp(8px, 3vw, 28px); z-index: 6;
  width: clamp(90px, 12vw, 132px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, #2a2118, #0e0c0b 78%);
  border: 2px solid var(--gold-400);
  box-shadow: 0 0 0 4px rgba(14,12,11,.6), 0 14px 34px -12px rgba(0,0,0,.7), inset 0 0 20px rgba(255,213,74,.18);
  opacity: 0; transform: scale(.7) rotate(-12deg);
  transition: opacity .6s ease 1.2s, transform .7s cubic-bezier(.16,.84,.3,1) 1.2s;
}
.revealed .value-medallion { opacity: 1; transform: none; }
.value-medallion .vm-top { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--champ-3); }
.value-medallion .vm-big { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); line-height: 1; color: var(--prize-pulse); margin: 3px 0; }
.value-medallion .vm-big sup { font-size: .6em; }
.value-medallion .vm-sub { font-size: 8.5px; letter-spacing: .2em; color: var(--gold-300); }

/* Nameplate prize chips */
.nameplate .pn { font-size: clamp(24px, 3vw, 34px); }
.np-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.np-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,214,169,.28);
  color: var(--champ-2); padding: 7px 14px; border-radius: var(--r-pill);
}
.np-chip b { font-family: 'Playfair Display', serif; color: var(--prize-pulse); font-weight: 600; }
.np-chip-free { color: var(--prize-pulse); border-color: rgba(255,213,74,.4); }

/* Confetti + silk-ribbon burst (spawned by landing.js on reveal) */
.confetti { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.confetti-piece, .confetti .ribbon {
  position: absolute; top: -9%; width: 9px; height: 9px; border-radius: 2px; opacity: 0;
  will-change: transform, opacity;
  animation-name: confettiFall; animation-timing-function: cubic-bezier(.2,.6,.4,1); animation-fill-mode: both;
}
.confetti .ribbon { width: 5px; border-radius: 6px; }
@keyframes confettiFall {
  0%   { opacity: 0; transform: translateY(-10%) translateX(0) rotate(0deg); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(380px) translateX(calc(var(--x, 0) * 90px)) rotate(var(--r, 200deg)); }
}

/* Crisp replay: snap to the closed state with NO animation, then animate open */
.reveal-stage.no-anim, .reveal-stage.no-anim * { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .value-medallion { transition: none; }
  .confetti { display: none; }
}
@media (max-width: 620px) {
  .value-medallion { top: 52px; right: 6px; width: 78px; border-width: 1.5px; }
}
/* Countdown: keep four units tidy on small phones (drop the colons so it can't leave dangling separators) */
@media (max-width: 440px) {
  .stage-cd { gap: 8px; }
  .stage-cd .cd-colon { display: none; }
  .stage-cd .cd-unit { min-width: 0; flex: 1 1 58px; padding: 12px 8px; }
}
