/* awna — the confetti burst (ver 2.3, shared).
   One element with twelve <i> pieces: `<span class="confetti" aria-hidden="true"><i></i>×12</span>`
   appended to a positioned parent. Pure CSS: the burst plays as the element is inserted
   and not at all under reduced motion. Used by the home page showcase, the sign-up's last
   step, the portal's chat celebrations (points, referrals), the attendance check-in page
   and the community join page. */
.confetti { position: absolute; left: 28px; top: 26px; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: 0; top: 0; width: 6px; height: 10px; border-radius: 2px; opacity: 0; background: var(--c, #f59e0b); }
.confetti i:nth-child(1)  { --x: -34px; --y: -28px; --r: -200deg; --c: #f59e0b; }
.confetti i:nth-child(2)  { --x: 12px;  --y: -38px; --r: 260deg;  --c: #ec4899; }
.confetti i:nth-child(3)  { --x: 58px;  --y: -31px; --r: 180deg;  --c: #05a5d8; }
.confetti i:nth-child(4)  { --x: 104px; --y: -24px; --r: -240deg; --c: #22c55e; }
.confetti i:nth-child(5)  { --x: -12px; --y: -47px; --r: 300deg;  --c: #8b5cf6; }
.confetti i:nth-child(6)  { --x: 38px;  --y: -50px; --r: -160deg; --c: #f59e0b; }
.confetti i:nth-child(7)  { --x: 84px;  --y: -44px; --r: 220deg;  --c: #ec4899; }
.confetti i:nth-child(8)  { --x: 130px; --y: -34px; --r: -280deg; --c: #05a5d8; }
.confetti i:nth-child(9)  { --x: -46px; --y: -13px; --r: 140deg;  --c: #22c55e; }
.confetti i:nth-child(10) { --x: 150px; --y: -12px; --r: -120deg; --c: #8b5cf6; }
.confetti i:nth-child(11) { --x: 70px;  --y: -57px; --r: 340deg; --c: #ef4444; }
.confetti i:nth-child(12) { --x: 4px;   --y: -22px; --r: -320deg; --c: #ef4444; }
.confetti i:nth-child(odd) { width: 8px; height: 5px; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes confetti-burst {
    0%   { opacity: 1; transform: translate(0, 0) rotate(0) scale(.5); }
    45%  { opacity: 1; transform: translate(calc(var(--x) * .8), var(--y)) rotate(calc(var(--r) * .5)) scale(1); }
    100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 84px)) rotate(var(--r)) scale(1); }
  }
  .confetti i { animation: confetti-burst 1.3s cubic-bezier(.2, .7, .3, 1) .15s; }
  .confetti i:nth-child(3n) { animation-delay: .22s; }
  .confetti i:nth-child(3n+1) { animation-delay: .3s; }
}
