:root {
  --bg: #f6f1e9;
  --card: #fffaf3;
  --ink: #1d1a16;
  --muted: #7a7166;
  --line: #e8dfd2;
  --accent: #d9472b;
  --accent-ink: #ffffff;
  --stage: radial-gradient(120% 90% at 50% 38%, #fffaf2 0%, #f1e7d8 55%, #e4d6c2 100%);
  --pic: radial-gradient(90% 80% at 50% 45%, #fffdf8 0%, #f3e9db 70%, #ecdfcc 100%);
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --card: #1f1b17;
    --ink: #f3ece2;
    --muted: #a99d8e;
    --line: #2e2822;
    --accent: #ff6a4a;
    --accent-ink: #1a0d08;
    --stage: radial-gradient(120% 90% at 50% 38%, #3a3129 0%, #241e19 55%, #15120f 100%);
    --pic: radial-gradient(90% 80% at 50% 45%, #3a3129 0%, #26201b 70%, #1f1b17 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[lang="ckb"] body { font-family: "Noto Sans Arabic", Inter, system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- menu list ---------- */
#list {
  max-width: 760px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 32px;
}
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 800 15px/1 Inter, sans-serif; letter-spacing: .5px;
}
h1 { font-size: 22px; font-weight: 800; line-height: 1.25; }
#intro { color: var(--muted); font-size: 14px; margin-top: 2px; }
.lang {
  flex: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600;
}

.steps {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.steps li {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 10px 12px; font-size: 12.5px; line-height: 1.4; color: var(--muted);
}
.steps b {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  font-size: 13px;
}

.grid {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.card:active { transform: scale(.98); }
.pic { position: relative; aspect-ratio: 1; background: var(--pic); }
.pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pill {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: var(--ink); color: var(--bg);
  font: 700 11px/1 Inter, sans-serif; letter-spacing: .3px;
  padding: 6px 8px; border-radius: 999px;
}
.card h3 { font-size: 15px; font-weight: 700; line-height: 1.35; padding: 10px 12px 0; }
.card p { font-size: 13px; color: var(--muted); padding: 2px 12px 12px; }
.foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- one dish ---------- */
#dish { min-height: 100svh; display: flex; flex-direction: column; }
model-viewer {
  width: 100%; height: 58svh; min-height: 320px;
  background: var(--stage);
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
}
.back {
  position: fixed; top: max(14px, env(safe-area-inset-top)); inset-inline-start: 14px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  border: 0; border-radius: 999px; padding: 8px 14px 8px 10px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
}
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .back svg { transform: scaleX(-1); }
[dir="rtl"] .back { padding: 8px 10px 8px 14px; }

.sheet {
  position: relative; flex: 1;
  margin-top: -22px; padding: 22px 16px max(24px, env(safe-area-inset-bottom));
  background: var(--bg); border-radius: 22px 22px 0 0;
  max-width: 760px; width: 100%; align-self: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.chip.soft { background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.sheet h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-top: 12px; }
.about { color: var(--muted); margin-top: 4px; }
.cta {
  margin-top: 20px; width: 100%; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 17px; font-weight: 800;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: nudge 2.6s ease-in-out 1s infinite;
}
.cta:active { transform: scale(.98); }
.cta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateY(-3px); } 96% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .cta { animation: none; } }
.hint { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.qrbox {
  margin-top: 20px; display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.qrbox img { width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.qrbox p { font-size: 15px; font-weight: 600; }
