/* App-style guest menu (menu.style: app): a full-bleed photo banner, a
   rounded sheet rising over it with the guest-card banner first, section
   tiles, a two-column grid of dishes, bottom-sheet dish cards and a tab bar.
   Colours come from the venue theme (brand.theme / menu.theme). */
.ma {
  --r: 22px;
  --bar-h: 64px;
  --sheet: var(--surface);
  --soft: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
  background: var(--bg);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px);
  overflow-x: hidden;
}
.ma .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ma h2 { font-size: 1.45rem; margin: 0 0 4px; }
.ma-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.ma-empty { color: var(--muted); text-align: center; padding: 28px 12px; margin: 0; }

/* ---- top bar over the banner ---- */
.ma-top { position: fixed; z-index: 20; top: 10px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 6px 20px -14px var(--shadow); max-width: 720px; margin: 0 auto; }
.ma-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.ma-logo img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--accent); }
.ma-logo b { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* brand.logo_wide: the venue's whole logo, mark and name, as it is drawn. */
.ma-logo-wide img { width: auto; max-width: 100%; height: 38px; border-radius: 0; object-fit: contain; background: none; }
.ma-langs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.ma-langs a { padding: 5px 9px; border-radius: 9px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.ma-langs a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

/* ---- views: the script shows one at a time ---- */
.ma-view { max-width: 720px; margin: 0 auto; }
.js .ma-view { display: none; }
.js[data-view="home"] .ma-home, .js[data-view="menu"] .ma-menu, .js[data-view="search"] .ma-search, .js[data-view="favs"] .ma-favs { display: block; }
.ma-view[hidden] { display: none; }

/* ---- the banner ---- */
.ma-hero { position: relative; height: min(50vh, 440px); min-height: 300px; background: var(--ink); overflow: hidden; }
.ma-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ma-slides::-webkit-scrollbar { display: none; }
.ma-slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.ma-slide img { width: 100%; height: 100%; object-fit: cover; }
.ma-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.62) 100%); }
.ma-slide figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: calc(48px + var(--info-h, 60px)); color: #fff; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.3rem, 5.4vw, 1.8rem); line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.ma-hero.is-plain { height: auto; min-height: 0; padding: 86px 16px 92px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 38%, var(--ink)) 0%, var(--ink) 70%); }
.ma-plain { display: grid; justify-items: center; gap: 8px; color: #fff; text-align: center; }
.ma-plain img { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }
.ma-plain b { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.1; }
.ma-plain small { opacity: 0.8; font-size: 0.9rem; }
.ma-hero.is-plain .ma-hero-info { justify-content: center; }
.ma-hero-info { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 34px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ma-pill { padding: 5px 11px; border-radius: 99px; background: rgba(20, 14, 10, 0.72); color: #fff; font-size: 0.8rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ma-pill-light { background: #fff; color: #1d1410; }
/* Opening hours, one run of days per piece: «Вт–Чт 14:00–02:00 · Пн — выходной». */
.ma-hp { display: inline-block; max-width: 100%; }
.ma-hp:not(:last-child)::after { content: " ·"; }
.ma-facts .ma-hp { display: block; }
.ma-facts .ma-hp::after { content: none; }
.ma-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.ma-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.5); transition: width 0.25s, background 0.25s; }
.ma-dots i.on { width: 18px; background: #fff; }

/* ---- the sheet over the banner ---- */
.ma-sheet { position: relative; z-index: 3; margin-top: -24px; padding: 16px 12px 8px; border-radius: var(--r) var(--r) 0 0; background: var(--bg); }

/* The guest card: the first thing under the photo. */
.ma-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: 20px; background: var(--accent); color: #fff; text-decoration: none; overflow: hidden; box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--accent) 80%, #000); }
.ma-card::before { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.ma-card-pass { grid-row: span 2; position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 64px; height: 84px; padding: 7px; border-radius: 10px; background: var(--pass-bg, var(--ink)); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55); transform: rotate(-6deg); }
.ma-card-pass img { width: 20px; height: 20px; border-radius: 5px; }
.ma-card-pass .ma-card-logo-wide { width: 100%; height: auto; border-radius: 0; }
.ma-card-pass b { color: var(--pass-fg, #fff); font-size: 0.55rem; font-weight: 700; line-height: 1.1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ma-card-pass i { position: absolute; left: 7px; right: 7px; bottom: 7px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 3px, #fff 3px 4px, transparent 4px 6px); opacity: 0.85; }
.ma-card-text { position: relative; display: grid; line-height: 1.15; }
.ma-card-text small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 3px; }
.ma-card-text b { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.55rem; }
.ma-card-text span { font-size: 0.95rem; opacity: 0.92; }
.ma-card-go { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 14px; border-radius: 99px; background: #fff; color: var(--accent); font-size: 0.85rem; font-weight: 800; }
.ma-card-go .ic { width: 16px; height: 16px; stroke-width: 2.2; }

.ma-chips { display: flex; gap: 8px; margin: 14px -12px 4px; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; }
.ma-chips::-webkit-scrollbar { display: none; }
.ma-chip { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 14px; border: 0; border-radius: 99px; background: var(--soft); color: var(--text); font: 600 0.9rem var(--font); text-decoration: none; cursor: pointer; }
.ma-chip .ic, .ma-chip .mn-star { width: 18px; height: 18px; color: var(--accent); }
.ma-chip .mn-star { fill: currentColor; stroke: none; }

.ma .mn-promos { margin-top: 12px; }
.ma .mn-promos.is-scroll { margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }

.ma-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
/* Many sections: two rows that scroll sideways, so the hits stay near the top. */
.ma-tiles.is-many { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3.3); margin-inline: -12px; padding: 0 12px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.ma-tiles.is-many::-webkit-scrollbar { display: none; }
.ma-tiles.is-many .ma-tile { scroll-snap-align: start; }
.ma-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 10px 10px 0; border-radius: 18px; background: var(--soft); color: var(--text); text-decoration: none; overflow: hidden; }
.ma-tile span { position: relative; z-index: 1; font-size: 0.86rem; font-weight: 700; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.ma-tile img { align-self: flex-end; width: 92%; aspect-ratio: 1; margin: 6px -14% -18% 0; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.5); }
.ma-tile-ico { align-self: flex-end; margin: 0 0 10px; color: var(--accent); }
.ma-tile-ico .ic { width: 40px; height: 40px; stroke-width: 1.3; }

.ma-block { margin-top: 26px; }
.ma-wide { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--soft); color: var(--text); text-decoration: none; }
.ma-card + .ma-wide { margin-top: 10px; }
.ma-wide span { flex: 1; display: grid; }
.ma-wide small { color: var(--muted); }

/* ---- dish grid ---- */
.ma-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
@media (min-width: 640px) { .ma-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ma-dish { min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ma-dish:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; }
.ma-dish-pic { position: relative; aspect-ratio: 1; border-radius: 18px; background: var(--soft); overflow: hidden; }
.ma-dish-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ma-dish:hover .ma-dish-pic img { transform: scale(1.03); }
.ma-nopic { display: grid; place-items: center; height: 100%; padding: 14px; text-align: center; color: var(--muted); font-family: var(--display); font-weight: var(--display-weight); font-size: 1.05rem; line-height: 1.2; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--soft); }
/* A dark menu (a pub, a lounge): a dish without a photo is a small plate
   of its own — a copper glow, fine diagonal lines, a copper frame and the
   venue's mark above the name — instead of a bare grey square. */
.ma-dark .ma-nopic { position: relative; padding: 44px 18px 40px; color: var(--text); font-size: 0.92rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); background: radial-gradient(120% 75% at 50% 0%, color-mix(in srgb, var(--copper) 26%, transparent), transparent 62%), repeating-linear-gradient(135deg, color-mix(in srgb, var(--copper) 9%, transparent) 0 1px, transparent 1px 10px), linear-gradient(165deg, color-mix(in srgb, var(--accent) 34%, var(--soft)), var(--soft) 70%); }
.ma-dark .ma-nopic::before { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--copper) 48%, transparent); border-radius: 13px; pointer-events: none; }
.ma-dark .ma-nopic::after { content: ""; position: absolute; left: 50%; top: 16px; width: 26px; height: 26px; margin-left: -13px; border-radius: 7px; background: center / contain no-repeat url('../pass-assets/logo@2x.png'); opacity: 0.7; box-shadow: 0 0 0 1px color-mix(in srgb, var(--copper) 40%, transparent); }
.ma-badge { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 99px; background: #1d1410; color: #fff; font-size: 0.74rem; font-weight: 800; }
.ma-out { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; background: rgba(255, 255, 255, 0.55); color: #1d1410; font-weight: 800; text-align: center; -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1); }
.ma-like { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; min-width: 34px; height: 30px; padding: 0 9px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: #6b5b52; font: 700 0.8rem var(--font); cursor: pointer; }
.ma-like .ic { width: 16px; height: 16px; }
.ma-like[aria-pressed="true"] { color: #e0393e; }
.ma-like[aria-pressed="true"] .ic { fill: currentColor; }
.ma-like.pop .ic { animation: ma-pop 0.35s; }
@keyframes ma-pop { 50% { transform: scale(1.35); } }
.ma-add { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #1d1410; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45); cursor: pointer; }
.ma-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* In the cart: one dark pill «− N +» — the minus and the number sit in
   .ma-qty under the plus button's left side. */
.ma-add.has-n { background: var(--accent); color: #fff; box-shadow: none; }
.ma-qty { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; height: 40px; padding-right: 40px; border-radius: 99px; background: var(--accent); color: #fff; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45); }
.ma-qty[hidden] { display: none; }
.ma-qty .num { min-width: 22px; text-align: center; font-weight: 800; font-size: 0.95rem; }
.ma-minus { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.ma-minus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ma-dish h3 { margin: 8px 2px 2px; font-size: 0.95rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-dish-portion { margin: 0 2px; color: var(--muted); font-size: 0.82rem; }
.ma-dish-price { margin: 3px 2px 0; font-size: 0.95rem; }
.ma-dish-price s, .ma-buy-price s { color: var(--muted); font-size: 0.85em; }
.is-sale { color: #d2382d; }

/* ---- Меню ---- */
.ma-menu { padding: 74px 12px 8px; }
.ma-tabs { position: sticky; z-index: 10; top: 68px; display: flex; gap: 6px; margin: 0 -12px 8px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ma-tabs::-webkit-scrollbar { display: none; }
.ma-tabs a { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--soft); color: var(--text); font-size: 0.88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ma-tabs a.on { background: var(--text); color: var(--bg); }
.ma-sec { padding-top: 16px; scroll-margin-top: 124px; }
.ma-sec h2 { margin-bottom: 12px; }
.ma-note { color: var(--muted); font-size: 0.9rem; margin: 24px 2px 0; }
.ma-review { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border-radius: 18px; background: var(--soft); color: var(--text); text-decoration: none; }
.ma-review span:last-child { display: grid; gap: 2px; }
.ma-review small { color: var(--muted); }
.ma-review-stars { display: flex; color: #f5a623; }
.ma-review-stars .mn-star { width: 16px; height: 16px; fill: currentColor; }

/* ---- Поиск, Любимое ---- */
.ma-search, .ma-favs { padding: 74px 12px 8px; }
.ma-favs h2 { display: flex; align-items: center; gap: 8px; margin: 10px 2px 16px; }
.ma-favs h2 .ic { color: #e0393e; fill: currentColor; width: 24px; height: 24px; }
.ma-search-box { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -20px var(--shadow); }
.ma-search-box .ic { color: var(--muted); }
.ma-search-box input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; color: var(--text); font: 500 1rem var(--font); outline: none; }

.ma-foot { max-width: 720px; margin: 28px auto 0; padding: 16px 16px 8px; color: var(--muted); font-size: 0.86rem; text-align: center; }
.ma-foot b { color: var(--text); }
.js[data-view="search"] .ma-foot, .js[data-view="favs"] .ma-foot { display: none; }

/* ---- the tab bar ---- */
.ma-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 90%, transparent); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.ma-bar button { position: relative; flex: 1; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: 600 0.72rem var(--font); cursor: pointer; }
.ma-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ma-bar button[aria-current] { color: var(--accent); }
.ma-bar-cart.has-items { color: var(--text); }
.ma-bar-cart.has-items [data-cart-total] { font-weight: 800; }
.ma-bar-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800; line-height: 18px; }
.ma-bar-count[hidden] { display: none; }
.ma-bar-cart.bump svg { animation: ma-pop 0.35s; }

/* ---- bottom-sheet dialogs ---- */
.ma-sheet-dlg { position: fixed; inset: auto 0 0; width: 100%; max-width: 640px; max-height: 92dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--bg); color: var(--text); display: none; flex-direction: column; overflow: hidden; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.4); }
.ma-sheet-dlg[open] { display: flex; animation: ma-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ma-sheet-dlg::backdrop { background: rgba(15, 10, 8, 0.5); }
@keyframes ma-up { from { transform: translateY(40px); opacity: 0.4; } }
/* flex-basis auto, not 0: the sheet has only a max-height, and iPhone Safari
   collapses a 0-based scroller in it to nothing — the dish card opened as a
   bare price bar. */
.ma-dlg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px 18px; }
.ma-x { position: absolute; z-index: 5; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #1d1410; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.ma-x .ic { width: 18px; height: 18px; stroke-width: 2.2; }
body.sheet-open { overflow: hidden; }

.ma-dish-dlg .ma-dlg-scroll { padding: 0 0 18px; }
.ma-dish-photo { position: relative; aspect-ratio: 4 / 3; background: var(--soft) center / cover no-repeat; }
.ma-dish-photo.no-photo { aspect-ratio: auto; height: 64px; }
/* A dish with a 3D model (menu-app.js): model-viewer over a soft spotlight,
   the photo as its poster while the model loads. */
.ma-dish-photo.has-3d { background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--surface), var(--soft)); }
.ma-3d { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--accent); }
.ma-3d-poster { position: absolute; inset: 0; background: center / cover no-repeat; }
.ma-3d-hint { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(29, 20, 16, 0.72); color: #fff; font-size: 0.8rem; font-weight: 700; white-space: nowrap; pointer-events: none; animation: ma-3d-hint 0.5s 4s forwards; }
.ma-3d-hint.is-gone { animation: ma-3d-hint 0.3s forwards; }
@keyframes ma-3d-hint { to { opacity: 0; visibility: hidden; } }
.ma-3d-ar { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.94); color: #1d1410; font: 700 0.85rem var(--font); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45); cursor: pointer; }
.ma-3d-ar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ma-3d-chip { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px; border-radius: 99px; background: rgba(29, 20, 16, 0.78); color: #fff; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; }
.ma .ma-3d-chip .ic { width: 14px; height: 14px; stroke-width: 2; }
.ma-dish-tags { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ma-dish-tags span { padding: 4px 10px; border-radius: 99px; background: #1d1410; color: #fff; font-size: 0.78rem; font-weight: 800; }
.ma-like-big { top: auto; bottom: 14px; right: 14px; height: 36px; padding: 0 12px; font-size: 0.9rem; }
.ma-like-big .ic { width: 20px; height: 20px; }
.ma-dish-body { padding: 18px 18px 0; }
.ma-dish-body h2 { font-size: 1.55rem; line-height: 1.15; }
.ma-dish-meta { color: var(--muted); font-size: 0.9rem; margin: 4px 0 10px; }
.ma-dish-desc { color: var(--text); opacity: 0.85; margin: 0 0 14px; white-space: pre-line; }
.ma-dish-desc:empty { display: none; }
.ma-kbju { margin: 0 0 16px; }
.ma-kbju[hidden] { display: none; }
.ma-kbju small { color: var(--muted); font-size: 0.8rem; }
.ma-kbju div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.ma-kbju span { display: grid; color: var(--muted); font-size: 0.78rem; }
.ma-kbju b { color: var(--text); font-size: 1.05rem; }
.ma-opts { margin: 0 0 16px; padding: 0; border: 0; }
.ma-opts[hidden] { display: none; }
.ma-opts legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.ma-opts legend small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.ma-opts > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-opt { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); color: var(--text); font: 600 0.9rem var(--font); cursor: pointer; }
.ma-opt small { color: var(--muted); font-weight: 500; }
.ma-opt[aria-pressed="true"], .ma-opt[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.ma-together { padding: 8px 18px 0; }
.ma-together[hidden] { display: none; }
.ma-together > h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem; margin: 6px 0 12px; }
.ma-dish-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.ma-dish-buy[hidden] { display: none; }
.ma-buy-price { display: grid; line-height: 1.1; }
.ma-buy-price b { font-size: 1.45rem; font-weight: 800; }
.ma-buy-price s[hidden] { display: none; }
.ma-buy-price s:not([hidden]) + b { color: #d2382d; }
.ma-buy-ctl .btn { min-width: 150px; }
.ma-step { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: var(--soft); }
.ma-step button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.ma-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ma-step b { min-width: 28px; text-align: center; font-size: 1.05rem; }

/* cart */
.ma-cart-dlg h2 { margin-bottom: 14px; }
.ma-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ma-line { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "pic name sum" "pic step step"; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ma-line-pic { grid-area: pic; width: 56px; height: 56px; border-radius: 14px; background: var(--soft) center / cover; }
.ma-line-name { grid-area: name; display: grid; min-width: 0; }
.ma-line-name b { font-size: 0.95rem; }
.ma-line-name small { color: var(--muted); font-size: 0.8rem; }
.ma-line-sum { grid-area: sum; font-weight: 700; }
.ma-line .ma-step { grid-area: step; justify-self: start; padding: 2px; }
.ma-line .ma-step button { width: 32px; height: 32px; }
.ma-line-qty { display: none; }
.ma-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 8px; font-size: 1.1rem; }
.ma-sum b { font-size: 1.4rem; }
.ma-back { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); font-size: 0.9rem; }
.ma-back[hidden] { display: none; }
.ma-back .ic { color: var(--accent); margin-top: 1px; }
.ma-back a { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; white-space: nowrap; }
.ma-back a .ic { width: 15px; height: 15px; }
.ma-hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.ma-cart-actions { display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.ma-cart-actions .btn-lg { flex: 1; }
.ma-cart-dlg .cart-waiter-only { display: none; }
.ma-cart-dlg.is-waiter .cart-waiter-only { display: revert; }
.ma-cart-dlg.is-waiter .cart-edit-only { display: none; }
.ma-cart-dlg.is-waiter .ma-line { grid-template-columns: auto 1fr auto; grid-template-areas: "qty name sum"; font-size: 1.15rem; }
.ma-cart-dlg.is-waiter .ma-line-pic, .ma-cart-dlg.is-waiter .ma-step { display: none; }
.ma-cart-dlg.is-waiter .ma-line-qty { display: block; grid-area: qty; font-weight: 800; }
.ma-cart-dlg.is-waiter .ma-line-name b { font-size: 1.1rem; }

/* Room service (room_service.enabled): the tile on the home view and the
   checkout inside the cart; the form brings its own buttons. */
.ma-room { display: grid; margin: 0 0 12px; }
.ma-room .mn-action-room .mn-action-text b { display: block; }
.ma-cart-dlg:not(.is-room) .cart-room-only { display: none; }
.ma-cart-dlg.is-room .ma-dlg-scroll > .cart-edit-only:not(.ma-back), .ma-cart-dlg.is-room .ma-cart-actions { display: none; }
.ma-cart-dlg.is-room .ma-lines { max-height: 26dvh; overflow: auto; }
.ma-cart-dlg .rs-hall { margin-top: 12px; text-align: center; }

/* about */
.ma-about-dlg .ma-dlg-scroll { text-align: center; padding-top: 28px; }
.ma-about-logo { display: block; margin: 0 auto 10px; border-radius: 18px; background: var(--accent); }
.ma-facts { display: grid; gap: 2px; margin: 12px 0 18px; text-align: left; }
.ma-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.ma-facts dt { color: var(--muted); }
.ma-facts dd { margin: 0; font-weight: 600; text-align: right; }
.ma-about-dlg .btn { width: 100%; justify-content: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .ma-sheet-dlg[open], .ma-like.pop .ic, .ma-bar-cart.bump svg { animation: none; }
}
/* A dark menu: a cart line without a photo shows the venue's mark (a photo
   comes inline and covers it). */
.ma-dark .ma-line-pic:not([style]) { background-image: url('../pass-assets/logo@2x.png'); background-size: 26px; background-repeat: no-repeat; background-position: center; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--copper) 35%, transparent); }
/* The wheel's prize in the cart (menu-wheel.js): a gift where the photo is. */
.ma-dark .ma-gift-pic, .ma-gift-pic { background-image: none; }
.ma-gift-pic { display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--accent) 22%, var(--soft)); }
.ma-gift .ma-line-name b { color: var(--accent); }
.ma-dark .ma-gift .ma-line-name b { color: var(--copper); }
.ma-gift.is-short { opacity: 0.55; }
.ma-gift .ma-step { visibility: hidden; }

/* menu.theme.pattern: gold — the app menu dressed in gold leaf (Tangiers):
   the card banner, the active tab and language, the cart buttons and the
   hit badge become a gold gradient with dark text, the «get the card» pill
   turns black with gold, the tiles and section titles get gold hairlines,
   prices are light gold. The gradient is built from highlight (--copper)
   and accent like the list menu's .mn-gold. */
.ma-gold { --gold-hi: color-mix(in srgb, var(--copper) 45%, #fff6dc); --gold-lo: color-mix(in srgb, var(--copper) 55%, var(--accent)); --gold: linear-gradient(135deg, var(--gold-hi), var(--copper) 45%, var(--gold-lo) 80%, var(--copper)); --gold-ink: #1c1408; }
.ma-gold .ma-card { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 32px -20px #000; }
.ma-gold .ma-card::before { background: radial-gradient(circle, transparent 58%, rgba(255, 255, 255, 0.32) 59%, transparent 61%, transparent 70%, rgba(255, 255, 255, 0.2) 71%, transparent 73%); }
.ma-gold .ma-card-text small { opacity: 0.75; }
.ma-gold .ma-card-go { background: var(--ink); color: var(--copper); }
.ma-gold .ma-card-pass { box-shadow: 0 0 0 1px color-mix(in srgb, var(--copper) 55%, transparent), 0 8px 18px -8px rgba(0, 0, 0, 0.6); }
.ma-gold .ma-langs { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--copper) 40%, transparent); }
.ma-gold .ma-langs a[aria-current], .ma-gold .ma-tabs a.on { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.ma-gold .ma-tile, .ma-gold .ma-tabs a:not(.on) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--copper) 24%, transparent); }
.ma-gold .ma-sec h2 { display: flex; align-items: center; gap: 14px; }
.ma-gold .ma-sec h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--copper), transparent); opacity: 0.7; }
.ma-gold .ma-add.has-n, .ma-gold .ma-bar-count, .ma-gold .ma-badge { background: var(--gold); color: var(--gold-ink); }
.ma-gold .ma-bar button[aria-current] { color: var(--copper); }
.ma-gold .ma-buy-ctl .btn { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 24px -16px #000; }
.ma-gold .ma-dish-price, .ma-gold .ma-buy-price b { color: var(--copper); }
