:root {
  --ink: #1f211d;
  --muted: #6c7068;
  --line: #ded5c4;
  --paper: #fff8ea;
  --panel: #ffffff;
  --sun: #f5c032;
  --sun-soft: #fff0b8;
  --red: #c9362e;
  --leaf: #2f7358;
  --charcoal: #2a2e2b;
  --shadow: 0 18px 50px rgba(37, 31, 20, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    "PingFang TC",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(31, 33, 29, 0.1);
  background: rgba(255, 248, 234, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-stamp {
  width: 76px;
  height: 62px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(31, 33, 29, 0.34);
}

.header-meta {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
  color: var(--muted);
  font-size: 0.85rem;
}

.header-meta span {
  color: var(--leaf);
  font-weight: 900;
}

.header-meta strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.mobile-cart-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 48px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.gate-locked {
  overflow: hidden;
}

.slice-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #c98e14;
  color: #fff7df;
}

.gate-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slice-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 19, 12, 0.54), rgba(25, 19, 12, 0.06) 44%, rgba(25, 19, 12, 0.58)),
    linear-gradient(0deg, rgba(25, 19, 12, 0.72), rgba(25, 19, 12, 0.08) 58%);
  pointer-events: none;
}

.gate-door {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 50%;
  background:
    linear-gradient(90deg, rgba(80, 44, 18, 0.28), transparent 32%, rgba(255, 205, 72, 0.14)),
    repeating-linear-gradient(90deg, rgba(80, 40, 14, 0.18) 0 1px, transparent 1px 52px),
    rgba(166, 92, 24, 0.32);
  backdrop-filter: blur(1px);
  transition: transform 900ms cubic-bezier(0.77, 0, 0.18, 1);
}

.gate-topbar {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.55rem clamp(1rem, 4vw, 3rem);
  background: rgba(213, 153, 24, 0.88);
  border-bottom: 1px solid rgba(94, 44, 14, 0.22);
  color: #3a170c;
}

.gate-top-logo {
  width: 78px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.gate-shop-name {
  display: grid;
  gap: 0.1rem;
}

.gate-shop-name strong {
  color: #4b160f;
  font-size: 1.08rem;
  font-weight: 950;
}

.gate-shop-name span {
  color: #3f2916;
  font-size: 0.86rem;
  font-weight: 800;
}

.gate-topbar nav {
  display: flex;
  gap: 1.2rem;
  font-weight: 950;
}

.gate-topbar a {
  color: #2c1a0f;
  text-decoration-color: rgba(44, 26, 15, 0.35);
  text-underline-offset: 0.35em;
}

.gate-door-left {
  left: 0;
  border-right: 1px solid rgba(255, 230, 150, 0.28);
}

.gate-door-right {
  right: 0;
  border-left: 1px solid rgba(60, 30, 15, 0.34);
}

.slice-gate.is-opening .gate-door-left {
  transform: translateX(-102%);
}

.slice-gate.is-opening .gate-door-right {
  transform: translateX(102%);
}

.slice-gate.is-opening {
  pointer-events: none;
}

.gate-content {
  position: relative;
  z-index: 5;
  align-self: center;
  justify-self: end;
  width: min(560px, calc(100% - 2rem));
  margin-right: clamp(1rem, 7vw, 7rem);
  padding: clamp(1.2rem, 4vw, 2.2rem);
  color: #3a170c;
}

.gate-content .eyebrow {
  color: #8f241b;
}

.gate-content h1 {
  max-width: 460px;
  margin-bottom: 0.9rem;
  color: #8f241b;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 1.05;
}

.gate-content p {
  max-width: 400px;
  color: #4c2d19;
  font-weight: 800;
  line-height: 1.8;
}

.slice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  margin-top: 1rem;
  border: 0;
  border-radius: 8px;
  background: #b93125;
  color: #fff9e6;
  font-size: 1.15rem;
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(93, 27, 18, 0.24);
}

.slice-button:active {
  transform: translateY(1px);
}

.slice-progress {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.slice-progress span {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(80, 45, 24, 0.24);
  border-radius: 999px;
  background:
    repeating-linear-gradient(135deg, transparent 0 6px, rgba(123, 72, 30, 0.45) 6px 9px),
    #e5be61;
  opacity: 0.45;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.slice-progress span.is-active {
  opacity: 1;
  transform: rotate(-12deg) scale(1.08);
}

.skip-gate {
  display: inline-flex;
  margin-top: 1rem;
  color: #3b2315;
  font-weight: 950;
  text-underline-offset: 0.28em;
}

.gate-dishes {
  position: relative;
  z-index: 7;
  display: flex;
  gap: 1.25rem;
  align-self: end;
  padding: 0 clamp(1rem, 4vw, 3rem) 1.5rem;
}

.gate-dishes article {
  position: relative;
  width: min(230px, 40vw);
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(38, 19, 8, 0.34);
}

.gate-dishes img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  object-fit: cover;
}

.gate-dishes span {
  position: absolute;
  left: 0.7rem;
  bottom: 0.4rem;
  display: inline-grid;
  min-width: 44px;
  min-height: 82px;
  place-items: center;
  padding: 0.4rem 0.25rem;
  background: rgba(102, 33, 19, 0.82);
  color: #fff4dc;
  writing-mode: vertical-rl;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
}

.falling-noodles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.noodle-strip {
  position: absolute;
  top: 45%;
  width: 12px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff1b7, #d89f3f 55%, #fff0b2);
  box-shadow: 0 2px 8px rgba(80, 40, 12, 0.16);
  animation: noodleFall 840ms ease-in forwards;
}

@keyframes noodleFall {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(16deg) scaleY(0.8);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(240px) rotate(38deg) scaleY(1.1);
  }
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.main-nav a,
.header-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a {
  padding: 0 0.9rem;
}

.main-nav a.is-active,
.header-menu-link {
  background: var(--sun);
}

.header-menu-link {
  padding: 0 1rem;
  border: 1px solid rgba(31, 33, 29, 0.18);
}

.home-body {
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.88), rgba(255, 248, 234, 1) 42%),
    url("assets/storefront.jpg") center top / cover fixed;
}

.home-page {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.home-side-note {
  display: none;
}

.home-landing {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  min-height: min(620px, calc(100svh - 110px));
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 49, 37, 0.08), transparent 34%),
    #f7edda;
  box-shadow: var(--shadow);
}

.home-landing-art {
  min-height: 540px;
  background: #2b241c;
}

.home-landing-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(247, 237, 218, 0.86), rgba(247, 237, 218, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(74, 48, 29, 0.03) 28px 29px);
}

.home-landing-copy h1 {
  margin-bottom: 1rem;
  color: #22160d;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.06;
}

.home-landing-copy p {
  max-width: 520px;
  color: #6b4a32;
  font-weight: 700;
  line-height: 1.9;
}

.ink-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-bottom: 2px solid currentColor;
  color: #7e271e;
  font-weight: 950;
  text-decoration: none;
}

.home-hero {
  position: relative;
  min-height: min(680px, calc(100svh - 120px));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
}

.home-hero-image,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-image {
  object-fit: cover;
}

.home-hero-shade {
  background:
    linear-gradient(90deg, rgba(25, 27, 24, 0.9), rgba(25, 27, 24, 0.58) 48%, rgba(25, 27, 24, 0.18)),
    linear-gradient(0deg, rgba(25, 27, 24, 0.66), rgba(25, 27, 24, 0.05) 52%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(680px, 100%);
  min-height: inherit;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.home-hero .eyebrow {
  color: var(--sun);
}

.home-hero h1 {
  max-width: 600px;
  margin-bottom: 1rem;
}

.home-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.85;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.primary-link,
.ghost-link,
.signature-card a,
.section-title-row a,
.home-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
}

.primary-link,
.signature-card a {
  padding: 0 1rem;
  background: var(--red);
  color: #fff;
}

.ghost-link {
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: #fff;
}

.heritage-section,
.tv-section,
.signature-section {
  margin-top: 1.25rem;
  border: 1px solid rgba(31, 33, 29, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(37, 31, 20, 0.08);
}

.heritage-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.35rem, 4vw, 2.4rem);
}

.heritage-copy h2,
.tv-copy h2,
.section-title-row h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.2;
}

.heritage-copy p:last-child,
.tv-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.heritage-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.heritage-notes span {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sun-soft);
  color: var(--ink);
  font-weight: 950;
}

.tv-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 1.2rem;
  padding: 1rem;
}

.tv-copy {
  align-self: center;
  padding: clamp(0.6rem, 2vw, 1.4rem);
}

.tv-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
}

.tv-gallery img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

.tv-gallery .tv-main {
  min-height: 420px;
}

.signature-section {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.section-title-row a,
.home-footer a {
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.signature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(31, 33, 29, 0.1);
  border-radius: var(--radius);
  background: #fff;
}

.signature-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.signature-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.signature-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
}

.signature-card p:not(.menu-tag) {
  color: var(--muted);
  line-height: 1.75;
}

.signature-card a {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.home-footer p {
  margin: 0;
  font-weight: 950;
}

@media (min-width: 1760px) {
  .home-side-note {
    position: fixed;
    top: 104px;
    z-index: 6;
    display: grid;
    gap: 0.95rem;
    width: min(300px, calc((100vw - 1180px) / 2 - 3rem));
    max-height: calc(100svh - 128px);
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(94, 62, 28, 0.14);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 250, 238, 0.94), rgba(248, 235, 209, 0.9)),
      repeating-linear-gradient(0deg, transparent 0 22px, rgba(96, 59, 28, 0.035) 22px 23px);
    box-shadow: 0 16px 36px rgba(37, 31, 20, 0.1);
    backdrop-filter: blur(8px);
  }

  .home-side-note-left {
    left: clamp(1.25rem, 2vw, 2rem);
  }

  .home-side-note-right {
    right: clamp(1.25rem, 2vw, 2rem);
  }

  .side-note-kicker {
    margin: 0;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 950;
  }

  .side-note-body {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: stretch;
  }

  .side-hanging-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 250px;
    padding: 0.8rem 0.45rem;
    border: 1px solid rgba(255, 217, 149, 0.35);
    border-radius: 6px;
    background:
      linear-gradient(180deg, rgba(139, 37, 26, 0.98), rgba(109, 28, 20, 0.96)),
      #8f241b;
    color: #fff4d4;
    box-shadow: inset 0 0 0 1px rgba(80, 20, 14, 0.28);
    writing-mode: vertical-rl;
  }

  .side-hanging-banner span {
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1.15;
  }

  .side-making-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .side-making-copy h2,
  .home-side-note-right h2 {
    margin-bottom: 0.55rem;
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .side-making-copy p,
  .shop-info-list dd {
    color: #6b4a32;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.7;
  }

  .side-making-thumb {
    position: relative;
    min-height: 128px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(94, 62, 28, 0.16);
    border-radius: 8px;
    background: #ead3a0;
  }

  .side-making-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(42, 24, 13, 0.36), transparent 56%);
  }

  .side-making-thumb img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: 20% center;
  }

  .shop-info-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
  }

  .shop-info-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(94, 62, 28, 0.12);
  }

  .shop-info-list dt {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 950;
  }

  .shop-info-list dd {
    margin: 0;
  }

  .shop-info-list a {
    color: var(--ink);
    text-decoration-color: rgba(126, 39, 30, 0.3);
    text-underline-offset: 0.28em;
  }

  .side-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .side-contact-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 950;
    text-decoration: none;
  }

  .side-contact-actions a:first-child {
    background: var(--red);
    color: #fff;
  }

  .side-contact-actions a:last-child {
    border: 1px solid var(--line);
    background: #fffdf8;
    color: var(--ink);
  }
}

.order-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.menu-pane {
  min-width: 0;
}

.order-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
}

.order-hero > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.3rem, 3vw, 2.5rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-weight: 950;
  font-size: 0.82rem;
}

.order-hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 950;
}

.order-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.order-hero img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.pickup-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-label,
.note-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: #f2eadb;
}

.segment,
.category-tab {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.segment.is-active,
.category-tab.is-active {
  background: var(--sun);
  box-shadow: 0 8px 18px rgba(190, 128, 18, 0.18);
}

select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

select {
  padding: 0 0.8rem;
}

textarea {
  resize: vertical;
  padding: 0.75rem;
  line-height: 1.55;
}

.category-tabs {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.75rem 0 1rem;
  background: var(--paper);
  scrollbar-width: none;
}

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

.category-tab {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.menu-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31, 33, 29, 0.1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(37, 31, 20, 0.08);
}

.menu-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eadfc9;
}

.menu-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.menu-tag {
  margin-bottom: 0.45rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
}

.menu-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.16rem;
  line-height: 1.3;
}

.menu-card p {
  margin-bottom: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.price {
  font-size: 1.08rem;
  font-weight: 950;
}

.add-button,
.checkout-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.add-button {
  padding: 0 1rem;
}

.cart-pane {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100svh - 116px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31, 33, 29, 0.1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 0.6rem;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

.close-cart {
  display: none;
}

.cart-items {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 0.4rem 1.2rem;
}

.empty-cart {
  margin: 1rem 0;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(31, 33, 29, 0.08);
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item h3 {
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.cart-item p {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-control button {
  height: 34px;
  border: 0;
  background: #fff7e8;
  color: var(--ink);
  font-weight: 950;
}

.qty-control span {
  text-align: center;
  font-weight: 950;
}

.line-total {
  font-weight: 950;
}

.note-field {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
}

.cart-summary {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(31, 33, 29, 0.1);
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary span {
  color: var(--muted);
}

.cart-summary strong {
  font-size: 1.08rem;
}

.checkout-button {
  margin: 0 1.2rem 0.75rem;
  font-size: 1rem;
}

.checkout-button:disabled {
  background: #c9c0ae;
  cursor: not-allowed;
}

.price-note {
  margin: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 50;
  transform: translate(-50%, 140%);
  max-width: min(92vw, 420px);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(31, 33, 29, 0.68);
}

.success-modal.is-open {
  display: grid;
}

.success-card {
  position: relative;
  width: min(92vw, 460px);
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.success-card .icon-button {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.success-card h2 {
  margin-bottom: 0.7rem;
  font-size: 1.75rem;
}

.success-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .order-app {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .gate-art {
    object-position: 30% center;
  }

  .gate-topbar {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .gate-topbar nav {
    display: none;
  }

  .gate-content {
    align-self: end;
    justify-self: stretch;
    width: auto;
    margin: 0;
    padding: 1.25rem;
    background: linear-gradient(0deg, rgba(240, 182, 56, 0.94), rgba(240, 182, 56, 0.72), transparent);
  }

  .gate-content h1 {
    max-width: 340px;
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .gate-content p {
    max-width: 330px;
  }

  .slice-progress span {
    width: 42px;
    height: 42px;
  }

  .gate-dishes {
    gap: 0.65rem;
    padding: 0 1rem 1rem;
  }

  .gate-dishes article {
    width: min(170px, 45vw);
  }

  .home-header {
    grid-template-columns: auto 1fr;
  }

  .menu-header .main-nav {
    display: none;
  }

  .main-nav {
    justify-self: end;
  }

  .header-menu-link {
    display: none;
  }

  .header-meta {
    display: none;
  }

  .mobile-cart-button {
    display: inline-flex;
  }

  .order-app {
    display: block;
    padding: 1rem;
  }

  .order-hero,
  .pickup-panel,
  .home-landing,
  .heritage-section,
  .tv-section,
  .signature-grid,
  .signature-card {
    grid-template-columns: 1fr;
  }

  .home-page {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.75rem;
  }

  .home-hero {
    min-height: 620px;
  }

  .home-landing-art {
    min-height: 320px;
  }

  .home-landing-copy {
    padding: 1.5rem;
  }

  .tv-gallery {
    grid-template-columns: 1fr;
  }

  .tv-gallery img,
  .tv-gallery .tv-main,
  .signature-card img {
    min-height: 260px;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .order-hero img {
    min-height: 180px;
  }

  .cart-pane {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    max-height: 82svh;
    transform: translateY(calc(100% - 76px));
    border-radius: 16px 16px 0 0;
    transition: transform 200ms ease;
  }

  .cart-pane.is-open {
    transform: translateY(0);
  }

  .close-cart {
    display: grid;
  }

  .cart-header {
    min-height: 76px;
  }
}

@media (max-width: 560px) {
  .brand-stamp {
    width: 68px;
    height: 58px;
  }

  .gate-top-logo {
    width: 68px;
    height: 54px;
  }

  .gate-shop-name strong {
    font-size: 0.98rem;
  }

  .gate-shop-name span {
    font-size: 0.78rem;
  }

  .main-nav a {
    padding: 0 0.7rem;
  }

  .home-hero-content {
    padding: 1.25rem;
  }

  .heritage-notes {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    top: 69px;
  }

  .order-app {
    padding-bottom: 6rem;
  }
}
