:root {
  --bg: #f4f0e8;
  --card: #fffdf9;
  --ink: #1d1a16;
  --soft: #857c6f;
  --line: rgba(29, 26, 22, 0.08);
  --accent: #d6482a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #faf7f1, var(--bg));
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
}

.menu {
  width: min(384px, 100%);
  padding: 16px 14px 8px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, var(--card));
  box-shadow:
    inset 0 0 0 1px rgba(29, 26, 22, 0.06),
    0 1px 2px rgba(29, 26, 22, 0.05),
    0 16px 32px -16px rgba(60, 40, 20, 0.22),
    0 40px 70px -40px rgba(60, 40, 20, 0.3);
}

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 6px 12px; }
.head__brand { font-size: 11.5px; font-weight: 560; color: var(--soft); letter-spacing: 0.02em; }
.head__title { font-size: 21px; line-height: 26px; font-weight: 680; font-stretch: 108%; letter-spacing: -0.015em; }
.head__fit { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.head__n { height: 26px; overflow: hidden; font-size: 21px; line-height: 26px; font-weight: 700; color: var(--ink); }
.head__n span { display: block; }

/* ---- the chips: what to leave out ---- */
.chips { display: flex; gap: 6px; padding: 0 2px 10px; }
.chip {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(29, 26, 22, 0.05);
  box-shadow: inset 0 0 0 1px rgba(29, 26, 22, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 580;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.chip svg { flex: none; width: 0; height: 13px; opacity: 0; transition: width 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s ease, margin 0.35s ease; }
.chip path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: #fffdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 12px -6px rgba(29, 26, 22, 0.6);
}
.chip[aria-pressed="true"] svg { width: 13px; opacity: 1; margin-right: 4px; }
.chip:active, .chip.is-pressed { transform: scale(0.95); }
.chip.is-hot:not([aria-pressed="true"]) { background: rgba(29, 26, 22, 0.1); }
@media (hover: hover) { .chip:hover:not([aria-pressed="true"]) { background: rgba(29, 26, 22, 0.1); } }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the dishes ---- */
.dishes { list-style: none; }
.dish { border-top: 1px solid var(--line); }
.dish__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "tags price";
  align-items: center;
  column-gap: 12px;
  min-height: 46px;
  padding: 5px 6px;
  transition: opacity 0.45s ease;
}
.dish__name { grid-area: name; font-size: 14.5px; line-height: 19px; font-weight: 620; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.45s ease; }
.dish__tags { grid-area: tags; display: flex; gap: 8px; font-size: 11.5px; line-height: 15px; color: var(--soft); }
.dish__tags span { transition: color 0.3s ease, font-weight 0.3s ease; }
.dish__price { grid-area: price; font-size: 14.5px; font-weight: 640; transition: opacity 0.45s ease; }
.dish__free { color: #5d7a3c; }
.dish.is-out .dish__name { color: #b3ab9f; }
.dish.is-out .dish__price { opacity: 0.35; }
.dish.is-out .dish__tags span { opacity: 0.6; }
.dish__tags span.is-hit { color: var(--accent); font-weight: 680; opacity: 1 !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-height: 420px) {
  .menu { padding-top: 12px; }
  .head { padding-bottom: 8px; }
  .dish__in { min-height: 43px; padding: 3px 6px; }
}
@media (max-width: 360px) {
  .chip { padding: 0 6px; font-size: 12.5px; }
  .head__l { display: none; }
}

/* on a big screen the whole card is shown larger */
@media (min-width: 900px) and (min-height: 680px) {
  .menu { zoom: 1.3; }
}
