/* ==========================================================
   Harmony — new menu
   Type: Thmanyah (primary) + IBM Plex Sans Arabic (secondary)
   ========================================================== */

@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("../fonts/thmanyah-serif-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("../fonts/thmanyah-serif-display-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #1c2024;
  --ink-2: #2a3036;
  --stone: #36454f;
  --cream: #f6f1ea;
  --cream-2: #efe7dc;
  --paper: #ffffff;
  --orange: #e8862a;
  --orange-deep: #c76a14;
  --orange-soft: #fbe8d3;
  --muted: #6c7178;
  --line: rgba(28, 32, 36, .09);

  --f-display: "Thmanyah Serif Display", "Thmanyah Sans", "IBM Plex Sans Arabic", serif;
  --f-ui: "Thmanyah Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-text: "IBM Plex Sans Arabic", "Thmanyah Sans", system-ui, sans-serif;

  --topbar-h: 62px;
  --chips-h: 58px;
  --r-lg: 26px;
  --r-md: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 0 rgba(28, 32, 36, .04), 0 14px 30px -18px rgba(28, 32, 36, .35);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* ---------- Loader ---------- */
.is-loading body { overflow: hidden; }
.is-loading .hero, .is-loading .hero * { animation-play-state: paused !important; }
.loader {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: var(--ink); color: #fff; overflow: hidden;
  clip-path: circle(150% at 50% 46%);
  transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) .55s;
}
.loader__glow {
  position: absolute; width: 720px; height: 720px; left: 50%; top: 46%; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 134, 42, .28) 0%, rgba(232, 134, 42, .08) 38%, transparent 66%);
  animation: glowPulse 3.2s ease-in-out infinite;
}
.loader__stage { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.loader__fly { position: absolute; inset: 0; transition: transform .95s cubic-bezier(.6, 0, .2, 1), opacity .7s .15s; }
.loader__orbit { position: absolute; inset: 0; animation: orbit 22s linear infinite; }
.loader__orbit img {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 4.5px rgba(232, 134, 42, .55), 0 12px 24px -8px rgba(0, 0, 0, .7);
  transform: rotate(calc(var(--a) * 45deg)) translateY(-150px) rotate(calc(var(--a) * -45deg)) scale(0);
  animation: satIn .8s var(--spring) forwards; animation-delay: calc(.15s + var(--a) * .09s);
}
.loader__ring { position: absolute; width: 240px; height: 240px; transform: rotate(-90deg); overflow: visible; }
.loader__ring circle { fill: none; stroke-width: 2.5; }
.loader__ring .track { stroke: rgba(255, 255, 255, .1); }
.loader__ring .fill { stroke: var(--orange); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(232, 134, 42, .7)); }
.loader__logo {
  position: relative; width: 168px; height: auto;
  clip-path: inset(0 100% 0 0); animation: logoWipe 1.1s cubic-bezier(.65, 0, .25, 1) forwards .25s;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
  transition: transform .8s var(--ease), opacity .5s;
}
.loader__tag {
  position: relative; margin: 0; font: 700 clamp(17px, 4.6vw, 21px) var(--f-ui); color: rgba(255, 255, 255, .85);
  opacity: 0; transform: translateY(10px); animation: rise .8s var(--ease) forwards .9s;
  transition: opacity .4s, transform .5s var(--ease);
}
.loader__pct {
  position: relative; display: flex; align-items: baseline; gap: 2px; direction: ltr;
  font-family: var(--f-text); font-variant-numeric: tabular-nums; color: var(--orange);
  opacity: 0; animation: rise .6s var(--ease) forwards 1.1s; transition: opacity .3s;
}
.loader__pct b { font-size: 15px; font-weight: 700; min-width: 2.2ch; text-align: end; }
.loader__pct span { font-size: 12px; opacity: .7; }

/* exit: dishes fly out, logo lifts, then the curtain closes to reveal the hero */
.loader.out { clip-path: circle(0% at 50% 46%); }
.loader.out .loader__orbit { animation-play-state: paused; }
.loader.out .loader__fly { transform: scale(2.7) rotate(25deg); opacity: 0; }
.loader.out .loader__logo { transform: scale(1.18); opacity: 0; transition-delay: .25s; }
.loader.out .loader__tag, .loader.out .loader__pct { opacity: 0; transform: translateY(-8px); animation: none; }
.loader.out .loader__ring { opacity: 0; transition: opacity .4s; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes satIn { to { transform: rotate(calc(var(--a) * 45deg)) translateY(-150px) rotate(calc(var(--a) * -45deg)) scale(1); } }
@keyframes logoWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes glowPulse { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }

@media (max-width: 380px) {
  .loader__stage { transform: scale(.86); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-family: var(--f-ui); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px -10px rgba(232, 134, 42, .8); }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--soft { background: var(--cream-2); color: var(--ink); min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--soft:disabled { opacity: .35; cursor: default; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: inherit;
  transition: background .25s, transform .25s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.92); }
.icon-btn--text { font-family: var(--f-text); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.badge {
  position: absolute; top: -2px; inset-inline-end: -2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--orange); color: #fff; font: 700 11.5px/20px var(--f-text); text-align: center;
  animation: pop .45s var(--spring);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease);
}
.topbar__brand { display: block; height: 34px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease); }
.topbar__brand img { height: 100%; width: auto; }
.topbar__actions { display: flex; gap: 8px; }
.topbar.solid { background: rgba(28, 32, 36, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.topbar.solid .topbar__brand { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; overflow: hidden; isolation: isolate; background: var(--ink);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(232, 134, 42, .35), transparent 60%),
    linear-gradient(180deg, rgba(28, 32, 36, .55) 0%, rgba(28, 32, 36, .25) 35%, rgba(28, 32, 36, .88) 72%, var(--ink) 100%);
}
.hero__inner { width: 100%; max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 96px; text-align: center; }
.hero__logo { width: min(300px, 72vw); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45)); animation: rise 1s var(--ease) both .1s; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(44px, 12vw, 96px); line-height: 1.05; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .w { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .09s); }
.hero__title .accent { color: var(--orange); }
.hero__swash { display: block; width: min(320px, 70%); height: 26px; margin: 6px auto 0; }
.hero__swash path { stroke: var(--orange); stroke-width: 3.2; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.6s var(--ease) forwards 1s; }
.hero__sub { margin: 14px auto 0; max-width: 34ch; font-family: var(--f-text); font-size: clamp(15px, 3.8vw, 18px); color: rgba(255, 255, 255, .82); animation: rise .9s var(--ease) both 1.1s; }
.hero__stats { display: flex; justify-content: center; gap: clamp(18px, 6vw, 46px); margin: 26px 0 0; animation: rise .9s var(--ease) both 1.25s; }
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--f-text); font-weight: 700; font-size: clamp(26px, 7vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; animation: rise .9s var(--ease) both 1.4s; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }

/* ---------- Section heads ---------- */
.section-head { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-text); font-weight: 600; font-size: 13px; color: var(--orange-deep); letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { margin: 6px 0 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 7.5vw, 52px); line-height: 1.1; }

/* ---------- Worlds ---------- */
.worlds { background: var(--ink); color: #fff; padding: 20px 0 46px; }
.worlds .eyebrow { color: var(--orange); }
.worlds__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 22px var(--gutter) 6px; scrollbar-width: none;
}
.worlds__track::-webkit-scrollbar { display: none; }
.world-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 236px; padding: 20px; border-radius: var(--r-lg); overflow: hidden;
  scroll-snap-align: start; text-decoration: none; color: #fff; isolation: isolate;
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease);
}
.world-card:active { transform: scale(.97); }
.world-card .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
[dir="rtl"] .world-card .bg, [dir="rtl"] .world-banner .bg { transform: scaleX(-1); }
.world-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(28, 32, 36, .9) 8%, rgba(28, 32, 36, .15) 70%); }
.world-card:hover .bg { transform: scale(1.06); }
[dir="rtl"] .world-card:hover .bg { transform: scaleX(-1) scale(1.06); }
.world-card .num { position: absolute; top: 16px; inset-inline-start: 18px; font-family: var(--f-text); font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .65); }
.world-card h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1.1; }
.world-card p { margin: 6px 0 0; font-family: var(--f-text); font-size: 14px; color: rgba(255, 255, 255, .78); }
.world-card .count { margin-top: 14px; display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font: 600 13px var(--f-text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.subs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; font: 700 13px var(--f-ui); }
.subs span { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.subs i { font-style: normal; font-size: 9px; color: var(--orange); }
.subs i::before { content: "\25C0"; }
[dir="ltr"] .subs i::before { content: "\25B6"; }
.world-banner .subs { margin-top: 12px; font-size: 14px; }
.world--more .world-banner { min-height: clamp(150px, 34vw, 240px); }
.world--more .world-banner h2 { font-size: clamp(32px, 8vw, 60px); }
.world-card .count i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- Kitchen marquee ---------- */
.kitchen { padding: 50px 0 34px; overflow: hidden; }
.marquee { display: grid; gap: 14px; margin-top: 22px; direction: ltr; }
.marquee__row { display: flex; width: max-content; gap: 14px; animation: slide 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.dish {
  position: relative; flex: none; width: 168px; aspect-ratio: 1; border: 0; padding: 0;
  border-radius: 22px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow);
}
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish:hover img { transform: scale(1.08); }
.dish span {
  position: absolute; inset: auto 0 0; padding: 26px 12px 10px; color: #fff; text-align: start;
  font: 700 14px/1.3 var(--f-ui); background: linear-gradient(0deg, rgba(28, 32, 36, .85), transparent);
}
[dir="rtl"] .dish span { direction: rtl; }

/* ---------- Chips (sticky category nav) ---------- */
.chips {
  position: sticky; top: var(--topbar-h); z-index: 30; height: var(--chips-h);
  display: flex; align-items: center; gap: 8px;
  background: rgba(246, 241, 234, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-inline-end: 8px;
}
.chips__track { flex: 1; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; scroll-behavior: smooth; }
.chips__track::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font: 500 14.5px var(--f-ui); white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:active { transform: scale(.94); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-sep { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px 0 4px; font: 700 12px var(--f-text); color: var(--orange-deep); white-space: nowrap; }
.chip-sep::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.view-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.view-toggle svg { width: 20px; height: 20px; }
.view-toggle .v-list, .gallery-mode .view-toggle .v-grid { display: none; }
.gallery-mode .view-toggle .v-list { display: block; }

/* ---------- Menu ---------- */
.menu { max-width: 1200px; margin: 0 auto; padding: 4px 0 120px; }
.world { scroll-margin-top: calc(var(--topbar-h) + var(--chips-h)); }
.world-banner {
  position: relative; margin: 34px var(--gutter) 6px; min-height: clamp(190px, 46vw, 330px);
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 5vw, 40px);
  background: var(--ink);
}
.world-banner .bg { position: absolute; inset: -12% 0; z-index: -2; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.world-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28, 32, 36, .2), rgba(28, 32, 36, .78)); }
[dir="ltr"] .world-banner::after { background: linear-gradient(270deg, rgba(28, 32, 36, .2), rgba(28, 32, 36, .78)); }
.world-banner .idx { font: 600 13px var(--f-text); color: var(--orange); letter-spacing: .08em; }
.world-banner h2 { margin: 4px 0 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(38px, 10vw, 80px); line-height: 1.02; overflow: hidden; }
.world-banner h2 span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.world-banner p { margin: 8px 0 0; max-width: 36ch; font: 400 15px var(--f-text); color: rgba(255, 255, 255, .82); opacity: 0; transform: translateY(10px); transition: opacity .8s .25s, transform .8s .25s var(--ease); }
.world-banner.in h2 span, .world-banner.in p { transform: none; opacity: 1; }

.cat { padding: 30px var(--gutter) 6px; scroll-margin-top: calc(var(--topbar-h) + var(--chips-h) + 4px); }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.cat-head h3 { margin: 0; font: 700 clamp(22px, 5.6vw, 30px)/1.15 var(--f-ui); }
.cat-head .alt { display: block; font: 500 13px var(--f-text); color: var(--muted); letter-spacing: .02em; }
.cat-head .n { margin-inline-start: auto; flex: none; padding: 4px 11px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); font: 600 12.5px var(--f-text); }

.items { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .items { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1080px) { .items { grid-template-columns: repeat(3, 1fr); } }

.item {
  position: relative; display: grid; grid-template-columns: 1fr 112px; gap: 14px;
  padding: 12px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow);
  text-align: start; border: 0; width: 100%; color: inherit;
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s;
}
.item.in { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 55ms); }
.item:hover { box-shadow: 0 1px 0 rgba(28, 32, 36, .04), 0 22px 40px -22px rgba(28, 32, 36, .45); }
.item__text { display: flex; flex-direction: column; min-width: 0; padding: 4px 4px 2px; cursor: pointer; }
.item__name { margin: 0; font: 700 17px/1.35 var(--f-ui); }
.item__alt { font: 500 12.5px/1.4 var(--f-text); color: var(--muted); margin-top: 1px; }
.item__desc { margin: 6px 0 0; font: 400 13.5px/1.6 var(--f-text); color: #4d5259; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.item__ph { position: relative; width: 112px; height: 112px; border-radius: 16px; overflow: hidden; background: var(--cream-2); cursor: pointer; border: 0; padding: 0; }
.item__ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 1s var(--ease); }
.item__ph img.ok { opacity: 1; transform: none; }
.item:hover .item__ph img.ok { transform: scale(1.06); }

.price { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--f-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price b { font-weight: 700; font-size: 18px; color: var(--ink); }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.price--lg b { font-size: 30px; }
.price--lg small { font-size: 15px; }

.add {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--orange); background: transparent; color: var(--orange-deep);
  transition: background .25s, color .25s, transform .3s var(--spring);
}
.add svg { width: 18px; height: 18px; stroke-width: 2.4; }
.add:active { transform: scale(.85); }
.add.has { background: var(--orange); color: #fff; }
.add .q { font: 700 15px var(--f-text); }
.add.bump { animation: pop .45s var(--spring); }

/* Gallery mode */
.gallery-mode .items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .gallery-mode .items { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery-mode .items { grid-template-columns: repeat(4, 1fr); } }
.gallery-mode .item { grid-template-columns: 1fr; padding: 8px; gap: 8px; border-radius: 20px; }
.gallery-mode .item__ph { order: -1; width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; }
.gallery-mode .item__text { padding: 2px 6px 6px; }
.gallery-mode .item__name { font-size: 15.5px; }
.gallery-mode .item__desc, .gallery-mode .item__alt { display: none; }
.gallery-mode .add { width: 34px; height: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); text-align: center; padding: 56px var(--gutter) calc(110px + env(safe-area-inset-bottom)); }
.footer__logo { width: 210px; height: auto; margin: 0 auto 18px; }
.footer__addr { margin: 0; font: 500 15px var(--f-text); }
.footer__note { margin: 6px 0 0; font: 400 13px var(--f-text); color: var(--orange); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; }
.footer__links a { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); text-decoration: none; font: 500 14px var(--f-ui); transition: background .25s, border-color .25s; }
.footer__links a:hover { background: rgba(255, 255, 255, .08); border-color: var(--orange); }
.footer__top { display: inline-block; margin-bottom: 18px; font: 600 14px var(--f-text); color: #fff; }
.footer__copy { display: block; font: 400 12px var(--f-text); color: rgba(255, 255, 255, .45); }

/* ---------- Floating list button ---------- */
.fab {
  position: fixed; z-index: 45; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%;
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 10px 0 10px; padding-inline-end: 20px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: 0 18px 40px -14px rgba(28, 32, 36, .7);
  transform: translateX(-50%); animation: fabIn .6s var(--spring);
  font-family: var(--f-ui); white-space: nowrap;
}
.fab__count { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; background: var(--orange); font: 700 16px var(--f-text); }
.fab__label { font-weight: 700; font-size: 16px; }
.fab__total { font: 600 15px var(--f-text); color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.fab.bump .fab__count { animation: pop .45s var(--spring); }

/* ---------- Layers ---------- */
.layer { position: fixed; inset: 0; z-index: 60; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(20, 23, 26, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.layer.open .layer__backdrop { opacity: 1; }

.sheet__panel {
  position: absolute; inset: auto 0 0; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 28px 28px 0 0;
  transform: translateY(100%); transition: transform .5s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.layer.open .sheet__panel { transform: translateY(var(--drag, 0px)); }
.sheet__panel.dragging { transition: none; }
.sheet__grab { position: sticky; top: 0; z-index: 3; height: 0; }
.sheet__grab::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.listsheet .sheet__grab::before { background: var(--line); box-shadow: none; }
.sheet__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 4; background: rgba(28, 32, 36, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.listsheet .sheet__close { background: var(--cream-2); color: var(--ink); }
.sheet__media { aspect-ratio: 1 / .82; background: var(--cream-2); overflow: hidden; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.2s var(--ease); }
.layer.open .sheet__media img { transform: none; }
.sheet__body { padding: 22px 22px 26px; }
.sheet__cat { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); font: 600 12.5px var(--f-text); }
.sheet__name { margin: 12px 0 0; font: 900 clamp(26px, 7vw, 34px)/1.15 var(--f-ui); }
.sheet__alt { margin: 4px 0 0; font: 500 15px var(--f-text); color: var(--muted); }
.sheet__desc { margin: 14px 0 0; font: 400 15.5px/1.75 var(--f-text); color: #3f444b; }
.sheet__desc--alt { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.sheet__desc:empty { display: none; }
.sheet__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-2); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .15); }
.stepper button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output { min-width: 34px; text-align: center; font: 700 18px var(--f-text); }
.stepper .add-big { width: auto; padding: 0 22px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 16px var(--f-ui); gap: 6px; display: inline-flex; align-items: center; }

@media (min-width: 760px) {
  .sheet__panel { inset: 50% auto auto 50%; width: min(560px, 92vw); max-height: 90vh; border-radius: 28px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
  .layer.open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__grab { display: none; }
}

/* Search */
.search { background: var(--cream); display: flex; flex-direction: column; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .4s var(--ease); }
.search.open { opacity: 1; transform: none; }
.search__bar { display: flex; align-items: center; gap: 10px; margin: calc(12px + env(safe-area-inset-top)) var(--gutter) 0; padding: 0 6px 0 16px; padding-inline: 16px 6px; height: 58px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.search__bar > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search__bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 18px var(--f-ui); color: var(--ink); }
.search__bar input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search__bar .icon-btn { background: var(--cream-2); }
.search__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px var(--gutter) 0; }
.search__results { flex: 1; overflow-y: auto; padding: 16px var(--gutter) 40px; display: grid; gap: 10px; align-content: start; }
.search__results .item { opacity: 1; transform: none; }
.search__empty { text-align: center; padding: 40px 10px; color: var(--muted); font-family: var(--f-text); }
.search__count { font: 500 13px var(--f-text); color: var(--muted); }
mark { background: var(--orange-soft); color: inherit; border-radius: 4px; padding: 0 2px; }

/* List sheet */
.list__title { margin: 6px 0 0; font: 900 28px var(--f-ui); }
.list__hint { margin: 4px 0 16px; font: 400 14px var(--f-text); color: var(--muted); }
.list__items { display: grid; gap: 10px; }
.lrow { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: var(--cream); }
.lrow img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.lrow h4 { margin: 0; font: 700 15.5px/1.3 var(--f-ui); }
.lrow .price b { font-size: 14.5px; }
.lrow .stepper { background: var(--paper); }
.lrow .stepper button { width: 34px; height: 34px; box-shadow: none; background: var(--cream-2); }
.lrow .stepper output { min-width: 26px; font-size: 15px; }
.list__empty { text-align: center; padding: 30px 0 10px; color: var(--muted); font-family: var(--f-text); }
.list__foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(28, 32, 36, .2); }
.list__total { display: flex; justify-content: space-between; align-items: baseline; font: 700 18px var(--f-ui); }
.list__total strong { font: 700 26px var(--f-text); font-variant-numeric: tabular-nums; }
.list__vat { margin: 4px 0 16px; font: 400 13px var(--f-text); color: var(--orange-deep); }
.list__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* Waiter view */
.waiter {
  overflow-y: auto; overscroll-behavior: contain; color: #fff;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(232, 134, 42, .22), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    var(--ink);
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .35s;
}
.waiter.open { opacity: 1; }
.waiter__tools { display: flex; justify-content: space-between; align-items: center; max-width: 460px; margin: 0 auto 18px; }
.waiter__flip {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--orange); color: #fff; font: 700 15px var(--f-ui); box-shadow: 0 10px 24px -10px rgba(232, 134, 42, .9);
}
.waiter__flip svg { width: 19px; height: 19px; stroke-width: 2.2; transition: transform .6s var(--ease); }
.waiter__flip:active svg { transform: rotate(180deg); }

/* the "printer": a dark slot the ticket is printed out of */
.printer { position: relative; max-width: 420px; margin: 0 auto; }
.printer__slot {
  position: relative; z-index: 2; height: 22px; margin: 0 -10px; border-radius: 12px;
  background: linear-gradient(180deg, #3a424a, #22282d); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.printer__slot i { position: absolute; left: 16px; right: 16px; top: 9px; height: 4px; border-radius: 2px; background: #0d0f11; }
.printer__slot::after { content: ""; position: absolute; inset-inline-end: 14px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #57d38c; box-shadow: 0 0 8px #57d38c; animation: blink 1.2s steps(2) infinite; }
.printer__paper { position: relative; z-index: 1; margin-top: -11px; padding: 0 8px; overflow: hidden; }

.ticket {
  position: relative; color: var(--ink); background: #fffdf9;
  transform: translateY(-101%);
  -webkit-mask: radial-gradient(circle 9px at 50% 100%, transparent 8.5px, #000 9px) bottom / 22px 18px repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 17px) no-repeat;
          mask: radial-gradient(circle 9px at 50% 100%, transparent 8.5px, #000 9px) bottom / 22px 18px repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 17px) no-repeat;
  padding-bottom: 26px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8);
  transition: transform .8s var(--ease);
}
.waiter.open .ticket { animation: print 1.6s steps(14, end) forwards .25s; }
.waiter.open .ticket.printed { animation: none; transform: none; }
.waiter.open .ticket.printed.flipped { transform: rotate(180deg); }
.ticket__head { background: var(--ink); padding: 26px 22px 18px; text-align: center; }
.ticket__head img { width: 170px; height: auto; margin: 0 auto; }
.ticket__meta { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .2); color: #fff; }
.ticket__meta span { display: grid; gap: 1px; text-align: start; }
.ticket__meta span:last-child { text-align: end; }
.ticket__meta small { font: 500 11.5px var(--f-text); color: rgba(255, 255, 255, .55); }
.ticket__meta b { font: 700 18px var(--f-text); font-variant-numeric: tabular-nums; color: var(--orange); direction: ltr; }

.ticket__table {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 18px 0; padding: 10px 10px 10px 16px; padding-inline: 16px 10px;
  border-radius: 16px; background: var(--orange-soft); cursor: text;
}
.ticket__table span { font: 700 16px var(--f-ui); color: var(--orange-deep); }
.ticket__table input {
  width: 96px; height: 52px; border: 2px dashed rgba(199, 106, 20, .45); border-radius: 12px; background: #fff;
  text-align: center; font: 700 30px var(--f-text); color: var(--ink); outline: 0; direction: ltr;
}
.ticket__table input:focus { border-style: solid; border-color: var(--orange); }

.ticket__title { margin: 20px 22px 6px; font: 700 13px var(--f-text); color: var(--muted); letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.ticket__title::after { content: ""; flex: 1; border-top: 1px dashed rgba(28, 32, 36, .2); }
.ticket__lines { list-style: none; margin: 0; padding: 0 12px; counter-reset: ln; }
.ticket__lines li {
  position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 10px; border-radius: 14px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(8px); transition: background .25s;
}
.waiter.open .ticket__lines li { animation: rise .5s var(--ease) forwards; animation-delay: calc(1.5s + var(--i) * .09s); }
.waiter.open .ticket.printed .ticket__lines li { animation: none; opacity: 1; transform: none; }
.ticket__lines li + li::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px dotted rgba(28, 32, 36, .18); }
.ticket__lines .qty {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 20px var(--f-text); transition: background .3s, transform .4s var(--spring);
}
.ticket__lines .nm { min-width: 0; font: 700 19px/1.3 var(--f-ui); transition: color .3s; }
.ticket__lines .nm small { display: block; margin-top: 2px; font: 500 13.5px/1.35 var(--f-text); color: var(--muted); }
.ticket__lines .lp { font: 600 15px var(--f-text); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.ticket__lines li::after {
  content: ""; position: absolute; top: 50%; inset-inline: 66px 10px; height: 2px; border-radius: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .45s var(--ease);
}
[dir="ltr"] .ticket__lines li::after { --origin: left; }
.ticket__lines li.done { background: rgba(232, 134, 42, .07); }
.ticket__lines li.done::after { transform: scaleX(1); }
.ticket__lines li.done .qty { background: var(--orange); transform: scale(.9); }
.ticket__lines li.done .nm, .ticket__lines li.done .lp { color: #a3a7ad; }
.ticket__lines li.done .qty::after { content: "✓"; position: absolute; font-size: 22px; }
.ticket__lines li.done .qty span { visibility: hidden; }
.ticket__lines .qty { position: relative; }

.ticket__sum { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 14px 22px 0; padding-top: 16px; border-top: 2px solid var(--ink); }
.ticket__sum .cnt { font: 600 14px var(--f-text); color: var(--muted); }
.ticket__sum .cnt b { display: block; font: 700 17px var(--f-ui); color: var(--ink); }
.ticket__sum .tt { display: flex; align-items: baseline; gap: 5px; font-family: var(--f-text); font-variant-numeric: tabular-nums; }
.ticket__sum .tt b { font-size: 36px; font-weight: 700; line-height: 1; }
.ticket__sum .tt small { font-size: 15px; color: var(--muted); }
.ticket__vat { margin: 8px 22px 0; font: 500 12.5px var(--f-text); color: var(--orange-deep); }
.ticket__foot { margin: 22px 22px 0; text-align: center; }
.ticket__code {
  height: 44px; border-radius: 4px; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px, var(--ink) 14px 17px, transparent 17px 19px);
}
.ticket__foot p { margin: 12px 0 0; font: 700 15px var(--f-ui); color: var(--stone); }
.waiter__hint { max-width: 420px; margin: 18px auto 0; text-align: center; font: 500 13.5px var(--f-text); color: rgba(255, 255, 255, .6); }

@keyframes print { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes blink { 50% { opacity: .25; } }

/* Toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom));
  padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font: 500 14.5px var(--f-text);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes fabIn { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__title .w, .world-banner h2 span { transform: none; }
  .item { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
  .marquee { overflow-x: auto; }
}

@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .worlds__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 1200px; margin: 0 auto; }
  .world-card { min-height: 320px; }
  .dish { width: 210px; }
}
