:root {
  --bg: #000000;
  --paper: #f3f3f3;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.14);
  --pad: max(1rem, env(safe-area-inset-left));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--paper);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.app {
  height: 100dvh;
  height: 100svh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #000;
}

.hero {
  text-align: center;
  padding: 0.7rem 1rem 0.35rem;
  flex: none;
}

.lang {
  display: inline-flex;
  margin: 0 auto 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.85rem;
  min-height: 40px;
}

.lang button.on {
  background: #fff;
  color: #000;
}

.kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #ccc;
}

.kicker[hidden],
.subtitle[hidden],
.foot[hidden] {
  display: none;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 9vw, 2.8rem);
  line-height: 0.95;
  margin: 0.15rem 0 0.15rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.cats {
  flex: none;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.45rem 1rem 0.2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.cats button {
  flex: none;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  min-height: 42px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: center;
}

.cats button.on {
  background: #fff;
  color: #000;
  border-color: #fff;
}

#menu {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#menu::-webkit-scrollbar {
  display: none;
}

.section {
  flex: 0 0 100%;
  width: 100%;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
}

.sheet-list {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 0.3rem 1.05rem 2.2rem;
}

.section h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  color: #fff;
  text-align: center;
  margin: 0.2rem 0 0.7rem;
}

.item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}

.item.with-photo {
  grid-template-columns: 84px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.dish-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.dish {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #1a1a1a;
  display: block;
}

.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
}

.item p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.price {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}

.foot {
  flex: none;
  text-align: center;
  padding: 0.4rem 1rem 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.qr-btn,
#qrBtn,
.sheet {
  display: none !important;
}

.zoom {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 900px);
  max-height: 92vh;
  margin: auto;
}

.zoom::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.zoom img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 0.6rem;
  cursor: zoom-out;
}

@media (min-width: 760px) {
  .app {
    max-width: 520px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .hero h1 {
    font-size: 3rem;
  }
}
