:root {
  --bg: #0c0a08;
  --bg-2: #15120f;
  --bg-3: #201b16;
  --line: rgba(255, 232, 200, 0.1);
  --line-2: rgba(255, 232, 200, 0.18);
  --text: #f5efe6;
  --muted: #b3a697;
  --faint: #7d7266;
  --gold: #eeb04d;
  --flame: #ef7c2c;
  --flame-2: #e0521f;
  --veg: #8cbc5c;
  --danger: #ff8a70;
  --radius: 16px;
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero: photo slideshow + welcome ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh; padding: 76px 20px 84px; text-align: center; background: var(--bg);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.on { opacity: 1; animation: kenburns 8s ease-out forwards; }
.hero-slide.out { transform: scale(1.16); } /* keep the zoom while fading out */
.hero-slide:nth-child(odd).on { transform-origin: 30% 40%; }
.hero-slide:nth-child(even).on { transform-origin: 70% 60%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 55% at 50% 48%, rgba(12, 10, 8, .55), rgba(12, 10, 8, .25) 70%, transparent),
    linear-gradient(180deg, rgba(12, 10, 8, .7) 0%, rgba(12, 10, 8, .35) 30%, rgba(12, 10, 8, .45) 65%, var(--bg) 100%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 960px; margin: 0 auto; }
.emblem {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  border: 1px solid rgba(238, 176, 77, .55); background: radial-gradient(circle, rgba(58, 36, 20, .75), rgba(12, 10, 8, .55));
  box-shadow: 0 0 0 6px rgba(238, 176, 77, .07), 0 0 40px rgba(239, 124, 44, .35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.emblem img { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(239, 124, 44, .6)); }
.emblem.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards, glow 3.5s ease-in-out 1.2s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(238, 176, 77, .04), 0 0 60px rgba(239, 124, 44, .55); } }
.hero-kicker { margin: 14px 0 0; font: 600 11.5px/1.4 'DM Sans', sans-serif; letter-spacing: .42em; text-transform: uppercase; color: #ead7b3; }
.hero-rail {
  position: absolute; left: 22px; bottom: 90px; z-index: 1; display: none;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 600 10px/1 'DM Sans', sans-serif; letter-spacing: .4em; text-transform: uppercase; color: rgba(245, 239, 230, .45);
}
.hero-rail::after { content: ''; display: inline-block; width: 1px; height: 60px; margin-top: 16px; background: rgba(245, 239, 230, .3); }
@media (min-width: 900px) { .hero-rail { display: block; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 600 9.5px/1 'DM Sans', sans-serif; letter-spacing: .38em; text-transform: uppercase; color: rgba(245, 239, 230, .55);
}
.scroll-cue i { position: relative; width: 1px; height: 34px; background: rgba(245, 239, 230, .22); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--gold); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 34px; } }
.hero-caption {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 7px 12px 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 236, 210, .25);
  background: rgba(12, 10, 8, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #f3e8d8; font-size: 13px; font-weight: 500; white-space: nowrap;
}
#heroCapText { overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.hero-dots { display: inline-flex; gap: 4px; }
.hero-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .3s, width .3s; }
.hero-dots i.on { width: 14px; border-radius: 3px; background: var(--gold); }
.hero-mark { width: 58px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 6px 22px rgba(239, 124, 44, 0.55)); }
.hero-welcome { margin: 0 0 6px; font: 600 11px/1.2 'DM Sans', sans-serif; letter-spacing: .34em; text-transform: uppercase; color: #d9c4a0; }
.brand {
  margin: 0;
  font: 500 clamp(60px, 18vw, 124px)/.95 'Cormorant Garamond', var(--serif);
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #d5a567 0%, #f6e2b3 25%, #d9aa6a 50%, #f1d49c 75%, #d5a567 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.brand.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards, shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.tagline { margin: 12px auto 0; max-width: 420px; font: italic 400 20px/1.35 'Cormorant Garamond', var(--serif); color: #eadfcd; }
.room-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding: 7px 14px;
  border: 1px solid rgba(255, 236, 210, .25); border-radius: 999px;
  font-size: 13.5px; letter-spacing: 0.02em; color: #eadfcf;
  background: rgba(12, 10, 8, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.room-pill b { color: var(--gold); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.pill-gold, .pill-outline {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font: 700 11.5px/1 'DM Sans', sans-serif; letter-spacing: .22em; text-transform: uppercase;
}
.pill-gold { border: 0; color: #1c1308; background: linear-gradient(135deg, #f0cf8b, #c9973f); box-shadow: 0 10px 30px rgba(201, 151, 63, .35); }
.pill-gold svg { width: 16px; height: 16px; }
.pill-gold::after { /* a slow shine sweeping across the gold button */
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  animation: shine 3.8s ease-in-out 2s infinite;
}
@keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
.pill-outline { border: 1px solid rgba(245, 239, 230, .45); color: #f3e8d8; background: rgba(12, 10, 8, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .ask-hero { margin-top: 18px; }
.rise { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* dishes and sections glide in as the guest scrolls */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* photos drift as the guest scrolls (values set by guest.js) */
.hero-slides { transform: translate3d(0, var(--hero-shift, 0px), 0); will-change: transform; }
.hero-inner { transform: translate3d(0, var(--hero-lift, 0px), 0); opacity: var(--hero-fade, 1); }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-slide { transition: none; }
}

/* ---------- banners ---------- */

.notice {
  margin: 16px 0 0; padding: 12px 14px;
  border: 1px solid rgba(255, 138, 112, 0.35); border-radius: 12px;
  background: rgba(255, 138, 112, 0.08); color: #ffd8cd; font-size: 14.5px;
}
.active-order {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 0; padding: 12px 14px;
  border: 1px solid rgba(238, 176, 77, 0.35); border-radius: 12px;
  background: rgba(238, 176, 77, 0.07); color: var(--text); text-decoration: none; font-size: 14.5px;
}
.active-order .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(238, 176, 77, 0.18); flex: none; animation: pulse 1.8s ease-in-out infinite; }
.active-order .go { margin-left: auto; color: var(--gold); font-weight: 600; white-space: nowrap; }
.active-order .dot.off { background: var(--faint); box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(238, 176, 77, 0); } }

/* ---------- category chips ---------- */

.cats {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px max(16px, calc((100vw - 640px) / 2 + 16px));
  background: rgba(12, 10, 8, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; font-weight: 500; color: #d9cdbd; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.on { background: var(--text); color: #16110d; border-color: var(--text); }

/* ---------- sections ---------- */

.loading, .empty { padding: 48px 0; text-align: center; color: var(--muted); }

.section { padding-top: 26px; }
.banner {
  position: relative; height: 210px; margin: 0 -16px 4px;
  overflow: hidden; background: var(--bg-2);
}
@media (min-width: 672px) { .banner { margin: 0 0 4px; border-radius: 18px; height: 250px; } }
.banner img {
  position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
.banner::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.92) 8%, rgba(12, 10, 8, 0.55) 45%, rgba(12, 10, 8, 0.05) 85%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.banner h2, .section > h2 {
  position: relative; z-index: 1; margin: 0;
  font: 400 27px/1.12 var(--serif); letter-spacing: 0.005em;
}
.banner h2 { position: absolute; left: 16px; right: 40%; bottom: 18px; }
.banner h2::before, .section > h2::before {
  content: ''; display: block; width: 34px; height: 2px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--flame), var(--gold)); border-radius: 2px;
}
.section-note { margin: 6px 0 4px; font-size: 14px; color: var(--muted); }
.section-hours { display: inline-block; margin: 8px 0 2px; font-size: 13px; color: var(--gold); }

.items { list-style: none; margin: 6px 0 0; padding: 0; }
.item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px dashed var(--line-2);
}
.item:last-child { border-bottom: 0; }
.item-main { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; }
.item-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16.5px; font-weight: 500; }
.item-desc { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.item-extra { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); }
.item-price { display: block; margin-top: 6px; color: var(--gold); font-weight: 500; font-variant-numeric: tabular-nums; }
.item-thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--bg-2); }
.item.off .item-name, .item.off .item-price { opacity: 0.45; }
.veg {
  display: inline-grid; place-items: center; width: 19px; height: 19px;
  border: 1.5px solid var(--veg); border-radius: 50%;
  color: var(--veg); font: 700 10.5px/1 var(--sans);
}
.soldout { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--danger); }
.add {
  position: relative; flex: none; align-self: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(238, 176, 77, 0.55); background: rgba(238, 176, 77, 0.08);
  color: var(--gold); font-size: 22px; line-height: 1;
  display: grid; place-items: center;
}
.add:disabled { opacity: .3; cursor: not-allowed; }
.add .badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--flame); color: #fff; font: 700 11.5px/20px var(--sans); text-align: center;
}

.foot { padding: 48px 16px 140px; display: grid; place-items: center; opacity: .8; }
.foot img { width: 150px; height: auto; }

/* ---------- cart bar ---------- */

.cart-bar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-b));
  width: min(608px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #f39a34, var(--flame-2)); color: #fff;
  font-weight: 600; font-size: 16px;
  box-shadow: 0 12px 34px rgba(224, 82, 31, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: rgba(0, 0, 0, 0.22); font-size: 14px; line-height: 26px; }
.cart-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.cart-bar.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.035); } }

/* ---------- sheets ---------- */

dialog.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0;
  background: var(--bg-2); color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: up .26s cubic-bezier(.2, .8, .2, 1); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border-radius: 22px; max-height: 86vh; }
}
/* flex-basis auto: Safari (iPhone) collapses a "flex: 1" (basis 0) area to nothing when the sheet has no fixed height */
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.sheet-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet-body { padding: 20px 20px 8px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.sheet-head h2, .sheet-body h2 { margin: 0; font: 400 25px/1.15 var(--serif); flex: 1; }
.x {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--bg-3); color: var(--text); font-size: 20px; line-height: 1;
}
.sheet-head .x { margin-left: auto; }
.sheet-img + .x, .x.float { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .55); }
.sheet-desc { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.sheet-price { margin: 10px 0 0; color: var(--gold); font-size: 18px; font-weight: 500; }

.group { margin: 22px 0 0; border: 0; padding: 0; }
.group legend { display: flex; width: 100%; align-items: baseline; gap: 8px; padding: 0; font-weight: 600; font-size: 15.5px; }
.group legend small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.group legend small.req { color: var(--gold); }
.group.err legend small { color: var(--danger); }
.group.err .opts { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14.5px; color: #e4d9c9; cursor: pointer;
  transition: all .12s;
}
.opt span em { font-style: normal; color: var(--muted); }
.opt input:checked + span { background: rgba(238, 176, 77, 0.14); border-color: var(--gold); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { display: block; margin: 18px 0 0; }
.field > span { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14.5px; }
.field > span small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg);
  font-size: 16px; outline: none;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field.err input { border-color: var(--danger); }

.sheet-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; color: var(--gold); }
.stepper button:disabled { color: var(--faint); }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm button { width: 32px; height: 32px; font-size: 17px; }
.primary {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 50px; padding: 12px 18px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #f39a34, var(--flame-2)); color: #fff;
  font-weight: 600; font-size: 16px;
}
.primary:disabled { opacity: .45; cursor: not-allowed; }
.primary .sp { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ghost {
  padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: none; font-weight: 600; text-decoration: none; text-align: center; display: inline-block;
}

/* cart */
.lines { list-style: none; margin: 14px 0 0; padding: 0; }
.line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-main { flex: 1; min-width: 0; }
.line-name { font-weight: 500; }
.line-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-variant-numeric: tabular-nums; color: var(--gold); }
.room-box {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 14px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
}
.room-box b { color: var(--gold); font-size: 18px; font-weight: 600; }
.totals { margin: 18px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 18px; }
.fine { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.form-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 138, 112, .1); color: #ffd1c5; font-size: 14px; }

/* ---------- tracker ---------- */

.tracker { min-height: 100vh; padding: 28px 16px 60px; max-width: 640px; margin: 0 auto; }
.tracker .hero-mark { width: 48px; }
.t-head { text-align: center; }
.t-head h1 { margin: 6px 0 0; font: 400 30px/1.15 var(--serif); }
.t-head p { margin: 8px 0 0; color: var(--muted); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.steps li { position: relative; display: flex; gap: 14px; padding: 0 0 24px; color: var(--faint); }
.steps li::before {
  content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2);
}
.steps li:last-child::before { display: none; }
.steps .ic {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font-size: 13px;
}
.steps li.done { color: var(--text); }
.steps li.done .ic { border-color: var(--gold); background: var(--gold); color: #1a130b; }
.steps li.done::before { background: var(--gold); }
.steps li.now { color: var(--text); }
.steps li.now .ic { border-color: var(--flame); box-shadow: 0 0 0 5px rgba(239, 124, 44, .18); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 10px rgba(239, 124, 44, 0); } }
.steps b { display: block; font-weight: 600; }
.steps small { color: var(--muted); }
.card { margin: 8px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.card h3 { margin: 0 0 6px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cancelled { margin: 24px 0 0; padding: 14px; border-radius: 12px; background: rgba(255, 138, 112, .1); color: #ffd1c5; text-align: center; }
.t-actions { display: flex; gap: 10px; margin-top: 20px; }
.t-actions > * { flex: 1; }

/* ---------- toast (a popover, so it shows above open sheets) ---------- */

.toast {
  position: fixed; z-index: 60; inset: auto auto calc(86px + var(--safe-b)) 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); margin: 0; border: 0; overflow: visible;
  padding: 11px 16px; border-radius: 12px; background: #f5efe6; color: #16110d;
  font-weight: 500; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
body.locked .toast { inset: calc(14px + env(safe-area-inset-top, 0px)) auto auto 50%; } /* a sheet is open: keep clear of its buttons */

/* ---------- AI assistant ---------- */

.spark { color: var(--gold); }
.ask-hero {
  display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  margin: 12px auto 0; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(238, 176, 77, .45);
  background: linear-gradient(135deg, rgba(243, 154, 52, .14), rgba(224, 82, 31, .08));
  color: #f0e4d2; font-size: 14px;
}
.ask-hero b { color: var(--gold); font-weight: 600; }
.fabs {
  position: fixed; z-index: 29; left: max(16px, calc((100vw - 640px) / 2 + 16px));
  bottom: calc(16px + var(--safe-b)); display: flex; align-items: center; gap: 10px;
}
body.has-cart .fabs { bottom: calc(84px + var(--safe-b)); }
.fabs { transition: opacity .3s, transform .3s; }
body:not(.past-hero) .fabs { opacity: 0; transform: translateY(16px); pointer-events: none; }
.voice-fab {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #f39a34, var(--flame-2)); color: #fff;
  box-shadow: 0 10px 28px rgba(224, 82, 31, .45);
}
.voice-fab svg { width: 24px; height: 24px; }
.ai-fab {
  display: inline-flex; align-items: center; gap: 7px; padding: 12px 17px; border-radius: 999px;
  border: 1px solid rgba(238, 176, 77, .5); background: rgba(21, 18, 15, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f5efe6; font-weight: 600; font-size: 15px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}


dialog.ai-sheet { height: 88vh; height: 88dvh; }
.ai-head { align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ai-avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a2414, #120d09); border: 1px solid rgba(238, 176, 77, .35);
}
.ai-avatar img { width: 19px; height: auto; }
.ai-title { flex: 1; min-width: 0; }
.ai-title h2 { margin: 0; font: 400 21px/1.1 var(--serif); }
.ai-title p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.ai-log { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, #f39a34, var(--flame-2)); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--bg-3); border-bottom-left-radius: 6px; }
.msg.err { background: rgba(255, 138, 112, .1); color: #ffd1c5; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-items { display: flex; flex-direction: column; gap: 6px; margin: 10px -4px 0; }
.ai-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ai-item.off { opacity: .55; }
.ai-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; text-align: left; }
.ai-item-main .n { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14.5px; }
.ai-item-main .p { color: var(--gold); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ai-item .add { width: 34px; height: 34px; font-size: 19px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #e4d9c9; font-size: 14px; }
.ai-foot { padding: 10px 16px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg-2); }
.ai-cart {
  display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; padding: 10px 14px;
  border: 0; border-radius: 12px; background: linear-gradient(135deg, #f39a34, var(--flame-2));
  color: #fff; font-weight: 600; font-size: 14.5px;
}
.ai-form { display: flex; gap: 8px; }
.ai-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); font-size: 16px; outline: none;
}
.ai-form input:focus { border-color: var(--gold); }
.ai-send {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #f39a34, var(--flame-2)); color: #fff; font-size: 20px; font-weight: 700;
}
.ai-send:disabled { opacity: .4; cursor: not-allowed; }
.ai-fine { margin: 8px 0 0; font-size: 11.5px; color: var(--faint); text-align: center; }

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

/* ---------- voice ordering ---------- */

dialog.voice-sheet { height: 90vh; height: 90dvh; }
.voice-lang {
  max-width: 110px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font-size: 13px;
}
.voice-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 20px 10px; text-align: center; }
.voice-reply { min-height: 1.4em; margin: 0; font: 400 21px/1.35 var(--serif); color: var(--text); max-width: 480px; }
.voice-status { margin: 0; font-size: 14px; color: var(--muted); }
.voice-heard { min-height: 1.3em; margin: 0; font-size: 15.5px; color: var(--gold); font-style: italic; max-width: 480px; }
.mic {
  position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #f39a34, var(--flame-2)); color: #fff;
  box-shadow: 0 14px 36px rgba(224, 82, 31, .4);
}
.mic svg { width: 40px; height: 40px; }
.voice-stage[data-state="listening"] .mic { animation: rings 1.4s ease-out infinite; }
@keyframes rings {
  0% { box-shadow: 0 0 0 0 rgba(239, 124, 44, .55), 0 0 0 0 rgba(239, 124, 44, .35); }
  100% { box-shadow: 0 0 0 22px rgba(239, 124, 44, 0), 0 0 0 44px rgba(239, 124, 44, 0); }
}
.voice-stage[data-state="thinking"] .mic::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 3px solid rgba(238, 176, 77, .25); border-top-color: var(--gold); animation: spin .9s linear infinite;
}
.voice-stage[data-state="speaking"] .mic { animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); } }
.voice-order { margin: 6px 16px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.vo-empty { margin: 0; text-align: center; color: var(--faint); font-size: 14px; }
.vo-head { display: flex; align-items: center; justify-content: space-between; }
.vo-head b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vo-reset { border: 0; background: none; color: var(--gold); font-size: 13.5px; font-weight: 600; padding: 4px 0; }
.voice-order .lines { margin: 4px 0 0; }
.voice-order .totals { margin-top: 10px; }
.voice-confirm { width: 100%; margin-bottom: 10px; }
.voice-sheet .ai-title h2 { font-size: 19px; }
.voice-sheet.has-order .voice-stage { gap: 10px; padding-top: 14px; }
.voice-sheet.has-order .mic { width: 70px; height: 70px; }
.voice-sheet.has-order .mic svg { width: 30px; height: 30px; }
.voice-sheet.has-order .voice-reply { font-size: 18px; }

/* microphone welcome: asked once, when the page opens */
.mic-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 22px calc(22px + var(--safe-b)); text-align: center; }
.mic-body h2 { margin: 6px 0 0; font: 400 26px/1.15 var(--serif); }
.mic-body p { margin: 0; max-width: 34ch; color: var(--muted); line-height: 1.5; }
.mic-body p b { color: var(--text); }
.mic-badge {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  color: #1c1308; background: linear-gradient(135deg, #f0cf8b, #c9973f);
  box-shadow: 0 10px 30px rgba(201, 151, 63, .35); animation: micPulse 2.2s ease-in-out infinite;
}
.mic-badge svg { width: 34px; height: 34px; }
.mic-body .primary { flex: none; width: 100%; margin-top: 8px; }
.mic-body .primary svg { width: 18px; height: 18px; }
.mic-later { width: 100%; }
.mic-err { color: var(--danger) !important; font-size: 14px; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 14px rgba(201, 151, 63, .1), 0 10px 30px rgba(201, 151, 63, .35); } }
@media (prefers-reduced-motion: reduce) { .mic-badge { animation: none; } }

/* my orders: chip in the section bar, list sheet */
.orders-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(238, 176, 77, .45); background: rgba(238, 176, 77, .1);
  color: var(--gold); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.orders-chip[hidden] { display: none; }
.orders-chip svg { width: 15px; height: 15px; }
.orders-chip b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: #1c1308; font-size: 12px; text-align: center; }
.orders-chip.live { box-shadow: 0 0 0 0 rgba(238, 176, 77, .5); animation: chipGlow 2s ease-in-out infinite; }
@keyframes chipGlow { 50% { box-shadow: 0 0 0 5px rgba(238, 176, 77, 0); } }
.mo-h { margin: 6px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.my-orders { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.my-order {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); text-decoration: none;
}
.mo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mo-status { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(238, 176, 77, .14); color: var(--gold); }
.st-delivered .mo-status { background: rgba(140, 188, 92, .15); color: var(--veg); }
.st-cancelled .mo-status { background: rgba(255, 138, 112, .12); color: var(--danger); }
.st-delivered, .st-cancelled { opacity: .82; }
.mo-items { color: #d9cdbd; font-size: 14.5px; line-height: 1.4; }
.mo-bar { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.mo-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--flame)); transition: width .5s; }
.mo-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .orders-chip.live { animation: none; } }

/* the AI assistant (waiter.js): a small robot icon */
.waiter-bot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.waiter-stage {
  width: 104px; aspect-ratio: 1; margin: 4px auto 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); transition: width .35s ease, filter .3s;
}
.waiter-stage[data-state="listening"] { filter: drop-shadow(0 0 14px rgba(238, 176, 77, .55)); }
.waiter-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 18px; }
.voice-sheet.has-order .waiter-stage { width: 70px; }
.voice-stage .mic { width: 64px; height: 64px; }
.voice-stage .mic svg { width: 28px; height: 28px; }
.voice-sheet.has-order .voice-stage .mic { width: 56px; height: 56px; }
.voice-sheet.has-order .voice-stage .mic svg { width: 24px; height: 24px; }
.mic-waiter { width: 92px; aspect-ratio: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.voice-fab { width: 60px; height: 60px; padding: 3px; }
.fab-waiter { display: block; width: 100%; height: 100%; padding: 6px 6px 7px; border-radius: 50%; background: #241c15; }
.pill-waiter { display: block; flex: none; width: 30px; height: 30px; margin: -6px 2px -6px -8px; padding: 3px; border-radius: 50%; background: #241c15; box-shadow: 0 0 0 2px rgba(28, 19, 8, .25); }
