:root {
  --red: #d71920;
  --red-dark: #aa1117;
  --sand: #f6ead7;
  --sand-2: #fff8ef;
  --sea: #dff6fb;
  --sea-strong: #9edce7;
  --ink: #1e1d1b;
  --muted: #77716c;
  --line: rgba(153, 91, 60, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --menu-tab-surface: #fffaf4;
  --shadow: 0 18px 45px rgba(114, 68, 36, 0.11);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --bottom-nav-height: 84px;
  --beach-bg: url("assets/beach-background.png");
  --beach-page-bg: url("assets/beach-background2.png");
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 230, 174, 0.7), transparent 35%),
    radial-gradient(circle at 100% 18%, rgba(159, 224, 236, 0.62), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #fff 43%, #fff9f1 100%);
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.86));
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.app-shell::before {
  z-index: -2;
  background: var(--beach-bg) center top / cover no-repeat;
}

.app-shell::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.22), rgba(255, 248, 238, 0.74) 55%, rgba(255, 248, 238, 0.9) 100%);
}

.app-shell[data-active-page="home"]::before,
.app-shell[data-active-page="home"]::after,
.app-shell[data-active-page="menu"]::before,
.app-shell[data-active-page="menu"]::after,
.app-shell[data-active-page="beach"]::before,
.app-shell[data-active-page="beach"]::after {
  opacity: 1;
}

.app-shell[data-active-page="beach"]::before {
  background-image: var(--beach-page-bg);
}

.page-stack {
  position: relative;
}

.page {
  display: none;
  min-height: calc(100vh - var(--bottom-nav-height));
  padding: 10px 18px calc(var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom));
  animation: pageIn 0.34s ease;
}

.page-active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
 }

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 34px;
  color: #fff;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(36, 24, 13, 0.02) 0%, rgba(33, 24, 16, 0.34) 46%, rgba(27, 17, 10, 0.66) 100%),
    var(--beach-bg) center bottom / cover no-repeat;
}

.hero-card::before,
.hero-card::after {
  content: "";
  display: none;
  position: absolute;
  left: -20%;
  right: -20%;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  transform: rotate(-5deg);
}

.hero-card::before {
  top: 32%;
}

.hero-card::after {
  top: 39%;
  background: rgba(255, 255, 255, 0.25);
}

.sun-orb {
  display: none;
  position: absolute;
  top: 42px;
  right: 42px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffd65a;
  box-shadow: 0 0 60px rgba(255, 214, 90, 0.8);
}

.wave-line {
  display: none;
  position: absolute;
  inset: auto -20% 140px -20%;
  height: 90px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: rotate(-3deg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-card .eyebrow {
  color: #fff;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 11vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

h3 {
  font-size: 1rem;
  line-height: 1.17;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.hero-card h1,
.hero-card p,
.hero-actions {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 310px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.24);
}

.secondary-btn {
  color: var(--red);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(215, 25, 32, 0.18);
}

.primary-btn:active,
.secondary-btn:active,
.nav-item:active,
.category-pill:active,
.menu-card:active,
.menu-category-lead:active {
  transform: scale(0.97);
}

.content-section {
  padding: 26px 0 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading .eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 25, 32, 0.14);
  box-shadow: 0 10px 26px rgba(70, 42, 24, 0.12);
  backdrop-filter: blur(12px);
}

.recommend-grid {
  display: grid;
  gap: 12px;
}

.recommend-card,
.info-card,
.rules-panel,
.beach-rate-card,
.menu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.recommend-card {
  padding: 18px;
  min-height: 130px;
}

.recommend-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--sand);
  font-size: 1.72rem;
}

.recommend-card p,
.info-card p,
.rules-panel p,
.beach-hero-panel p,
.beach-rate-card p {
  color: var(--muted);
  line-height: 1.48;
  margin-bottom: 10px;
}

.recommend-card strong {
  color: var(--red);
  font-size: 1.05rem;
}

.info-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin-top: 12px;
}

.info-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 234, 215, 0.7), rgba(223, 246, 251, 0.45));
}

.info-card h2 {
  font-size: 1.04rem;
  margin: 0;
}

.info-card p {
  grid-column: 2;
  margin: 3px 0 0;
}

.info-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.rules-panel {
  overflow: hidden;
  margin-top: 14px;
  padding: 18px;
}

.rules-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rules-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 234, 215, 0.92), rgba(223, 246, 251, 0.72));
  font-size: 1.6rem;
}

.rules-head .eyebrow {
  margin-bottom: 4px;
}

.rules-head h2 {
  margin: 0;
}

.rules-intro {
  margin-bottom: 14px;
}

.rules-list {
  display: grid;
  gap: 10px;
}

.rules-list article {
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(246, 234, 215, 0.46));
  border: 1px solid rgba(153, 91, 60, 0.12);
}

.rules-list h3 {
  margin: 0 0 8px;
  color: var(--red);
}

.rules-list ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.rules-list li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.menu-head {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 2px 0 8px;
}

.menu-logo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  width: min(100%, 360px);
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(215, 25, 32, 0.12);
  box-shadow: 0 10px 28px rgba(88, 53, 32, 0.1);
}

.menu-logo {
  display: block;
  width: auto;
  height: 66px;
  max-width: 72vw;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.category-tabs-anchor {
  height: 0;
}

.category-tabs-shell {
  --dock-progress: 0;
  --tabs-bg-top: 0;
  --tabs-bg-bottom: 0;
  --tabs-shadow: 0;
  --tabs-blur: 0px;
  position: relative;
  z-index: 30;
  padding: 10px 0 12px;
  margin: 0 -18px 12px;
  padding-left: 18px;
  padding-right: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 244, var(--tabs-bg-top)), rgba(255, 250, 244, var(--tabs-bg-bottom)));
  box-shadow: 0 12px 28px rgba(61, 39, 24, var(--tabs-shadow));
  -webkit-backdrop-filter: blur(var(--tabs-blur));
  backdrop-filter: blur(var(--tabs-blur));
  will-change: transform, background, box-shadow, backdrop-filter;
  transition: padding 0.22s ease;
}

.category-tabs-shell.is-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 55;
  width: min(100%, 520px);
  margin: 0;
  transform: translateX(-50%);
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-bottom: 10px;
}

.category-tabs-shell.is-dock-enter .category-tabs {
  animation: categoryDock 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-right: 36px;
  background: transparent;
}

.category-tabs-shell::before,
.category-tabs-shell::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 12px;
  z-index: 2;
  width: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.category-tabs-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.96), rgba(255, 250, 244, 0));
}

.category-tabs-shell::after {
  right: 0;
  width: 42px;
  background:
    radial-gradient(circle at 80% 50%, rgba(215, 25, 32, 0.14), transparent 0 26%, transparent 58%),
    linear-gradient(90deg, rgba(255, 250, 244, 0), rgba(255, 250, 244, 0.96));
}

.category-tabs-shell.has-overflow.is-scrolled::before,
.category-tabs-shell.has-overflow:not(.is-at-end)::after {
  opacity: 1;
}

.category-tabs-shell.has-overflow:not(.is-at-end)::after {
  animation: edgeCueBreath 2.4s ease-in-out infinite;
}

.category-tabs-shell.has-overflow .category-tabs {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 50px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 50px), transparent 100%);
}

.category-tabs-shell.has-overflow.is-scrolled .category-tabs {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 50px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 50px), transparent 100%);
}

.category-tabs-shell.is-at-end .category-tabs {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%);
}

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

@keyframes categoryDock {
  from {
    transform: translateY(-10px) scale(0.985);
    opacity: 0.7;
    filter: blur(2.5px);
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes edgeCueBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

.category-pill {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #714f40;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 25, 32, 0.13);
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.86rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.category-pill.active {
  color: #fff;
  background: var(--red);
}

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

.menu-category {
  position: relative;
  scroll-margin-top: 150px;
}

.menu-category-lead {
  position: relative;
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-category-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.65);
  opacity: 0;
  z-index: 4;
  transition: opacity 0.18s ease;
}

.menu-category-lead:active,
.menu-category-lead.is-pressing {
  box-shadow: 0 12px 30px rgba(114, 68, 36, 0.12);
}

.menu-category-lead:active::before,
.menu-category-lead.is-pressing::before {
  opacity: 1;
}

.menu-category-title {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  line-height: 0;
}

.menu-category-title h2 {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 17px 12px 15px;
  border-radius: 18px 16px 0 0;
  background: var(--menu-tab-surface);
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  box-shadow: 0 -8px 22px rgba(114, 68, 36, 0.08);
  line-height: 1.08;
}

.menu-category-title h2::before {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -2px;
  width: 76px;
  height: 46px;
  background: var(--menu-tab-surface);
  clip-path: path("M0 0 C18 8 30 46 76 46 L0 46 Z");
}

.menu-category-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: -68px;
  bottom: -4px;
  height: 5px;
  background: var(--menu-tab-surface);
}

.category-note {
  position: relative;
  z-index: 1;
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #8c6653;
  background: rgba(246, 234, 215, 0.8);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cards-grid {
  display: grid;
  gap: 12px;
}

.menu-category-lead + .cards-grid {
  margin-top: 12px;
}

.menu-category-lead + .category-note {
  margin-top: 12px;
}

.menu-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: stretch;
  min-height: 112px;
  padding: 12px;
  padding-left: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-card:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.28);
  outline-offset: 3px;
}

.menu-category-lead .menu-card {
  margin-top: -4px;
  border-top: 0;
  border-top-left-radius: 0;
  padding-top: 16px;
}

.menu-category-lead .menu-card::before {
  display: none;
}

.menu-category-lead .menu-card:active {
  transform: none;
}

.menu-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.65);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.menu-card:active::before {
  opacity: 1;
}

.menu-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.menu-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.menu-name {
  display: block;
  margin: 0;
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.16;
  letter-spacing: -0.012em;
}

.volume-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7a6255;
  background: rgba(246, 234, 215, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.menu-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  color: var(--red);
  font-weight: 950;
  font-size: 1.05rem;
  line-height: 1.1;
}

.price-currency {
  font-size: 0.72rem;
  font-weight: 900;
}

.menu-photo {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 88px;
  border-radius: 18px;
  overflow: hidden;
  color: rgba(122, 88, 66, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(135deg, rgba(246, 234, 215, 0.9), rgba(223, 246, 251, 0.74));
  border: 1px solid rgba(153, 91, 60, 0.12);
}

.menu-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(255, 255, 255, 0.42) 45%, transparent 56% 100%);
  opacity: 0.55;
}

.menu-photo-icon,
.menu-photo-label {
  position: relative;
  z-index: 1;
}

.menu-photo-icon {
  font-size: 2rem;
  line-height: 1;
}

.menu-photo-label {
  max-width: 72px;
  color: #8a6b5a;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.dish-modal[hidden] {
  display: none;
}

.dish-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-top: env(safe-area-inset-top);
}

.dish-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 29, 26, 0.58);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.dish-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  overflow: visible;
  overscroll-behavior: contain;
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.98)),
    var(--sand-2);
  box-shadow: 0 -22px 54px rgba(33, 24, 16, 0.28);
  transform: translate3d(0, 105%, 0) scale(0.985);
  opacity: 0.98;
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.24s ease;
}

.dish-modal.is-open .dish-modal-backdrop {
  opacity: 1;
}

.dish-modal.is-open .dish-sheet {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.dish-handle {
  position: absolute;
  top: -18px;
  left: 50%;
  z-index: 12;
  width: 64px;
  height: 20px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(33, 24, 16, 0.18);
  transform: translateX(-50%);
}

.dish-handle::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(121, 108, 96, 0.54);
  transform: translateX(-50%);
}

.dish-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.24);
  transition: transform 0.18s ease, background 0.18s ease;
}

.dish-close span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.dish-close span::before,
.dish-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.dish-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dish-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dish-close:active {
  transform: scale(0.92);
  background: var(--red-dark);
}

.dish-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.dish-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 90, 0.34), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(127, 216, 208, 0.38), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.18), rgba(255, 250, 244, 0.78)),
    var(--beach-bg) center bottom / cover no-repeat;
}

.dish-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.86));
  pointer-events: none;
}

.dish-photo-placeholder {
  position: absolute;
  inset: 48px 42px 34px;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.96) 54%, rgba(255, 248, 239, 0.98)),
    linear-gradient(135deg, #f8ead7, #e7f8fb);
  border: 1px solid rgba(153, 91, 60, 0.14);
  box-shadow: 0 16px 40px rgba(62, 42, 25, 0.16);
}

.dish-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 23px;
  border: 1px dashed rgba(138, 90, 40, 0.18);
}

.dish-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 54%, rgba(248, 239, 226, 0.82) 55% 66%, rgba(255, 255, 255, 0.84) 67% 100%);
  border: 1px solid rgba(138, 90, 40, 0.14);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.26);
}

.dish-decor-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.dish-decor {
  position: absolute;
  display: block;
  opacity: 0;
  transform-origin: 50% 55%;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 12px rgba(60, 38, 22, 0.14));
}

.dish-modal.is-open .dish-decor {
  animation:
    dishDecorIn 0.56s cubic-bezier(0.16, 1, 0.3, 1) both,
    dishDecorFloat 4.8s ease-in-out 0.7s infinite;
}

.decor-a {
  top: 38px;
  left: -22px;
  width: 82px;
  animation-delay: 0.12s, 0.68s;
}

.decor-b {
  top: 74px;
  right: -24px;
  width: 92px;
  animation-delay: 0.18s, 0.76s;
}

.decor-c {
  left: -18px;
  bottom: 22px;
  width: 88px;
  animation-delay: 0.24s, 0.84s;
}

.decor-orange-small,
.decor-sparkle {
  width: 68px;
}

.decor-board {
  width: 126px;
}

.decor-palm {
  width: 92px;
}

.dish-content {
  position: relative;
  z-index: 1;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.98));
}

.dish-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.42rem, 8vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.dish-description {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.dish-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dish-volume {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #7a6255;
  background: rgba(246, 234, 215, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
}

.dish-volume[hidden] {
  display: none;
}

.dish-price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--red);
  font-size: 1.28rem;
  font-weight: 950;
  margin-left: auto;
}

@keyframes dishDecorIn {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.82) rotate(-7deg);
  }
  72% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.04) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
}

@keyframes dishDecorFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -5px, 0) rotate(2deg);
  }
}

.empty-state {
  text-align: center;
}

.empty-state {
  padding: 48px 18px 20px;
}

.empty-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--sand), var(--sea));
  font-size: 2.8rem;
  box-shadow: var(--shadow);
}

.empty-state p {
  color: var(--muted);
}

.beach-page {
  display: none;
}

.beach-page.page-active {
  display: block;
}

.beach-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(43, 29, 17, 0.02) 0%, rgba(35, 24, 15, 0.38) 48%, rgba(28, 18, 10, 0.7) 100%),
    var(--beach-page-bg) center bottom / cover no-repeat;
  box-shadow: var(--shadow);
}

.beach-hero-panel .eyebrow,
.beach-hero-panel h1,
.beach-hero-panel p {
  position: relative;
  z-index: 1;
}

.beach-hero-panel .eyebrow {
  color: #fff;
  opacity: 0.92;
  margin-bottom: 8px;
}

.beach-hero-panel h1 {
  max-width: 330px;
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 10vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.beach-hero-panel p {
  max-width: 320px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.beach-rates {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.beach-rate-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 239, 0.88)),
    var(--card);
}

.beach-rate-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--red);
  background: linear-gradient(135deg, rgba(246, 234, 215, 0.92), rgba(223, 246, 251, 0.72));
  font-size: 1.78rem;
}

.beach-rate-card h2 {
  margin: 0 0 4px;
  font-size: 1.14rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.beach-rate-card p {
  margin: 0;
  font-size: 0.86rem;
}

.beach-rate-card strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--red);
  font-size: 1.18rem;
  font-weight: 950;
}

.beach-price-stack {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 58px;
}

.beach-price-stack span {
  color: #8a6b5a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.beach-rate-card strong::after {
  content: "";
  font-size: 0.72rem;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(215, 25, 32, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 -14px 34px rgba(61, 39, 24, 0.08);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  border-radius: 22px;
  color: #8b786d;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.nav-item span {
  display: grid;
  place-items: center;
  font-size: 1.42rem;
}

.nav-item small {
  font-weight: 850;
  font-size: 0.74rem;
}

.nav-item.nav-active {
  color: var(--red);
  background: rgba(215, 25, 32, 0.08);
}

@media (min-width: 480px) {
  .recommend-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommend-card {
    min-height: 170px;
  }
}

@media (hover: hover) {
  .primary-btn:hover,
  .secondary-btn:hover,
  .menu-card:hover {
    transform: translateY(-2px);
  }

  .primary-btn:hover {
    box-shadow: 0 18px 38px rgba(215, 25, 32, 0.28);
  }

  .menu-card:hover {
    box-shadow: 0 22px 46px rgba(114, 68, 36, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .dish-modal.is-open .dish-decor {
    animation: none !important;
    opacity: 1;
  }
}
