/* Aviso de pizzas que quedan (menú, pre-pedido y pedido). Lo pinta
   pizza-badge.js; los estados los decide get_pizza_status en Supabase. */
.pzb {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: 'League Spartan', sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: 14px; line-height: 1.1; color: #F2E6CE; text-align: center;
  /* borde degradado que se desplaza + fondo oscuro */
  background:
    linear-gradient(#2A1A0F, #2A1A0F) padding-box,
    linear-gradient(90deg, #FFB703, #E23F2E, #FFB703, #E23F2E) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: pzb-glow 2s ease-out infinite, pzb-border 3s linear infinite;
}
.pzb-flame { display: inline-block; font-size: 1.35em; transform-origin: 50% 90%; animation: pzb-flame 1s ease-in-out infinite; }
.pzb-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1em; height: 2.1em; padding: 0 .35em; border-radius: 999px;
  background: #FFB703; color: #2A1A0F; font-size: 1.9em; letter-spacing: 0;
  animation: pzb-pop .5s cubic-bezier(.2,1.6,.4,1) both;
}
.pzb-urgent { animation: pzb-glow 1s ease-out infinite, pzb-border 1.5s linear infinite, pzb-shake 3s ease-in-out infinite; }
.pzb-urgent .pzb-num { background: #E23F2E; color: #fff; }
.pzb-out { animation: none; filter: grayscale(.6); opacity: .85; background: linear-gradient(#2A1A0F, #2A1A0F) padding-box, linear-gradient(#6b5a48, #6b5a48) border-box; }
.pzb-out .pzb-flame { animation: none; }
.pzb-wrap { display: flex; justify-content: center; }
@keyframes pzb-glow {
  0%   { box-shadow: 0 0 0 0 rgba(255,183,3,.7), 0 8px 22px rgba(0,0,0,.28); }
  70%  { box-shadow: 0 0 0 18px rgba(255,183,3,0), 0 8px 22px rgba(0,0,0,.28); }
  100% { box-shadow: 0 0 0 0 rgba(255,183,3,0), 0 8px 22px rgba(0,0,0,.28); }
}
@keyframes pzb-border { to { background-position: 0 0, 300% 0; } }
@keyframes pzb-flame {
  0%, 100% { transform: translateY(0) scale(1) rotate(-5deg); }
  50%      { transform: translateY(-3px) scale(1.2) rotate(6deg); }
}
@keyframes pzb-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes pzb-shake {
  0%, 88%, 100% { transform: translateX(0); }
  90% { transform: translateX(-4px) rotate(-1deg); } 92% { transform: translateX(4px) rotate(1deg); }
  94% { transform: translateX(-3px); } 96% { transform: translateX(3px); } 98% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pzb, .pzb-flame, .pzb-num, .pzb-urgent { animation: none !important; }
}
