/* Audienceful form styling to match previous waitlist form */
.audienceful_form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  min-height: 54px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
/*
  Live the Gift — Waitlist Page Styles
  - Warm, optimistic palette
  - Bold modern type with rounded, subtle shadows
  - Clean, hi-fi minimalism
*/

:root {
  --bg: #f7f9ff;       /* light, airy base with a hint of blue */
  --surface: #ffffff;  /* cards and surfaces */
  --text: #0f172a;     /* primary text (slate-900) */
  --muted: #5b6475;    /* secondary text */
  --primary: #7c5cff;  /* gradient start (lilac) */
  --primary-2: #ec4899;/* gradient end (pink) */
  --accent: #60a5fa;   /* soft blue for glows */
  --success: #20c997;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-2: 0 6px 16px rgba(0,0,0,0.10);
  --border: #e5eaf5;   /* soft cool border */
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -200px, rgba(96,165,250,0.35), transparent 60%),
    radial-gradient(900px 500px at 90% -100px, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(800px 380px at 50% 120%, rgba(236,72,153,0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }

.page { position: relative; min-height: 100%; }
.backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 10% -140px, rgba(96,165,250,0.35), transparent 60%),
    radial-gradient(600px 300px at 90% -60px, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(600px 300px at 40% 100%, rgba(236,72,153,0.18), transparent 60%);
  filter: blur(22px);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Utility */
.hidden { display: none !important; }

/* (Header removed to restore original layout) */

/* Hero */
.hero { padding: 72px 0 24px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
/* left-right hero layout restored */

.hero__title {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent {
  background: linear-gradient(135deg, #7c5cff 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-shadow: 0 0 40px rgba(236, 72, 153, 0.3);
}
/* gradient-text not used in restored layout */

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 28px;
}


.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 20px; border-radius: var(--radius-md);
  border: 0; cursor: pointer; font-weight: 600; font-size: 16px;
  color: #111; text-decoration: none; transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: not-allowed; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 14px 26px rgba(124,92,255,0.25), 0 6px 14px rgba(236,72,153,0.25); }
.btn--primary:hover { filter: brightness(1.04); }
/* button icon not used in restored layout */

/* Spinner while submitting */
.btn--primary.submitting { position: relative; padding-left: 38px; }
.btn--primary.submitting::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn--primary.submitting::before { animation-duration: 1.5s; }
}


/* Visual cards */
.hero__visual { position: relative; z-index: 1;}
.card-stack-stage { position: relative; height: 420px; }
.card-stack { position: absolute; inset: 0; transition: opacity 0.4s ease; }
.card-stack.is-hidden { opacity: 0; pointer-events: none; }
.card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1);
  cursor: grab; user-select: none; touch-action: pan-y;
  /* Compose base stack offset with drag offset to avoid layout jumps */
  transform: translate(calc(var(--base-x, 0px) + var(--drag-x, 0px)), calc(var(--base-y, 0px) + var(--drag-y, 0px))) rotate(calc(var(--base-r, 0deg) + var(--drag-r, 0deg)));
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Hidden card (kept in DOM but not visible) */
.card.card--invisible { display: none; }

/* Desktop hover preview */
@media (hover: hover) and (pointer: fine) {
  .card:hover:not(.is-dragging) {
    transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px) - 8px)) rotate(var(--base-r, 0deg)) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    cursor: grab;
  }
}

.card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); -webkit-user-drag: none; user-select: none; }
.card figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border); font-weight: 600; font-size: 13px; color: #222;
}
.card.is-dragging { cursor: grabbing; }

/* Swipe labels */
.swipe-label { position: absolute; top: 16px; padding: 12px 20px; border-radius: 14px; font-weight: 700; letter-spacing: .5px; font-size: 28px; opacity: 0; transition: opacity .12s ease; backdrop-filter: saturate(1.2) blur(2px); }
.swipe-label--like { left: 16px; color: #065f46; background: rgba(16,185,129,.12); border: 3px solid rgba(16,185,129,.6); transform: rotate(-12deg); }
.swipe-label--nope { right: 16px; color: #991b1b; background: rgba(239,68,68,.12); border: 3px solid rgba(239,68,68,.6); transform: rotate(12deg); }

/* Nope shake (label only to avoid transform conflicts) */
.swipe-label--nope.shake-left { animation: nope-shake 180ms ease; }
@keyframes nope-shake {
  0%   { transform: rotate(12deg) translateX(0); }
  25%  { transform: rotate(12deg) translateX(-4px); }
  50%  { transform: rotate(12deg) translateX(4px); }
  75%  { transform: rotate(12deg) translateX(-2px); }
  100% { transform: rotate(12deg) translateX(0); }
}

/* Fling out animations */
.card.fly-out-right { transition: transform .373s ease-in, opacity .373s ease-in; opacity: 0; transform: translate(1200px, -60px) rotate(24deg) !important; }
.card.fly-out-left  { transition: transform .373s ease-in, opacity .373s ease-in; opacity: 0; transform: translate(-1200px, -60px) rotate(-24deg) !important; }
.card.snap-back { transition: transform .22s cubic-bezier(.2,.8,.3,1.2); }
.card.base-animate { transition: transform .22s ease; }

/* Haptic-like bounce after snap back */
.card.haptic-bounce { animation: haptic 180ms ease; }
@keyframes haptic {
  from { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)) scale(1.02); }
  to   { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)) scale(1); }
}

/* Dribble effect after like */
.card.dribble { animation: dribble 400ms cubic-bezier(.4,.1,.3,1.1); }
@keyframes dribble {
  0%   { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)) scale(1); }
  25%  { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px) - 18px)) rotate(var(--base-r, 0deg)) scale(1.06); }
  55%  { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px) + 6px)) rotate(var(--base-r, 0deg)) scale(0.96); }
  75%  { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px) - 4px)) rotate(var(--base-r, 0deg)) scale(1.02); }
  100% { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)) scale(1); }
}

/* Swipe hint wiggle - apply to all cards; stagger via --wiggle-delay */
.card.card--hint-wiggle {
  animation: hint-wiggle 4.4s ease-in-out var(--wiggle-delay, 1s) 1;
}
@keyframes hint-wiggle {
  0%, 100% { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)); }
  15% { transform: translate(calc(var(--base-x, 0px) + 28px), calc(var(--base-y, 0px))) rotate(calc(var(--base-r, 0deg) + 4deg)); }
  30% { transform: translate(calc(var(--base-x, 0px) - 28px), calc(var(--base-y, 0px))) rotate(calc(var(--base-r, 0deg) - 4deg)); }
  45% { transform: translate(calc(var(--base-x, 0px) + 20px), calc(var(--base-y, 0px))) rotate(calc(var(--base-r, 0deg) + 2deg)); }
  60% { transform: translate(calc(var(--base-x, 0px) - 20px), calc(var(--base-y, 0px))) rotate(calc(var(--base-r, 0deg) - 2deg)); }
  75% { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)); }
}

/* Gift box completion state */
.gift-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  padding: 32px 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.gift-box.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  animation: none;
}
.gift-box.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  animation: gift-box-appear 0.6s cubic-bezier(.2,.8,.2,1) forwards;
}
.gift-box__icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: gift-bounce 1s ease-in-out infinite;
}
.gift-box__title {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gift-box__subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.gift-box__cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
}
.gift-box__card-mini {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gift-box__card-mini:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gift-box__card-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes gift-box-appear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes gift-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Loading skeleton */
.card-skeleton {
  position: absolute;
  inset: 0;
}
.card-skeleton.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.skeleton-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #e5eaf5 25%, #f0f3f9 50%, #e5eaf5 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border: 1px solid var(--border);
}
.skeleton-card--mid {
  transform: translate(16px, -6px) rotate(4deg);
  opacity: 0.7;
}
.skeleton-card--back {
  transform: translate(-12px, 10px) rotate(-5deg);
  opacity: 0.5;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Drag hint below card stack */
.drag-hint {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
  opacity: 1;
  transition: opacity .28s ease;
}
.drag-hint__text { font-weight: 600; }
.drag-hint__arrow { opacity: 0.9; }
/* Fade-out state but keep layout space */
.drag-hint.drag-hint--fade { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .drag-hint__arrow--left { animation: arrow-left-pulse 1.6s ease-in-out infinite; }
  .drag-hint__arrow--right { animation: arrow-right-pulse 1.6s ease-in-out infinite; }
}
@keyframes arrow-left-pulse {
  0%, 100% { transform: translateX(0); opacity: .9; }
  50% { transform: translateX(-6px); opacity: 1; }
}
@keyframes arrow-right-pulse {
  0%, 100% { transform: translateX(0); opacity: .9; }
  50% { transform: translateX(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .drag-hint__arrow--left,
  .drag-hint__arrow--right { animation: none; }
}


/* Lightweight confetti */
.confetti-piece {
  position: fixed;
  width: 12px; height: 12px; border-radius: 3px;
  pointer-events: none; opacity: 1; will-change: transform, opacity;
  animation: confetti-pop var(--dur, 900ms) cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.12));
}
@keyframes confetti-pop {
  0% { transform: translate(0, 0) rotate(0deg) scale(var(--scale, 1)); opacity: 1; }
  60% { transform: translate(calc(var(--dx, 0px) * .6), calc(var(--dy, -160px) * .6)) rotate(var(--rot, 0deg)) scale(var(--scale, 1)); opacity: 1; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -160px)) rotate(var(--rot, 0deg)) scale(var(--scale, 1)); opacity: 0; }
}

/* Emoji sparkles */
.confetti-emoji {
  position: fixed;
  pointer-events: none; will-change: transform, opacity;
  font-size: var(--emojiSize, 18px);
  animation: confetti-emoji var(--dur, 1000ms) cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes confetti-emoji {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  70% { transform: translate(calc(var(--dx, 0px) * .7), calc(var(--dy, -180px) * .7)) rotate(6deg) scale(1.1); opacity: 1; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -180px)) rotate(12deg) scale(1); opacity: 0; }
}

/* Confetti number */
.confetti-number {
  position: fixed;
  pointer-events: none;
  font-size: 120px;
  font-weight: 900;
  font-family: 'Poppins', Inter, system-ui, sans-serif;
  color: #fff;
  text-shadow: 
    0 0 40px rgba(16,185,129,0.8),
    0 0 80px rgba(16,185,129,0.6),
    0 8px 32px rgba(0,0,0,0.4),
    4px 4px 0 rgba(16,185,129,0.9),
    -4px -4px 0 rgba(16,185,129,0.9);
  will-change: transform, opacity;
  animation: confetti-number var(--dur, 1400ms) cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: var(--delay, 0ms);
  line-height: 1;
}
@keyframes confetti-number {
  0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0; }
  15% { opacity: 0.85; }
  60% { transform: translate(calc(var(--dx, 0px) * .5), calc(var(--dy, -120px) * .5)) scale(1.2) rotate(var(--rot, 15deg)); opacity: 0.85; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -160px)) scale(0.8) rotate(var(--rot, 30deg)); opacity: 0; }
}

/* (removed confetti ring; not used by JS) */

/* Left-swipe vacuum suck effect */
.confetti-suck {
  position: fixed;
  width: 8px; height: 8px; border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: confetti-suck 420ms cubic-bezier(.3,.9,.3,1) forwards;
}
@keyframes confetti-suck {
  0% { transform: translate(0,0) scale(1); opacity: .7; filter: none; }
  100% { transform: translate(var(--toX, -200px), var(--toY, 0px)) scale(.3) rotate(-18deg); opacity: 0; filter: blur(1px); }
}

/* Experiences scroller */
.experiences { padding: 36px 0 12px; }
.section-title { font-family: Poppins, Inter, system-ui, sans-serif; font-size: 1.25rem; margin: 0 0 12px; color: var(--muted); text-align: left; }
.scroller { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.scroller__track { display: flex; gap: 32px; padding: 8px; will-change: transform; animation: scroll var(--duration, 36s) linear infinite; }
.scroller:hover .scroller__track { animation-play-state: paused; }

.xp-card { position: relative; flex: 0 0 340px; height: 220px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); cursor: pointer; transition: transform .18s ease, box-shadow .2s ease; }
.xp-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06); -webkit-user-drag: none; user-select: none; }
.xp-card__label { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,0.9); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; color: #222; }
.xp-card:hover { transform: scale(1.08); box-shadow: 0 20px 50px rgba(0,0,0,0.2); z-index: 2; }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Social proof */
.social-proof { padding: 20px 0 48px; }
.trust { color: var(--muted); text-align: center; margin: 4px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chip { padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,0.04); border: 1px solid var(--border); font-size: 13px; cursor: pointer; transition: all 0.2s ease; user-select: none; }
.chip:hover { background: rgba(0,0,0,0.08); transform: translateY(-1px); }
.chip--active { background: linear-gradient(135deg, #7c5cff 0%, #ec4899 100%); color: white; border-color: transparent; font-weight: 500; }
.chip--active:hover { background: linear-gradient(135deg, #6b4ce6 0%, #db377f 100%); }

/* Footer */
.footer { border-top: 1px solid rgba(0,0,0,0.08); padding: 22px 0 40px; margin-top: 12px; backdrop-filter: blur(2px); }
.footer__grid { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { font-weight: 700; color: #374151; transition: transform 0.2s ease; }
.brand:hover { transform: scale(1.05); }
.footer__links { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; }
.footer__links a { color: #374151; text-decoration: none; border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; }
.footer__links a[aria-disabled="true"] { opacity: .8; cursor: not-allowed; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .card-stack-stage { max-height: 350px; }
  .card-stack { height: 360px; transform: scale(0.8); }
}

@media (max-width: 560px) {
  .waitlist__controls { grid-template-columns: 1fr; }
  .btn { height: 52px; }
  .xp-card { flex-basis: 280px; height: 190px; }
}

/* Easter egg animations */
/* Rainbow wave */
@keyframes rainbow-wave {
  0% { filter: hue-rotate(0deg) saturate(1); }
  25% { filter: hue-rotate(90deg) saturate(1.5); }
  50% { filter: hue-rotate(180deg) saturate(1.8); }
  75% { filter: hue-rotate(270deg) saturate(1.5); }
  100% { filter: hue-rotate(360deg) saturate(1); }
}

.rainbow-wave-active {
  animation: rainbow-wave 4s ease-in-out;
}

/* Dancing cards */
@keyframes card-dance {
  0%, 100% { transform: translate(calc(var(--base-x, 0px)), calc(var(--base-y, 0px))) rotate(var(--base-r, 0deg)) scale(1); }
  10% { transform: translate(calc(var(--base-x, 0px) - 8px), calc(var(--base-y, 0px) - 12px)) rotate(calc(var(--base-r, 0deg) - 5deg)) scale(1.05); }
  25% { transform: translate(calc(var(--base-x, 0px) + 8px), calc(var(--base-y, 0px) - 18px)) rotate(calc(var(--base-r, 0deg) + 5deg)) scale(1.08); }
  40% { transform: translate(calc(var(--base-x, 0px) - 6px), calc(var(--base-y, 0px) - 14px)) rotate(calc(var(--base-r, 0deg) - 4deg)) scale(1.06); }
  55% { transform: translate(calc(var(--base-x, 0px) + 6px), calc(var(--base-y, 0px) - 10px)) rotate(calc(var(--base-r, 0deg) + 4deg)) scale(1.04); }
  70% { transform: translate(calc(var(--base-x, 0px) - 4px), calc(var(--base-y, 0px) - 6px)) rotate(calc(var(--base-r, 0deg) - 2deg)) scale(1.02); }
  85% { transform: translate(calc(var(--base-x, 0px) + 2px), calc(var(--base-y, 0px) - 3px)) rotate(calc(var(--base-r, 0deg) + 1deg)) scale(1.01); }
}

.card--dancing {
  animation: card-dance 2.4s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Gentle sway */
@keyframes gentle-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}

.gentle-sway-active .card-stack,
.gentle-sway-active .hero__title,
.gentle-sway-active .waitlist,
.gentle-sway-active .xp-card {
  animation: gentle-sway 3s ease-in-out;
  transform-origin: center bottom;
}

/* Tumbling cards */
@keyframes card-tumble {
  0% {
    transform: 
      translateX(var(--base-x, 0))
      translateY(var(--base-y, 0))
      rotate(var(--base-r, 0deg))
      scale(1);
  }
  25% {
    transform: 
      translateX(calc(var(--base-x, 0) + 40px))
      translateY(calc(var(--base-y, 0) - 80px))
      rotate(calc(var(--base-r, 0deg) + 180deg))
      scale(1.1);
  }
  50% {
    transform: 
      translateX(calc(var(--base-x, 0) - 40px))
      translateY(calc(var(--base-y, 0) - 120px))
      rotate(calc(var(--base-r, 0deg) + 360deg))
      scale(1.15);
  }
  75% {
    transform: 
      translateX(calc(var(--base-x, 0) + 20px))
      translateY(calc(var(--base-y, 0) - 60px))
      rotate(calc(var(--base-r, 0deg) + 540deg))
      scale(1.05);
  }
  100% {
    transform: 
      translateX(var(--base-x, 0))
      translateY(var(--base-y, 0))
      rotate(calc(var(--base-r, 0deg) + 720deg))
      scale(1);
  }
}

.card--tumbling {
  animation: card-tumble 2.4s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Wind gust */
@keyframes wind-gust {
  0% {
    transform: translateX(0) skewX(0deg);
    filter: blur(0px);
  }
  20% {
    transform: translateX(30px) skewX(5deg);
    filter: blur(0.5px);
  }
  40% {
    transform: translateX(-20px) skewX(-4deg);
    filter: blur(0.3px);
  }
  60% {
    transform: translateX(15px) skewX(3deg);
    filter: blur(0.2px);
  }
  80% {
    transform: translateX(-8px) skewX(-2deg);
    filter: blur(0.1px);
  }
  100% {
    transform: translateX(0) skewX(0deg);
    filter: blur(0px);
  }
}

.wind-gust-active .card-stack,
.wind-gust-active .xp-card {
  animation: wind-gust 2.4s ease-in-out;
}

.wind-gust-active .hero__title,
.wind-gust-active .waitlist {
  animation: wind-gust 2.4s ease-in-out;
  animation-delay: 0.1s;
}
