@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800&family=Cinzel:wght@500;700&display=swap');
:root {
  --bg: #e9e5dd; --card: #f5f2ec; --card2: #ece7de; --line: #d8cfbf;
  --text: #2a2218; --muted: #7b6e5c; --accent: #8a6b2c; --accent-ink: #fff;
  --ok: #1f8a4c; --warn: #a8730a; --bad: #c4343d; --blue: #2b6cb0;
  --gold: linear-gradient(180deg, #c9aa6a, #8a6b2c 60%, #a88a4c);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130e; --card: #211b14; --card2: #2b241b; --line: #3d3325;
    --text: #f3ebdc; --muted: #ab9d84; --accent: #cfae6a; --accent-ink: #1d1608;
    --ok: #7bd69a; --warn: #f2c14e; --bad: #f07178; --blue: #7cb4f0;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Heebo', system-ui, sans-serif; line-height: 1.5; min-height: 100dvh;
  background-image: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
}
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.hero { padding: 40px 0 20px; }
.hero small { color: var(--accent); font-weight: 600; letter-spacing: .08em; font-size: 13px; }
.hero h1 { font-size: 38px; font-weight: 800; line-height: 1.1; margin: 6px 0 8px; }
.hero p { color: var(--muted); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.card h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 28px; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: 26px; cursor: pointer; }
.stepper button:active { transform: scale(.94); }
.stepper b { font-size: 44px; font-weight: 800; min-width: 60px; text-align: center; }
.stepper span { display: block; color: var(--muted); font-size: 13px; text-align: center; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 -4px; padding-inline: 4px; }
.strip::-webkit-scrollbar { display: none; }
.day { flex: 0 0 64px; text-align: center; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; color: var(--text); font: inherit; }
.day small { display: block; color: var(--muted); font-size: 12px; }
.day b { font-size: 20px; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day[aria-pressed="true"] small { color: inherit; opacity: .8; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 12px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2);
  color: var(--text); font: inherit; font-size: 16px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: block; width: 100%; padding: 16px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
.btn.sm { display: inline-block; width: auto; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.note { color: var(--muted); font-size: 14px; }
.err { color: var(--bad); font-size: 14px; margin: 10px 0 0; min-height: 1.4em; }
.big-ok { font-size: 56px; text-align: center; }
.summary { text-align: center; }
.summary h2 { font-size: 26px; margin: 8px 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--card2); border: 1px solid var(--line); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.chip.blue { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0; }
[hidden] { display: none !important; }

.logo { text-align: center; padding: 34px 0 6px; }
.logo svg { width: 230px; max-width: 70%; display: block; margin: 0 auto -4px; }
.logo svg path { fill: none; stroke: url(#g); stroke-width: 2; }
.logo b { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 58px; letter-spacing: .06em; line-height: 1;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.logo p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

html { scroll-behavior: smooth; }
.pills { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pills a { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; background: var(--card); }
.block { margin-top: 34px; }
.sec { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.dish-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.dish-row::-webkit-scrollbar { display: none; }
.dish { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.dish h3 { font-size: 17px; margin: 12px 14px 2px; }
.dish p { margin: 0 14px 14px; color: var(--muted); font-size: 14px; }
.pic { position: relative; aspect-ratio: 5 / 4; background: linear-gradient(160deg, var(--card2), var(--line)); display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.pic .ph { width: 44%; opacity: .7; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cats { margin-bottom: 8px; }
.cat { flex: 0 0 auto; padding: 10px 18px; font-weight: 600; }
.item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .info { flex: 1; }
.item p { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.item b { font-size: 16px; }
.price { color: var(--accent); font-weight: 700; }
.thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--card2); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-row { scroll-padding-inline: 16px; }
.logo p { font-size: 14px; letter-spacing: .02em; padding: 0 8px; }

.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: 520px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { font-family: 'Cinzel', serif; font-size: 22px; letter-spacing: .08em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.topcta { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 99px; }
.topcta:active { transform: scale(.96); }
#book { display: block; scroll-margin-top: 72px; }

/* ---- flow & urgency ---- */
.step h3 { display: flex; align-items: center; gap: 10px; }
.step h3 i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.note.center { text-align: center; margin: 12px 0 0; }
.hot { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; text-align: center; background: var(--card); border: 1px solid var(--line); animation: pop .35s ease; }
.hot.fire { background: color-mix(in srgb, var(--accent) 16%, var(--card)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.hot.full { color: var(--muted); }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; animation: pop .3s ease both; transition: transform .12s, background .15s; }
.slot:active:not(:disabled) { transform: scale(.95); }
.slot small { font-size: 10.5px; font-weight: 700; color: var(--bad); line-height: 1; }
.slot[aria-pressed="true"] small { color: inherit; }
.slot.low:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.skel { height: 48px; border-radius: 12px; background: linear-gradient(90deg, var(--card2), var(--line), var(--card2)); background-size: 200% 100%; animation: shimmer 1.1s infinite linear; }
.chosen { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; text-align: center; }
.urgent { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); font-size: 14px; font-weight: 700; text-align: center; }
.reveal { animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.burst { position: relative; height: 0; }
.burst i { position: absolute; top: 40px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; animation: fly .9s ease-out forwards; transform-origin: center; }
.burst i:nth-child(3n) { background: var(--ok); } .burst i:nth-child(3n+1) { background: var(--warn); }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---- responsive layout: mobile = one column, desktop = wide booking + gallery ---- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin: 6px 0 8px; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: var(--card2); }
.gallery .g1 { grid-row: 1 / 3; }
@media (min-width: 960px) {
  .wrap.wide { max-width: 1180px; padding: 0 28px 64px; }
  .topbar-in { max-width: 1180px; padding-inline: 28px; }
  .wrap.wide .logo { padding-top: 40px; }
  .wrap.wide .logo b { font-size: 76px; }
  .wrap.wide .logo svg { width: 300px; }
  .wrap.wide .logo p { font-size: 17px; }
  .layout { display: grid; grid-template-columns: minmax(560px, 660px) 1fr; gap: 40px; align-items: start; margin-top: 8px; }
  .bookcol .card { padding: 24px; border-radius: 22px; }
  .bookcol .card h3 { font-size: 17px; margin-bottom: 16px; }
  .stepper b { font-size: 52px; }
  .day { flex: 0 0 76px; padding: 12px 0; }
  .slots { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .slot { min-height: 54px; font-size: 16px; }
  .slot:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--accent); }
  .gallery { position: sticky; top: 92px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; aspect-ratio: auto; margin: 0; }
  .gallery img { border-radius: 22px; }
  .gallery .g1 { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 4 / 3; }
  .gallery .g2, .gallery .g3 { aspect-ratio: 1 / 1; }
  .block { margin-top: 56px; }
  .sec { font-size: 32px; margin-bottom: 20px; }
  .dish-row { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .dish { flex: none; max-width: none; }
  .dish h3 { font-size: 16px; }
  #menuList { column-count: 2; column-gap: 48px; }
  #menuList .item { break-inside: avoid; }
  #menuList > .note { column-span: all; }
  .cats { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1280px) { .layout { grid-template-columns: minmax(580px, 680px) 1fr; } }
