/* Menu hero: the Zrestro "Make your pizza" banner, brought to life.
   The topping tiles light up one by one and drop their topping down the arrows onto the pizza,
   "PIZZA" gets a shine, stars twinkle, steam rises, the chef talks in a speech bubble below. */

.hero-card {
  position: relative; margin-top: 8px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #b3140f, #6f0c0a);
  box-shadow: 0 22px 50px -22px rgba(220, 30, 20, .6);
}
.hero-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; cursor: pointer; }
.hero-art .hero {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover;
  animation: hero-breathe 7s ease-in-out infinite alternate; transform-origin: 62% 60%; will-change: transform;
}
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }

/* shine sweeping over "PIZZA" */
.hero-shine {
  position: absolute; left: 56%; top: 10%; width: 33%; height: 18%; pointer-events: none; overflow: hidden; border-radius: 12px;
  opacity: .55;
}
.hero-shine::before {
  content: ''; position: absolute; top: -30%; bottom: -30%; width: 34%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent);
  will-change: transform; animation: hero-sweep 3.6s ease-in-out infinite;
}
/* transform only (no layout/paint per frame) */
@keyframes hero-sweep { 0%, 55% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(360%) skewX(-18deg); } }

/* topping tiles: the active one glows and bounces */
.hero-tiles { position: absolute; inset: 0; pointer-events: none; }
.hero-tiles i {
  position: absolute; left: var(--x); top: var(--y); width: 9%; height: 13%; translate: -50% -50%;
  border-radius: 14%; box-shadow: 0 0 0 2px rgba(255, 236, 150, 0), 0 0 0 rgba(255, 210, 90, 0);
  transition: box-shadow .35s ease, scale .35s cubic-bezier(.3, 1.6, .5, 1), background .35s;
}
.hero-tiles i.on {
  scale: 1.14; background: rgba(255, 240, 200, .14);
  box-shadow: 0 0 0 2px rgba(255, 236, 150, .95), 0 0 22px 4px rgba(255, 200, 80, .8);
}

/* steam off the hot pizza */
.hero-steam { position: absolute; left: 44%; right: 6%; top: 52%; height: 28%; pointer-events: none; }
.hero-steam i {
  position: absolute; bottom: 0; width: 15%; height: 90%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .5), transparent);
  opacity: 0; will-change: transform, opacity; animation: hero-steam 4.8s ease-in-out infinite;
}
.hero-steam i:nth-child(1) { left: 12%; }
.hero-steam i:nth-child(2) { left: 45%; animation-delay: 1.6s; width: 19%; }
.hero-steam i:nth-child(3) { left: 76%; animation-delay: 3.1s; }
@keyframes hero-steam {
  0% { opacity: 0; transform: translateY(20%) scale(.6, .8); }
  30% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-70%) translateX(10%) scale(1.4, 1.6); }
}

/* twinkling stars */
.hero-spark { position: absolute; inset: 0; pointer-events: none; }
.hero-spark i {
  position: absolute; left: var(--x); top: var(--y); width: 4.4%; aspect-ratio: 1; translate: -50% -50%;
  background:
    linear-gradient(90deg, transparent 46%, #fff6c8 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, #fff6c8 46% 54%, transparent 54%),
    radial-gradient(circle, #fff 0 14%, rgba(255, 230, 150, .6) 15% 28%, transparent 30%);
  -webkit-mask: radial-gradient(circle, #000 0 22%, transparent 68%); mask: radial-gradient(circle, #000 0 22%, transparent 68%);
  opacity: 0; will-change: transform, opacity; animation: hero-twinkle 2.8s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes hero-twinkle { 0%, 100% { opacity: 0; scale: .3; rotate: 0deg; } 45% { opacity: 1; scale: 1.15; rotate: 45deg; } 60% { opacity: .8; scale: .9; } }

/* toppings flying (from tiles, and from taps) */
.hero-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-rain > i { position: absolute; top: 0; left: 0; display: block; will-change: transform, opacity; box-shadow: 0 0 0 1.5px rgba(255, 245, 225, .8), 0 4px 5px rgba(0, 0, 0, .4); }
.hr-pep { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ea6b4d, #c53a22 55%, #8a2414); }
.hr-mush { border-radius: 50% 50% 22% 22%; background: linear-gradient(#f4ead8, #cdb490); }
.hr-cap { border-radius: 50%; background: radial-gradient(circle, transparent 0 40%, #3fae3a 43% 100%); }
.hr-onion { border-radius: 50%; background: radial-gradient(circle, transparent 0 38%, #f2d4ec 40% 52%, #a33a86 55% 100%); }
.hr-olive { border-radius: 50%; background: radial-gradient(circle, transparent 0 34%, #1f1e1b 36% 100%); }
.hr-tom { border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ff7a5c, #d8341f 70%); }
.hr-basil { border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #5dbb63, #2a7f35); }
.hr-chz { border-radius: 3px; background: linear-gradient(#fff3c6, #ffd96b); }

/* chef speech bubble + start row */
.hero-copy { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.hero-say {
  position: relative; margin: 0; padding: 10px 14px; min-height: 1.4em; border-radius: 16px;
  background: #fff8ee; color: #3a1a10; font: 700 clamp(13px, 3.9vw, 15px)/1.35 var(--f-hand);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}
.hero-say::before {           /* tail pointing up at the chef */
  content: ''; position: absolute; left: 26%; top: -8px; width: 16px; height: 16px; background: #fff8ee;
  transform: rotate(45deg); border-radius: 3px;
}
.say-who { position: relative; font: 800 12px/1 var(--f-ui); color: #c4281c; letter-spacing: .01em; }
.hero-say .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #c4281c; animation: hero-caret .9s steps(1) infinite; }
@keyframes hero-caret { 50% { opacity: 0; } }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hero-h { margin: 0; white-space: nowrap; font: 800 clamp(18px, 5.6vw, 22px)/1.02 var(--f-display); color: #fff7ec; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.hero-h em { font-style: normal; color: #ffd24a; }
.hero-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ffd24a, #ffb020); color: #5a1408; font: 800 15px/1 var(--f-ui);
  box-shadow: 0 10px 22px -8px rgba(255, 180, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.hero-cta span { display: inline-block; animation: hero-point 1.2s ease-in-out infinite; }
@keyframes hero-point { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

@media (max-width: 350px) { .hero-cta { flex: 1 1 100%; justify-content: center; } .say-who { display: block; margin-bottom: 3px; } }

@media (prefers-reduced-motion: reduce) {
  .hero-art .hero, .hero-shine::before, .hero-steam i, .hero-spark i, .hero-say .caret, .hero-cta span { animation: none; }
  .hero-steam, .hero-spark { display: none; }
}
