/* Customer-facing screens: self-service kiosk, ordering app, order tracking and the "order ready" board.
   Colours and fonts come from the restaurant settings (see core/theme.py). Food photos carry the warmth,
   so the chrome stays white and quiet; the one bold moment is the kiosk welcome screen. */

.c-body { background: var(--surface); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.c-body button { font: inherit; color: inherit; cursor: pointer; }
.c-hidden { display: none !important; }
.c-price { font-weight: 700; color: var(--palm); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.c-kcal { color: var(--muted); font-size: .85em; }
.c-currency { font-size: .78em; font-weight: 600; }

/* Food photo, or a deliberate stand-in when the restaurant has not uploaded one yet. */
.c-photo { position: relative; overflow: hidden; background: var(--palm-50); }
.c-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-photo.is-empty {
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cat, var(--palm)) 82%, #000) var(--pattern);
}
.c-photo.is-empty span { font-family: var(--font-display); color: rgba(255, 255, 255, .92); font-size: 2.6em; font-weight: 700; line-height: 1; }

/* Buttons */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0;
  border-radius: 16px; padding: 16px 24px; font-weight: 700; font-size: 1.05rem; background: var(--surface-2);
  transition: transform .08s ease, background-color .15s;
}
.c-btn:active { transform: scale(.98); }
.c-btn-primary { background: var(--palm); color: #fff !important; }
.c-btn-primary:disabled { background: var(--line-strong); }
.c-btn-ghost { background: transparent; color: var(--muted) !important; }
.c-btn-block { width: 100%; }
.c-round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.c-round .icon { width: 22px; height: 22px; }

/* Quantity stepper */
.c-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 99px; padding: 4px; }
.c-stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.3rem; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.c-stepper span { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Item sheet (shared by kiosk and app) */
.c-sheet-back {
  position: fixed; inset: 0; z-index: 40; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center;
  animation: c-fade .18s ease;
}
.c-sheet {
  background: var(--surface); width: 100%; max-width: 760px; max-height: 94vh; display: flex; flex-direction: column;
  border-radius: 28px 28px 0 0; overflow: hidden; animation: c-rise .22s cubic-bezier(.2, .8, .2, 1);
}
.c-sheet-scroll { overflow-y: auto; flex: 1; }
.c-sheet .c-photo { aspect-ratio: 16 / 9; }
.c-sheet .c-photo.is-empty span { font-size: 6rem; }
.c-sheet-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; background: rgba(255, 255, 255, .94); }
.c-sheet-head { padding: 20px 24px 8px; }
.c-sheet-head h2 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 4px; }
.c-sheet-head p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.c-group { padding: 14px 24px 6px; border-top: 8px solid var(--surface-2); }
.c-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.c-group-head h3 { margin: 0; font-size: 1.1rem; }
.c-tag { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.c-tag.is-required { background: var(--saffron-50); color: var(--saffron-700); }
.c-tag.is-done { background: var(--palm-50); color: var(--palm); }
.c-option {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 4px; border: 0; background: none;
  border-bottom: 1px solid var(--line); text-align: start; font-size: 1.05rem;
}
.c-option:last-child { border-bottom: 0; }
.c-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; display: grid; place-items: center; }
.c-option.is-multi .c-mark { border-radius: 8px; }
.c-option.is-on .c-mark { background: var(--palm); border-color: var(--palm); color: #fff; }
.c-option .c-mark .icon { width: 16px; height: 16px; stroke-width: 3; opacity: 0; }
.c-option.is-on .c-mark .icon { opacity: 1; }
.c-option .c-extra { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.c-note { padding: 14px 24px 20px; border-top: 8px solid var(--surface-2); }
.c-note input { border-radius: 14px; padding: 14px 16px; }
.c-sheet-foot { display: flex; gap: 14px; align-items: center; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.c-sheet-foot .c-btn { flex: 1; justify-content: space-between; }

@keyframes c-fade { from { opacity: 0; } }
@keyframes c-rise { from { transform: translateY(40px); opacity: .4; } }
@keyframes c-bump { 50% { transform: scale(1.04); } }

/* ===================== Self-service kiosk ===================== */

.k-body { overflow: hidden; height: 100vh; user-select: none; }
.k-screen { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* The one bold moment: the welcome screen. */
.k-welcome { background: var(--palm) var(--pattern); color: #fff; align-items: center; justify-content: center; text-align: center; padding: 6vh 6vw; gap: 5vh; }
.k-welcome-mark { width: clamp(84px, 12vh, 140px); height: clamp(84px, 12vh, 140px); border-radius: 30%; background: #fff; display: grid; place-items: center; padding: clamp(12px, 1.8vh, 24px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.k-welcome-mark img { width: 100%; height: 100%; object-fit: contain; justify-self: stretch; align-self: stretch; min-width: 0; min-height: 0; }
.k-welcome-mark span { font-family: var(--font-display); font-size: 3.6rem; color: var(--palm); font-weight: 700; }
.k-welcome h1 { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 7.5rem); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.k-welcome p { font-size: clamp(1.2rem, 2.4vw, 1.9rem); margin: 0; color: var(--on-brand-soft); }
.k-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; width: min(100%, 900px); }
.k-choice {
  background: #fff; color: var(--ink) !important; border: 0; border-radius: 32px; padding: 5vh 2vw;
  display: flex; flex-direction: column; align-items: center; gap: 2.4vh; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 700;
  font-family: var(--font-display); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
}
.k-choice:active { transform: scale(.97); }
.k-choice .icon { width: clamp(64px, 10vw, 120px); height: clamp(64px, 10vw, 120px); color: var(--palm); stroke-width: 1.4; }
.k-lang { background: rgba(255, 255, 255, .14); color: #fff !important; border: 0; border-radius: 99px; padding: 12px 26px; font-size: 1.15rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

/* Menu */
.k-menu { background: var(--bg); }
.k-top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.k-top .k-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; flex: 1; }
.k-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; border: 0; background: var(--palm-50); color: var(--palm) !important; font-weight: 700; }
.k-main { flex: 1; display: grid; grid-template-columns: 200px 1fr; min-height: 0; }
.k-rail { overflow-y: auto; background: var(--surface); border-inline-end: 1px solid var(--line); padding: 14px 10px 120px; display: flex; flex-direction: column; gap: 8px; }
.k-cat { border: 0; background: none; border-radius: 22px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; text-align: center; }
.k-cat .c-photo { width: 92px; height: 92px; border-radius: 26px; }
.k-cat .c-photo.is-empty span { font-size: 2.4rem; }
.k-cat.is-active { background: var(--palm); color: #fff !important; }
.k-items { overflow-y: auto; padding: 22px 24px 140px; }
.k-items h2 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 18px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.k-item { border: 0; background: var(--surface); border-radius: 26px; overflow: hidden; text-align: start; padding: 0; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--shadow-hairline), 0 12px 30px -22px var(--shadow-tint); }
.k-item:active { transform: scale(.98); }
.k-item .c-photo { aspect-ratio: 4 / 3; }
.k-item-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.k-item-name { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.k-item-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.k-item-meta .c-price { font-size: 1.2rem; }
.k-count { position: absolute; top: 12px; inset-inline-start: 12px; min-width: 34px; height: 34px; border-radius: 99px; background: var(--saffron); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; padding: 0 8px; }

.k-bar {
  position: fixed; inset-inline: 24px; bottom: 22px; z-index: 30; border: 0; border-radius: 24px; padding: 20px 26px;
  background: var(--palm); color: #fff !important; display: flex; align-items: center; gap: 16px; font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 18px 40px -16px var(--shadow-tint);
}
.k-bar.bump { animation: c-bump .3s ease; }
.k-bar .k-bar-count { background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 4px 12px; }
.k-bar .k-bar-label { flex: 1; text-align: start; }

/* Review */
.k-review { background: var(--bg); }
.k-review-body { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: 16px; align-content: start; max-width: 900px; width: 100%; margin: 0 auto; }
.k-line { background: var(--surface); border-radius: 22px; padding: 16px; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; }
.k-line .c-photo { width: 96px; height: 96px; border-radius: 18px; }
.k-line .c-photo.is-empty span { font-size: 2.2rem; }
.k-line-name { font-weight: 700; font-size: 1.15rem; }
.k-line-mods { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.k-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.k-summary { background: var(--surface); border-radius: 22px; padding: 20px; display: grid; gap: 14px; }
.k-summary label { font-weight: 600; display: grid; gap: 8px; }
.k-summary input { font-size: 1.15rem; padding: 16px; border-radius: 14px; }
.k-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.5rem; font-weight: 800; }
.k-review-foot { padding: 18px 24px 24px; background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 14px; }
.k-review-foot .c-btn { font-size: 1.25rem; padding: 22px; }
.k-review-foot .c-btn-primary { flex: 1; }

/* Done */
.k-done { background: var(--palm) var(--pattern); color: #fff; align-items: center; justify-content: center; text-align: center; gap: 3vh; padding: 6vw; }
.k-done p { font-size: clamp(1.3rem, 3vw, 2rem); margin: 0; color: var(--on-brand-soft); }
.k-done .k-number { font-family: var(--font-display); font-size: clamp(8rem, 30vw, 18rem); line-height: .9; font-weight: 700; color: #fff; }
.k-done .k-pay { background: var(--saffron); color: var(--on-accent); border-radius: 22px; padding: 18px 30px; font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; }
.k-done .c-btn { background: rgba(255, 255, 255, .14); color: #fff !important; font-size: 1.2rem; padding: 18px 32px; }

/* Idle prompt */
.k-idle { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: grid; place-items: center; }
.k-idle-box { background: var(--surface); border-radius: 28px; padding: 36px; width: min(90vw, 520px); text-align: center; display: grid; gap: 18px; }
.k-idle-box h2 { font-family: var(--font-display); font-size: 2rem; margin: 0; }
.k-idle-box .k-idle-count { font-size: 3rem; font-weight: 800; color: var(--palm); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .k-main { grid-template-columns: 112px 1fr; }
  .k-cat .c-photo { width: 64px; height: 64px; border-radius: 18px; }
  .k-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ===================== Ordering app (phones) ===================== */

.a-body { background: var(--bg); min-height: 100vh; }
.a-cover { background: var(--palm) var(--pattern); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 18px 22px; }
.a-cover-row { display: flex; align-items: center; gap: 12px; }
.a-logo { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.a-logo img { width: 80%; height: 80%; object-fit: contain; }
.a-logo span { font-family: var(--font-display); font-size: 1.8rem; color: var(--palm); font-weight: 700; }
.a-title { flex: 1; min-width: 0; }
.a-title h1 { font-family: var(--font-display); font-size: 1.6rem; margin: 0; line-height: 1.2; }
.a-title p { margin: 2px 0 0; color: var(--on-brand-muted); font-size: .92rem; }
.a-lang { background: rgba(255, 255, 255, .16); color: #fff !important; border: 0; border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: .9rem; }
.a-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; background: rgba(0, 0, 0, .16); border-radius: 16px; padding: 4px; }
.a-mode button { border: 0; background: none; color: var(--on-brand-soft) !important; padding: 11px; border-radius: 12px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.a-mode button.is-on { background: #fff; color: var(--palm) !important; }

.a-tools { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.a-search { padding: 12px 16px 6px; }
.a-search input { border-radius: 14px; background: var(--surface-2); border-color: transparent; padding: 12px 16px; }
.a-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 12px; scrollbar-width: none; }
.a-chips::-webkit-scrollbar { display: none; }
.a-chip { flex-shrink: 0; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.a-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff !important; }

.a-menu { padding: 8px 16px 130px; max-width: 760px; margin: 0 auto; }
.a-section h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 22px 0 6px; scroll-margin-top: 130px; }
.a-item { width: 100%; border: 0; background: none; display: grid; grid-template-columns: 1fr 104px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: start; align-items: center; }
.a-item-name { font-weight: 700; font-size: 1.04rem; }
.a-item-desc { color: var(--muted); font-size: .9rem; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-item-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.a-item .c-photo { width: 104px; height: 104px; border-radius: 20px; }
.a-item .c-photo.is-empty span { font-size: 2.4rem; }
.a-add { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--palm); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.a-add .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.a-qty { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 26px; height: 26px; border-radius: 99px; background: var(--saffron); color: var(--on-accent); font-weight: 800; font-size: .85rem; display: grid; place-items: center; padding: 0 6px; }
.a-empty { color: var(--muted); text-align: center; padding: 40px 0; }

.a-bar {
  position: fixed; inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20; border: 0; border-radius: 18px;
  padding: 16px 18px; background: var(--palm); color: #fff !important; display: flex; align-items: center; gap: 12px; font-weight: 700;
  box-shadow: 0 14px 30px -12px var(--shadow-tint); max-width: 732px; margin: 0 auto;
}
.a-bar.bump { animation: c-bump .3s ease; }
.a-bar .a-bar-count { background: rgba(255, 255, 255, .2); border-radius: 10px; padding: 2px 10px; }
.a-bar .a-bar-label { flex: 1; text-align: start; }

.a-page-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.a-page-head h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; flex: 1; }
.a-lines { padding: 0 20px; }
.a-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.a-line-mods { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; margin-top: -4px; }
.a-form { padding: 6px 20px 8px; display: grid; gap: 4px; }
.a-form .field input, .a-form .field textarea { border-radius: 14px; padding: 13px 14px; }
.a-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-seg button { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 14px; padding: 12px; font-weight: 700; display: inline-flex; gap: 8px; justify-content: center; align-items: center; }
.a-seg button.is-on { border-color: var(--palm); background: var(--palm-50); color: var(--palm) !important; }
.a-totals { padding: 12px 20px; display: grid; gap: 6px; }
.a-totals div { display: flex; justify-content: space-between; color: var(--muted); }
.a-totals .a-grand { color: var(--ink); font-size: 1.25rem; font-weight: 800; }
.a-error { margin: 8px 20px 0; }
.a-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Order tracking */
.t-wrap { max-width: 560px; margin: 0 auto; padding: 0 18px 40px; }
.t-number { text-align: center; padding: 26px 0 8px; }
.t-number span { display: block; color: var(--muted); }
.t-number b { font-family: var(--font-display); font-size: 5.5rem; color: var(--palm); line-height: 1; }
.t-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 0; }
.t-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.t-step:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 19px; top: 44px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-strong);
}
.t-step.is-done:not(:last-child)::after { background: var(--palm); }
.t-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; background: var(--surface); }
.t-step .t-label { padding: 8px 0 26px; font-weight: 600; }
.t-step.is-done { color: var(--ink); }
.t-step.is-done .t-dot { background: var(--palm); border-color: var(--palm); color: #fff; }
.t-step.is-now .t-dot { border-color: var(--saffron); background: var(--saffron); color: var(--on-accent); box-shadow: 0 0 0 6px var(--saffron-50); }
.t-step.is-now { color: var(--ink); }
.t-step.is-now .t-label { font-size: 1.15rem; font-weight: 800; }
.t-cancelled { text-align: center; color: var(--danger); font-weight: 700; padding: 20px; }
.t-card { background: var(--surface); border-radius: 20px; padding: 16px 18px; }

/* ===================== "Order ready" board ===================== */

.d-body { background: var(--kds-bg); color: #fff; height: 100vh; overflow: hidden; }
.d-wrap { height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.d-head { display: flex; align-items: center; gap: 18px; padding: 2.4vh 3vw; background: var(--palm) var(--pattern); }
.d-head .a-logo { width: 7vh; height: 7vh; border-radius: 2vh; }
.d-head h1 { font-family: var(--font-display); font-size: 4.2vh; margin: 0; flex: 1; }
.d-head .d-clock { font-size: 4vh; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-cols { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 0; }
.d-col { padding: 3vh 3vw; display: flex; flex-direction: column; min-height: 0; }
.d-col + .d-col { border-inline-start: 2px solid rgba(255, 255, 255, .08); }
.d-col h2 { font-size: 3.6vh; margin: 0 0 3vh; color: var(--on-brand-muted); font-weight: 700; }
.d-col.is-ready h2 { color: var(--accent-light); }
.d-nums { display: flex; flex-wrap: wrap; gap: 2vh 2vw; align-content: flex-start; }
.d-num { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.d-col:not(.is-ready) .d-num { font-size: 7vh; color: var(--on-brand-faint); min-width: 12vh; }
.d-col.is-ready .d-num { font-size: 11vh; background: var(--saffron); color: var(--on-accent); border-radius: 3vh; padding: 1vh 3vh; min-width: 22vh; text-align: center; }
.d-num.is-new { animation: c-bump .6s ease 3; }

/* ===================== Ordering app in the website's colours =====================
   The app and the tracking page continue the restaurant's website: dark page, the brand colour behind
   the name, food on dark cards, and the highlight colour for prices and every "add" or "order" action.
   The --w-* colours come from the website settings (website/palette.py). Remapping the theme variables
   here lets the shared rules above (item sheet, steppers, forms) follow without rewriting them. */

.a-body, .k-body {
  --bg: var(--w-dark); --surface: var(--w-dark-2); --surface-2: color-mix(in srgb, var(--w-dark-2) 86%, #fff);
  --ink: #fff6ea; --muted: rgba(255, 246, 234, .66);
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .18);
  --palm: var(--w-hi); --palm-700: var(--w-hi); --palm-50: color-mix(in srgb, var(--w-hi) 16%, transparent);
  --saffron: var(--w-hi); --on-accent: var(--w-on-hi); --saffron-700: var(--w-hi); --saffron-50: color-mix(in srgb, var(--w-hi) 22%, transparent);
  --overlay: rgba(0, 0, 0, .62);
  --font-display: "Cairo", var(--font);
  background: var(--w-dark); color: var(--ink);
}
.a-body h1, .a-body h2, .a-body h3, .k-body h1, .k-body h2, .k-body h3 { font-weight: 700; }
.a-body input, .a-body textarea, .k-body input { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.a-body input::placeholder, .a-body textarea::placeholder, .k-body input::placeholder { color: rgba(255, 246, 234, .4); }
.k-body .c-btn-primary, .k-body .k-bar, .k-body .k-cat.is-active { background: var(--w-hi); color: var(--w-on-hi) !important; }
.k-body .c-btn-primary:disabled { background: var(--surface-2); color: var(--muted) !important; }
.k-body .c-option.is-on .c-mark { color: var(--w-on-hi); }
.k-body .c-sheet-close { background: rgba(0, 0, 0, .55); color: #fff6ea; }
.k-body .c-stepper button { background: var(--w-dark); color: var(--ink); }

/* Cover: the name on the brand colour, like the website's hero */
.a-body .a-cover {
  position: relative; overflow: hidden; padding-bottom: 26px;
  background: radial-gradient(ellipse 90% 120% at 85% 0%, var(--w-brand), var(--w-brand-deep) 80%);
}
[dir=rtl] .a-body .a-cover { background: radial-gradient(ellipse 90% 120% at 15% 0%, var(--w-brand), var(--w-brand-deep) 80%); }
.a-body .a-logo { background: rgba(0, 0, 0, .22); border-radius: 18px; }
.a-body .a-logo img { width: 86%; height: 86%; }
.a-body .a-logo span { color: var(--w-hi); }
.a-body .a-title h1 { font-size: 1.7rem; }
.a-body .a-title p { color: rgba(255, 246, 234, .82); }
.a-body .a-lang { background: rgba(0, 0, 0, .22); }
.a-body .a-mode { background: rgba(0, 0, 0, .25); }
.a-body .a-mode button.is-on { background: var(--w-hi); color: var(--w-on-hi) !important; }

/* Search and section chips on the dark bar */
.a-body .a-tools { background: var(--w-dark); border-bottom-color: var(--line); }
.a-body .a-chip { background: rgba(255, 255, 255, .07); border-color: transparent; }
.a-body .a-chip.is-active { background: var(--w-hi); border-color: var(--w-hi); color: var(--w-on-hi) !important; }

/* Menu items as cards with the photo on top, as on the website */
.a-body .a-menu { max-width: 980px; }
.a-body .a-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-body .a-section h2 { grid-column: 1 / -1; font-size: 1.5rem; margin: 22px 0 2px; }
.a-body .a-item {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 8px 8px 14px;
  border: 0; border-radius: 20px; background: var(--w-brand-deep); box-shadow: 0 18px 34px -26px rgba(0, 0, 0, .9);
  transition: transform .15s;
}
.a-body .a-item:active { transform: scale(.98); }
.a-body .a-item > span:first-child { padding: 0 4px; display: grid; gap: 4px; }
.a-body .a-item > span:last-child { display: block; }
.a-body .a-item .c-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
.a-body .a-item-name { font-size: 1rem; line-height: 1.35; }
.a-body .a-item-desc { margin: 0; font-size: .84rem; }
.a-body .a-item-meta { gap: 2px 8px; }
.a-body .a-item-meta .c-price { font-family: var(--font-display); font-size: 1.2rem; }
.a-body .a-add { width: 38px; height: 38px; bottom: 8px; inset-inline-end: 8px; background: var(--w-hi); color: var(--w-on-hi); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.a-body .a-qty { top: 8px; inset-inline-start: 8px; }

/* Every "go ahead" action in the highlight colour, with dark text */
.a-body .a-bar, .a-body .c-btn-primary { background: var(--w-hi); color: var(--w-on-hi) !important; }
.a-body .a-bar { border-radius: 99px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); }
.a-body .a-bar .a-bar-count { background: rgba(0, 0, 0, .14); }
.a-body .c-btn-primary:disabled { background: var(--surface-2); color: var(--muted) !important; }
.a-body .c-btn-primary { border-radius: 99px; }
.a-body .c-option.is-on .c-mark { color: var(--w-on-hi); }
.a-body .c-sheet-close { background: rgba(0, 0, 0, .55); color: #fff6ea; }
.a-body .c-stepper button { background: var(--w-dark); color: var(--ink); }
.a-body .a-totals .a-grand .c-price { font-size: 1.35rem; }

/* Tracking: done steps and the current step in the highlight colour */
.a-body .t-step.is-done .t-dot { color: var(--w-on-hi); }
.a-body .t-number b { color: var(--w-hi); }

@media (min-width: 640px) {
  .a-body .a-section { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Kiosk in the website's colours: the welcome and "done" screens on the brand colour with rising embers,
   the menu dark with food on deep-red cards, every "go" in the highlight colour. */
.k-body .k-welcome, .k-body .k-done {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--w-brand), var(--w-brand-deep) 80%);
}
.k-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.k-embers i {
  position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; opacity: 0;
  background: var(--w-hi); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--w-hi) 70%, transparent);
  animation: k-ember 8s linear infinite;
}
.k-embers i:nth-child(1) { inset-inline-start: 12%; animation-delay: 0s; }
.k-embers i:nth-child(2) { inset-inline-start: 24%; animation-delay: 2.2s; width: 4px; height: 4px; }
.k-embers i:nth-child(3) { inset-inline-start: 38%; animation-delay: 4.1s; }
.k-embers i:nth-child(4) { inset-inline-start: 55%; animation-delay: 1.1s; width: 4px; height: 4px; }
.k-embers i:nth-child(5) { inset-inline-start: 68%; animation-delay: 5.6s; }
.k-embers i:nth-child(6) { inset-inline-start: 80%; animation-delay: 3.2s; width: 5px; height: 5px; }
.k-embers i:nth-child(7) { inset-inline-start: 90%; animation-delay: 6.5s; width: 4px; height: 4px; }
.k-embers i:nth-child(8) { inset-inline-start: 46%; animation-delay: 7.2s; width: 3px; height: 3px; }
@keyframes k-ember { 0% { opacity: 0; transform: none; } 10% { opacity: .9; } 70% { opacity: .6; } 100% { opacity: 0; transform: translate(-40px, -95vh); } }
.k-body .k-welcome { gap: 2.6vh; }
.k-body .k-welcome-mark { background: var(--w-dark); }
.k-body .k-welcome-mark span { color: var(--w-hi); }
.k-welcome-photo {
  width: min(70vw, 38vh); aspect-ratio: 1; object-fit: cover; margin: -3vh 0;
  -webkit-mask-image: radial-gradient(circle at 50% 54%, #000 36%, transparent 64%);
  mask-image: radial-gradient(circle at 50% 54%, #000 36%, transparent 64%);
}
.k-body .k-welcome p, .k-body .k-done p { color: rgba(255, 246, 234, .88); }
.k-body .k-choice { background: var(--w-dark); color: #fff6ea !important; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.k-body .k-choice .icon { color: var(--w-hi); }
.k-body .k-lang { background: rgba(0, 0, 0, .25); }
.k-body .k-top { background: var(--w-dark); border-bottom-color: var(--line); }
.k-body .k-top .a-logo, .k-body .k-top .k-logo { background: rgba(0, 0, 0, .22); }
.k-body .k-rail { background: var(--w-dark); border-inline-end-color: var(--line); }
.k-body .k-item { background: var(--w-brand-deep); box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .9); }
.k-body .k-item-meta .c-price { font-family: var(--font-display); font-size: 1.4rem; }
.k-body .k-bar { border-radius: 99px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); }
.k-body .k-bar .k-bar-count { background: rgba(0, 0, 0, .14); }
.k-body .k-done .k-number { color: #fff6ea; }
.k-body .k-done .k-pay.is-paid { background: #fff6ea; color: var(--w-dark); }

/* Paying by phone: the QR on a white card, the total and a live clock beside it */
.k-body .k-paying {
  position: relative; overflow: hidden; isolation: isolate; color: #fff6ea;
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; justify-content: center;
  gap: 5vw; padding: 6vh 6vw;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--w-brand), var(--w-brand-deep) 80%);
}
.k-qr { background: #fff; border-radius: 28px; padding: 18px; width: min(46vh, 80vw); aspect-ratio: 1; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); transition: opacity .3s; }
.k-qr svg { width: 100%; height: 100%; display: block; }
.k-qr.is-over { opacity: .2; }
.k-paying-text { display: grid; gap: 1.6vh; max-width: 36ch; }
.k-paying-text h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.2; margin: 0; }
.k-paying-text p { margin: 0; font-size: clamp(1.1rem, 2vw, 1.5rem); color: rgba(255, 246, 234, .86); }
.k-paying-total { font-weight: 700; }
.k-paying-total .c-price { color: var(--w-hi); font-size: 1.5em; font-family: var(--font-display); }
.k-wait { display: inline-flex; align-items: center; gap: 12px; }
.k-wait i { width: 12px; height: 12px; border-radius: 50%; background: var(--w-hi); animation: s-pulse-k 1.6s infinite; }
.k-wait .num { margin-inline-start: auto; font-weight: 700; color: #fff6ea; font-variant-numeric: tabular-nums; }
@keyframes s-pulse-k { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.k-paying-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2vh; }
.k-paying-actions .c-btn:not(.c-btn-primary) { background: rgba(0, 0, 0, .25); color: #fff6ea !important; }
@media (orientation: portrait), (max-width: 760px) {
  .k-body .k-paying { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; align-content: center; }
  .k-paying-text { justify-items: center; }
  .k-paying-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .k-wait i { animation: none; } }
.k-body .k-done .c-btn { background: rgba(0, 0, 0, .25); color: #fff6ea !important; }

@media (prefers-reduced-motion: reduce) {
  .k-embers { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .c-sheet, .c-sheet-back, .k-bar.bump, .a-bar.bump, .d-num.is-new { animation: none; }
}

/* Arriving from the restaurant website: the pages fade into each other */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}
