/* 10K Gold Eats & Treats — v9 "Night Stage"
   Built from what wins on Dribbble's most-liked food landing pages:
   - Kumo (1k+ likes): dark moody stage, one hero product, the others one tap away;
   - Banzai / Burgy / Crispy Chicken: one huge food image, giant type, round order badge, glass pills;
   - top-down plates breaking out of glass cards (the classic food-delivery landing card).
   Brand: night royal purple, gold, the client's Deco Liner logo. */

/* Syne for letters only: its old-style digits make "10K" read "ıoK", so digits fall through to Plus Jakarta Sans */
@font-face { font-family: "Syne"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/syne-latin.woff2") format("woff2"); unicode-range: U+0000-002F, U+003A-FFFF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }

:root {
  --bg: #0D0519;
  --bg-2: #160A2C;
  --panel: #170B2E;
  --text: #F6F1FF;
  --muted: rgba(246, 241, 255, .8);
  --faint: rgba(246, 241, 255, .66);
  --purple: #7B45E8;       /* royal purple, lit for a dark stage */
  --purple-deep: #4A1A8A;
  --gold: #F5C451;
  --gold-hi: #FFE08A;
  --on-gold: #1B0B33;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .1);
  --stroke: rgba(255, 255, 255, .12);
  --field: rgba(255, 255, 255, .4);
  --danger: #FF8A7A;

  --display: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 20px;
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --logo-ratio: 49.376 / 12.283;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--bg); }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--text); background: radial-gradient(120% 70% at 0% 0%, #2A0F55 0%, rgba(42, 15, 85, 0) 55%), radial-gradient(90% 60% at 100% 35%, #1E0B3F 0%, rgba(30, 11, 63, 0) 60%), var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.logo { display: block; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- night sky behind everything */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky__moon { position: absolute; top: -90px; right: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255, 224, 138, .55), rgba(245, 196, 81, .18) 35%, rgba(245, 196, 81, 0) 68%); filter: blur(4px); }
.sky__stars { position: absolute; inset: -50%; background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(255, 255, 255, .9), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.4px 1.4px at 200px 160px, rgba(255, 224, 138, .9), transparent),
    radial-gradient(1px 1px at 60px 200px, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1.2px 1.2px at 260px 40px, rgba(255, 255, 255, .8), transparent);
  background-size: 300px 240px; opacity: .45; animation: twinkle 6s ease-in-out infinite alternate; }
.sky__stars--2 { background-size: 420px 360px; background-position: 140px 90px; opacity: .3; animation-delay: -3s; }
@keyframes twinkle { to { opacity: .12; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; font: 700 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: transform .2s var(--spring), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn .ic { width: 19px; height: 19px; }
.btn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); box-shadow: 0 10px 30px -10px rgba(245, 196, 81, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--gold:hover { box-shadow: 0 14px 36px -10px rgba(245, 196, 81, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--grow { flex: 1; }
.round { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
.round .ic { width: 18px; height: 18px; }
.linkbtn { border: 0; background: none; padding: 10px 4px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--gold); }
.err { margin: 6px 4px 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.err:empty { display: none; }

/* ---------- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gut) 0; display: flex; align-items: center; gap: 18px; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(13, 5, 25, .72); box-shadow: 0 1px 0 rgba(245, 196, 81, .16); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav__logo { color: var(--gold); line-height: 0; margin-right: auto; }
.nav__logo .logo { width: 156px; aspect-ratio: var(--logo-ratio); }
.nav__link { font-size: 15px; font-weight: 600; color: rgba(246, 241, 255, .9); text-decoration: none; }
.nav__link:hover { color: var(--text); }
.bagbtn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bagbtn .ic { width: 21px; height: 21px; }
.bagbtn b { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 800; }
.bagbtn.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.2); } }

/* ---------- HERO stage: category, name, plate, picker, actions, facts — one clear column */
.hero { position: relative; overflow-x: clip; display: grid; grid-template-areas: "title" "stage" "act" "picker" "hint"; justify-items: center; padding: calc(var(--nav-h) + 22px + env(safe-area-inset-top, 0px)) var(--gut) 48px; text-align: center; }
.hero__text { display: contents; }
.pickhint { grid-area: hint; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
/* fixed two-line height so switching dishes never shifts the page */
.hero__title { grid-area: title; display: grid; place-items: center; min-height: 1.84em; margin-top: 10px; font: 800 clamp(40px, 11.6vw, 96px)/.92 var(--display); letter-spacing: -.035em; text-wrap: balance; }
#hName { display: inline-block; transition: opacity .28s var(--ease), transform .45s var(--ease), filter .28s; }
#hName.out { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.hero__act { grid-area: act; display: flex; justify-content: center; gap: 10px; width: 100%; max-width: 360px; min-width: 0; margin-top: 24px; }
.hero__act > div > .btn { min-width: 0; }
.hero__act > div { flex: 1; display: flex; }
.hero__act > div > * { flex: 1; }
.hero__act .btn { padding: 0 20px; }
.hero__act > a.btn { flex: none; }
.ic--down { transform: rotate(90deg); }

.stage { grid-area: stage; position: relative; width: min(74vw, 310px); aspect-ratio: 1; margin: 18px 0 6px; }
.stage__glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(123, 69, 232, .7), rgba(123, 69, 232, .18) 55%, rgba(123, 69, 232, 0) 72%); filter: blur(26px); }
.stage__ring { position: absolute; inset: -5%; border-radius: 50%; border: 2px dashed rgba(245, 196, 81, .7); animation: spin 80s linear infinite reverse; }
.stage__ring--2 { inset: -9%; border: 1px solid rgba(255, 255, 255, .07); animation: none; }
.stage__plate { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 50%; background: none; touch-action: pan-y; }
/* the whole plate slowly turns; each new dish rolls in from the side, the old one rolls out the other way */
.stage__spin { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .65)); }
.plate.is-entering { animation: roll-in .85s cubic-bezier(.22, .9, .3, 1) both; }
.plate.is-leaving { animation: roll-out .7s cubic-bezier(.5, 0, .75, .4) forwards; pointer-events: none; }
@keyframes roll-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 55%)) rotate(calc(var(--dir, 1) * 140deg)) scale(.7); filter: blur(6px) drop-shadow(0 34px 44px rgba(0, 0, 0, .65)); } 60% { opacity: 1; } }
@keyframes roll-out { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -55%)) rotate(calc(var(--dir, 1) * -140deg)) scale(.7); filter: blur(6px) drop-shadow(0 34px 44px rgba(0, 0, 0, .65)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes plate-out { to { transform: rotate(80deg) scale(.6); opacity: 0; } }
@keyframes plate-in { from { transform: rotate(-80deg) scale(.6); opacity: 0; } }

/* picker: arrows sit beside the thumbnails, never on the food */
.pickwrap { grid-area: picker; display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.pickwrap__nav { flex: none; width: 40px; height: 40px; display: none; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: color .2s, background .2s; }
.pickwrap__nav:hover { color: var(--text); background: var(--glass); }
.pickwrap__nav .ic { width: 16px; height: 16px; }
.pickwrap__nav:first-child .ic { transform: rotate(180deg); }
.picker { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--stroke); }
.pick { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; opacity: .5; transition: opacity .2s, transform .3s var(--spring), box-shadow .2s; }
.pick img { width: 100%; height: 100%; border-radius: 50%; }
.pick:hover { opacity: .9; }
.pick[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }

/* add / stepper (gold on the stage, glass in cards) */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--stroke); }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.step { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text); transition: background .2s, transform .2s var(--spring); }
.step:hover { background: rgba(255, 255, 255, .1); }
.step.step--plus { background: var(--gold); color: var(--on-gold); }
.step .ic { width: 16px; height: 16px; }
.step:active { transform: scale(.88); }
.step:disabled { opacity: .35; cursor: default; }
.stepper.pop output { display: inline-block; animation: pop .35s var(--spring); }
@keyframes pop { 50% { transform: scale(1.4); } }
.stepper--lg .step { width: 46px; height: 46px; }
.stepper--lg .step:last-child { background: var(--gold); color: var(--on-gold); }
.stepper--lg output { min-width: 36px; font-size: 17px; }

/* ---------- MENU: no boxes — plates float on the night, rows on phones, a roomy grid on desktop */
.menu { max-width: 1120px; margin: 0 auto; padding: 64px var(--gut) 28px; outline: none; }
.menu__head { display: grid; justify-items: center; gap: 12px; margin-bottom: 28px; text-align: center; }
.menu__title { font: 800 clamp(38px, 10vw, 72px)/.95 var(--display); letter-spacing: -.035em; }
.seg { display: inline-flex; gap: 4px; margin-top: 12px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.seg button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: rgba(246, 241, 255, .86); font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg button:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; }
.card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 0; opacity: 0; transform: translateY(18px); }
.card + .card::before { content: ""; position: absolute; top: 0; left: 114px; right: 0; height: 1px; background: linear-gradient(90deg, rgba(245, 196, 81, .22), rgba(245, 196, 81, 0)); }
.card.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.card--skel { height: 152px; opacity: 1; transform: none; }
.card--skel::after { content: ""; width: 96px; height: 96px; border-radius: 50%; background: var(--glass-2); animation: shimmer 1.4s ease-in-out infinite alternate; }
@keyframes shimmer { to { opacity: .4; } }
.card__plate { position: relative; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 50%; background: none; transition: transform .6s var(--ease); }
.card__plate::before { content: ""; position: absolute; inset: 10% 0 -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 69, 232, .45), rgba(123, 69, 232, 0)); filter: blur(10px); z-index: -1; }
.card__plate img { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
.card:hover .card__plate { transform: rotate(16deg); }
.card__plate img { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px rgba(245, 196, 81, .85); }
.card__info { display: grid; gap: 4px; min-width: 0; text-align: left; }
.card__name { font: 700 20px/1.1 var(--display); letter-spacing: -.02em; }
.card__name button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; }
.card__name button:hover { color: var(--gold-hi); }
.card__act { display: grid; place-items: center; }
.card__act .stepper { padding: 2px; }
.card__act .stepper .step { width: 40px; height: 40px; }
.card__act .stepper output { min-width: 22px; font-size: 14px; }
.add { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); box-shadow: 0 10px 22px -8px rgba(245, 196, 81, .7); transition: transform .2s var(--spring); }
.add .ic { width: 20px; height: 20px; }
.add:hover { transform: scale(1.08); }
.add:active { transform: scale(.9); }
.menu-err { display: grid; justify-items: center; gap: 14px; padding: 48px 0; color: var(--muted); }

/* ---------- footer */
.foot { display: grid; justify-items: center; gap: 22px; padding: 56px var(--gut) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--stroke); text-align: center; color: var(--gold); }
body.has-bar .foot { padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
.foot .logo { width: 210px; aspect-ratio: var(--logo-ratio); }
.foot__fine { font-size: 13px; color: var(--faint); }

/* ---------- order bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 var(--gut) calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transform: translateY(130%); transition: transform .45s var(--spring); }
.bar.on { transform: none; }
.bar__btn { pointer-events: auto; width: 100%; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 8px 8px 10px; border: 0; border-radius: 999px; background: rgba(23, 11, 46, .82); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke), 0 24px 50px -16px rgba(0, 0, 0, .8); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); font-weight: 700; font-size: 16px; }
.bar__thumbs { display: flex; }
.bar__thumbs > * { width: 46px; height: 46px; display: grid; place-items: center; margin-left: -14px; border-radius: 50%; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 2px var(--panel); font-size: 13px; font-weight: 800; color: var(--gold); }
.bar__thumbs > :first-child { margin-left: 0; }
.bar__thumbs img { width: 100%; height: 100%; }
.bar__label { flex: 1; display: grid; text-align: center; line-height: 1.2; }
.bar__label small { font-size: 13px; font-weight: 600; color: var(--gold); }
.bar__go { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); }
.bar__go .ic { width: 20px; height: 20px; }

/* ---------- sheets (dark glass) */
.sheet { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.sheet::backdrop { background: rgba(5, 2, 12, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { display: flex; align-items: flex-end; }
.sheet__panel { position: relative; width: 100%; max-height: 94svh; display: flex; flex-direction: column; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, #1D0E3A, #120725); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); overflow: hidden; animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
.sheet.closing .sheet__panel { animation: down .22s ease-in forwards; }
@keyframes down { to { transform: translateY(100%); } }
.sheet__x { position: absolute; top: 16px; right: 16px; z-index: 3; }

.detail__media { position: relative; display: grid; place-items: center; height: min(42svh, 340px); padding: 34px 0 6px; overflow: hidden; }
.detail__media .stage__glow { inset: 12% 20%; }
.detail__media img { position: relative; width: min(300px, 74vw, calc(100% - 40px)); max-height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .65)); animation: plate-in .7s var(--spring) both, spin 48s linear .7s infinite; }
.detail__body { display: grid; justify-items: center; gap: 6px; padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.detail__name { font: 800 36px/1 var(--display); letter-spacing: -.03em; }
.detail__note { color: var(--muted); }
.detail__note:empty { display: none; }
.detail__act { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 18px; }

.co__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 14px; border-bottom: 1px solid rgba(245, 196, 81, .16); }
.co__head h2 { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
#checkout.is-done .co__head { display: none; }
.co__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 8px; }
.co__sec { display: grid; gap: 10px; padding: 18px 20px; }
.form, .form .co__sec + .co__sec { border-top: 1px solid var(--stroke); }
.co__lab { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.co__count { margin-top: 4px; font-size: 14px; color: var(--muted); }
.co__count:empty { display: none; }
.co__hint { font-size: 14px; color: var(--muted); }
.co__lab .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.addmore { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text); font-size: 14px; font-weight: 700; }
.addmore .ic { width: 14px; height: 14px; color: var(--gold); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.lines li:last-child { border-bottom: 0; }
.lines .thumb { width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.lines .thumb img { width: 100%; height: 100%; }
.lines .txt { flex: 1; min-width: 0; display: grid; }
.lines strong { font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.lines small { font-size: 13px; color: var(--muted); }
.emptybox { display: grid; justify-items: center; gap: 14px; padding: 40px 0 30px; color: var(--muted); }

.form { display: grid; }
.field { display: grid; gap: 2px; padding: 10px 16px; border: 1px solid var(--field); border-radius: var(--r-md); background: var(--glass); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 196, 81, .16); }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 2px 0; border: 0; background: transparent; font-size: 17px; font-weight: 600; outline: none; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); font-weight: 400; }
.field.bad { border-color: var(--danger); }
.field.bad:focus-within { box-shadow: 0 0 0 4px rgba(255, 138, 122, .18); }
.field .err { margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.co__foot { display: grid; gap: 8px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--stroke); background: rgba(18, 7, 37, .9); }
.btn--send { justify-content: space-between; width: 100%; min-height: 62px; padding: 0 8px 0 28px; font-size: 16px; }
.btn--send b { padding: 12px 16px; border-radius: 999px; background: rgba(27, 11, 51, .9); color: var(--gold); font-size: 14px; font-weight: 800; }
.btn--send:disabled { opacity: .7; }
.co__foot .err { text-align: center; }

.done { position: relative; display: grid; justify-items: center; gap: 12px; padding: 44px 20px calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; overflow-y: auto; }
.done__x { position: absolute; top: 16px; right: 16px; }
.done__seal { width: 104px; height: 104px; display: grid; place-items: center; margin: 10px 0 6px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); box-shadow: 0 0 0 10px rgba(245, 196, 81, .12), 0 20px 40px -12px rgba(245, 196, 81, .6); animation: plate-in .6s var(--spring) both; }
.done__seal .ic { width: 50px; height: 50px; }
.done__big { font: 800 40px/1 var(--display); letter-spacing: -.03em; outline: none; }
.done__text { color: var(--muted); max-width: 30ch; text-wrap: balance; }
.done__text strong { color: var(--text); }
.done__card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 0 0 1px var(--stroke); }
.done__meta { display: grid; justify-items: end; font-size: 14px; color: var(--muted); }
.done__meta strong { color: var(--gold); font-size: 16px; font-weight: 800; }
.stack { display: flex; }
.stack > * { width: 42px; height: 42px; display: grid; place-items: center; margin-left: -12px; border-radius: 50%; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 2px var(--panel); font-size: 12px; font-weight: 800; color: var(--gold); }
.stack > :first-child { margin-left: 0; }
.stack img { width: 100%; height: 100%; }
.done .btn { width: 100%; }

/* ---------- larger screens */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 64px 40px; max-width: 960px; margin: 0 auto; padding-top: 20px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; gap: 14px; padding: 0; text-align: center; }
  .card + .card::before { display: none; }
  .card__plate { width: 220px; height: 220px; }
  .card__info { justify-items: center; text-align: center; }
  .card__name { font-size: 24px; }
  .card__name button { text-align: center; }
  .card__act .stepper .step { width: 40px; height: 40px; }
  .card--skel { height: 300px; }
  .card--skel::after { width: 220px; height: 220px; }
  .sheet[open] { align-items: center; justify-content: center; padding: 24px; }
  .sheet__panel { max-width: 470px; max-height: min(92svh, 880px); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--stroke), 0 40px 80px -20px rgba(0, 0, 0, .8); animation: rise .35s var(--ease); }
  @keyframes rise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
  .sheet.closing .sheet__panel { animation: fade .2s ease-in forwards; }
  @keyframes fade { to { transform: translateY(12px); opacity: 0; } }
}
@media (min-width: 960px) {
  :root { --gut: 40px; }
  .nav { padding-left: max(var(--gut), calc(50vw - 560px)); padding-right: max(var(--gut), calc(50vw - 560px)); }
  .hero { max-width: 1200px; min-height: 100svh; margin: 0 auto; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto auto auto 1fr; grid-template-areas: ". stage" "title stage" "act stage" "picker stage" "hint stage" ". stage"; justify-items: start; align-items: center; column-gap: 56px; text-align: left; padding-bottom: 56px; }
  .hero__title { place-items: center start; min-height: 1.84em; font-size: clamp(60px, 5.8vw, 92px); margin-top: 14px; }
  .hero__act { justify-content: flex-start; max-width: 380px; margin-top: 30px; }
  .pickwrap { margin-top: 30px; }
  .pickhint { justify-self: start; align-self: start; }
  .pick { width: 42px; height: 42px; }
  .stage { width: min(40vw, 500px); justify-self: center; margin: 0; }
  .sky__moon { width: 480px; height: 480px; top: -140px; right: -140px; }
  .card__name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- delivery address: two clear choices, then one confirmation card */
.field .opt { font-weight: 500; color: var(--faint); }

/* map sheet */
.sheet--map .sheet__panel { height: 94svh; }
.mapbox { position: relative; flex: 1; min-height: 300px; background: #1a1230; }
.map { position: absolute; inset: 0; }
.mapbox__pin { position: absolute; left: 50%; top: 50%; z-index: 500; width: 36px; height: 54px; margin: -54px 0 0 -18px; pointer-events: none; transition: transform .2s var(--ease); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.mapbox__pin svg { width: 100%; height: 100%; }
.mapbox__pin path { fill: var(--purple-deep); stroke: var(--gold); stroke-width: 1.2; }
.mapbox__pin circle { fill: var(--gold); }
.mapbox__shadow { position: absolute; left: 50%; top: 50%; z-index: 499; width: 14px; height: 6px; margin: -3px 0 0 -7px; border-radius: 50%; background: rgba(0, 0, 0, .35); pointer-events: none; }
.mapbox.moving .mapbox__pin { transform: translateY(-10px); }
.mapbox__hint { position: absolute; top: 12px; left: 0; right: 0; z-index: 600; width: max-content; max-width: calc(100% - 100px); margin: 0 auto; padding: 8px 14px; border-radius: 999px; background: rgba(13, 5, 25, .85); color: var(--text); font-size: 13px; font-weight: 600; text-align: center; pointer-events: none; box-shadow: inset 0 0 0 1px var(--stroke); }
.sheet--map .btn--send .ic { width: 20px; height: 20px; margin-right: 14px; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 11px; }
@media (min-width: 640px) {
  .sheet--map .sheet__panel { max-width: 600px; height: min(86svh, 760px); }
}
.sheet--map .co__head h2 { font-size: 21px; }

/* hero: one clear way forward — to the menu */
.hero__act { max-width: 320px; }
.hero__cta { flex: 1; }
.hero__cta .ic { width: 18px; height: 18px; }
.stage__plate { cursor: pointer; }
/* a dish reached from the hero glows once */
.card.flash .card__plate img { animation: flash 1.6s var(--ease); }
.card.flash .card__name { animation: flash-text 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 196, 81, 0); } 25%, 60% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--gold), 0 0 40px 10px rgba(245, 196, 81, .35); } }
@keyframes flash-text { 25%, 60% { color: var(--gold-hi); } }

@media (min-width: 960px) {
  .nav__logo .logo { width: 180px; }
  .pickhint { justify-items: start; }
  .pickhint p { margin-left: 2px; }
}

/* review polish (docs/ui-review/04-v9-polish.md) */
.hero__act { margin-top: 20px; }
.hero { padding-bottom: 24px; }
.menu { padding-top: 40px; }
.sky__moon { top: 120px; right: -170px; }
.done__lab { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.foot__note { margin-top: -8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail__ring { position: absolute; z-index: 1; width: min(330px, 82vw, calc(100% + 0px)); aspect-ratio: 1; max-height: calc(100% + 20px); border-radius: 50%; border: 2px dashed rgba(245, 196, 81, .6); animation: spin 80s linear infinite reverse; pointer-events: none; }
.detail__media img { z-index: 2; }
/* map zoom buttons in the site's dark glass */
.leaflet-touch .leaflet-bar, .leaflet-bar { border: 0 !important; box-shadow: none !important; display: grid; gap: 6px; background: none; }
.leaflet-bar a, .leaflet-touch .leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; border: 0 !important; border-radius: 50% !important; background: rgba(13, 5, 25, .82) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--stroke); font: 600 20px/44px var(--sans) !important; }
.leaflet-bar a:hover { background: rgba(40, 20, 70, .9) !important; }
@media (min-width: 960px) {
  .hero { padding-bottom: 56px; }
  .menu { padding-top: 64px; }
  .sky__moon { top: -140px; right: -140px; }
}
@media (max-width: 399px) {
  .card { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; }
  .card__plate { width: 84px; height: 84px; }
  .card + .card::before { left: 98px; }
  .card__act .stepper output { min-width: 18px; }
}

/* breathing room */
.pickhint { display: block; margin-top: 14px; }
.pickhint p { margin: 0; }
.stage { margin: 26px 0 8px; }
.pickwrap { margin-top: 34px; }
.hero__act { margin-top: 28px; }
.hero { padding-bottom: 40px; }
.menu { padding-top: 56px; }
.menu__head { margin-bottom: 36px; }
.card { padding: 24px 0; gap: 20px; }
@media (min-width: 640px) {
  .cards { gap: 80px 48px; }
}
@media (min-width: 960px) {
  .hero__title { margin-top: 18px; }
  .pickwrap { margin-top: 40px; }
  .pickhint { margin-top: 14px; }
  .hero__act { margin-top: 36px; }
  .hero { padding-bottom: 64px; }
  .menu { padding-top: 72px; }
}

/* delivery address: one map button, or type it */
/* map: the pin pulses while we look for you */
#mapUse:disabled { opacity: .65; cursor: progress; }
.co__foot { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* the menu button sits right under the plate and fits the first screen, even with the browser bars */
.stage { width: min(70vw, 300px, 38svh); min-width: 210px; margin: 22px 0 4px; }
.hero__act { margin-top: 26px; }
.pickwrap { margin-top: 28px; }
@media (min-width: 960px) {
  .stage { width: min(40vw, 500px); margin: 0; }
  .hero__act { margin-top: 30px; }
  .pickwrap { margin-top: 36px; }
}
/* the order bar is the next step, so it shines gold instead of blending into the night */
.bar__btn { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 18px 44px -12px rgba(245, 196, 81, .55), 0 10px 30px rgba(0, 0, 0, .45); }
.bar__label small { color: rgba(27, 11, 51, .75); font-weight: 700; }
.bar__thumbs > * { box-shadow: 0 0 0 2px var(--gold); background: var(--panel); }
.bar__go { background: var(--on-gold); color: var(--gold-hi); }
.done__text { max-width: 28ch; }

/* the top bar takes its own space (sticky, not floating), so it can never cover the dish name in any browser */
.nav { position: sticky; }
.hero { padding-top: 76px; }
@media (min-width: 960px) { .hero { min-height: calc(100svh - var(--nav-h)); padding-top: 0; } }
.hero__title { font-size: clamp(36px, 10.6vw, 96px); }
@media (min-width: 960px) { .hero__title { font-size: clamp(60px, 5.8vw, 92px); } }

/* checkout: more room between steps and fields */
.co__sec { gap: 14px; padding: 24px 20px; }
.form .field + .field { margin-top: 2px; }
.co__lab { margin-bottom: 2px; }

/* location selected: unmistakable */

/* ===================== v10: prices, step 3, map button, fluid sheets, moon footer ===================== */
/* prices: small currency, bold number */
.price { font: 800 17px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--gold-hi); white-space: nowrap; }
.price small { margin-right: 3px; font-size: .68em; font-weight: 700; letter-spacing: .02em; color: var(--gold); }
.price:empty { display: none; }

/* menu rows: name, small "what it is", then the price */
.card__info { gap: 3px; }
.card__price { margin-top: 5px; font-size: 18px; }
@media (min-width: 640px) { .card__info { justify-items: center; text-align: center; } .card__price { font-size: 20px; } }

/* detail sheet: price lives on the add button */
#dAdd { justify-content: space-between; padding: 0 22px 0 26px; }
#dAdd .price { color: var(--on-gold); font-size: 16px; }
#dAdd .price small { color: var(--on-gold); opacity: .7; }

/* order lines + total */
.lines .txt > small { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.lines .txt > small .price { font-size: 14px; }
.lines li { transition: height .26s var(--ease), opacity .2s, transform .26s var(--ease), padding .26s var(--ease); overflow: hidden; }
.lines li.leaving { height: 0 !important; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateX(-24px); border-bottom-width: 0; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 14px 0 4px; border-top: 1px dashed rgba(245, 196, 81, .35); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.total .price { font-size: 22px; letter-spacing: -.01em; }
.btn--send b.price { font-size: 16px; color: var(--gold-hi); }
.done__card { flex-wrap: wrap; }
.done__total { margin-left: auto; font-size: 20px; }

/* fields: icon on the left, a tick once it looks right, calm focus */
.field { transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.field:focus-within { background: rgba(255, 255, 255, .08); }
.field label { transition: color .2s; }
.field:focus-within label { color: var(--gold); }
.field--ic { grid-template-columns: 22px 1fr auto; column-gap: 12px; padding-left: 14px; }
.field--ic .field__ic { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--faint); transition: color .2s; }
.field--ic:focus-within .field__ic { color: var(--gold); }
.field--ic label { grid-column: 2; grid-row: 1; }
.field--ic input, .field--ic textarea { grid-column: 2; grid-row: 2; }
.field--ic .field__ok { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: var(--gold); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); }
.field--ic.ok .field__ok { opacity: 1; transform: none; }
.field--ic .err { grid-column: 1 / -1; }
.field--note .field__ic { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
.field--note textarea { grid-row: 1 / span 2; }
.err:not(:empty) { animation: err-in .3s var(--ease); }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }

/* step 3: one map option, one typed option */
.locdone__again { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(13, 5, 25, .55); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text); font-size: 14px; font-weight: 700; transition: background .2s; }
.locdone__again:hover { background: rgba(13, 5, 25, .8); }
.locdone__again .ic { width: 16px; height: 16px; color: var(--gold); }
.locdone.flash { animation: loc-in .45s var(--spring), loc-glow 1.4s var(--ease); }
@keyframes loc-in { from { opacity: 0; transform: scale(.96); } }
@keyframes loc-glow { 30% { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 6px rgba(245, 196, 81, .22); } }

/* map: labelled "find me" pill, shorter hint */
.mapme { position: absolute; right: 14px; bottom: 30px; z-index: 600; display: inline-flex; align-items: center; height: 46px; padding: 0 15px; border: 0; border-radius: 999px; background: rgba(13, 5, 25, .9); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke), 0 10px 24px -10px rgba(0, 0, 0, .7); font: 700 14px/1 var(--sans); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, box-shadow .2s; }
.mapme .ic { flex: none; width: 18px; height: 18px; color: var(--gold); transform: rotate(-8deg); }
.mapme__label { display: grid; grid-template-columns: 1fr; max-width: 220px; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease), opacity .25s, margin .35s var(--ease); margin-left: 8px; }
.mapme:hover { background: rgba(30, 14, 58, .95); }
.mapme.is-here .mapme__label { max-width: 0; opacity: 0; margin-left: 0; }
.mapme.is-here { padding: 0 14px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.mapme.is-here .ic { color: var(--on-gold); }
.mapme.is-busy .ic { animation: pulse 1s ease-in-out infinite; }
.mapme:disabled { cursor: progress; }
@keyframes pulse { 50% { opacity: .35; } }
.mapbox.locating .mapbox__pin { animation: hop 1s var(--ease) infinite; }
@keyframes hop { 50% { transform: translateY(-12px); } }
.leaflet-top.leaflet-left { top: 56px; }

/* sheets: handle, softer backdrop, contents settle in */
.sheet__grab { position: absolute; top: 8px; left: 50%; z-index: 4; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: rgba(255, 255, 255, .28); }
@media (min-width: 720px) { .sheet__grab { display: none; } }
.sheet[open]::backdrop { animation: veil .35s var(--ease); }
.sheet.closing::backdrop { animation: unveil .22s ease-in forwards; }
@keyframes veil { from { opacity: 0; } }
@keyframes unveil { to { opacity: 0; } }
.sheet__panel { animation-duration: .5s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
.sheet.closing .sheet__panel { animation-duration: .24s; animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
.sheet.dragged .sheet__panel { animation: none; }
#checkout[open] .co__sec, #checkout[open] .total { animation: settle .55s cubic-bezier(.22, 1, .36, 1) both; }
#checkout[open] .form .co__sec:nth-child(1) { animation-delay: .05s; }
#checkout[open] .form .co__sec:nth-child(2) { animation-delay: .1s; }
#checkout[open] .form .co__sec:nth-child(3) { animation-delay: .15s; }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }
.co__head { touch-action: none; }

/* footer: the moon over the moving sea, the logo floating on the water with its reflection */
.foot { --sky-h: 236px; display: grid; margin-top: -44px; padding: 0; border-top: 0; overflow: hidden; }
.foot__scene, .foot__body { grid-area: 1 / 1; }
.foot__scene { position: relative; display: flex; flex-direction: column; }
.foot__sky { flex: none; display: block; width: 100%; height: var(--sky-h); object-fit: cover; object-position: center bottom; }
.foot__sea { flex: 1; display: block; width: 100%; min-height: 200px; margin-top: -1px; }
.foot__halo { position: absolute; left: calc(50% + 9px); top: calc(var(--sky-h) * .55); width: calc(var(--sky-h) * 1.5); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .22), rgba(255, 214, 140, 0)); transform: translate(-50%, -50%); mix-blend-mode: screen; animation: breathe 6s ease-in-out infinite alternate; }
.foot__clouds { position: absolute; left: 0; top: 0; width: 100%; height: var(--sky-h); pointer-events: none; }
@keyframes breathe { from { opacity: .55; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.foot__scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 5, 25, 0) 12%, rgba(13, 5, 25, 0) 66%, rgba(13, 5, 25, .65) 86%, var(--bg) 100%); }
.foot__body { position: relative; z-index: 1; display: grid; justify-items: center; padding: calc(var(--sky-h) + 18px) var(--gut) calc(36px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--gold); }
.foot__body::before { content: ""; position: absolute; left: 50%; top: calc(var(--sky-h) + 22px); width: 360px; height: 190px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 5, 25, .7), rgba(13, 5, 25, 0)); z-index: -1; }
.foot__mirror { margin-top: 4px; opacity: .26; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000, transparent 75%); mask-image: linear-gradient(0deg, #000, transparent 75%); filter: blur(.6px); animation: sway 4.5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: scaleY(-1) skewX(-3deg) scaleX(1.01); } to { transform: scaleY(-1) skewX(3deg) scaleX(.99); } }
.foot__note { margin-top: 10px; }
.foot__fine { margin-top: 14px; }
@media (min-width: 700px) {
  .foot { --sky-h: 270px; margin-top: 40px; }
  .foot__body { padding-top: calc(var(--sky-h) + 58px); }
  .foot__sea { min-height: 240px; }
  .foot__halo { left: calc(50% + 11px); }
  .foot .logo { width: 240px; }
  .foot__scene::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 5, 25, 0) 12%, rgba(13, 5, 25, 0) 66%, rgba(13, 5, 25, .65) 86%, var(--bg) 100%), linear-gradient(90deg, var(--bg), rgba(13, 5, 25, 0) 16%, rgba(13, 5, 25, 0) 84%, var(--bg)); }
}
@media (prefers-reduced-motion: reduce) { .foot__halo, .foot__mirror { animation: none; } }
.foot.has-reflection .foot__mirror { visibility: hidden; animation: none; }
@media (prefers-reduced-motion: reduce) { .sheet[open]::backdrop, #checkout[open] .co__sec, .locdone { animation: none; } }

/* any photo crops cleanly into the round plates (owner uploads included) */
.plate, .card__plate img, .pick img, .lines .thumb img, .stack img, .bar__thumbs img { object-fit: cover; }
/* marketing opt-in: unticked unless the customer ticks it */
.optin { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 600; cursor: pointer; }
.optin input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.optin__box { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--field); transition: background .2s, box-shadow .2s; }
.optin__box .ic { width: 14px; height: 14px; color: var(--on-gold); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .3s var(--spring); }
.optin input:checked + .optin__box { background: var(--gold); box-shadow: none; }
.optin input:checked + .optin__box .ic { opacity: 1; transform: none; }
.optin input:focus-visible + .optin__box { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.co__hint--fine { margin-top: -4px; font-size: 12px; color: var(--faint); }

/* ===================== v10b: prices on their own, smoother pop-ups ===================== */
/* menu: the price as plain gold text under the name, small currency, bold number */
.card__price { margin-top: 6px; font-size: 19px; letter-spacing: -.01em; }
.card__price small { font-size: 12px; letter-spacing: .06em; margin-right: 4px; }
@media (min-width: 640px) { .card__price { font-size: 20px; } }
.lines .txt > small { margin-top: 2px; }
.lines .txt > small .price { font-size: 15px; }

/* order bar: glides up and fades in (no bounce), pulses softly when the order changes */
.bar { opacity: 0; transform: translateY(calc(100% + 24px)); transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .35s ease; will-change: transform; }
.bar.on { opacity: 1; transform: none; }
.bar__btn { transition: transform .25s var(--ease); }
.bar__btn:active { transform: scale(.98); }
.bar.tick .bar__btn { animation: bar-tick .45s var(--ease); }
@keyframes bar-tick { 40% { transform: scale(1.025); } }
.bar.tick .bar__label small { animation: bar-num .45s var(--ease); }
@keyframes bar-num { 0% { opacity: .3; transform: translateY(4px); } }

/* sheets: no sideways jump when the page stops scrolling; the panel moves on the GPU */
html { scrollbar-gutter: stable; }
.sheet__panel { will-change: transform; }
.sheet::backdrop { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .bar, .bar.tick .bar__btn, .bar.tick .bar__label small { transition: none; animation: none; } }

/* quantity: give the number room between − and + */
.stepper { gap: 4px; padding: 4px; }
.stepper output { min-width: 32px; font-size: 16px; }
.card__act .stepper { gap: 4px; padding: 3px; }
.card__act .stepper .step { width: 38px; height: 38px; }
.card__act .stepper output { min-width: 30px; font-size: 16px; }

/* Space Food mark, top right of the hero */
.spacefood { position: absolute; top: 12px; right: var(--gut); z-index: 2; display: grid; justify-items: center; gap: 3px; margin: 0; font: 600 9.5px/1.15 var(--display); letter-spacing: .24em; text-transform: uppercase; color: rgba(176, 160, 255, .72); padding-left: .24em; }
.spacefood img { width: 44px; height: auto; margin-bottom: 4px; opacity: .88; filter: drop-shadow(0 0 10px rgba(126, 102, 250, .45)); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateY(-3px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .spacefood img { animation: none; } }
@media (min-width: 960px) {
  .spacefood { top: 28px; gap: 4px; font-size: 12px; }
  .spacefood img { width: 64px; }
}


/* ===================== v11: a calmer checkout, one-tap location ===================== */
.co__lab { gap: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--text); }
.co__sec { gap: 12px; }
/* name + phone in one card */
.group { border: 1px solid var(--field); border-radius: var(--r-md); background: var(--glass); overflow: hidden; transition: border-color .25s var(--ease); }
.group:focus-within { border-color: var(--gold); }
.group .field { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.group .field + .field { border-top: 1px solid var(--stroke); }
.group .field:focus-within { background: rgba(255, 255, 255, .05); box-shadow: none; }
.group .field.bad { box-shadow: inset 3px 0 0 var(--danger); }
/* location: one clear button, two quiet alternatives */
.locbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border: 1.5px solid var(--gold); border-radius: 999px; background: rgba(245, 196, 81, .08); color: var(--gold-hi); font: 700 16px/1 var(--sans); transition: background .2s, transform .2s var(--spring); }
.locbtn:hover { background: rgba(245, 196, 81, .16); }
.locbtn:active { transform: scale(.985); }
.locbtn .ic { width: 18px; height: 18px; transform: rotate(-8deg); }
.locbtn.is-busy .ic { animation: pulse 1s ease-in-out infinite; }
.locbtn:disabled { cursor: progress; }
.co__alt { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -2px 0 0; color: var(--faint); font-size: 14px; }
.co__alt .linkbtn { padding: 8px 2px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .25); }
.co__alt .linkbtn:hover { color: var(--text); }
.co__alt[hidden], .co__alt .linkbtn[hidden], .co__alt .linkbtn[hidden] + span { display: none; }
.locdone { display: grid; border-radius: var(--r-md); overflow: hidden; background: rgba(245, 196, 81, .08); box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, .6); animation: loc-in .45s var(--spring); }
.locdone[hidden] { display: none; }
.locdone__map { height: 132px; background: #1a1230; cursor: pointer; }
.locdone__map .leaflet-control-attribution { font-size: 9px; }
.locdone__row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.locdone__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.locdone__text strong { font-size: 16px; font-weight: 700; color: var(--gold-hi); }
.locdone__text small { font-size: 13px; color: var(--muted); }
.minipin svg { width: 28px; height: 42px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.minipin path { fill: var(--purple-deep); stroke: var(--gold); stroke-width: 1.2; }
.minipin circle { fill: var(--gold); }
/* note on request */
.co__more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.co__more .ic { width: 14px; height: 14px; color: var(--gold); }
.co__more:hover { color: var(--text); }

/* ===================== gold: one soft, warm material for every gold button and the logo ===================== */
:root {
  --gold-grain: url("img/gold-grain.png") 0 0 / 128px 128px repeat;
  --gold-metal: var(--gold-grain), radial-gradient(120% 70% at 28% 6%, rgba(255, 252, 235, .72), rgba(255, 250, 225, 0) 54%), linear-gradient(168deg, #fff6d6 0%, #fcdc7c 15%, #efbd4a 36%, #c98a22 56%, #e4ae40 71%, #fbe08f 87%, #ecc05a 100%);
  --gold-rim: inset 0 1px 0 rgba(255, 252, 238, .95), inset 0 -1px 1px rgba(130, 80, 10, .4), inset 0 0 0 1px rgba(170, 115, 20, .22);
  --gold-glow: 0 9px 24px -11px rgba(245, 196, 81, .65);
  --gold-foil: linear-gradient(180deg, #fff6d4 0%, #fadb7f 28%, #e9b34a 52%, #c4861f 65%, #f0c868 82%, #fff0b8 100%);
}
.btn--gold, .add, .step.step--plus, .stepper--lg .step:last-child, .bar__btn, .done__seal, .mapme.is-here, .bagbtn b, .optin input:checked + .optin__box {
  background: var(--gold-metal); background-blend-mode: soft-light, normal, normal; box-shadow: var(--gold-rim), var(--gold-glow);
}
.btn--gold:hover, .add:hover { box-shadow: var(--gold-rim), 0 12px 28px -12px rgba(245, 196, 81, .75); }
.btn--gold, .bar__btn { text-shadow: 0 1px 0 rgba(255, 244, 214, .45); }
/* the logo in the same gold: a gold gradient cut to the logo's shape */
.nav__logo .logo, .foot .logo { color: transparent; background: linear-gradient(105deg, rgba(255, 250, 232, 0) 42%, rgba(255, 250, 232, .68) 50%, rgba(255, 250, 232, 0) 58%) 200% 0 / 250% 100% no-repeat, var(--gold-grain), var(--gold-foil); background-blend-mode: normal, soft-light, normal; animation: logo-glint 25s ease-in-out 2s infinite; -webkit-mask: url("img/logo.svg") center / 100% 100% no-repeat; mask: url("img/logo.svg") center / 100% 100% no-repeat; }
.foot__mirror { -webkit-mask: url("img/logo.svg") center / 100% 100% no-repeat, linear-gradient(0deg, #000, transparent 75%); -webkit-mask-composite: source-in; mask: url("img/logo.svg") center / 100% 100% no-repeat, linear-gradient(0deg, #000, transparent 75%); mask-composite: intersect; }
/* a soft glow of light drifts across: slowly on hover or press, and now and then on the three main buttons */
.btn--gold, .add, .step.step--plus, .stepper--lg .step:last-child, .bar__btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after, .add::after, .step.step--plus::after, .stepper--lg .step:last-child::after, .bar__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 252, 238, .34) 50%, rgba(255, 255, 255, 0) 70%) 170% 0 / 300% 100% no-repeat;
}
:is(.btn--gold, .add, .step.step--plus, .stepper--lg .step:last-child, .bar__btn):is(:hover, :focus-visible)::after { animation: sheen 2s cubic-bezier(.45, 0, .25, 1); }
.hero__cta::after, .bar__btn::after, .btn--send::after { animation: glint 25s ease-in-out 4s infinite; }
.nav__logo, .foot__logo { filter: drop-shadow(0 1px 0 rgba(90, 52, 0, .55)) drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); }
.foot__logo { display: block; }
@keyframes logo-glint { 0% { background-position: 200% 0, 0 0, 0 0; } 10%, 100% { background-position: -100% 0, 0 0, 0 0; } }
@keyframes sheen { from { background-position: 170% 0; } to { background-position: -70% 0; } }
@keyframes glint { 0% { background-position: 170% 0; } 9%, 100% { background-position: -70% 0; } }
@media (prefers-reduced-motion: reduce) { .btn--gold::after, .add::after, .step.step--plus::after, .stepper--lg .step:last-child::after, .bar__btn::after, .nav__logo .logo, .foot .logo { animation: none !important; } }

/* "The full menu" between two fine gold lines */
.menu__head .eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.menu__head .eyebrow::before, .menu__head .eyebrow::after { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, rgba(245, 196, 81, 0), var(--gold)); }
.menu__head .eyebrow::after { transform: scaleX(-1); }

/* WhatsApp order mode: one quiet line above the Send button */
.co__wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.co__wa .ic { width: 15px; height: 15px; color: var(--gold); fill: currentColor; }
.co__wa[hidden] { display: none; }
