.burger-build, .pour-scene { display: none; pointer-events: none; }
.hero .hero-picture.food-playing .burger-open > img { visibility: hidden; }
.food-playing .burger-build {
  position: absolute;
  inset: 0;
  display: block;
}
.burger-build > span {
  position: absolute;
  inset: 0;
  background: url('assets/panino-hero.webp') center / contain no-repeat;
  animation: ingredient-drop .52s cubic-bezier(.16, 1, .3, 1) var(--ingredient-delay) both;
}
.build-base { --ingredient-delay: 0ms; clip-path: polygon(0 63%, 17% 69%, 38% 70%, 62% 74%, 85% 72%, 100% 67%, 100% 100%, 0 100%); }
.build-meat { --ingredient-delay: 380ms; clip-path: polygon(0 63%, 25% 60%, 39% 61%, 39% 66%, 61% 65%, 100% 62%, 100% 67%, 85% 72%, 62% 74%, 38% 70%, 17% 69%, 0 63%); }
.build-potatoes { --ingredient-delay: 760ms; clip-path: polygon(0 58%, 25% 57%, 55% 56%, 100% 50%, 100% 62%, 61% 65%, 39% 66%, 39% 61%, 25% 60%, 0 63%); }
.build-crunch { --ingredient-delay: 1140ms; clip-path: polygon(0 58%, 11% 47%, 24% 43%, 51% 47%, 73% 48%, 100% 43%, 100% 50%, 55% 56%, 25% 57%); }
.build-peppers { --ingredient-delay: 1520ms; clip-path: polygon(0 58%, 0 43%, 18% 36%, 30% 30%, 64% 28%, 100% 32%, 100% 43%, 73% 48%, 51% 47%, 24% 43%, 11% 47%); }
.build-bun { --ingredient-delay: 1900ms; clip-path: polygon(0 0, 100% 0, 100% 32%, 64% 28%, 30% 30%, 18% 36%, 0 43%); }
@keyframes ingredient-drop {
  from { opacity: 0; transform: translateY(-13%) scale(1.035); }
  to { opacity: 1; transform: none; }
}

.beer-photo { position: relative; }
.pour-replay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--cream);
  background: var(--green);
  color: var(--cream);
  font: 700 .83rem Manrope, sans-serif;
  cursor: pointer;
}
.food-playing .pour-scene {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #22503c, #10271e 76%);
  animation: pour-exit 3s linear both;
}
.pour-glass {
  position: relative;
  width: 31%;
  height: 66%;
  clip-path: polygon(0 0, 100% 0, 87% 68%, 83% 91%, 75% 100%, 25% 100%, 17% 91%, 13% 68%);
  border-radius: 6% 6% 20% 20%;
  background: linear-gradient(90deg, #ecf8dc6b, #d8f8dd20 13%, #130d1233 57%, #fff8df55);
  box-shadow: inset 0 0 0 3px #f7f5d894;
  overflow: hidden;
}
.pour-liquid {
  position: absolute;
  inset: 7% 3% 3%;
  border-radius: 3% 3% 14% 14%;
  background: radial-gradient(circle, #fff4bc91 0 1px, transparent 2px) 0 0 / 19px 31px,
    linear-gradient(#fff4d4 0 9%, #eaaa29 11%, #c78319 67%, #f9ba35);
  animation: pint-fill 2.15s ease-out both;
}
.pour-stream {
  position: absolute;
  left: 49%;
  width: 3%;
  height: 24%;
  top: -1%;
  background: linear-gradient(90deg, #ab610b, #f8c64e, #d98b16);
  border-radius: 8px;
  transform-origin: top;
  animation: pint-stream 2.35s linear both;
}
@keyframes pint-fill { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pint-stream {
  0% { transform: scaleY(0); }
  8%, 86% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(.1); opacity: 0; }
}
@keyframes pour-exit { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
body[data-motion="paused"] [data-replay] { display: none; }
@media (prefers-reduced-motion: reduce) {
  [data-replay] { display: none; }
  .hero .hero-picture.food-playing .burger-open > img { visibility: visible; }
  .food-playing .burger-build, .food-playing .pour-scene { display: none; }
}
