/* Guest page styles. Venue colour and photos come from the venue database. */
/* Hallmark · macrostructure: printed menu index · tone: refined café menu (deep inks, serif display) · anchor hue: 45 burnt orange */
:root {
  /* Fuka palette: logo orange and cream, petrol teal, mustard, navy, espresso */
  --color-paper: oklch(97.5% 0.018 95); --color-paper-2: oklch(94% 0.025 92); --color-card: oklch(99.3% 0.008 95);
  --color-ink: oklch(19% 0.012 70); --color-ink-soft: oklch(40% 0.02 70); --color-rule: oklch(25% 0.02 50 / 0.13); --color-rule-strong: oklch(25% 0.02 50 / 0.8);
  --color-orange: oklch(62% 0.145 60); --color-orange-dark: oklch(56% 0.145 60); --color-yellow: oklch(89% 0.08 88); --color-brand: #d88326; --color-cream: #fffee4;
  --color-pink: oklch(38% 0.11 18); --color-ochre: oklch(78% 0.14 82); --color-blue: oklch(33% 0.04 60); --color-clay: oklch(62% 0.15 58); --color-teal: oklch(42% 0.07 195); --color-gold: #f0b44a; --color-black: #16120e;
  --color-ok: var(--color-teal); --color-disabled: oklch(25% 0.02 50 / 0.07);
  /* Category keys used by the menu data */
  --honey: var(--color-ochre); --honey-on: var(--color-ink);
  --berry: var(--color-pink); --berry-on: var(--color-paper);
  --coffee: var(--color-blue); --coffee-on: var(--color-paper);
  --caramel: var(--color-clay); --caramel-on: var(--color-paper);
  --pist: var(--color-teal); --pist-on: var(--color-paper);
  --font-display: 'Instrument Serif', Georgia, serif; --font-body: Geist, system-ui, sans-serif; --font-mono: var(--font-body);
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --text-xs: .8rem; --text-sm: .84rem; --text-md: 1rem; --text-lg: 1.25rem;
  --radius-sm: 6px; --radius-md: 14px; --rule: 1px;
  --shadow-sm: 0 1px 2px oklch(25% 0.02 50 / .06), 0 2px 8px oklch(25% 0.02 50 / .05); --shadow-md: 0 2px 4px oklch(25% 0.02 50 / .06), 0 12px 28px oklch(25% 0.02 50 / .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.5, 0, .9, .4); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms; --dur: 380ms; --dur-slow: 520ms;
  --head: 108px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; overflow-x: clip; }
body { font: 400 var(--text-md)/1.5 var(--font-body); font-variant-numeric: tabular-nums; color: var(--color-ink); background: var(--color-paper); min-height: 100vh; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: -.01em; margin: 0; min-width: 0; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }

/* Header: wordmark row + category rail, sticky everywhere on the menu */
.top { position: sticky; top: 0; z-index: 40; background: var(--color-paper); border-bottom: var(--rule) solid var(--color-rule-strong); }
.bar { display: flex; align-items: center; gap: var(--space-sm); height: 52px; padding: 0 var(--space-md);  }
.logo { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.loc { font: 500 var(--text-xs) var(--font-mono); color: var(--color-ink-soft); white-space: nowrap; }
/* The table is the thing guests must be able to check at a glance. */
.table-tag { margin-left: auto; font: 700 var(--text-sm) var(--font-body); padding: 6px 12px; background: var(--color-teal); color: var(--color-paper); border-radius: var(--radius-sm); white-space: nowrap; }
.lang { display: inline-flex; gap: 2px; padding: 2px; min-height: 36px; align-items: stretch; font: 600 var(--text-xs) var(--font-body); border: var(--rule) solid var(--color-ink); border-radius: var(--radius-sm); }
.lang span { display: grid; place-items: center; padding: 0 7px; border-radius: 4px; color: var(--color-ink-soft); }
.lang span.on { background: var(--color-ink); color: var(--color-paper); }
.lang:hover span:not(.on) { color: var(--color-ink); background: var(--color-paper-2); }
@media (max-width: 479px) { .loc { display: none; } .bar { gap: 6px; } }
.cats { display: flex; gap: 6px; overscroll-behavior-x: contain; overflow-x: auto; scrollbar-width: none; padding: 0 var(--space-md) var(--space-sm);  }
.cats:empty { display: none; }
/* Order tracker strip */
.tracker {  padding: 0 var(--space-md); display: grid; gap: var(--space-xs); }
.tracker:not(:empty) { padding-bottom: var(--space-sm); }
.trk { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 999px; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); text-align: left; transition: transform var(--dur-fast) var(--ease-out); }
.trk.new { animation: rise var(--dur-slow) var(--ease-out); }
.trk:hover { transform: translateY(-1px); }
.trk-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--color-orange); animation: blink 1.4s var(--ease-in-out) infinite; }
.trk-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-bar { flex: none; display: flex; gap: 3px; }
.trk-bar i { width: 12px; height: 4px; border-radius: 2px; background: oklch(100% 0 0 / .25); transition: background-color var(--dur) var(--ease-out); }
.trk-bar i.on { background: var(--color-orange); }
.trk-go { flex: none; font-weight: 700; color: var(--color-yellow); }
@media (max-width: 360px) { .trk-bar { display: none; } }
.cats { cursor: grab; user-select: none; --rail-pad: var(--space-md); }
.cats.dragging { cursor: grabbing; }
.cats.dragging .cat { pointer-events: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px var(--chip-x, 11px); border-radius: 999px; background: var(--color-card); box-shadow: inset 0 0 0 1.5px var(--color-rule-strong); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out); }
.cat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.cat:hover { background: var(--color-paper-2); }
.cat:active { transform: translateY(1px); }
.cat.on { background: var(--c, var(--color-ink)); color: var(--c-on, var(--color-paper)); box-shadow: inset 0 0 0 1.5px var(--c, var(--color-ink)); }
.cat.on::before { background: currentColor; }

.layout {  padding-bottom: 112px; }
main { min-width: 0; }

/* Intro */
.intro { padding: var(--space-lg) var(--space-md); border-bottom: var(--rule) solid var(--color-rule-strong); }
.intro h1 { font-size: clamp(2.4rem, 10vw, 4.2rem); }
.intro .row { padding: 0; margin-top: var(--space-md); max-width: 460px; }
.intro h1 em { font-style: italic; color: var(--color-orange); }
.intro p { margin: var(--space-md) 0 0; max-width: 34ch; font-size: var(--text-lg); line-height: 1.35; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); font: 500 var(--text-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--color-ink-soft); }
.meta b { color: var(--color-ink); background: var(--color-yellow); padding: 1px 6px; font-weight: 600; }

.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md); }
.pill { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 12px 8px; border-radius: var(--radius-md); background: var(--color-ink); color: var(--color-paper); font-weight: 600; font-size: var(--text-md); white-space: nowrap; box-shadow: var(--shadow-md); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.pi { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: oklch(100% 0 0 / .14); font-size: 1.15rem; }
.pill:active { transform: translateY(1px); }
.pill.berry { background: var(--color-pink); }

/* Start page: the menu index */
.index-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) var(--space-md) var(--space-sm); }
.index-head h2 { font-size: 2.4rem; }
.index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); padding: 0 var(--space-md); }
.tile { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 10px 12px 10px 10px; text-align: left; background: var(--color-card); border: 1px solid var(--color-rule); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.tile { cursor: pointer; }
.tile .icon { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 14px; background: color-mix(in oklch, var(--c) 16%, var(--color-card)); }
.tile b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.05; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tile small { font: 500 var(--text-xs) var(--font-mono); color: var(--color-ink-soft); }

/* Category page: spot-ink band, then a printed list */
.sec { margin: var(--space-md); padding: 14px var(--space-md); background: var(--c); color: var(--c-on); border-radius: var(--radius-md); display: grid; gap: var(--space-sm); }
.sec h2 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
.sec span { font: 500 var(--text-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.items { display: grid; padding: 0 var(--space-md); }
.item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); }
.info { min-width: 0; }
.name-row { display: flex; align-items: baseline; gap: var(--space-sm); }
.name { font-weight: 650; font-size: 1.05rem; line-height: 1.25; min-width: 0; }
.item .name { display: block; padding: 0; text-align: left; overflow-wrap: anywhere; }
.meta-row { display: flex; align-items: center; gap: var(--space-sm); margin-top: 6px; }
.emo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--color-rule); box-shadow: 0 3px 0 color-mix(in oklch, var(--c) 45%, var(--color-ink)), 0 8px 14px -8px var(--drop, oklch(0% 0 0 / .35)); }
.item.sold .emo { filter: grayscale(1); opacity: .6; }
.leader { flex: 1; min-width: var(--space-md); border-bottom: 1.5px dotted var(--color-rule-strong); transform: translateY(-4px); opacity: .5; }
.price { font: 650 1rem var(--font-body); white-space: nowrap; }
.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; min-height: 30px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--color-rule-strong); font: 600 var(--text-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--color-ink); }
.more:hover { background: var(--c, var(--color-ink)); color: var(--c-on, var(--color-paper)); border-color: transparent; }
.item { cursor: pointer; }
/* Meal pop-up: centred card over a blurred menu. Photo left, name and price right, description underneath. */
#info .sheet-bg { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: oklch(25% 0.02 50 / .3); }
#info .sheet-card { left: 50%; right: auto; bottom: auto; top: 50%; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); transform: translate(-50%, -50%); border-radius: 22px; padding-bottom: 0; animation: infoin var(--dur-slow) var(--ease-out); }
#info.closing .sheet-card { animation: infoout var(--dur) var(--ease-in) forwards; }
@keyframes infoin { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
@keyframes infoout { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.detail { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: center; padding: var(--space-lg) var(--space-md) var(--space-md); }
.detail .big { width: 132px; height: 132px; border-radius: 22px; object-fit: cover; background: var(--color-rule); box-shadow: 0 4px 0 color-mix(in oklch, var(--c) 45%, var(--color-ink)); }
.detail .head { display: grid; gap: 8px; align-content: center; padding-right: 40px; }
.detail h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.05; overflow-wrap: anywhere; }
.detail .price { font-size: 1.1rem; }
.detail p { grid-column: 1 / -1; margin: 0; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: 1.05rem; line-height: 1.55; color: var(--color-ink-soft); }
.detail .ctl { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (max-width: 360px) { .detail .big { width: 96px; height: 96px; } }
.badge { display: inline-block; padding: 1px 6px; background: var(--color-orange); color: var(--color-paper); font: 600 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.badge.veg { background: var(--color-teal); }
.add { width: 44px; height: 44px; display: grid; place-items: center; border: var(--rule) solid var(--color-ink); border-radius: var(--radius-sm); font-size: 1.4rem; line-height: 1; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.add:hover { background: var(--c, var(--color-ink)); color: var(--c-on, var(--color-paper)); border-color: var(--c, var(--color-ink)); }
.stepper { display: flex; align-items: center; height: 44px; border-radius: var(--radius-sm); background: var(--color-ink); color: var(--color-paper); }
.stepper button { width: 36px; height: 44px; font-size: 1.2rem; }
.stepper button:hover { color: var(--color-yellow); }
.stepper b { min-width: 18px; text-align: center; font: 600 var(--text-sm) var(--font-mono); }
.item.sold .name, .item.sold .price { color: var(--color-ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.item.sold .add { width: auto; padding: 0 10px; border-color: transparent; background: var(--color-disabled); color: var(--color-ink-soft); font: 600 .64rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; cursor: default; }
/* Next category at the bottom of each list, so guests don't have to scroll back up to the rail. */
.next-row { display: flex; justify-content: flex-end; margin: var(--space-lg) var(--space-md) 0; }
.next { display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 18px 8px 22px; border-radius: 999px; background: var(--c); color: var(--c-on); text-align: left;
  box-shadow: 0 4px 0 color-mix(in oklch, var(--c) 55%, var(--color-ink)); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.next small { display: block; font: 500 var(--text-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.next b { display: block; font-size: 1.15rem; line-height: 1.2; }
.next .arr { font-size: 1.5rem; line-height: 1; }
.next:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in oklch, var(--c) 55%, var(--color-ink)); }
.foot { color: var(--color-ink-soft); font: 500 .9rem var(--font-body); margin: var(--space-lg) var(--space-md) 0; }

/* Basket bar (phone) */
.dock { position: fixed; right: var(--space-md); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); z-index: 45; }
.dock:empty { display: none; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--space-md) 0 6px; border-radius: 999px; background: var(--color-ink); color: var(--color-paper); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-md); transition: transform var(--dur-fast) var(--ease-out); }
.cta:active { transform: translateY(1px); }
.cta .count { min-width: 36px; height: 36px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--color-orange); color: var(--color-paper); font-weight: 700; font-size: var(--text-sm); }
.cta .sum { font-weight: 400; opacity: .75; }
.cta.center { padding: 0 var(--space-md); }
.cta.gold { padding: 0 22px; background: var(--color-orange); box-shadow: none; }
.cta.gold:hover { background: var(--color-orange-dark); }
.cta:disabled { background: var(--color-disabled); color: var(--color-ink-soft); cursor: default; transform: none; }
.send-row { display: flex; justify-content: flex-end; margin: var(--space-md) var(--space-md) 0; }
.bump { animation: bump var(--dur) var(--ease-out); }
@keyframes bump { 40% { transform: translateY(-3px); } }

/* Basket: full-screen sheet on phone, side drawer on web; opened from the order pill */
.cart { position: fixed; inset: 0; z-index: 50; background: var(--color-paper); overflow-y: auto; padding-bottom: var(--space-xl); transform: translateY(100%); visibility: hidden; transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow); }
body.cart-open .cart { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-lg) var(--space-md) var(--space-xs); }
.cart-head h1 { font-size: 2.4rem; }
.close { margin-left: auto; width: 40px; height: 40px; border: var(--rule) solid var(--color-ink); border-radius: var(--radius-sm); }
.cart-sub { margin: 0 var(--space-md) var(--space-sm); color: var(--color-ink-soft); font-size: var(--text-sm); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); padding: 12px var(--space-md); border-bottom: 1px solid var(--color-rule); }
.line .name { font-size: var(--text-md); }
.line .emo { display: inline-block; width: 32px; height: 32px; border-radius: 8px; vertical-align: middle; margin-right: 8px; box-shadow: none; }
.line .x { font: 500 var(--text-xs) var(--font-mono); color: var(--color-ink-soft); }
.empty { margin: var(--space-md); padding: var(--space-lg) var(--space-md); border: var(--rule) dashed var(--color-rule-strong); border-radius: var(--radius-sm); color: var(--color-ink-soft); }
.field { margin: var(--space-md) var(--space-md) 0; }
.field label { display: block; font: 600 var(--text-sm) var(--font-body); color: var(--color-ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px; border: var(--rule) solid var(--color-rule-strong); border-radius: var(--radius-sm); background: var(--color-card); font: inherit; color: var(--color-ink); resize: none; }
.total { margin: var(--space-md) var(--space-md) 0; padding-top: var(--space-md); border-top: 3px solid var(--color-ink); }
.total .t { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); font-weight: 700; }
.total .t b { font: 600 1.6rem var(--font-mono); }
.fine { margin: 6px 0 0; font-size: var(--text-sm); color: var(--color-ink-soft); }

/* Status */
.done { padding: var(--space-xl) var(--space-md) var(--space-md); }
.done .no { display: inline-block; font: 600 var(--text-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--color-yellow); padding: 2px 8px; }
.done h1 { font-size: clamp(3rem, 16vw, 6rem); margin-top: var(--space-md); }
.done p { margin: var(--space-sm) 0 0; font-size: var(--text-lg); }
.steps { list-style: none; margin: var(--space-md); padding: 0; border-top: var(--rule) solid var(--color-rule-strong); }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-md); padding: 14px 0; border-bottom: 1px solid var(--color-rule); color: var(--color-ink-soft); }
.dot { width: 28px; height: 28px; display: grid; place-items: center; font: 600 var(--text-xs) var(--font-mono); border: var(--rule) solid var(--color-rule-strong); border-radius: var(--radius-sm); }
.ok { color: var(--color-ink); }
.ok .dot { background: var(--color-teal); border-color: var(--color-teal); color: var(--color-paper); }
.now { color: var(--color-ink); }
.now .dot { background: var(--color-orange); border-color: var(--color-orange); color: var(--color-paper); animation: blink 1.4s var(--ease-in-out) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.steps b { display: block; }
.steps span { font-size: var(--text-sm); }
.summary { margin: 0 var(--space-md); padding: var(--space-md); background: var(--color-card); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); font-size: var(--text-sm); }
.summary div { display: flex; justify-content: space-between; gap: var(--space-md); padding: 2px 0; }
.summary div span:last-child { font-family: var(--font-mono); white-space: nowrap; }
.summary .sum { border-top: 1px solid var(--color-rule); margin-top: 6px; padding-top: var(--space-sm); font-weight: 700; }

.sheet-bg { position: fixed; inset: 0; z-index: 55; background: oklch(25% 0.02 50 / .45); animation: fade var(--dur) var(--ease-out); }
.sheet-card { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; max-height: 88vh; overflow-y: auto; padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); background: var(--color-paper); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-md); animation: sheetup var(--dur-slow) var(--ease-out); }
.sheet-card .done { position: relative; padding: var(--space-lg) var(--space-md) var(--space-sm); }
.sheet-card .done h1 { font-size: 3rem; }
.sheet-x { position: absolute; top: var(--space-md); right: var(--space-md); }
.sheet-card .steps, .sheet-card .summary { position: relative; margin: var(--space-md); }
body.sheet-open, body:has(#bill-dialog[open]) { overflow: hidden; }
#bill-dialog {
  width: min(440px, calc(100% - 32px));
  padding: var(--space-md);
  border: 0;
  border-radius: 22px;
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}
#bill-dialog::backdrop { background: oklch(25% 0.02 50 / .45); }
#bill-title { font: 400 clamp(1.9rem, 7vw, 2.4rem) / 1.05 var(--font-display); padding-right: 48px; }
.bill-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-md); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes sheetdown { to { transform: translateY(100%); } }
.sheet.closing .sheet-bg { animation: fadeout var(--dur) var(--ease-in-out) forwards; }
.sheet.closing .sheet-card { animation: sheetdown var(--dur) var(--ease-in) forwards; }
/* The step that just became current eases in instead of switching abruptly */
.sheet-card .steps li.now { animation: rise var(--dur-slow) var(--ease-out); }
@media (min-width: 640px) { .sheet-card { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; transform: translate(-50%, -50%); border-radius: 22px; animation: fade var(--dur) var(--ease-out); } .sheet.closing .sheet-card { animation: fadeout var(--dur) var(--ease-in-out) forwards; } }
.toast { position: fixed; left: var(--space-md); right: var(--space-md); top: calc(var(--head) + var(--space-sm)); z-index: 60; max-width: 420px; margin: 0 auto; padding: 12px var(--space-md); border-radius: var(--radius-sm); background: var(--color-ink); color: var(--color-paper); font-weight: 600; font-size: var(--text-sm); opacity: 0; transform: translateY(-6px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* Life: entrance, hover and press feedback (transform/opacity only; reduced-motion turns it off) */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes slideup { from { opacity: 0; transform: translateY(100%); } }
@keyframes flash { from { background: color-mix(in oklch, var(--c) 35%, transparent); } }
.enter .intro > *, .enter .row, .enter .index-head, .enter .sec, .enter .done > *, .enter .steps li { animation: rise .5s var(--ease-out) both; }
.enter .intro > :nth-child(2) { animation-delay: 60ms; } .enter .intro > :nth-child(3) { animation-delay: 120ms; } .enter .row { animation-delay: 160ms; }
.enter .tile, .enter .item { animation: rise .6s var(--ease-out) backwards; animation-delay: calc(140ms + var(--i) * 45ms); }
/* Category switch: the old page fades out softly before the new one rises in */
main { transition: opacity 240ms var(--ease-in-out), transform 240ms var(--ease-in-out); }
main.leaving { opacity: 0; transform: translateY(4px); }
.tile .icon { transition: transform var(--dur) var(--ease-out); }
.tile:hover .icon { transform: scale(1.08); }

.item { transition: background-color var(--dur-fast) var(--ease-out); border-radius: var(--radius-sm); }
.item { padding-left: var(--space-sm); padding-right: var(--space-sm); }
@media (hover: hover) {
  .item:not(.sold):hover { background: color-mix(in oklch, var(--c) 10%, transparent); }
  .item:not(.sold):hover .emo { transform: scale(1.08) rotate(-3deg); }
}
.emo { transition: transform var(--dur) var(--ease-out); }
.item.flash { animation: flash 1s var(--ease-out); }
.pop { animation: pop .45s var(--ease-out); }
.cat:hover:not(.on) { transform: translateY(-2px); }
.cat { transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 4px 8px oklch(25% 0.02 50 / .1), 0 18px 36px oklch(25% 0.02 50 / .18); }
.cta:hover { transform: translateY(-2px); }
.cta.in { animation: slideup var(--dur-slow) var(--ease-out); }
.close:hover { transform: rotate(90deg); }
.close { transition: transform var(--dur) var(--ease-out); }

/* Tablets: use the width */
@media (min-width: 600px) {
  .index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
  .items { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-lg); }
}

/* 3D: raised surfaces stand on a darker edge and press down into it; category cards tilt toward the pointer */
.pill, .cat, .add, .stepper, .cta, .close, .trk, .tile, .sec { --lift: 4px; --edge-c: oklch(25% 0.02 50 / .28); --drop: oklch(25% 0.02 50 / .22);
  box-shadow: 0 var(--lift) 0 var(--edge-c), 0 calc(var(--lift) + 10px) 20px -8px var(--drop);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.pill:active, .cat:active, .add:active, .stepper:active, .cta:active, .close:active, .trk:active, .tile:active {
  transform: translateY(var(--lift)); box-shadow: 0 0 0 var(--edge-c), 0 2px 6px -2px var(--drop); }
.pill { --lift: 6px; --edge-c: oklch(12% 0.02 50); }
.pill.berry { --edge-c: color-mix(in oklch, var(--color-pink) 62%, black); }
.pill .pi { box-shadow: inset 0 -3px 0 oklch(0% 0 0 / .18), inset 0 2px 0 oklch(100% 0 0 / .15); }
.cat, .add, .close { --lift: 3px; --edge-c: var(--color-rule-strong); }
.cat.on { --edge-c: color-mix(in oklch, var(--c) 60%, black); }
  box-shadow: 0 var(--lift) 0 var(--edge-c); }
.cats { padding-top: 6px; padding-bottom: 12px; } /* room above so a chip lifting on hover is not clipped by the scroller */
.add:hover { transform: translateY(-2px); }
.stepper { --lift: 3px; --edge-c: oklch(12% 0.02 50); }
.cta { --edge-c: oklch(12% 0.02 50); }
.cta.gold, .cta .count { --edge-c: color-mix(in oklch, var(--color-orange) 60%, black); }
.cta .count { box-shadow: inset 0 -3px 0 var(--edge-c); }
.trk { --lift: 3px; --edge-c: oklch(12% 0.02 50); }
.sec { --lift: 8px; --edge-c: color-mix(in oklch, var(--c) 60%, black); background-image: linear-gradient(160deg, oklch(100% 0 0 / .14), transparent 55%); }
.sec h2 { text-shadow: 0 2px 0 oklch(0% 0 0 / .18); }
.tile { --lift: 6px; --edge-c: color-mix(in oklch, var(--c) 45%, var(--color-paper-2)); position: relative; transform-style: preserve-3d;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.tile:hover { --ty: -4px; --lift: 10px; border-color: color-mix(in oklch, var(--c) 50%, var(--color-rule)); }
.tile:active { --ty: 2px; --lift: 2px; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); box-shadow: 0 2px 0 var(--edge-c), 0 4px 8px -4px var(--drop); }
/* 15 categories: 2 columns on phones with the odd last card spanning the row, 3 on tablets, 5 on wide screens, so no row is left half empty */
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
@media (min-width: 600px) { .tile:last-child:nth-child(odd) { grid-column: auto; } }
.tile .icon { transform: translateZ(28px); box-shadow: 0 6px 12px -6px var(--drop), inset 0 -3px 0 oklch(0% 0 0 / .06); }
.tile b { transform: translateZ(16px); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease-out);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), oklch(100% 0 0 / .55), transparent 60%); }
.tile:hover::after { opacity: 1; }
.sheet-card { box-shadow: 0 -2px 0 oklch(100% 0 0 / .6) inset, 0 30px 60px -20px oklch(25% 0.02 50 / .5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: opacity 150ms linear !important; }
  .cart { transition: none !important; }
}

/* Web */
@media (min-width: 900px) {
  .layout { padding: 0 var(--space-lg) var(--space-xl); }
  .bar, .cats, .tracker { padding-left: var(--space-lg); padding-right: var(--space-lg); }
  .cats { --rail-pad: var(--space-lg); }
  .intro, .row, .index-head, .index, .items, .done, .steps, .foot { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
  .intro { padding-top: var(--space-xl); }
  .row { max-width: 440px; }
  .index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
  .sec { margin: var(--space-lg) 0 var(--space-sm); padding: 18px var(--space-lg); }
  .items { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-xl); }
  .summary { margin: 0; }
  .cart { left: auto; width: 420px; transform: translateX(100%); border-left: 1px solid var(--color-rule); box-shadow: var(--shadow-md); }
  .dock { right: var(--space-lg); bottom: var(--space-lg); }
  .cart-head { padding-top: var(--space-md); }
  .cart-head h1 { font-size: 2rem; }
  .row.status-row { max-width: none; }
}
@media (min-width: 1100px) { .index { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Wide screens: the page uses the whole window; the side gutter grows with it instead of a centred column. */
@media (min-width: 900px) {
  .layout { padding-left: clamp(24px, 3.5vw, 64px); padding-right: clamp(24px, 3.5vw, 64px); }
  .bar, .cats, .tracker { padding-left: clamp(24px, 3.5vw, 64px); padding-right: clamp(24px, 3.5vw, 64px); }
}
@media (min-width: 1500px) {
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Card tilt follows the pointer smoothly instead of jumping. */
.tile { transition: transform 420ms var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
/* No photo yet: a soft block in the category colour with the first letter. */
.ph { display: inline-grid; place-items: center; color: var(--c-on, var(--color-ink)); background: color-mix(in oklch, var(--c, var(--color-ochre)) 70%, var(--color-card)); font: 400 1.6rem var(--font-display); }
.line .ph { font-size: 1rem; }
.detail .ph.big { font-size: 4rem; }
.hero { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-md); }
.closed-note { margin: var(--space-md) 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-yellow); font-weight: 600; }


/* ---- 2026-11-11 audit fixes ---- */
@media (min-width: 900px) { .hero { height: 200px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Category rail: a fade on the right while more chips are hidden; it goes away at the end. */
.rail { position: relative; }
.rail:not(.on) /* One component system: pills navigate (chips, next, order bar), 10px rounded squares act (+, −, ✕), cards share one low edge. */
.pill, .cat, .add, .cta, .close, .trk, .tile, .next { --lift: 3px; }
.add, .close { border-radius: 10px; }
.close { width: 44px; height: 44px; }
.tile { --edge-c: oklch(25% 0.02 50 / .16); }
.tile:hover { --lift: 6px; }
.sec { box-shadow: none; background-image: none; }
.sec h2 { text-shadow: none; }
.stepper { gap: 6px; height: auto; background: none; color: var(--color-ink); box-shadow: none; }
.stepper:active { transform: none; box-shadow: none; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; background: var(--color-ink); color: var(--color-paper); box-shadow: 0 3px 0 oklch(12% 0.02 50); transition: transform var(--dur-fast) var(--ease-out); }
.stepper button:active { transform: translateY(3px); box-shadow: none; }
.stepper b { min-width: 24px; font: 700 1rem var(--font-body); }
.soldtag { width: auto; padding: 0 10px; border-color: transparent; background: var(--color-disabled); color: var(--color-ink-soft); font: 600 var(--text-xs) var(--font-body); text-transform: uppercase; letter-spacing: .06em; cursor: default; box-shadow: none; }
.pill.done { background: var(--color-teal); cursor: default; --edge-c: color-mix(in oklch, var(--color-teal) 60%, black); }
.pill.done:hover { transform: none; }
.pill:disabled { opacity: 1; }

/* Previous / next category, together under the list. */
.next-row { justify-content: space-between; gap: var(--space-sm); }
.next { min-width: 0; max-width: calc(50% - 4px); }
.next b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next span:not(.arr) { min-width: 0; }
.next.prev { padding: 8px 22px 8px 18px; background: var(--color-card); color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-rule-strong), 0 3px 0 var(--color-rule-strong); }
.next.prev:active { box-shadow: inset 0 0 0 1.5px var(--color-rule-strong); }
.next.home-next:not(.prev) { --c: var(--color-ink); --c-on: var(--color-paper); }

/* Meal pop-up: the decision to add is the main thing. */
.detail p { color: var(--color-ink); opacity: .85; }
.detail .ctl { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.detail .ctl:has(> .soldtag:only-child) { justify-content: flex-end; }
.add-big { flex: 1; justify-content: center; min-height: 52px; font-size: 1.05rem; }
.in-order { font-size: var(--text-sm); color: var(--color-ink-soft); }
.in-order b { color: var(--color-ink); }

/* Order status pop-up */
.sheet-card .done h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); line-height: 1.05; padding-right: 48px; }
.done p { font-size: var(--text-md); }
.done .for-table { display: inline-block; margin-top: var(--space-sm); padding: 3px 10px; background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-sm); }

/* Basket: table up top, remove per line, total and send pinned to the bottom. */
.cart { display: flex; flex-direction: column; padding-bottom: 0; }
.cart-head { flex-wrap: wrap; }
.table-big { padding: 4px 10px; background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-md); }
.line { grid-template-columns: 48px minmax(0, 1fr) auto; }
.line .emo { display: block; width: 48px; height: 48px; margin: 0; border-radius: 10px; }
.line .x { font: 500 var(--text-sm) var(--font-body); }
.remove { min-height: 32px; padding: 4px 0; font-weight: 600; font-size: var(--text-sm); color: var(--color-pink); text-decoration: underline; text-underline-offset: 3px; }
.send-area { position: sticky; bottom: 0; margin-top: auto; display: grid; gap: var(--space-sm); padding: 12px var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: 3px solid var(--color-ink); }
.send-area .total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 0; border: 0; font-weight: 700; }
.send-area .total b { font: 700 1.6rem var(--font-body); }
.send-area .fine { margin: 0; color: var(--color-ink); font-size: var(--text-sm); }
.send { justify-content: center; min-height: 52px; font-size: 1.05rem; white-space: normal; text-align: center; }
.cart-bg { display: none; }
@media (min-width: 900px) {
  body.cart-open .dock { display: none; }
  .cart-bg { position: fixed; inset: 0; z-index: 49; background: oklch(25% 0.02 50 / .35); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease-out); display: block; }
  body.cart-open .cart-bg { opacity: 1; pointer-events: auto; }
}
/* Wide screens: the menu moves over and stays usable next to the basket instead of being covered. */
@media (min-width: 1200px) {
  body.cart-open .cart-bg { display: none; }
  .top, .layout { transition: margin-right var(--dur-slow) var(--ease-out); }
  body.cart-open .top, body.cart-open .layout { margin-right: 420px; }
}
/* Opening: visible at once so focus can move into the basket; closing: stays visible until it has slid away. */
body.cart-open .cart { transition: transform var(--dur-slow) var(--ease-out), visibility 0s; }
.close:hover { transform: translateY(-1px); background: var(--color-paper-2); }
/* Phones: category cards stack photo over name, so long names wrap by word, never mid-word. */
.tile b { overflow-wrap: break-word; }
@media (max-width: 479px) {
  .tile { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 10px; }
  .tile:last-child:nth-child(odd) { flex-direction: row; align-items: center; }
  .tile .icon { width: 52px; height: 52px; }
  .tile b { font-size: 1.25rem; }
  .pill { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 8px; }
}
@media (max-width: 379px) { .pill .pi { display: none; } }
/* Wide start page: photo beside the title and buttons, so the menu starts higher. */
@media (min-width: 900px) {
  main:has(> .intro) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-xl); }
  main:has(> .intro) > * { grid-column: 1 / -1; }
  main > .intro { grid-column: 1; grid-row: 1; }
  main > .hero { grid-column: 2; grid-row: 1; height: 0; min-height: 100%; max-height: none; margin: var(--space-lg) 0; align-self: stretch; }
}
/* Status pop-up (2026-11-11 review): pinned header with a clear order number, distinct done / now / next steps, pinned total. */
#sheet .sheet-card { padding-bottom: 0; max-height: min(88vh, calc(100dvh - 24px)); }
@media (min-width: 640px) { #sheet .sheet-card { max-height: calc(100dvh - 48px); } }
.st-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 12px var(--space-md); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.st-head .no { font: 700 1.2rem var(--font-body); padding: 4px 12px; background: var(--color-yellow); border-radius: var(--radius-sm); }
.st-head .close { margin: 0; }
.sheet-card .done { padding: var(--space-md) var(--space-md) 0; }
.sheet-card .done h1 { padding-right: 0; }
.st-times { margin: var(--space-sm) 0 0; font-size: var(--text-sm); color: var(--color-ink-soft); }
.steps li { align-items: center; padding: 12px; border-radius: var(--radius-sm); }
.steps li.todo { color: var(--color-ink-soft); }
.steps li.todo .dot { border-style: dashed; opacity: .7; }
.steps li.todo b { font-weight: 500; }
.steps li.ok .dot { font-size: 1rem; }
.steps li.now { background: color-mix(in oklch, var(--color-orange) 14%, var(--color-card)); box-shadow: inset 4px 0 0 var(--color-orange); border-bottom-color: transparent; }
.steps li.now b { color: var(--color-orange-dark); font-size: 1.1rem; }
.steps li.now span { color: var(--color-ink); }
.st-live, .st-modify { display: flex; align-items: center; gap: 8px; margin: 0 var(--space-md) var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-soft); }
.st-modify { color: var(--color-ink); font-weight: 600; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-teal); animation: blink 1.6s var(--ease-in-out) infinite; }
.st-note { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--color-rule); }
#sheet .summary { margin-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
#sheet .summary .sum { position: sticky; bottom: 0; margin: 6px calc(-1 * var(--space-md)) 0; padding: 10px var(--space-md) calc(12px + env(safe-area-inset-bottom)); background: var(--color-card); font-size: var(--text-md); }
.detail .head { padding-right: 52px; }
/* Fuka logo next to the venue name */
.mark { flex: none; width: 36px; height: 36px; border-radius: 9px; }
/* No header photo: the Fuka logo on its own orange */
.hero.brand { display: flex; align-items: center; justify-content: center; gap: var(--space-md); background: var(--color-brand); color: var(--color-cream); font: 400 3rem/1 var(--font-display); }
.hero.brand img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 0 2px #fffee433; }
/* Category tiles without a photo: solid Fuka colour, readable letter */
.tile .icon.ph { background: var(--c); color: var(--c-on); }

/* ---- Fuka look: black shopfront header with gold lettering, orange accents, tile-floor strip ---- */
.top { background: var(--color-black); border-bottom: 0; color: var(--color-cream); }
.top::after { content: ""; display: block; height: 6px; background: repeating-conic-gradient(var(--color-brand) 0 25%, var(--color-black) 0 50%) 0 0 / 12px 12px; }
.top .logo { color: var(--color-gold); }
.top .loc { color: oklch(85% 0.03 90); }
.top .table-tag { background: var(--color-brand); color: var(--color-black); }
.top .lang { border-color: var(--color-gold); }
.top .lang span { color: var(--color-cream); }
.top .lang span.on { background: var(--color-gold); color: var(--color-black); }
.top .lang:hover span:not(.on) { background: oklch(100% 0 0 / .12); color: var(--color-cream); }
.top .trk { background: oklch(100% 0 0 / .1); color: var(--color-cream); }
.hero { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.pill { background: var(--color-black); color: var(--color-cream); }
.pill .pi { background: var(--color-brand); color: var(--color-black); }
.sec { color: var(--c-on); }
.tile { border-color: color-mix(in oklch, var(--c) 35%, transparent); }
.cta { background: var(--color-black); color: var(--color-gold); }
.cta .count { background: var(--color-brand); color: var(--color-black); }
/* Category chips sit on cream cards inside the black header: keep their text dark */
.top .cat:not(.on) { color: var(--color-ink); }

/* The logo and name go back to the start page */
.brand { display: inline-flex; align-items: center; gap: 8px; padding: 0; min-width: 0; color: inherit; }
.brand:focus-visible { outline-color: var(--color-gold); }
/* Thin orange scroll bars instead of the system grey ones */
html, .cart, .sheet-card { scrollbar-width: thin; scrollbar-color: var(--color-brand) transparent; }
html::-webkit-scrollbar, .cart::-webkit-scrollbar, .sheet-card::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track, .cart::-webkit-scrollbar-track, .sheet-card::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb, .cart::-webkit-scrollbar-thumb, .sheet-card::-webkit-scrollbar-thumb { background: var(--color-brand); border-radius: 8px; border: 2px solid var(--color-paper); }

/* ---- Smoother adding and removing ---- */
/* The - / + control grows out of the + button instead of swapping in. */
@keyframes stepin { from { opacity: 0; transform: translateX(14px) scaleX(.55); } }
@keyframes tick { 0% { transform: translateY(5px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.item > .stepper { transform-origin: right center; animation: stepin .3s var(--ease-out) both; }
.stepper b.tick { animation: tick .22s var(--ease-out); }
/* The text column glides to its new width instead of jumping when the control appears. */
@supports selector(:has(*)) {
  .item { --ctl-w: 44px; grid-template-columns: 64px minmax(0, 1fr) var(--ctl-w); transition: grid-template-columns .5s cubic-bezier(.22, 1, .36, 1), background-color var(--dur-fast) var(--ease-out); }
  .item:has(> .stepper) { --ctl-w: 124px; }
  .item.sold { --ctl-w: auto; }
  @media (max-width: 380px) { .item { grid-template-columns: 48px minmax(0, 1fr) var(--ctl-w); gap: 10px; } .item .emo { width: 48px; height: 48px; } .item:has(> .stepper) { --ctl-w: 104px; } .item > .stepper { gap: 4px; } .item > .stepper button { width: 38px; } .item > .stepper b { min-width: 20px; } }
}
/* A basket line folds away before it is removed. */
.line { transition: height .22s var(--ease-out), opacity .18s linear, padding .22s var(--ease-out), border-color .22s; }
.line.out { height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; border-color: transparent; pointer-events: none; }
/* The order bar changes its numbers in place and keeps its footing. */
.cta .count, .cta .sum { transition: opacity var(--dur-fast); }
/* Order status pop-up: the page behind is blurred too, like the meal pop-up */
#sheet .sheet-bg { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: oklch(25% 0.02 50 / .3); }

/* ---- Adding something: a clear but smooth reaction so the guest sees the tap landed ---- */
/* The row lights up and sways once, the new count rises in, and the order pill squeezes as if it caught the item. */
@keyframes addsway { 0% { transform: none; } 25% { transform: scale(1.02) rotate(-.6deg); } 55% { transform: scale(1.02) rotate(.5deg); } 80% { transform: scale(1.005) rotate(-.15deg); } 100% { transform: none; } }
@keyframes flashstrong { 0% { background: color-mix(in oklch, var(--c) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--c) 60%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } }
@keyframes popbig { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: none; } }
@keyframes tickbig { 0% { transform: translateY(8px) scale(.7); opacity: 0; } 60% { transform: translateY(-2px) scale(1.18); opacity: 1; } 100% { transform: none; } }
@keyframes felt { 0% { transform: none; } 35% { transform: scale(1.06, .9); } 70% { transform: scale(.98, 1.04); } 100% { transform: none; } }
@keyframes remind { 0%, 100% { transform: none; } 20% { transform: rotate(-2.5deg); } 40% { transform: rotate(2.5deg); } 60% { transform: rotate(-1.5deg); } 80% { transform: rotate(.6deg); } }
/* The first + opens into − n + by unrolling from the right edge, in step with the row making room (no stretching of the buttons). */
@keyframes stepinbig { 0% { opacity: .4; clip-path: inset(0 0 0 calc(100% - 44px) round 10px); } 100% { opacity: 1; clip-path: inset(0 0 0 0 round 10px); } }
.item.flash { border-radius: var(--radius-md); animation: flashstrong 1.2s var(--ease-out), addsway .7s cubic-bezier(.45, 0, .25, 1); }
.pop, .cta .count.pop { animation: popbig .5s cubic-bezier(.25, 1.2, .4, 1); }
.stepper b.tick { animation: tickbig .4s cubic-bezier(.25, 1.2, .4, 1); }
.item > .stepper { animation: stepinbig .5s cubic-bezier(.22, 1, .36, 1) both; }
.cta.bump { animation: felt .5s cubic-bezier(.45, 0, .25, 1); }
.cta.remind { animation: remind .8s ease-in-out; }

/* ---- Phones and tablets: the basket is a pop-up in the order pill's colours, as tall as the order needs ---- */
/* It grows out of the "Naruči" pill and shrinks back into it (morph() in js/events.js); the pill stays in place, hidden, meanwhile. */
@media (max-width: 1199px) {
  .cart {
    --color-ink: var(--color-cream); --color-ink-soft: oklch(86% 0.03 85); --color-paper: var(--color-black); --color-paper-2: oklch(27% 0.015 60);
    --color-card: oklch(25% 0.015 60); --color-rule: oklch(100% 0 0 / .13); --color-rule-strong: oklch(100% 0 0 / .4);
    inset: auto var(--space-sm) calc(var(--space-sm) + env(safe-area-inset-bottom)) auto; width: min(calc(100% - 2 * var(--space-sm)), 460px);
    max-height: calc(100dvh - 2 * var(--space-lg)); border-radius: 26px; background: var(--color-black); color: var(--color-cream);
    transform: none; transform-origin: top left; transition: none; box-shadow: 0 30px 70px -12px oklch(10% 0.02 50 / .65), 0 0 0 1px oklch(100% 0 0 / .08) inset;
  }
  body.cart-open .cart { transition: none; }
  .cart-head { padding-top: var(--space-md); }
  .cart-head h1 { font-size: 2rem; }
  .cart .send-area { border-top-width: 1px; border-top-color: var(--color-rule-strong); padding-bottom: var(--space-md); }
  .cart .remove { color: var(--color-gold); }
  .cart .send { color: var(--color-black); }
  .cart .close { border-color: var(--color-rule-strong); }
  .cart .close:hover { background: var(--color-paper-2); }
  .cart .empty { border-color: var(--color-rule-strong); }
  body.cart-open .dock { display: block; visibility: hidden; }
  .cart-bg { display: block; position: fixed; inset: 0; z-index: 49; background: oklch(20% 0.02 50 / .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease-out); }
  body.cart-open .cart-bg { opacity: 1; pointer-events: auto; }
}

/* ---- Dish and category photos stand up off the page like buttons, so they read as tappable ---- */
/* Light rim, a coloured edge underneath and a soft shadow; they press in when tapped and lift a little more under a mouse. */
.item .emo { --edge: color-mix(in oklch, var(--c) 50%, var(--color-ink)); border: 2px solid oklch(100% 0 0 / .75); transform: translateY(-3px);
  box-shadow: 0 5px 0 var(--edge), 0 14px 18px -8px oklch(20% 0.02 50 / .45); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.item:not(.sold):active .emo { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge), 0 4px 8px -6px oklch(20% 0.02 50 / .4); transition-duration: .08s; }
@media (hover: hover) {
  .item:not(.sold):hover .emo { transform: translateY(-6px) scale(1.05) rotate(-3deg); box-shadow: 0 8px 0 var(--edge), 0 22px 24px -10px oklch(20% 0.02 50 / .45); }
}
.tile .icon { border: 2px solid oklch(100% 0 0 / .75); box-shadow: 0 4px 0 color-mix(in oklch, var(--c) 50%, var(--color-ink)), 0 12px 16px -8px oklch(20% 0.02 50 / .4); }
