:root {
  --sun: #f5b700; --herb: #17633a; --tahini: #f6edd8; --chili: #de3b26; --ink: #2a1c0e;
  --kit-bg: var(--tahini); --kit-fg: var(--ink); --kit-accent: var(--herb);
  --display: 'Fredoka', 'Rubik', sans-serif;
  --body: 'Rubik', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--tahini); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.5; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; line-height: 1; }
h2 { font-size: clamp(3.2rem, 9vw, 7rem); }

.top { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); background: var(--sun); }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.8rem; text-decoration: none; }
.logo-ball { width: 1em; height: 1em; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #c98a35, #5c3410); }
.status { font-size: .95rem; font-weight: 600; }
.status.is-open { color: var(--herb); }
.top-cta { margin-inline-start: auto; font-weight: 600; background: var(--ink); color: var(--sun); padding: .45rem 1.2rem; border-radius: 99px; text-decoration: none; }

.hero { position: relative; background: radial-gradient(circle at 50% 45%, rgba(245,183,0,0.82) 0%, rgba(245,183,0,0.92) 65%, rgba(245,183,0,0.98) 100%), url('hero.jpg') center/cover no-repeat; text-align: center; padding: clamp(1rem, 3vw, 2rem) 1rem clamp(3rem, 7vw, 5rem); min-height: calc(100vh - 150px); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
h1 { font-size: clamp(7rem, 30vw, 27rem); line-height: .86; color: var(--ink); position: relative; z-index: 1; letter-spacing: -.01em; }
h1 span { color: var(--herb); }
.hero-sub { font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 600; margin: .4rem 0 1.4rem; position: relative; z-index: 3; }
.btn { display: inline-block; position: relative; z-index: 3; font: 700 1.2rem var(--display); background: var(--chili); color: #fff; padding: .75rem 2rem; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none; box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: none; }
.btn-green { background: var(--herb); }
.balls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ball { position: absolute; width: var(--s); height: var(--s); border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; animation: fall .9s var(--d) cubic-bezier(.3,1.5,.5,1) both, bob 4s calc(var(--d) + 1s) ease-in-out infinite alternate; }
.ball svg { width: 100%; height: 100%; display: block; transition: transform .15s; }
.ball:hover svg { transform: scale(1.12) rotate(12deg); }
.ball.popped { pointer-events: none; animation: pop .35s forwards; }
@keyframes fall { from { transform: translateY(-110vh) rotate(-200deg); } }
@keyframes bob { to { translate: 0 14px; } }
@keyframes pop { to { transform: scale(1.8); opacity: 0; } }
.pop-hint { position: absolute; bottom: .9rem; inset-inline: 0; margin: 0; font-weight: 600; z-index: 3; }

.drip { height: clamp(90px, 13vw, 170px); margin-bottom: -40px; position: relative; z-index: 2; pointer-events: none; }
.drip svg { width: 100%; height: 100%; display: block; transform-origin: top; transform: scaleY(calc(.45 + var(--drip, 0) * .55)); }

.build { padding: 1rem clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }
.build h2 { position: relative; z-index: 3; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.5rem; }
.stage { position: sticky; top: 1rem; align-self: start; background: var(--sun); border-radius: 32px; padding: 1rem; }
#pita svg { width: 100%; height: auto; display: block; max-height: 70vh; }
.drop { animation: drop .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes drop { from { transform: translateY(-130px); opacity: 0; } }
.price-tag { position: absolute; top: 1.2rem; left: 1.2rem; width: 6.6rem; height: 6.6rem; border-radius: 50%; background: var(--chili); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-9deg); }
.price-tag small { font-size: .75rem; }
.price-tag strong { font: 700 1.9rem var(--display); line-height: 1; }
.ctl { margin-bottom: 1.5rem; }
.ctl h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.ctl h3 small { font: 400 .95rem var(--body); color: var(--herb); }
.tg { display: flex; flex-wrap: wrap; gap: .5rem; }
.tog { font: 600 1rem var(--body); padding: .5rem 1rem; border-radius: 99px; background: #fff; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; transition: transform .1s; }
.tog:hover { transform: rotate(-2deg) scale(1.04); }
.tog[aria-pressed=true] { background: var(--herb); color: #fff; }
.stepper { display: flex; align-items: center; gap: .8rem; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font: 700 1.5rem var(--display); cursor: pointer; color: var(--ink); }
.stepper output { font: 700 2.4rem var(--display); min-width: 1.4em; text-align: center; }

.cart { margin-top: 2.5rem; border: 3px solid var(--ink); border-radius: 24px; padding: 1.4rem; background: #fff; }
.cart h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.cart ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.cart li { display: flex; gap: 1rem; justify-content: space-between; padding-block: .5rem; border-bottom: 2px dotted #c8b995; }
.cart li button { background: none; border: 0; font: inherit; color: var(--chili); cursor: pointer; text-decoration: underline; }
.cart li span:first-child { flex: 1; }
.cart-end { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cart-end strong { font: 700 2rem var(--display); margin-inline-start: auto; }
#custName { font: inherit; padding: .6rem .9rem; border: 2px solid var(--ink); border-radius: 12px; }
.err { color: var(--chili); font-weight: 600; margin: .6rem 0 0; min-height: 1.4em; }

.ribbon { background: var(--chili); color: #fff; overflow: hidden; white-space: nowrap; font: 700 1.5rem var(--display); padding-block: .5rem; }
.ribbon div { display: inline-block; animation: slide 30s linear infinite; }
@keyframes slide { to { transform: translateX(50%); } }

.menu { background: var(--herb); color: var(--tahini); padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); }
.menu ul { list-style: none; margin: 2rem 0 0; padding: 0; columns: 2; column-gap: 4rem; }
.menu li { display: flex; justify-content: space-between; gap: 1rem; font: 500 clamp(1.3rem, 2.4vw, 1.9rem) var(--display); padding-block: .55rem; border-bottom: 2px solid #ffffff33; break-inside: avoid; }

.foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem clamp(1rem, 4vw, 3rem) 1.4rem; background: var(--sun); }
.foot h3 { font-size: 2.2rem; margin-bottom: .5rem; }
.foot p { margin: 0 0 .7rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; }
.hours li.is-today { font-weight: 600; color: var(--herb); }
.foot-legal { grid-column: 1 / -1; font-size: .88rem; margin: 0; }

.toast { position: fixed; top: 1rem; left: 50%; transform: translate(-50%, -180%); background: var(--ink); color: var(--sun); padding: .9rem 1.5rem; border-radius: 16px; font-weight: 600; z-index: 100; transition: transform .4s cubic-bezier(.3,1.4,.5,1); max-width: 92vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .build-grid { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; }
  .menu ul { columns: 1; }
  .foot { grid-template-columns: 1fr; }
  .status { display: none; }
}
