:root {
  --font-lao-body: "Noto Sans Lao", "Noto Sans Thai", "Noto Sans", system-ui, sans-serif;
  --font-lao-display: "Noto Serif Lao", "Noto Sans Lao", "Noto Sans Thai", serif;
  --bg: #070707;
  --panel: rgba(17, 17, 17, .88);
  --panel-2: #18120f;
  --text: #fff6e8;
  --muted: #c9b9a0;
  --accent: #ffb636;
  --accent-2: #ffd78a;
  --fire: #e8431f;
  --deep: #120806;
  --border: rgba(255, 214, 138, .18);
  --shadow: 0 28px 80px rgba(0,0,0,.55);
  --hero-glow: rgba(232, 67, 31, .28);
}
* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-lao-body);
  background: transparent;
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 16%, var(--hero-glow), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(255, 182, 54, .16), transparent 30%),
    radial-gradient(circle at 60% 88%, rgba(118, 8, 8, .36), transparent 36%),
    linear-gradient(135deg, #050505 0%, var(--deep) 42%, #050202 72%, #030303 100%);
  animation: backgroundDrift 11s ease-in-out infinite alternate;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.page-glow {
  position: fixed;
  width: 42rem;
  height: 42rem;
  right: -18rem;
  top: -14rem;
  z-index: -2;
  background: radial-gradient(circle, rgba(255, 182, 54, .25), transparent 62%);
  filter: blur(20px);
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.ember-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ember-field span {
  position: absolute;
  bottom: -28px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--fire), 0 0 34px rgba(255, 182, 54, .45);
  opacity: .34;
  animation: emberRise 8s linear infinite;
}
.ember-field span:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 7s; }
.ember-field span:nth-child(2) { left: 22%; animation-delay: 1.8s; animation-duration: 10s; }
.ember-field span:nth-child(3) { left: 45%; animation-delay: .8s; animation-duration: 8.5s; }
.ember-field span:nth-child(4) { left: 68%; animation-delay: 2.4s; animation-duration: 9.5s; }
.ember-field span:nth-child(5) { left: 84%; animation-delay: 1.1s; animation-duration: 7.8s; }
.ember-field span:nth-child(6) { left: 94%; animation-delay: 3.2s; animation-duration: 11s; }

.flame-zone {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.flame-zone span {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,54,.18), rgba(232,67,31,.12) 38%, transparent 68%);
  filter: blur(14px);
  opacity: .46;
  animation: flameGlowMove 7s ease-in-out infinite alternate;
}
.flame-zone span:nth-child(1) { left: -78px; top: 18%; animation-delay: 0s; }
.flame-zone span:nth-child(2) { right: -62px; top: 58%; animation-delay: 1.4s; }
.flame-zone span:nth-child(3) { left: 46%; bottom: 6%; animation-delay: 2.2s; opacity: .28; }
.fire-kitchen-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
  font-size: .84rem;
  font-weight: 900;
}

.footer-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 18px rgba(255, 126, 24, .32));
}
.mini-flame-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232, 67, 31, .20);
  filter: drop-shadow(0 0 10px rgba(255, 182, 54, .62));
  animation: miniFlamePulse 1.4s ease-in-out infinite alternate;
}
.panel-flame-glow {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,54,.22), rgba(232,67,31,.16) 42%, transparent 70%);
  filter: blur(10px);
  opacity: .72;
  pointer-events: none;
  animation: panelFlamePulse 2s ease-in-out infinite alternate;
}
.section-fire-line {
  position: relative;
  width: min(280px, 78vw);
  height: 24px;
  margin-top: 8px;
  overflow: hidden;
}
.section-fire-line span {
  position: absolute;
  left: 0;
  top: 9px;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232,67,31,.8), var(--accent), rgba(232,67,31,.7), transparent);
  box-shadow: 0 0 14px rgba(232,67,31,.55), 0 0 28px rgba(255,182,54,.25);
  animation: fireLineBurn 2.8s ease-in-out infinite;
}
.section-fire-line span::before, .section-fire-line span::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), rgba(232,67,31,.55), transparent 70%);
  filter: blur(2px);
  animation: sparkFlicker 1.2s ease-in-out infinite alternate;
}
.section-fire-line span::before { left: 22%; }
.section-fire-line span::after { right: 18%; animation-delay: .45s; }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(255,255,255,.28) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
}
.hero {
  min-height: 100svh;
  padding: 22px clamp(16px, 4vw, 56px) 64px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, var(--bg));
}
.topbar, main, footer { max-width: 1180px; margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 214, 138, .16), rgba(232, 67, 31, .10) 48%, rgba(0,0,0,.18) 72%),
    rgba(10, 6, 4, .72);
  border: 1px solid rgba(255, 214, 138, .26);
  box-shadow:
    0 0 0 3px rgba(255, 107, 28, .08),
    0 12px 34px rgba(232, 67, 31, .34),
    0 0 38px rgba(255, 182, 54, .16);
  position: relative;
  overflow: visible;
  flex: 0 0 auto;
}
.brand-logo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 125, 36, .40));
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 182, 54, .22), transparent, rgba(232, 67, 31, .18), transparent);
  animation: spin 9s linear infinite;
  z-index: -1;
  pointer-events: none;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .13em;
  font-size: .74rem;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.18rem, 2vw, 1.75rem); }
.nav-pills {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}
.nav-pills a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  transition: background .22s ease, color .22s ease;
}
.nav-pills a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.call-btn, .primary-btn, .secondary-btn, .clear-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}
.call-btn, .primary-btn {
  background: linear-gradient(135deg, var(--accent), #ff7a22);
  color: #160b06;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(232, 67, 31, .24);
}
.secondary-btn { background: rgba(255,255,255,.08); color: var(--text); }
.clear-btn { background: transparent; color: #ff8c76; }
.call-btn:hover, .primary-btn:hover, .secondary-btn:hover, .clear-btn:hover { transform: translateY(-2px); }
.shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.shine::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 46%;
  z-index: -1;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shineSweep 3.4s ease-in-out infinite;
}

.sound-toggle {
  border: 1px solid rgba(255, 214, 138, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: var(--accent-2);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 900;
  font-family: inherit;
  box-shadow: 0 0 18px rgba(232, 67, 31, .16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.sound-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 138, .62);
  background: rgba(255, 183, 58, .11);
  box-shadow: 0 0 28px rgba(232, 67, 31, .28);
}
.sound-toggle[aria-pressed="false"] {
  color: rgba(255, 246, 232, .62);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}
.menu-card.card-burn::after {
  content: "";
  position: absolute;
  inset: -20px;
  pointer-events: none;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 28%, rgba(255, 224, 133, .22), rgba(255, 80, 18, .16) 34%, transparent 68%);
  animation: soundHeatPulse .66s ease-out forwards;
  z-index: 8;
}


/* v14 seamless background fix */
body {
  background:
    radial-gradient(circle at 14% 18%, rgba(232, 67, 31, .18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 182, 54, .14), transparent 34%),
    radial-gradient(circle at 55% 88%, rgba(118, 8, 8, .30), transparent 42%),
    linear-gradient(135deg, #050505 0%, #120806 44%, #050202 72%, #030303 100%);
  background-attachment: fixed;
}
body::before {
  background:
    radial-gradient(circle at 12% 16%, var(--hero-glow), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 182, 54, .14), transparent 32%),
    radial-gradient(circle at 60% 88%, rgba(118, 8, 8, .24), transparent 42%);
  opacity: .82;
}
.hero {
  background: transparent !important;
}
main {
  background: transparent !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.info-grid {
  margin-top: clamp(22px, 4vw, 52px);
}
.hero::after,
main::before {
  display: none !important;
}


/* v16 required customer info validation */
.field label em {
  color: #ff7a22;
  font-style: normal;
  font-weight: 900;
}
.validation-box {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 118, 24, .36);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 118, 24, .14), transparent 42%),
    rgba(255, 82, 24, .075);
  color: rgba(255, 246, 232, .88);
}
.validation-box strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.validation-box ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 246, 232, .72);
  line-height: 1.65;
}
.validation-box.is-ready {
  border-color: rgba(91, 214, 139, .42);
  background:
    radial-gradient(circle at 10% 20%, rgba(91, 214, 139, .12), transparent 42%),
    rgba(91, 214, 139, .075);
  color: #dfffea;
  font-weight: 900;
}
.primary-btn.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.35);
  box-shadow: none;
}
.primary-btn.is-disabled::after {
  display: none;
}


/* v17 Google Maps location preview */
.map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.map-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 214, 138, .22);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.map-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 138, .44);
}
.map-action.is-disabled {
  opacity: .45;
  pointer-events: none;
}
.map-preview {
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(255, 214, 138, .20);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 118, 24, .12), transparent 52%),
    rgba(255,255,255,.045);
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
.map-preview iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  filter: saturate(.9) contrast(.96);
}
.map-preview.is-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
}
.map-placeholder {
  max-width: 620px;
  padding: 22px;
  color: rgba(255, 246, 232, .66);
  text-align: center;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .map-preview iframe { height: 250px; }
  .map-tools { display: grid; grid-template-columns: 1fr; }
}


/* v18 in-page location confirmation */
.confirm-location-btn {
  background: linear-gradient(135deg, var(--accent), #ff7a22);
  color: #160b06;
  box-shadow: 0 16px 36px rgba(232, 67, 31, .20);
}
.confirm-location-btn.is-confirmed {
  background: linear-gradient(135deg, #7dff9f, #24c969);
  color: #061409;
  border-color: rgba(125, 255, 159, .66);
  box-shadow: 0 0 28px rgba(36, 201, 105, .20);
}
.soft-map-link {
  opacity: .72;
}
.location-help {
  border-left: 3px solid rgba(255, 182, 54, .36);
  padding-left: 12px;
}


/* v19 safer location flow */
.delivery-map {
  width: 100%;
  height: 360px;
  min-height: 320px;
  display: none;
}
.map-preview::after {
  content: "ลากหมุด หรือแตะบนแผนที่เพื่อเลือกจุดส่งจริง";
  display: block;
  padding: 10px 14px;
  color: rgba(255, 246, 232, .72);
  font-size: .86rem;
  background: rgba(255,255,255,.035);
  border-top: 1px solid rgba(255, 214, 138, .12);
}
.map-fallback {
  display: none;
}
.location-warning {
  margin-top: 8px;
  color: var(--accent-2);
  background: rgba(255, 182, 54, .07);
  border-radius: 14px;
  padding: 10px 12px;
}


/* v20 draggable delivery pin */
.leaflet-container {
  background: #18120f;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  touch-action: none;
  overscroll-behavior: contain;
}
.leaflet-control-attribution {
  font-size: 10px;
}
.leaflet-control-zoom a {
  background: rgba(22, 14, 10, .92);
  color: var(--accent-2);
  border-color: rgba(255, 214, 138, .20);
}
.map-preview {
  position: relative;
}
.map-preview .leaflet-marker-icon {
  filter: drop-shadow(0 0 12px rgba(232, 67, 31, .55));
}
@media (max-width: 640px) {
  .delivery-map {
    height: 320px;
    min-height: 300px;
  }
}


/* v21 satellite map + smoother draggable pin */
.draggable-map {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 182, 54, .14), transparent 42%),
    rgba(10, 7, 6, .94);
}
.draggable-map.is-loading .delivery-map,
.draggable-map.has-map .delivery-map {
  display: block;
}
.draggable-map.has-map .map-fallback {
  display: none !important;
}
.delivery-map {
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.leaflet-tile {
  transition: opacity .28s ease, filter .28s ease;
  filter: saturate(1.04) contrast(1.02) brightness(.88);
}
.leaflet-container {
  cursor: grab;
}
.leaflet-container:active {
  cursor: grabbing;
}
.leaflet-control-zoom {
  border: 1px solid rgba(255, 214, 138, .18) !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
}
.fire-map-pin {
  width: 34px !important;
  height: 46px !important;
  margin-left: -17px !important;
  margin-top: -42px !important;
  background: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 10px rgba(255, 124, 24, .90))
    drop-shadow(0 10px 12px rgba(0,0,0,.55));
  transition: transform .18s ease, filter .18s ease;
}
.fire-map-pin span {
  position: relative;
  display: block;
  width: 34px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background:
    radial-gradient(circle at 62% 36%, #fff3a5 0 10%, #ffb636 18%, #ff6b22 44%, #b71309 74%);
  border: 2px solid rgba(255, 234, 170, .88);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 195, .55),
    0 0 26px rgba(232, 67, 31, .82);
  animation: mapPinPulse 1.35s ease-in-out infinite alternate;
}
.fire-map-pin span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #120806;
  box-shadow: 0 0 10px rgba(255, 214, 138, .80);
}
.leaflet-marker-draggable {
  transition: filter .18s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.leaflet-marker-draggable:active {
  filter:
    drop-shadow(0 0 16px rgba(255, 214, 138, .95))
    drop-shadow(0 14px 16px rgba(0,0,0,.62));
}
.map-preview::after {
  content: "ภาพดาวเทียม: ลากหมุด หรือแตะบนแผนที่เพื่อเลือกบ้าน/จุดส่งจริง";
}

/* v22 satellite labels and smoother pin tracking */
.map-preview::after {
  content: "ภาพดาวเทียม + ชื่อถนน/สถานที่: แตะบนแผนที่ หมุดจะวิ่งไปจุดส่ง แล้วกดยืนยันตำแหน่ง";
}
.leaflet-pane.leaflet-tile-pane img {
  transition: opacity .30s ease, filter .30s ease;
}
.leaflet-overlay-pane,
.leaflet-marker-pane {
  will-change: transform;
}
.fire-map-pin {
  transition: transform .22s ease, filter .22s ease;
}
.fire-map-pin span {
  animation-duration: 1.05s;
}
.map-preview {
  box-shadow:
    0 18px 46px rgba(0,0,0,.26),
    0 0 0 1px rgba(255, 214, 138, .06),
    inset 0 0 34px rgba(255, 118, 24, .06);
}
.location-warning {
  color: rgba(255, 226, 166, .92);
}


/* v23 place search */
.place-search-box {
  margin: 14px 0 12px;
  padding: 14px;
  border: 1px solid rgba(255, 214, 138, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 118, 24, .10), transparent 40%),
    rgba(255,255,255,.045);
}
.place-search-box > label {
  display: block;
  color: var(--accent-2);
  font-weight: 900;
  margin-bottom: 10px;
}
.place-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}
.place-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.place-results:empty {
  display: none;
}
.place-results.is-loading,
.place-results.is-empty {
  color: rgba(255, 246, 232, .70);
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  line-height: 1.6;
}
.place-result {
  text-align: left;
  border: 1px solid rgba(255, 214, 138, .15);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(10, 8, 7, .76);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.place-result:hover,
.place-result.is-selected {
  transform: translateY(-2px);
  border-color: rgba(255, 190, 67, .58);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 118, 24, .14), transparent 42%),
    rgba(24, 14, 10, .92);
}
.place-result strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.place-result span {
  display: block;
  color: rgba(255, 246, 232, .64);
  font-size: .86rem;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .place-search-row {
    grid-template-columns: 1fr;
  }
}


/* v24 map street/satellite switch */
.map-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 8px;
  border: 1px solid rgba(255, 214, 138, .16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 118, 24, .10), transparent 42%),
    rgba(255,255,255,.045);
}
.map-mode-btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 246, 232, .70);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.map-mode-btn:hover {
  transform: translateY(-1px);
  color: var(--text);
}
.map-mode-btn.is-active {
  color: #180b06;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: rgba(255, 234, 170, .45);
  box-shadow:
    0 12px 28px rgba(232, 67, 31, .18),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.map-mode-btn.is-active:hover {
  color: #180b06;
}
.leaflet-tile-pane {
  transition: opacity .25s ease;
}
@media (max-width: 420px) {
  .map-mode-switch {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
}


/* v25 restaurant logo marker */
.store-logo-marker {
  background: transparent;
}
.store-logo-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  transform: translateY(-2px);
  pointer-events: auto;
}
.store-logo-pin::before {
  content: "";
  position: absolute;
  top: 15px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 214, 138, .35), transparent 62%),
    rgba(232, 67, 31, .20);
  box-shadow:
    0 0 26px rgba(255, 118, 24, .78),
    0 18px 30px rgba(0,0,0,.46);
  animation: storeMarkerGlow 1.45s ease-in-out infinite alternate;
}
.store-logo-pin img {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(10, 8, 7, .92);
  border: 2px solid rgba(255, 226, 166, .95);
  box-shadow:
    0 0 0 4px rgba(232, 67, 31, .22),
    0 0 18px rgba(255, 182, 54, .66);
}
.store-logo-pin span {
  position: relative;
  z-index: 3;
  display: inline-flex;
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #160b06;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,0,0,.34);
}
.store-logo-pin::after {
  content: "";
  position: absolute;
  top: 70px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--accent);
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.45));
}

/* v26 Google Maps store name */
.store-logo-pin span {
  min-width: max-content;
  padding-left: 10px;
  padding-right: 10px;
  letter-spacing: 0;
}


/* v27 cleaner satellite map + live customer location */
.leaflet-tile {
  filter: saturate(.88) contrast(.96) brightness(.86);
}
.draggable-map {
  border-color: rgba(255, 214, 138, .26);
  box-shadow:
    0 22px 60px rgba(0,0,0,.34),
    0 0 0 1px rgba(255, 214, 138, .08),
    inset 0 0 42px rgba(255, 118, 24, .045);
}
.map-preview::after {
  content: "หมุดโลโก้คือร้าน / หมุดสีฟ้าคือตำแหน่งลูกค้าปัจจุบัน / หมุดไฟคือจุดส่งที่ลูกค้าเลือก";
}
.store-logo-pin {
  transform: translateY(-6px) scale(.86);
}
.store-logo-pin span {
  font-size: 10px;
  padding: 4px 8px;
}
.store-logo-pin::before {
  opacity: .82;
}
.live-user-marker {
  width: 96px !important;
  height: 54px !important;
  margin-left: -48px !important;
  margin-top: -28px !important;
  background: transparent;
  pointer-events: none;
}
.live-user-marker span {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #55c7ff;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 7px rgba(85, 199, 255, .18),
    0 0 22px rgba(85, 199, 255, .78),
    0 10px 18px rgba(0,0,0,.45);
  animation: liveUserPulse 1.25s ease-out infinite;
}
.live-user-marker b {
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 14, 22, .86);
  border: 1px solid rgba(85, 199, 255, .42);
  color: #d9f5ff;
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(0,0,0,.34);
}

/* v28 GPS accuracy panel */
.gps-accuracy-panel {
  margin: 12px 0 0;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 138, .14);
  background: rgba(255,255,255,.045);
  display: grid;
  gap: 4px;
  color: rgba(255, 246, 232, .72);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.gps-accuracy-panel strong {
  color: var(--accent-2);
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gps-accuracy-panel span {
  font-weight: 1000;
  color: var(--text);
}
.gps-accuracy-panel small {
  line-height: 1.55;
  color: rgba(255, 246, 232, .62);
}
.gps-accuracy-panel.is-checking {
  border-color: rgba(85, 199, 255, .30);
  background: rgba(85, 199, 255, .06);
}
.gps-accuracy-panel.is-good {
  border-color: rgba(91, 214, 139, .45);
  background: rgba(91, 214, 139, .07);
  box-shadow: 0 0 24px rgba(91, 214, 139, .08);
}
.gps-accuracy-panel.is-medium {
  border-color: rgba(255, 182, 54, .44);
  background: rgba(255, 182, 54, .07);
}
.gps-accuracy-panel.is-bad {
  border-color: rgba(255, 88, 54, .50);
  background: rgba(255, 88, 54, .09);
  box-shadow: 0 0 24px rgba(255, 88, 54, .08);
}
.gps-accuracy-panel.is-bad span {
  color: #ffb3a3;
}


/* v29 location autocomplete */
.place-search-hint {
  margin: 8px 0 0;
  color: rgba(255, 246, 232, .58);
  font-size: .88rem;
  line-height: 1.6;
}
.suggestion-title {
  color: var(--accent-2);
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  padding: 2px 4px 0;
}
.place-result mark {
  color: #180b06;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 1000;
}
.place-results.is-loading {
  position: relative;
  overflow: hidden;
}
.place-results.is-loading::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: placeLoadingLine 1.05s linear infinite;
}

/* v31 Google Places ready */
.place-provider-status {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 14px;
  font-weight: 900;
  font-size: .84rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 214, 138, .16);
  background: rgba(255,255,255,.045);
  color: rgba(255, 246, 232, .68);
}
.place-provider-status.is-google {
  color: #dfffea;
  border-color: rgba(91, 214, 139, .42);
  background: rgba(91, 214, 139, .075);
}
.place-provider-status.is-fallback {
  color: rgba(255, 226, 166, .92);
  border-color: rgba(255, 182, 54, .34);
  background: rgba(255, 182, 54, .065);
}
.place-result em {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #180b06;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
}
.place-result.is-loading {
  opacity: .72;
  pointer-events: none;
}


/* v32 Lao typography polish */
body,
button,
input,
textarea,
select {
  font-family: var(--font-lao-body);
  letter-spacing: .005em;
}

h1,
h2,
.hero-title,
.brand-text,
.section-title,
.order-header h2,
.customer-panel h2,
.signature-info h3,
.menu-info h3 {
  font-family: var(--font-lao-display);
  letter-spacing: .01em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-title {
  line-height: 1.08;
}

.brand-text,
#restaurantName,
#footerName {
  font-family: var(--font-lao-display);
  font-weight: 900;
}

.menu-info h3 {
  line-height: 1.22;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.table-input,
.place-search-box,
.validation-box,
.location-help,
.gps-accuracy-panel,
.place-result {
  font-weight: 500;
}

.eyebrow,
.tag,
.price,
.category-pill,
.map-mode-btn,
.primary-btn,
.secondary-btn,
.map-action {
  font-family: var(--font-lao-body);
  font-weight: 900;
  letter-spacing: .015em;
}

.place-result strong,
.suggestion-title,
.gps-accuracy-panel strong {
  font-family: var(--font-lao-display);
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  h1,
  .hero-title {
    line-height: 1.14;
  }
}


/* v33 language/text cleanup */
#soundToggle,
#callBtn {
  text-transform: none;
  letter-spacing: .01em;
}

#restaurantName,
#footerName,
.brand-text,
.store-logo-pin span {
  font-family: var(--font-lao-display);
}

.eyebrow {
  font-family: var(--font-lao-body);
  text-transform: uppercase;
}


/* v35 currency switcher */
.currency-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 10px;
  border: 1px solid rgba(255, 214, 138, .16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 118, 24, .10), transparent 42%),
    rgba(255,255,255,.045);
}
.currency-switcher span {
  color: rgba(255, 246, 232, .70);
  font-weight: 900;
  padding: 0 8px;
}
.currency-btn {
  min-height: 38px;
  border: 1px solid rgba(255, 214, 138, .12);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.045);
  color: rgba(255, 246, 232, .74);
  font-family: var(--font-lao-body);
  font-weight: 1000;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.currency-btn:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(255, 214, 138, .30);
}
.currency-btn.is-active {
  color: #180b06;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: rgba(255, 234, 170, .50);
}
@media (max-width: 520px) {
  .currency-switcher {
    border-radius: 22px;
  }
  .currency-switcher span {
    width: 100%;
  }
}


/* v36 mobile/PWA polish */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: rgba(255, 182, 54, .18);
}

button,
a,
input,
textarea {
  touch-action: manipulation;
}

.primary-btn,
.secondary-btn,
.map-action,
.currency-btn,
.map-mode-btn,
.category-pill,
.choice-card,
.place-result,
.qty-controls button,
.clear-btn {
  min-height: 44px;
}

.order-panel {
  scroll-margin-top: 20px;
}

.table-input {
  font-size: 16px;
}

@media (max-width: 720px) {
  .hero,
  main {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .hero-title {
    font-size: clamp(2.1rem, 13vw, 4rem);
  }

  .cart-float,
  .sound-toggle {
    transform: translateZ(0);
  }

  .delivery-map {
    height: 58vh;
    min-height: 330px;
    max-height: 520px;
  }

  .map-preview {
    border-radius: 18px;
  }

  .place-results {
    max-height: 45vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .order-row {
    gap: 10px;
  }

  .qty-controls button {
    width: 42px;
    height: 42px;
  }
}

@supports (padding: max(0px)) {
  .cart-float {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}


/* v37 fast-load map optimization */
.map-fallback {
  display: grid;
  min-height: 260px;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.draggable-map:not(.has-map) {
  min-height: 300px;
}

.place-results.is-loading,
.gps-accuracy-panel.is-checking {
  animation: softPulse 1.2s ease-in-out infinite alternate;
}

@keyframes softPulse {
  from { opacity: .72; }
  to { opacity: 1; }
}

@keyframes placeLoadingLine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes liveUserPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(85, 199, 255, .38),
      0 0 22px rgba(85, 199, 255, .78),
      0 10px 18px rgba(0,0,0,.45);
  }
  100% {
    box-shadow:
      0 0 0 18px rgba(85, 199, 255, 0),
      0 0 22px rgba(85, 199, 255, .78),
      0 10px 18px rgba(0,0,0,.45);
  }
}

@keyframes storeMarkerGlow {
  from {
    transform: scale(.96);
    opacity: .74;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes mapPinPulse {
  from {
    transform: rotate(-45deg) translateY(0) scale(.98);
  }
  to {
    transform: rotate(-45deg) translateY(-3px) scale(1.04);
  }
}

@keyframes soundHeatPulse {
  0% { opacity: 0; transform: scale(.86); filter: blur(18px); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.14); filter: blur(24px); }
}

.hero-stage {
  min-height: calc(100svh - 110px);
  display: grid;
  grid-template-columns: 1.02fr 1.08fr .82fr;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 34px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-brand-logo {
  display: block;
  width: clamp(104px, 12vw, 148px);
  height: auto;
  margin: 0 0 12px;
  border-radius: 50%;
  filter:
    drop-shadow(0 16px 28px rgba(0,0,0,.38))
    drop-shadow(0 0 20px rgba(255, 122, 34, .36));
}
.tagline { color: var(--accent-2); font-weight: 800; letter-spacing: .08em; }
.hero-copy h2 {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  font-family: "Oswald", "Noto Sans Thai", sans-serif;
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.hero-copy h2 span:first-child { color: var(--accent); }
.hero-text { max-width: 560px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.quick-stats div {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  padding: 12px;
  backdrop-filter: blur(14px);
}
.quick-stats strong { display: block; color: var(--accent-2); font-size: 1.08rem; }
.quick-stats span { color: var(--muted); font-size: .82rem; }
.food-orbit {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.hero-food {
  width: min(88vw, 430px);
  height: min(88vw, 430px);
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 214, 138, .28);
  box-shadow:
    0 34px 90px rgba(0,0,0,.62),
    0 0 100px var(--hero-glow);
  animation: foodFloat 4.8s ease-in-out infinite;
  transition: opacity .42s ease, transform .42s ease;
}
.hero-food.is-changing { opacity: 0; transform: scale(.92) rotate(-8deg); }
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 138, .18);
}
.ring-one { width: 108%; height: 108%; animation: spin 18s linear infinite; }
.ring-two { width: 82%; height: 82%; animation: spin 12s linear infinite reverse; border-style: dashed; }
.ingredient {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #160905;
  background: var(--accent);
  box-shadow: 0 12px 40px rgba(232, 67, 31, .28);
  animation: floatBits 5s ease-in-out infinite;
}
.chili { left: 10%; top: 24%; background: #e8431f; color: #fff6e8; animation-delay: .2s; }
.leaf { right: 8%; top: 36%; background: #2dc071; animation-delay: .8s; }
.flame { left: 22%; bottom: 15%; background: #ffd166; animation-delay: 1.2s; }
.dish-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    rgba(12, 12, 12, .76);
  backdrop-filter: blur(18px);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.dish-panel::before {
  content: "";
  position: absolute;
  inset: -80px -90px auto auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,182,54,.16), transparent 62%);
  pointer-events: none;
}
.dish-panel h3 { margin: 12px 0 10px; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.15; }
.dish-panel p { color: var(--muted); line-height: 1.7; }
.rating-line { display: flex; gap: 5px; margin: 18px 0; filter: drop-shadow(0 0 10px var(--hero-glow)); }
.panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-bottom strong { color: var(--accent-2); font-size: 1.25rem; }
main { padding: 20px clamp(16px, 4vw, 28px) 72px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 2; }
.info-card, .menu-card, .order-panel, .customer-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.info-card { padding: 18px; }
.info-card span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.controls { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 56px 0 18px; }
.controls h2, .order-header h2 { font-size: clamp(1.8rem, 5vw, 3.6rem); margin-bottom: 0; letter-spacing: 0; }
#searchInput, .table-input {
  width: min(100%, 380px);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 13px 18px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#searchInput:focus, .table-input:focus { border-color: rgba(255,182,54,.55); box-shadow: 0 0 0 4px rgba(255,182,54,.10); }
#searchInput::placeholder, .table-input::placeholder { color: rgba(255,246,232,.52); }
.category-tabs { display: flex; gap: 10px; max-width: 100%; min-width: 0; overflow-x: auto; padding-bottom: 12px; margin-bottom: 20px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.tab {
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.tab:hover { transform: translateY(-2px); }
.tab.active { background: linear-gradient(135deg, var(--accent), #ff7a22); color: #15110a; font-weight: 900; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.menu-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .42s ease, opacity .42s ease, border-color .24s ease, background .24s ease;
}
.menu-card.is-visible { transform: translateY(0); opacity: 1; }
.menu-card:hover { transform: translateY(-6px); border-color: rgba(255,182,54,.48); background: rgba(26, 18, 13, .92); }
.menu-image {
  width: 100%;
  height: 196px;
  border: 0;
  padding: 0;
  background: var(--panel-2);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-align: left;
  color: inherit;
  isolation: isolate;
}
.menu-image.image-failed {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 182, 54, .22), transparent 46%),
    linear-gradient(145deg, rgba(232, 67, 31, .24), rgba(13, 9, 7, .96));
}
.menu-image.image-failed::before {
  content: "ໄຟໄໝ້ຄົວ";
  position: relative;
  z-index: 1;
  color: var(--accent-2);
  font-family: var(--font-lao-display);
  font-size: 1.35rem;
  font-weight: 900;
  text-shadow: 0 10px 28px rgba(0,0,0,.54);
}
.menu-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.62)),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(255, 90, 24, .12) 72%, transparent 100%);
  pointer-events: none;
  transition: opacity .22s ease;
}
.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .42s ease, filter .42s ease;
}
.menu-card:hover img,
.menu-image:focus-visible img {
  transform: scale(1.07) rotate(.6deg);
  filter: saturate(1.12) contrast(1.04);
}
.menu-image:focus-visible {
  outline: 2px solid rgba(255, 190, 67, .88);
  outline-offset: -4px;
}
.menu-image.is-igniting img {
  transform: scale(1.12) rotate(.8deg);
  filter: saturate(1.35) contrast(1.08) brightness(1.08);
}
.menu-card.card-burn {
  border-color: rgba(255, 190, 67, .88);
  box-shadow:
    0 0 0 1px rgba(255, 190, 67, .22),
    0 0 42px rgba(255, 92, 25, .32),
    var(--shadow);
}
.image-fire-ring {
  position: absolute;
  inset: -8px;
  z-index: 4;
  pointer-events: none;
  border-radius: 26px 26px 10px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 106%, rgba(255, 237, 156, .42), rgba(255, 82, 18, .22) 34%, transparent 64%),
    linear-gradient(90deg, rgba(255, 103, 26, .20), rgba(255, 223, 118, .34), rgba(208, 26, 10, .25));
  box-shadow:
    inset 0 0 0 2px rgba(255, 235, 156, .92),
    inset 0 0 34px rgba(255, 118, 24, .62),
    0 0 30px rgba(255, 92, 25, .85),
    0 0 74px rgba(255, 49, 11, .54),
    0 0 128px rgba(169, 23, 10, .34);
  animation: imageFireRingStrong 1.35s ease-out forwards;
}
.image-fire-ring::before,
.image-fire-ring::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -26px;
  height: 112px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 6% 100%, rgba(255, 245, 184, 1), transparent 24%),
    radial-gradient(ellipse at 18% 100%, rgba(255, 146, 30, 1), transparent 38%),
    radial-gradient(ellipse at 33% 100%, rgba(255, 229, 95, .98), transparent 31%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 74, 14, 1), transparent 44%),
    radial-gradient(ellipse at 66% 100%, rgba(255, 213, 74, .98), transparent 34%),
    radial-gradient(ellipse at 82% 100%, rgba(226, 37, 12, 1), transparent 42%),
    radial-gradient(ellipse at 96% 100%, rgba(255, 158, 36, .94), transparent 30%);
  filter: blur(5px) saturate(1.35);
  mix-blend-mode: screen;
  animation: imageFlamesBurnStrong 1.08s cubic-bezier(.1,.72,.16,1) forwards;
}
.image-fire-ring::after {
  top: -34px;
  bottom: auto;
  height: 84px;
  opacity: .78;
  transform: rotate(180deg);
  filter: blur(7px) saturate(1.2);
  animation-duration: 1.18s;
}
.image-fire-ring i {
  position: absolute;
  left: var(--flame-left);
  bottom: -22px;
  width: 18px;
  height: var(--flame-height);
  border-radius: 58% 42% 48% 52% / 66% 66% 34% 34%;
  background:
    radial-gradient(circle at 50% 76%, #fff7bf 0 9%, #ffd34d 22%, #ff7618 48%, #bd160c 78%, transparent 79%);
  filter: blur(.8px) drop-shadow(0 0 10px rgba(255, 166, 36, .96));
  transform-origin: center bottom;
  mix-blend-mode: screen;
  animation: edgeFlameTongue 1.05s cubic-bezier(.14,.7,.16,1) forwards;
  animation-delay: var(--flame-delay);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(0,0,0,.72);
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 800;
}
.menu-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.menu-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.desc { color: var(--muted); font-size: .95rem; line-height: 1.62; min-height: 50px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { color: var(--accent-2); font-weight: 900; }
.tap-note {
  color: rgba(255, 246, 232, .58);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.menu-card:hover .tap-note { color: var(--accent-2); }
.real-fire-click {
  position: fixed;
  left: var(--left);
  top: var(--top);
  width: 0;
  height: 0;
  z-index: 9999;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255, 126, 24, .82));
}
.real-fire-click::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 92px;
  height: 46px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 237, 170, .88), rgba(255, 138, 18, .58) 38%, rgba(210, 22, 8, .22) 66%, transparent 76%);
  filter: blur(9px);
  animation: fireShockwave .78s ease-out forwards;
}
.real-fire-click span {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 58% 42% 50% 50% / 66% 66% 34% 34%;
  transform-origin: 50% 92%;
  mix-blend-mode: screen;
  opacity: .98;
}
.real-fire-click .flame-a {
  width: 38px;
  height: 72px;
  background:
    radial-gradient(circle at 50% 72%, #fff7bf 0 10%, #ffbb2a 22%, #ff6b14 48%, #bd160c 72%, transparent 73%);
  filter: blur(.4px);
  animation: realFlameUpA .88s cubic-bezier(.12,.62,.22,1) forwards;
}
.real-fire-click .flame-b {
  width: 30px;
  height: 62px;
  background:
    radial-gradient(circle at 50% 74%, #fff4b6 0 12%, #ffc13a 28%, #ff4d12 55%, transparent 74%);
  animation: realFlameUpB .82s cubic-bezier(.12,.62,.22,1) forwards;
}
.real-fire-click .flame-c {
  width: 26px;
  height: 54px;
  background:
    radial-gradient(circle at 50% 76%, rgba(255,255,219,.94) 0 8%, #ffdd62 24%, #ff8b18 52%, transparent 76%);
  filter: blur(.2px);
  animation: realFlameUpC .74s cubic-bezier(.12,.62,.22,1) forwards;
}
.real-fire-click .flame-d {
  width: 78px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,235,166,.82), rgba(255,80,16,.50) 45%, transparent 72%);
  filter: blur(9px);
  animation: fireBaseGlow 1.18s ease-out forwards;
}
.real-fire-click .flame-e {
  width: 24px;
  height: 92px;
  background:
    radial-gradient(circle at 50% 76%, #fff5b9 0 10%, #ffc241 26%, #ff4212 58%, transparent 78%);
  animation: realFlameUpE 1.18s cubic-bezier(.12,.62,.22,1) forwards;
}
.real-fire-click .flame-f {
  width: 34px;
  height: 88px;
  background:
    radial-gradient(circle at 50% 76%, rgba(255,255,219,.96) 0 8%, #ffe063 20%, #ff8118 48%, #b41108 78%, transparent 80%);
  animation: realFlameUpF 1.04s cubic-bezier(.12,.62,.22,1) forwards;
}
.real-fire-click .flame-g {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 222, 107, .48), rgba(255, 59, 14, .32) 44%, transparent 70%);
  filter: blur(16px);
  animation: fireHeatBloom 1.18s ease-out forwards;
}
.real-fire-click i {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--spark-size);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(255, 59, 18, 0), #fff3a7 38%, #ff8a16 78%, rgba(255, 57, 12, 0));
  box-shadow: 0 0 10px rgba(255, 182, 54, .95);
  transform-origin: center bottom;
  animation: realSparkFly 1.08s cubic-bezier(.13,.69,.12,1) forwards;
  animation-delay: var(--delay);
}
.order-panel.is-ignited { animation: cartIgnite .72s ease; }
.customer-panel, .order-panel { margin-top: 52px; padding: clamp(18px, 4vw, 28px); }
.customer-panel {
  position: relative;
  overflow: hidden;
}
.customer-panel::before {
  content: "";
  position: absolute;
  inset: -45% -20% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 118, 24, .18), transparent 68%);
  pointer-events: none;
}
.customer-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.choice-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 214, 138, .18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(24, 18, 15, .92);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 138, .42);
  box-shadow: 0 16px 32px rgba(0,0,0,.22), 0 0 20px rgba(255, 107, 28, .12);
}
.choice-card input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.choice-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 5px;
}
.choice-card small {
  display: block;
  color: rgba(255, 246, 232, .62);
  line-height: 1.45;
  font-size: .84rem;
}
.choice-card:has(input:checked) {
  border-color: rgba(255, 190, 67, .82);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 214, 138, .16), transparent 32%),
    linear-gradient(145deg, rgba(255, 118, 24, .16), rgba(255,255,255,.055)),
    rgba(29, 18, 12, .96);
  box-shadow:
    0 0 0 1px rgba(255, 190, 67, .18),
    0 0 30px rgba(255, 107, 28, .22),
    0 18px 42px rgba(0,0,0,.28);
}
.choice-card:has(input:checked) strong {
  color: var(--accent-2);
}
.choice-card:has(input:checked)::after {
  content: "เลือกแล้ว";
  position: absolute;
  right: 12px;
  top: 12px;
  color: #160b06;
  background: linear-gradient(135deg, var(--accent), #ff7a22);
  font-size: .72rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
}

.field label {
  display: block;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 800;
}
.field.wide { grid-column: 1 / -1; }
.textarea-input {
  width: 100%;
  min-height: 86px;
  border-radius: 18px;
  resize: vertical;
  font-family: inherit;
}
.location-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}
.locate-btn {
  white-space: nowrap;
  color: var(--text);
  background: rgba(255,255,255,.08);
}
.location-help {
  color: rgba(255, 246, 232, .64);
  font-size: .88rem;
  line-height: 1.65;
  margin: 12px 0 0;
  padding-left: 2px;
}
.order-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.table-label { display: block; color: var(--muted); margin: 8px 0; }
.table-input { width: min(100%, 440px); margin-bottom: 16px; border-radius: 18px; }
.customer-form .table-input { width: 100%; margin-bottom: 0; }
.order-items { display: grid; gap: 10px; }
.order-items.empty { color: var(--muted); border: 1px dashed var(--border); padding: 18px; border-radius: 18px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border-radius: 16px; padding: 12px; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; }
.total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; font-size: 1.25rem; }
.full { display: block; text-align: center; margin-top: 18px; }
.note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
footer { padding: 32px 18px 46px; color: var(--muted); }
footer strong { color: var(--text); }
.reveal, .reveal-now { opacity: 1; transform: none; }
.reveal-now { animation: revealUp .72s ease forwards; }
.reveal-now:nth-child(2) { animation-delay: .12s; }
.reveal.is-visible { animation: revealUp .72s ease forwards; }
@keyframes backgroundDrift {
  from { filter: hue-rotate(0deg) brightness(1); transform: scale(1); }
  to { filter: hue-rotate(-10deg) brightness(1.08); transform: scale(1.04); }
}
@keyframes pulseGlow {
  from { opacity: .6; transform: translate3d(0,0,0) scale(.95); }
  to { opacity: 1; transform: translate3d(-40px,40px,0) scale(1.12); }
}
@keyframes shineSweep {
  0%, 48% { left: -78%; }
  78%, 100% { left: 130%; }
}
@keyframes foodFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg) scale(1); }
  50% { transform: translateY(-16px) rotate(2deg) scale(1.015); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatBits {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(14deg); }
}
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
@keyframes emberRise {
  0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; }
  12% { opacity: .35; }
  100% { transform: translate3d(36px,-105vh,0) scale(1.4); opacity: 0; }
}
@keyframes flameGlowMove {
  0%, 100% { transform: translate3d(0,0,0) scale(.95); opacity: .30; }
  50% { transform: translate3d(18px,-20px,0) scale(1.12); opacity: .55; }
}
@keyframes miniFlamePulse {
  from { transform: translateY(0) scale(.96); }
  to { transform: translateY(-2px) scale(1.08); }
}
@keyframes panelFlamePulse {
  from { transform: scale(.9); opacity: .42; }
  to { transform: scale(1.18); opacity: .82; }
}
@keyframes fireLineBurn {
  0%, 100% { transform: scaleX(.86); opacity: .62; }
  50% { transform: scaleX(1); opacity: 1; }
}
@keyframes sparkFlicker {
  from { transform: translateY(0) scale(.7); opacity: .35; }
  to { transform: translateY(-5px) scale(1.15); opacity: .95; }
}
@keyframes fireShockwave {
  0% { transform: translate(-50%, -50%) scale(.24); opacity: .95; }
  58% { opacity: .72; }
  100% { transform: translate(-50%, -50%) scale(3.15); opacity: 0; }
}
@keyframes realFlameUpA {
  0% { transform: translate(-50%, -32%) scale(.2) rotate(-8deg); opacity: 0; filter: blur(5px); }
  18% { opacity: .98; }
  100% { transform: translate(-50%, -154%) scale(1.34) rotate(8deg); opacity: 0; filter: blur(2.2px); }
}
@keyframes realFlameUpB {
  0% { transform: translate(-38%, -26%) scale(.16) rotate(8deg); opacity: 0; filter: blur(4px); }
  14% { opacity: .95; }
  100% { transform: translate(-95%, -142%) scale(1.22) rotate(-15deg); opacity: 0; filter: blur(2.4px); }
}
@keyframes realFlameUpC {
  0% { transform: translate(-58%, -30%) scale(.14) rotate(-4deg); opacity: 0; filter: blur(3px); }
  16% { opacity: .92; }
  100% { transform: translate(-10%, -132%) scale(1.14) rotate(16deg); opacity: 0; filter: blur(2.2px); }
}
@keyframes realFlameUpE {
  0% { transform: translate(-50%, -24%) scale(.12) rotate(0deg); opacity: 0; filter: blur(8px); }
  10% { opacity: 1; }
  100% { transform: translate(-50%, -162%) scale(1.34) rotate(-4deg); opacity: 0; filter: blur(2.4px); }
}
@keyframes realFlameUpF {
  0% { transform: translate(-50%, -26%) scale(.18) rotate(8deg); opacity: 0; filter: blur(7px); }
  10% { opacity: .98; }
  100% { transform: translate(-92%, -145%) scale(1.22) rotate(-18deg); opacity: 0; filter: blur(2.2px); }
}
@keyframes fireHeatBloom {
  0% { transform: translate(-50%, -42%) scale(.16); opacity: .82; }
  100% { transform: translate(-50%, -92%) scale(2.9); opacity: 0; }
}
@keyframes fireBaseGlow {
  0% { transform: translate(-50%, -34%) scale(.25); opacity: .95; }
  100% { transform: translate(-50%, -70%) scale(2.8); opacity: 0; }
}
@keyframes realSparkFly {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(0deg); opacity: 0; }
  10% { opacity: .95; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.45) rotate(52deg); opacity: 0; }
}
@keyframes bottomFlames {
  0% { transform: translate3d(-2%, 10px, 0) scaleY(.85) skewX(-4deg); opacity: .22; }
  50% { transform: translate3d(2%, -12px, 0) scaleY(1.08) skewX(5deg); opacity: .38; }
  100% { transform: translate3d(-1%, -2px, 0) scaleY(.98) skewX(-2deg); opacity: .30; }
}
@keyframes lowHeatWave {
  0% { opacity: .52; transform: translateY(0) scale(1); }
  100% { opacity: .82; transform: translateY(-10px) scale(1.03); }
}
@keyframes imageFireRingStrong {
  0% { opacity: 0; transform: scale(.94); filter: blur(14px) saturate(1.4); }
  12% { opacity: 1; transform: scale(1.015); filter: blur(0) saturate(1.55); }
  52% { opacity: 1; transform: scale(1.035); }
  100% { opacity: 0; transform: scale(1.08); filter: blur(10px) saturate(1.15); }
}
@keyframes imageFlamesBurnStrong {
  0% { opacity: 0; transform: translateY(40px) scaleY(.48) skewX(-2deg); }
  12% { opacity: 1; }
  54% { opacity: .98; transform: translateY(-10px) scaleY(1.18) skewX(4deg); }
  100% { opacity: 0; transform: translateY(-74px) scaleY(1.56) skewX(-6deg); }
}
@keyframes edgeFlameTongue {
  0% { opacity: 0; transform: translateY(36px) scale(.4) rotate(-8deg); filter: blur(5px); }
  12% { opacity: .95; }
  58% { opacity: .98; transform: translateY(-18px) scale(1.16) rotate(6deg); filter: blur(.6px); }
  100% { opacity: 0; transform: translateY(-96px) scale(.88) rotate(-15deg); filter: blur(5px); }
}
@keyframes cartIgnite {
  0%, 100% { box-shadow: var(--shadow); border-color: var(--border); }
  40% { box-shadow: 0 0 0 4px rgba(232,67,31,.18), 0 0 50px rgba(255,182,54,.35), var(--shadow); border-color: rgba(255,182,54,.75); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 980px) {
  .customer-form { grid-template-columns: 1fr; }
  .choice-group { grid-template-columns: 1fr; }
  .location-row { grid-template-columns: 1fr; }
  .sound-toggle { padding: 10px 12px; font-size: .82rem; }
  .hero-stage { grid-template-columns: 1fr; text-align: left; padding-top: 46px; }
  .food-orbit { min-height: 420px; order: -1; }
  .dish-panel { max-width: 560px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; margin-top: -12px; }
}
@media (max-width: 700px) {
  .flame-zone span { opacity: .24; }
  .panel-flame-glow { opacity: .38; right: 14px; top: 15px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .topbar { align-items: flex-start; }
  .nav-pills { display: none; }
  .call-btn { padding: 10px 13px; }
  .hero-stage { min-height: auto; }
  .hero-copy h2 { font-size: clamp(4.2rem, 25vw, 6.4rem); }
  .quick-stats { grid-template-columns: 1fr; }
  .food-orbit { min-height: 340px; }
  .hero-food { width: min(86vw, 320px); height: min(86vw, 320px); }
  .dish-panel { border-radius: 24px; }
  .controls, .order-header { flex-direction: column; align-items: stretch; }
  #searchInput { width: 100%; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-image { height: 218px; }
  .order-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sound-toggle {
    padding: 9px 11px;
    font-size: .78rem;
  }
}


@supports not selector(:has(*)) {
  .choice-card {
    border-color: rgba(255, 214, 138, .24);
  }
}


@media (max-width: 640px) {
  .brand-mark { width: 72px; height: 72px; }
  .hero-brand-logo { width: 112px; margin-bottom: 10px; }
  .footer-logo { width: 68px; height: 68px; }
}

/* v44 mobile safe: keep the page visible even if mobile Safari blocks animations or JavaScript. */
.reveal, .reveal-now, .reveal.is-visible, .menu-card { opacity: 1 !important; transform: none !important; }
