:root {
  --paper: #faf7f2;
  --paper-shadow: #e8e0d4;
  --ink: #2a2520;
  --ink-soft: #6b635a;
  --ink-faint: #a39a90;
  --accent: #8b3a2a;
  --accent-hover: #6e2e21;
  --gold: #b8954a;
  --gold-light: #e8d9b0;
  --sage: #6b8f6e;
  --sage-pale: #e8efe9;
  --rule: #d4ccc0;
  --white: #fff;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --page-width: 720px;
  --thai-rope-top: calc(2.5rem + 18px + 2.75rem + 0.85rem);
  --thai-page-mask: 390px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* ── Ambient background ── */
body {
  font-family: var(--font-body);
  background: #0c0e1a;
  color: var(--ink);
  min-height: 100vh;
  padding: 2.5rem 1.25rem 5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 78% 12%, rgba(120, 140, 200, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(60, 50, 100, 0.15), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(25, 35, 70, 0.4), transparent 70%),
    linear-gradient(180deg, #0a0c18 0%, #0e1224 35%, #12182e 65%, #0a0e1c 100%);
}

.site-bg-pattern {
  display: none;
}

.site-bg-silhouettes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.03;
}

.bg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Twinkling stars ── */
.site-bg-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sky-star {
  fill: #fff;
  opacity: 0.5;
  animation: star-twinkle 3.5s ease-in-out infinite;
}

.sky-star:nth-child(4n) { animation-duration: 2.8s; animation-delay: -0.8s; }
.sky-star:nth-child(4n+1) { animation-duration: 4.2s; animation-delay: -1.5s; }
.sky-star:nth-child(4n+2) { animation-duration: 3s; animation-delay: -2.2s; }
.sky-star:nth-child(4n+3) { animation-duration: 5s; animation-delay: -0.4s; }
.sky-star:nth-child(7n) { fill: #e8eeff; }
.sky-star:nth-child(11n) { fill: #fff8e8; animation-duration: 3.8s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.bg-sil {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(42, 37, 32, 0.06));
  will-change: transform;
}

.bg-sil--chilli-1 {
  width: clamp(90px, 11vw, 150px);
  top: 4%;
  left: 2%;
  color: rgba(139, 58, 42, 0.16);
  --sil-rot: -28deg;
  animation: sil-float-a 22s ease-in-out infinite;
}

.bg-sil--chilli-2 {
  width: clamp(70px, 8vw, 110px);
  bottom: 12%;
  right: 4%;
  color: rgba(139, 58, 42, 0.12);
  --sil-rot: 35deg;
  animation: sil-float-b-flip 26s ease-in-out infinite;
}

.bg-sil--noodles-1 {
  width: clamp(160px, 18vw, 260px);
  top: 18%;
  right: -2%;
  color: rgba(184, 149, 74, 0.14);
  --sil-rot: 12deg;
  animation: sil-drift-a 28s ease-in-out infinite;
}

.bg-sil--noodles-2 {
  width: clamp(130px, 14vw, 200px);
  bottom: 8%;
  left: 6%;
  color: rgba(184, 149, 74, 0.11);
  --sil-rot: -8deg;
  animation: sil-drift-b-flip 24s ease-in-out infinite;
}

.bg-sil--anise-1 {
  width: clamp(60px, 7vw, 95px);
  top: 42%;
  left: 1%;
  color: rgba(107, 143, 110, 0.15);
  animation: sil-spin-slow 40s linear infinite;
}

.bg-sil--anise-2 {
  width: clamp(50px, 6vw, 80px);
  top: 8%;
  right: 22%;
  color: rgba(107, 143, 110, 0.12);
  animation: sil-spin-slow 50s linear infinite reverse;
}

.bg-sil--lemongrass-1 {
  width: clamp(55px, 6vw, 85px);
  bottom: 2%;
  left: 18%;
  color: rgba(107, 143, 110, 0.13);
  --sil-rot: 8deg;
  animation: sil-sway 18s ease-in-out infinite;
}

.bg-sil--lemongrass-2 {
  width: clamp(45px, 5vw, 70px);
  top: 55%;
  right: 8%;
  color: rgba(107, 143, 110, 0.1);
  --sil-rot: -12deg;
  animation: sil-sway 21s ease-in-out infinite reverse;
}

.bg-sil--lime-1 {
  width: clamp(75px, 9vw, 120px);
  top: 72%;
  right: 15%;
  color: rgba(107, 143, 110, 0.11);
  animation: sil-float-a 20s ease-in-out infinite;
}

.bg-sil--basil-1 {
  width: clamp(100px, 11vw, 150px);
  top: 28%;
  left: 8%;
  color: rgba(107, 143, 110, 0.12);
  --sil-rot: -6deg;
  animation: sil-drift-a 30s ease-in-out infinite;
}

.bg-sil--basil-2 {
  width: clamp(80px, 9vw, 120px);
  bottom: 28%;
  right: 20%;
  color: rgba(107, 143, 110, 0.1);
  --sil-rot: 15deg;
  animation: sil-drift-b-flip 27s ease-in-out infinite;
}

.bg-sil--garlic-1 {
  width: clamp(65px, 7vw, 100px);
  top: 62%;
  left: 4%;
  color: rgba(184, 149, 74, 0.13);
  animation: sil-float-b 23s ease-in-out infinite;
}

.bg-sil--chopsticks-1 {
  width: clamp(70px, 8vw, 110px);
  top: 12%;
  left: 28%;
  color: rgba(139, 58, 42, 0.1);
  --sil-rot: -45deg;
  animation: sil-sway 25s ease-in-out infinite;
}

.bg-sil--coconut-1 {
  width: clamp(85px, 10vw, 130px);
  bottom: 4%;
  right: 28%;
  color: rgba(184, 149, 74, 0.12);
  animation: sil-float-a 19s ease-in-out infinite;
}

.bg-sil--ginger-1 {
  width: clamp(110px, 12vw, 170px);
  top: 48%;
  right: 1%;
  color: rgba(139, 58, 42, 0.09);
  --sil-rot: -5deg;
  animation: sil-drift-a 32s ease-in-out infinite;
}

.bg-sil--pepper-1 {
  width: clamp(45px, 5vw, 70px);
  top: 20%;
  left: 42%;
  color: rgba(42, 37, 32, 0.1);
  animation: sil-float-a 17s ease-in-out infinite;
}

.bg-sil--pepper-2 {
  width: clamp(38px, 4vw, 58px);
  bottom: 42%;
  left: 32%;
  color: rgba(42, 37, 32, 0.08);
  animation: sil-float-b 21s ease-in-out infinite;
}

.site-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35) 100%);
}

@keyframes sil-float-a {
  0%, 100% { transform: translate(0, 0) rotate(var(--sil-rot, 0deg)); }
  50% { transform: translate(8px, -14px) rotate(calc(var(--sil-rot, 0deg) + 4deg)); }
}

@keyframes sil-float-b {
  0%, 100% { transform: translate(0, 0) rotate(var(--sil-rot, 0deg)); }
  50% { transform: translate(-10px, 12px) rotate(calc(var(--sil-rot, 0deg) - 3deg)); }
}

@keyframes sil-drift-a {
  0%, 100% { transform: translate(0, 0) rotate(var(--sil-rot, 0deg)); }
  33% { transform: translate(12px, -8px) rotate(calc(var(--sil-rot, 0deg) + 2deg)); }
  66% { transform: translate(-6px, 10px) rotate(calc(var(--sil-rot, 0deg) - 2deg)); }
}

@keyframes sil-drift-b {
  0%, 100% { transform: translate(0, 0) rotate(var(--sil-rot, 0deg)); }
  33% { transform: translate(-8px, 6px) rotate(calc(var(--sil-rot, 0deg) - 3deg)); }
  66% { transform: translate(10px, -10px) rotate(calc(var(--sil-rot, 0deg) + 2deg)); }
}

@keyframes sil-sway {
  0%, 100% { transform: rotate(var(--sil-rot, 0deg)); }
  25% { transform: rotate(calc(var(--sil-rot, 0deg) + 6deg)); }
  75% { transform: rotate(calc(var(--sil-rot, 0deg) - 5deg)); }
}

@keyframes sil-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sil-float-b-flip {
  0%, 100% { transform: translate(0, 0) rotate(var(--sil-rot, 0deg)) scaleX(-1); }
  50% { transform: translate(-10px, 12px) rotate(calc(var(--sil-rot, 0deg) - 3deg)) scaleX(-1); }
}

@keyframes sil-drift-b-flip {
  0%, 100% { transform: translate(0, 0) rotate(var(--sil-rot, 0deg)) scaleX(-1); }
  33% { transform: translate(-8px, 6px) rotate(calc(var(--sil-rot, 0deg) - 3deg)) scaleX(-1); }
  66% { transform: translate(10px, -10px) rotate(calc(var(--sil-rot, 0deg) + 2deg)) scaleX(-1); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-sil,
  .site-bg-glow,
  .sky-star,
  .page {
    animation: none !important;
  }

  .sky-star {
    opacity: 0.7 !important;
  }

  .thai-garland-scene animate,
  .thai-garland-scene animateTransform {
    display: none;
  }
}

.site-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.site-bg-glow--1 {
  width: 480px;
  height: 480px;
  background: rgba(160, 180, 230, 0.1);
  top: -10%;
  right: -6%;
  animation: glow-pulse 12s ease-in-out infinite;
}

.site-bg-glow--2 {
  width: 420px;
  height: 420px;
  background: rgba(90, 70, 150, 0.08);
  bottom: -12%;
  left: -10%;
  animation: glow-pulse 15s ease-in-out infinite 2s;
}

.site-bg-glow--3 {
  width: 340px;
  height: 340px;
  background: rgba(255, 220, 180, 0.05);
  top: 40%;
  left: 35%;
  animation: glow-pulse 18s ease-in-out infinite 4s;
}

/* ── Thai garland rope + scattered garlands (background only) ── */
.thai-bg-garlands {
  position: fixed;
  top: var(--thai-rope-top);
  left: 50%;
  width: 100vw;
  height: 12rem;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(50% - var(--thai-page-mask)),
    transparent calc(50% - var(--thai-page-mask)),
    transparent calc(50% + var(--thai-page-mask)),
    #000 calc(50% + var(--thai-page-mask)),
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(50% - var(--thai-page-mask)),
    transparent calc(50% - var(--thai-page-mask)),
    transparent calc(50% + var(--thai-page-mask)),
    #000 calc(50% + var(--thai-page-mask)),
    #000 100%
  );
}

.thai-garland-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 20px rgba(255, 220, 160, 0.08));
}

.garland-unit {
  overflow: visible;
}

/* ── Ornamental page frame ── */
.page-shell {
  position: relative;
  max-width: calc(var(--page-width) + 36px);
  margin-inline: auto;
  z-index: 1;
}

.frame-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(
    135deg,
    #c0392b 0%,
    #e8c878 14%,
    #6b8f6e 28%,
    #d4a855 42%,
    #8b3a2a 56%,
    #5a8f4a 70%,
    #b8954a 84%,
    #c0392b 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow:
    0 0 0 1px rgba(184, 149, 74, 0.45),
    0 6px 28px rgba(139, 58, 42, 0.14),
    0 0 40px rgba(107, 143, 110, 0.08);
}

.page-frame::before,
.page-frame::after {
  content: none;
}

/* Frame garland icons */
.frame-side {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  z-index: 1;
}

.frame-side--top {
  top: 1px;
  left: 28px;
  right: 28px;
  height: 22px;
}

.frame-side--bottom {
  bottom: 1px;
  left: 28px;
  right: 28px;
  height: 22px;
}

.frame-side--left {
  flex-direction: column;
  left: 1px;
  top: 32px;
  bottom: 32px;
  width: 22px;
  justify-content: space-evenly;
}

.frame-side--right {
  flex-direction: column;
  right: 1px;
  top: 32px;
  bottom: 32px;
  width: 22px;
  justify-content: space-evenly;
}

.frame-deco {
  width: 20px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(42, 37, 32, 0.2));
}

.frame-deco--sm { width: 16px; }

.frame-deco--v {
  width: 18px;
  transform: rotate(90deg);
}

.frame-corner-cluster {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 2px;
  filter: drop-shadow(0 2px 4px rgba(42, 37, 32, 0.18));
}

.frame-corner-cluster--tl {
  top: 4px;
  left: 4px;
  flex-direction: column;
  align-items: flex-start;
}

.frame-corner-cluster--tr {
  top: 4px;
  right: 4px;
  flex-direction: column;
  align-items: flex-end;
  transform: scaleX(-1);
}

.frame-corner-cluster--bl {
  bottom: 4px;
  left: 4px;
  flex-direction: column-reverse;
  align-items: flex-start;
  transform: scaleY(-1);
}

.frame-corner-cluster--br {
  bottom: 4px;
  right: 4px;
  flex-direction: column-reverse;
  align-items: flex-end;
  transform: scale(-1);
}

.frame-deco--corner { width: 26px; }
.frame-deco--corner-sm { width: 20px; }

.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-width);
  margin: 18px auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 120px),
    var(--paper);
  border: 2.5px solid rgba(184, 149, 74, 0.65);
  box-shadow:
    0 0 0 1px rgba(232, 216, 176, 0.55),
    0 0 0 5px rgba(184, 149, 74, 0.1),
    0 0 28px rgba(184, 149, 74, 0.18),
    0 1px 0 var(--white) inset,
    0 4px 24px rgba(42, 37, 32, 0.08),
    0 20px 50px rgba(42, 37, 32, 0.12);
  padding: 2.75rem 2.5rem 2.25rem;
  animation: gold-border-glow 5s ease-in-out infinite;
}

.page::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgba(184, 149, 74, 0.32);
  box-shadow:
    inset 0 0 24px rgba(232, 216, 176, 0.18),
    inset 0 1px 0 rgba(255, 248, 235, 0.6);
  pointer-events: none;
  border-radius: 1px;
}

.page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 200, 120, 0.4) 15%,
    #e8c878 35%,
    #f0d890 50%,
    #e8c878 65%,
    rgba(232, 200, 120, 0.4) 85%,
    transparent 100%
  );
  opacity: 0.95;
  box-shadow: 0 1px 10px rgba(184, 149, 74, 0.35);
  pointer-events: none;
}

@keyframes gold-border-glow {
  0%, 100% {
    border-color: rgba(184, 149, 74, 0.6);
    box-shadow:
      0 0 0 1px rgba(232, 216, 176, 0.5),
      0 0 0 5px rgba(184, 149, 74, 0.08),
      0 0 22px rgba(184, 149, 74, 0.14),
      0 1px 0 var(--white) inset,
      0 4px 24px rgba(42, 37, 32, 0.08),
      0 20px 50px rgba(42, 37, 32, 0.12);
  }
  50% {
    border-color: rgba(212, 168, 85, 0.82);
    box-shadow:
      0 0 0 1px rgba(240, 216, 144, 0.75),
      0 0 0 5px rgba(184, 149, 74, 0.16),
      0 0 36px rgba(184, 149, 74, 0.26),
      0 1px 0 var(--white) inset,
      0 4px 24px rgba(42, 37, 32, 0.08),
      0 20px 50px rgba(42, 37, 32, 0.12);
  }
}

/* ── Header & logo ── */
.menu-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-top: 0.25rem;
}

/* ── About the Chef corner badge ── */
.chef-corner {
  position: absolute;
  top: 3rem;
  right: 2.75rem;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  pointer-events: none;
}

.chef-corner-label {
  margin: 0 0 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  color: var(--gold-dark, #8a6d1f);
  pointer-events: none;
}

.chef-corner-label-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: chef-label-wiggle 4s ease-in-out infinite;
}

.chef-corner-arrow {
  width: 42px;
  height: 22px;
  margin-right: 0.15rem;
  opacity: 0.85;
}

@keyframes chef-label-wiggle {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.5deg); }
}

.chef-corner-btn {
  pointer-events: auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2.5px solid rgba(184, 149, 74, 0.75);
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    0 0 0 2px rgba(255, 248, 235, 0.9),
    0 4px 14px rgba(42, 37, 32, 0.14);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chef-corner-btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px rgba(255, 248, 235, 0.95),
    0 6px 18px rgba(184, 149, 74, 0.28);
}

.chef-corner-btn:focus-visible {
  outline: 2px solid var(--gold, #b8954a);
  outline-offset: 3px;
}

.chef-corner-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chef-modal {
  width: min(380px, 92vw);
  text-align: center;
  padding-top: 2rem;
}

.chef-modal-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.chef-modal-portrait {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(184, 149, 74, 0.7);
  box-shadow:
    0 0 0 4px rgba(232, 216, 176, 0.45),
    0 8px 24px rgba(42, 37, 32, 0.12);
}

.chef-modal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chef-modal-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: left;
  margin: 0;
  white-space: pre-wrap;
}

.header-ornament {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5em;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

.brand-logo {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 4px 14px rgba(139, 58, 42, 0.18));
  transition: transform 0.3s ease;
}

.brand-lockup:hover .brand-logo {
  transform: scale(1.03) rotate(-2deg);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.menu-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.menu-divider--ornate {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 220px;
  margin: 1.15rem auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 30%, var(--gold-light) 50%, var(--rule) 70%, transparent);
}

.divider-glyph {
  font-size: 0.85rem;
  opacity: 0.65;
  line-height: 1;
}

.menu-hours {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  display: inline-block;
  background: var(--sage-pale);
  border-radius: 999px;
  border: 1px solid rgba(107, 143, 110, 0.15);
}

.seo-intro {
  max-width: 36em;
  margin: 0.85rem auto 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Section label ── */
.menu-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-section-title {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  margin: 0;
  text-transform: inherit;
}

.section-ornament {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-ornament:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ── Menu items ── */
.menu-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.menu-item {
  padding: 1.25rem 1.35rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow:
    0 1px 3px rgba(42, 37, 32, 0.04),
    0 4px 16px rgba(42, 37, 32, 0.05);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--panel-accent, var(--gold));
  border-radius: 14px 0 0 14px;
  opacity: 0.85;
}

.menu-item:hover {
  box-shadow:
    0 2px 6px rgba(42, 37, 32, 0.06),
    0 8px 24px rgba(42, 37, 32, 0.08);
  transform: translateY(-1px);
}

.menu-item:nth-child(6n+1) {
  background: linear-gradient(145deg, #fdf8f2 0%, #f8efe4 100%);
  border-color: rgba(184, 149, 74, 0.22);
  --panel-accent: #c4a05a;
}

.menu-item:nth-child(6n+2) {
  background: linear-gradient(145deg, #f4f9f5 0%, #e9f2eb 100%);
  border-color: rgba(107, 143, 110, 0.2);
  --panel-accent: #7a9f7d;
}

.menu-item:nth-child(6n+3) {
  background: linear-gradient(145deg, #fdf5f2 0%, #f8e9e4 100%);
  border-color: rgba(139, 58, 42, 0.15);
  --panel-accent: #a85a4a;
}

.menu-item:nth-child(6n+4) {
  background: linear-gradient(145deg, #faf6ee 0%, #f3ead6 100%);
  border-color: rgba(184, 149, 74, 0.18);
  --panel-accent: #b8954a;
}

.menu-item:nth-child(6n+5) {
  background: linear-gradient(145deg, #f6f8f1 0%, #eaefe3 100%);
  border-color: rgba(107, 143, 110, 0.16);
  --panel-accent: #8faa8f;
}

.menu-item:nth-child(6n+6) {
  background: linear-gradient(145deg, #faf4f6 0%, #f2e8ec 100%);
  border-color: rgba(139, 58, 42, 0.12);
  --panel-accent: #c47a6a;
}

.menu-item-clickable {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.15rem 0 0.15rem 0.35rem;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  border-radius: 10px;
  transition: background 0.2s;
}

.menu-item-clickable:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.menu-item-clickable:hover .menu-item-more {
  color: var(--accent);
}

.menu-item-top {
  display: flex;
  gap: 1.35rem;
  align-items: stretch;
}

.menu-item-img-wrap {
  flex-shrink: 0;
  width: 148px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  outline: 1px solid rgba(42, 37, 32, 0.06);
  background: var(--rule);
  box-shadow: 0 3px 10px rgba(42, 37, 32, 0.08);
}

.menu-item-img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.menu-item-clickable:hover .menu-item-img {
  transform: scale(1.04);
}

.menu-item-info { flex: 1; min-width: 0; }

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.menu-item-options {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 0.35rem;
}

.menu-item-teaser {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.menu-item-more {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  transition: color 0.15s;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  border: 1px solid rgba(42, 37, 32, 0.08);
}

.menu-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0 0 0.35rem;
  border-top: 1px solid rgba(42, 37, 32, 0.07);
}

.variant-radios {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.variant-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink-soft);
  user-select: none;
}

.variant-radio input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.variant-radio:has(input:checked) .variant-radio-text {
  color: var(--ink);
  font-weight: 600;
}

.variant-radio-text {
  line-height: 1.3;
}

.btn-add {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(139, 58, 42, 0.25);
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 58, 42, 0.3);
}

/* ── Footer ── */
.menu-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 0.25rem;
  position: relative;
}

.menu-footer p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.footer-note {
  font-style: italic;
  color: var(--ink-faint) !important;
  margin-top: 0.85rem !important;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.checkout-hint {
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.45;
  margin: 0.65rem 0 0;
  text-align: center;
}

.whatsapp-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.75rem auto 0;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #25d366, #1ebe5d);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.35),
    0 0 0 3px rgba(37, 211, 102, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.whatsapp-footer-btn:hover {
  background: linear-gradient(145deg, #2ee676, #25d366);
  transform: translateY(-1px);
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.42),
    0 0 0 3px rgba(37, 211, 102, 0.18);
}

.whatsapp-footer-btn:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 3px;
}

.whatsapp-footer-btn[hidden] {
  display: none;
}

.whatsapp-footer-btn svg {
  flex-shrink: 0;
}

/* ── Cart FAB ── */
.cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-hover));
  color: var(--white);
  border: 2px solid var(--gold-light);
  box-shadow:
    0 4px 20px rgba(139, 58, 42, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: transform 0.2s;
}

.cart-fab:hover { transform: scale(1.08) rotate(-3deg); }

.cart-fab-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Cart panel ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 37, 32, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100vh;
  background: var(--paper);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-left: 1px solid var(--rule);
}

.cart-panel.open { transform: translateX(0); }

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.cart-panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-faint);
  line-height: 1;
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  padding: 2rem 0;
  font-style: italic;
}

.cart-entry {
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--rule);
}

.cart-entry-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.cart-entry-variant {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
}

.cart-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.cart-entry-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.88rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
}

.cart-panel-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--rule);
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.cart-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.5rem 0 0.85rem;
}

.btn-order {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-order:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover { background: var(--paper); }

/* ── Checkout modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 37, 32, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--paper);
  border: 2px solid var(--gold-light);
  outline: 1px solid var(--rule);
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: 0 16px 48px rgba(42, 37, 32, 0.18);
}

.menu-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-faint);
  font-style: italic;
  background: var(--sage-pale);
  border-radius: 8px;
  border: 1px dashed rgba(107, 143, 110, 0.25);
}

.admin-footer-link {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-decoration: none;
  margin-top: 0.75rem;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
}

.admin-footer-link:hover {
  color: var(--accent);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-faint);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.modal-form input,
.modal-form select {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--white);
}

.modal-form input:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-form input:disabled {
  background: var(--sage-pale);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.9;
}

.pay-opt {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  cursor: pointer;
}

.checkout-summary {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.checkout-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.checkout-total-line {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dotted var(--rule);
}

.upi-payment {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.upi-instructions {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.upi-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.upi-qr {
  border-radius: 10px;
  border: 2px solid var(--gold-light);
  box-shadow: 0 4px 16px rgba(42, 37, 32, 0.1);
  background: #fff;
  display: inline-block;
  line-height: 0;
}

.upi-qr img,
.upi-qr canvas {
  display: block;
  border-radius: 8px;
}

.upi-ref,
.upi-vpa {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.upi-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.5;
  margin: 0.75rem 0 1rem;
  max-width: 28em;
  margin-inline: auto;
}

.upi-error {
  font-size: 0.82rem;
  color: #b33;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

#confirmUpiBtn {
  width: 100%;
}

.modal-done { text-align: center; }

.done-mark {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: var(--accent);
}

.modal-done p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.5rem; }

.order-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent) !important;
  margin: 0.75rem 0 1.25rem !important;
}

/* ── Item detail popup ── */
.item-modal {
  width: min(480px, 100%);
  padding: 0 0 1.75rem;
  overflow: hidden;
}

.item-modal .modal-close {
  z-index: 2;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  top: 0.65rem;
  right: 0.65rem;
}

.item-modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid var(--rule);
  background: var(--rule);
}

.item-modal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  padding: 1.25rem 1.75rem 0;
  margin-bottom: 0.25rem;
  text-align: left;
}

.item-modal-options {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 0 1.75rem;
  margin-bottom: 0.75rem;
}

.item-modal-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 0 1.75rem;
  margin-bottom: 0.85rem;
}

.item-modal-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0 1.75rem;
  margin-bottom: 1rem;
}

.item-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.75rem 1.75rem;
}

.item-modal-actions .variant-radios {
  gap: 0.5rem 1.25rem;
}

.item-modal-actions .variant-radio {
  font-size: 0.88rem;
}

.item-modal-actions .btn-add {
  align-self: flex-end;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  :root {
    --thai-rope-top: calc(1rem + 12px + 2rem + 0.65rem);
    --thai-page-mask: min(48vw, 390px);
  }

  body { padding: 1rem 0.5rem 4.5rem; }

  .page-shell { max-width: 100%; }

  .page { margin: 12px auto; }

  .page-frame {
    padding: 12px;
    border-radius: 8px;
  }

  .frame-side--top,
  .frame-side--bottom {
    left: 20px;
    right: 20px;
    height: 16px;
  }

  .frame-side--left,
  .frame-side--right {
    top: 24px;
    bottom: 24px;
    width: 16px;
  }

  .frame-deco { width: 14px; }
  .frame-deco--sm { width: 12px; }
  .frame-deco--corner { width: 20px; }
  .frame-deco--corner-sm { width: 15px; }

  .frame-corner-cluster--tl,
  .frame-corner-cluster--tr,
  .frame-corner-cluster--bl,
  .frame-corner-cluster--br {
    transform: scale(0.85);
  }

  .frame-corner-cluster--tr {
    transform: scale(0.85) scaleX(-1);
    align-items: flex-end;
  }

  .frame-corner-cluster--bl {
    transform: scale(0.85) scaleY(-1);
    flex-direction: column-reverse;
  }

  .frame-corner-cluster--br {
    transform: scale(0.85) scale(-1);
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .page {
    padding: 2rem 1.25rem 1.5rem;
  }

  .chef-corner {
    top: 2.25rem;
    right: 2rem;
    gap: 0;
  }

  .chef-corner-label-text {
    font-size: 0.62rem;
  }

  .chef-corner-arrow {
    width: 32px;
    height: 18px;
  }

  .chef-corner-btn {
    width: 52px;
    height: 52px;
  }

  .page::before { inset: 5px; }

  .brand-logo { width: 72px; height: 72px; }

  .brand-text h1 { font-size: 1.65rem; }

  .thai-bg-garlands {
    height: 10rem;
    opacity: 0.85;
  }

  .menu-item {
    padding: 1rem 1rem 0.9rem;
  }

  .menu-body { gap: 0.9rem; }

  .menu-item-img-wrap,
  .menu-item-img { width: 112px; height: 112px; }

  .menu-item-name { font-size: 1.15rem; }

  .menu-item-actions { align-items: stretch; }

  .menu-item-actions .btn-add { align-self: flex-end; }

  .item-modal-img { height: 220px; }
}
