:root {
  --page: #dedede;
  --paper: #f7f5ee;
  --surface: #ffffff;
  --surface-soft: #f0f1f0;
  --ink: #171717;
  --muted: #6e7378;
  --line: #e2e2df;
  --green: #287451;
  --red: #b8332b;
  --gold: #c79a43;
  --shadow: 0 14px 34px rgba(24, 25, 26, .12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  z-index: 30;
  animation: introOut 420ms ease forwards;
  animation-delay: 1.45s;
}

.intro.is-skipped {
  display: none;
}

.intro-logo {
  width: min(76vw, 680px);
  transform-origin: center;
  animation: logoSettle 520ms ease forwards;
  animation-delay: 1.05s;
}

.intro-logo svg,
.intro-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .08));
  animation: fillIn 360ms ease forwards;
  animation-delay: .8s;
}

@keyframes fillIn {
  to {
    opacity: 1;
  }
}

@keyframes logoSettle {
  to {
    transform: scale(.92) translateY(-8px);
  }
}

@keyframes introOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.shell {
  width: 100%;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 12px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.brand svg,
.brand img {
  display: block;
  width: clamp(118px, 18vw, 172px);
  max-height: 52px;
}

.logo-fallback {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.intro-logo .logo-fallback {
  display: block;
  text-align: center;
  font-size: clamp(42px, 10vw, 96px);
  opacity: 0;
  animation: fillIn 360ms ease forwards;
  animation-delay: .8s;
}

.icon-button,
.text-button,
.lang-button,
.tab-card,
.chip,
.add-button,
.qty-button,
.cart-pill,
.modal-close {
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1e1f20;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.language-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.lang-button {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #4f555b;
  font-size: 13px;
  font-weight: 700;
}

.lang-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

main {
  padding: 18px 22px 112px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.notice-card {
  min-height: 124px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.notice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .56), rgba(0, 0, 0, .18)),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .25), transparent 28%);
}

.service-card {
  background: var(--green);
}

.hours-card {
  background: var(--red);
}

.notice-card > * {
  position: relative;
}

.notice-kicker,
.dish-meta,
.empty-state span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-card strong {
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.notice-card span:last-child {
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
}

.search-row {
  position: sticky;
  top: 63px;
  z-index: 10;
  padding: 10px 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.search-box {
  height: 42px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d4d6d8;
  border-radius: var(--radius);
  background: #f7f8f8;
  color: #8a9097;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.menu-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.menu-tabs::-webkit-scrollbar,
.category-rail::-webkit-scrollbar {
  display: none;
}

.tab-card {
  min-height: 128px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.tab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .56), rgba(0, 0, 0, .06) 62%),
    var(--tab-image, linear-gradient(135deg, #e8e0d1, #c8d8cc));
  background-size: cover;
  background-position: center;
  transition: transform .2s ease;
}

.tab-card:hover::before {
  transform: scale(1.04);
}

.tab-card strong,
.tab-card span {
  position: relative;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .34);
}

.tab-card strong {
  font-size: 16px;
  line-height: 1.1;
}

.tab-card span {
  font-size: 12px;
  opacity: .86;
}

.tab-card.is-active {
  outline: 3px solid #1e1f20;
  outline-offset: -3px;
}

.category-rail {
  position: sticky;
  top: 125px;
  z-index: 9;
  display: flex;
  gap: 8px;
  padding: 10px 0 14px;
  margin: 0 -22px 12px;
  padding-left: 22px;
  padding-right: 22px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f0f1f2;
  color: #2a2c2f;
  white-space: nowrap;
  font-size: 14px;
}

.chip.is-active {
  background: #1e1f20;
  color: #ffffff;
}

.menu-section {
  scroll-margin-top: 190px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.dish-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.dish-card {
  display: grid;
  grid-template-columns: 138px 1fr 42px;
  gap: 14px;
  align-items: center;
  min-height: 154px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
}

.dish-photo,
.placeholder-photo {
  width: 138px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: #eef0ef;
  object-fit: cover;
  overflow: hidden;
}

.placeholder-photo {
  display: grid;
  place-items: center;
  color: rgba(23, 23, 23, .34);
  background:
    linear-gradient(135deg, rgba(40, 116, 81, .12), rgba(184, 51, 43, .12)),
    #eef0ef;
  font-weight: 800;
}

.dish-info {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.dish-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dish-desc {
  margin: 0;
  color: #4d5358;
  font-size: 14px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.dish-price {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
}

.add-button {
  width: 30px;
  height: 30px;
  justify-self: end;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f1f2;
  color: #202124;
  font-size: 23px;
  line-height: 1;
}

.add-button:disabled {
  opacity: .35;
  cursor: default;
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8f8;
}

.empty-state div {
  max-width: 440px;
  display: grid;
  gap: 9px;
}

.empty-state span {
  color: var(--green);
}

.empty-state strong {
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-pill {
  position: fixed;
  right: calc((100vw - min(100vw, 1080px)) / 2 + 22px);
  bottom: 22px;
  z-index: 18;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1e1f20;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 17px;
  font-weight: 800;
}

.cart-icon {
  font-size: 19px;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, .38);
}

.cart-drawer,
.dish-modal {
  position: fixed;
  z-index: 20;
  right: calc((100vw - min(100vw, 1080px)) / 2);
  bottom: 0;
  width: min(100vw, 520px);
  max-height: 92vh;
  display: grid;
  transform: translateY(105%);
  transition: transform .22s ease;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-drawer.is-open,
.dish-modal.is-open {
  transform: translateY(0);
}

.drawer-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 20px;
}

.text-button {
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cart-lines {
  max-height: 44vh;
  overflow-y: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-line img,
.cart-line .placeholder-photo {
  width: 64px;
  border-radius: var(--radius);
}

.cart-line h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.2;
}

.cart-line strong {
  font-size: 14px;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 28px 30px 28px;
  align-items: center;
  justify-items: center;
  gap: 2px;
  border-radius: 999px;
  background: #f1f2f3;
}

.qty-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #41464b;
}

.cart-summary div:first-child {
  color: var(--ink);
  font-size: 18px;
}

.cart-note {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.dish-modal {
  width: min(100vw, 620px);
}

.modal-body {
  overflow-y: auto;
  max-height: 92vh;
}

.modal-visual {
  position: relative;
  min-height: 280px;
  background: #eef0ef;
}

.modal-visual img,
.modal-visual .placeholder-photo {
  width: 100%;
  height: min(52vh, 420px);
  border-radius: 0;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  font-size: 24px;
}

.modal-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.modal-content h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.modal-footer strong {
  font-size: 22px;
}

.modal-footer .add-button {
  width: 46px;
  height: 46px;
  font-size: 28px;
}

@media (max-width: 720px) {
  .shell {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding: 12px;
  }

  .language-switch {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 48px;
    margin-top: 8px;
  }

  main {
    padding: 12px 12px 104px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .search-row {
    top: 59px;
  }

  .category-rail {
    top: 119px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .dish-card {
    grid-template-columns: 104px 1fr 34px;
    gap: 12px;
    min-height: 126px;
  }

  .dish-photo,
  .placeholder-photo {
    width: 104px;
  }

  .dish-info h3 {
    font-size: 15px;
  }

  .dish-desc {
    font-size: 13px;
  }

  .dish-price {
    font-size: 15px;
  }

  .cart-pill {
    right: 12px;
    bottom: 14px;
  }

  .cart-drawer,
  .dish-modal {
    right: 0;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
  }

  .language-switch {
    gap: 2px;
  }

  .lang-button {
    min-width: 32px;
    padding: 0 7px;
    font-size: 12px;
  }

  .brand svg,
  .brand img {
    width: 112px;
  }

  .menu-tabs {
    grid-auto-columns: 132px;
  }

  .tab-card {
    min-height: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro {
    display: none;
  }

  .intro-logo,
  .intro-logo svg,
  .intro-logo img,
  .tab-card::before,
  .cart-drawer,
  .dish-modal {
    animation: none;
    transition: none;
  }
}
