/* ==========================================================================
   Hot Ticket Burgers
   Palette: sauce (oxblood) for the dark sections, cheese for action and
   offers, ticket paper for reading. Type: Big Shoulders Display for signage,
   Familjen Grotesk for reading, Courier Prime only where something is
   "printed" on an order ticket.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sauce: #5a0d0a;
  --sauce-deep: #3d0806;
  --sauce-lift: #771811;
  --cheese: #ffb81c;
  --cheese-hover: #ffc847;
  --cheese-deep: #d99300;
  --ketchup: #d42419;
  --paper: #fbf5e9;
  --paper-2: #f2e7d2;
  --ticket: #fffdf7;
  --char: #2b1310;
  --char-soft: #6b4d45;
  --line: rgb(43 19 16 / 0.14);
  --pickle: #3fa34d;
  --on-dark: #fbf5e9;
  --on-dark-soft: rgb(251 245 233 / 0.74);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Torn ticket edge, 720px tile that repeats seamlessly */
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26 L0 12 L6.0 18.7 L16.6 6.6 L34.3 12.1 L45.6 15.8 L63.6 12.2 L80.6 13.8 L99.7 7.1 L111.7 15.0 L128.8 3.9 L145.8 11.0 L166.5 16.7 L174.5 11.7 L195.3 14.7 L211.6 12.8 L232.2 18.4 L244.1 8.7 L263.5 8.6 L271.9 8.1 L284.8 8.0 L305.8 12.5 L323.5 17.9 L330.4 7.6 L345.4 11.6 L358.1 6.3 L378.7 3.9 L390.5 8.9 L407.1 18.7 L421.4 5.8 L433.9 7.8 L445.7 10.2 L457.0 12.0 L472.8 7.0 L493.3 10.8 L513.2 13.8 L529.3 11.8 L543.4 14.7 L564.4 9.7 L581.7 7.3 L597.1 9.0 L608.4 9.7 L627.1 17.9 L634.9 16.9 L642.2 9.9 L650.6 4.3 L672.6 6.7 L688.7 5.5 L702.0 13.1 L710.2 18.7 L720 12 L720 26Z'/%3E%3C/svg%3E");
  /* Fine grain so the flat reds read like printed stock, not a screen fill */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--char);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.has-order-bar { padding-bottom: 84px; }

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
address { font-style: normal; }
::selection { background: var(--cheese); color: var(--sauce-deep); }

:focus-visible { outline: 3px solid var(--ketchup); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible,
.smash :focus-visible,
.footer :focus-visible,
.site-header :focus-visible,
.nav-sheet :focus-visible,
.order-bar :focus-visible,
.toast :focus-visible { outline-color: var(--cheese); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--cheese); color: var(--sauce-deep);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.1rem, 8.4vw, 6.75rem);
  line-height: 0.86;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { max-width: 40ch; font-size: 1.0625rem; color: var(--char-soft); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
  .section-head p { justify-self: end; padding-bottom: 0.6em; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 48px;
  padding: 0.55em 1.35em 0.5em;
  border: 0;
  border-radius: 10px;
  font: 800 1.2rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s, color 0.16s, transform 0.16s var(--ease-out), box-shadow 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-lg { min-height: 58px; font-size: 1.4rem; padding-inline: 1.5em; }
.btn-block { display: flex; width: 100%; }

.btn-cheese { background: var(--cheese); color: var(--sauce-deep); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.12); }
.btn-cheese:hover { background: var(--cheese-hover); }
.btn-sauce { background: var(--sauce); color: var(--paper); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.25); }
.btn-sauce:hover { background: var(--sauce-lift); }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 2px rgb(251 245 233 / 0.4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--on-dark); }
.btn-outline { background: transparent; color: var(--char); box-shadow: inset 0 0 0 2px var(--char); }
.btn-outline:hover { background: var(--char); color: var(--paper); }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgb(43 19 16 / 0.07);
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s;
}
.icon-btn:hover { background: rgb(43 19 16 / 0.14); }

/* ---------- Ticket (shared by hero, regulars, confirmation) ---------- */
.ticket {
  position: relative;
  background: var(--ticket);
  color: var(--char);
  padding: 18px 18px 34px;
  border-radius: 3px 3px 0 0;
}
.ticket-zig {
  --zz: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
}
.ticket-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--char-soft);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px dashed rgb(43 19 16 / 0.3);
}
.ticket-small { font-size: 0.82rem; color: var(--char-soft); }

/* ---------- Torn edge at the top of a section ---------- */
.tear {
  position: absolute;
  left: 0; right: 0; top: 1px;
  height: 26px;
  transform: translateY(-100%);
  background: inherit;
  -webkit-mask: var(--tear) repeat-x 0 0 / 720px 26px;
  mask: var(--tear) repeat-x 0 0 / 720px 26px;
  pointer-events: none;
  z-index: 2;
}
.tear-alt { -webkit-mask-position: -310px 0; mask-position: -310px 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.site-header.is-solid {
  background: rgb(61 8 6 / 0.94);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 10px 30px rgb(30 4 3 / 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; text-decoration: none; flex-shrink: 0; }
.logo-ticket {
  display: inline-block;
  padding: 0.34em 0.85em 0.3em;
  border-radius: 4px;
  background: var(--cheese);
  color: var(--sauce-deep);
  font: 900 1.5rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: rotate(-3deg);
  -webkit-mask:
    radial-gradient(circle 0.3em at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 0.3em at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 0.3em at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 0.3em at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.logo-ticket-lg { font-size: clamp(2.6rem, 6vw, 4rem); }

.main-nav { display: none; gap: 30px; margin-inline: auto; }
.main-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--cheese), var(--cheese)) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease-out);
}
.main-nav a:hover { background-size: 100% 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.status { display: none; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--on-dark-soft); white-space: nowrap; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cheese); flex-shrink: 0; }
.is-open .status-dot { background: var(--pickle); box-shadow: 0 0 0 4px rgb(63 163 77 / 0.22); }

.bag-button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 8px 0 14px;
  border: 0; border-radius: 10px;
  background: var(--cheese); color: var(--sauce-deep);
  font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.15s;
}
.bag-button:hover { background: var(--cheese-hover); }
.bag-count {
  display: grid; place-items: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 7px;
  background: var(--sauce); color: var(--cheese);
  font-size: 1.05rem;
}
.bag-count.bump { animation: bump 0.45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 10px;
  background: rgb(251 245 233 / 0.1); color: var(--on-dark);
  cursor: pointer;
}

@media (min-width: 560px) { .status { display: inline-flex; } }
@media (min-width: 1000px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
}
@media (max-width: 420px) { .bag-label { display: none; } .bag-button { padding-left: 10px; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--sauce);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 120%, rgb(20 2 1 / 0.6), transparent 60%),
    var(--grain);
  color: var(--on-dark);
  overflow: clip;
}
.hero-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }

.hero-in {
  /* --ht is the headline size. The burger's top and height are measured in it,
     so the burger always lands on the lower half of the second line. */
  --ht: min(23.5vw, 9rem);
  --b-top: 1.24;
  --b-h: 2.5;
  --b-ratio: 1.4458; /* width / height of images/hero-burger.webp */
  --pad-top: calc(var(--header-h) + 22px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding-top: var(--pad-top);
  padding-bottom: clamp(64px, 9vw, 96px);
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--ht);
  line-height: 0.84;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.005em;
}
.ht-mask { display: block; overflow: clip; padding-top: 0.04em; margin-top: -0.04em; white-space: nowrap; }
.ht-line { display: block; }
.ht-1 { color: var(--paper); }
.ht-2 { color: var(--cheese); }

.hero-burger {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(var(--pad-top) + var(--ht) * var(--b-top));
  height: calc(var(--ht) * var(--b-h));
  aspect-ratio: var(--b-ratio);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Heat glow from the flat top, behind the burger only */
.hero-burger::before {
  content: "";
  position: absolute;
  inset: -34% -26%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(255 120 40 / 0.42), rgb(255 90 30 / 0.12) 55%, transparent);
}
.hero-burger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgb(20 2 1 / 0.55)) drop-shadow(0 6px 10px rgb(20 2 1 / 0.35));
}

/* Ingredients around the burger. Like the burger, they are placed in headline
   units from the center: --x/--y is the piece's center, --w its width.
   --mx/--my (−1…1) come from the pointer on desktop; --depth sets how far each drifts. */
.hero-burger { translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -4px); transition: translate 0.7s var(--ease-out); }
.deco {
  --x: 0;
  --y: 0;
  --w: 0.6;
  --r: 0deg;
  --blur: 0px;
  --depth: 10px;
  position: absolute;
  z-index: 1;
  left: calc(50% + var(--x) * var(--ht));
  top: calc(var(--pad-top) + var(--y) * var(--ht));
  width: calc(var(--w) * var(--ht));
  height: auto;
  translate: calc(-50% + var(--mx, 0) * var(--depth)) calc(-50% + var(--my, 0) * var(--depth));
  rotate: var(--r);
  filter: blur(var(--blur)) drop-shadow(0 14px 16px rgb(20 2 1 / 0.45));
  pointer-events: none;
  user-select: none;
  transition: translate 0.7s var(--ease-out);
}
/* Phones: two pieces at the burger's bottom corners */
.deco-pickle-1,
.deco-cheese { display: none; }
.deco-onion { --x: 1.58; --y: 3.32; --w: 0.72; --r: 14deg; --blur: 0.6px; --depth: -8px; }
.deco-pickle-2 { --x: -1.55; --y: 3.42; --w: 0.85; --r: -18deg; --blur: 1px; --depth: 18px; z-index: 4; }

@media (min-width: 600px) {
  .deco-pickle-1,
  .deco-cheese { display: block; }
  .deco-pickle-1 { --x: -2.08; --y: 0.4; --w: 0.46; --r: -24deg; }
  .deco-cheese { --x: 2.13; --y: 1.24; --w: 0.46; --r: 10deg; --depth: 12px; }
  .deco-onion { --x: 1.38; --y: 2.86; --w: 0.56; }
  .deco-pickle-2 { --x: -1.32; --y: 2.96; --w: 0.64; --blur: 1.5px; }
}

@media (min-width: 1100px) {
  .deco-pickle-1 { --x: -2.28; --y: 0.4; --w: 0.6; }
  .deco-cheese { --x: 2.33; --y: 1.2; --w: 0.78; }
  .deco-onion { --x: -1.2; --y: 2.62; --w: 0.55; --r: -12deg; --blur: 1px; }
  .deco-pickle-2 { --x: 0.9; --y: 2.72; --w: 0.8; --r: 22deg; --blur: 2.5px; --depth: 22px; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--ht) * (var(--b-top) + var(--b-h) - 1.68) + 20px);
  text-align: center;
}
.hero-lede { max-width: 44ch; margin: 0 auto; font-size: 1.075rem; color: var(--on-dark-soft); text-wrap: pretty; }
.hero-ctas { display: grid; gap: 12px; margin-top: 26px; }

.hero-ticket {
  position: relative;
  z-index: 3;
  width: min(100%, 330px);
  margin: 44px auto 0;
  transform: rotate(2.5deg);
  filter: drop-shadow(0 18px 28px rgb(20 2 1 / 0.45));
}
.ticket-line { margin-top: 8px; font: 700 1.15rem/1.25 var(--sans); }
.ticket-line .mono { font-weight: 700; font-size: 1rem; }
.ticket-name { flex: 1; }
.ticket-mods { margin: 4px 0 14px 22px; font-size: 0.82rem; line-height: 1.45; color: var(--char-soft); }
.ticket-status {
  font-size: 0.82rem;
  line-height: 1.45;
  padding-top: 10px;
  margin-bottom: 14px;
  border-top: 1.5px dashed rgb(43 19 16 / 0.3);
}

@media (min-width: 600px) {
  .hero-in { --ht: min(19vw, 10rem); --b-h: 2; }
  .hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; }
}

/* Three columns: copy, burger, ticket. The middle column is exactly as wide as the burger. */
@media (min-width: 1100px) {
  .hero-in {
    --ht: clamp(8.5rem, min(16vw, 25svh), 15.5rem);
    --b-top: 1.3;
    --b-h: 1.55;
    --pad-top: calc(var(--header-h) + 14px);
    grid-template-columns: 1fr calc(var(--ht) * var(--b-h) * var(--b-ratio)) 1fr;
    column-gap: 28px;
    min-height: min(100svh, 1000px);
    align-content: start;
    padding-bottom: 72px;
  }
  .hero-title { grid-column: 1 / -1; }
  .hero-copy { grid-column: 1; margin-top: 30px; text-align: left; align-self: start; }
  .hero-lede { margin: 0; font-size: 1.125rem; }
  .hero-ctas { justify-content: flex-start; }
  .hero-ticket { grid-column: 3; margin: 26px 0 0 auto; width: min(100%, 320px); }
}
@media (min-width: 1280px) { .hero-in { --b-h: 1.72; } }

/* Load sequence: headline rises, burger drops onto it, ticket prints */
@media (prefers-reduced-motion: no-preference) {
  .js .ht-line { animation: rise 0.9s var(--ease-out) both; }
  .js .ht-2 { animation-delay: 0.1s; }
  .js .hero-burger img { animation: drop 1s var(--spring) 0.28s both; }
  .js .hero-copy { animation: fade 0.8s var(--ease-out) 0.65s both; }
  .js .deco { animation: toss 1s var(--spring) 0.45s both; }
  .js .deco-cheese { animation-delay: 0.55s; }
  .js .deco-onion { animation-delay: 0.62s; }
  .js .deco-pickle-2 { animation-delay: 0.7s; }
  .js .hero-ticket .ticket { animation: print 0.9s steps(14, end) 0.9s both; }
}
@keyframes rise { from { transform: translateY(102%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-14%) scale(1.06) rotate(-3deg); } 30% { opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes toss { from { opacity: 0; transform: translateY(-40%) scale(0.7) rotate(-25deg); } 35% { opacity: 1; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   Menu
   ========================================================================== */
.menu {
  position: relative;
  background: var(--paper);
  padding: clamp(44px, 6vw, 72px) 0 clamp(80px, 10vw, 128px);
}

.promises {
  display: grid;
  gap: 18px;
  padding-bottom: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.promises li { display: flex; gap: 14px; align-items: flex-start; }
.promises svg { flex-shrink: 0; color: var(--ketchup); margin-top: 2px; }
.promises strong { display: block; font: 800 1.45rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.promises span { display: block; margin-top: 4px; font-size: 0.97rem; color: var(--char-soft); }
@media (min-width: 800px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.menu-tabs {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 20;
  margin-bottom: 8px;
  background: rgb(251 245 233 / 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-tabs-in {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.menu-tabs-in::-webkit-scrollbar { display: none; }
.menu-tabs a {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 11px 18px 10px;
  border-radius: 10px;
  font: 800 1.15rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--char-soft);
  transition: background-color 0.2s, color 0.2s;
}
.menu-tabs a:hover { color: var(--char); background: rgb(43 19 16 / 0.06); }
.menu-tabs a[aria-current="true"] { background: var(--sauce); color: var(--paper); }

.menu-group { padding-top: clamp(36px, 5vw, 64px); scroll-margin-top: 40px; }
.group-head { display: grid; gap: 6px; margin-bottom: 18px; }
.group-title { font: 900 clamp(2.1rem, 4.6vw, 3rem)/0.95 var(--display); text-transform: uppercase; }
.group-note { font-size: 0.97rem; color: var(--char-soft); max-width: 60ch; }
@media (min-width: 800px) {
  .group-head { grid-template-columns: auto 1fr; align-items: baseline; gap: 28px; margin-bottom: 26px; }
  .group-note { justify-self: end; text-align: right; }
}

/* Item: a row on phones, a card from 640px up */
.items { display: grid; }
.item {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.items .item:first-child { padding-top: 4px; }
.item-media { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.item:hover .item-media img { transform: scale(1.045); }
.item-body { display: flex; flex-direction: column; min-height: 100%; }
.item-name { font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 6px; }
.item-open { all: unset; cursor: pointer; }
.item-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.item-open:focus-visible { outline: none; }
.item:has(.item-open:focus-visible) { outline: 3px solid var(--ketchup); outline-offset: 4px; border-radius: 14px; }
.item-desc { font-size: 0.95rem; line-height: 1.45; color: var(--char-soft); margin-bottom: 12px; }
.item-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.price { font: 800 1.45rem/1 var(--display); letter-spacing: 0.01em; }
.tag {
  padding: 0.32em 0.65em 0.3em;
  border-radius: 999px;
  background: rgb(212 36 25 / 0.1);
  color: var(--ketchup);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.tag-veg { background: rgb(63 163 77 / 0.14); color: #256d30; }
.add {
  position: relative;
  z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: var(--sauce); color: var(--paper);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s var(--ease-out);
}
.add:hover { background: var(--ketchup); }
.add:active { transform: scale(0.9); }
.add.added { animation: added 0.5s var(--spring); }
@keyframes added { 40% { transform: scale(1.18) rotate(90deg); background: var(--cheese); color: var(--sauce-deep); } }

@media (min-width: 640px) {
  .items { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .item { grid-template-columns: 1fr; gap: 14px; padding: 0; border-bottom: 0; }
  .items .item:first-child { padding-top: 0; }
  .items-burgers .item-media { aspect-ratio: 5 / 4; border-radius: 16px; }
  .items-burgers .item-name { font-size: 1.9rem; }
}
@media (min-width: 1040px) {
  .items-burgers { grid-template-columns: repeat(3, 1fr); gap: 52px 32px; }
  .items-small { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
}

/* ==========================================================================
   Late shift
   ========================================================================== */
.deal {
  position: relative;
  background: var(--cheese);
  color: var(--sauce-deep);
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px);
}
.deal-in { display: grid; gap: 36px; align-items: center; }
.deal-title { font-size: clamp(4.6rem, 15vw, 10.5rem); line-height: 0.82; }
.deal-lede { max-width: 40ch; margin-top: 18px; font-size: 1.125rem; font-weight: 500; color: rgb(61 8 6 / 0.85); }

.countdown { margin: 28px 0 30px; }
.countdown-label { font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.countdown-digits { display: flex; gap: 10px; }
.countdown-digits span {
  display: grid;
  justify-items: center;
  min-width: 88px;
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: var(--sauce);
  color: var(--cheese);
}
.countdown-digits b { font: 900 3.1rem/0.9 var(--display); font-variant-numeric: tabular-nums; }
.countdown-digits small { margin-top: 4px; font-size: 0.8rem; font-weight: 600; color: var(--on-dark-soft); }
.countdown.is-live .countdown-label::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px; margin-right: 8px;
  border-radius: 50%;
  background: var(--ketchup);
  vertical-align: 1px;
}

.deal-art { position: relative; width: min(100%, 760px); margin-inline: auto; padding-top: 6%; }
.deal-combo {
  width: 100%;
  filter: drop-shadow(0 28px 30px rgb(61 8 6 / 0.32)) drop-shadow(0 6px 8px rgb(61 8 6 / 0.2));
}
.sticker {
  position: absolute; left: 1%; top: 0;
  display: grid; place-content: center; text-align: center;
  width: clamp(96px, 24%, 136px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ketchup); color: var(--paper);
  font: 900 clamp(1.4rem, 3.2vw, 2rem)/0.9 var(--display); text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 5px var(--cheese), 0 0 0 7px var(--ketchup);
}
.sticker span:last-child { font-size: 0.8em; }

@media (min-width: 900px) {
  .deal-in { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
}

/* ==========================================================================
   The cook
   ========================================================================== */
.smash {
  position: relative;
  background-color: var(--sauce);
  background-image: var(--grain);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 112px) 0 clamp(88px, 11vw, 136px);
}
.smash .section-head p { color: var(--on-dark-soft); }

.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step { scroll-snap-align: start; }
.step-media { margin: 0 0 18px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--sauce-deep); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-time {
  display: flex; align-items: center; gap: 14px;
  font: 900 3.3rem/0.9 var(--display);
  color: var(--cheese);
  font-variant-numeric: tabular-nums;
}
.step-time::after { content: ""; flex: 1; border-top: 2px dashed rgb(255 184 28 / 0.45); }
.step:last-child .step-time::after { border-top-style: solid; border-color: var(--cheese); }
.step-title { margin-top: 12px; font: 800 1.85rem/1 var(--display); text-transform: uppercase; }
.step-text { margin-top: 8px; font-size: 0.98rem; color: var(--on-dark-soft); max-width: 34ch; }

@media (min-width: 760px) {
  .steps {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    padding: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 28px;
    overflow: visible;
  }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step:nth-child(even) { margin-top: 56px; }
}

/* ==========================================================================
   Regulars' tickets on the rail
   ========================================================================== */
.regulars {
  position: relative;
  background: var(--paper-2);
  padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 9vw, 112px);
}
.rail-scroller { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.rail-scroller::-webkit-scrollbar { display: none; }
.rail-tickets {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 300px);
  gap: 20px;
  width: max-content;
  min-width: min(100% - 2 * var(--gutter), var(--max));
  padding: 0 var(--gutter) 28px;
  margin-inline: 0;
}
/* The steel rail the tickets hang from */
.rail-tickets::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(#f1eee9, #b9b3aa 45%, #8d877e 55%, #cfcac2);
  box-shadow: 0 4px 10px rgb(43 19 16 / 0.22), inset 0 1px 0 #fff;
  z-index: 2;
}
.reg {
  scroll-snap-align: start;
  padding-top: 8px;
  filter: drop-shadow(0 12px 18px rgb(43 19 16 / 0.18));
}
.reg-ticket { height: 100%; display: flex; flex-direction: column; padding-top: 22px; transform-origin: 50% 0; }
.reg:nth-child(odd) .reg-ticket { transform: rotate(-1.4deg); }
.reg:nth-child(even) .reg-ticket { transform: rotate(1.1deg); }
.reg-name { font: 800 1.75rem/1 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.reg-ticket .ticket-small { margin-bottom: 14px; }
.reg-lines { flex: 1; margin-bottom: 16px; font-size: 0.95rem; color: var(--char-soft); }

.lines { font-family: var(--mono); font-size: 0.9rem; line-height: 1.4; color: var(--char); }
.lines li { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 4px 6px; padding: 3px 0; }
.lines .mods { grid-column: 2 / -1; font-size: 0.82rem; color: var(--char-soft); }
.lines-total {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1.5px dashed rgb(43 19 16 / 0.3);
  font-family: var(--mono); font-weight: 700;
}

@media (min-width: 1000px) {
  .rail-scroller { overflow: visible; }
  .rail-tickets {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    padding: 0 0 28px;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .rail-tickets::before { left: -20px; right: -20px; }
}

/* ==========================================================================
   Visit
   ========================================================================== */
.visit {
  position: relative;
  background: var(--paper);
  padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 12vw, 150px);
}
.visit-in { display: grid; gap: 48px; }
.visit-media { position: relative; padding-bottom: 18%; }
.visit-photo { border-radius: 18px; object-fit: cover; }
.visit-photo-a { width: 74%; aspect-ratio: 4 / 5; }
.visit-photo-b {
  position: absolute; right: 0; bottom: 0;
  width: 52%; aspect-ratio: 1;
  border: 8px solid var(--paper);
  border-radius: 22px;
}
.visit-info .h2 { margin-bottom: 18px; }
.visit-status { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 22px; }
.visit-address { font: 800 2rem/1.02 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.visit-near { margin-top: 10px; color: var(--char-soft); max-width: 42ch; }

.hours { width: 100%; margin: 26px 0; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { padding: 9px 12px; text-align: left; border-bottom: 1.5px dashed var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--char-soft); font-variant-numeric: tabular-nums; }
.hours tr.is-today th,
.hours tr.is-today td { background: var(--cheese); color: var(--sauce-deep); font-weight: 700; border-bottom-color: transparent; }
.hours tr.is-today th { border-radius: 8px 0 0 8px; }
.hours tr.is-today td { border-radius: 0 8px 8px 0; }

.visit-notes { display: grid; gap: 16px; margin: 0 0 28px; }
.visit-notes dt { font: 800 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.visit-notes dd { margin: 0; font-size: 0.97rem; color: var(--char-soft); }
.visit-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 640px) { .visit-notes { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 960px) {
  .visit-in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .visit-media { padding-bottom: 14%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background-color: var(--sauce-deep);
  background-image: var(--grain);
  color: var(--on-dark);
  padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-in { display: grid; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; color: var(--on-dark-soft); }
.footer-title { margin-bottom: 14px; font: 800 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--cheese); }
.footer-col p { color: var(--on-dark-soft); font-size: 0.97rem; }
.footer-col p + p { margin-top: 12px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--on-dark); }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--cheese); text-underline-offset: 4px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgb(251 245 233 / 0.14);
  font-size: 0.9rem; color: var(--on-dark-soft);
}
.footer-base a { color: inherit; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.5fr 1fr 1.3fr 1fr; } }

/* ==========================================================================
   Floating UI
   ========================================================================== */
.order-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  animation: bar-in 0.35s var(--ease-out);
}
.order-bar[hidden] { display: none; }
.order-bar-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 60px;
  padding: 0 18px;
  border: 0; border-radius: 14px;
  background: var(--cheese); color: var(--sauce-deep);
  box-shadow: 0 14px 30px rgb(43 19 16 / 0.32);
  font: 800 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  cursor: pointer;
}
.order-bar-count {
  padding: 6px 9px 5px; border-radius: 8px;
  background: var(--sauce); color: var(--cheese);
  font-size: 1rem;
}
.order-bar-total { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes bar-in { from { transform: translateY(130%); } }
@media (min-width: 900px) { .order-bar { display: none; } body.has-order-bar { padding-bottom: 0; } }

.toast {
  position: fixed;
  left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100% - 24px);
  padding: 12px 12px 12px 18px;
  border-radius: 12px;
  background: var(--char); color: var(--paper);
  box-shadow: 0 14px 34px rgb(43 19 16 / 0.35);
  font-weight: 600; font-size: 0.97rem;
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.has-order-bar .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.toast button {
  flex-shrink: 0;
  padding: 9px 12px 8px; border: 0; border-radius: 8px;
  background: var(--cheese); color: var(--sauce-deep);
  font: 800 1rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  cursor: pointer;
}
@media (min-width: 900px) { .has-order-bar .toast { bottom: 24px; } }

/* ==========================================================================
   Dialogs
   ========================================================================== */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: var(--char); background: transparent; }
dialog::backdrop { background: rgb(30 5 3 / 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open]::backdrop { animation: fade-plain 0.3s ease both; }
@keyframes fade-plain { from { opacity: 0; } }

/* Mobile navigation */
.nav-sheet { width: 100%; height: 100%; margin: 0; inset: 0; background-color: var(--sauce); background-image: var(--grain); color: var(--on-dark); }
.nav-sheet[open] { animation: fade-plain 0.25s ease both; }
.nav-sheet-in { display: flex; flex-direction: column; min-height: 100%; padding: 14px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.nav-sheet-top { display: flex; justify-content: space-between; align-items: center; height: 54px; }
.nav-sheet .icon-btn { background: rgb(251 245 233 / 0.1); color: var(--on-dark); }
.nav-sheet-links { display: grid; gap: 2px; margin: 40px 0 auto; }
.nav-sheet-links a {
  font: 900 clamp(3rem, 15vw, 4.5rem)/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.nav-sheet-links a:hover { color: var(--cheese); }
.nav-sheet-status { margin: 32px 0 14px; color: var(--on-dark-soft); }

/* Shared sheet (item customizer) */
.sheet {
  width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  inset: auto 0 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  overflow: hidden;
}
.sheet[open] { animation: sheet-up 0.4s var(--ease-out) both; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-in { position: relative; display: flex; flex-direction: column; max-height: 92dvh; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; }
/* Floats over the photo, then turns into a title bar once the photo scrolls away */
.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  margin-bottom: -64px;
  padding: 0 12px 0 22px;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.sheet-bar-title {
  font: 900 1.5rem/1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s;
}
.sheet-bar.is-stuck { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.sheet-bar.is-stuck .sheet-bar-title { opacity: 1; }
.sheet-close { flex-shrink: 0; margin-left: auto; background: rgb(251 245 233 / 0.92); }
.sheet-close:hover { background: var(--paper); }
.sheet-bar.is-stuck .sheet-close { background: rgb(43 19 16 / 0.07); }
.item-sheet-media { aspect-ratio: 16 / 10; max-height: 38dvh; width: 100%; background: var(--paper-2); overflow: hidden; }
.item-sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.item-sheet-body { padding: 22px 22px 8px; }
.item-sheet-title { font: 900 2.6rem/0.92 var(--display); text-transform: uppercase; }
.item-sheet-desc { margin-top: 10px; color: var(--char-soft); }

.opt-group { margin: 24px 0 0; padding: 0; border: 0; }
.opt-group legend { padding: 0; margin-bottom: 8px; font: 800 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.opt:last-child { border-bottom: 0; }
.opt input {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 24px; height: 24px; margin: 0;
  border: 2px solid rgb(43 19 16 / 0.45);
  border-radius: 7px;
  display: grid; place-items: center;
  transition: background-color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.opt input:checked {
  border-color: var(--sauce);
  background: var(--sauce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fbf5e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.opt-text { flex: 1; }
.opt-label { display: block; font-weight: 600; }
.opt-note { display: block; font-size: 0.88rem; color: var(--char-soft); }
.opt-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--char-soft); }
.opt-meal { padding: 12px 14px; margin-top: 4px; border: 2px solid var(--cheese); border-radius: 14px; background: rgb(255 184 28 / 0.14); }

.sheet-foot {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.sheet-submit { flex: 1; justify-content: space-between; gap: 10px; white-space: nowrap; }
@media (max-width: 480px) {
  .sheet-foot { gap: 10px; padding-inline: 14px; }
  .sheet-submit { font-size: 1.2rem; padding-inline: 16px; }
  .sheet-foot .qty-btn { width: 38px; }
}
.sheet-submit-price { font-variant-numeric: tabular-nums; }

.qty { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: rgb(43 19 16 / 0.07); }
.qty-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--char);
  cursor: pointer;
}
.qty-btn:hover { background: rgb(43 19 16 / 0.08); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-value { min-width: 28px; text-align: center; font: 800 1.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.qty-sm .qty-btn { width: 36px; height: 36px; }
.qty-sm .qty-value { min-width: 22px; font-size: 1.2rem; }

@media (min-width: 700px) {
  .sheet {
    width: min(560px, 100% - 32px);
    max-height: 88dvh;
    margin: auto;
    inset: 0;
    border-radius: 22px;
  }
  .sheet-in { max-height: 88dvh; }
  .sheet[open] { animation: sheet-pop 0.35s var(--ease-out) both; }
  .sheet-foot { padding-bottom: 14px; }
}
@keyframes sheet-pop { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* Order drawer: a long pickup ticket */
.drawer {
  width: 100%;
  height: 94dvh;
  margin: auto 0 0;
  inset: auto 0 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper-2);
  overflow: hidden;
}
.drawer[open] { animation: sheet-up 0.4s var(--ease-out) both; }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px 22px;
  background-color: var(--sauce);
  background-image: var(--grain);
  color: var(--on-dark);
}
.drawer-head .icon-btn { background: rgb(251 245 233 / 0.12); color: var(--on-dark); }
.drawer-title { font: 900 2rem/1 var(--display); text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 0; }

@media (min-width: 700px) {
  .drawer {
    width: min(460px, 100%);
    height: 100dvh;
    margin: 0 0 0 auto;
    inset: 0 0 0 auto;
    border-radius: 0;
  }
  .drawer[open] { animation: drawer-in 0.4s var(--ease-out) both; }
}
@keyframes drawer-in { from { transform: translateX(100%); } }

.receipt { filter: drop-shadow(0 8px 16px rgb(43 19 16 / 0.12)); }
.receipt .ticket { padding: 20px 18px 36px; }
.receipt-head { text-align: center; font-size: 0.82rem; line-height: 1.5; color: var(--char-soft); text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1.5px dashed rgb(43 19 16 / 0.3); }
.receipt-head strong { display: block; font-size: 1rem; color: var(--char); }

.bag-lines { display: grid; }
.bag-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line-name { font-weight: 700; line-height: 1.25; }
.bag-line-price { font-family: var(--mono); font-weight: 700; text-align: right; }
.bag-line-mods { grid-column: 1; font-family: var(--mono); font-size: 0.82rem; line-height: 1.45; color: var(--char-soft); }
.bag-line .qty { grid-column: 2; grid-row: 2 / span 2; justify-self: end; align-self: end; }

.upsell { display: grid; gap: 10px; margin: 14px 0 2px; padding: 14px; border-radius: 12px; background: rgb(255 184 28 / 0.22); }
.upsell p { font-size: 0.95rem; }
.upsell .btn { justify-self: start; min-height: 42px; font-size: 1.05rem; }

.totals { display: grid; gap: 6px; margin: 14px 0 0; font-family: var(--mono); font-size: 0.92rem; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt, .totals dd { margin: 0; }
.totals .deal-line { color: var(--ketchup); font-weight: 700; }
.totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed rgb(43 19 16 / 0.3); font-weight: 700; font-size: 1.1rem; }

.bag-form { display: grid; gap: 16px; padding: 22px 4px 0; }
.field { display: grid; gap: 6px; }
.field-label { font: 800 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.field input, .field select {
  width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 2px solid rgb(43 19 16 / 0.18);
  border-radius: 12px;
  background: var(--ticket);
  font-size: 1rem;
  transition: border-color 0.15s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background: var(--ticket) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232b1310' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sauce); }
.field input:focus-visible, .field select:focus-visible { box-shadow: 0 0 0 3px rgb(212 36 25 / 0.25); }
.field-hint { font-size: 0.86rem; color: var(--char-soft); }
.field-error { font-size: 0.88rem; font-weight: 600; color: var(--ketchup); }
.field[data-invalid] input { border-color: var(--ketchup); }
.bag-pay { font-size: 0.9rem; color: var(--char-soft); }
.bag-deal-hint { padding: 12px 14px; border-radius: 12px; background: rgb(255 184 28 / 0.22); font-size: 0.92rem; }
.bag-submit {
  position: sticky; bottom: 0;
  margin: 4px -20px 0;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(rgb(242 231 210 / 0), var(--paper-2) 22%);
}
.bag-submit .btn { justify-content: space-between; }

.bag-empty { display: grid; gap: 14px; padding: 28px 6px; text-align: center; }
.bag-empty-title { font: 900 2.2rem/0.95 var(--display); text-transform: uppercase; }
.bag-empty p:not(.bag-empty-title) { color: var(--char-soft); margin-bottom: 8px; }

.bag-done { display: grid; gap: 18px; padding-bottom: 28px; }
.done-ticket { filter: drop-shadow(0 8px 16px rgb(43 19 16 / 0.12)); }
.done-title { font: 900 2.6rem/0.92 var(--display); text-transform: uppercase; margin: 6px 0 12px; }
.done-copy { margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .done-ticket .ticket { animation: print 0.9s steps(16, end) both; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
