/* ============================================================
   Wok Wok — order ahead
   Palette and type inherited from the Wok Wok site design system
   (site.css + _ds/organic-…/styles.css): Caprasimo / Figtree /
   Ma Shan Zheng, on the house yellow, red and green.
   ============================================================ */

:root {
  --bg: #fde2ab;
  --surface: #fdeecb;
  --sunk: #f7d99b;
  --text: #232021;
  --muted: #5a5250;
  --red: #b93339;
  --red-bright: #c83f46;
  --green: #405c38;
  --green-dark: #324a2c;
  --on-green: #fdeecb;
  --focus: #125e63;
  --line: #e9c98f;
  --line-2: #d9b271;
  --rule: rgba(185, 51, 57, .38);

  --r: 18px;
  --r-lg: 28px;
  --sh-1: 0 1px 2px rgba(35, 32, 33, .06), 0 8px 22px rgba(35, 32, 33, .06);
  --sh-2: 0 18px 60px rgba(35, 32, 33, .3);
  --head-h: 62px;

  --display: "Caprasimo", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zh: "Ma Shan Zheng", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #211c18;
    --surface: #2d2520;
    --sunk: #382e27;
    --text: #fff0d4;
    --muted: #d9c6aa;
    --red: #ff8b82;
    --red-bright: #ffaaa2;
    --green: #9ec48d;
    --green-dark: #b4d7a4;
    --on-green: #1c2418;
    --focus: #ffd37a;
    --line: #3d332b;
    --line-2: #50443a;
    --rule: rgba(255, 139, 130, .35);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
    --sh-2: 0 18px 60px rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #211c18;
  --surface: #2d2520;
  --sunk: #382e27;
  --text: #fff0d4;
  --muted: #d9c6aa;
  --red: #ff8b82;
  --red-bright: #ffaaa2;
  --green: #9ec48d;
  --green-dark: #b4d7a4;
  --on-green: #1c2418;
  --focus: #ffd37a;
  --line: #3d332b;
  --line-2: #50443a;
  --rule: rgba(255, 139, 130, .35);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 18px 60px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.fine { color: var(--muted); font-size: .84rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.zh { font-family: var(--zh); font-weight: 400; }

/* ===== header ===== */
.site-head {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo {
  display: block; height: 42px; width: auto; max-width: 100%;
  border-radius: 5px; transition: transform .15s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); }
@media (max-width: 420px) { .brand-logo { height: 36px; } }
.head-right { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { background: var(--red); color: #fff; }
:root[data-theme="dark"] .lang-switch button.on,
:root:not([data-theme="light"]) .lang-switch button.on { color: #2b1512; }
@media (max-width: 430px) {
  .lang-switch button { padding: 5px 7px; font-size: .74rem; }
  .cart-btn { padding: 9px 14px; }
}

.gloss { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); font-style: italic; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--green); color: var(--on-green); border: 0; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.cart-btn:hover { background: var(--green-dark); }
.cart-btn:active { transform: scale(.97); }
.cart-btn svg { width: 17px; height: 17px; }
.cart-count {
  background: var(--red); color: #fff; border-radius: 999px; min-width: 21px; height: 21px;
  display: grid; place-items: center; font-size: .75rem; padding: 0 6px; font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .cart-count, :root:not([data-theme="light"]) .cart-count { color: #2b1512; }
.cart-btn.bump { animation: bump .32s ease; }
@keyframes bump { 40% { transform: scale(1.09); } }

/* ===== hero ===== */
.hero { padding: 44px 0 44px; border-bottom: 1px solid var(--line); }
.hero-logo {
  display: block; width: min(330px, 74vw); height: auto; margin: 0 0 26px;
  border-radius: 8px; box-shadow: 0 6px 22px rgba(35, 32, 33, .13);
}
:root[data-theme="dark"] .hero-logo,
:root:not([data-theme="light"]) .hero-logo { box-shadow: 0 6px 26px rgba(0, 0, 0, .5); }
.eyebrow {
  margin: 0 0 14px; color: var(--red-bright); font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.eyebrow .zh { letter-spacing: .06em; font-size: 1.25em; text-transform: none; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 4.4rem); line-height: 1; margin-bottom: 16px; }
.hero-blurb { margin: 0; max-width: 50ch; color: var(--muted); font-size: 1.06rem; line-height: 1.6; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; font-size: .89rem; color: var(--muted); }
.hero-meta a { border-bottom: 1px solid var(--line-2); }
.hero-meta a:hover { color: var(--red); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .79rem;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.open { color: var(--green); }
.pill.closed { color: var(--muted); }
.hero-cta { margin-top: 28px; }

/* ===== buttons ===== */
.btn {
  border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: .94rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, transform .12s ease, filter .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary[disabled] { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-quiet { background: transparent; color: var(--muted); padding: 10px; font-weight: 600; }
.btn-quiet:hover { color: var(--red); }
.btn-block { width: 100%; }
.icon-btn { background: transparent; border: 0; color: var(--muted); padding: 8px; border-radius: 10px; cursor: pointer; line-height: 0; }
.icon-btn:hover { background: var(--sunk); color: var(--text); }

/* ===== category rail ===== */
.catnav { position: sticky; top: var(--head-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.catnav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; font-size: .86rem; font-weight: 600; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.catnav a:hover { background: var(--sunk); color: var(--text); }
.catnav a.active { background: var(--red); color: #fff; }
:root[data-theme="dark"] .catnav a.active, :root:not([data-theme="light"]) .catnav a.active { color: #2b1512; }

/* ===== lunch / dinner ===== */
.service-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 12px 18px;
  border: 1.5px dashed var(--rule); border-radius: var(--r); background: var(--surface);
}
.svc-note { font-size: .87rem; color: var(--muted); font-weight: 500; }
.svc-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.svc-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 6px 16px; border-radius: 999px; font-size: .84rem; font-weight: 700;
}
.svc-toggle button.on { background: var(--red); color: #fff; }
:root[data-theme="dark"] .svc-toggle button.on, :root:not([data-theme="light"]) .svc-toggle button.on { color: #2b1512; }

/* ===== rewards ===== */
.rewards { margin-top: 30px; }
.rw-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rw-head h2 { font-size: 1.25rem; }
.rw-note { font-size: .78rem; color: var(--muted); }
.rw-card {
  background: var(--surface); border: 1.5px dashed var(--rule); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.rw-balance { display: flex; align-items: baseline; gap: 8px; }
.rw-balance strong { font-family: var(--display); font-size: 2.4rem; color: var(--red); line-height: 1; }
.rw-balance span { font-size: .85rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.rw-prompt { font-size: 1rem; color: var(--muted); }
.rw-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-form input {
  flex: 1 1 190px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 11px 13px; font-size: .95rem;
}
.rw-form input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.rw-form .btn { flex: none; padding: 11px 20px; }
.rw-err { margin: 0; color: var(--red); font-size: .85rem; font-weight: 600; }
.rw-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rw-tier {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 11px 0; border-top: 1px dashed var(--rule);
}
.rw-tier-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-tier-name { font-size: .93rem; font-weight: 600; }
.rw-tier-pts { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rw-tier.reach .rw-tier-name { color: var(--green); }
.rw-need { font-size: .78rem; color: var(--ink-3, var(--muted)); font-variant-numeric: tabular-nums; flex: none; }
.rw-redeem { padding: 8px 16px; font-size: .85rem; flex: none; }
.rw-fine { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.rw-redeemed { align-items: center; text-align: center; }
.rw-eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-bright); font-weight: 700; }
.rw-code { font-family: var(--display); font-size: 2.6rem; letter-spacing: .16em; color: var(--red); }
.rw-item { margin: 0; font-size: 1rem; font-weight: 600; }

/* ===== order again ===== */
.again { margin-top: 30px; }
.again-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.again-head h2 { font-size: 1.25rem; }
.again-note { font-size: .76rem; color: var(--muted); }
.again-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.again-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  text-align: left; cursor: pointer; padding: 14px 15px;
  background: var(--surface); border: 1.5px dashed var(--rule); border-radius: var(--r);
  transition: border-color .15s ease, transform .12s ease;
}
.again-card:hover { border-style: solid; border-color: var(--red); transform: translateY(-1px); }
.again-card:active { transform: translateY(0); }
.again-when { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-bright); font-weight: 700; }
.again-what {
  font-size: .89rem; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.again-cta { margin-top: 3px; font-size: .82rem; font-weight: 700; color: var(--green); }
.again-card:hover .again-cta { color: var(--red); }

/* ===== menu ===== */
.cat { padding: 46px 0 4px; scroll-margin-top: calc(var(--head-h) + 58px); }
.cat-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 1.5px solid var(--red-bright); padding-bottom: 12px; margin-bottom: 8px; }
.cat-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.cat-zh { font-size: 1.25rem; color: var(--muted); }
.cat-note { margin: 0 0 20px; font-size: .87rem; color: var(--muted); }
.cat-head + .items { margin-top: 22px; }
.items { display: grid; gap: 11px; grid-template-columns: repeat(auto-fill, minmax(345px, 1fr)); }

.item {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px; cursor: pointer; box-shadow: var(--sh-1);
  transition: border-color .15s ease, transform .12s ease;
}
.item:hover { border-color: var(--red-bright); transform: translateY(-1px); }
.item:active { transform: translateY(0); }
.item-main { flex: 1; min-width: 0; display: block; }

/* dish photo */
.thumb {
  flex: none; width: 96px; height: 96px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: block;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-empty {
  display: grid; place-items: center; background: var(--bg);
  color: var(--red); font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  border-style: dashed; border-color: var(--rule);
}
@media (max-width: 380px) { .thumb { width: 76px; height: 76px; } }
.item-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.item-name { font-weight: 700; font-size: 1.02rem; }
.code {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--red);
  border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; flex: none;
}
.code.sm { font-size: .68rem; padding: 0 5px; }
.zh-name { display: block; margin: 3px 0 0; font-size: 1rem; color: var(--muted); line-height: 1.3; }
.item p {
  margin: 6px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-foot { display: flex; align-items: baseline; gap: 9px; margin-top: 11px; }
.price { font-weight: 700; font-size: .98rem; color: var(--red); font-variant-numeric: tabular-nums; }
.price.mp { letter-spacing: .06em; }
.price-alt { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { font-size: .7rem; font-weight: 700; line-height: 1.6; flex: none; }
.badge.sig { color: var(--red-bright); font-size: .9rem; }
.badge.veg { color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 0 7px; }
.badge.hot { font-size: .82rem; }
.add, .in-cart { position: absolute; right: 13px; bottom: 13px; }
.add {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--red); border: 1.5px solid var(--rule);
}
.item:hover .add { background: var(--red); color: #fff; border-color: transparent; }
.in-cart {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px;
  display: grid; place-items: center; background: var(--green); color: var(--on-green);
  font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.item-foot { padding-right: 46px; }

/* ===== hours ===== */
.hours-card { margin: 58px 0; background: var(--surface); border: 1.5px dashed var(--rule); border-radius: var(--r-lg); padding: 26px; }
.hours-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.hours-card dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 22px; margin: 0 0 16px; font-size: .9rem; }
.hours-card dt { color: var(--muted); }
.hours-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-card dt.today, .hours-card dd.today { color: var(--red); font-weight: 700; }

.site-foot { border-top: 1px solid var(--line); padding: 30px 0 52px; font-size: .88rem; color: var(--muted); }
.site-foot p { margin: 0 0 6px; }

/* ===== drawer ===== */
.scrim { position: fixed; inset: 0; background: rgba(35, 25, 15, .55); z-index: 50; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 60;
  background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--sh-2);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
}
.drawer.open { transform: none; }
@media (max-width: 560px) {
  .drawer {
    top: auto; height: 92dvh; width: 100%; transform: translateY(100%);
    border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { flex: none; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.foot-note { margin: 0; font-size: .78rem; color: var(--muted); }
.earn-note { color: var(--green); font-weight: 600; }
.earn-note strong { font-variant-numeric: tabular-nums; }

.earn-strip {
  margin: 10px 0 0; padding: 10px 16px; font-size: .85rem; color: var(--muted);
  background: var(--surface); border: 1.5px dashed var(--rule); border-radius: var(--r);
}
.earn-strip strong { color: var(--green); }
.earn-strip a { color: var(--red); font-weight: 600; border-bottom: 1px solid var(--rule); margin-left: 4px; }

.code-earn { font-size: .82rem; color: var(--green); font-weight: 600; margin-top: 2px; }
.code-earn strong { font-variant-numeric: tabular-nums; }

.empty { text-align: center; color: var(--muted); padding: 46px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { margin: 0; }

.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.cart-row { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 13px; border-bottom: 1.5px dashed var(--rule); }
.cart-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-row .cr-main { flex: 1; min-width: 0; }
.cart-row h4 { margin: 0; font-size: .95rem; font-weight: 700; }
.cart-row .cr-opt { margin: 3px 0 0; font-size: .8rem; color: var(--muted); }
.cart-row .cr-price { font-weight: 700; font-size: .92rem; color: var(--red); flex: none; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); margin-top: 9px; }
.qty button { width: 28px; height: 26px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.qty button:hover { background: var(--sunk); color: var(--red); }
.qty span { min-width: 24px; text-align: center; font-size: .87rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.field span em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; font-size: .95rem; font-weight: 400; width: 100%;
}
.field textarea { resize: vertical; min-height: 58px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field select { appearance: none; background-repeat: no-repeat; background-position: right 13px center; background-size: 15px; padding-right: 38px; }
.err { margin: 0; color: var(--red); font-size: .86rem; font-weight: 600; }

.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: .88rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { display: contents; }
.totals .grand dt, .totals .grand dd { font-size: 1.06rem; font-weight: 700; color: var(--text); padding-top: 6px; }

/* ===== confirmation docket ===== */
.confirm { text-align: center; align-items: center; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.confirm h3 { font-size: 1.5rem; }
.confirm-sub { margin: 0; color: var(--muted); font-size: .9rem; max-width: 34ch; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1.5px dashed var(--rule); color: var(--green); display: grid; place-items: center; }
.tick svg { width: 26px; height: 26px; stroke-width: 2.5; }
.code-card {
  width: 100%; background: var(--surface); border: 1.5px dashed var(--rule); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 5px;
}
.code-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-bright); font-weight: 700; }
.code-card strong { font-family: var(--display); font-size: 2.1rem; letter-spacing: .1em; color: var(--red); }
.code-when { font-size: .87rem; color: var(--muted); }
.send-row { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.send-alt { margin: 6px 0 0; font-size: .8rem; color: var(--muted); text-align: left; }

.pay-block {
  width: 100%; display: flex; flex-direction: column; gap: 9px;
  padding: 15px; border: 1.5px dashed var(--rule); border-radius: var(--r); background: var(--surface);
}
.pay-head { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.pay-title { font-size: .95rem; font-weight: 700; }
.pay-title em { font-style: normal; font-weight: 400; color: var(--muted); }
.pay-note { font-size: .79rem; color: var(--muted); }
.pay-code { margin: 2px 0 0; font-size: .79rem; color: var(--muted); text-align: left; line-height: 1.45; }
.pay-code strong { color: var(--red); letter-spacing: .06em; }
.pay-err { margin: 2px 0 0; font-size: .8rem; color: var(--red); text-align: left; font-weight: 600; line-height: 1.45; }

/* returning from Stripe */
.banner {
  background: var(--green); color: var(--on-green);
  padding: 14px 20px; font-size: .92rem; line-height: 1.5; text-align: center;
}
.banner b { letter-spacing: .08em; }

/* ===== item sheet ===== */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; background: rgba(35, 25, 15, .55); animation: fade .2s ease; }
@media (min-width: 561px) { .sheet { place-items: center; } }
.sheet-inner {
  width: min(450px, 100%); max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0; animation: rise .26s cubic-bezier(.32, .72, 0, 1);
}
@media (min-width: 561px) { .sheet-inner { border-radius: var(--r-lg); } }
@keyframes rise { from { transform: translateY(16px); opacity: .6; } }
.sheet-hero { flex: none; background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
@media (min-width: 561px) { .sheet-hero { border-radius: var(--r-lg) var(--r-lg) 0 0; } }
/* The photos are square. `contain` keeps the whole dish visible and centred
   here rather than cropping its top and bottom to fit a wider frame; the
   bands either side are white on white, so they don't read as letterboxing. */
.sheet-hero img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 20px 18px 15px; border-bottom: 1.5px dashed var(--rule); }
.sheet-head h3 { font-size: 1.3rem; }
.sheet-head .zh-name { margin-top: 4px; }
.sheet-head .zh-name:empty { display: none; }
.sheet-desc { margin: 7px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.sheet-desc:empty { display: none; }
.sheet-body { overflow-y: auto; padding: 17px 18px; display: flex; flex-direction: column; gap: 20px; }
.sheet-body:empty { display: none; }
.opt-group > h4 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red-bright); font-weight: 700; }
.opt {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; margin-bottom: 7px;
  border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface);
}
.opt:last-child { margin-bottom: 0; }
.opt:hover { border-color: var(--red-bright); }
.opt input { accent-color: var(--red); width: 17px; height: 17px; flex: none; margin: 0; }
.opt-name { flex: 1; font-size: .93rem; }
.opt-price { font-size: .86rem; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.opt.checked { border-color: var(--red); background: var(--bg); box-shadow: inset 0 0 0 1px var(--red); }
.sheet-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot .qty { margin-top: 0; }
.sheet-foot .btn { flex: 1; }

/* ===== toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; box-shadow: var(--sh-2); animation: toast .25s ease;
  max-width: calc(100% - 40px); text-align: center;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
