html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Apple emoji */
.emoji {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.18em;
  margin: 0 0.04em;
  user-select: none;
  -webkit-user-drag: none;
}

/* falling petals/strawberries */
.petal {
  position: absolute;
  top: -8%;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  animation: fall linear infinite, sway ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 4px rgba(255, 100, 130, 0.15));
}

@keyframes fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: var(--max-opacity, 0.7); }
  92%  { opacity: var(--max-opacity, 0.7); }
  100% { transform: translate3d(0, 110vh, 0) rotate(360deg); opacity: 0; }
}

@keyframes sway {
  from { margin-left: -20px; }
  to   { margin-left: 20px; }
}

/* reveal-on-scroll */
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: reveal 0.7s cubic-bezier(.22,.61,.36,1) forwards; }

/* scarcity pulse */
@keyframes scarcity-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
#scarcity { animation: scarcity-pulse 2.5s ease-in-out infinite; }

/* promo card — pulsing gold halo */
@keyframes promo-halo {
  0%, 100% { box-shadow: 0 20px 50px -15px rgba(255, 100, 130, 0.2), 0 0 0 0 rgba(251, 191, 36, 0.5); }
  50%      { box-shadow: 0 20px 60px -10px rgba(255, 100, 130, 0.4), 0 0 0 10px rgba(251, 191, 36, 0); }
}
.promo-halo { animation: promo-halo 2.6s ease-in-out infinite; }

/* badge — wobbly pop */
@keyframes badge-pop {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.1) rotate(4deg); }
}
.badge-pop { animation: badge-pop 1.8s ease-in-out infinite; transform-origin: center; }

/* shimmer sweep every ~4.5s */
@keyframes shimmer-sweep {
  0%   { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  20%  { opacity: 0.9; }
  60%  { opacity: 0; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}
.shimmer-card { position: relative; overflow: hidden; }
.shimmer-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.shimmer-card > * { position: relative; z-index: 2; }

/* tabular nums for timer */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* floating chat bubbles — branded glow + gentle bob */
.bubble {
  position: relative;
  animation: bubble-bob 4s ease-in-out infinite;
}
.bubble-snap {
  box-shadow: 0 8px 24px -4px rgba(250, 204, 21, 0.55), 0 4px 12px rgba(0, 0, 0, 0.08);
  animation-delay: -2s;
}
.bubble-throne {
  box-shadow: 0 8px 24px -4px rgba(168, 85, 247, 0.55), 0 4px 12px rgba(0, 0, 0, 0.08);
  animation-delay: -1s;
}
.bubble-tg {
  box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.55), 0 4px 12px rgba(0, 0, 0, 0.08);
}
@keyframes bubble-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.bubble:hover { animation-play-state: paused; }

/* per-second pulse on the seconds digit */
@keyframes second-tick {
  0%   { transform: scale(1); color: var(--berry-color, currentColor); }
  30%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.tick { animation: second-tick 0.4s ease-out; }

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