/* Diner menu: candle-lit dark, printed-menu rows, full-bleed reel viewer. */
.m-body { background: var(--ink); color: var(--text-inv); min-height: 100vh; }
.m-body a { color: inherit; }
.demo-bar { background: var(--saffron); color: var(--ink); font-size: .85rem; padding: 8px var(--gutter); text-align: center; }
.demo-bar a { font-weight: 600; }

.m-head { padding: 36px var(--gutter) 18px; max-width: 720px; margin: 0 auto; }
.m-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 1px solid var(--ink-3); }
.m-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; font-variation-settings: 'opsz' 144; }
.m-tagline { margin: 8px 0 0; color: var(--text-inv-2); font-size: 1.02rem; max-width: 34ch; }
.m-table { display: inline-block; margin: 14px 10px 0 0; padding: 5px 12px; border-radius: var(--r-pill); background: var(--ink-2); border: 1px solid var(--ink-3); font-size: .88rem; color: var(--saffron); font-weight: 600; }
.m-hint { display: inline-block; margin: 14px 0 0; color: var(--text-inv-2); font-size: .88rem; }

.cats { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-3); }
.cats-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter); max-width: 720px; margin: 0 auto; scroll-snap-type: x proximity; }
.cats-track::-webkit-scrollbar { display: none; }
.cat { flex: none; scroll-snap-align: start; text-decoration: none; padding: 7px 14px; border-radius: var(--r-pill); font-size: .92rem; color: var(--text-inv-2); border: 1px solid transparent; transition: color .2s, background .2s; }
.cat.is-on { color: var(--ink); background: var(--text-inv); font-weight: 600; }

.m-list { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.sec { scroll-margin-top: 64px; padding-top: 28px; }
.sec-title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.55rem; margin: 0 0 6px; color: var(--saffron); }
.dishes { list-style: none; margin: 0; padding: 0; }
.dish + .dish .dish-btn { border-top: 1px solid var(--ink-3); }
.dish-btn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 96px 1fr; gap: 16px; width: 100%; padding: 16px 0; cursor: pointer; align-items: start; -webkit-tap-highlight-color: transparent; }
.dish-btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; border-radius: 6px; }
.dish-btn:active .thumb { transform: scale(.97); }
.thumb { position: relative; width: 96px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--ink-2); transition: transform .2s var(--ease); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--saffron); background: radial-gradient(120% 90% at 30% 20%, var(--ink-3), var(--ink-2)); }
.play { position: absolute; z-index: 2; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(23,18,14,.72); color: var(--text-inv); display: grid; place-items: center; }
.play svg { width: 13px; height: 13px; margin-left: 2px; }
.dish-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 2px; }
.dish-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish-name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; line-height: 1.2; }
.dish-price { color: var(--saffron); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { color: var(--text-inv-2); font-size: .92rem; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-sold .dish-btn { cursor: default; opacity: .45; }
.sold { font-size: .82rem; color: var(--text-inv); font-weight: 600; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0; padding: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--text-inv-2); }
.tag .ic { width: 14px; height: 14px; }
.tag-vegetarian .ic, .tag-vegan .ic { color: #9fb98a; }
.tag-spicy .ic { color: #f0714f; }
.tag-popular .ic, .tag-new .ic { color: var(--saffron); }
.m-empty { color: var(--text-inv-2); padding: 40px 0; }
.badge { text-align: center; padding: 48px 0 8px; font-size: .8rem; }
.badge a { color: var(--text-inv-2); text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.foot-space { height: 24px; }

/* Cart bar */
.cartbar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(640px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 10px; border: 0; border-radius: var(--r-pill); padding: 14px 20px; background: var(--accent); color: var(--accent-ink, #fff); font-weight: 600; font-size: 1.02rem; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: rise .35s var(--ease); }
.cartbar[hidden] { display: none; }
.cartbar-label { flex: 1; text-align: left; }
.cartbar-count { min-width: 26px; height: 26px; border-radius: 13px; padding: 0 7px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: .9rem; }
.cartbar-total { font-variant-numeric: tabular-nums; }
.cartbar.bump { animation: bump .35s var(--ease); }
@keyframes rise { from { transform: translate(-50%, 140%); } }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.04); } }

/* Reel viewer */
body.lock { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 40; background: #000; }
.viewer[hidden] { display: none; }
.v-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; }
.v-top > * { pointer-events: auto; }
.v-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(23,18,14,.5); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.v-btn svg { width: 22px; height: 22px; }
#v-mute .on { display: none; }
#v-mute[aria-pressed="true"] .on { display: inline; }
#v-mute[aria-pressed="true"] .off { display: none; }
.v-right { display: flex; gap: 8px; align-items: center; }
.v-cart { height: 44px; border: 0; border-radius: var(--r-pill); padding: 0 16px; background: var(--accent); color: var(--accent-ink, #fff); font-weight: 600; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.v-cart[hidden] { display: none; }
.v-cart span { min-width: 22px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: .85rem; padding: 0 6px; }
.v-count { color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.v-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; }
.slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
@media (min-aspect-ratio: 3/4) { .slide-media { object-fit: contain; } .slide { background: radial-gradient(80% 60% at 50% 40%, #2a2019, #000); } }
.slide-still { animation: kenburns 14s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translateY(-2%); } }
.slide-blank { display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 5rem; color: var(--saffron); background: radial-gradient(120% 90% at 30% 20%, #3a2c20, var(--ink)); }
.slide-tap { position: absolute; inset: 0; z-index: 1; border: 0; background: none; cursor: pointer; }
.slide-paused::after { content: ''; position: absolute; z-index: 1; left: 50%; top: 45%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='white'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat; pointer-events: none; }
.slide-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 90px 20px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(10,7,5,.55) 30%, rgba(10,7,5,.9)); color: #fff; }
.slide-info-in { max-width: 560px; margin: 0 auto; }
.slide-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.slide-desc { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.45; max-width: 46ch; }
.slide-info .tags { margin-top: 10px; }
.slide-info .tag { color: rgba(255,255,255,.85); }
.slide-buy { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.qty { display: flex; align-items: center; border-radius: var(--r-pill); background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.qty button { width: 44px; height: 52px; border: 0; background: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.qty button:disabled { opacity: .35; }
.qty output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.add { flex: 1; height: 52px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink, #fff); font-weight: 600; font-size: 1.04rem; cursor: pointer; padding: 0 18px; transition: transform .15s var(--ease), filter .2s; }
.add:active { transform: scale(.98); }
.add.added { filter: brightness(1.15); }
.add[disabled] { background: rgba(255,255,255,.18); cursor: default; }
.slide-sold { margin-top: 14px; font-weight: 600; color: var(--saffron); }

/* Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-wrap[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fade .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; background: var(--paper); color: var(--text); border-radius: 22px 22px 0 0; padding: 8px 22px calc(22px + env(safe-area-inset-bottom)); animation: up .32s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--paper-3); margin: 4px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2, .done h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 0; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sheet-note { margin: 8px 0 0; color: var(--text-2); }
.lines { list-style: none; margin: 14px 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--paper-3); }
.line-name { font-weight: 600; font-size: 1.05rem; }
.line-price { font-variant-numeric: tabular-nums; text-align: right; }
.line-ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.line-ctl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--paper-3); background: #fff; font-size: 1.15rem; cursor: pointer; }
.line-ctl output { min-width: 22px; text-align: center; font-weight: 600; }
.line-ctl .rm { width: auto; border: 0; background: none; color: var(--text-2); text-decoration: underline; font-size: .88rem; margin-left: auto; border-radius: 0; }
.mylist .line-name { font-size: 1.3rem; }
.mylist .line-qty { font-family: var(--font-display); font-size: 1.3rem; color: var(--tomato); }
.lines-empty { color: var(--text-2); padding: 12px 0; }
.fld { display: block; margin: 12px 0; }
.fld span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.fld textarea, .fld input { width: 100%; border: 1px solid var(--paper-3); background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 1rem; resize: vertical; }
.fld-table input { max-width: 140px; font-size: 1.2rem; font-weight: 600; }
.fld input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,38,30,.15); }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 14px 0; }
.sheet-total strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.o-err { color: var(--danger); margin: 0 0 10px; font-weight: 600; }
.send { width: 100%; height: 56px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink, #fff); font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.send:disabled { opacity: .6; cursor: wait; }
.send.ghost { background: var(--ink); }
.pay-note { text-align: center; color: var(--text-2); font-size: .88rem; margin: 10px 0 0; }
.done { text-align: center; padding: 18px 0 4px; }
.done-mark { color: var(--ok); width: 64px; margin: 0 auto 12px; }
.steps { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; margin: 20px 0 8px; flex-wrap: wrap; }
.steps li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--text-2); font-size: .92rem; }
.steps li.is-done { background: #dfe8d6; color: #2d5a37; }
.steps li.is-now { background: var(--ink); color: #fff; font-weight: 600; }
.o-cancel { color: var(--danger); font-weight: 600; }
.done-sum { color: var(--text-2); font-size: .92rem; margin: 10px 0 20px; }

@media (min-width: 900px) {
  .dish-btn { grid-template-columns: 120px 1fr; }
  .thumb { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .slide-still { animation: none; } }
