/* =========================================================
   Customer menu (phone)
   ========================================================= */
.menu-page {
  background: var(--paper);
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: calc(120px + var(--safe-b));
  position: relative;
}

/* faint paper grain */
.menu-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0 0.15 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app > * {
  position: relative;
  z-index: 1;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark svg {
  display: block;
}

.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.table-pill b {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 15px;
}

.lang-btn {
  height: 34px;
  min-width: 40px;
  padding: 0 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 600;
  font-size: 13px;
  transition: background-color 0.2s;
}

.lang-btn:active {
  background: var(--paper-2);
}

/* ---------- welcome ---------- */
.welcome {
  padding: 22px 20px 8px;
}

.welcome-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 9vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: 'opsz' 120;
}

html[lang='ar'] .welcome-title {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  font-size: clamp(28px, 8vw, 34px);
}

.welcome-sub {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 36ch;
}

.service-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition:
    transform 0.18s var(--ease),
    background-color 0.2s;
}

.service-btn:active {
  transform: scale(0.96);
}

.service-btn .ic {
  color: var(--accent);
}

.service-btn.is-on {
  background: var(--olive-soft);
  box-shadow: inset 0 0 0 1px #cdd5b4;
}

.service-btn.is-on .ic {
  color: var(--olive);
}

/* ---------- notices ---------- */
.notice {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 500;
  font-size: 14px;
}

/* ---------- live order strip ---------- */
.live-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 40px);
  margin: 16px 20px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
  text-align: start;
  animation: rise 0.5s var(--ease) both;
}

.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--gold);
  opacity: 0;
  animation: ping 1.8s var(--ease) infinite;
}

.live-dot[data-s='preparing'] {
  background: var(--accent);
}
.live-dot[data-s='preparing']::after {
  color: var(--accent);
}
.live-dot[data-s='ready'],
.live-dot[data-s='served'] {
  background: var(--olive);
}
.live-dot[data-s='ready']::after {
  color: var(--olive);
}
.live-dot[data-s='served']::after,
.live-dot[data-s='rejected']::after {
  display: none;
}
.live-dot[data-s='rejected'] {
  background: var(--danger);
}

.live-text {
  flex: 1;
  min-width: 0;
}

.live-title {
  font-weight: 600;
  font-size: 14px;
}

.live-sub {
  font-size: 13px;
  color: var(--ink-3);
}

.live-strip .ic {
  color: var(--ink-3);
}

html[dir='rtl'] .live-strip .ic,
html[dir='rtl'] .flip-rtl {
  transform: scaleX(-1);
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- category chips ---------- */
.cats {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 18px;
  background: rgba(20, 17, 15, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.cats.is-stuck {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cats-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 20px;
  scroll-padding-inline: 20px;
}

.cats-inner::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: none;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.cat-chip:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.cat-chip.is-active {
  background: var(--accent);
  color: #1a120a;
  font-weight: 700;
  box-shadow: 0 4px 18px -4px rgba(224, 164, 88, 0.5);
  border-color: rgba(224, 164, 88, 0.5);
}

/* ---------- menu sections ---------- */
.menu {
  padding: 4px 0 0;
}

.section {
  padding: 22px 20px 4px;
  scroll-margin-top: 58px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

html[lang='ar'] .section-title {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0;
}

.section-count {
  font-size: 13px;
  color: var(--ink-3);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

/* ---------- item row ---------- */
.item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.item:last-child {
  border-bottom: 0;
}

.item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang='ar'] .tag {
  letter-spacing: 0;
  font-size: 12px;
}

.tag + .tag::before {
  content: '·';
  margin-inline-end: 6px;
  color: var(--ink-3);
}

.item-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.item-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.price {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.price small {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-2);
  margin-inline-start: 4px;
}

.item-media {
  position: relative;
  flex: none;
  width: 116px;
  height: 116px;
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--paper-2);
}

.item-media .add {
  position: absolute;
  bottom: -6px;
  inset-inline-end: -6px;
}

/* add control */
.add {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
  transition: all 0.25s var(--ease);
}

.add-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  transition: transform 0.15s var(--ease);
}

.add-btn:active {
  transform: scale(0.86);
}

.add.has-qty {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--sh-2);
}

.add.has-qty .add-btn {
  color: var(--paper);
}

.add-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.add.bump {
  animation: bump 0.35s var(--ease-spring);
}

@keyframes bump {
  40% {
    transform: scale(1.12);
  }
}

/* sold out */
.item.is-out {
  cursor: default;
}

.item.is-out .item-name,
.item.is-out .item-desc,
.item.is-out .price {
  color: var(--ink-3);
}

.item.is-out .item-media img {
  filter: grayscale(1) opacity(0.55);
}

.out-label {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.item-media .out-label {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: rgba(34, 29, 25, 0.94);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

html[dir='rtl'] .item-media .out-label {
  transform: translateX(50%);
}

/* ---------- footer ---------- */
.foot {
  padding: 36px 20px 10px;
}

/* ---------- floating cart bar ---------- */
.cartbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b));
  pointer-events: none;
  transform: translateY(130%);
  transition: transform 0.45s var(--ease-spring);
}

.cartbar-wrap.show {
  transform: none;
}

.cartbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 528px;
  margin: 0 auto;
  height: 60px;
  padding: 0 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2b221a, #1a140f);
  border: 1px solid rgba(224, 164, 88, 0.45);
  color: var(--ink);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px -6px rgba(224, 164, 88, 0.35);
  transition: transform 0.18s var(--ease), box-shadow 0.2s;
}

.cartbar:active {
  transform: scale(0.985);
}

.cartbar-count {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--accent);
  color: #1a120a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cartbar-label {
  flex: 1;
  text-align: start;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.cartbar-total {
  padding-inline-end: 8px;
  font-weight: 600;
  font-size: 16px;
}

.cartbar.bump .cartbar-count {
  animation: bump 0.4s var(--ease-spring);
}

/* ---------- bottom sheet ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 20, 16, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-3);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.sheet.show {
  transform: translateY(0);
}

.sheet.dragging {
  transition: none;
}

.sheet-grab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: grid;
  place-items: center;
  z-index: 3;
  touch-action: none;
}

.sheet-grab span {
  width: 38px;
  height: 5px;
  border-radius: 9px;
  background: rgba(36, 26, 21, 0.18);
}

.sheet.has-media .sheet-grab span {
  background: rgba(255, 255, 255, 0.75);
}

.sheet-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 29, 25, 0.94);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  backdrop-filter: blur(8px);
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  flex: none;
  padding: 12px 20px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.sheet-foot:empty {
  display: none;
}

/* item sheet */
.isheet-media {
  aspect-ratio: 4 / 3;
  max-height: 46dvh;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--paper-2);
}

.isheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 0.8s var(--ease) both;
}

@keyframes zoomIn {
  from {
    transform: scale(1.06);
  }
}

.isheet-head {
  padding: 22px 20px 6px;
}

.sheet:not(.has-media) .isheet-head {
  padding-top: 40px;
}

.isheet-title {
  font-family: var(--f-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-inline-end: 40px;
}

html[lang='ar'] .isheet-title {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
}

.sheet.has-media .isheet-title {
  padding-inline-end: 0;
}

.isheet-desc {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.isheet-price {
  margin-top: 10px;
  font-size: 17px;
}

.opt-group {
  margin: 18px 20px 0;
  padding: 0;
  border: 0;
}

.opt-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 15px;
}

.opt-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-2);
}

.opt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt {
  position: relative;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.15s var(--ease);
}

.opt span:active {
  transform: scale(0.96);
}

.opt em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.opt input:checked + span {
  background: var(--accent);
  color: #1a120a;
  font-weight: 700;
  box-shadow: 0 4px 12px -2px rgba(224, 164, 88, 0.4);
}

.opt input:checked + span em {
  color: rgba(26, 18, 10, 0.8);
}

.opt input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note-field {
  display: block;
  margin: 20px 20px 24px;
}

.note-field textarea,
.note-input {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  resize: none;
  font-size: 15px;
  line-height: 1.4;
  transition: box-shadow 0.2s;
}

.note-field textarea:focus,
.note-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}

.foot-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-row .btn {
  flex: 1;
  justify-content: space-between;
}

.foot-row .btn .num {
  opacity: 0.85;
}

/* cart sheet */
.csheet-head {
  padding: 34px 20px 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.csheet-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

html[lang='ar'] .csheet-title {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
}

.csheet-table {
  color: var(--ink-3);
  font-size: 14px;
}

.cline {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  animation: rise 0.35s var(--ease) both;
}

.cline-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--paper-2);
}

.cline-thumb.ph {
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-3);
}

.cline-body {
  flex: 1;
  min-width: 0;
}

.cline-name {
  font-weight: 600;
  font-size: 15px;
}

.cline-opts,
.cline-note {
  font-size: 13px;
  color: var(--ink-3);
}

.cline-note {
  font-style: italic;
}

.cline-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cline-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cline .stepper {
  height: 34px;
}

.cline .stepper button {
  width: 34px;
  height: 34px;
}

.cline.is-out {
  opacity: 0.55;
}

.cart-note {
  padding: 16px 20px 6px;
}

.summary {
  padding: 14px 20px 22px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.sum-row span:last-child {
  font-weight: 600;
  color: var(--ink);
}

.sum-row.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
}

.sum-row.total span:last-child {
  color: var(--accent);
  font-size: 21px;
}

.sum-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.empty {
  padding: 56px 28px 40px;
  text-align: center;
}

.empty-art {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-3);
}

.empty h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
}

.empty p {
  margin-top: 6px;
  color: var(--ink-3);
}

.empty .btn {
  margin-top: 18px;
}

/* ---------- tracker ---------- */
.tsheet-head {
  padding: 34px 20px 6px;
}

.tcard {
  margin: 14px 20px 0;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  animation: rise 0.4s var(--ease) both;
}

.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tcard-no {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
}

.tcard-who {
  font-size: 12px;
  color: var(--ink-3);
}

.tcard-status {
  margin-top: 4px;
  font-weight: 600;
  font-size: 15px;
}

.tcard-status[data-s='rejected'] {
  color: var(--danger);
}

.tcard-status[data-s='ready'],
.tcard-status[data-s='served'] {
  color: var(--olive);
}

.tcard-reason {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0 6px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.step-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--paper-3);
  overflow: hidden;
  position: relative;
}

.step.done .step-bar {
  background: var(--ink);
}

.step.done {
  color: var(--ink);
}

.step.current .step-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: fill 1.6s var(--ease) infinite;
}

html[dir='rtl'] .step.current .step-bar::after {
  transform-origin: right;
}

@keyframes fill {
  0% {
    transform: scaleX(0);
  }
  70%,
  100% {
    transform: scaleX(1);
    opacity: 0.25;
  }
}

.tcard-lines {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.tcard-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tcard-lines li span:first-child {
  color: var(--ink-2);
}

.tcard-lines b {
  font-weight: 600;
  color: var(--ink);
}

.tcard-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tab-total {
  margin: 20px 20px 6px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.tab-total .num {
  font-size: 18px;
}

.tsheet-space {
  height: 16px;
}

/* ---------- boot ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
}

.boot-cup {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--line-2);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* desktop preview: frame the phone column */
@media (min-width: 720px) {
  .menu-page {
    background: var(--paper-2);
  }
  .app {
    background: var(--paper);
    min-height: 100dvh;
    box-shadow: 0 0 0 1px var(--line);
  }
}
