/* Remove data-season="halloween" from <body> to disable this entire layer. */
body[data-season="halloween"] {
  --paper: #f8f5fb;
  --ink: #28212c;
  --tomato: #ff8846;
  --line: #ddd5e4;
  --muted: #706778;
  --halloween-lilac: #d9c5f0;
  --halloween-charcoal: #241f28;
  background: var(--paper);
}

body[data-season="halloween"] .eyebrow { letter-spacing: 0; color: #a74620; }
body[data-season="halloween"] .topbar {
  background: rgba(30, 26, 33, .88);
  border-bottom-color: rgba(217, 197, 240, .24);
}
body[data-season="halloween"] .brand img { width: 56px; height: 56px; }
body[data-season="halloween"] .topbar-left { gap: 14px; }
.halloween-logo-pumpkin { display: block; width: 42px; height: 38px; object-fit: contain; transform: rotate(8deg); }
body[data-season="halloween"] .staff-link {
  color: #251d26;
  background: rgba(255, 154, 94, .94);
  border-color: #ffac7b;
}
body[data-season="halloween"] .staff-link:hover { background: #ffb487; }
body[data-season="halloween"] .language-toggle { background: rgba(217, 197, 240, .2); border-color: rgba(233, 220, 248, .5); }
body[data-season="halloween"] .language-toggle i { background: #e6d7f4; }
body[data-season="halloween"] .intro-content { padding-bottom: 80px; }
body[data-season="halloween"] .intro-content > .eyebrow { display: none; }
body[data-season="halloween"] #pageTitle { position: relative; isolation: isolate; }
body[data-season="halloween"] #pageTitle::before {
  content: attr(data-halloween-title);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  text-shadow: 0 0 28px rgba(255, 140, 70, .45);
  pointer-events: none;
  animation: halloween-warmth 7s ease-in-out infinite alternate;
}
.halloween-scenery { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: paint; }
.halloween-hero-pumpkin { position: absolute; right: 12%; bottom: 68px; width: 132px; height: 132px; object-fit: contain; transform: rotate(-7deg); }
.halloween-leaf {
  position: absolute;
  top: -48px;
  width: 34px;
  height: 42px;
  --leaf-fall: min(79vh, 780px);
  --leaf-sway: 28px;
  opacity: 0;
  animation: halloween-drift 10s linear infinite;
}
/* Lobed leaf silhouette, with a visible central vein and stem. */
.halloween-leaf::before {
  content: "";
  position: absolute;
  inset: 0 0 7px;
  background: #ff963d;
  clip-path: polygon(50% 0, 60% 26%, 74% 17%, 69% 39%, 94% 28%, 83% 49%, 100% 55%, 72% 69%, 77% 86%, 56% 80%, 50% 95%, 44% 80%, 23% 86%, 28% 69%, 0 55%, 17% 49%, 6% 28%, 31% 39%, 26% 17%, 40% 26%);
}
.halloween-leaf::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  bottom: 1px;
  width: 2px;
  height: 68%;
  border-radius: 2px;
  background: #bd5d1c;
  transform: rotate(-5deg);
  transform-origin: bottom;
}
.leaf-one { right: 9%; animation-delay: -2s; animation-duration: 9.5s; }
.leaf-two { right: 25%; width: 29px; height: 36px; --leaf-sway: -34px; animation-delay: -6s; animation-duration: 10.5s; }
.leaf-three { right: 42%; width: 38px; height: 46px; animation-delay: -9s; animation-duration: 11.2s; }
.leaf-four { right: 55%; width: 27px; height: 34px; --leaf-sway: -26px; animation-delay: -3.7s; animation-duration: 8.7s; }
.leaf-five { right: 72%; width: 31px; height: 39px; animation-delay: -8.5s; animation-duration: 12s; }
.leaf-six { right: 88%; width: 25px; height: 32px; --leaf-sway: -22px; animation-delay: -1s; }

body[data-season="halloween"] .menu-toolbar { border-bottom-color: #c4b3d1; }
body[data-season="halloween"] .category-tab { border-color: #cec0d9; }
body[data-season="halloween"] .category-tab.active { background: var(--halloween-charcoal); color: #f5eaff; border-color: var(--halloween-charcoal); }
body[data-season="halloween"] .menu-card:hover { background: #eee7f5; }
body[data-season="halloween"] .menu-card.is-added { background: #ffecdf; }
body[data-season="halloween"] .menu-card p { color: #6c6273; }
body[data-season="halloween"] .item-image { border-color: #d2c4dc; }
body[data-season="halloween"] .add-button { border-color: #be572b; }
body[data-season="halloween"] .add-button::before,
body[data-season="halloween"] .add-button::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: #ef792d;
  clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 63%, 50% 100%, 36% 63%, 0 50%, 36% 36%);
  pointer-events: none;
  opacity: 0;
}
body[data-season="halloween"] .add-button::before { top: -10px; right: -8px; }
body[data-season="halloween"] .add-button::after { bottom: -8px; left: -10px; width: 7px; height: 7px; background: #9364ad; }
body[data-season="halloween"] .is-added .add-button::before,
body[data-season="halloween"] .is-added .add-button::after { animation: halloween-sparkle .28s ease-out both; }
body[data-season="halloween"] .cart {
  background: rgba(249, 245, 253, .9);
  border-color: rgba(192, 170, 208, .7);
}
body[data-season="halloween"] .cart-trigger { gap: 8px; background: rgba(36, 31, 40, .91); border-color: #8d738f; }
.halloween-basket-pumpkin { display: block; flex: 0 0 25px; width: 25px; height: 28px; object-fit: contain; transform-origin: 50% 90%; }
body[data-season="halloween"] .cart-trigger-count { flex: 0 0 23px; width: 23px; height: 23px; font-size: 11px; }
body[data-season="halloween"] .cart-trigger > [data-i18n] { flex: 1; min-width: 0; font-size: 12px; line-height: 1.2; text-align: left; }
body[data-season="halloween"] .cart-trigger strong { flex: 0 0 auto; margin-left: 0; font-size: 13px; white-space: nowrap; }
body[data-season="halloween"] .cart-trigger.is-updated { animation: halloween-basket-bump .3s ease-out; }
body[data-season="halloween"] .is-updated .halloween-basket-pumpkin { animation: halloween-wobble .3s ease-out; }
body[data-season="halloween"] .dialog-shell,
body[data-season="halloween"] .checkout-form,
body[data-season="halloween"] .intro-offer-dialog,
body[data-season="halloween"] .success-dialog { border-radius: 8px; }
body[data-season="halloween"] .size-choice.active { background: #ece2f5; }
body[data-season="halloween"] .item-note textarea,
body[data-season="halloween"] .checkout-form input,
body[data-season="halloween"] .checkout-form textarea,
body[data-season="halloween"] .checkout-form .phone-input { background: #fdfbff; }
body[data-season="halloween"] .checkout-summary { background: #ece2f5; }
body[data-season="halloween"] .site-footer { background: var(--halloween-charcoal); border-top: 3px solid #c395df; }
body[data-season="halloween"] .footer-icon { border-color: #bfa4d2; background: rgba(217, 197, 240, .08); }

@keyframes halloween-warmth { from { opacity: .25; } to { opacity: .75; } }
@keyframes halloween-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-28deg); }
  12% { opacity: .92; }
  30% { transform: translate3d(var(--leaf-sway), calc(var(--leaf-fall) * .3), 0) rotate(25deg); }
  62% { transform: translate3d(calc(var(--leaf-sway) * -.55), calc(var(--leaf-fall) * .62), 0) rotate(88deg); }
  85% { opacity: .92; }
  100% { opacity: 0; transform: translate3d(var(--leaf-sway), var(--leaf-fall), 0) rotate(155deg); }
}
@keyframes halloween-wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-13deg); } 70% { transform: rotate(11deg); } }
@keyframes halloween-sparkle { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px) scale(1.3); } }
@keyframes halloween-basket-bump { 50% { transform: translateY(-4px); } }
body[data-season-motion="paused"] .halloween-scenery *,
body[data-season-motion="paused"] #pageTitle::before { animation-play-state: paused; }

@media (max-width: 560px) {
  body[data-season="halloween"] .brand img { width: 46px; height: 48px; }
  body[data-season="halloween"] .topbar-left { gap: 7px; }
  .halloween-logo-pumpkin { width: 31px; height: 31px; }
  body[data-season="halloween"] .intro-content { padding-bottom: 66px; }
  .halloween-hero-pumpkin { width: 88px; height: 88px; right: 20px; bottom: 65px; }
  .halloween-scenery .leaf-five, .halloween-scenery .leaf-six { display: none; }
  .halloween-leaf { --leaf-fall: 72vh; }
  body[data-season="halloween"] .cart-trigger { gap: 7px; padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-season="halloween"] .halloween-scenery *,
  body[data-season="halloween"] #pageTitle::before,
  body[data-season="halloween"] .cart-trigger,
  body[data-season="halloween"] .halloween-basket-pumpkin,
  body[data-season="halloween"] .add-button::before,
  body[data-season="halloween"] .add-button::after { animation: none !important; }
  body[data-season="halloween"] .halloween-leaf { display: none; }
}
body:not([data-season="halloween"]) :is(.halloween-logo-pumpkin, .halloween-scenery, .halloween-basket-pumpkin) { display: none; }
