/* ============ theme tokens ============
   Two faces, same split as the QR presets:
   --display is the venue's: wordmark, section titles, item names, big numbers.
   --sans is the platform's: descriptions, prices, controls. Same in every venue.
   A new venue swaps this block (and the banner), nothing else. */
:root, [data-theme="chomp"] {
  --display: "Passion One", Impact, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;
  --sans: "Axiforma", system-ui, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;

  --bg: #FFF3D6;          /* butter cream */
  --surface: #FFFBF1;
  --surface-2: #F8E6BE;
  --fg: #1A1A1A;
  --fg-2: #4A4236;
  --fg-3: #7A6F5E;
  --line: rgba(26, 26, 26, .1);
  --line-2: rgba(26, 26, 26, .2);

  --brand: #FF542E;       /* vermilion: brand moments */
  --brand-2: #D93E1C;
  --brand-ink: #FFF3D6;   /* wordmark and icons on --brand */
  --on-brand: #1A1A1A;    /* small text on --brand (5.4:1) */
  --action: #244BFF;      /* cobalt: everything you tap to move forward */
  --action-2: #1733C9;
  --on-action: #FFF3D6;
  --ok: #23955A;
  --hot: #C21E0A;

  --glass: rgba(255, 251, 241, .72);
  --glass-edge: rgba(255, 255, 255, .7);
  --scrim: rgba(36, 22, 10, .42);
  --shadow: 0 3cqw 7cqw -3cqw rgba(90, 50, 20, .35);
  --food-shadow: drop-shadow(0 1.6cqw 1.4cqw rgba(90, 45, 15, .22));
  --grain: .05;

  --card-r: 3.6cqw;
  --tile-r: 3cqw;
  --sheet-r: 6cqw;
  --ease: cubic-bezier(.22, 1, .28, 1);
}
[data-theme="chomp-dark"] {
  --bg: #16120E;
  --surface: #211B15;
  --surface-2: #2C241C;
  --fg: #FFF3D6;
  --fg-2: #D9CCB0;
  --fg-3: #A39782;
  --line: rgba(255, 243, 214, .1);
  --line-2: rgba(255, 243, 214, .2);
  --brand: #FF5A35;
  --brand-2: #E5431F;
  --action: #4466FF;
  --action-2: #2E50F0;
  --on-action: #FFFFFF;
  --ok: #3CC27C;
  --hot: #FF4A2E;
  --glass: rgba(33, 27, 21, .72);
  --glass-edge: rgba(255, 243, 214, .14);
  --scrim: rgba(0, 0, 0, .55);
  --shadow: 0 3cqw 7cqw -3cqw rgba(0, 0, 0, .7);
  --food-shadow: drop-shadow(0 1.6cqw 1.4cqw rgba(0, 0, 0, .45));
  color-scheme: dark;
}

/* ============ base ============ */
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  display: grid; place-items: center;
  background: #0e0e0e;
  font-family: var(--sans);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
button { all: unset; cursor: pointer; -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
button:focus-visible { outline: .5cqw solid var(--action); outline-offset: .5cqw; }
svg { display: block; }

/* 9:16 portrait kiosk, sized in container units so it scales to any screen */
.kiosk {
  position: relative; overflow: clip;
  height: min(100vh, 100vw * 16 / 9);
  aspect-ratio: 9 / 16;
  container-type: size;
  background: var(--bg);
  user-select: none; -webkit-user-select: none;
}
/* paper grain over every cream surface */
.kiosk::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 50;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: var(--grain); mix-blend-mode: multiply;
}
[data-theme="chomp-dark"] .kiosk::after { mix-blend-mode: screen; }

.screen {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
}
.screen.active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.screen.active:not(.intro) { transition: visibility 0s; animation: wipe .9s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(100% 0 0 0 round 8cqw 8cqw 0 0); } to { clip-path: inset(0 0 0 0 round 0); } }
.intro .banner { transition: transform 1.1s var(--ease); }
.intro:not(.active) .banner { transform: translateY(-6%) scale(1.05); }

/* text that slides up through its own line */
.mask { display: block; overflow: clip; padding-bottom: .16em; margin-bottom: -.16em; }
.mask > span { display: block; }
@keyframes up { from { transform: translateY(105%); } }
.roll { display: inline-flex; overflow: clip; vertical-align: top; }
.roll > span { display: inline-block; animation: up .5s var(--ease) both; }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip svg, .btn svg, .close svg, .stepper svg, .add svg, .back svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2cqw;
  height: 11cqw; padding: 0 5cqw; border-radius: 99cqw;
  font-size: 3.2cqw; font-weight: 700; letter-spacing: -.01em;
  transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 3.8cqw; height: 3.8cqw; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:active { background: var(--action-2); }
.btn-ghost { color: var(--fg); box-shadow: inset 0 0 0 .3cqw var(--line-2); }
.btn-wide { width: 100%; height: 12cqw; justify-content: space-between; padding: 0 5.6cqw; }
.btn-wide .amt { font-variant-numeric: tabular-nums; }

/* round icon controls */
.close, .back {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  width: 11cqw; height: 11cqw; border-radius: 50%;
  background: var(--glass); color: var(--fg);
  -webkit-backdrop-filter: blur(3cqw) saturate(160%); backdrop-filter: blur(3cqw) saturate(160%);
  box-shadow: inset 0 0 0 .2cqw var(--glass-edge), 0 1.5cqw 4cqw -2cqw rgba(0, 0, 0, .3);
  transition: transform .15s ease;
}
.close:active, .back:active { transform: scale(.94); }
.close svg, .back svg { width: 5cqw; height: 5cqw; }

/* ============ 1. intro (from kiosk intro, scoped) ============ */
.intro { background: #0e0e0e; color: #fff; }
.intro .banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro .shade, .intro .veil { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; }
.intro .shade { background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .75)); }
.intro .veil {
  -webkit-backdrop-filter: blur(4cqw) saturate(150%); backdrop-filter: blur(4cqw) saturate(150%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 34%, #000 48%);
  mask-image: linear-gradient(to bottom, transparent 34%, #000 48%);
}
.kiosk[data-pos="top"] .intro .shade, .kiosk[data-pos="top"] .intro .veil { top: 0; bottom: auto; }
.kiosk[data-pos="top"] .intro .shade { background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .75)); }
.kiosk[data-pos="top"] .intro .veil {
  -webkit-mask-image: linear-gradient(to top, transparent 34%, #000 48%);
  mask-image: linear-gradient(to top, transparent 34%, #000 48%);
}
.kiosk[data-pos="top"] .intro .choose { top: 7cqw; bottom: auto; }
.kiosk[data-pos="middle"] .intro .shade, .kiosk[data-pos="middle"] .intro .veil { top: 25%; bottom: auto; height: 50%; }
.kiosk[data-pos="middle"] .intro .shade { background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6) 25%, rgba(0, 0, 0, .6) 75%, rgba(0, 0, 0, 0)); }
.kiosk[data-pos="middle"] .intro .veil {
  -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 25%, #000 75%, transparent 88%);
  mask-image: linear-gradient(to bottom, transparent 12%, #000 25%, #000 75%, transparent 88%);
}
.kiosk[data-pos="middle"] .intro .choose { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }

.intro .choose { position: absolute; left: 5cqw; right: 5cqw; bottom: 5cqw; }
.intro.active .choose { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.intro .choose h1 {
  font-size: 4.4cqw; font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
  text-align: center; text-shadow: 0 .3cqw 3cqw rgba(0, 0, 0, .5);
}
.intro .options { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-top: 4cqw; }
.intro .option {
  display: flex; align-items: center; justify-content: center; gap: 2.5cqw;
  height: 17cqw; border-radius: 5cqw;
  background: rgba(255, 255, 255, .16);
  border: .25cqw solid rgba(255, 255, 255, .45);
  box-shadow: inset 0 .3cqw 0 rgba(255, 255, 255, .5), 0 2cqw 5cqw rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(2cqw); backdrop-filter: blur(2cqw);
  transition: transform .15s ease, background .15s ease;
}
.intro .option:active { transform: scale(.96); background: rgba(255, 255, 255, .3); }
.intro .option:focus-visible { outline: .6cqw solid #fff; outline-offset: .8cqw; }
.intro .option[aria-disabled="true"] { opacity: .45; }
.intro .option[aria-disabled="true"]:active { transform: none; background: rgba(255, 255, 255, .16); }
.nudge { animation: nudge .3s ease; }
@keyframes nudge { 25% { translate: -1cqw; } 75% { translate: 1cqw; } }

.intro .tip {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 3cqw); z-index: 2;
  transform-origin: calc((100% - 3cqw) / 4) 100%;
  opacity: 0; visibility: hidden; transform: translateY(2cqw) scale(.92);
  transition: opacity .2s ease, transform .25s ease, visibility 0s .25s;
}
.intro .tip.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease, transform .4s cubic-bezier(.2, 1.3, .3, 1), visibility 0s;
}
.intro .tip-card {
  position: relative; overflow: clip;
  display: flex; align-items: center; gap: 4cqw; padding: 4.5cqw 5cqw 5.5cqw;
  border-radius: 4.5cqw; background: #fff; color: #0f1a2a;
  box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .35);
}
.intro .tip-art { flex: none; width: 15cqw; height: auto; overflow: visible; }
.intro .tip-art .brand { fill: var(--brand); }
.intro .tip-art .ink { fill: var(--brand-ink); }
.intro .tip-title { font-size: 3.8cqw; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; white-space: pre-line; }
.intro .tip-body { margin-top: 1.2cqw; font-size: 2.8cqw; line-height: 1.5; color: #475569; text-wrap: pretty; }
.intro .tip-arrow {
  position: absolute; top: 100%; left: calc((100% - 3cqw) / 4);
  width: 5cqw; height: 2.5cqw; margin-left: -2.5cqw;
  background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.intro .tip-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; background: var(--brand); transform-origin: left; }
.intro .tip.open .tip-timer { animation: drain var(--tip-ms, 6s) linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.kiosk[data-pos="top"] .intro .tip { bottom: auto; top: calc(100% + 3cqw); transform-origin: calc((100% - 3cqw) / 4) 0; transform: translateY(-2cqw) scale(.92); }
.kiosk[data-pos="top"] .intro .tip.open { transform: none; }
.kiosk[data-pos="top"] .intro .tip-arrow { top: auto; bottom: 100%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.intro .icon { display: grid; }
.intro .icon svg { width: 7cqw; height: 7cqw; }
.intro .label { font-size: 4.6cqw; font-weight: 600; letter-spacing: -.01em; }

.intro .lang {
  display: flex; justify-content: safe center; gap: 1.6cqw; margin: 3.5cqw -5cqw 0; padding: 0 5cqw;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 5cqw; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4cqw, #000 calc(100% - 5cqw), transparent);
  mask-image: linear-gradient(to right, transparent, #000 4cqw, #000 calc(100% - 5cqw), transparent);
}
.intro .lang::-webkit-scrollbar { display: none; }
.intro .lang button {
  display: flex; align-items: center; justify-content: center; gap: 1.8cqw;
  flex: none; scroll-snap-align: start;
  height: 7.5cqw; padding: 0 2.8cqw; border-radius: 99cqw;
  font-size: 3cqw; font-weight: 500; white-space: nowrap;
  background: rgba(255, 255, 255, .1); border: .2cqw solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(2cqw); backdrop-filter: blur(2cqw);
  transition: background .15s ease, color .15s ease;
}
.intro .lang button[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; font-weight: 600; }
.intro .lang button:focus-visible { outline: .5cqw solid #fff; outline-offset: .6cqw; }
.intro .flag { font-size: 3.6cqw; line-height: 1; }

@keyframes rise { from { opacity: 0; transform: translateY(6cqw); } }

/* ============ 1a. welcome: showcase up front ============ */
.welcome { display: flex; flex-direction: column; background: var(--bg); }
.stage {
  position: relative; flex: none; height: 101cqw; overflow: clip; color: var(--brand-ink);
  background: radial-gradient(120% 95% at 78% 38%, #FF7B47 0%, var(--brand) 46%, #C2370F 100%);
}
.stage-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 6cqw 6cqw 0 7cqw; }
.stage .logo { height: 6.6cqw; background: var(--brand-ink); }
.welcome.active .stage .logo { animation: rise .8s var(--ease) both .3s; }
/* floating, so glass */
.w-lang {
  display: flex; align-items: center; gap: .6cqw; height: 8.6cqw; padding: 0 .8cqw 0 2.6cqw; border-radius: 99cqw;
  font-size: 2.6cqw; font-weight: 600;
  background: rgba(255, 243, 214, .16);
  -webkit-backdrop-filter: blur(3cqw) saturate(160%); backdrop-filter: blur(3cqw) saturate(160%);
  box-shadow: inset 0 0 0 .2cqw rgba(255, 255, 255, .35);
}
.w-lang svg { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: .6cqw; }
.w-lang button {
  height: 7cqw; padding: 0 2.4cqw; border-radius: 99cqw; display: inline-flex; align-items: center;
  color: rgba(255, 243, 214, .8); transition: background .3s var(--ease), color .3s var(--ease);
}
.w-lang button[aria-pressed="true"] { background: var(--brand-ink); color: var(--brand-2); font-weight: 700; }

.stage .slide { display: block; padding: 0; }
.stage .slide img { position: absolute; right: 2cqw; top: 42cqw; width: 62cqw; height: 62cqw; margin: 0; filter: drop-shadow(0 3cqw 3cqw rgba(80, 20, 0, .35)); }
.stage .slide-text { position: absolute; left: 7cqw; top: 22cqw; width: 86cqw; z-index: 1; gap: 1.6cqw; }
.stage .eyebrow { font-size: 2.6cqw; color: #FFE2A8; }
.stage .slide-name { font-size: 11.5cqw; line-height: .88; color: var(--brand-ink); text-wrap: wrap; }
.stage .slide-price { font-size: 3.6cqw; color: rgba(255, 243, 214, .88); }
.stage .spot-bar { background: rgba(255, 243, 214, .22); height: .9cqw; }
.stage .spot-bar i { background: var(--brand-ink); }

.w-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding: 0 5cqw 5cqw; }
.sellers {
  margin-top: -7cqw; padding: 3.6cqw 3.6cqw 3.8cqw; border-radius: 5cqw;
  background: var(--surface); box-shadow: var(--shadow), 0 .2cqw 0 var(--line);
}
.sellers-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 .6cqw 2.6cqw; }
.sellers-head h3 { font-size: 3.6cqw; font-weight: 700; letter-spacing: -.01em; }
.sellers-head span { font-size: 2.3cqw; color: var(--fg-3); }
/* swipeable row, edge to edge inside the card so the next dish peeks in */
.sellers-grid {
  display: flex; gap: 2.2cqw; overflow-x: auto; scrollbar-width: none;
  margin: 0 -3.6cqw; padding: 0 3.6cqw; scroll-padding: 0 3.6cqw; scroll-snap-type: x mandatory;
}
.sellers-grid::-webkit-scrollbar { display: none; }
.seller { flex: none; width: 24cqw; scroll-snap-align: start; }
.seller {
  display: flex; flex-direction: column; align-items: center; gap: .6cqw; padding: 1.6cqw 1cqw 2.4cqw; border-radius: 3.4cqw;
  background: var(--bg); text-align: center; transition: transform .15s ease;
}
.seller:active { transform: scale(.96); }
.seller img { width: 20cqw; height: 20cqw; object-fit: contain; filter: var(--food-shadow); }
.seller-name { font-family: var(--display); font-size: 3.6cqw; line-height: 1; }
.seller-price { font-size: 2.4cqw; font-weight: 600; color: var(--fg-3); }
.w-ask { margin: 4.4cqw 0 0 .6cqw; font-size: 3.6cqw; font-weight: 700; letter-spacing: -.01em; }
.w-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; margin-top: 2.4cqw; }
.w-mode { height: 13cqw; font-size: 3.6cqw; gap: 2cqw; }
.w-mode svg { width: 4.8cqw; height: 4.8cqw; }
.welcome.active .w-body > * { animation: rise .75s var(--ease) both; }
.welcome.active .w-body > :nth-child(1) { animation-delay: .25s; }
.welcome.active .w-body > :nth-child(2) { animation-delay: .33s; }
.welcome.active .w-body > :nth-child(3) { animation-delay: .41s; }
.welcome.active .w-body > :nth-child(4) { animation-delay: .49s; }

/* ============ 2. menu ============ */
.menu { display: flex; flex-direction: column; }

/* simple header: wordmark, search, language, start over */
.top {
  position: relative; z-index: 6; flex: none;
  display: flex; align-items: center; gap: 1.6cqw;
  height: 15cqw; padding: 0 4cqw 0 5cqw;
  background: var(--bg);
}
.wordmark { flex: none; }
/* the logo file is the shape, the theme colour fills it */
.logo {
  display: block; height: 7.2cqw; aspect-ratio: 2018 / 512; background: var(--brand);
  -webkit-mask: url("img/logo.svg") center / contain no-repeat; mask: url("img/logo.svg") center / contain no-repeat;
}
.menu.active .wordmark .mask > span { animation: up .9s var(--ease) both .3s; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 1.4cqw; }
.menu.active .top-actions { animation: rise .7s var(--ease) both .4s; }
/* quiet controls: no borders, the wordmark leads */
.lang-btn {
  display: inline-flex; align-items: center; gap: 1.2cqw; height: 9.6cqw; padding: 0 2cqw 0 2.4cqw; border-radius: 99cqw;
  font-size: 2.7cqw; font-weight: 600; color: var(--fg-2);
  transition: background .2s ease;
}
.lang-btn:active { background: var(--surface-2); }
.lang-btn .flag { font-size: 3.4cqw; line-height: 1; }
.lang-btn .caret { width: 3cqw; height: 3cqw; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.icon-btn {
  display: grid; place-items: center; width: 9.6cqw; height: 9.6cqw; border-radius: 50%;
  background: var(--surface); color: var(--fg);
  box-shadow: 0 .6cqw 2cqw -1cqw rgba(90, 50, 20, .35);
  transition: transform .15s ease;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 4.2cqw; height: 4.2cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* chips (cart order type, search cancel) */
.chip {
  display: inline-flex; align-items: center; gap: 1.4cqw; flex: none;
  height: 8.6cqw; padding: 0 3cqw; border-radius: 99cqw;
  font-size: 2.6cqw; font-weight: 600; color: var(--fg);
  background: var(--surface); box-shadow: inset 0 0 0 .2cqw var(--line-2);
  transition: transform .15s ease;
}
.chip:active { transform: scale(.96); }
.chip svg { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.lang-wrap { position: relative; }
.lang-pop {
  position: absolute; top: calc(100% + 1.6cqw); right: 0; z-index: 8;
  display: grid; gap: .4cqw; min-width: 42cqw; padding: 1.4cqw; border-radius: 4cqw;
  background: var(--glass);
  -webkit-backdrop-filter: blur(4cqw) saturate(170%); backdrop-filter: blur(4cqw) saturate(170%);
  box-shadow: inset 0 0 0 .25cqw var(--glass-edge), var(--shadow);
  clip-path: inset(0 0 100% 0 round 4cqw); visibility: hidden;
  transition: clip-path .5s var(--ease), visibility 0s .5s;
}
.lang-pop.open { clip-path: inset(-2cqw -2cqw -6cqw -2cqw round 4cqw); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
.lang-pop button {
  display: flex; align-items: center; gap: 2cqw; height: 9cqw; padding: 0 2.6cqw; border-radius: 2.8cqw;
  font-size: 2.8cqw; font-weight: 500; color: var(--fg);
}
.lang-pop button[aria-pressed="true"] { background: var(--action); color: var(--on-action); font-weight: 600; }
.lang-pop .flag { font-size: 3.6cqw; }

.menu-body { position: relative; flex: 1; min-height: 0; display: flex; }

/* category rail */
.rail {
  position: relative; flex: 1; min-height: 0; padding: 4cqw 2cqw 6cqw;
  overflow-y: auto; scrollbar-width: none; scroll-padding: 4cqw 0 8cqw;
  display: flex; flex-direction: column; gap: 1.4cqw;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 6cqw), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 6cqw), transparent);
}
.rail-col { flex: none; width: 22cqw; display: flex; flex-direction: column; background: var(--surface-2); }
.rail-foot { flex: none; height: 19cqw; padding-bottom: 4cqw; display: grid; place-items: center; }
.restart {
  display: inline-flex; align-items: center; gap: 1.2cqw; height: 8cqw; padding: 0 2.4cqw; border-radius: 99cqw;
  font-size: 2.2cqw; font-weight: 500; color: var(--fg-3);
}
.restart:active { background: var(--line); }
.restart svg { width: 3cqw; height: 3cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail::-webkit-scrollbar, .feed::-webkit-scrollbar, .sheet-scroll::-webkit-scrollbar, .upsell-row::-webkit-scrollbar { display: none; }
.rail button {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1cqw;
  padding: 1.8cqw 1cqw 2.2cqw; border-radius: var(--tile-r);
  font-size: 2.3cqw; font-weight: 600; line-height: 1.2; text-align: center; color: var(--fg-2);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.rail img { width: 13cqw; height: 13cqw; object-fit: contain; filter: var(--food-shadow); transition: transform .4s var(--ease); }
.rail button[aria-current="true"] { color: var(--on-action); }
.rail-ind {
  position: absolute; left: 2cqw; right: 2cqw; top: 0; height: 0; border-radius: var(--tile-r);
  background: var(--action); pointer-events: none;
  transition: transform .55s var(--ease), height .55s var(--ease);
}
.rail button[aria-current="true"] img { transform: scale(1.08); }

/* feed */
.feed { flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: none; padding: 5cqw 4cqw 32cqw; scroll-behavior: smooth; }
.section + .section { margin-top: 8cqw; }
.section { scroll-margin-top: 4cqw; }
.section-title {
  font-family: var(--display); font-weight: 700; font-size: 7.4cqw; line-height: .95;
  text-transform: uppercase; color: var(--brand); margin: 0 0 3.4cqw .6cqw;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8cqw; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 2cqw 2.4cqw 2.6cqw; border-radius: var(--card-r);
  background: var(--surface); box-shadow: 0 .2cqw 0 var(--line);
  transition: transform .2s var(--ease);
}
.card:active { transform: scale(.97); }
[data-reveal] { opacity: 0; transform: translateY(6cqw); transition: opacity .6s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].in:active { transform: scale(.97); transition: transform .15s ease; }
.card .card-img img { clip-path: inset(100% -12% -12% -12%); transition: clip-path 1s var(--ease) calc(var(--d, 0ms) + 120ms); }
.card.in .card-img img { clip-path: inset(-12% -12% -12% -12%); }
.section-title .mask > span { transform: translateY(105%); transition: transform .9s var(--ease); }
.section-title.in .mask > span { transform: none; }
.card-img { aspect-ratio: 1; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; filter: var(--food-shadow); }
.card-name { font-family: var(--display); font-weight: 400; font-size: 4cqw; line-height: 1; margin-top: 1cqw; color: var(--fg); text-wrap: balance; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.6cqw; }
.price { font-size: 2.8cqw; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.add {
  display: grid; place-items: center; flex: none;
  width: 9cqw; height: 9cqw; border-radius: 50%;
  background: var(--action); color: var(--on-action);
  transition: transform .15s ease, background .25s ease;
}
.add svg { width: 4.4cqw; height: 4.4cqw; }
.add:active { transform: scale(.9); }
.add.done { background: var(--ok); }

.badge {
  position: absolute; top: 2cqw; left: 2cqw; z-index: 1;
  padding: .9cqw 2cqw .7cqw; border-radius: 99cqw;
  font-size: 2cqw; font-weight: 700; letter-spacing: .02em;
}
.badge.new { background: var(--action); color: var(--on-action); }
.badge.limited { background: var(--fg); color: var(--bg); }
.badge.best { background: var(--brand); color: var(--on-brand); }
.badge.out { background: var(--fg); color: var(--bg); }
.flags { display: inline-flex; gap: .6cqw; vertical-align: .1cqw; margin-left: .8cqw; }
.flags svg { width: 2.8cqw; height: 2.8cqw; }
.flags .hot { color: var(--brand); fill: currentColor; stroke: none; }
.flags .veg { color: var(--ok); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.card.out .card-img img { opacity: .35; filter: grayscale(1); }
.card.out .card-name, .card.out .price { color: var(--fg-3); }

/* recommended: spotlight, row, craving tiles */
.block-title { font-size: 3.4cqw; font-weight: 700; letter-spacing: -.01em; margin: 7cqw 0 2.8cqw .4cqw; }
.spot {
  position: relative; height: 52cqw; border-radius: var(--card-r); overflow: clip;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 38cqw; align-items: center;
  padding-left: 5cqw; pointer-events: none;
}
.slide.on { pointer-events: auto; }
.slide-text { display: flex; flex-direction: column; gap: 1.2cqw; }
.eyebrow { font-size: 2.2cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.slide-name { font-family: var(--display); font-weight: 700; font-size: 6.6cqw; line-height: .92; text-wrap: balance; }
.slide-price { margin-top: 1cqw; font-size: 2.8cqw; font-weight: 600; color: var(--fg-2); }
.slide img { width: 42cqw; height: 42cqw; object-fit: contain; filter: var(--food-shadow); margin-left: -3cqw; }
.slide .mask > span { transform: translateY(110%); transition: transform .75s var(--ease); }
.slide.on .mask > span { transform: none; transition-delay: calc(var(--l) * 80ms + 200ms); }
.slide.out .mask > span { transform: translateY(-110%); transition-delay: calc(var(--l) * 50ms); }
.slide img { clip-path: inset(-10% -10% -10% 100%); transform: translateX(8cqw); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.slide.on img { clip-path: inset(-10% -10% -10% -10%); transform: none; }
.slide.out img { clip-path: inset(-10% 100% -10% -10%); transform: translateX(-8cqw); }
.slide.reset *, .slide.reset { transition: none !important; }
.spot-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .8cqw; background: var(--line); overflow: clip; }
.spot-bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; animation: fill 5s linear both; }


/* carousel cards are the same width and type as the grid cards */
.hrow { display: flex; gap: 2.8cqw; overflow-x: auto; scrollbar-width: none; margin: 0 -4cqw; padding: 0 4cqw .4cqw; scroll-padding: 0 4cqw; scroll-snap-type: x mandatory; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .card { flex: none; width: calc((100cqw - 22cqw - 8cqw - 2.8cqw) / 2); scroll-snap-align: start; }
.crave { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.crave-tile {
  display: flex; align-items: center; gap: 1.6cqw; height: 17cqw; padding: 0 2.4cqw 0 1.2cqw;
  border-radius: var(--card-r); background: var(--surface); box-shadow: 0 .2cqw 0 var(--line);
}
.crave-tile:active { transform: scale(.97); }
.crave-tile img { width: 14cqw; height: 14cqw; object-fit: contain; filter: var(--food-shadow); }
.crave-tile span { font-family: var(--display); font-size: 3.8cqw; line-height: 1; text-align: left; }

/* search: panel wipes down under the header */
.search {
  position: absolute; top: 15cqw; left: 0; right: 0; bottom: 0; z-index: 4;
  background: var(--bg);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .65s var(--ease), visibility 0s .65s;
}
.search.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .65s var(--ease), visibility 0s; }
.search-bar { display: flex; align-items: center; gap: 2cqw; padding: 4cqw 4cqw 2cqw 5cqw; }
.search-field {
  flex: 1; display: flex; align-items: center; gap: 2cqw; height: 11cqw; padding: 0 3.6cqw; border-radius: 99cqw;
  background: var(--surface); box-shadow: inset 0 0 0 .3cqw var(--action); color: var(--fg-3);
}
.search-field svg { width: 4.2cqw; height: 4.2cqw; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-field input { all: unset; flex: 1; min-width: 0; font: 500 3.3cqw var(--sans); color: var(--fg); }
.search-field input::placeholder { color: var(--fg-3); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-bar .chip { height: 11cqw; padding: 0 3.6cqw; font-size: 2.8cqw; }
.search-body { position: absolute; top: 17cqw; left: 0; right: 0; bottom: 0; overflow-y: auto; scrollbar-width: none; padding: 0 5cqw 30cqw; }
.search-body::-webkit-scrollbar { display: none; }
.search-body .block-title { margin-top: 4cqw; }
.grid.three { grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.sugs { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.sug {
  height: 8.6cqw; padding: 0 3.4cqw; border-radius: 99cqw; display: inline-flex; align-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 .2cqw var(--line-2); font-size: 2.7cqw; font-weight: 600;
  animation: rise .6s var(--ease) both; animation-delay: var(--d);
}
.search-empty { padding: 20cqw 4cqw 0; text-align: center; }
.search-empty p { font-family: var(--display); font-size: 7cqw; line-height: 1; }
.search-empty span { display: block; margin-top: 2cqw; font-size: 2.9cqw; color: var(--fg-3); }

/* floating order bar: glass */
.cartbar {
  position: absolute; left: 25cqw; right: 3cqw; bottom: 4cqw; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: 15cqw; padding: 0 2cqw; border-radius: 99cqw;
  background: var(--glass);
  -webkit-backdrop-filter: blur(3.5cqw) saturate(170%); backdrop-filter: blur(3.5cqw) saturate(170%);
  box-shadow: inset 0 0 0 .25cqw var(--glass-edge), var(--shadow);
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.cartbar.show { transform: none; }
.cartbar .btn { height: 11cqw; }
.cartbar-sum { display: flex; align-items: center; gap: 2.6cqw; height: 100%; padding-right: 3cqw; }
.cart-count {
  display: grid; place-items: center; min-width: 11cqw; height: 11cqw; padding: 0 2cqw; border-radius: 99cqw;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--display); font-size: 5.4cqw; line-height: 1; padding-top: .6cqw;
}
.cart-text { display: flex; flex-direction: column; gap: .4cqw; }
.cart-label { font-size: 2.4cqw; font-weight: 500; color: var(--fg-3); }
.cart-total { font-size: 3.6cqw; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ sheets (item and cart) ============ */
.scrim {
  position: absolute; inset: 0; z-index: 10; background: var(--scrim);
  -webkit-backdrop-filter: blur(.8cqw); backdrop-filter: blur(.8cqw);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.scrim.show { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  height: 91%; overflow: clip;
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  background: var(--bg);
  transform: translateY(102%); transition: transform .6s var(--ease);
}
.sheet.open { transform: none; }
.sheet .close { top: 3.4cqw; right: 3.4cqw; }
.sheet-scroll { height: 100%; overflow-y: auto; scrollbar-width: none; padding-bottom: 30cqw; scroll-behavior: smooth; }

.hero { position: relative; display: grid; place-items: center; height: 64cqw; }
.hero::before {
  content: ""; position: absolute; width: 70cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 30%, transparent), transparent 66%);
}
.hero img { position: relative; width: 60cqw; height: 60cqw; object-fit: contain; filter: var(--food-shadow); }
.sheet.intro .hero img { animation: pop .9s var(--ease) both .12s; }
.sheet.intro .sheet-name .mask > span, .sheet.intro .cart-title .mask > span { animation: up .85s var(--ease) both .2s; }
.sheet.intro .sheet-desc { animation: rise .7s var(--ease) both .28s; }
.sheet.intro .sheet-price { animation: rise .7s var(--ease) both .34s; }
.sheet.intro .group-wrap.on .group-in { animation: rise .7s var(--ease) both; animation-delay: calc(var(--gi, 0) * 70ms + .4s); }
.sheet.intro .cart-head .chip, .sheet.intro .line, .sheet.intro .upsell, .sheet.intro .totals { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .3s); }
@keyframes pop { from { opacity: 0; transform: translateY(5cqw) scale(.94); } }

.sheet-head { padding: 0 7cqw; }
.sheet-name { font-family: var(--display); font-weight: 700; font-size: 9cqw; line-height: .95; letter-spacing: -.005em; }
.sheet-desc { margin-top: 2cqw; font-size: 2.9cqw; line-height: 1.5; color: var(--fg-2); max-width: 78cqw; text-wrap: pretty; }
.sheet-price { margin-top: 2.4cqw; font-size: 3.4cqw; font-weight: 700; font-variant-numeric: tabular-nums; }

/* modifier groups fold in and out with an eased height */
.group-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .35s var(--ease); }
.group-wrap.on { grid-template-rows: 1fr; opacity: 1; }
.group { min-height: 0; overflow: clip; padding: 0 7cqw; }
.group-in { padding-top: 7cqw; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; margin-bottom: 2.8cqw; }
.group-title { font-size: 3.5cqw; font-weight: 700; letter-spacing: -.01em; }
.req {
  flex: none; padding: 1cqw 2.4cqw .8cqw; border-radius: 99cqw;
  font-size: 2.2cqw; font-weight: 700;
  background: var(--brand); color: var(--on-brand);
  transition: background .3s ease, color .3s ease;
}
.req.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.req.opt { background: none; color: var(--fg-3); font-weight: 500; padding-right: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.tiles.five { grid-template-columns: repeat(5, 1fr); gap: 1.8cqw; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8cqw;
  min-height: 14cqw; padding: 2.2cqw 1.4cqw; border-radius: var(--tile-r);
  background: var(--surface); text-align: center;
  box-shadow: inset 0 0 0 .2cqw var(--line);
  transition: box-shadow .2s ease, transform .15s ease;
}
.tile:active { transform: scale(.96); }
.tiles.pics .tile { justify-content: flex-start; }
.tile img { width: 17cqw; height: 17cqw; object-fit: contain; filter: var(--food-shadow); margin-bottom: .4cqw; }
.tile-name { font-size: 2.6cqw; font-weight: 600; line-height: 1.2; }
.tile-delta { font-size: 2.3cqw; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tile.sel { box-shadow: inset 0 0 0 .5cqw var(--action); }
.tile .tick, .tile .count {
  position: absolute; top: 1.4cqw; right: 1.4cqw;
  display: grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: 50%;
  background: var(--action); color: var(--on-action);
  font-size: 2.6cqw; font-weight: 700;
  transform: scale(0); transition: transform .3s var(--ease);
}
.tile .tick svg { width: 3cqw; height: 3cqw; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile.sel .tick, .tile.sel .count { transform: none; }
.tile .minus {
  position: absolute; top: 1.4cqw; left: 1.4cqw;
  display: grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: 50%;
  background: var(--surface-2); color: var(--fg);
  transform: scale(0); transition: transform .3s var(--ease);
}
.tile .minus svg { width: 3cqw; height: 3cqw; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.tile.sel .minus { transform: none; }

/* spice: four flames, filled by level */
.flames { display: flex; gap: .3cqw; height: 3.4cqw; margin-bottom: .6cqw; }
.flames svg { width: 2.8cqw; height: 3.4cqw; }
.flames .f { fill: currentColor; }
.flames .e { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .3; }
.spice .tile-name { font-size: 2.3cqw; }
.note-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.note-wrap.on { grid-template-rows: 1fr; }
.note { min-height: 0; overflow: clip; }
.note p { display: flex; align-items: center; gap: 1.6cqw; padding-top: 2.4cqw; font-size: 2.7cqw; font-weight: 600; color: var(--hot); }
.note svg { width: 3.4cqw; height: 3.4cqw; fill: currentColor; }

/* make it a meal: one toggle card */
.toggle {
  display: flex; align-items: center; gap: 3cqw; width: 100%;
  padding: 2cqw 3.4cqw 2cqw 2cqw; border-radius: var(--card-r);
  background: var(--surface); box-shadow: inset 0 0 0 .2cqw var(--line);
  transition: box-shadow .2s ease;
}
.toggle img { width: 20cqw; height: 20cqw; object-fit: contain; filter: var(--food-shadow); }
.toggle-text { flex: 1; display: flex; flex-direction: column; gap: .8cqw; }
.toggle-title { font-family: var(--display); font-weight: 700; font-size: 5cqw; line-height: 1; white-space: nowrap; }
.toggle-sub { font-size: 2.6cqw; color: var(--fg-2); }
.toggle-delta { font-size: 2.8cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.switch { position: relative; flex: none; width: 11cqw; height: 6.6cqw; border-radius: 99cqw; background: var(--line-2); transition: background .3s var(--ease); }
.switch::after {
  content: ""; position: absolute; top: .7cqw; left: .7cqw; width: 5.2cqw; height: 5.2cqw; border-radius: 50%;
  background: #fff; box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .25); transition: transform .35s var(--ease);
}
.toggle.sel { box-shadow: inset 0 0 0 .5cqw var(--action); }
.toggle.sel .switch { background: var(--action); }
.toggle.sel .switch::after { transform: translateX(4.4cqw); }

.group.missing .req { animation: nudge .3s ease; }

/* sheet footer: glass */
.sheet-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 3cqw;
  padding: 3.4cqw 5cqw 4.4cqw;
  background: var(--glass);
  -webkit-backdrop-filter: blur(3.5cqw) saturate(170%); backdrop-filter: blur(3.5cqw) saturate(170%);
  box-shadow: inset 0 .2cqw 0 var(--glass-edge), 0 -2cqw 5cqw -3cqw rgba(0, 0, 0, .15);
}
.sheet-foot .btn-wide { flex: 1; }
.stepper { display: flex; align-items: center; gap: 1cqw; }
.stepper button {
  display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 .2cqw var(--line-2); color: var(--fg);
  transition: transform .15s ease;
}
.stepper button:active { transform: scale(.92); }
.stepper svg { width: 4.4cqw; height: 4.4cqw; }
.stepper output { min-width: 7cqw; text-align: center; font-family: var(--display); font-size: 6cqw; line-height: 1; padding-top: .6cqw; }
.stepper.sm button { width: 8.4cqw; height: 8.4cqw; }
.stepper.sm svg { width: 3.4cqw; height: 3.4cqw; }
.stepper.sm output { min-width: 5.6cqw; font-size: 4.6cqw; }

/* cart sheet */
.cart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; padding: 9cqw 17cqw 2cqw 7cqw; }
.cart-title { font-family: var(--display); font-weight: 700; font-size: 8.6cqw; white-space: nowrap; line-height: .95; text-transform: uppercase; color: var(--brand); }
.lines { padding: 0 7cqw; }
.line { display: grid; grid-template-columns: 17cqw 1fr auto; gap: 3cqw; align-items: center; padding: 3.4cqw 0; border-bottom: .2cqw solid var(--line); }
.line img { width: 17cqw; height: 17cqw; object-fit: contain; filter: var(--food-shadow); }
.line-name { font-family: var(--display); font-size: 4.4cqw; line-height: 1; }
.line-mods { margin-top: 1cqw; font-size: 2.4cqw; line-height: 1.45; color: var(--fg-3); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2cqw; }
.line-price { font-size: 3cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.line.leaving { animation: leave .35s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-6cqw); } }

.upsell { margin-top: 7cqw; }
.upsell-title { padding: 0 7cqw; font-size: 3.5cqw; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2.8cqw; }
.upsell-row { display: flex; gap: 2.4cqw; overflow-x: auto; scrollbar-width: none; padding: 0 7cqw; scroll-padding: 0 7cqw; scroll-snap-type: x mandatory; }
.up {
  flex: none; width: 26cqw; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 2cqw; border-radius: var(--tile-r); background: var(--surface);
}
.up img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: var(--food-shadow); }
.up .tile-name { margin-top: .6cqw; }
.up .card-foot { padding-top: 1.2cqw; }
.up .add { width: 7.6cqw; height: 7.6cqw; }
.up .add svg { width: 3.6cqw; height: 3.6cqw; }
.up .price { font-size: 2.4cqw; }

.totals { display: flex; align-items: baseline; justify-content: space-between; margin: 6cqw 7cqw 0; padding-top: 4cqw; border-top: .2cqw solid var(--line-2); }
.totals span { font-size: 3cqw; color: var(--fg-2); }
.totals strong { font-size: 5.4cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4cqw; padding: 30cqw 7cqw 0; text-align: center; }
.empty p { font-family: var(--display); font-size: 7cqw; color: var(--fg-3); }

/* ============ 3. pay ============ */
.pay, .done { background: var(--bg); }
.pay .back { top: 5cqw; left: 5cqw; }
.pay-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8cqw; }
.pay.active .pay-in > :not(.big-title) { animation: rise .7s var(--ease) both .2s; }
.pay.active .big-title .mask > span { animation: up .9s var(--ease) both .2s; }
.pay.active .pay-in > *:nth-child(2) { animation-delay: .3s; }
.pay.active .pay-in > *:nth-child(3) { animation-delay: .38s; }
.pay.active .pay-in > *:nth-child(4) { animation-delay: .46s; }
.pay.active .pay-in > *:nth-child(5) { animation-delay: .54s; }
.big-title { font-family: var(--display); font-weight: 700; font-size: 11cqw; line-height: .92; text-transform: uppercase; color: var(--brand); text-wrap: balance; }
.sub { margin-top: 3cqw; font-size: 3.2cqw; color: var(--fg-2); }
.sub strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.methods { display: grid; gap: 3cqw; margin-top: 9cqw; }
.method {
  display: flex; align-items: center; gap: 5cqw; padding: 6cqw 6cqw; border-radius: var(--card-r);
  background: var(--surface); box-shadow: inset 0 0 0 .2cqw var(--line), 0 .2cqw 0 var(--line);
  transition: transform .15s ease;
}
.method:active { transform: scale(.98); }
.method > svg { flex: none; width: 13cqw; height: 13cqw; color: var(--action); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.method-text { flex: 1; display: flex; flex-direction: column; gap: 1cqw; }
.method-name { font-family: var(--display); font-weight: 700; font-size: 7cqw; line-height: 1; }
.method-sub { font-size: 2.8cqw; color: var(--fg-2); }
.method .chev { width: 5cqw; height: 5cqw; color: var(--fg-3); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* waiting for the terminal */
.wait { align-items: center; text-align: center; }
.wait-art { position: relative; width: 44cqw; height: 52cqw; margin-bottom: 6cqw; color: var(--action); }
.wait-art .card-glyph { position: absolute; left: 50%; top: 0; width: 34cqw; margin-left: -17cqw; animation: bob 2.4s var(--ease) infinite; }
.wait-art svg { width: 100%; height: auto; }
.wait-art .card-glyph svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wait-art .arrow { position: absolute; left: 50%; bottom: 0; width: 10cqw; margin-left: -5cqw; color: var(--brand); animation: point 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5cqw); } }
@keyframes point { 50% { transform: translateY(2cqw); opacity: .6; } }
.wait .big-title { font-size: 9cqw; }
.wait .btn { margin-top: 8cqw; }
.progress { width: 40cqw; height: .8cqw; margin-top: 6cqw; border-radius: 99cqw; background: var(--line); overflow: clip; }
.progress i { display: block; height: 100%; background: var(--action); transform-origin: left; animation: fill 4s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } }

/* ============ 4. done ============ */
.done-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 8cqw; }
.tick-big { width: 20cqw; height: 20cqw; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.tick-big svg { width: 10cqw; height: 10cqw; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done.active .done-in > :not(.big-title):not(.num) { animation: rise .7s var(--ease) both; }
.done.active .big-title .mask > span { animation: up .9s var(--ease) both .3s; }
.done.active .num .mask > span { animation: up 1.1s var(--ease) both .5s; }
.done.active .done-in > *:nth-child(2) { animation-delay: .08s; }
.done.active .done-in > *:nth-child(3) { animation-delay: .16s; }
.done.active .done-in > *:nth-child(4) { animation-delay: .24s; }
.done.active .done-in > *:nth-child(5) { animation-delay: .32s; }
.done.active .done-in > *:nth-child(6) { animation-delay: .4s; }
.done .big-title { margin-top: 6cqw; color: var(--fg); }
.num-label { margin-top: 9cqw; font-size: 3cqw; font-weight: 600; color: var(--fg-3); letter-spacing: .12em; text-transform: uppercase; }
.num { font-family: var(--display); font-weight: 700; font-size: 40cqw; line-height: .85; color: var(--brand); letter-spacing: -.02em; }
.done .sub { margin-top: 3cqw; max-width: 70cqw; line-height: 1.5; }
.done .btn { position: relative; overflow: clip; margin-top: 9cqw; min-width: 60cqw; }
.done .btn .drain { position: absolute; left: 0; right: 0; bottom: 0; height: .9cqw; background: rgba(255, 255, 255, .45); transform-origin: left; }
.done.active .btn .drain { animation: drain 20s linear forwards; }

/* ============ dialog (idle and start over) ============ */
.dialog-scrim {
  position: absolute; inset: 0; z-index: 30; background: var(--scrim);
  -webkit-backdrop-filter: blur(1.2cqw); backdrop-filter: blur(1.2cqw);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.dialog {
  position: absolute; left: 10cqw; right: 10cqw; top: 50%; z-index: 31;
  padding: 8cqw 7cqw 6cqw; border-radius: var(--sheet-r); text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(5cqw) saturate(170%); backdrop-filter: blur(5cqw) saturate(170%);
  box-shadow: inset 0 0 0 .25cqw var(--glass-edge), var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-46%) scale(.96);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.dialog.open, .dialog-scrim.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
.dialog.open { transform: translateY(-50%); }
.dialog h2 { font-family: var(--display); font-weight: 700; font-size: 9cqw; line-height: .95; text-transform: uppercase; color: var(--brand); }
.dialog p { margin-top: 2.4cqw; font-size: 3cqw; line-height: 1.5; color: var(--fg-2); }
.dialog p strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.dialog .acts { display: grid; gap: 2cqw; margin-top: 6cqw; }
.dialog .btn { width: 100%; height: 12cqw; }
.dialog.open h2 .mask > span { animation: up .8s var(--ease) both .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}
