/* Sharing a flyer and The Buzz (public/buzz-celebration.js; owner decision 2026-10-18). The steps use the page's tokens
   (public/tokens-v2.css), so they work in light and dark mode; the lights and the badge are the brand's neon. */
.buzz-stage { position: relative; display: block; }
.buzz-stage > img, .buzz-stage > canvas { display: block; }

/* The named steps under the flyer. */
.buzz-progress { display: flex; gap: 8px; justify-content: center; margin: 12px auto 0; max-width: 360px; }
.buzz-step { flex: 1; display: grid; gap: 6px; justify-items: center; color: var(--ink-3); font-size: 12px; font-weight: 600; line-height: 1.1; text-align: center; }
.buzz-bar { position: relative; width: 100%; height: 6px; overflow: hidden; border-radius: 6px; background: var(--fill-2, var(--fill)); }
.buzz-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #34d6ff, #ff45b8); transition: width .25s ease-out; }
.buzz-step.is-on { color: var(--ink); }
.buzz-step.is-done { color: var(--link); }

/* The percent sent, on the flyer's corner. */
.buzz-pct { position: absolute; top: -8px; right: -8px; z-index: 3; min-width: 48px; padding: 6px 8px; border: 1.5px solid #34d6ff; border-radius: 999px; background: #1d1840; color: #ffffff;
  font-size: 12px; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 10px rgba(52, 214, 255, .55); }

/* The scan line over the flyer while it's read. */
.buzz-scan { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: 0; }
.buzz-stage.is-reading .buzz-scan { opacity: 1; }
.buzz-scan::after { content: ""; position: absolute; left: 0; right: 0; top: -18%; height: 18%; background: linear-gradient(180deg, transparent, rgba(52, 214, 255, .5) 70%, #b9f2ff 92%, transparent); mix-blend-mode: screen; }

/* The Buzz: its lights, ring and badge. */
.buzz-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.buzz-light { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; }
.buzz-ring { position: absolute; left: 50%; border: 3px solid #ff45b8; border-radius: 50%; translate: -50% -50%; }
.buzz-badge { position: absolute; left: 50%; top: 50%; z-index: 5; padding: 10px 16px; border: 2px solid #ff45b8; border-radius: 14px; background: #1d1840; color: #ffffff;
  font-size: 20px; font-weight: 800; line-height: 1.1; white-space: nowrap; transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
  box-shadow: 0 0 18px rgba(255, 69, 184, .7), inset 0 0 12px rgba(52, 214, 255, .35); }
.buzz-badge.is-shown { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .buzz-stage.is-reading .buzz-scan::after { animation: buzz-scan 1.1s ease-in-out infinite; }
  .buzz-step.is-busy .buzz-bar i { width: 40%; animation: buzz-busy 1.1s ease-in-out infinite; }
  .buzz-badge.is-shown { animation: buzz-fade .35s ease-out; }
  @keyframes buzz-scan { from { top: -18%; } to { top: 100%; } }
  @keyframes buzz-busy { from { left: -40%; } to { left: 100%; } }
  @keyframes buzz-fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .buzz-step.is-busy .buzz-bar i { width: 100%; opacity: .45; }
}
