/* Keyframes: breathing buttons, ripples, wave wipes, confetti, pops. */

/* idle "breathing" used on primary CTAs */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
.breathe {
  animation: breathe 2.6s ease-in-out infinite;
}
.breathe:active {
  animation: none;
}

/* logo arrow bob */
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-7px) rotate(4deg);
  }
}

/* tap ripple */
@keyframes ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* dialog pop */
@keyframes pop-in {
  to {
    transform: translateY(0) scale(1);
  }
}

/* generic breathe for ad art etc. already references @breathe above */

/* ---- Wave wipe between screens ----------------------------------------- */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: var(--ink);
  clip-path: circle(0% at 50% 100%);
  transition: clip-path 0.32s cubic-bezier(0.5, 0, 0.5, 1);
}
.wipe.in {
  clip-path: circle(150% at 50% 100%);
}
.wipe.out {
  clip-path: circle(0% at 50% 0%);
}

/* ---- Confetti (win) ----------------------------------------------------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 70;
}
.confetti {
  position: absolute;
  top: -14px;
  width: 11px;
  height: 16px;
  border-radius: 2px;
  animation: fall 1.8s linear forwards;
}
@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(540deg);
    opacity: 0.9;
  }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .breathe,
  .logo-arrow,
  .ad-art {
    animation: none !important;
  }
}
