/* Khunpon Kitchen mobile menu app. Lightweight, readable, and not trying to become Silicon Valley by accident. */
:root {
  --gold: #D4AF6C;
  --black: #000000;
  --grey: #D0D2D3;
  --white: #FFFFFF;
  --dark-grey: #6D6E71;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --toolbar-full-height: 104px;
  --toolbar-compact-height: 54px;
  --toolbar-height: var(--toolbar-full-height);
}

* { box-sizing: border-box; }
html, body, button, select, input, textarea { text-transform: uppercase; }
html, body { margin: 0; min-height: 100%; height: 100%; background: var(--black); color: var(--black); }
html { scroll-behavior: smooth; }
body {
  text-transform: uppercase;
  font-family: 'Saira', 'Noto Sans', system-ui, sans-serif;
  font-style: italic;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="th"] body { font-family: 'Kanit', 'Saira', sans-serif; }
html[lang="zh"] body { font-family: 'Noto Sans SC', 'Saira', sans-serif; font-style: normal; }
html[lang="ja"] body { font-family: 'Noto Sans JP', 'Saira', sans-serif; font-style: normal; }
html[lang="ko"] body { font-family: 'Noto Sans KR', 'Saira', sans-serif; font-style: normal; }
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Saira', sans-serif; font-style: normal; }
html[lang="ar"] body { font-family: 'Noto Sans Arabic', 'Saira', sans-serif; font-style: normal; }

button, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Splash screen ----------------------------------------------------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--gold);
  animation: splashFade 2.75s ease forwards;
  animation-delay: .15s;
}

.splash-lockup {
  display: grid;
  place-items: center;
  gap: 18px;
  transform-origin: center;
  animation: splashLogoFloat 2.35s ease forwards;
}

.splash-lockup img {
  width: min(76vw, 320px);
  max-height: 44vh;
  object-fit: contain;
}

.splash-loader {
  position: relative;
  width: 170px;
  height: 112px;
}

.mug-wrap {
  position: absolute;
  inset: 10px 0 0;
}

.mug-body {
  position: absolute;
  left: 16px;
  top: 0;
  width: 122px;
  height: 78px;
  border: 7px solid var(--black);
  border-radius: 14px 14px 24px 24px;
  overflow: hidden;
  background: transparent;
}

.mug-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: var(--black);
  animation: mugFillSlow 2.25s cubic-bezier(.38,0,.2,1) forwards;
}

.mug-liquid::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: -10px;
  height: 18px;
  background: var(--black);
  border-radius: 55% 45% 48% 52% / 62% 58% 42% 38%;
  animation: mugWave 1.15s ease-in-out infinite;
}

.mug-handle {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 34px;
  height: 48px;
  border: 7px solid var(--black);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: transparent;
}

@keyframes mugFillSlow {
  0% { height: 0%; }
  20% { height: 12%; }
  40% { height: 26%; }
  60% { height: 42%; }
  80% { height: 58%; }
  100% { height: 66%; }
}

@keyframes mugWave {
  0% { transform: translateX(-4px) translateY(1px) scaleX(1); }
  25% { transform: translateX(0) translateY(-2px) scaleX(1.02); }
  50% { transform: translateX(4px) translateY(0) scaleX(.98); }
  75% { transform: translateX(0) translateY(-1px) scaleX(1.01); }
  100% { transform: translateX(-4px) translateY(1px) scaleX(1); }
}

@keyframes splashLogoFloat {
  0% { opacity: 0; transform: translateY(14px) scale(.94); }
  28% { opacity: 1; transform: translateY(0) scale(1); }
  74% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(.985); }
}

@keyframes splashFade {
  0%, 64% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  background: var(--gold);
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(6px + var(--safe-top)) 10px 8px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: padding .24s ease, transform .24s ease;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  max-height: 42px;
  overflow: hidden;
  transition: max-height .24s ease, opacity .2s ease, margin-bottom .24s ease, transform .24s ease;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.brand-lockup img {
  width: 52px;
  height: 34px;
  object-fit: contain;
  filter: invert(1) brightness(3);
}

.brand-lockup span {
  display: none;
}

.language-picker {
  display: flex;
  align-items: center;
  background: var(--gold);
  color: var(--black);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 0 8px;
  min-width: 108px;
  max-width: 46vw;
}

.language-picker select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  padding: 8px 2px;
  font-size: 12px;
  font-weight: 700;
}

.section-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 1px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-nav::-webkit-scrollbar { display: none; }

.nav-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(212,175,108,.5);
  background: rgba(255,255,255,.055);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 35px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
}
.nav-chip.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.slides {
  position: absolute;
  inset: 0;
  padding-top: calc(var(--toolbar-height) + var(--safe-top) + 4px);
  padding-bottom: calc(26px + var(--safe-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: padding-top .24s ease, padding-bottom .24s ease;
}
.slides::-webkit-scrollbar { display: none; }

.slide {
  width: 100%;
  min-height: auto;
  padding: 10px 14px 20px;
  scroll-margin-top: calc(var(--toolbar-height) + var(--safe-top) + 18px);
}
.slide:last-child { padding-bottom: 90px; }

.slide-inner {
  max-width: 560px;
  margin: 0 auto;
}

.slide:not(.cover-slide):not(:last-child) .slide-inner::after {
  content: "";
  display: block;
  width: clamp(120px, 42%, 220px);
  height: 2px;
  margin: 28px auto 0;
  background: rgba(0,0,0,.32);
  border-radius: 999px;
}

.eyebrow { display: none; }

h2 {
  margin: 0 0 14px;
  font-family: 'Slackey', 'Slackly', 'Saira', cursive;
  font-style: normal;
  font-size: clamp(34px, 11vw, 58px);
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
}
html[lang="th"] h2, html[lang="zh"] h2, html[lang="ja"] h2, html[lang="ko"] h2, html[lang="hi"] h2, html[lang="ar"] h2 { font-family: inherit; font-weight: 800; line-height: 1.05; }

.cover-slide {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--toolbar-height) - var(--safe-top) - 40px);
}
.cover-card {
  margin-top: 8px;
  width: 100%;
  min-height: min(76vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 18px 18px 28px;
  background: transparent;
}
.cover-logo { width: min(300px, 80vw); margin: 0 auto 8px; }
.cover-body { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.55; font-weight: 700; }
.mini-note,
.wilder-tagline { text-transform: uppercase; }
.cover-actions { margin-top: 6px; }
.primary-action {
  border: 0;
  background: var(--black);
  color: var(--gold);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: rgba(0,0,0,.82);
}
.arrow-down {
  width: 16px;
  height: 16px;
  border-right: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  transform: rotate(45deg);
  animation: arrowBob 1.5s ease-in-out infinite;
}
@keyframes arrowBob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .45; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

.table-head {
  display: grid;
  grid-template-columns: 1fr 62px 62px;
  gap: 6px;
  margin: 0 12px 5px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(0,0,0,.72);
  text-align: center;
}

.menu-card,
.mini-card,
.drink-card,
.hero-card,
.option-card,
.info-card,
.benefit-card,
.creatine-card,
.soda-card {
  background: var(--black);
  color: var(--white);
  border-radius: 22px;
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
}
.menu-card { padding: 14px; }
.coffee-card { padding-top: 10px; }

.price-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 8px;
  min-height: 34px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.price-row:last-child { border-bottom: 0; }
.item-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}
.dotted {
  height: 1px;
  border-bottom: 2px dotted rgba(212,175,108,.88);
  transform: translateY(-5px);
}
.price-pair {
  min-width: 124px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  text-align: right;
}
.single-price { min-width: 72px; text-align: right; font-weight: 900; color: var(--gold); }
.price-pair b, .single-price { font-size: 14px; }
.price-pair span, .single-price span { font-size: 10px; opacity: .78; }

.statement,
.allergy-note,
.mini-note {
  margin: 13px auto;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}
.statement,
.allergy-note { max-width: 360px; }
.mini-note { text-transform: uppercase; font-weight: 700; font-size: 12px; }
.mini-note.inverted { color: var(--black); }

.choice-block {
  margin: 12px 0;
  padding: 14px;
  border: 2px solid var(--black);
  border-radius: 20px;
  background: var(--black);
  color: var(--white);
}
.choice-block h3,
.mini-card h3,
.hero-card h3,
.creatine-card h3,
.info-card h3,
.info-card h4,
.soda-zone h3,
.flavour-zone h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sweetness-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sweetness-grid span,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 8px 7px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.choice-block .sweetness-grid span {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.add-on-row {
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}
.add-on-row strong { color: var(--gold); white-space: nowrap; }
.add-on-row.light {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
}
.add-on-row.light strong { color: var(--black); }

.extras-grid,
.split-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.mini-card { padding: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.stack { display: grid; grid-template-columns: 1fr; }
.pill { color: var(--gold); border-color: rgba(212,175,108,.8); justify-content: flex-start; }
.small-price { margin: 10px 0 0; font-size: 13px; font-weight: 900; text-align: center; text-transform: uppercase; }

.section-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 8px 14px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}
.drink-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.drink-card { padding: 13px; }
.drink-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drink-card h3 {
  margin: 0;
  color: var(--gold);
  font-family: 'Slackey', 'Slackly', 'Saira', cursive;
  font-style: normal;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .02em;
}
.drink-card-head span { color: var(--gold); font-weight: 900; white-space: nowrap; font-size: 13px; }
.thai-name { margin: 6px 0 6px; color: var(--grey); font-family: 'Kanit', sans-serif; font-style: italic; font-size: 13px; }
.ingredients { margin: 0; color: var(--white); font-size: 13px; line-height: 1.42; }
.hero-card { padding: 18px; color: var(--gold); }
.hero-card p { margin: 8px 0 0; color: var(--white); font-size: 13px; line-height: 1.45; }
.hero-card.compact p { display: none; }

.electrolyte-layout { display: grid; gap: 14px; }
.flavour-zone,
.soda-zone,
.info-card { border: 2px solid var(--black); border-radius: 24px; padding: 14px; box-shadow: 5px 5px 0 rgba(0,0,0,.18); }
.flavour-zone,
.soda-zone {
  background: var(--black);
  color: var(--white);
}
.info-card {
  background: var(--white);
  color: var(--black);
}
.flavour-zone h3,
.soda-zone h3 { color: var(--gold); }
.info-card h3,
.info-card h4 { color: var(--black); }
.grid-note,
.info-card p,
.soda-zone p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.flavour-zone .grid-note,
.soda-zone p { color: rgba(255,255,255,.84); }
.electro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.electro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px;
  background: #D0D2D3;
  color: var(--black);
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 20px;
  min-height: 160px;
}
.electro-card.wide { grid-column: 1 / -1; }
.electro-card img {
  width: 62px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.14));
}
.electro-card span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--black);
}
.info-card {
  display: grid;
  gap: 10px;
}
.wilder-tagline {
  font-weight: 800;
  text-transform: uppercase;
}
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.benefit-card {
  padding: 12px;
  background: rgba(212,175,108,.18);
  color: var(--black);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: none;
}
.benefit-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--black);
  font-size: 13px;
  text-transform: uppercase;
}
.benefit-card p {
  margin: 0;
  color: var(--black);
  font-size: 12px;
  line-height: 1.45;
}
.soda-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.soda-card {
  padding: 12px 10px;
  background: #D0D2D3;
  color: var(--black);
  text-align: center;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.soda-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--black);
  margin: 0 auto;
  position: relative;
}
.soda-bubble::before,
.soda-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: transparent;
}
.soda-bubble::before { width: 8px; height: 8px; top: -6px; left: 14px; }
.soda-bubble::after { width: 6px; height: 6px; top: -11px; left: 1px; }
.soda-card span { font-size: 12px; font-weight: 900; text-transform: uppercase; line-height: 1.25; }

.dots { display: none; }

.footer-note {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(8px + var(--safe-bottom));
  z-index: 51;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.86);
  color: var(--gold);
  text-align: center;
  font-size: 8px;
  line-height: 1.18;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}


body.toolbar-compact {
  --toolbar-height: var(--toolbar-compact-height);
}

body.toolbar-compact .brand-row {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transform: translateY(-10px);
}

body.footer-visible .footer-note {
  opacity: 1;
  transform: translateY(0);
}

body.toolbar-compact .topbar {
  padding-top: calc(6px + var(--safe-top));
}

@media (min-width: 700px) {
  .app-shell { max-width: 520px; margin: 0 auto; border-left: 1px solid rgba(0,0,0,.2); border-right: 1px solid rgba(0,0,0,.2); }
}

@media (max-width: 374px) {
  :root { --toolbar-full-height: 98px; --toolbar-compact-height: 52px; }
  .brand-lockup span { max-width: 42vw; font-size: 10px; }
  .nav-chip { padding: 8px 10px; font-size: 11px; }
  h2 { font-size: 32px; }
  .price-row { gap: 5px; }
  .item-title { font-size: 13px; }
  .price-pair { min-width: 104px; }
  .drink-card h3 { font-size: 18px; }
  .electro-card img { width: 54px; height: 96px; }
}

select, option, button, input, textarea { text-transform: uppercase; }


/* Final polish ------------------------------------------------------------ */
.cover-copy {
  display: grid;
  gap: 13px;
  max-width: 360px;
  margin: 0 auto;
}
.cover-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
  text-align: center;
}

.extras-section {
  margin-top: 14px;
}
.extras-section > h3 {
  margin: 0 0 10px;
  font-family: 'Slackey', 'Slackly', 'Saira', cursive;
  font-style: normal;
  font-size: 28px;
  line-height: .95;
  letter-spacing: .02em;
  color: var(--black);
}
.extras-section .mini-card h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}
.extras-price {
  justify-content: center;
  margin-top: 12px;
}
.extras-price span {
  width: 100%;
  text-align: center;
  font-weight: 900;
}

.price-right {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: 0;
}

.info-card {
  background: var(--black) !important;
  color: var(--white) !important;
}
.info-card h3,
.info-card h4 {
  color: var(--gold) !important;
}
.info-card p,
.wilder-tagline {
  color: var(--white) !important;
}
.benefit-card {
  background: #111111 !important;
  color: var(--white) !important;
  border: 1px solid rgba(212,175,108,.42) !important;
}
.benefit-card strong {
  color: var(--gold) !important;
}
.benefit-card p {
  color: var(--white) !important;
}

.back-top-button {
  display: block;
  margin: 24px auto 10px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(255,255,255,.34);
  color: var(--black);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.footer-note {
  font-size: 10px;
  line-height: 1.25;
}

.section-nav .nav-chip[data-target="cover"],
.dots .dot[data-target="cover"] {
  display: none !important;
}
