:root {
  --red: #7A1216;
  --red-deep: #4E0B0E;
  --gold: #C6A15B;
  --cream: #F7F1E6;
  --paper: #FFFBF4;
  --ink: #2A1810;
  --muted: #6B574C;
  --line: #E6D7C4;
  --good: #2F6B3C;
  --tab: 64px;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #1a0c0c; color: var(--ink); font-family: "Source Sans 3", "Segoe UI", sans-serif; }
body { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--cream); }
#app { min-height: 100dvh; padding-bottom: calc(var(--tab) + 42px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.demo-banner { background: #4E0B0E; color: #F4E3B2; font-size: 11px; letter-spacing: .02em; text-align: center; padding: 6px 12px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px; }
.brand { display: flex; gap: 10px; align-items: center; }
.dragon-mark { width: 40px; height: 40px; flex: none; }
.wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1; color: #F8E7B8; }
.submark { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #E8C98A; margin-top: 2px; }
.icon-btn { background: transparent; border: 0; color: #F8E7B8; position: relative; width: 42px; height: 42px; border-radius: 50%; }
.icon-btn:active { background: rgba(255,255,255,.1); }
.badge { position: absolute; top: 2px; right: 2px; background: #F8E7B8; color: var(--red-deep); font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.view { display: none; }
.view.active { display: block; }

.hero { padding: 14px 14px 0; }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 0 #fff inset; }
.stars { color: var(--red); font-weight: 700; font-size: 15px; }
.stars span { color: var(--muted); font-weight: 500; font-size: 13px; }
.hero-line { margin: 8px 0 12px; color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.hero-actions, .info-card .pill { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 0; cursor: pointer; }
.pill.call { background: var(--red); color: #fff; }
.pill.map { background: var(--ink); color: #fff; }
.pill.ghost { background: #f0e6d6; color: var(--ink); }

.search-wrap { padding: 12px 14px 8px; }
#search { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; position: sticky; top: 96px; z-index: 15; background: linear-gradient(var(--cream) 80%, transparent); }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.cat.on { background: var(--red); color: #fff; border-color: var(--red); }

.price-note { margin: 0 14px 10px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }

.menu-list { padding: 0 10px 20px; }
.cat-head { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; color: var(--red); padding: 14px 6px 4px; }
.cat-sub { font-size: 12.5px; color: var(--muted); padding: 0 6px 8px; }
.item { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0 0 8px; }
.item-main { flex: 1; min-width: 0; }
.item-num { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.item-name { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.spicy { color: var(--red); font-size: 12px; font-weight: 700; }
.item-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.item-price { font-weight: 700; font-size: 14px; white-space: nowrap; margin-top: 4px; }
.item-price small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.add { flex: none; background: var(--red); color: #fff; border: 0; border-radius: 999px; width: 36px; height: 36px; font-size: 22px; line-height: 1; margin-top: 2px; cursor: pointer; }
.add:active { transform: scale(.96); }

.page-pad { padding: 16px 16px 24px; }
.page-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; color: var(--red-deep); line-height: 1.1; margin: 6px 0 8px; }
.lede { font-size: 15px; line-height: 1.45; color: var(--ink); margin-bottom: 16px; }
.sample-tag { display: inline-block; background: #f3d9a0; color: #5a3b00; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.offer.rewards { border-color: var(--gold); }
.offer-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.offer h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; margin: 4px 0 8px; }
.offer p { font-size: 14.5px; line-height: 1.45; }
.offer-foot { margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 4px; }
.stamps span { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.stamps .filled { background: var(--red); border-style: solid; border-color: var(--red); color: #F8E7B8; }
.stamps .free { border-color: var(--gold); color: var(--gold); }

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.info-card h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.info-card p, .info-card li { font-size: 15px; line-height: 1.45; }
.phone { color: var(--red); font-weight: 700; font-size: 20px; text-decoration: none; }
.muted { color: var(--muted) !important; font-size: 13px !important; margin-top: 8px; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours li:last-child { border-bottom: 0; }
.info-card .pill { margin-top: 10px; }

.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; width: min(480px, 100%); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 25; }
.tab { border: 0; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.tab.on { color: var(--red); }

.site-footer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(480px, 100%); background: #2A1810; color: #F4E3B2; font-size: 10.5px; text-align: center; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }

.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,8,8,.45); }
.sheet-card { position: relative; width: min(480px, 100%); max-height: 92dvh; overflow: auto; background: var(--paper); border-radius: 20px 20px 0 0; padding: 8px 16px 24px; z-index: 1; }
.sheet-card.tall { max-height: 94dvh; }
.sheet-handle { width: 42px; height: 4px; background: #d9cbb8; border-radius: 2px; margin: 6px auto 12px; }

.opt-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--red); color: #fff; border-color: var(--red); }
.qty { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; }
.primary { width: 100%; background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 16px; cursor: pointer; }
.primary:disabled { opacity: .45; }
.secondary { width: 100%; background: #f0e6d6; color: var(--ink); border: 0; border-radius: 12px; padding: 12px; font-weight: 700; margin-top: 8px; cursor: pointer; }

.cart-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { font-size: 15px; }
.cart-item p { font-size: 13px; color: var(--muted); }
.remove { border: 0; background: none; color: var(--red); font-weight: 600; font-size: 13px; cursor: pointer; }
.totals { margin: 12px 0; font-size: 15px; }
.totals .row { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .due { font-weight: 700; font-size: 18px; }
.field { margin: 10px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 16px; background: #fff; }
.warn { background: #fff3d6; border: 1px solid #e6c980; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.confirm-check { width: 56px; height: 56px; border-radius: 50%; background: var(--good); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 8px auto 12px; }
.confirm-body { text-align: center; }
.confirm-body h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; }
.confirm-body p { margin: 8px 0; font-size: 15px; }
.order-no { font-weight: 700; color: var(--red); }
