:root {
  --bg: #0c0b0a;
  --ink: #f8f4ee;
  --muted: #b9aea4;
  --red: #bd252c;
  --line: #352d2a;
  --panel: #181412;
  --nav-accent: #ef4b4f;
  --paper: #f4efe8;
  --paper-ink: #291e1c;
}

body { font-family: system-ui, "Segoe UI", "Microsoft YaHei", sans-serif; }
.brand-logo { width: 80px; height: auto; flex: none; mix-blend-mode: screen; }
.mast { background: #0c0b0afc; }
.mast-inner { padding-block: 6px; }
.mast-tools { min-width: 0; }
.mast-tools .chip, .mast-tools select, .menu-mode {
  min-height: 44px;
  max-width: 160px;
  font-size: .83rem;
  white-space: nowrap;
}
.history-top { overflow: hidden; text-overflow: ellipsis; }
.mast-tools .table-chip { border-color: #683233; background: #231521; }
.menu-mode { color: var(--muted); display: flex; align-items: center; }
.demo { background: #241614; color: #e1c7bb; padding: 3px 12px; }

.discovery { position: relative; gap: 8px; padding-bottom: 9px; }
.searchbox, .browse-button, .filter-control > summary {
  background: #1a1715;
  border: 1px solid #463732;
  border-radius: 7px;
  color: var(--ink);
}
.searchbox > span { color: #dbaca4; }
.searchbox input { min-height: 42px; padding: 5px 0; }
.browse-button, .filter-control > summary {
  min-height: 44px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
}
.filter-control > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.filter-control > summary::-webkit-details-marker, .paper-jumps summary::-webkit-details-marker { display: none; }
.filter-control[open] > summary { border-color: #d35a55; }
.filter-control .filterbar {
  position: absolute;
  z-index: 23;
  top: 100%;
  right: 24px;
  max-width: min(420px, calc(100vw - 24px));
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px;
  background: #1e1716;
  border: 1px solid #654344;
  border-radius: 8px;
  box-shadow: 0 12px 30px #0008;
}
.filterbar button { min-height: 44px; color: #e0d1c8; }
#filter-count {
  min-width: 18px;
  border-radius: 50%;
  text-align: center;
  background: var(--red);
  color: white;
  font-size: .68rem;
}

.rail, .menu-subnav { background: #100e0d; }
.menu-subnav { border-color: var(--line); }
.rail .stage-link {
  gap: 7px;
  min-height: 76px;
  margin-bottom: 8px;
  border-radius: 7px;
  color: #c2b5ab;
}
.rail .stage-link.active { color: #fff9ee; background: #2c1717; }
.rail .stage-link.active svg { color: #ff766f; }
.rail .stage-link:hover { background: #2c1717; color: var(--ink); }
.rail .stage-link.active:before { width: 3px; }
.subnav-track { gap: 19px; }
.subnav-track button { color: #c2b5ab; }
.subnav-track button.active { color: #fff9ee; border-color: #e5484d; }

.hero { margin: 15px 27px 0; min-height: 225px; border-radius: 6px; background: #100d0b; }
.hero > img { width: 100%; opacity: .86; object-position: right 57%; }
.hero:after { background: linear-gradient(90deg, #080605fa 1%, #100a08d9 28%, #150d0840 76%); }
.hero-copy { padding: 22px 30px; }
.hero .eyebrow { color: #f0b4a4; font-size: 10px; margin-bottom: 10px; }
.hero h1 { font: 700 clamp(32px, 5vw, 60px)/1.05 Georgia, serif; letter-spacing: -.04em; }
.hero .vietnamese { color: #ff8d7b; font-size: 18px; margin-top: 10px; }
.section-heading { position: relative; align-items: center; gap: 9px; margin-bottom: 14px; border-color: #443130; }
.section h2 { color: #f8f2ec; }
.section small { display: block; margin-top: 5px; color: #bcada1; }
.paperlink, .paper-jumps summary { color: #ead3c9; font-size: .73rem; text-decoration: none; }
.section-heading > .paperlink { display: inline-flex; align-items: center; min-height: 44px; }
.paper-jumps { position: relative; }
.paper-jumps summary { list-style: none; min-height: 44px; display: flex; align-items: center; padding: 0 7px; cursor: pointer; }
.paper-jumps summary:after { content: "⌄"; margin-left: 6px; }
.paper-jumps > div {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 4;
  background: #211a18;
  border: 1px solid #604540;
  border-radius: 7px;
  min-width: 103px;
  padding: 3px 10px;
}
.paper-jumps a { display: block; padding: 10px 2px; }
.grid { gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink); border-color: #4b3d36; }
.card .details { min-width: 0; padding: 11px 13px; flex: 1; display: flex; flex-direction: column; }
.card h3 { min-height: 0; font-size: .93rem; font-weight: 750; overflow-wrap: anywhere; }
.card .dish-title { min-height: 35px; }
.card .original, .card .portion { color: #675751; min-height: 0; font-size: .7rem; }
.card .portion { margin-top: 4px; }
.origin-jumps { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 19px; }
.origin-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #694743;
  border-radius: 8px;
  background: #251816;
  color: #f5e1d6;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
}
.origin-jumps a:hover { border-color: #df877b; }
.origin-jumps a:focus-visible, .beef-origin > h3:focus-visible { outline: 2px solid #df877b; outline-offset: 3px; }
.beef-origin + .beef-origin { margin-top: 24px; }
.beef-origin > h3 {
  margin: 0 0 9px;
  color: #f8f2ec;
  font: inherit;
  font-weight: 700;
  scroll-margin-block-start: 8px;
}
.card .meat-origin {
  align-self: flex-start;
  margin: 5px 0 0;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f2e1d4;
  color: #663928;
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.3;
}
.card .price-row { margin-top: auto; padding-top: 5px; min-height: 44px; }
.card .price { color: #942228; font-size: 1rem; font-variant-numeric: tabular-nums; }
.card .add { display: grid; place-items: center; min-width: 44px; color: white; border-radius: 8px; }
.card .code { border-radius: 3px; color: white; background: #b31f28; }
.card .in-cart { color: #841b20; font-weight: 650; }
.card .sold-label { background: #e1d5ce; color: #564844; border-radius: 4px; display: inline-block; font-size: .72rem; padding: 4px 6px; text-align: center; }
.card.sold .picture { filter: none; opacity: 1; }
.card.sold .picture img { filter: grayscale(1); opacity: .6; }
.card[data-kind="soft"] .picture img { object-fit: contain; }
.favorite { background: #0b0808db; color: white; }
#next-stage { padding: 10px 28px; }
#next-stage button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 12px 17px;
  color: var(--ink);
  background: #211514;
  border: 1px solid #553431;
  border-radius: 7px;
}
#next-stage button small { display: block; color: #ceb8ad; }
.footer { color: #bbafa7; }
.footer p + p { margin-top: 4px; }
.screen { background: var(--bg); }
.screen-content .brand-logo { width: 126px; margin-bottom: 16px; }
.screen-content h2 { color: var(--ink); }
.browse-fallback { text-decoration: none; text-align: center; }
.screen-content .welcome-table { align-self: flex-start; border: 1px solid #8b4a4d; padding: 6px 12px; border-radius: 20px; margin: 0 0 14px; }
.welcome-table b { margin-left: 5px; color: #fff; }
.visual-copy h1 { font: 700 clamp(35px, 5vw, 72px)/1.04 Georgia, serif; }
.language-list button { background: #22201dea; }
.sheet, .sheet-head, .sheet-bottom { background: #1c1716; }
.sheet .allergen { color: #e3c9b8; }
.call-grid button {
  min-height: 68px;
  padding: 10px 12px;
  text-align: start;
  background: #281d1b;
  border-color: #684643;
}
.call-grid button:disabled { opacity: .76; }
.call-grid small[hidden] { display: none; }
#service-result { margin: 14px 0 0; color: #f0c2a9; font-size: .86rem; }
#service-result:empty { display: none; }
:lang(vi) .hero h1, :lang(vi) .section h2 {
  font-family: "Times New Roman", Georgia, serif;
  letter-spacing: -.02em;
  line-height: 1.12;
}
:lang(vi) .hero .vietnamese { font-family: system-ui, sans-serif; }
.picker-stage h3 { color: var(--ink); }
.picker-stage h3 svg { color: #ff7970; }
.category-picker button { background: #211817; border-color: #523533; }
.category-picker button.selected { border-color: #dc5954; background: #361c1c; }
.cartbar { background: #a9242b; }
.cartbar[data-empty="true"] { background: #321d1d; border: 1px solid #875053; }
.floating { max-width: 720px; }
.back-top { background: #231517; border-color: #844245; }

@media (max-width: 760px) {
  :root { --rail: 66px; }
  .brand-logo { width: 60px; }
  .mast-inner { padding: 5px 10px; }
  .mast-tools { gap: 5px; }
  .mast-tools .chip, .mast-tools select, .menu-mode { font-size: .72rem; }
  .mast-tools .history-top { max-width: min(115px, 26vw); }
  .mast-tools select { max-width: 84px; }
  .discovery { gap: 6px; padding-inline: 10px; }
  .searchbox { padding-left: 8px; gap: 4px; }
  .searchbox input { font-size: 16px; }
  .searchbox input::placeholder { font-size: .78rem; }
  .browse-button, .filter-control > summary { padding-inline: 8px; font-size: .72rem; }
  .filter-control .filterbar { right: 10px; }
  .rail { padding-inline: 4px; }
  .rail .stage-link { min-height: 69px; margin: 2px 0 6px; padding: 6px 2px; }
  .rail .stage-link.active:before { left: -4px; }
  .rail .stage-link .stage-label { font-size: 10px; max-width: 57px; overflow-wrap: normal; }
  .menu-subnav { padding-left: calc(var(--rail) + 9px); }
  .subnav-track button { font-size: .76rem; }
  .hero { min-height: 137px; margin: 9px 9px 0; }
  .hero-copy { padding: 14px 12px; }
  .hero h1 { font-size: clamp(23px, 6.8vw, 34px); }
  .hero .eyebrow { margin-bottom: 7px; font-size: 8px; }
  .hero .vietnamese { font-size: .78rem; margin-top: 6px; }
  .hero:after { background: linear-gradient(90deg, #0a0705f7, #130c08a0 58%, #0c09052b); }
  .section { padding: 16px 9px 8px; }
  .section-heading { padding-bottom: 8px; margin-bottom: 9px; }
  .section h2 { font-size: clamp(19px, 5.7vw, 26px); }
  .section small { margin-top: 3px; }
  .paperlink { font-size: .66rem; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .card { display: grid; grid-template-columns: clamp(73px, 25vw, 128px) minmax(0, 1fr); }
  .picture { aspect-ratio: auto; min-height: 104px; }
  .card .image-detail { position: absolute; inset: 0; }
  .card .details { padding: 7px 8px 4px 9px; }
  .card h3 { font-size: .87rem; }
  .card .dish-title { min-height: 30px; }
  .card .original, .card .portion { font-size: .67rem; }
  .card .favorite { top: auto; right: auto; bottom: 1px; left: 1px; width: 44px; height: 44px; min-height: 44px; }
  .card .code { left: 5px; top: 5px; min-width: 0; font-size: .67rem; }
  .card .price-row { margin-top: auto; }
  .card .price { font-size: .9rem; }
  .floating { left: 10px; right: 10px; gap: 8px; bottom: max(9px, env(safe-area-inset-bottom)); }
  .cartbar, .call-btn { min-height: 54px; }
  .back-top { right: 11px; bottom: 75px; }
  #next-stage { padding: 10px 9px; }
  .screen-content { justify-content: center; padding: 24px; }
}
@media (min-width: 480px) and (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-template-columns: minmax(64px, 36%) minmax(0, 1fr); }
}
@media (hover: none) {
  .rail .stage-link:not(.active):hover { background: transparent; color: #c2b5ab; }
}
