/* Fonts — same pairing as the Rosoi template:
   THICCCBOI (Wonder Unit, OFL — fonts/OFL.txt) + Just Another Hand (Google Fonts) */
@font-face { font-family: "Thicccboi"; src: url("fonts/THICCCBOI-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thicccboi"; src: url("fonts/THICCCBOI-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thicccboi"; src: url("fonts/THICCCBOI-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Thicccboi"; src: url("fonts/THICCCBOI-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0a09;
  --ink: #f4efe6;
  --muted: #b8ad9c;
  --gold: #d4a857;
  --gold-soft: rgba(212, 168, 87, 0.35);
  --card: rgba(14, 12, 10, 0.74);
  --line: rgba(244, 239, 230, 0.12);
  --display: "Thicccboi", system-ui, -apple-system, sans-serif;
  --sans: "Thicccboi", system-ui, -apple-system, sans-serif;
  --hand: "Just Another Hand", cursive;
  --topbar: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }

/* ---------- Snap container ---------- */
.snap {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.snap::-webkit-scrollbar { width: 0; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: calc(var(--topbar) + 32px) 24px 48px;
  overflow: hidden;
  isolation: isolate;
}

/* Background food photo + legibility scrim */
.bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.12);
  filter: saturate(1.1) brightness(0.9);
  transition: transform 7s ease-out, filter 1.2s ease;
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(11,10,9,0.15) 0%, rgba(11,10,9,0.55) 80%),
    linear-gradient(180deg, rgba(11,10,9,0.6) 0%, rgba(11,10,9,0.05) 30%, rgba(11,10,9,0.05) 70%, rgba(11,10,9,0.7) 100%);
}
.panel.active .bg { transform: scale(1.0); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--topbar);
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(11,10,9,0.92), rgba(11,10,9,0.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .4s ease, opacity .4s ease;
}
body.on-hero .topbar { transform: translateY(-100%); opacity: 0; }

.brand {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: .02em;
  color: var(--gold); white-space: nowrap; line-height: 1;
  display: flex; flex-direction: column;
}
.brand span {
  font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}

.chips {
  position: relative;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  padding: 0 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; font-size: .8rem; padding: 7px 14px; border-radius: 999px;
  color: var(--muted); border: 1px solid transparent; white-space: nowrap;
  transition: all .25s ease;
}
.chips a:hover { color: var(--ink); border-color: var(--line); }
.chips a.on { color: #1a1408; background: var(--gold); font-weight: 600; }

/* ---------- Side dots ---------- */
.dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 12px;
}
.dots a {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--gold-soft); transition: all .3s ease;
}
.dots a.on { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.dots .tip {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: .72rem; white-space: nowrap; color: var(--ink);
  background: rgba(11,10,9,.85); padding: 4px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dots a:hover .tip { opacity: 1; }

/* ---------- Hero ---------- */
.hero-inner { text-align: center; max-width: 720px; }
.eyebrow {
  font-family: var(--hand); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); line-height: 1;
}
.hero h1, .end h2 {
  font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.01em;
  font-size: clamp(2.8rem, 9vw, 6.2rem); margin: 14px 0 6px;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.end h2 { font-size: clamp(2.6rem, 8vw, 5rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 18px 0; font-size: .8rem; }
.rule span { width: 70px; height: 1px; background: var(--gold-soft); }
.sub { color: var(--muted); font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 32px; }
.end .sub { max-width: 440px; margin-inline: auto; line-height: 1.6; }

.hero-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  background: var(--gold); color: #1a1408; font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,168,87,.25); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--gold-soft); }
.btn.ghost:hover { border-color: var(--gold); }

.hint {
  margin-top: 56px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hint span { display: block; margin-top: 8px; font-size: 1.1rem; color: var(--gold); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Menu card ---------- */
.card {
  width: min(640px, 100%);
  background: var(--card);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(24px) scale(.98);
}
.panel.inview .card { opacity: 1; transform: none; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.menu.long .card { width: min(980px, 100%); }

.card h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.1; letter-spacing: -.01em;
}
.tagline { font-family: var(--hand); color: var(--gold); font-size: 1.55rem; letter-spacing: .04em; margin: 6px 0 22px; line-height: 1.1; max-width: 46ch; }

.items { list-style: none; }
.menu.long .items { columns: 2; column-gap: 48px; }
.items li { break-inside: avoid; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.items li:last-child { border-bottom: 0; }
.row { display: flex; align-items: baseline; gap: 10px; }
.name { font-size: 1.02rem; font-weight: 500; }
.dots-fill { flex: 1; border-bottom: 1px dotted rgba(212,168,87,.35); transform: translateY(-4px); min-width: 16px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .82rem; margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu.long .items { columns: 1; }
  .dots { display: none; }
  .brand span { display: none; }
  .topbar { gap: 12px; padding: 0 0 0 16px; }
}
@media (max-width: 640px) {
  :root { --topbar: 58px; }
  .panel { padding: calc(var(--topbar) + 20px) 16px 32px; }
  .card { padding: 28px 20px 22px; border-radius: 16px; }
  .brand { font-size: 1.2rem; }
  .name { font-size: .95rem; }
  .price { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  .snap { scroll-behavior: auto; }
  .bg, .card, .reveal { transition: none !important; transform: none !important; filter: none !important; }
  .hint span { animation: none; }
}

/* ---------- Multi-price items (e.g. Boiled Yam: yam / egg sauce / fish sauce) ---------- */
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt {
  font-size: .78rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  background: rgba(244, 239, 230, 0.03);
}
.opt b { font-family: var(--display); font-size: .85rem; color: var(--gold); font-weight: 700; margin-left: 2px; }

/* ---------- Soup of the day callout ---------- */
.callout {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--gold-soft);
  background: linear-gradient(135deg, rgba(212,168,87,.12), rgba(212,168,87,.03));
}
.callout-title { font-family: var(--hand); font-size: 1.75rem; font-weight: 400; letter-spacing: .04em; line-height: 1; color: var(--gold); margin-bottom: 4px; }
.callout p:last-child { color: var(--ink); font-size: .9rem; line-height: 1.55; }

/* ---------- Food | Drinks divider in top bar ---------- */
.chips .sep {
  flex: none; align-self: center; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); padding: 0 6px 0 14px; margin-left: 6px; border-left: 1px solid var(--line);
}


/* Hero: slightly deeper scrim so the title stays crisp over a busy photo */
.hero::before, .end::before {
  background:
    radial-gradient(ellipse at center, rgba(11,10,9,0.55) 0%, rgba(11,10,9,0.8) 80%),
    linear-gradient(180deg, rgba(11,10,9,0.4) 0%, rgba(11,10,9,0.2) 50%, rgba(11,10,9,0.75) 100%);
}

/* ---------- Scroll-in text animation ----------
   Each line (.reveal, delay index --d set in app.js) slides up when its section
   scrolls into view, and resets once the section is fully off screen. */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.panel.inview .reveal {
  opacity: 1; transform: none; filter: none;
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  transition-delay: calc(var(--d, 0) * 60ms + 180ms);
}

/* Bright, busy photos: tone down so the card and nav dots stay readable */
#salad .bg { filter: saturate(.95) brightness(.62); }

/* ---------- Mobile / tablet: no snap scrolling, lighter effects ----------
   Snap + address-bar resizing + live blur caused jank on phones. */
@media (max-width: 860px) {
  .snap { scroll-snap-type: none; scroll-behavior: auto; -webkit-overflow-scrolling: touch; }
  .panel { min-height: 100svh; scroll-snap-align: none; }
  .bg { transform: none !important; transition: none; will-change: auto; }
  .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 12, 10, 0.86); }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 10, 9, 0.94); }
  .reveal { filter: none; transform: translateY(16px); }
  /* sections size to their content (no more full-screen gaps between short lists) */
  .panel.menu { min-height: 0; padding-top: calc(var(--topbar) + 28px); padding-bottom: 28px; }
  .panel.end { min-height: 100svh; }
  .chips a { padding: 9px 14px; font-size: .85rem; }
  .brand { font-size: 1.1rem; }
  .panel.inview .reveal { filter: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 40ms + 80ms); }
}
