:root {
  /* brand tokens */
  --bg: #170d08; --bg2: #1f120b; --card: #2a1810; --card-hi: #34200f;
  --line: rgba(214, 166, 80, .18); --line-soft: rgba(214, 166, 80, .1);
  --gold: #d6a650; --gold2: #f1d08c; --cream: #f6ead7; --ink: #24140b;
  --muted: #b8a38a; --veg: #86c98a; --hot: #ef8a62; --out: #8a7a6c;
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
  /* scale */
  --r-sm: 12px; --r: 18px; --r-lg: 24px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --ease: cubic-bezier(.2, .8, .2, 1); --t-fast: 150ms; --t: 240ms;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--cream); font: 16px/1.5 var(--sans);
  background-image: radial-gradient(1100px 560px at 85% -10%, #3c2314 0%, transparent 60%), radial-gradient(700px 500px at -15% 35%, #2a170d 0%, transparent 60%);
  background-attachment: fixed; min-height: 100vh; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
i { font-style: normal; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.pad { padding: 0 var(--s4) var(--s3); }
#app { max-width: 640px; margin: 0 auto; }
body[data-view="dashboard"] #app, body[data-view="qr"] #app { max-width: 1240px; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; border-radius: 8px; }

/* icons */
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic.flip { transform: rotate(180deg); }
.cloche { color: var(--gold); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); min-height: 44px; }
.brand .cloche { width: 38px; height: 32px; flex: none; }
.brand b { display: block; font: 600 22px/1 var(--serif); color: var(--cream); letter-spacing: -.01em; }
.brand b i { color: var(--gold); }
.brand small { display: block; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.brand.sm .cloche { width: 30px; } .brand.sm b { font-size: 18px; }

/* buttons */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 1px solid var(--line); padding: 0 14px; border-radius: 99px; font-size: 13px; color: var(--gold2); white-space: nowrap; transition: background var(--t-fast); }
.pill:hover { background: rgba(214,166,80,.08); }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink); font-weight: 700; border-radius: 14px; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 20px rgba(214,166,80,.22); white-space: nowrap; transition: transform var(--t-fast) var(--ease), filter var(--t-fast); }
.btn-gold:active { transform: scale(.97); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-gold:disabled { opacity: .6; cursor: progress; }
.btn-gold.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn-gold.wide { width: 100%; margin-top: var(--s2); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; color: var(--gold2); }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(23,13,8,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--cream); flex: none; transition: background var(--t-fast); }
.round:hover { background: rgba(52,32,15,.8); }
.round.sm { width: 40px; height: 40px; }
.round[aria-pressed="true"] { color: var(--gold2); border-color: var(--gold); }

/* image placeholder: shimmer while loading, cloche if it fails */
[data-img] { position: relative; overflow: hidden; background: linear-gradient(100deg, #2a1810 30%, #3a2416 50%, #2a1810 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
[data-img] > img { position: relative; }
[data-img].noimg { animation: none; background: linear-gradient(135deg, #3a2316, #24150d); }
[data-img].noimg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cg fill='none' stroke='%23d6a650' stroke-width='2' stroke-linecap='round' opacity='.6'%3E%3Cpath d='M9 29a15 15 0 0 1 30 0'/%3E%3Cpath d='M5 33h38'/%3E%3Ccircle cx='24' cy='10.5' r='2.4'/%3E%3C/g%3E%3C/svg%3E") center/38% no-repeat; }

/* badges & tags */
.ar-badge { position: absolute; z-index: 1; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 4px 8px 4px 6px; border-radius: 99px; background: rgba(23,13,8,.72); color: var(--gold2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); letter-spacing: .04em; }
.ar-badge .ic { width: 13px; height: 13px; }
.ar-badge.lg { top: auto; bottom: auto; top: 12px; left: auto; right: 12px; font-size: 11.5px; padding: 6px 10px 6px 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.tag .ic { width: 12px; height: 12px; }
.tag.veg { color: var(--veg); border-color: rgba(134,201,138,.4); }
.tag.hot { color: var(--hot); border-color: rgba(239,138,98,.4); }
.tag.out { color: var(--ink); background: var(--out); border-color: var(--out); }
.tag.alg { color: var(--gold2); }

/* ---------- home ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + var(--safe-t)) var(--s4) 0; gap: var(--s3); }
.hero { padding: var(--s6) var(--s4) var(--s4); }
.hero h1 { font-size: clamp(42px, 12vw, 64px); margin: var(--s3) 0; }
.hero h1 em { color: var(--gold); font-style: italic; }
.lede { color: var(--muted); max-width: 44ch; }
.stats { display: flex; gap: var(--s5); margin-top: var(--s5); }
.stats b { display: block; font: 600 30px/1 var(--serif); color: var(--gold2); }
.stats span { font-size: 12px; color: var(--muted); }
.steps { list-style: none; margin: var(--s2) var(--s4) 0; padding: var(--s3); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); background: rgba(42,24,16,.6); border: 1px solid var(--line); border-radius: var(--r); }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s2) 2px; position: relative; }
.steps li + li::before { content: ''; position: absolute; top: 26px; left: -22%; width: 44%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(241,208,140,.22), rgba(214,166,80,.06)); color: var(--gold2); margin-bottom: 6px; }
.step-ic .ic { width: 20px; height: 20px; }
.steps b { font-size: 13px; }
.steps small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.rail-wrap { padding: var(--s6) 0 var(--s2); }
.rail-wrap.tight { padding-top: var(--s5); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--s4) var(--s3); gap: var(--s3); }
.sec-head h2 { font-size: 24px; }
.sec-head .muted { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.sec-head .ic { width: 14px; height: 14px; color: var(--gold); }
.rail { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s4); padding: 2px var(--s4) var(--s2); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar, .chips::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 150px; scroll-snap-align: start; text-align: left; display: block; }
.pick-img { width: 150px; height: 170px; border-radius: var(--r); margin-bottom: var(--s2); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pick:hover .pick-img img { transform: scale(1.05); }
.pick b { display: block; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick > span { font-size: 12.5px; color: var(--gold2); }
.filters { position: sticky; top: 0; z-index: 6; padding: var(--s4) var(--s4) var(--s3); background: linear-gradient(var(--bg) 78%, transparent); }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; color: var(--muted); transition: border-color var(--t-fast); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; min-height: 48px; background: none; border: 0; color: var(--cream); font: inherit; outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: var(--s2); overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; font-size: 13.5px; white-space: nowrap; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.chip .ic { width: 14px; height: 14px; }
.chip:hover { color: var(--cream); }
.chip.on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.rlist { padding: var(--s2) var(--s4) var(--s5); display: grid; gap: var(--s4); }
.rcard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-fast) var(--ease), border-color var(--t); }
.rcard:hover { border-color: rgba(214,166,80,.4); }
.rcard:active { transform: scale(.985); }
.rcard-img { aspect-ratio: 16/10; }
.rcard-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rcard:hover .rcard-img > img { transform: scale(1.04); }
.rcard-img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(23,13,8,.92)); pointer-events: none; }
.rcard-over { position: absolute; z-index: 2; left: var(--s4); right: var(--s4); bottom: var(--s4); display: flex; align-items: flex-end; gap: var(--s3); }
.rcard-over h3 { font-size: 26px; }
.rcard-over p { font-size: 13.5px; color: var(--cream); opacity: .85; }
.rcard-body { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); font-size: 13px; color: var(--muted); }
.rcard-body > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rcard-body .ic { width: 15px; height: 15px; color: var(--gold); }
.rcard-meta { display: inline-flex; gap: var(--s3); flex: none; }
.rcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hits { display: flex; align-items: center; gap: 6px; padding: 0 var(--s4) var(--s3); font-size: 13px; color: var(--gold2); }
.hits .ic { width: 14px; height: 14px; }
.empty { color: var(--muted); padding: var(--s4) var(--s1); font-size: 14px; }

/* ---------- restaurant ---------- */
.rhead { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: calc(14px + var(--safe-t)) var(--s4) var(--s4); }
.rhead-bg { position: absolute; inset: 0; }
.rhead-bg img { width: 100%; height: 100%; object-fit: cover; }
.rhead-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,13,8,.3) 0%, rgba(23,13,8,.4) 45%, var(--bg) 100%); }
.rhead-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.table-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow); }
.table-chip .ic { width: 15px; height: 15px; }
.rhead-in { position: relative; z-index: 2; display: flex; gap: 14px; align-items: flex-end; }
.rhead h1 { font-size: 34px; }
.rhead p { font-size: 14px; }
.rhead p.muted { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.rhead p .ic { width: 14px; height: 14px; color: var(--gold); }
.logo { width: 68px; height: 68px; border-radius: 18px; flex: none; border: 2px solid var(--gold); display: grid; place-items: center; background: var(--card); animation: none; box-shadow: var(--shadow); }
.logo.sm { width: 48px; height: 48px; border-radius: 14px; border-width: 1.5px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo span { font: 600 26px var(--serif); color: var(--gold); }
.logo.noimg::after { display: none; }
.stick { position: sticky; top: 0; z-index: 6; background: rgba(23,13,8,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: var(--s2) 0 var(--s2); margin-top: var(--s3); }
.cats { display: flex; gap: 2px; overflow-x: auto; padding: 0 var(--s4); scrollbar-width: none; }
.cats button { position: relative; white-space: nowrap; font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 12px; color: var(--muted); transition: color var(--t-fast); }
.cats button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.cats button:hover, .cats button.on { color: var(--gold2); }
.cats button.on::after { transform: scaleX(1); }
.chips.sub { margin: 2px 0 0; padding: 0 var(--s4); }
.chips.sub .chip { min-height: 36px; font-size: 12.5px; padding: 0 12px; }
.menu { padding: 0 var(--s4) 130px; }
.menu section { scroll-margin-top: 110px; }
.menu h2 { font-size: 24px; padding: var(--s6) 0 var(--s1); color: var(--gold2); }
.dish { display: flex; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; border-radius: 4px; transition: background var(--t-fast); }
.dish:hover { background: rgba(214,166,80,.03); }
.dish-txt { flex: 1; min-width: 0; }
.dish h3 { font: 600 16.5px/1.3 var(--sans); }
.dish p { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.meta b { color: var(--gold2); margin-right: 4px; font-size: 15px; }
.dish-img { width: 116px; height: 116px; border-radius: var(--r); flex: none; overflow: visible; }
.dish-img > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.dish-img[data-img] { border-radius: var(--r); }
.add { position: absolute; z-index: 1; right: -6px; bottom: -6px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink); font-size: 16px; font-weight: 700; box-shadow: 0 6px 14px rgba(0,0,0,.45); border: 3px solid var(--bg); transition: transform var(--t-fast) var(--ease); }
.add:active { transform: scale(.9); }
.add .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.add.has { background: var(--cream); }
.dish.sold { opacity: .5; }
.cartbar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); width: min(608px, calc(100% - 32px)); min-height: 58px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4) 0 10px; border-radius: 18px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink); font-weight: 700; box-shadow: 0 12px 34px rgba(0,0,0,.5); animation: pop .3s var(--ease); }
.cartbar > span:nth-child(2) { flex: 1; text-align: left; }
.bag { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold2); }
.bag i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 11.5px; display: grid; place-items: center; }

/* ---------- sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,4,2,.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--t) var(--ease); }
.overlay.out { opacity: 0; transition: opacity 180ms; }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: up .32s var(--ease); overscroll-behavior: contain; }
.grab { position: absolute; z-index: 3; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(246,234,215,.5); }
.sheet .x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(23,13,8,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
.d-media { aspect-ratio: 4/3.4; max-height: 50vh; width: 100%; }
.d-media img, .d-media video { width: 100%; height: 100%; object-fit: cover; }
.d-media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg2)); pointer-events: none; }
.kb { animation: kb 14s ease-in-out infinite alternate; }
.d-badge { position: absolute; z-index: 1; left: var(--s4); bottom: var(--s4); display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 6px 11px 6px 9px; border-radius: 99px; background: rgba(23,13,8,.75); color: var(--gold2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.d-badge .ic { width: 13px; height: 13px; }
.d-body { padding: var(--s2) 20px var(--s2); }
.d-title { display: flex; align-items: flex-start; gap: var(--s3); justify-content: space-between; margin-top: 6px; }
.d-body h2 { font-size: 30px; }
.d-price { font: 700 21px var(--sans); color: var(--gold2); margin: 6px 0 var(--s2); }
.d-desc { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s4); }
.facts div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); text-align: center; }
.facts .ic { color: var(--gold); width: 18px; height: 18px; margin-bottom: 2px; }
.facts b { font-size: 14px; }
.facts span { font-size: 11px; color: var(--muted); }
.facts .veg .ic, .facts .veg b { color: var(--veg); }
.facts .hot .ic, .facts .hot b { color: var(--hot); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.btn-ar { margin: 20px 0 6px; width: 100%; min-height: 68px; display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px 12px 12px; border-radius: var(--r); border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(214,166,80,.2), rgba(214,166,80,.04)); transition: background var(--t-fast); }
.btn-ar:hover { background: linear-gradient(135deg, rgba(214,166,80,.28), rgba(214,166,80,.08)); }
.btn-ar > span:nth-child(2) { flex: 1; }
.ar-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink); flex: none; }
.ar-ic .ic { width: 24px; height: 24px; }
.btn-ar b { display: block; font: 600 18px var(--serif); color: var(--gold2); }
.btn-ar small { color: var(--muted); font-size: 12.5px; }
.btn-ar > .ic { color: var(--gold); }
.d-body h4 { font-size: 18px; margin: var(--s5) 0 10px; }
.d-body h4 small { font: 400 12px var(--sans); color: var(--muted); margin-left: 6px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 62px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.bar div, .hbar div { height: 8px; border-radius: 99px; background: rgba(214,166,80,.12); overflow: hidden; }
.bar i, .hbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; transform-origin: left; animation: grow .8s var(--ease) both; }
.bar b { text-align: right; font-weight: 600; }
.ing { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ing li { font-size: 13px; padding: 6px 11px; background: var(--card); border-radius: 10px; border: 1px solid var(--line-soft); }
.fine { font-size: 12px; color: var(--muted); margin: var(--s4) 0 var(--s2); }
.d-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: var(--s3); padding: var(--s3) 20px calc(var(--s3) + var(--safe-b)); background: linear-gradient(transparent, var(--bg2) 28%); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.stepper button { width: 44px; height: 48px; display: grid; place-items: center; color: var(--gold2); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.stepper.sm button { width: 40px; height: 40px; }
.stepper.sm .ic { width: 16px; height: 16px; }

/* cart */
.cart { padding: 28px 20px calc(20px + var(--safe-b)); }
.cart h2 { font-size: 30px; margin: 4px 0 var(--s4); }
.line { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.line b { display: block; font-size: 14.5px; }
.line .muted { font-size: 13px; }
.line-img { width: 54px; height: 54px; border-radius: 12px; flex: none; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s4) 0 6px; font-size: 18px; }
.total b { color: var(--gold2); font-family: var(--serif); font-size: 24px; }
.field { display: block; font-size: 13px; font-weight: 500; color: var(--cream); margin-top: 14px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; background: var(--card); color: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; resize: none; min-height: 48px; transition: border-color var(--t-fast); }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.err { color: var(--hot); font-size: 13px; min-height: 18px; margin-top: var(--s2); }

/* ---------- AR ---------- */
.ar { position: fixed; inset: 0; z-index: 80; background: #000; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; animation: fade .2s; }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar.nocam { background: radial-gradient(ellipse at 50% 30%, #5a3a24, #24150d 70%); }
.ar.nocam::before { content: ''; position: absolute; left: -10%; right: -10%; top: 45%; bottom: -20%; background: repeating-linear-gradient(90deg, #6b4428 0 60px, #5e3b22 60px 64px, #74492b 64px 140px); transform: perspective(600px) rotateX(55deg); transform-origin: top; box-shadow: inset 0 40px 80px rgba(0,0,0,.6); }
.ar-stage { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 18vh; }
.ar-obj { position: relative; width: min(72vw, 360px); aspect-ratio: 1; display: grid; place-items: center; cursor: grab; animation: drop .6s var(--ease) both; }
.ar-shadow { position: absolute; left: 6%; right: 6%; bottom: 8%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px); transform: translateY(18%); }
.ar-plate { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; transform: perspective(700px) rotateX(52deg); box-shadow: 0 0 0 7px #f3eee6, 0 0 0 9px #d9cfc1, 0 30px 40px rgba(0,0,0,.5); background: #f3eee6; }
.ar-plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); pointer-events: none; }
.ar-plate.spin img { animation: spin 24s linear infinite; }
.ar-vid { width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
.ar-top { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; }
.ar-top div { background: rgba(23,13,8,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: 7px 14px; }
.ar-top b { display: block; font-size: 14px; }
.ar-top span { font-size: 12.5px; color: var(--gold2); }
.ar-hint { position: absolute; top: calc(74px + var(--safe-t)); left: 16px; right: 16px; text-align: center; font-size: 13px; color: var(--cream); text-shadow: 0 1px 4px #000; pointer-events: none; }
.ar-bottom { position: absolute; left: 12px; right: 12px; bottom: calc(16px + var(--safe-b)); display: flex; gap: 10px; align-items: center; background: rgba(23,13,8,.74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 20px; padding: 10px; }
.size { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); min-height: 44px; padding-left: 6px; }
.size input { flex: 1; accent-color: var(--gold); }

/* ---------- order status ---------- */
.center-page { padding: calc(24px + var(--safe-t)) var(--s4) 60px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); }
.center-page h1 { font-size: 42px; }
.tick { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold2); margin-top: var(--s6); background: radial-gradient(circle, rgba(214,166,80,.15), transparent 70%); }
.tick .cloche { width: 46px; animation: bob 2s ease-in-out infinite; }
.tick.done { background: var(--gold); color: var(--ink); }
.tick.done .ic { width: 40px; height: 40px; stroke-width: 2.6; }
.track { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 420px; }
.track li { position: relative; font-size: 12.5px; color: var(--muted); padding-top: 28px; }
.track li span { position: absolute; top: 4px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); z-index: 1; }
.track li::before { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li.done { color: var(--cream); }
.track li.done span { background: var(--gold); border-color: var(--gold); }
.track li.done::before { background: var(--gold); }
.track li.now span { box-shadow: 0 0 0 6px rgba(214,166,80,.25); animation: pulse 1.6s infinite; }
.receipt { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px var(--s4); text-align: left; font-size: 14px; }
.receipt > div { display: flex; justify-content: space-between; gap: var(--s3); padding: 4px 0; }

/* ---------- dashboard ---------- */
.dash { padding: var(--s4); }
.dash-top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.dash-title { flex: 1; min-width: 200px; }
.dash-title h1 { font-size: 26px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on { color: var(--veg); }
.live.on i { background: var(--veg); box-shadow: 0 0 0 0 rgba(134,201,138,.6); animation: ping 1.8s infinite; }
select, .qbar input { background: var(--card); color: var(--cream); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; padding: 0 12px; font: inherit; }
.tabs { display: flex; gap: 4px; margin: var(--s4) 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: color var(--t-fast); }
.tabs a:hover { color: var(--cream); }
.tabs a.on { color: var(--gold2); border-color: var(--gold); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: rgba(42,24,16,.5); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r); padding: var(--s3); min-height: 200px; }
.col-preparing { border-top-color: var(--hot); }
.col-served { border-top-color: var(--veg); }
.col h2 { font-size: 18px; margin: 2px 4px var(--s3); display: flex; justify-content: space-between; }
.col h2 span { font: 600 13px var(--sans); background: var(--card); color: var(--gold2); border-radius: 8px; padding: 2px 9px; }
.ocard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: var(--s3); margin-bottom: 10px; font-size: 14px; }
.ocard header { display: flex; gap: var(--s2); align-items: center; font-size: 13px; }
.ocard header .muted { margin-left: auto; font-size: 12px; }
.tbl { background: var(--gold); color: var(--ink); font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.ocard ul { margin: var(--s2) 0; padding: 0; list-style: none; }
.ocard li b { color: var(--gold2); }
.ocard .eyebrow { margin-top: 6px; font-size: 10.5px; }
.note { font-size: 13px; color: var(--gold2); font-style: italic; margin-bottom: var(--s2); }
.ocard footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.ocard.flash { animation: flash 1.2s ease 3; }
.hint-box { margin-top: var(--s4); border: 1px dashed var(--line); border-radius: 14px; padding: var(--s4); color: var(--muted); font-size: 14px; }
.mtable { display: grid; gap: 4px; }
.mrow { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s3); background: rgba(42,24,16,.5); border-radius: 12px; }
.mrow b { display: block; font-size: 14.5px; }
.mrow .muted { font-size: 12.5px; }
.pricein { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pricein input { width: 96px; min-height: 40px; background: var(--card); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: relative; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #4a3628; transition: background var(--t); }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); transition: transform var(--t) var(--ease); }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold2); outline-offset: 2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font: 600 26px/1.2 var(--serif); color: var(--gold2); margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.panel { background: rgba(42,24,16,.5); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.panel h3 { font-size: 18px; margin-bottom: var(--s3); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 36px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: var(--s2); }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar b { text-align: right; }

/* ---------- QR cards ---------- */
.qrpage { padding: var(--s4); }
.qbar { display: flex; flex-wrap: wrap; gap: var(--s3) 18px; align-items: center; margin-bottom: 14px; }
.qbar label { font-size: 13px; color: var(--muted); display: flex; gap: var(--s2); align-items: center; }
.qbar input { width: 80px; }
.qbar .brand { margin-right: auto; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.qcard { background: linear-gradient(160deg, #2c1a10, #1b0f09); border: 1.5px solid var(--gold); border-radius: 20px; padding: 20px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qbrand { display: flex; align-items: center; gap: var(--s2); color: var(--gold); }
.qbrand .cloche { width: 26px; }
.qbrand b { font: 600 17px var(--serif); color: var(--cream); }
.qbrand b i { color: var(--gold); }
.qcard h3 { font-size: 22px; margin-top: 6px; }
.qsub { color: var(--ink); background: var(--gold); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 99px; }
.qr { width: 150px; height: 150px; background: #fff; padding: 10px; border-radius: 12px; margin: var(--s2) 0 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qcta { font-size: 13px; color: var(--muted); line-height: 1.35; }
.qcta b { color: var(--gold2); }
.qtag { font: italic 12px var(--serif); color: var(--gold); letter-spacing: .04em; }

/* ---------- footer, toast ---------- */
.foot { border-top: 1px solid var(--line); margin: var(--s6) var(--s4) 0; padding: 22px 0 130px; font-size: 12.5px; color: var(--muted); display: grid; gap: var(--s3); }
.foot nav { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: 13.5px; color: var(--gold2); }
.foot nav a { min-height: 32px; display: inline-flex; align-items: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); background: var(--cream); color: var(--ink); font-weight: 600; font-size: 14px; padding: 11px 16px 11px 12px; border-radius: 14px; box-shadow: var(--shadow); animation: pop .28s var(--ease); }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .ic { color: #2f7a35; }

/* ---------- motion ---------- */
.first .rcard, .first .dish, .first .pick, .steps li { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) scale(.8); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes spin { to { transform: scale(1.12) rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(214,166,80,0); } }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(134,201,138,0); } 100% { box-shadow: 0 0 0 0 rgba(134,201,138,0); } }
@keyframes flash { 50% { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(241,208,140,.35); } }

@media (max-width: 760px) {
  .board, .two { grid-template-columns: 1fr; }
  .mrow { flex-wrap: wrap; }
  .mrow .grow { flex-basis: calc(100% - 70px); }
  .pricein { margin-left: 66px; }
}
@media (max-width: 360px) { .steps small { display: none; } .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: var(--r-lg); border-bottom: 1px solid var(--line); } .grab { display: none; } .pick { width: 170px; } .pick-img { width: 170px; height: 190px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .noprint, .foot { display: none !important; }
  .qrpage { padding: 0; }
  .qgrid { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .qcard { height: 128mm; justify-content: center; }
}
