/* MenuBar — guest menu styles.
   Colour: app.js sets these variables per section, theme and design look. The default design, Minimal, keeps one
   calm palette everywhere; the other designs give the whole screen the palette of the section you are in; they are registered below so every colour morphs instead of jumping.
   Layout: phone-first single column with an 18px gutter; from 900px the menu splits into a sticky 3D stand and a grid.
   Rhythm: 8px spacing steps, big gaps between chapters, hairlines instead of boxes wherever a box adds nothing. */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #FFBE45; }
@property --bg-2 { syntax: '<color>'; inherits: true; initial-value: #F79A12; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #2B1600; }
@property --ink-2 { syntax: '<color>'; inherits: true; initial-value: rgba(43, 22, 0, .78); }
@property --ink-3 { syntax: '<color>'; inherits: true; initial-value: rgba(43, 22, 0, .6); }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(43, 22, 0, .12); }
@property --line-2 { syntax: '<color>'; inherits: true; initial-value: rgba(43, 22, 0, .28); }
@property --surface { syntax: '<color>'; inherits: true; initial-value: #FFDEA2; }
@property --surface-2 { syntax: '<color>'; inherits: true; initial-value: #FFD17D; }
@property --tile { syntax: '<color>'; inherits: true; initial-value: #FFD27D; }
@property --paper { syntax: '<color>'; inherits: true; initial-value: #FFF5E3; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #2B1600; }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: #FFE9C4; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #2B1600; }
@property --accent-soft { syntax: '<color>'; inherits: true; initial-value: rgba(43, 22, 0, .12); }
@property --glow { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .55); }

:root {
  /* Minimal (warm) is the default until app.js applies the guest's design, theme and section */
  --bg: #F6F3EE; --bg-2: #F6F3EE; --ink: #1F1C18; --ink-2: rgba(31, 28, 24, .78); --ink-3: rgba(31, 28, 24, .6);
  --line: rgba(31, 28, 24, .12); --line-2: rgba(31, 28, 24, .28);
  --surface: #FBF9F7; --surface-2: #F9F7F3; --tile: #F9F7F3; --paper: #FEFEFD;
  --accent: #1F1C18; --on-accent: #F6F3EE; --accent-2: #1F1C18; --accent-soft: rgba(31, 28, 24, .12); --glow: rgba(31, 28, 24, .035);
  --ok: #10663A; --ok-bg: #CFF3DD; --warn: #6B3D00; --warn-bg: #FFE59A;
  --danger: #B3140C; --danger-soft: #FFE1DD; --on-danger: #fff;
  --scrim: rgba(18, 10, 4, .5);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px -10px rgba(0, 0, 0, .18);
  --shadow-2: 0 24px 60px -18px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .08);
  --f-display: "Bricolage Grotesque", "Onest", "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Onest", "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Numbers and small labels use the body face with even-width figures; only codes (receipt, Wi-Fi password, discount
     codes, one-time codes) keep a typewriter face, taken from the device so no extra font is downloaded */
  --f-num: "Onest", "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-xs: 10px; --r-sm: 14px; --r: 22px; --r-lg: 30px; --pill: 999px;
  --gut: 18px; --dock-h: 56px; --bar-h: 60px; --chapter: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .16s; --t: .28s; --t-slow: .6s;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412; --bg-2: #161412; --ink: #EEE9E1; --ink-2: rgba(238, 233, 225, .78); --ink-3: rgba(238, 233, 225, .6);
    --line: rgba(238, 233, 225, .13); --line-2: rgba(238, 233, 225, .26);
    --surface: #292725; --surface-2: #343331; --tile: #262423; --paper: #161412;
    --accent: #EEE9E1; --on-accent: #161412; --accent-2: #EEE9E1; --accent-soft: rgba(238, 233, 225, .18); --glow: rgba(238, 233, 225, .05);
    --ok: #7FE0A8; --ok-bg: rgba(127, 224, 168, .14); --warn: #FFD27A; --warn-bg: rgba(255, 210, 122, .14);
    --danger: #FF8E84; --danger-soft: rgba(255, 142, 132, .16); --on-danger: #2A0603; --scrim: rgba(0, 0, 0, .64);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161412; --bg-2: #161412; --ink: #EEE9E1; --ink-2: rgba(238, 233, 225, .78); --ink-3: rgba(238, 233, 225, .6);
  --line: rgba(238, 233, 225, .13); --line-2: rgba(238, 233, 225, .26);
  --surface: #292725; --surface-2: #343331; --tile: #262423; --paper: #161412;
  --accent: #EEE9E1; --on-accent: #161412; --accent-2: #EEE9E1; --accent-soft: rgba(238, 233, 225, .18); --glow: rgba(238, 233, 225, .05);
  --ok: #7FE0A8; --ok-bg: rgba(127, 224, 168, .14); --warn: #FFD27A; --warn-bg: rgba(255, 210, 122, .14);
  --danger: #FF8E84; --danger-soft: rgba(255, 142, 132, .16); --on-danger: #2A0603; --scrim: rgba(0, 0, 0, .64);
  color-scheme: dark;
}

/* Designer looks change shape and type; colour comes from app.js */
:root[data-look="atelier"] { --f-display: "Gloock", "Vazirmatn", Georgia, serif; --r-xs: 4px; --r-sm: 6px; --r: 8px; --r-lg: 10px; }
:root[data-look="neon"] { --f-display: "Unbounded", "Vazirmatn", ui-sans-serif, sans-serif; }
:root[data-look="garden"] { --f-display: "Young Serif", "Vazirmatn", Georgia, serif; --r-sm: 18px; --r: 28px; --r-lg: 36px; }
/* Minimal: one calm palette on every page (app.js minPal), the body face for headings, smaller corners, no glow or
   gradient behind the page, softer shadows. Nothing changes colour from section to section. */
:root[data-look="minimal"] { --f-display: "Onest", "Vazirmatn", ui-sans-serif, system-ui, sans-serif; --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px -12px rgba(0, 0, 0, .14); --shadow-2: 0 18px 48px -20px rgba(0, 0, 0, .3), 0 1px 4px rgba(0, 0, 0, .06); }
:root[data-look="minimal"] :is(h1, h2, h3, h4) { font-weight: 650; letter-spacing: -.022em; }
:root[data-look="minimal"]:lang(fa) :is(h1, h2, h3, h4), :root[data-look="minimal"]:lang(ar) :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; }
:root[data-look="minimal"] body::before { background: var(--bg); }
:root[data-look="minimal"] .deal-card { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-look="minimal"] .deal-card .ic { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-look="minimal"] :is(.badge.b-deal, .badge.left) { background: var(--accent-soft); color: var(--ink); }
:root[data-look="minimal"] .loyal { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-look="minimal"] .loyal::after { display: none; }
:root[data-look="minimal"] .loyal h3 { color: var(--ink); }
:root[data-look="minimal"] .loyal .btn.primary { background: var(--accent) !important; color: var(--on-accent) !important; }
:root[data-look="minimal"] .stamp.on { background: var(--accent); color: var(--on-accent); }
:root[data-look="minimal"] .dock-in { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 16px 36px -18px rgba(0, 0, 0, .4); }
:root[data-look="minimal"] .dock-tab { color: var(--ink); }
:root[data-look="minimal"] .dock-tab[aria-current="page"] { background: var(--line); }
:root[data-look="minimal"] .cart-pill { background: var(--accent); color: var(--on-accent); }
:root[data-look="minimal"] .cart-pill .count { background: var(--on-accent); color: var(--accent); }
@media (min-width: 900px) { :root[data-look="minimal"] .dock-in { box-shadow: 0 0 0 1px var(--line); } }

/* Accessibility settings */
:root[data-text="big"] { font-size: 112.5%; }
:root[data-contrast="high"] .chip, :root[data-contrast="high"] .btn, :root[data-contrast="high"] .opt-card { border-width: 2px; }
:root[data-contrast="high"] body { --ink-2: var(--ink); --ink-3: var(--ink); --line: var(--line-2); }
:root[data-motion="calm"] *, :root[data-motion="calm"] *::before, :root[data-motion="calm"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
:root:lang(fa), :root:lang(ar) { --f-display: "Vazirmatn", ui-sans-serif, system-ui, sans-serif; --f-body: "Vazirmatn", ui-sans-serif, system-ui, sans-serif; --f-num: "Vazirmatn", ui-sans-serif, system-ui, sans-serif; --f-code: "Vazirmatn", ui-monospace, monospace; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; scrollbar-gutter: stable;
  transition: --bg .7s var(--ease), --bg-2 .7s var(--ease), --ink .7s var(--ease), --ink-2 .7s var(--ease), --ink-3 .7s var(--ease), --line .7s var(--ease), --line-2 .7s var(--ease), --surface .7s var(--ease), --surface-2 .7s var(--ease), --tile .7s var(--ease), --paper .7s var(--ease), --accent .7s var(--ease), --on-accent .7s var(--ease), --accent-2 .7s var(--ease), --accent-soft .7s var(--ease), --glow .7s var(--ease); }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15.5px; line-height: 1.5; margin: 0; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 75% at 70% 0%, var(--bg) 0 42%, var(--bg-2) 100%); }
body.lock { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
:root:lang(fa) h1, :root:lang(fa) h2, :root:lang(fa) h3, :root:lang(ar) h1, :root:lang(ar) h2, :root:lang(ar) h3 { letter-spacing: 0; line-height: 1.32; font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
svg.i.xl { width: 32px; height: 32px; stroke-width: 1.6; }
[dir="rtl"] svg.i.flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sr { top: 0; } /* the page's live region never adds a pixel of scroll below the content */
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.num, .price { font-variant-numeric: tabular-nums; }
.mono, .price, .eyebrow, .kcal { font-family: var(--f-num); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.wrap { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); margin-inline: auto; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
:root:lang(fa) .eyebrow, :root:lang(ar) .eyebrow { font-size: 13px; }

/* Text motion: letters rise out of a blur, words blur in */
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; animation: chIn .75s cubic-bezier(.2, .9, .2, 1) both; animation-delay: calc(var(--i) * 22ms); }
.split .wd { display: inline-block; animation: wordIn .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.blur-in { animation: wordIn .8s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes chIn { from { transform: translateY(.5em) rotate(7deg); opacity: 0; filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; filter: blur(8px); transform: translateY(.15em); } }

/* ---------- Buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); font-weight: 650; font-size: 15px; border: 1.5px solid transparent; transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); white-space: nowrap; min-width: 0; }
.btn:active { transform: scale(.96); }
.btn.primary, .btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.soft { background: var(--line); color: var(--ink); }
.btn.line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn.line:hover { border-color: var(--ink); }
.btn.ghost { color: var(--ink-2); padding: 0 12px; }
.btn.ghost:hover { color: var(--ink); background: var(--line); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: 16px; padding: 0 24px; }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: 13.5px; gap: 6px; }
.btn:disabled { opacity: .45; }
.btn .sp { flex: 1; }
.btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--pill); color: var(--ink); transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--ease), color var(--t) var(--ease); position: relative; flex: none; }
.icon-btn:hover { background: var(--line); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.solid { background: var(--line); }
.icon-btn.glass { background: color-mix(in srgb, var(--paper) 78%, transparent); color: var(--ink); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.icon-btn[aria-pressed="true"].fav-btn, .icon-btn.fav-on { color: #E0245E; }
.icon-btn[aria-pressed="true"].fav-btn svg { fill: currentColor; }
.icon-btn .dot { position: absolute; top: 7px; inset-inline-end: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); font-size: 14px; font-weight: 550; white-space: nowrap; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--ink-3); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"], .chip.on, .chip[aria-checked="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip.risk[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
.chip .p { font-family: var(--f-num); font-size: 11.5px; opacity: .72; font-variant-numeric: tabular-nums; }
.chip b { font-family: var(--f-num); font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); padding: 0 5px; }
.chip:disabled { opacity: .38; text-decoration: line-through; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
.chips.scroll::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--line); gap: 2px; }
.seg button { min-height: 36px; padding: 0 14px; border-radius: var(--pill); font-size: 14px; font-weight: 650; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); white-space: nowrap; }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1 1 0; min-width: 0; min-height: 48px; flex-direction: column; gap: 0; line-height: 1.15; padding: 4px 6px; white-space: normal; text-align: center; font-size: 13.5px; }
.seg.full button small { font-family: var(--f-num); font-size: 10.5px; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--line-2); flex: none; transition: background var(--t) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t) var(--spring); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--on-accent); }
[dir="rtl"] .switch[aria-checked="true"]::after { transform: translateX(-20px); }
.row-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: start; width: 100%; }
.row-toggle:last-child { border-bottom: 0; }
.row-toggle .t { display: grid; gap: 2px; }
.row-toggle .t small { color: var(--ink-3); font-size: 13px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: var(--pill); background: var(--line); padding: 3px; flex: none; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background-color var(--t) var(--ease); }
.stepper button:hover:not(:disabled) { background: var(--line); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 26px; text-align: center; font-family: var(--f-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.field textarea { min-height: 84px; resize: vertical; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.err { font-size: 13px; color: var(--danger); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ok-text { color: var(--ok); } .danger-text { color: var(--danger); } .warn-text { color: var(--warn); }

/* ---------- App bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.bar.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.bar-in { display: flex; align-items: center; gap: 6px; height: var(--bar-h); }
/* Search, light/dark and language sit together in one quiet capsule; Mochi stands on its own beside it */
.bar-tools { flex: none; display: flex; align-items: center; padding: 3px; border-radius: var(--pill); background: var(--line); }
.bar-in .bar-tools .icon-btn { width: 40px; height: 40px; }
.bar-in .bar-tools .lang-btn { width: auto; padding: 0 12px 0 10px; }
[dir="rtl"] .bar-in .bar-tools .lang-btn { padding: 0 10px 0 12px; }
.bar-tools .icon-btn:hover { background: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; margin-inline-end: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.brand-mark svg path:first-child { fill: var(--bg); opacity: 1; }
.brand-mark svg path:last-child { fill: var(--ink); opacity: .35; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -.045em; line-height: 1; }
.table-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 14px; white-space: nowrap; margin-inline-end: 4px; }
.table-chip .tn { display: none; }
.lang-btn { font-weight: 650; font-size: 12.5px; width: auto; padding: 0 10px; gap: 5px; display: inline-flex; font-family: var(--f-num); }
.status-pill { display: none; }
.status-pill.on { display: flex; align-items: center; gap: 10px; margin: 0 auto 8px; padding: 6px 8px 6px 14px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; width: fit-content; max-width: 100%; box-shadow: var(--shadow-2); animation: pillIn .5s var(--spring); font-family: var(--f-num); }
.status-pill .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 0 var(--bg); animation: pulse 1.6s infinite; flex: none; }
.status-pill.ready .pulse { background: #4ade80; box-shadow: 0 0 0 0 #4ade80; }
.status-pill .go { background: var(--bg); color: var(--ink); border-radius: var(--pill); padding: 4px 10px; font-size: 12px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pillIn { from { transform: translateY(-14px) scale(.9); opacity: 0; } }

/* Offline */
.offline { display: none; align-items: center; gap: 10px; padding: 11px var(--gut); background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 550; }
.offline.on { display: flex; }

/* Moving banner: one quiet line of news under the bar, not a loud band */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); overflow: hidden; color: var(--ink-2); font-size: 13px; font-weight: 550; white-space: nowrap; position: relative; box-shadow: inset 0 -1px 0 var(--line); }
.marquee-track { display: inline-flex; gap: 22px; padding: 8px 0 9px; animation: marquee 60s linear infinite; padding-inline-start: 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; }
.marquee-track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .4; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marqueeR; }
@keyframes marqueeR { to { transform: translateX(50%); } }

/* ---------- Dock (phones) / top navigation (wide screens) ---------- */
.dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 8px max(12px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.dock { transition: transform var(--t) var(--ease); }
.dock.away { transform: translateY(calc(100% + 6px)); }
.dock-in { pointer-events: auto; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 27px; background: var(--ink); color: var(--bg); box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .5); }
.dock-tab { text-decoration: none; flex: 1; min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 2px 5px; border-radius: 23px; color: var(--bg); opacity: .6; font-size: 10.5px; font-weight: 650; transition: opacity var(--t) var(--ease), background-color var(--t) var(--ease); }
.dock-tab:hover { opacity: .9; }
.dock-tab[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--bg) 16%, transparent); }
.dock-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.cart-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 15px; border-radius: 23px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 14px; transition: transform var(--t) var(--spring), background-color var(--t) var(--ease); position: relative; }
.cart-pill .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--bg); font-family: var(--f-num); font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.cart-pill .tot { font-family: var(--f-num); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-pill.bump { animation: bump .5s var(--spring); }
@keyframes bump { 30% { transform: scale(1.12); } }
.fly { position: fixed; z-index: 300; width: 72px; height: 72px; border-radius: 50%; pointer-events: none; background: var(--tile); box-shadow: var(--shadow-2); overflow: hidden; display: grid; place-items: center; }
.fly img, .fly svg { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Mochi (menu helper) ---------- */
.m-blob { fill: #FFF3E6; stroke: #2A1A12; stroke-width: 2.6; }
.m-sprout { fill: #5FA35A; stroke: #2A1A12; stroke-width: 2.2; stroke-linejoin: round; }
.m-shine { fill: #FFFFFF; opacity: .75; }
.m-eye { fill: #2A1A12; animation: mblink 5s infinite; transform-box: fill-box; transform-origin: center; }
.m-eyes { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s linear, opacity .2s; }
.m-cheek { fill: #F59AB0; opacity: .8; }
.m-mouth { fill: none; stroke: #2A1A12; stroke-width: 2.8; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.m-happy { fill: none; stroke: #2A1A12; stroke-width: 3.2; stroke-linecap: round; opacity: 0; transition: opacity .2s; }
.m-shadow { fill: rgba(0, 0, 0, .16); transform-origin: 60px 111px; animation: mshadow 3.4s ease-in-out infinite; }
.m-body { transform-origin: 60px 105px; animation: mbob 3.4s ease-in-out infinite; }
[data-mood="happy"] .m-body { animation: mjump .55s cubic-bezier(.3, 1.6, .5, 1) 3; }
[data-mood="happy"] .m-eyes { opacity: 0; }
[data-mood="happy"] .m-happy { opacity: 1; }
[data-mood="think"] .m-mouth { animation: mtalk .3s ease-in-out infinite alternate; }
[data-mood="think"] .m-body { animation: mthink 1.4s ease-in-out infinite; }
@keyframes mbob { 0%, 100% { transform: translateY(0) scale(1, 1); } 40%, 55% { transform: translateY(-5px) scale(.97, 1.03); } 88% { transform: translateY(0) scale(1.04, .96); } }
@keyframes mjump { 50% { transform: translateY(-12px) scale(.95, 1.07); } }
@keyframes mtalk { to { transform: scaleY(.25) scaleX(.8); } }
@keyframes mthink { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes mshadow { 40%, 55% { transform: scale(.84); } }
@keyframes mblink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.bubble { position: fixed; z-index: 46; inset-inline-end: max(14px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + var(--bar-h) + 4px); width: max-content; max-width: min(230px, calc(100vw - 40px)); padding: 11px 38px 11px 14px; border-radius: 18px 6px 18px 18px; background: #FFF3E6; color: #2A1A12; font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .4); animation: bubbleIn .5s var(--spring); }
[dir="rtl"] .bubble { border-radius: 6px 18px 18px 18px; padding: 11px 14px 11px 38px; }
.bubble button { color: #2A1A12; font-weight: 800; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; display: block; }
.bubble .x { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; display: grid; place-items: center; color: #2A1A12; opacity: .55; margin: 0; text-decoration: none; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }
/* Mochi lives in the top bar on every size (never floating over dishes or buttons) and as a calm inline card on the welcome page */
.mascot-mini { width: 44px; height: 44px; }
.mascot-mini .m-svg { width: 38px; height: 38px; overflow: visible; }
.mascot-mini .m-shadow { display: none; }
.mascot-mini:hover { background: transparent; transform: translateY(-2px) rotate(-6deg); }
.mochi-card { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 12px 18px 12px 12px; border-radius: var(--r); background: var(--line); text-align: start; color: var(--ink); transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--ease); }
[dir="rtl"] .mochi-card { padding: 12px 12px 12px 18px; }
.mochi-card:hover { background: var(--line-2); }
.mochi-card:active { transform: scale(.98); }
.mochi-card .chat-face { width: 54px; height: 54px; background: var(--paper); }
.mochi-card .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mochi-card b { font-size: 15.5px; }
.mochi-card .t span { font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) { .mochi-card { max-width: 560px; } }

/* ---------- Views ---------- */
main { padding-bottom: calc(var(--dock-h) + 56px + env(safe-area-inset-bottom, 0px)); }
.view { display: none; }
.view.on { display: block; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; } }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.sec-title h2 { font-size: clamp(28px, 7vw, 44px); letter-spacing: -.04em; }
.sec-title .link { font-weight: 650; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.sec-title .muted { font-size: 13px; }
.chapter { padding-top: var(--chapter); }
.hero.chapter { padding-top: 0; }

/* ---------- HOME ---------- */
.hero { display: grid; padding-top: 0; }
.hero-stage { position: relative; height: clamp(330px, 50vh, 520px); margin-inline: calc(var(--gut) * -1); }
.hero-stage::before { content: ""; position: absolute; inset: 8% 10% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero-tag { position: absolute; z-index: 3; inset-inline-start: var(--gut); bottom: 14px; display: grid; gap: 2px; max-width: calc(100% - var(--gut) * 2); pointer-events: none; }
.hero-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tag b { font-family: var(--f-display); font-size: 19px; letter-spacing: -.02em; }
.hero-tag span { font-size: 12.5px; color: var(--ink-3); }
.hero-copy { display: grid; gap: 18px; padding: 14px 0 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero h1 { font-size: clamp(56px, 16vw, 116px); font-weight: 800; letter-spacing: -.06em; line-height: .86; }
.hero h1 em { font-style: normal; display: block; opacity: .5; }
:root:lang(fa) .hero h1, :root:lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.18; font-size: clamp(46px, 12.5vw, 90px); }
.hero .lede { font-size: 17.5px; line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.hero-go { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 460px; min-height: 68px; padding: 10px 10px 10px 26px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); text-align: start; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); transition: transform var(--t) var(--ease); margin-top: 4px; }
[dir="rtl"] .hero-go { padding: 10px 26px 10px 10px; }
.hero-go:hover { transform: translateY(-2px); }
.hero-go:active { transform: scale(.98); }
.hero-go .t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hero-go b { font-family: var(--f-display); font-size: 24px; letter-spacing: -.03em; line-height: 1.05; }
.hero-go .ar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--on-accent); color: var(--accent); flex: none; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: var(--pill); background: var(--line); color: var(--ink); font-weight: 600; font-size: 13px; width: fit-content; }
.open-badge i { width: 8px; height: 8px; border-radius: 50%; background: #23B266; box-shadow: 0 0 0 3px rgba(35, 178, 102, .25); }
.open-badge.closed i { background: var(--danger); box-shadow: 0 0 0 3px rgba(200, 40, 30, .22); }

/* Start tiles: each wears another section's colour */
.starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
.tone-tile { position: relative; display: grid; align-content: space-between; gap: 10px; min-height: 172px; padding: 12px 12px 14px; border-radius: var(--r); background: linear-gradient(160deg, var(--tb) 30%, var(--tb2)); color: var(--ti); text-align: start; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ti) 10%, transparent); }
.tone-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ti) 10%, transparent), var(--shadow-1); }
.tone-tile:active { transform: scale(.97); }
.tone-tile .t { display: grid; gap: 3px; min-width: 0; }
.tone-tile b { font-family: var(--f-display); font-size: 16.5px; line-height: 1.08; letter-spacing: -.02em; }
.tone-tile .t span { font-size: 12px; opacity: .75; line-height: 1.3; }
.tone-tile .tt-ic { width: 64px; height: 64px; display: grid; place-items: center; margin: 8px auto 0; }
.tone-tile .tt-pic { width: 86px; height: 86px; margin: -4px auto 0; background: none; }
.deal-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); text-align: start; transition: transform var(--t) var(--ease); }
.deal-card:hover { transform: translateY(-2px); }
.deal-card .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); flex: none; }
.deal-card .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.deal-card .live { font-size: 12px; font-weight: 600; opacity: .7; display: inline-flex; align-items: center; gap: 6px; }
.deal-card .live.on { opacity: 1; }
.deal-card .live.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.deal-card b { font-family: var(--f-display); font-size: 19px; letter-spacing: -.02em; }
.deal-card .d { font-size: 13px; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Quick links: one tidy row */
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px calc(var(--gut) * -1) 0; padding: 2px var(--gut); }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px 0 12px; border-radius: var(--pill); background: var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.quick button:hover { background: var(--line-2); }
.quick button:active { transform: scale(.95); }

/* Guest favourites */
.favs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); }
.favs::-webkit-scrollbar { display: none; }
.fav { flex: none; width: 176px; position: relative; display: grid; gap: 4px; text-align: start; scroll-snap-align: start; color: var(--ink); }
.fav .pic { width: 176px; height: 176px; border-radius: var(--r); margin-bottom: 6px; transition: transform var(--t) var(--ease); }
.fav:hover .pic { transform: translateY(-3px); }
.fav b { font-size: 15.5px; line-height: 1.2; font-weight: 650; }
.fav span.price { font-size: 13px; color: var(--ink-2); }

/* Story */
.story h2.eyebrow { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: 12px; }
.story .statement { font-family: var(--f-display); font-size: clamp(34px, 9.4vw, 64px); line-height: 1.02; letter-spacing: -.045em; color: var(--ink); max-width: 16ch; font-weight: 750; }
:root:lang(fa) .story .statement, :root:lang(ar) .story .statement { letter-spacing: 0; line-height: 1.4; font-size: clamp(28px, 7.4vw, 50px); }
.story .more { margin-top: 18px; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; margin-top: 40px; }
.numbers div { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.numbers b { font-family: var(--f-display); font-size: clamp(30px, 8vw, 46px); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1; }
.numbers span { font-size: 13px; color: var(--ink-2); }
.more summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--ink); list-style: none; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 16px; text-decoration: none; }
.more[open] summary::after { content: "–"; }
.more span { display: block; margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }

/* Visit */
.visit { display: grid; gap: 28px; }
.visit-main { display: grid; gap: 18px; }
.addr { display: flex; gap: 12px; align-items: flex-start; }
.addr > div { display: grid; gap: 2px; }
.addr b { font-size: 18px; font-family: var(--f-display); letter-spacing: -.01em; line-height: 1.25; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hours-fold { border-block: 1px solid var(--line); }
.hours-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 0; }
.hours-fold summary::-webkit-details-marker { display: none; }
.hours-fold .hf-t { display: grid; gap: 1px; }
.hours-fold .hf-t b { font-size: 15.5px; font-weight: 650; }
.hours-fold .hf-t span { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours-fold summary svg { transform: rotate(90deg); transition: transform var(--t) var(--ease); color: var(--ink-2); }
.hours-fold[open] summary svg { transform: rotate(-90deg); }
.hours-fold .hours { margin-bottom: 6px; }
.hours-fold .hours tr:last-child td { border-bottom: 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours tr:first-child td { border-top: 1px solid var(--line); }
.hours td:last-child { text-align: end; font-family: var(--f-num); font-size: 14px; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; }
.hours tr.today td:first-child::after { content: attr(data-today); margin-inline-start: 8px; font-family: var(--f-body); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); vertical-align: 1px; }
.wifi-card { display: grid; gap: 0; align-content: start; padding: 18px 20px 16px; border-radius: var(--r-lg); background: var(--surface); }
.wifi-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wifi-card > p { margin-top: 6px; }
.wifi-card .copyline:last-of-type { border-bottom: 0; }
.copyline { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.copyline .v { flex: 1; min-width: 0; font-family: var(--f-code); font-size: 15px; overflow-wrap: anywhere; user-select: all; padding-block: 4px; }
.copyline .k { font-family: var(--f-body); font-size: 11.5px; color: var(--ink-3); display: block; }

/* Events */
.events-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; padding: 24px 22px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.events-card > p { font-family: var(--f-display); font-size: clamp(20px, 5.2vw, 27px); line-height: 1.22; letter-spacing: -.02em; max-width: 26ch; }
:root:lang(fa) .events-card > p, :root:lang(ar) .events-card > p { letter-spacing: 0; line-height: 1.6; font-size: clamp(18px, 4.6vw, 23px); }
.events-card .field input, .events-card .field select, .events-card .field textarea { background: var(--paper); }
.events-card .alert { width: 100%; }

/* Questions & answers */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; font-size: 16.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform var(--t) var(--ease); flex: none; color: var(--ink-2); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; font-size: 15.5px; }

/* Newsletter, socials, footer */
.news { display: grid; gap: 14px; }
.news-row { display: flex; gap: 8px; flex-wrap: wrap; }
.news-row .field { flex: 1; min-width: 200px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--line); color: var(--ink); text-decoration: none; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--spring); }
.socials a:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.footer { margin-top: var(--chapter); padding-block: 24px 8px; border-top: 1px solid var(--line-2); display: grid; gap: 16px; font-size: 13px; color: var(--ink-2); }
.footer .row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.footer button { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.allergy-note { display: flex; gap: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.allergy-note > svg { margin-top: 1px; color: var(--ink-3); }
.allergy-note .link { text-decoration: underline; font-weight: 650; color: var(--ink); }

/* ---------- MENU ---------- */
.menu-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); z-index: 30; background: var(--bg); background: color-mix(in srgb, var(--ink) 7%, var(--bg)); box-shadow: inset 0 1px 0 var(--line), 0 1px 0 var(--line); }
/* One slim row: the sections (underlined, never boxed) and one Filters button */
.mh-row { display: flex; align-items: stretch; gap: 8px; height: 48px; }
.tabs { flex: 1; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; margin-inline-start: calc(var(--gut) * -1); padding-inline: calc(var(--gut) - 10px) 18px; scroll-padding-inline: var(--gut); scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - 26px), transparent); }
[dir="rtl"] .tabs { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 var(--gut), #000 calc(100% - 26px), transparent); mask-image: linear-gradient(270deg, transparent 0, #000 var(--gut), #000 calc(100% - 26px), transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: center; padding: 0 10px; font-weight: 600; font-size: 15px; color: var(--ink-3); white-space: nowrap; transition: color var(--t) var(--ease); scroll-snap-align: start; }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform var(--t) var(--spring); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: -4px; }
.mh-tools { flex: none; display: flex; align-items: center; gap: 8px; position: relative; padding-inline-start: 12px; }
.mh-tools::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 1px; height: 24px; transform: translateY(-50%); background: var(--line-2); }
.mh-tools .tool-btn, .mh-tools .seg { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mh-tools .tool-btn:hover { background: var(--line); }
.mh-tools .tool-btn.on { background: var(--accent); box-shadow: none; }
.tool-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; min-width: 36px; justify-content: center; padding: 0 10px; border-radius: var(--pill); background: var(--line); color: var(--ink); font-size: 13.5px; font-weight: 650; white-space: nowrap; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.tool-btn:hover { background: var(--line-2); }
.tool-btn .lbl { display: none; }
.tool-btn b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-num); font-size: 10.5px; background: var(--on-accent); color: var(--accent); }
.tool-btn.on { background: var(--accent); color: var(--on-accent); }
.view-seg { display: none; }
.view-seg button { min-height: 30px; padding: 0 12px; font-size: 13px; }
/* phones: one icon button beside Filters switches between the 3D stand and the list */
.mh-tools .tool-btn.view-btn { width: 36px; padding: 0; }
.mood-chip { min-height: 38px; background: var(--line); border-color: transparent; }
.mood-chip:hover { background: var(--line-2); }
.help-row { display: flex; flex-wrap: wrap; gap: 8px; }
.resultbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 2px 0 10px; padding: 6px 6px 6px 16px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; }
[dir="rtl"] .resultbar { padding: 6px 16px 6px 6px; }
.resultbar .btn { background: var(--bg); color: var(--ink); min-height: 32px; }
.menu-body { display: grid; gap: 18px; padding-top: 8px; }
.menu-body[data-view="3d"] .list-col { display: none; }
.menu-body[data-view="list"] .stage-col { display: none; }

/* 3D stage: no box, it is part of the page */
.stage-col { display: grid; gap: 10px; align-content: start; }
.stage { position: relative; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(58% 50% at 50% 62%, var(--glow), transparent 72%); }
.stage .d3-canvas { width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
.stage .d3-canvas:active { cursor: grabbing; }
.stage .d3-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-2); }
.stage-main { height: clamp(290px, calc(100dvh - 420px), 520px); margin-inline: calc(var(--gut) * -1); }
/* the first visit gets one quiet line under the stand (never a label on it) */
.stage-hint { display: flex; justify-content: center; align-items: center; gap: 6px; margin: -4px 0 0; font-size: 12.5px; font-weight: 550; color: var(--ink-3); text-align: center; }
.stage-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 20px; z-index: 3; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s var(--ease); }
.stage-fallback.gone { opacity: 0; pointer-events: none; }
.stage-fallback svg, .stage-fallback img { width: min(56%, 280px); max-height: 86%; object-fit: contain; }

/* The dish in front of the stand */
.focus-card { display: grid; gap: 8px; padding: 2px 0 4px; min-width: 0; }
.focus-card .badges:empty { display: none; }
.focus-card .top { display: flex; align-items: flex-start; gap: 8px; }
.focus-card .top .icon-btn { width: 42px; height: 42px; }
.focus-card #openupBtn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.focus-card .top > div { flex: 1; min-width: 0; display: grid; gap: 6px; }
.focus-card h3 { font-size: clamp(32px, 8.6vw, 52px); letter-spacing: -.045em; line-height: .96; }
:root:lang(fa) .focus-card h3, :root:lang(ar) .focus-card h3 { letter-spacing: 0; line-height: 1.3; font-size: clamp(28px, 7.4vw, 42px); }
.focus-card p { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.focus-card .meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); font-family: var(--f-num); }
.focus-card .meta > span { display: inline-flex; align-items: center; gap: 5px; }
.focus-card .actions { display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: center; margin-top: 6px; }
.focus-card .actions .btn { flex: none; }
.focus-card .actions .price { font-family: var(--f-display); font-size: 28px; font-weight: 750; letter-spacing: -.03em; margin-inline-end: auto; line-height: 1; white-space: nowrap; min-width: 0; }
:root:lang(fa) .focus-card .actions .price, :root:lang(ar) .focus-card .actions .price { font-size: 24px; letter-spacing: 0; }
.focus-card .actions .price s { font-size: 13px; opacity: .6; display: block; font-family: var(--f-num); letter-spacing: 0; font-weight: 400; margin-bottom: 4px; }
.focus-card .actions .btn { padding: 0 18px; }
.focus-card .details-btn svg { display: none; }
.rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px var(--gut) 4px; margin: 4px calc(var(--gut) * -1) 0; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail button { flex: none; width: 78px; display: grid; gap: 6px; justify-items: center; align-content: start; padding: 2px; border-radius: var(--r-sm); scroll-snap-align: center; font-size: 10.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; transition: opacity var(--t) var(--ease); }
.rail button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail button .pic { width: 58px; height: 58px; border-radius: 50%; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--spring); }
.rail button[aria-current="true"] { color: var(--ink); }
.rail button[aria-current="true"] .pic { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--ink); transform: scale(1.04); }
.rail button.dim { opacity: .4; }
.rail .next-sec { width: 84px; align-content: start; color: var(--ink); }
.rail .next-sec svg { width: 58px; height: 58px; padding: 17px; border-radius: 50%; background: var(--line); }

/* Pictures: 3D renders, auto shapes, photos or icon tokens */
.pic { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(70% 62% at 50% 64%, var(--glow), transparent 76%), var(--tile); }
.pic img, .pic > svg { width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.pic img.open { position: absolute; inset: 0; opacity: 0; }
/* pointing at a card shows its layers after a short pause, so moving across the grid never flickers */
@media (hover: hover) { .card:hover .pic img.open.ready { opacity: 1; transition-delay: .25s; } .card:hover .pic img.ready:not(.open) { opacity: 0; transition-delay: .25s; } .card:hover .pic img { transform: scale(1.03); } }

/* Recommended row */
.reco-sec { padding-top: 12px; }
.reco-sec .sec-title { margin-bottom: 14px; }
.reco-sec .sec-title h2 { font-size: clamp(24px, 6vw, 32px); }
.reco { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gut) 8px; margin: 0 calc(var(--gut) * -1); }
.reco::-webkit-scrollbar { display: none; }
.reco .mini { flex: none; width: 150px; }
.mini { position: relative; display: grid; gap: 3px; text-align: start; color: var(--ink); }
.mini .pic { aspect-ratio: 1; max-width: 100%; border-radius: var(--r); margin-bottom: 5px; }
.mini b { font-size: 14px; line-height: 1.2; font-weight: 650; }
.reco .mini b, .suggest .mini b, .msg .minis .mini b { min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini span.price { font-size: 13px; color: var(--ink-2); }
.mini .buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; }
.mini .add { width: 34px; height: 34px; }
.mini .why { font-size: 12px; font-weight: 550; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Section blocks + picture tiles */
.msec { scroll-margin-top: 168px; padding-top: 52px; }
.msec-h { display: grid; gap: 6px; margin: 0 0 20px; }
.msec-h h2 { font-size: clamp(32px, 8.6vw, 54px); letter-spacing: -.05em; line-height: .95; }
:root:lang(fa) .msec-h h2, :root:lang(ar) .msec-h h2 { letter-spacing: 0; line-height: 1.25; }
.msec-h p { color: var(--ink-2); font-size: 13.5px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
.card { position: relative; display: grid; gap: 10px; align-content: start; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.card .hit { position: absolute; inset: 0; border-radius: var(--r); z-index: 1; }
.card .pic { width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: var(--r); }
.card .body { display: grid; gap: 4px; align-content: start; min-width: 0; padding-inline: 2px; }
.card h3 { font-size: 15.5px; font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:root:lang(fa) .card h3, :root:lang(ar) .card h3 { line-height: 1.45; }
.card .desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* price and quick add on one line, then calories and diet icons in one quiet row, so every card lines up the same way */
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--ink-3); }
.card .meta:empty { display: none; }
.price s { color: var(--ink-3); font-weight: 400; font-size: .86em; text-decoration-thickness: 1px; }
.card .price s { font-size: 11px; }
/* every card keeps one badge line (empty or not, the most important badge only), so names in a row always line up */
.card .badges { flex-wrap: nowrap; min-height: 24px; margin-bottom: 2px; }
.card .badges .badge { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .pic-wrap { position: relative; }
.card .buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 38px; margin-top: 2px; }   /* on narrow cards the quantity drops under the price instead of pushing the page sideways */
.card .buy .price { color: var(--ink); font-size: 14.5px; font-weight: 650; min-width: 0; }
.card .tile-add { flex: none; }
.card .tile-add .add, .mini .add { width: 38px; height: 38px; box-shadow: none; }
.card .tile-add .add.in { width: auto; min-width: 38px; }
.add { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); transition: transform var(--t-fast) var(--spring), background-color var(--t) var(--ease); flex: none; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
.add:hover { transform: scale(1.08); }
.add:active { transform: scale(.9); }
.add.in { width: auto; min-width: 44px; padding: 0 13px; border-radius: 22px; font-family: var(--f-num); font-weight: 600; font-size: 13px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; }
@keyframes heart { 40% { transform: scale(1.35); } }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--pill); font-size: 11px; font-weight: 700; background: var(--paper); color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
.badge svg { width: 12px; height: 12px; }
.badge.popular, .badge.chef, .badge.new { background: var(--accent-soft); color: var(--ink); }
.badge.sold { background: var(--danger-soft); color: var(--danger); }
.badge.left { background: #FFE08A; color: #4A3300; }
.badge.b-deal { background: #20B263; color: #03200F; }
.badge.later, .badge.show { background: var(--paper); color: var(--ink); }
.badge.risk { background: var(--danger); color: var(--on-danger); }
.diet { display: inline-flex; align-items: center; gap: 3px; }
.diet svg { width: 14px; height: 14px; }
.card.sold .pic, .card.later .pic { filter: grayscale(1) contrast(.9); opacity: .6; }
.card.risk .pic { box-shadow: inset 0 0 0 3px var(--danger); }
.risk-line { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--danger); }
.card.dim { opacity: .32; }
.card.mood .pic { box-shadow: 0 0 0 3px var(--ink); }
.card.hl { animation: hl 1.4s var(--ease); }
@keyframes hl { 0%, 60% { transform: scale(1.03); } }
.build-card { position: relative; display: grid; gap: 10px; align-content: start; text-align: start; width: 100%; color: var(--ink); }
.build-card .pic { width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: var(--r); outline: 2px dashed var(--line-2); outline-offset: -2px; }
.build-card b { font-family: var(--f-display); font-size: 17px; letter-spacing: -.02em; line-height: 1.1; }
.build-card span { font-size: 12.5px; color: var(--ink-2); }
.build-card .eyebrow { font-size: 10px; }
.empty { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 44px 20px; color: var(--ink-2); }
.empty .ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); margin-bottom: 4px; }
.empty b { color: var(--ink); font-size: 19px; font-family: var(--f-display); }
.empty .btn { margin-top: 8px; }
.list-col .allergy-note { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- SHEETS ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade .3s var(--ease); }
.sheet-wrap.closing .scrim { animation: fadeOut .25s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: calc(100% - 20px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-2); animation: sheetUp .45s cubic-bezier(.2, .9, .25, 1); overflow: hidden; }
.sheet-wrap.closing .sheet { animation: sheetDown .26s var(--ease) forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(105%); } }
.sheet.full { max-height: 100%; height: 100%; border-radius: 0; max-width: none; }
.sheet-in { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet .grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); z-index: 5; }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 24px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); flex: none; }
.sheet-h h2 { font-size: 28px; flex: 1; min-width: 0; letter-spacing: -.035em; }
.sheet-h p { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.sheet-b { overflow-y: auto; overscroll-behavior: contain; padding: 4px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.sheet-f { flex: none; display: flex; gap: 10px; align-items: center; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.group { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group > h3, .group-h { font-size: 15px; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); font-family: var(--f-body); letter-spacing: 0; }
.group-h small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; text-align: end; }
.close { flex: none; }
@media (min-width: 900px) {
  .sheet-wrap { align-items: center; padding: 28px; }
  .sheet { border-radius: var(--r-lg); max-height: min(860px, 100%); animation: pop .4s var(--ease); }
  .sheet-wrap.closing .sheet { animation: popOut .2s var(--ease) forwards; }
  .sheet .grab { display: none; }
  .sheet.wide { max-width: 1120px; height: min(820px, 100%); }
  .sheet.drawer { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; max-height: none; height: 100%; max-width: 480px; border-radius: 0; animation: drawerIn .42s var(--ease); }
  [dir="rtl"] .sheet.drawer { animation-name: drawerInR; }
  .sheet-wrap.closing .sheet.drawer { animation: drawerOut .25s var(--ease) forwards; }
  .sheet.full { max-width: none; height: 100%; max-height: none; border-radius: var(--r-lg); }
}
@media (max-width: 899px) { .sheet.full-m { max-height: 100%; height: 100%; border-radius: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes popOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerInR { from { transform: translateX(-100%); } }
@keyframes drawerOut { to { opacity: 0; transform: translateX(30%); } }

/* Dish page: coloured stage on top, a paper card slides over it */
.dish { display: grid; grid-template-rows: auto 1fr; height: 100%; min-height: 0; }
.dish-stage { position: relative; height: clamp(300px, 46vh, 460px); flex: none; background: radial-gradient(120% 90% at 60% 30%, var(--bg) 0 40%, var(--bg-2) 100%); color: var(--ink); }
.dish-stage .stage { position: absolute; inset: 0 0 18px; }
.dish-stage .tbar { position: absolute; z-index: 4; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: flex; gap: 8px; justify-content: space-between; }
.layer-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.layer-bar:empty { display: none; }
.layer-bar + .dish-content { padding-top: 14px; }
.layer-bar .chip { min-height: 40px; font-size: 13.5px; padding: 0 15px; flex: none; }
.layer-bar .chip[aria-pressed="true"], .layer-bar .open-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dish-acts { margin-inline-start: auto; display: flex; gap: 8px; }
.dish-main { overflow-y: auto; min-height: 0; overscroll-behavior: contain; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: -22px; position: relative; z-index: 5; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35); }
.dish-main { display: flex; flex-direction: column; }
.dish-main .sheet-f { margin-top: auto; position: sticky; bottom: 0; z-index: 6; }
.dish-content { padding: 24px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 4px; }
.dish-content > .badges { margin-bottom: 6px; }
.dish-content h2 { font-size: clamp(38px, 10vw, 58px); letter-spacing: -.05em; line-height: .92; }
:root:lang(fa) .dish-content h2, :root:lang(ar) .dish-content h2 { letter-spacing: 0; line-height: 1.28; font-size: clamp(30px, 8vw, 44px); }
.dish-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 13px; margin-top: 12px; }
.dish-sum > span { display: inline-flex; align-items: center; gap: 5px; }
.dish-sum b { color: var(--ink); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--f-num); }
.dish-sum .diet { font-size: 12.5px; padding: 3px 9px 3px 7px; border-radius: var(--pill); background: var(--line); color: var(--ink); }
.dish-desc { font-size: 17px; color: var(--ink-2); margin-top: 14px; max-width: 52ch; line-height: 1.5; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--danger); color: var(--on-danger); font-size: 14px; align-items: flex-start; line-height: 1.45; }
.alert > svg { flex: none; margin-top: 1px; }
.alert b { display: block; font-size: 15px; margin-bottom: 2px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.ok { background: var(--ok-bg); color: var(--ink); }
.alert.ok > svg { color: var(--ok); }
.alert.info { background: var(--line); color: var(--ink); }
.al-list { display: flex; flex-wrap: wrap; gap: 6px; }
.al { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.al.hit { background: var(--danger); color: var(--on-danger); }
.ing-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ing { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px 0 8px; border-radius: var(--pill); background: var(--line); font-size: 13.5px; font-weight: 550; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
[dir="rtl"] .ing { padding: 0 8px 0 13px; }
.ing[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ing i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.opt-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: transparent; text-align: start; width: 100%; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.opt-card:hover { border-color: var(--ink-3); }
.opt-card[aria-checked="true"], .opt-card[aria-pressed="true"] { border-color: var(--ink); background: var(--line); }
.opt-card .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.opt-card .t small { color: var(--ink-2); font-size: 12px; font-family: var(--f-num); }
.opt-card .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.opt-card[aria-checked="true"] .radio, .opt-card[aria-pressed="true"] .radio { border-color: var(--ink); background: var(--ink); }
.opt-card[aria-checked="true"] .radio::after, .opt-card[aria-pressed="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.opt-card .box { border-radius: 7px; }
.opt-card[aria-pressed="true"] .box::after { content: "✓"; color: var(--paper); background: none; width: auto; height: auto; font-size: 13px; font-weight: 800; }
.opt-list { display: grid; gap: 8px; }
.pair { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: var(--r); background: var(--line); }
[dir="rtl"] .pair { padding: 8px 8px 8px 10px; }
.pair .pic { width: 66px; height: 66px; border-radius: 50%; flex: none; }
.pair .t { flex: 1; min-width: 0; display: grid; }
.pair .t small { color: var(--ink-2); font-family: var(--f-num); font-size: 11.5px; }
.add-bar { display: flex; gap: 10px; width: 100%; align-items: center; min-width: 0; }
.add-bar .btn { flex: 1; min-width: 0; padding: 0 20px; }
.add-bar .btn [data-roll] { font-family: var(--f-num); font-size: 14px; flex: none; }
.add-bar .short { display: none; }
.add-bar .undo-btn:disabled { opacity: .35; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.add-bar .btn > span:not(.sp):not([data-roll]) { flex: none; }
@media (max-width: 420px) { .add-bar .long { display: none; } .add-bar .short { display: inline; } .add-bar .stepper button { width: 38px; height: 38px; } }
/* the add bar follows its own width (half-screen columns on landscape phones and desktops) */
.dish-main { container-type: inline-size; }
@container (max-width: 440px) { .add-bar .long { display: none; } .add-bar .short { display: inline; } .add-bar .stepper button { width: 38px; height: 38px; } }
@container (max-width: 330px) { .add-bar { flex-wrap: wrap; justify-content: center; } .add-bar .btn { flex-basis: 100%; } }
.roll { display: inline-block; font-variant-numeric: tabular-nums; }
.auto-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.auto-note i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
@media (min-width: 900px) {
  .dish { grid-template-rows: none; grid-template-columns: 1.15fr 1fr; }
  .dish-stage { height: 100%; }
  .dish-stage .stage { inset: 0; }
  .dish-main { margin-top: 0; border-radius: 0; box-shadow: none; }
}

/* Builder */
.builder .dish-stage { height: clamp(290px, 44vh, 460px); }
.limit { font-family: var(--f-num); font-size: 11.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.limit.full { color: var(--danger); }
.top-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.top-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); text-align: start; font-size: 14px; font-weight: 650; min-height: 58px; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--spring); }
.top-btn:active { transform: scale(.96); }
.top-btn i { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.top-btn small { display: block; font-weight: 500; color: var(--ink-2); font-size: 11px; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.top-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--line); }
.top-btn.risk { border-color: var(--danger); }
.top-btn:disabled { opacity: .4; }
.steps-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 0; }
.steps-nav::-webkit-scrollbar { display: none; }
.steps-nav button { flex: none; font-size: 12.5px; font-weight: 650; padding: 7px 13px; border-radius: var(--pill); background: var(--line); color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.steps-nav button.done { background: var(--accent); color: var(--on-accent); }

/* Cart */
.line-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: 'pic t p' 'pic ctl ctl'; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item > .pic { grid-area: pic; }
.line-item > .t { grid-area: t; }
.line-item > .p { grid-area: p; padding-top: 2px; }
.line-item > .ctl { grid-area: ctl; }
.line-item.res-row { grid-template-areas: none; align-items: center; }
.line-item.res-row > * { grid-area: auto; }
.res-row .t { align-self: center; }
.res-row > span:last-child { justify-items: end; }
.line-item .pic { width: 64px; height: 64px; border-radius: 50%; }
.line-item .t { display: grid; gap: 3px; min-width: 0; text-align: start; }
.line-item .t b { font-size: 15.5px; }
.line-item .t .opts { font-size: 12.5px; color: var(--ink-2); }
.line-item .t .note { font-size: 13px; color: var(--ink-2); font-style: italic; }
.line-item .ctl { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.line-item .ctl .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.line-item .ctl .stepper button { width: 34px; height: 34px; }
.line-item .p { font-family: var(--f-num); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.line-item .qty-x { font-family: var(--f-num); }
.totals { display: grid; gap: 10px; padding: 18px 0; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.totals div span:last-child { font-family: var(--f-num); font-size: 13px; }
.totals .disc { color: var(--ok); }
.totals .grand { padding-top: 14px; border-top: 1.5px dashed var(--line-2); font-size: 20px; font-weight: 800; color: var(--ink); font-family: var(--f-display); }
.totals .grand span:last-child { font-family: var(--f-display); font-size: 22px; }
.tip-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--ok-bg); color: var(--ink); font-size: 14px; margin-top: 8px; }
.tip-box > svg:first-child { color: var(--ok); }
.tip-box .t { flex: 1; min-width: 0; }
.tip-box.hint { background: var(--accent-soft); flex-wrap: wrap; }
.tip-box.hint .t { flex: 1 1 200px; }
.tip-box.hint .btn { margin-inline-start: 32px; }
.tip-box.hint > svg:first-child { color: var(--ink); }
.suggest { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest .mini { width: 136px; flex: none; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); width: 100%; text-align: start; min-height: 64px; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.pay-opt:hover { border-color: var(--ink-3); }
.pay-opt .ic { width: 48px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 10.5px; flex: none; font-family: var(--f-num); }
.pay-opt .t { flex: 1; display: grid; }
.pay-opt .t small { color: var(--ink-2); font-size: 12px; }
.pay-opt[aria-checked="true"] { border-color: var(--ink); background: var(--line); }
.pay-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.pay-opt[aria-checked="true"] .radio { border-color: var(--ink); }
.pay-opt .radio i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pay-list { display: grid; gap: 8px; }
.gateways { display: flex; gap: 8px; margin: 2px 0 6px; }
.trust { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); padding: 12px 0; }
.trust svg { color: var(--ok); flex: none; }
.split-people { display: grid; gap: 8px; }
.split-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); background: var(--line); font-size: 14px; }
.split-row .who { display: flex; gap: 4px; }
.split-row .who button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 12px; font-family: var(--f-num); }
.split-row .who button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.split-n { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slots button { min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); font-family: var(--f-num); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.slots button:hover:not(:disabled) { border-color: var(--ink-3); }
.slots button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slots button:disabled { opacity: .32; text-decoration: line-through; }
.slots button small { display: block; font-size: 9.5px; font-weight: 500; text-decoration: none; }
.dates { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.dates::-webkit-scrollbar { display: none; }
.dates button { flex: none; width: 68px; padding: 10px 4px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); display: grid; gap: 2px; justify-items: center; font-size: 11px; color: var(--ink-2); }
.dates button b { font-size: 22px; color: var(--ink); font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.dates button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dates button[aria-checked="true"] b { color: var(--paper); }
.dates button.full-day { border-style: dashed; opacity: .6; }

/* Show-to-waiter */
.waiter-view { min-height: 100%; display: grid; align-content: start; gap: 20px; padding: 28px max(22px, env(safe-area-inset-right, 0px)) 28px max(22px, env(safe-area-inset-left, 0px)); background: var(--ink); color: var(--bg); }
.waiter-view .tbl { font-family: var(--f-display); font-size: clamp(80px, 24vw, 160px); line-height: .85; font-weight: 800; letter-spacing: -.05em; }
.waiter-view ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 20px; }
.waiter-view li b { font-size: 24px; }
.waiter-view li small { display: block; font-size: 15px; opacity: .7; }

/* Ticket (order sent) */
.ticket-wrap { position: fixed; inset: 0; z-index: 200; background: var(--scrim); display: grid; justify-items: center; align-content: start; padding: calc(30px + env(safe-area-inset-top, 0px)) 16px 24px; overflow-y: auto; animation: fade .3s var(--ease); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.printer { width: min(380px, 100%); height: 22px; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, #3a3a3d, #1b1b1d); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); position: relative; z-index: 2; }
.printer::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px; border-radius: 2px; background: #000; }
.ticket { width: min(340px, calc(100% - 40px)); margin-top: -6px; background: #fffdf7; color: #1b1712; font-family: var(--f-code); font-size: 12px; padding: 26px 22px 30px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); clip-path: inset(0 0 100% 0); animation: print 1.8s steps(18) .3s forwards; --zig: 10px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/var(--zig) 51% repeat-x, linear-gradient(#000 0 0) top/100% calc(100% - var(--zig) / 2) no-repeat; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/var(--zig) 51% repeat-x, linear-gradient(#000 0 0) top/100% calc(100% - var(--zig) / 2) no-repeat; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
.ticket .c { text-align: center; }
.ticket h3 { font-family: var(--f-code); font-size: 12px; letter-spacing: .3em; font-weight: 600; }
.ticket .big { font-family: var(--f-display); font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px; }
.ticket hr { border: 0; border-top: 1.5px dashed #b9b2a5; margin: 12px 0; }
.ticket .r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket .r > span:last-child { white-space: nowrap; text-align: end; }
.ticket .bars { height: 40px; margin-top: 14px; background: repeating-linear-gradient(90deg, #1b1712 0 2px, transparent 2px 4px, #1b1712 4px 7px, transparent 7px 9px, #1b1712 9px 10px, transparent 10px 13px); }
.ticket-actions { display: grid; gap: 10px; width: min(340px, 100%); margin-top: 20px; opacity: 0; animation: fadeUp .5s var(--ease) 2.1s forwards; }
.ticket-actions p { color: #fff; text-align: center; font-weight: 600; }
.ticket-actions .btn.line { color: #fff; border-color: rgba(255, 255, 255, .5); }
.ticket-actions .btn.accent { background: #fff; color: #1b1712; }
.ticket-actions .btn.ghost { color: #fff; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.confetti { position: fixed; inset: 0; z-index: 210; pointer-events: none; }

/* Tracking */
.track { display: grid; gap: 0; position: relative; padding: 6px 0; margin-top: 20px; }
.track-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; position: relative; padding-bottom: 24px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-2); }
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--ink); }
.track-step .dotc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); position: relative; z-index: 1; transition: all var(--t) var(--ease); }
.track-step.done .dotc { background: var(--ink); color: var(--paper); }
.track-step.now .dotc { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px var(--line); animation: nowPulse 1.6s ease-in-out infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 10px var(--line); } }
.track-step .t { padding-top: 9px; display: grid; gap: 2px; }
.track-step .t b { font-size: 16px; }
.track-step .t small { color: var(--ink-2); }
.eta { display: flex; align-items: baseline; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); flex-wrap: wrap; }
.eta b { font-family: var(--f-display); font-size: 50px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.eta span { font-size: 13.5px; opacity: .8; }
.eta.col { display: grid; gap: 4px; }
.stars { display: flex; gap: 6px; justify-content: center; padding: 8px 0 4px; }
.stars button { width: 54px; height: 54px; display: grid; place-items: center; color: var(--line-2); transition: transform var(--t-fast) var(--spring); }
.stars button:active { transform: scale(.85); }
.stars button[aria-checked="true"], .stars button.lit { color: #F2A71B; }
.stars button svg { width: 40px; height: 40px; fill: currentColor; stroke: none; }

/* ---------- YOU / loyalty ---------- */
.you-head { display: flex; align-items: center; gap: 16px; padding: 24px 0 8px; }
.you-head h1 { font-size: clamp(38px, 10vw, 58px); letter-spacing: -.05em; }
.avatar { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 800; font-size: 28px; flex: none; }
.you-sec { padding-top: 48px; }
.loyal { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); overflow: hidden; margin-top: 18px; }
.loyal::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--bg) 22%, transparent), transparent 60%); pointer-events: none; }
.loyal h3 { font-size: 25px; color: var(--bg); }
.loyal .pts { font-family: var(--f-display); font-weight: 800; font-size: 42px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.loyal .lh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.loyal .lh small { font-size: 13px; opacity: .8; display: block; margin-top: 4px; }
.loyal .btn { position: relative; z-index: 1; }
.loyal .btn.primary { background: var(--bg) !important; color: var(--ink) !important; }
.loyal .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
.loyal .note { position: relative; z-index: 1; font-size: 14px; font-weight: 600; }
.stamps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; position: relative; z-index: 1; }
.stamp { aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 1.5px dashed currentColor; display: grid; place-items: center; opacity: .5; }
.stamp.on { border: 0; background: var(--bg); color: var(--ink); opacity: 1; animation: stamp .45s var(--spring) both; }
.stamp.free { border-style: solid; font-family: var(--f-num); font-weight: 600; font-size: 8px; opacity: .9; }
@keyframes stamp { from { transform: scale(1.6) rotate(-20deg); opacity: 0; } }
.reward { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reward:last-child { border-bottom: 0; }
.reward .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); flex: none; }
.reward .t { flex: 1 1 130px; min-width: 0; display: grid; gap: 1px; }   /* the button drops below when a long label needs the room */
.reward .t small { color: var(--ink-2); font-size: 12.5px; }
.rewards { display: grid; grid-template-columns: minmax(0, 1fr); }
.list-btn { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: start; font-weight: 600; }
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.looks .look:first-child { grid-column: 1 / -1; grid-template-columns: 96px minmax(0, 1fr); align-items: center; column-gap: 12px; }   /* Minimal leads, full width */
.looks .look:first-child .sw { grid-row: span 2; height: 56px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.looks .look:first-child small { align-self: start; }
.min-opts { display: grid; gap: 10px; margin-top: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: box-shadow var(--t-fast) var(--ease); }
.swatch::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px var(--line); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.look { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); text-align: start; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.look[aria-checked="true"] { border-color: var(--ink); background: var(--line); }
.look .sw { height: 62px; border-radius: var(--r-xs); display: flex; align-items: flex-end; padding: 6px 8px; font-size: 22px; font-weight: 700; }
.look b { font-size: 14px; }
.look small { font-size: 12px; color: var(--ink-2); }
.panel { padding: 4px 20px; border-radius: var(--r-lg); background: var(--surface); display: grid; align-content: start; }
.panel h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.past { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.past:first-of-type { border-top: 1px solid var(--line); }
.past .r { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.past .r b { font-family: var(--f-num); font-size: 13px; font-variant-numeric: tabular-nums; }
.past .items { font-size: 13.5px; color: var(--ink-2); }
.past .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.otp { display: flex; gap: 10px; justify-content: center; }
.otp input { width: 58px; height: 66px; text-align: center; font-size: 26px; font-family: var(--f-code); font-weight: 600; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); font-variant-numeric: tabular-nums; }
.otp input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.giftcard { position: relative; aspect-ratio: 1.6; max-width: 100%; border-radius: 24px; padding: 20px; display: grid; align-content: space-between; color: #fff; overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out; box-shadow: var(--shadow-2); }
.giftcard .gc-amt { font-family: var(--f-display); font-size: 42px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.giftcard .shine { position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .35), transparent 60%); pointer-events: none; }
.gc-designs { display: flex; gap: 10px; }
.gc-designs button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid transparent; }
.gc-designs button[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper) inset; }

/* Service */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.svc { display: grid; gap: 12px; justify-items: start; align-content: start; padding: 16px; border-radius: var(--r); background: var(--line); text-align: start; font-weight: 700; font-size: 15px; min-height: 120px; transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--spring); }
.svc:hover { background: var(--line-2); }
.svc:active { transform: scale(.96); }
.svc .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.svc small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.svc.sent { background: var(--ink); color: var(--paper); }
.svc.sent small { color: var(--paper); opacity: .75; }
.svc.sent .ic { background: #20B263; color: #fff; }

/* Chat with Mochi */
.chat-face { width: 52px; height: 52px; border-radius: 50%; background: var(--line); display: grid; place-items: center; flex: none; }
.chat-face .m-svg { width: 46px; height: 46px; overflow: visible; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #20B263; }
.chat { display: grid; gap: 12px; padding-bottom: 8px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; animation: msgIn .35s var(--ease); }
.msg.bot { background: var(--line); border-end-start-radius: 6px; justify-self: start; }
.msg.me { background: var(--ink); color: var(--paper); border-end-end-radius: 6px; justify-self: end; }
.msg .minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 0; flex: none; }
.chat-sugg::-webkit-scrollbar { display: none; }
.chat-sugg .chip { flex: none; min-height: 36px; font-size: 13px; padding: 0 13px; background: var(--line); border-color: transparent; }
.chat-in { display: flex; gap: 8px; width: 100%; }
.chat-in input { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--surface); }
.chat-in input:focus { outline: none; border-color: var(--ink); }
.send-btn { width: 50px; height: 50px; background: var(--accent); color: var(--on-accent); }
.send-btn:hover { background: var(--accent); }

/* Search */
.search-in { position: relative; flex: 1; }
.search-in input { width: 100%; min-height: 54px; padding: 0 16px 0 50px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--surface); font-size: 16px; }
[dir="rtl"] .search-in input { padding: 0 50px 0 16px; }
.search-in input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.search-in > svg { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
mark { background: var(--accent); color: var(--on-accent); border-radius: 4px; padding: 0 2px; }
.res-group h3 { font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 20px 0 4px; letter-spacing: 0; }
.res-row { grid-template-columns: 56px 1fr auto; }
.res-row .pic { width: 56px; height: 56px; }
.res-row .add { width: 36px; height: 36px; }

/* ---------- DEALS ---------- */
.page-h { padding: 24px 0 4px; }
.page-h h1 { font-size: clamp(56px, 15vw, 104px); letter-spacing: -.06em; line-height: .9; }
.deals-sec { padding-top: 52px; }
.chef-card { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); overflow: hidden; position: relative; margin-top: 24px; }
.chef-card .pic { aspect-ratio: 1.4; max-width: 100%; border-radius: var(--r); --tile: color-mix(in srgb, var(--bg) 10%, transparent); --glow: color-mix(in srgb, var(--bg) 22%, transparent); }
.chef-card .eyebrow { color: var(--bg); opacity: .75; }
.chef-card h2 { font-size: 30px; }
.chef-card blockquote { margin: 0; font-family: var(--f-display); font-size: 22px; line-height: 1.28; letter-spacing: -.015em; }
:root:lang(fa) .chef-card blockquote, :root:lang(ar) .chef-card blockquote { letter-spacing: 0; line-height: 1.6; font-size: 19px; }
.chef-card .who { font-size: 13px; opacity: .75; }
.chef-card .btn.accent { background: var(--bg); color: var(--ink); }
.chef-card .btn.line { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.chef-card .row-btns { margin-top: 2px; }
.deal-list { display: grid; }
.deal { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.deal:first-child { border-top: 1px solid var(--line); }
.deal .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.deal .t { display: grid; gap: 2px; min-width: 0; }
.deal .t b { font-size: 16px; }
.deal .t small { color: var(--ink-2); font-size: 13px; }
.deal .t small.time { font-family: var(--f-num); font-size: 11.5px; color: var(--ink-3); }
.deal .state { font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: var(--pill); white-space: nowrap; }
.deal .state.live { background: #20B263; color: #03200F; }
.deal .state.later { background: var(--surface); color: var(--ink); }
.deal .state.done { background: transparent; color: var(--ink-3); text-decoration: line-through; }
.timeline { position: relative; display: grid; gap: 6px; margin-bottom: 18px; }
.tl-bar { position: relative; height: 78px; border-radius: var(--r-sm); background: var(--line); overflow: hidden; }
.tl-bar .blk { position: absolute; height: 22px; border-radius: 8px; background: var(--paper); border: 1.5px solid var(--ink); display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; }
.tl-bar .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }
.tl-bar .now::after { content: attr(data-l); position: absolute; bottom: 5px; inset-inline-start: 5px; font-family: var(--f-num); font-size: 9.5px; font-weight: 600; color: var(--danger); }
.tl-bar .now.late::after { inset-inline-start: auto; inset-inline-end: 5px; }
.tl-scale { display: flex; justify-content: space-between; font-family: var(--f-num); font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.code-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1.5px dashed var(--ink); }
.code-card .code { font-family: var(--f-code); font-weight: 600; font-size: 19px; letter-spacing: .08em; }

/* Allergen chart */
.chart-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.achart { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 560px; }
.achart th, .achart td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.achart th:first-child, .achart td:first-child { text-align: start; position: sticky; inset-inline-start: 0; background: var(--paper); }
.achart thead th { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.achart .y { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); display: inline-block; }
.achart tr.sec td { background: var(--line); font-weight: 700; text-align: start; }

/* Toasts */
.toasts { position: fixed; z-index: 400; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 10px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 460px; width: fit-content; padding: 10px 10px 10px 16px; border-radius: 20px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 14.5px; font-weight: 550; animation: toastIn .45s var(--spring); }
[dir="rtl"] .toast { padding: 10px 16px 10px 10px; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast button { color: var(--ink); background: var(--bg); font-weight: 700; padding: 7px 12px; border-radius: var(--pill); white-space: nowrap; font-size: 13px; }
.toast.ok > svg { color: #4ade80; }
.toast.big { padding: 16px 16px 16px 18px; font-size: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

.proto-list { display: grid; gap: 8px; }
.proto-list button { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-sm); background: var(--line); text-align: start; font-weight: 650; font-size: 14.5px; transition: background-color var(--t) var(--ease); }
.proto-list button:hover { background: var(--line-2); }
.proto-list button small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.proto-list button .t { flex: 1; }
.serp { padding: 16px; border-radius: var(--r-sm); background: #fff; color: #202124; font-family: Arial, Vazirmatn, sans-serif; border: 1px solid #dadce0; display: grid; gap: 4px; }
.serp .u { font-size: 12.5px; color: #4d5156; }
.serp .ti { font-size: 20px; color: #1a0dab; line-height: 1.3; }
.serp .ds { font-size: 14px; color: #4d5156; line-height: 1.55; }
.serp .st { font-size: 13px; color: #70757a; }
.serp .st b { color: #e7711b; }

/* Dishes without a 3D model: how every dish still gets one */
.tiers { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--line); }
.tier .pic { width: 84px; height: 84px; border-radius: var(--r-sm); }
.tier b { font-size: 15px; display: block; }
.tier small { font-size: 12.5px; color: var(--ink-2); display: block; }
.tier .n { font-family: var(--f-num); font-size: 10px; color: var(--ink-2); }
.src-list { display: grid; gap: 0; }
.src-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.src-row .pic { width: 44px; height: 44px; border-radius: 50%; }
.src-row .tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--pill); background: var(--line); white-space: nowrap; }
.src-row .tag.auto { background: var(--accent); color: var(--on-accent); }
.upload { display: grid; gap: 10px; }
.upload input[type="file"] { font-size: 13px; max-width: 100%; }

/* TV board: readable from across the room */
.tv { position: fixed; inset: 0; z-index: 500; background: #0b0807; color: #fbf3e6; display: grid; grid-template-rows: auto 1fr auto; padding: 3vmin 4vmin; gap: 2vmin; font-family: var(--f-body); --tile: #1a1310; --glow: rgba(255, 180, 100, .2); }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline-end: 56px; }
.tv-head h2 { font-size: 6vmin; color: #fbf3e6; }
.tv-head .clock { font-family: var(--f-num); font-size: 3.2vmin; color: #ffcf86; }
.tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4vmin; align-content: safe center; min-height: 0; overflow-y: auto; animation: viewIn .8s var(--ease); }
.tv-item { display: grid; grid-template-columns: 17vmin minmax(0, 1fr) auto; gap: 1.6vmin; align-items: center; padding: 1.6vmin; padding-inline-end: 2.4vmin; border-radius: 2.4vmin; background: #1a1310; }
.tv-item .pic { width: 17vmin; height: 17vmin; border-radius: 50%; }
.tv-item b { font-size: 3.6vmin; display: block; letter-spacing: -.01em; }
.tv-item small { font-size: 2vmin; opacity: .65; font-family: var(--f-num); }
.tv-item .p { font-family: var(--f-num); font-size: 3.6vmin; font-weight: 600; color: #ffcf86; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.6vmin 20px; font-size: 2.2vmin; }
/* A TV board opened on an upright phone (prototype controls): one column, type sized for the narrow side */
@media (orientation: portrait) and (max-width: 700px) {
  .tv-head h2 { font-size: 6.4vmin; }
  .tv-head .clock { font-size: 4vmin; }
  .tv-grid { grid-template-columns: minmax(0, 1fr); gap: 2vmin; }
  .tv-item { grid-template-columns: 15vmin minmax(0, 1fr) auto; gap: 3vmin; padding: 2vmin; padding-inline-end: 4vmin; border-radius: 4vmin; }
  .tv-item .pic { width: 15vmin; height: 15vmin; }
  .tv-item b { font-size: 4.4vmin; }
  .tv-item small { font-size: 3.2vmin; }
  .tv-item .p { font-size: 4.6vmin; }
  .tv-foot { font-size: 3.4vmin; }
}
.tv-foot .hh { padding: 1vmin 2vmin; border-radius: 99px; background: #ffcf86; color: #2a1404; font-weight: 700; }
.tv-close { position: absolute; top: 12px; inset-inline-end: 12px; color: #fbf3e6; }
.tv-dots { display: flex; gap: 8px; }
.tv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a2c24; }
.tv-dots i.on { background: #ffcf86; }

/* 3D labels */
.d3-labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.d3-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; pointer-events: auto; height: 26px; margin-top: -13px; padding: 0 11px 0 6px; border-radius: var(--pill); background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; max-width: 180px; transition: opacity .2s, background-color .2s; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); will-change: transform; }
.d3-label.on { background: var(--ink); color: var(--paper); }
.d3-line { position: absolute; left: 0; top: 50%; height: 1.5px; background: var(--ink); opacity: .5; transform-origin: 0 50%; pointer-events: none; }
.d3-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; margin-inline-start: 2px; }
.d3-label.on .d3-dot { background: var(--paper); }
.d3-txt { line-height: 1; overflow: hidden; text-overflow: ellipsis; }

/* ---------- POLISH: nothing is cut by its frame ----------
   Round frames: the 3D pictures are framed for square tiles, so inside circles they get room to breathe. */
.rail .pic > img, .rail .pic > svg, .line-item .pic > img, .line-item .pic > svg, .pair .pic > img, .pair .pic > svg,
.src-row .pic > img, .src-row .pic > svg, .tv-item .pic > img, .tv-item .pic > svg, .fly > img, .fly > svg { padding: 13%; }
/* Scrolling rows fade out at the screen edge instead of stopping with a hard cut */
.rail, .favs, .reco, .quick, .chips.scroll, .suggest, .dates, .steps-nav, .chat-sugg {
  --fade: var(--gut);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.sheet-b, .dish-content { --sp: 20px; }
.sheet-b .chips.scroll, .sheet-b .suggest, .sheet-b .dates, .dish-content .steps-nav, .dish-content .chips.scroll { --fade: var(--sp); margin-inline: calc(var(--sp) * -1); padding-inline: var(--sp); scroll-padding-inline: var(--sp); }
.chat-sugg { --fade: 16px; }
/* ...and leave room above and below so focus rings, rings and shadows are never sliced */
.chips.scroll { padding-block: 6px; margin-block: -4px; }
.quick { padding-block: 6px; margin-top: 14px; margin-bottom: -4px; }
.favs { padding-top: 8px; margin-top: -4px; }
.reco { padding-top: 6px; margin-top: -4px; }
.rail { padding-top: 10px; margin-top: 0; }
.dates, .suggest { padding-block: 6px 8px; }
/* Today's deals timeline: a label that does not fit its block sits beside it */
.tl-bar .blk.out { color: transparent; overflow: visible; }
.tl-bar .blk.out::after { content: attr(data-l); position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tl-bar .blk.out.to-left::after { right: calc(100% + 6px); }
.tl-bar .blk.out.to-right::after { left: calc(100% + 6px); }

/* ---------- RESPONSIVE ----------
   Small phones (≤359) · phones (360–599) · large phones and tablets (600–899) · landscape phones (short and wide) ·
   laptops (900+) · large screens (1440+) · very large screens (1800+). Every size keeps one column of reading, a slim
   sticky header and no sideways scrolling. */
.wrap { max-width: var(--wrap, 1240px); }
@media (min-width: 390px) { .tool-btn .lbl { display: inline; } .tool-btn { padding: 0 13px 0 11px; } [dir="rtl"] .tool-btn { padding: 0 11px 0 13px; } }
@media (min-width: 600px) {
  :root { --gut: 24px; }
  .sheet-b, .dish-content { --sp: 24px; }
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .starts { grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; }
  .deal-card { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .deal-card > svg { display: none; }
  .deal-card .d { white-space: normal; }
  .visit { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .stage-main { height: clamp(320px, calc(100dvh - 520px), 560px); }
  .sheet-h, .sheet-b { padding-inline: 24px; }
}
@media (min-width: 900px) {
  :root { --bar-h: 68px; --gut: 32px; --chapter: 110px; }
  .hero { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px; min-height: min(720px, calc(100vh - 110px)); }
  .hero h1 { font-size: clamp(64px, 7.6vw, 124px); }
  .hero-stage { order: 2; height: min(640px, 76vh); margin-inline: 0; }
  .hero-copy { order: 1; padding: 0; gap: 22px; }
  .hero-tag { inset-inline-start: 24px; bottom: 24px; }
  .starts { margin-top: 24px; gap: 14px; }
  .tone-tile { min-height: 210px; padding: 16px 16px 18px; }
  .tone-tile b { font-size: 20px; }
  .tone-tile .tt-pic { width: 120px; height: 120px; }
  .tone-tile .tt-ic { width: 84px; height: 84px; }
  .deal-card { padding: 22px; }
  .deal-card b { font-size: 24px; }
  .mh-row { height: 54px; }
  .tab { font-size: 15.5px; padding: 0 12px; }
  .tab::after { left: 12px; right: 12px; }
  .view-seg { display: inline-flex; }
  .mh-tools .view-btn { display: none; }
  .menu-body[data-view="3d"] { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 36px; }
  .menu-body[data-view="3d"] .list-col { display: block; }
  .menu-body[data-view="3d"] .stage-col { position: sticky; top: calc(var(--bar-h) + 66px); display: flex; flex-direction: column; height: calc(100vh - var(--bar-h) - 80px); min-height: 600px; }
  .menu-body[data-view="3d"] .stage-main { flex: 1 1 0; height: auto; min-height: 240px; max-height: 600px; margin-inline: 0; }
  .menu-body[data-view="3d"] .focus-card, .menu-body[data-view="3d"] .rail, .menu-body[data-view="3d"] .stage-hint { flex: none; }
  .menu-body[data-view="3d"] .rail { margin-inline: 0; padding-inline: 2px; }
  .menu-body[data-view="3d"] .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-body[data-view="list"] .cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .menu-body[data-view="3d"] .msec:first-of-type { padding-top: 12px; }
  .events-card { grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 32px 34px; }
  .faq { max-width: 860px; }
  .you-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
}
@media (min-width: 1300px) { .menu-body[data-view="3d"] .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { :root { --wrap: 1380px; --gut: 40px; } .menu-body[data-view="list"] .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (min-width: 1800px) { :root { --wrap: 1560px; } body { font-size: 16.5px; } .msec-h h2 { font-size: 68px; } }
/* Phones */
@media (max-width: 899px) {
  :root { --bar-h: 56px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
}
@media (max-width: 440px) {
  .bar-in .icon-btn { width: 40px; height: 40px; }
  .tone-tile { min-height: 158px; }
  .tone-tile .tt-pic { width: 78px; height: 78px; }
  .tone-tile .tt-ic { width: 58px; height: 58px; }
  .tone-tile .t span { display: none; }
  .focus-card .actions .btn.line { padding: 0 14px; }
}
@media (max-width: 420px) { .bar-in.has-table .brand-name { display: none; } }
@media (max-width: 400px) {
  .table-chip .tw { display: none; }
  .table-chip .tn { display: inline; }
  .lang-btn .lid { display: none; }
  .hero-go b { font-size: 21px; }
}
/* Phones and tablets held upright (not landscape phones, which have their own side-by-side layout): the 3D menu fits
   one screen. fitMenu in app.js measures the room above (--fit-top) and below (--fit-bottom); the stand takes what is
   left after the dish and the row of dishes. Screens too short for a useful stand scroll a little instead. */
@media (max-width: 559px), (max-width: 899px) and (min-height: 521px) {
  #v-menu.fit .stage-col { display: flex; flex-direction: column; gap: 8px; height: max(470px, calc(100vh - var(--fit-top, 112px) - var(--fit-bottom, 78px))); height: max(470px, calc(100dvh - var(--fit-top, 112px) - var(--fit-bottom, 78px))); }
  #v-menu.fit .stage-main { flex: 1 1 0; height: auto; min-height: 0; }
  #v-menu.fit .focus-card, #v-menu.fit .rail { flex: none; }
  #v-menu.fit .focus-card { grid-template-columns: fit-content(62%) minmax(0, 1fr); column-gap: 0; row-gap: 6px; padding: 0; }
  #v-menu.fit .focus-card > * { grid-column: 1 / -1; }
  #v-menu.fit .focus-card > .top { grid-row: 1; }
  #v-menu.fit .focus-card > .badges { grid-row: 2; grid-column: 1; margin-inline-end: 10px; align-self: center; }
  #v-menu.fit .focus-card > .meta { grid-row: 2; grid-column: 2; min-height: 24px; gap: 4px 10px; }
  #v-menu.fit .focus-card > .risk-line { grid-row: 3; }
  #v-menu.fit .focus-card > .actions { grid-row: 4; margin-top: 2px; flex-wrap: nowrap; }
  /* Details becomes a round info button beside Add (named "Details" for screen readers), so price and Add share one row in every language */
  #v-menu.fit .focus-card .details-btn { width: 48px; padding: 0; flex: none; }
  #v-menu.fit .focus-card .details-btn svg { display: block; }
  #v-menu.fit .focus-card .details-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; text-overflow: clip; }
  #v-menu.fit .focus-card .actions .price { font-size: clamp(21px, 6.6vw, 28px); }
  :root:lang(fa) #v-menu.fit .focus-card .actions .price, :root:lang(ar) #v-menu.fit .focus-card .actions .price { font-size: clamp(18px, 5.4vw, 24px); }
  #v-menu.fit .focus-card .top > div { gap: 4px; }
  #v-menu.fit .focus-card h3 { font-size: clamp(28px, 8vw, 40px); }
  :root:lang(fa) #v-menu.fit .focus-card h3, :root:lang(ar) #v-menu.fit .focus-card h3 { font-size: clamp(24px, 6.6vw, 34px); }
  #v-menu.fit .focus-card p { font-size: 14.5px; }
  #v-menu.fit .rail { margin-top: 0; padding-top: 6px; padding-bottom: 2px; }
  #v-menu.fit .rail button .pic { width: 54px; height: 54px; }
  #v-menu.fit .rail .next-sec svg { width: 54px; height: 54px; padding: 16px; }
  html.menu-fit main { padding-bottom: calc(var(--fit-bottom, 78px) - env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 899px) and (max-height: 800px) { #v-menu.fit .focus-card p { -webkit-line-clamp: 1; } }
/* Small phones (320–359px) */
@media (max-width: 359px) {
  .card .badge .bt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cart-pill .tot { display: none; }
  :root { --gut: 14px; }
  body { font-size: 15px; }
  .brand-name { display: none; }
  .bar-in .icon-btn { width: 38px; height: 38px; }
  .hero h1 { font-size: 46px; }
  .hero .lede { font-size: 16px; }
  .hero-go { min-height: 62px; padding-inline-start: 20px; }
  .hero-go b { font-size: 19px; }
  .hero-go .ar { width: 46px; height: 46px; }
  .starts { gap: 8px; }
  .tone-tile { min-height: 140px; padding: 10px; }
  .tone-tile b { font-size: 14.5px; }
  .tab { font-size: 14.5px; padding: 0 8px; }
  .tab::after { left: 8px; right: 8px; }
  .focus-card h3 { font-size: 30px; }
  .focus-card .actions .price { font-size: 24px; }
  .cards { gap: 22px 10px; }
  .card h3 { font-size: 14.5px; }
  .dock-in { padding: 5px; }
  .dock-tab { font-size: 10px; padding-inline: 0; }
  .cart-pill { padding: 0 12px; gap: 6px; }
  .sheet-h, .sheet-b { padding-inline: 16px; }
  .sheet-b { --sp: 16px; }
  .sheet-h h2 { font-size: 25px; }
  .grid2 { grid-template-columns: 1fr; }
  .otp input { width: 50px; height: 58px; }
}
/* Landscape phones: short and wide. The 3D stand and its dish sit side by side, sheets split in two. */
@media (max-height: 520px) and (min-width: 560px) and (max-width: 899px) {
  :root { --bar-h: 52px; --dock-h: 58px; --chapter: 56px; }
  .mh-row { height: 44px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; }
  .hero-stage { order: 2; height: calc(100dvh - var(--bar-h) - 30px); min-height: 240px; margin-inline: 0; }
  .hero-copy { order: 1; }
  .hero h1 { font-size: clamp(44px, 8vw, 72px); }
  .menu-body[data-view="3d"] .stage-col { grid-template-columns: 1.1fr 1fr; align-items: center; column-gap: 20px; }
  .menu-body[data-view="3d"] .stage-main { grid-row: span 2; height: calc(100dvh - var(--bar-h) - 44px - var(--dock-h) - 30px); min-height: 220px; margin-inline: 0; }
  .menu-body[data-view="3d"] .rail { margin: 0; padding-inline: 0; }
  .focus-card h3 { font-size: 30px; }
  .dish { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .dish-stage, .builder .dish-stage { height: 100%; }
  .dish-stage .stage { inset: 0; }
  .dish-main { margin-top: 0; border-radius: 0; box-shadow: none; }
  .sheet { max-height: calc(100% - 8px); }
  .dock { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .dock-tab { padding: 5px 2px 4px; gap: 1px; }
  .cart-pill { height: 44px; }
  .mascot-mini .m-svg { width: 34px; height: 34px; }
}
/* Short laptop windows and big landscape phones */
@media (max-height: 560px) and (min-width: 900px) {
  :root { --bar-h: 58px; }
  .hero { min-height: 0; }
  .hero-stage { height: calc(100dvh - var(--bar-h) - 40px); min-height: 260px; }
  .menu-body[data-view="3d"] .stage-main { height: calc(100dvh - var(--bar-h) - 260px); min-height: 230px; }
  .dock { top: calc(env(safe-area-inset-top, 0px) + 7px); }
}
/* grid children that hold scrolling rows must not grow the page */
.menu-body > *, .hero > *, .visit > *, .stage-col > *, .dish > *, .starts > *, .you-grid > * { min-width: 0; }
/* Desktop: the navigation pill sits in the top bar, so nothing covers the content */
@media (min-width: 900px) {
  .dock { top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; padding: 0; z-index: 55; }
  .dock.away { transform: none; }
  .dock-in { max-width: none; width: max-content; padding: 4px; gap: 2px; box-shadow: none; border-radius: 26px; }
  .dock-tab { flex: none; }
  .dock-tab { grid-auto-flow: column; align-items: center; gap: 6px; padding: 9px 13px; font-size: 13px; }
  .dock-tab svg.i { width: 18px; height: 18px; }
  .cart-pill { height: 40px; border-radius: 22px; padding: 0 15px 0 12px; }
  main { padding-bottom: 64px; }
}
@media (min-width: 900px) and (max-width: 1150px) { .dock-tab span { display: none; } }
a.btn { text-decoration: none; }
/* Header scaling: the app bar and the section shelf step up together from small phones to large screens
   (landscape phones keep their own compact sizes above) */
@media (max-width: 440px) { .bar-tools { padding: 2px; } .bar-in .bar-tools .icon-btn { width: 36px; height: 36px; } }
@media (max-width: 359px) { :root { --bar-h: 52px; } .mh-row { height: 44px; } .bar-in { gap: 4px; } .bar-in .bar-tools .icon-btn { width: 34px; height: 34px; } .mascot-mini .m-svg { width: 34px; height: 34px; } }
/* The smallest phones (≤ 340px: 320px phones and a folded phone's 280px cover screen): tighter gutters and panels,
   segmented buttons and colour dots that still fit one row, a price that leaves room for its buttons */
@media (max-width: 340px) {
  :root { --gut: 12px; }
  .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* two tiles a row; "Book a table" takes its own row */
  .starts .tone-tile:first-child { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: center; column-gap: 12px; }
  .starts .tone-tile:first-child .tt-ic { width: 40px; height: 40px; margin: 0; }
  .btn.lg { white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
  .panel { padding: 4px 14px; }
  .seg.full button { font-size: 12.5px; padding: 4px 3px; }
  .swatches { gap: 2px; }
  .swatch { width: 40px; height: 40px; }
  .swatch::before { width: 28px; height: 28px; }
  #v-menu.fit .focus-card .actions .price { font-size: clamp(18px, 6.6vw, 21px); }
  .focus-card .actions .btn { padding: 0 14px; }
  .hero h1 { font-size: 40px; }
}
@media (min-width: 600px) and (max-width: 899px) and (min-height: 521px) { :root { --bar-h: 60px; } .mh-row { height: 52px; } .tab { font-size: 15.5px; padding: 0 12px; } .tab::after { left: 12px; right: 12px; } }
@media (min-width: 1440px) { .mh-row { height: 56px; } .tab { font-size: 16px; padding: 0 14px; } .tab::after { left: 14px; right: 14px; } }
