:root {
  --green-950: #021916;
  --green-900: #032c25;
  --green-800: #0a4439;
  --green-700: #126053;
  --beige-50: #f8f3ea;
  --beige-100: #f2e9d8;
  --beige-200: #e5d2ab;
  --beige-300: #d7bd88;
  --text-primary: #f8f7f3;
  --text-secondary: rgba(248, 247, 243, 0.74);
  --text-dark: #19312a;
  --line-soft: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --shadow-xl: 0 30px 80px rgba(3, 10, 8, 0.34);
  --shadow-md: 0 16px 40px rgba(3, 10, 8, 0.2);
  --font-apple: "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroMediaZoom {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes screenBlockReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.988);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--green-950);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-apple);
  background:
    radial-gradient(circle at top center, rgba(16, 106, 86, 0.24), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(10, 82, 67, 0.28), transparent 22%),
    linear-gradient(180deg, #0a4439 0%, #032c25 36%, #021916 100%);
}

body.home-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 210, 171, 0.09), transparent 24%),
    radial-gradient(circle at 16% 14%, rgba(12, 90, 72, 0.32), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(9, 70, 57, 0.26), transparent 24%),
    linear-gradient(180deg, #093029 0%, #042721 38%, #021513 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035),
      transparent 32%,
      transparent 68%,
      rgba(255, 255, 255, 0.025)
    ),
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.035), transparent 22%);
}

body.home-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 248, 236, 0.06), transparent 18%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.016),
      transparent 34%,
      transparent 70%,
      rgba(255, 255, 255, 0.01)
    ),
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.025), transparent 20%),
    url("./assets/backgrounds/mosaic-hero.png?v=20260614-1810") center -112px /
      112% auto no-repeat;
  opacity: 0.24;
  filter: saturate(0.9) contrast(0.95) brightness(1.04);
}

body.home-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 44, 37, 0.02) 0%,
      rgba(3, 44, 37, 0.08) 14%,
      rgba(3, 44, 37, 0.18) 28%,
      rgba(3, 44, 37, 0.38) 44%,
      rgba(3, 44, 37, 0.62) 62%,
      rgba(2, 25, 22, 0.9) 82%,
      rgba(2, 25, 22, 0.98) 100%
    );
  opacity: 1;
  mix-blend-mode: normal;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 32px;
}

.topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--beige-50);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.back-button__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.4rem;
  line-height: 1;
}

.hero {
  padding: 8px 4px 18px;
}

.hero.is-entering > * {
  opacity: 0;
  animation: heroReveal 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--enter-delay, 0ms);
  will-change: transform, opacity, filter;
}

.hero__cover {
  width: 100%;
  height: 176px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.is-entering .hero__cover img,
.hero.is-entering .hero__logo img {
  transform-origin: center;
  animation: heroMediaZoom 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(11, 94, 74, 0.34),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero__logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.hero__eyebrow {
  margin: 0 0 8px;
  color: var(--beige-200);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  padding-block: 0.04em 0.08em;
}

.hero__socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.social-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon--filled svg {
  fill: currentColor;
  stroke: none;
}

.hero__subtitle {
  margin: 14px 0 0;
  max-width: 24ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.42;
  letter-spacing: -0.02em;
  padding-block: 0.04em 0.06em;
}

.hero__subtitle-brand,
.hero__subtitle-accent {
  display: inline-block;
}

.hero__subtitle-brand {
  font-weight: 700;
  color: var(--beige-50);
}

.hero__subtitle-accent {
  font-family: "Apple Chancery", "Snell Roundhand", "Segoe Script",
    "Brush Script MT", cursive;
  font-size: 1.26em;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: rgba(248, 247, 243, 0.82);
}

.home-screen .hero {
  padding-top: 12px;
  text-align: center;
}

.home-screen .hero__cover {
  display: none;
}

.home-screen .hero__logo {
  width: 154px;
  height: 154px;
  margin: 18px auto 26px;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(229, 210, 171, 0.12),
    rgba(7, 70, 56, 0.3)
  );
  box-shadow:
    0 28px 70px rgba(3, 10, 8, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-screen .hero__logo img {
  border-radius: 24px;
}

.home-screen .hero__subtitle {
  margin-inline: auto;
  display: inline-flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.42rem;
  color: rgba(248, 247, 243, 0.82);
  font-size: 1.04rem;
  white-space: nowrap;
  padding-block: 0.06em 0.1em;
}

body:not(.home-screen) .hero__socials {
  display: none;
}

.content {
  display: grid;
  gap: 14px;
}

.content.is-entering > * {
  opacity: 0;
  animation: screenBlockReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--enter-delay, 0ms);
}

.category-grid,
.menu-sections {
  display: grid;
  gap: 14px;
}

.category-card,
.menu-card,
.empty-card,
.section-card,
.lightbox__sheet {
  border: 1px solid rgba(72, 141, 118, 0.14);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.category-card {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(8, 88, 69, 0.24), rgba(255, 255, 255, 0.03)),
    rgba(3, 44, 37, 0.82);
  transition: transform 180ms ease, border-color 180ms ease;
  animation: cardReveal 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
  will-change: transform, opacity, filter;
}

.category-card__image {
  width: 100%;
  height: 172px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 6px 4px 2px;
}

.category-card:active,
.menu-card:active {
  transform: scale(0.985);
}

.category-card__title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
  padding-block: 0.04em 0.06em;
}

.category-card__description {
  margin: 10px 0 0;
  max-width: 26ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.52;
  letter-spacing: -0.02em;
}

.home-screen .category-card {
  background:
    linear-gradient(180deg, rgba(229, 210, 171, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(5, 40, 33, 0.86);
  box-shadow:
    0 26px 60px rgba(3, 10, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-screen .category-card__image {
  width: 100%;
  height: 207px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-screen .category-card__body {
  padding: 4px 0;
}

.home-screen .category-card__title {
  letter-spacing: -0.05em;
}

.home-screen .category-card__description {
  color: rgba(248, 247, 243, 0.68);
}

.home-screen .category-card__arrow {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.category-card__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--beige-50);
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.section-card,
.empty-card {
  border-radius: 30px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(8, 84, 66, 0.2), rgba(255, 255, 255, 0.03)),
    rgba(3, 39, 33, 0.84);
  animation: cardReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
  will-change: transform, opacity, filter;
}

.section-header {
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.04em;
  padding-block: 0.03em 0.06em;
}

.section-copy,
.empty-card p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.52;
  letter-spacing: -0.02em;
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-card {
  width: 100%;
  padding: 15px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(8, 92, 71, 0.15), rgba(255, 255, 255, 0.02)),
    rgba(3, 40, 33, 0.82);
  transition: transform 180ms ease, border-color 180ms ease;
  animation: cardReveal 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
  will-change: transform, opacity, filter;
  content-visibility: auto;
  contain-intrinsic-size: 0 118px;
}

.menu-card--inline-price {
  grid-template-columns: 110px minmax(0, 1fr);
}

.menu-card__thumb {
  width: 110px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 64, 52, 0.72), rgba(5, 34, 28, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.14);
}

.menu-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.item-title,
.empty-card h2,
.lightbox__meta h2 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.04em;
  padding-block: 0.04em 0.08em;
}

.item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-description {
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.46;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-description--stacked {
  display: block;
  font-size: 0.93rem;
  line-height: 1.52;
  white-space: pre-line;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
}

.item-description--pricing {
  display: grid;
  gap: 4px;
  font-size: 0.94rem;
  line-height: 1.54;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
}

.item-meta,
.lightbox__volume {
  margin: 10px 0 0;
  color: var(--beige-100);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.menu-card__price,
.lightbox__price {
  color: var(--beige-50);
  font-size: 1.38rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.menu-card__price {
  align-self: start;
  padding-top: 0.1rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.price-line__label {
  font-weight: 400;
}

.price-line__value {
  color: var(--beige-50);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.empty-card h2 {
  font-size: 1.7rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.lightbox--visible {
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 10, 8, 0.7);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox__sheet {
  position: relative;
  z-index: 1;
  min-height: 56vh;
  margin: 0 10px max(8px, env(safe-area-inset-bottom));
  padding: 30px 20px 24px;
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(12, 92, 72, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(3, 38, 32, 0.92);
  box-shadow:
    0 28px 80px rgba(2, 10, 8, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.985);
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: transform, opacity;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 53, 45, 0.84);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
}

.lightbox__frame {
  border-radius: 28px;
  min-height: 32vh;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(14, 76, 61, 0.8), rgba(5, 31, 25, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 18px 36px rgba(255, 255, 255, 0.02),
    0 18px 38px rgba(0, 0, 0, 0.18);
}

.lightbox__frame img {
  width: 100%;
  max-height: 30vh;
  object-fit: contain;
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: scale(1.04);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}

.lightbox__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.lightbox__meta--single {
  grid-template-columns: minmax(0, 1fr);
}

.lightbox__meta h2 {
  font-size: 2rem;
  line-height: 1.1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.lightbox__description {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.68;
  letter-spacing: -0.02em;
  white-space: pre-line;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.lightbox__description--pricing {
  display: grid;
  gap: 8px;
  white-space: normal;
}

.lightbox__description--pricing .price-line {
  font-size: 1.06rem;
  line-height: 1.62;
}

.lightbox__price {
  align-self: start;
  font-size: 1.46rem;
  line-height: 1.02;
  padding-top: 0.08rem;
}

.lightbox__volume {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.lightbox.lightbox--visible .lightbox__backdrop {
  opacity: 1;
}

.lightbox.lightbox--visible .lightbox__sheet {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.lightbox.lightbox--visible .lightbox__close,
.lightbox.lightbox--visible .lightbox__meta,
.lightbox.lightbox--visible .lightbox__volume,
.lightbox.lightbox--visible .lightbox__description {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.lightbox.lightbox--visible .lightbox__close {
  transition-delay: 70ms;
}

.lightbox.lightbox--visible .lightbox__frame img {
  opacity: 1;
  transform: scale(1);
  transition-delay: 50ms;
}

.lightbox.lightbox--visible .lightbox__meta {
  transition-delay: 110ms;
}

.lightbox.lightbox--visible .lightbox__volume,
.lightbox.lightbox--visible .lightbox__description {
  transition-delay: 150ms;
}

@media (min-width: 540px) {
  body {
    padding: 18px 0 30px;
  }

  .app-shell {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
