/* V2 — Market Paper: customer web. Tokens in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* paper fibre */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .36 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-radius: 6px; }

.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .86; letter-spacing: .02em; margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mask { display: block; overflow: hidden; padding-bottom: .05em; }
.mask > span { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--paper);
  font-weight: 500;
  font-size: 16px;
  transition: background .25s, translate .2s var(--ease-out);
}
.btn:hover { background: var(--ink); }
.btn:active { translate: 0 1px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn .mono { font-weight: 500; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--gutter);
  background: color-mix(in oklab, var(--desk) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px dashed transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line-strong); }
.top__logo img { height: 40px; }
.top__spacer { flex: 1; }
.store-tag {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: var(--shadow);
  font-size: 14px;
  position: relative;
}
.store-tag.show { display: inline-flex; }
.store-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.store-tag small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--kraft); color: var(--ink); font-weight: 500; transform-origin: 50% 100%; }
.bag-btn svg { width: 26px; height: 26px; }
.bag-btn__count { position: absolute; top: -4px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 11px/20px var(--font-mono); text-align: center; }
.bag-btn[data-empty="true"] .bag-btn__count { display: none; }

/* ---------- Stickers (signature) ---------- */
.sticker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  width: var(--s, 54px);
  height: var(--s, 54px);
  border-radius: 50%;
  background: var(--bg, var(--leaf));
  color: var(--fg, var(--ink));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--s, 54px) * .36);
  line-height: .85;
  text-transform: uppercase;
  box-shadow: 0 1px 0 #ffffff80 inset, 0 2px 6px #1B2A2330;
  rotate: var(--r, -8deg);
  pointer-events: none;
}
.sticker small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; font-weight: 500; }
.sticker--oval { border-radius: 999px; width: auto; padding: 0 12px; height: calc(var(--s, 54px) * .6); }
.sticker--sun { --bg: var(--sun); }
.sticker--clay { --bg: var(--clay); --fg: var(--sheet); }
.sticker--sheet { --bg: var(--sheet); }
.sticker--moss { --bg: var(--moss); --fg: var(--paper); }

/* ---------- Home ---------- */
.home-hero { padding: 24px var(--gutter) 8px; display: grid; gap: 22px; }
.home-hero__title { font-size: clamp(72px, 21vw, 168px); }
.home-hero__title .ink-leaf { color: var(--leaf-ink); }
.home-hero__lede { margin: 0; font-size: 18px; max-width: 32ch; color: var(--muted); }
.home-hero__lede b { color: var(--ink); font-weight: 500; }
.stall { position: relative; aspect-ratio: 1 / .82; border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.stall__dish { position: absolute; width: 43%; aspect-ratio: 1; }
.stall__dish img { width: 100%; height: 100%; object-fit: cover; }
.stall__dish:nth-child(1) { left: 2%; top: 2%; }
.stall__dish:nth-child(2) { left: 55%; top: 1%; }
.stall__dish:nth-child(3) { left: 38%; top: 47%; }
.stall__note { position: absolute; z-index: 4; left: 7%; bottom: 9%; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5vw, 34px); line-height: .9; text-transform: uppercase; rotate: -4deg; }
.stall__note::after { content: ""; display: block; height: 3px; width: 70%; margin-top: 4px; background: var(--clay); border-radius: 2px; rotate: 1deg; }

.sec { padding: 36px var(--gutter) 10px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec__title { font-size: clamp(46px, 12vw, 80px); }

/* Tear-off tickets */
.tickets { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); }
.tickets::-webkit-scrollbar { display: none; }
.ticket {
  --notch: 10px;
  flex: 0 0 min(78%, 300px);
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: left;
  background: var(--sheet);
  box-shadow: var(--shadow);
  border-radius: 10px;
  transform-origin: 0 0;
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 92px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 92px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 92px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 92px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  transition: translate .3s var(--ease-out), box-shadow .3s;
}
.ticket:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); }
.ticket__main { padding: 18px 16px 16px 18px; display: grid; gap: 6px; }
.ticket__name { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: .85; text-transform: uppercase; }
.ticket__addr { font-size: 13px; color: var(--muted); }
.ticket__meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ticket__stub { width: 92px; border-left: 2px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: 10px 6px; }
.ticket__stub b { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 500; line-height: 1; }
.ticket__stub small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticket__busy { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; justify-self: start; }
.ticket__busy--quiet { background: color-mix(in oklab, var(--leaf) 30%, transparent); }
.ticket__busy--steady { background: color-mix(in oklab, var(--sun) 45%, transparent); }
.ticket__busy--busy { background: color-mix(in oklab, var(--clay) 35%, transparent); }

.tag-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1); }
.tag-row::-webkit-scrollbar { display: none; }
.tag-row .dish { flex: 0 0 min(46%, 210px); }

.loyalty-card {
  margin: 28px var(--gutter) 40px;
  border-radius: var(--r-lg);
  background: var(--kraft);
  padding: 24px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.loyalty-card .display { font-size: 50px; }
.loyalty-card p { margin: 0; max-width: 34ch; }
.loyalty-card__meter { display: flex; gap: 6px; flex-wrap: wrap; }
.loyalty-card__meter i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed color-mix(in oklab, var(--ink) 40%, transparent); }
.loyalty-card__meter i.on { border: 0; background: var(--leaf); box-shadow: 0 1px 3px #1B2A2340; }
.footer { padding: 30px var(--gutter) 48px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line-strong); }

/* ---------- Menu ---------- */
.menu { display: grid; grid-template-columns: minmax(0, 1fr); }
.menu > * { min-width: 0; }
.menu-head { padding: 20px var(--gutter) 12px; display: grid; gap: 10px; }
.menu-head__title { font-size: clamp(60px, 17vw, 120px); }
.menu-head__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow); font-size: 14px; }
.pill svg { width: 16px; height: 16px; }
.pill b { font-weight: 500; }

/* Index tabs (folder tabs) */
.tabs { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in oklab, var(--desk) 92%, transparent); backdrop-filter: blur(10px); }
.tabs__scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter) 0; border-bottom: 1.5px solid var(--ink); }
.tabs__scroll::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  position: relative;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px 12px 0 0;
  background: var(--kraft-soft);
  font-size: 14px;
  font-weight: 500;
  color: color-mix(in oklab, var(--ink) 75%, transparent);
  translate: 0 4px;
  transition: translate .3s var(--ease-out), background .3s, color .3s;
}
.tab:hover { translate: 0 1px; }
.tab.active { background: var(--paper); color: var(--ink); translate: 0 1.5px; box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: inset(0 0 2px 0); }
.diet-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--gutter) 0; }
.diet-filter::-webkit-scrollbar { display: none; }
.diet-filter button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow); font-size: 13px; }
.diet-filter button i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font: 700 11px var(--font-display); background: var(--paper); }
.diet-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.diet-filter button[aria-pressed="true"] i { background: var(--leaf); color: var(--ink); }

.cat { padding: 34px var(--gutter) 4px; scroll-margin-top: calc(var(--header-h) + 60px); }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-strong); padding-bottom: 8px; }
.cat__title { font-size: clamp(44px, 11vw, 72px); }
.cat__lede { margin: -4px 0 16px; color: var(--muted); max-width: 46ch; font-size: 15px; }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Dish "tag" card */
.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--paper);
  transition: translate .35s var(--ease-out), box-shadow .35s;
}
.dish:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); }
.dish::before { content: ""; position: absolute; z-index: 4; top: 10px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 1px 2px #1B2A2340; }
.dish__img { position: relative; aspect-ratio: 1; border-radius: var(--r-md) var(--r-md) 0 0; overflow: visible; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: scale .6s var(--ease-out), rotate .6s var(--ease-out); }
.dish:hover .dish__img img { scale: 1.05; rotate: -2deg; }
.dish__body { padding: 0 12px 12px; display: grid; gap: 2px; flex: 1; }
.dish__name { font-weight: 500; font-size: 15px; line-height: 1.25; }
.dish__kcal { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.dish__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px 0 16px;
  background: var(--kraft);
  font: 500 13px var(--font-mono);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
  border-radius: 0 4px 4px 0;
}
.price-tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--desk); }
.quick {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: background .2s, rotate .3s var(--ease-out);
}
.quick:hover { background: var(--moss); rotate: 90deg; }
.quick svg { width: 18px; height: 18px; }
.dish--sold .dish__img img { filter: grayscale(.9); opacity: .5; }
.dish--sold .price-tag { text-decoration: line-through; opacity: .5; }
.dish--sold .quick { display: none; }
.sold-note { position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 14%; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: .85; text-transform: uppercase; color: var(--clay-ink); rotate: -6deg; }
.sold-note small { display: block; font-size: 20px; color: var(--ink); }
.dish--feature { grid-column: 1 / -1; display: grid; }
.dish--feature .dish__img { aspect-ratio: 1 / .78; }
.dish--feature .dish__name { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: .86; text-transform: uppercase; }
.dish--feature .dish__desc { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.bag-col { display: none; }

/* ---------- Item page ---------- */
.item { padding: 12px var(--gutter) 120px; display: grid; gap: 16px; }
.item__back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.item__back svg { width: 16px; height: 16px; }
.item__stage { position: relative; border-radius: var(--r-lg); background: var(--paper); aspect-ratio: 1 / .9; }
.item__stage img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.item__title { font-size: clamp(54px, 14vw, 96px); }
.item__desc { margin: 0; color: var(--muted); font-size: 17px; max-width: 44ch; }
.allergen-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.allergen-strip span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: color-mix(in oklab, var(--clay) 18%, transparent); color: var(--clay-ink); }
.slip {
  background: var(--sheet);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 18px 18px 8px;
  background-image: repeating-linear-gradient(180deg, transparent 0 35px, color-mix(in oklab, var(--sky) 35%, transparent) 35px 36px);
  background-position: 0 52px;
}
.slip__title { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.slip__group { padding: 14px 0 4px; }
.slip__gh { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: .9; text-transform: uppercase; }
.slip__gh .dots { flex: 1; border-bottom: 2px dotted var(--line-strong); translate: 0 -6px; }
.slip__gh small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 36px; text-align: left; font-size: 15px; }
.line__box { position: relative; flex: none; width: 22px; height: 22px; border: 1.8px solid var(--ink); border-radius: 4px; rotate: -2deg; }
.line__box svg { position: absolute; left: -3px; top: -7px; width: 30px; height: 30px; overflow: visible; }
.line__box path { fill: none; stroke: var(--leaf-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.line--radio .line__box { border-radius: 50%; }
.line--removal .line__box path { stroke: var(--clay-ink); }
.line__name { flex: 1; }
.line[aria-pressed="true"].line--removal .line__name { text-decoration: line-through; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }
.line__price { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.line__qty { font-family: var(--font-mono); font-size: 13px; font-weight: 500; min-width: 26px; text-align: right; color: var(--leaf-ink); }
.item__bar {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--desk) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px dashed var(--line-strong);
}
.item__bar .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; gap: 2px; height: 50px; padding: 4px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow); }
.qty button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--paper); }
.qty svg { width: 16px; height: 16px; }
.qty output { min-width: 22px; text-align: center; font: 500 16px var(--font-mono); }
.hang-tag {
  position: absolute;
  z-index: 5;
  right: 7%;
  top: -10px;
  transform-origin: 50% 0;
  display: grid;
  justify-items: center;
}
.hang-tag__string { width: 2px; height: 46px; background: var(--kraft-deep); }
.hang-tag__body { position: relative; padding: 14px 14px 12px; min-width: 96px; text-align: center; background: var(--kraft); border-radius: 6px 6px 12px 12px; box-shadow: 0 6px 14px #1B2A2330; }
.hang-tag__body::before { content: ""; position: absolute; top: 5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 0 0 1.5px var(--kraft-deep); }
.hang-tag__body b { display: block; font: 500 22px var(--font-mono); margin-top: 6px; }
.hang-tag__body small { font: 500 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: #1B2A2355; backdrop-filter: blur(2px); opacity: 0; pointer-events: none; }
.scrim.open { pointer-events: auto; }
.drawer { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; background: var(--desk); border-radius: var(--r-lg) var(--r-lg) 0 0; visibility: hidden; box-shadow: 0 -20px 60px #1B2A2340; }
.bagbox { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bagbox__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter) 14px; background: var(--kraft); border-radius: inherit; }
.bagbox__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 9px; background: linear-gradient(-45deg, transparent 6px, var(--kraft) 0) 0 0 / 12px 12px, linear-gradient(45deg, transparent 6px, var(--kraft) 0) 0 0 / 12px 12px; }
.bagbox__title { font-size: 44px; }
.bagbox__list { flex: 1; overflow-y: auto; padding: 16px var(--gutter) 4px; }
.bline { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.bline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.bline__name { font-weight: 500; font-size: 15px; }
.bline__mods { font-size: 12px; color: var(--muted); }
.bline__mods .out { color: var(--clay-ink); }
.bline__right { display: grid; justify-items: end; gap: 6px; }
.bline__right .mono { font-size: 14px; }
.mini-qty { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow); }
.mini-qty button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.mini-qty svg { width: 13px; height: 13px; }
.mini-qty output { font: 500 13px var(--font-mono); min-width: 14px; text-align: center; }
.bagbox__foot { padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.sumrow { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.sumrow--total { color: var(--ink); font-size: 16px; font-weight: 500; }
.points-hint { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.points-hint .sticker { position: static; --s: 34px; rotate: -10deg; }
.empty-bag { padding: 30px 0; text-align: center; color: var(--muted); }
.empty-bag .display { font-size: 40px; color: var(--ink); }

/* ---------- Checkout receipt ---------- */
.co { padding: 18px var(--gutter) 60px; display: grid; gap: 18px; justify-items: center; }
.co__title { font-size: clamp(60px, 16vw, 110px); justify-self: start; }
.receipt {
  --zz: 10px;
  width: min(560px, 100%);
  background: var(--sheet);
  padding: 30px 22px 34px;
  font-family: var(--font-mono);
  font-size: 14px;
  box-shadow: var(--shadow);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
  -webkit-mask-composite: source-in;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
          mask-composite: intersect;
}
.receipt__brand { display: grid; justify-items: center; gap: 4px; text-align: center; padding-bottom: 14px; }
.receipt__brand img { height: 54px; }
.receipt__brand small { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.rsec { padding: 16px 0; border-top: 1.5px dashed var(--line-strong); }
.rsec__h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.rrow { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; }
.rrow small { display: block; color: var(--muted); font-size: 12px; }
.rrow--total { font-size: 20px; font-weight: 600; padding-top: 8px; }
.stubs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 4px 22px 6px; }
.stubs::-webkit-scrollbar { display: none; }
.stub { flex: none; min-width: 82px; padding: 10px 10px 8px; text-align: left; border: 1.5px dashed var(--line-strong); border-radius: 6px; transition: background .2s, color .2s, border-color .2s; }
.stub b { display: block; font-size: 15px; font-weight: 500; }
.stub small { font-size: 11px; color: var(--muted); }
.stub[aria-pressed="true"] { background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); }
.stub[aria-pressed="true"] small { color: var(--leaf); }
.stub:disabled { opacity: .35; text-decoration: line-through; cursor: default; }
.rbtns { display: grid; gap: 8px; font-family: var(--font-body); }
.rbtns .btn { min-height: 48px; font-size: 15px; }
.rbtns .btn--apple { background: var(--ink); }
.rbtns .btn--light { background: var(--paper); color: var(--ink); }
.rbtns .btn--light:hover { background: var(--kraft-soft); }
.rfield { display: grid; gap: 4px; margin-top: 10px; font-family: var(--font-body); }
.rfield span { font-size: 12px; color: var(--muted); }
.rfield input { height: 46px; padding: 0 12px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font-family: var(--font-mono); }
.rfield input:focus { outline: none; border-bottom-color: var(--leaf-ink); background: color-mix(in oklab, var(--leaf) 8%, transparent); }
.paym { display: grid; gap: 6px; font-family: var(--font-body); }
.paym button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; text-align: left; border-radius: 6px; border: 1.5px dashed var(--line-strong); }
.paym button[aria-pressed="true"] { border: 1.5px solid var(--ink); background: color-mix(in oklab, var(--leaf) 10%, transparent); }
.paym button span { flex: 1; font-weight: 500; }
.paym button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.paym .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid var(--ink); display: grid; place-items: center; flex: none; }
.paym button[aria-pressed="true"] .tick::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.paym .mark { font: 600 11px var(--font-mono); padding: 4px 7px; border-radius: 4px; background: var(--ink); color: var(--paper); }
.co__points { display: flex; gap: 12px; align-items: center; font-family: var(--font-body); padding: 12px; border-radius: 8px; background: color-mix(in oklab, var(--leaf) 14%, transparent); }
.co__points .sticker { position: static; --s: 48px; }
.co__points small { color: var(--muted); }
.barcode { height: 46px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 13px); opacity: .85; }

/* ---------- Tracking ---------- */
.track { padding: 16px var(--gutter) 60px; display: grid; gap: 18px; max-width: 1180px; margin: 0 auto; }
.seg { justify-self: center; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sheet); box-shadow: var(--shadow); }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.seg small { font: 500 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pickup {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  background: var(--sheet);
  box-shadow: var(--shadow-lift);
  border-radius: 14px;
  overflow: hidden;
}
.pickup__top { padding: 22px 22px 18px; display: grid; gap: 6px; justify-items: center; text-align: center; position: relative; }
.pickup__no { font-size: clamp(110px, 34vw, 200px); line-height: .78; }
.pickup__no span { display: inline-block; }
.pickup__status { font-size: 18px; }
.pickup__status b { font-weight: 500; color: var(--leaf-ink); }
.pickup__perf { height: 0; border-top: 2.5px dashed var(--line-strong); margin: 0 18px; position: relative; }
.pickup__perf::before, .pickup__perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--desk); }
.pickup__perf::before { left: -30px; }
.pickup__perf::after { right: -30px; }
.pickup__bottom { padding: 18px 22px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stamp-slot { display: grid; justify-items: center; gap: 8px; text-align: center; }
.stamp-slot small { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stamp {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: .85;
  text-transform: uppercase;
  color: var(--faint);
}
.stamp.on { border: 3px double var(--c, var(--leaf-ink)); color: var(--c, var(--leaf-ink)); background: color-mix(in oklab, var(--c, var(--leaf-ink)) 9%, transparent); rotate: var(--r, -10deg); }
.stamp small { display: block; font: 500 9px var(--font-mono); letter-spacing: .08em; margin-top: 2px; }
.track__side { display: grid; gap: 14px; align-content: start; }
.points-note { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--kraft); }
.points-note .sticker { position: static; --s: 64px; }
.points-note p { margin: 0; font-size: 14px; }

/* Paper map (printed street map look) */
.map { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--sheet); box-shadow: var(--shadow); }
.map__svg { width: 100%; height: 100%; display: block; }
.map__bg { fill: var(--sheet); }
.map__parks { fill: color-mix(in oklab, var(--leaf) 30%, var(--sheet)); }
.map__bld { fill: color-mix(in oklab, var(--kraft) 22%, var(--sheet)); }
.map__minor, .map__ped, .map__major { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map__minor { stroke: color-mix(in oklab, var(--ink) 10%, var(--sheet)); stroke-width: 7; }
.map__ped { stroke: color-mix(in oklab, var(--ink) 7%, var(--sheet)); stroke-width: 5; }
.map__major { stroke: color-mix(in oklab, var(--sun) 55%, var(--sheet)); stroke-width: 12; }
.map__labels text { font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; fill: color-mix(in oklab, var(--ink) 48%, transparent); text-anchor: middle; }
.map__route-base { fill: none; stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 8; }
.map__route { fill: none; stroke: var(--clay); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.map[data-mode="delivery"] .map__route { stroke: var(--leaf-ink); }
.map__pin--store circle { fill: var(--ink); }
.map__pin--store .chev path { fill: none; stroke: var(--paper); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.map__pin--dest path { fill: var(--clay); stroke: var(--ink); stroke-width: 2; }
.map__pin--dest circle { fill: var(--sheet); }
.map__dot { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.map[data-mode="delivery"] .map__dot { fill: var(--leaf); }
.map__pulse { fill: color-mix(in oklab, var(--sun) 55%, transparent); }
.map__bike { color: var(--ink); }
.map__card { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.map__card b { display: block; font: 500 15px var(--font-mono); }
.map__card small { font-size: 12px; opacity: .7; }
.map__card .avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-weight: 600; font-size: 13px; }

/* ---------- Toast + fly ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 96px; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; }
.toast .sticker { position: static; --s: 30px; rotate: -8deg; }
.fly { position: fixed; z-index: 95; pointer-events: none; border-radius: 50%; overflow: hidden; background: var(--paper); }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 72px; }
  .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tickets { overflow: visible; flex-wrap: wrap; }
  .ticket { flex: 1 1 calc(50% - 12px); }
}
@media (min-width: 1024px) {
  .home-hero { grid-template-columns: 1fr 1.05fr; align-items: center; column-gap: 48px; padding-top: 40px; max-width: 1440px; margin: 0 auto; }
  .home-hero__lede { font-size: 20px; }
  .sec, .loyalty-card, .footer { max-width: 1440px; margin-left: auto; margin-right: auto; }
  .loyalty-card { padding: 36px 40px; grid-template-columns: 1fr auto; align-items: center; }
  .loyalty-card .display { font-size: 72px; }
  .ticket { flex: 1 1 calc(25% - 12px); }
  .menu { grid-template-columns: 210px minmax(0, 1fr) 360px; gap: 28px; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
  .menu .menu-head, .menu .cat, .menu .diet-filter { padding-left: 0; padding-right: 0; }
  .tabs { grid-row: 1 / span 3; top: calc(var(--header-h) + 20px); align-self: start; background: none; backdrop-filter: none; margin-top: 150px; }
  .tabs__scroll { flex-direction: column; overflow: visible; padding: 0; border-bottom: 0; border-right: 1.5px solid var(--ink); gap: 4px; }
  .tab { height: 44px; text-align: left; border-radius: 12px 0 0 12px; translate: 6px 0; }
  .tab:hover { translate: 2px 0; }
  .tab.active { translate: 1.5px 0; clip-path: inset(0 2px 0 0); }
  .menu-main { min-width: 0; }
  .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dish--feature { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .dish--feature .dish__img { aspect-ratio: 1; }
  .dish--feature .dish__body { padding: 28px; }
  .dish--feature .dish__name { font-size: 64px; }
  .bag-col { display: block; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; margin-top: 24px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h) - 40px); overflow: hidden; }
  .bag-col .bagbox { max-height: calc(100vh - var(--header-h) - 40px); }
  .item { grid-template-columns: 1.1fr 1fr; column-gap: 48px; max-width: 1320px; margin: 0 auto; align-items: start; padding-bottom: 60px; }
  .item__back { grid-column: 1 / -1; }
  .item__left { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
  .item__bar { position: sticky; bottom: 16px; border-radius: 999px; border: 0; box-shadow: var(--shadow-lift); margin-top: 16px; padding: 8px; }
  .drawer { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; }
  .track { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 32px; }
  .track > .seg { grid-column: 1 / -1; }
  .track__map { position: sticky; top: calc(var(--header-h) + 20px); }
  .track__map .map { aspect-ratio: auto; height: calc(100vh - var(--header-h) - 60px); min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Allergens — always visible as text (UK FSA distance-selling rules) */
.allergens { display: block; font-family: var(--font-mono); font-size: 10px; line-height: 1.4; letter-spacing: .03em; color: var(--muted); margin-top: 2px; }
.allergens b { font-weight: 600; color: var(--clay-ink); text-transform: uppercase; letter-spacing: .08em; margin-right: 2px; }
.dish--feature .allergens { font-size: 12px; margin-top: 8px; }
.allergen-strip span.is-added { background: var(--clay); color: var(--sheet); }
