/* Stamp: a café app concept by Final Touch. Pell & Rye's colours: warm paper, espresso ink,
   a butter-yellow card stock and stamp-pad violet. Young Serif for the café's voice, Figtree for the app.
   Nothing that GSAP animates has a CSS transition. */
:root {
  --paper: #f6f1e7;
  --surface: #fffcf6;
  --ink: #231b16;
  --ink-2: #5b5047;
  --muted: #8b7f74;
  --line: #e8dfd0;
  --line-2: #d9cdb9;
  --card: #f2cf74;
  --cream: #fbf5ea;
  --violet: #4636a6;
  --ink-stamp: #3b37b0;
  --tomato: #c8432c;
  --leaf: #2f6b4a;
  --chip: #efe6d5;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s: 1;
  --safe: calc(env(safe-area-inset-top, 0px) + 6px);
  --bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; }
svg { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; }

/* ---------------------------------------------------------------- the phone / the page */
.device { position: fixed; inset: 0; }
/* clip, not hidden: a hidden box can still be scrolled by focus or scripts, which would shift the whole app */
.app { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; overflow: clip; background: var(--paper); isolation: isolate; }
.sbar, .device__island, .pitch, .behind, .credit { display: none; }

@media (min-width: 561px) {
  html, body { height: auto; }
  body {
    min-height: 100vh;
    background:
      radial-gradient(900px 700px at 50% 40%, rgba(255, 252, 244, .9), rgba(255, 252, 244, 0) 70%),
      #ece3d3;
  }
  .stage {
    min-height: 100vh; display: grid; align-items: center; justify-content: center;
    grid-template-columns: minmax(0, 400px) auto; grid-template-areas: "pitch device" "behind device";
    column-gap: clamp(36px, 5vw, 80px); padding: 24px 40px;
  }
  .pitch { display: block; grid-area: pitch; align-self: end; }
  .behind { display: block; grid-area: behind; align-self: start; margin-top: 28px; }
  .device {
    grid-area: device; position: sticky; top: 24px; align-self: start; inset: auto; width: 414px; height: 868px; padding: 12px; border-radius: 64px;
    background: linear-gradient(160deg, #3a302a, #120e0c 45%, #2a221d);
    box-shadow: 0 0 0 1.5px #5a4c41, inset 0 0 0 1px rgba(255,255,255,.08), 0 60px 100px -40px rgba(60, 38, 16, .55), 0 24px 40px -24px rgba(60, 38, 16, .45);
    transform: scale(var(--s)); transform-origin: center;
    margin: calc((var(--s) - 1) * 434px) calc((var(--s) - 1) * 207px);
  }
  .app { width: 390px; height: 844px; border-radius: 52px; --safe: 52px; --bottom: 20px; }
  .app::after { content: ""; position: absolute; z-index: 60; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); opacity: .85; pointer-events: none; }
  [data-bar="light"] .app::after { background: #fff; }
  .sbar {
    display: flex; position: absolute; z-index: 50; left: 12px; right: 12px; top: 12px; height: 52px; align-items: center; justify-content: space-between;
    padding: 6px 34px 0 50px; color: var(--ink); font: 600 16.5px/1 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; pointer-events: none;
  }
  [data-bar="light"] .sbar { color: #fff; }
  .device__island { display: block; position: absolute; z-index: 51; top: 23px; left: 50%; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
  .credit {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 100; left: 18px; bottom: 18px; padding: 10px 14px; border-radius: 12px;
    background: var(--ink); color: var(--cream); font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(35,27,22,.6);
  }
  .credit__mark { color: var(--card); }
}
@media (min-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 390px) auto minmax(0, 380px); grid-template-areas: "pitch device behind"; }
  .pitch, .behind { align-self: center; margin: 0; }
  .device { position: relative; top: auto; align-self: center; }
}

/* ---------------------------------------------------------------- desktop words */
.pitch__by { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pitch__by a { color: var(--ink); }
.pitch__title { margin: 14px 0 18px; font: 400 clamp(38px, 3.6vw, 52px)/1.03 var(--serif); letter-spacing: -0.015em; }
.pitch__lede { margin: 0 0 20px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pitch__try { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; font-size: 16px; color: var(--violet); }
.pitch__list { list-style: none; padding: 0; margin: 0; }
.pitch__list li { padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.pitch__list b { display: block; color: var(--ink); font-size: 16px; }
.pitch__fit { margin: 20px 0 0; font-size: 15.5px; font-weight: 600; }
.pitch__fit span { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: var(--tomato); }
.behind__label { margin: 0; font: 400 26px/1.1 var(--serif); }
.behind__sub { margin: 6px 0 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------------------------------------------------------------- screens */
.screens { position: absolute; inset: 0; overflow: clip; }
.screen { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; background: var(--paper); overflow: hidden; overflow: clip; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.has-tabs .scroll { padding-bottom: 70px; }

.logo { width: 38px; height: 38px; flex: none; color: var(--ink); }
.logo__rye { color: var(--cream); }

.round { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.round svg { width: 20px; height: 20px; }
.round--glass { background: rgba(255,255,255,.2); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.round--line { width: 34px; height: 34px; background: transparent; border: 1.5px solid var(--line-2); box-shadow: none; }
.round--line svg { width: 16px; height: 16px; }
.round--dark { background: rgba(255,255,255,.08); color: var(--cream); box-shadow: none; }

.btn { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 16px; padding: 0 18px; height: 54px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:active { filter: brightness(.94); }
.btn--block { width: 100%; justify-content: center; }
.btn--dark { background: var(--ink); color: var(--cream); justify-content: center; }
.btn--grow { flex: 1; }
.btn--cream { background: var(--cream); color: var(--ink); height: 56px; font-weight: 700; }
.link { padding: 0; border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; font: inherit; }

.sec { margin: 26px 20px 12px; font: 400 20px/1.15 var(--serif); }
.sec small { margin-left: 8px; font: 500 13px var(--sans); color: var(--muted); }
.foot { padding: 22px 20px 30px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.foot p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- home */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe) + 8px) 20px 4px; }
.top__brand { display: flex; align-items: center; gap: 10px; }
.top__brand b { display: block; font: 400 18px/1.1 var(--serif); }
.top__brand span { font-size: 13px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e7dcc7; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.greet { margin: 18px 20px 16px; font: 400 33px/1.05 var(--serif); letter-spacing: -0.01em; }
.card-host { padding: 0 20px; }
.btn--scan { width: calc(100% - 40px); margin: 16px 20px 0; height: 72px; padding: 0 14px; background: var(--ink); color: var(--cream); text-align: left; }
.btn__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(251,245,234,.1); color: var(--card); }
.btn__icon svg { width: 24px; height: 24px; }
.btn__txt b { display: block; font-size: 16.5px; }
.btn__txt small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; opacity: .68; }
.btn__chev { margin-left: auto; opacity: .55; }
.btn__chev svg { width: 20px; height: 20px; }
.btn--quiet { width: calc(100% - 40px); margin: 10px 20px 0; height: 50px; justify-content: center; background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.specials { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 2px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.specials::-webkit-scrollbar { display: none; }
.special { flex: 0 0 150px; scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; }
.special img { width: 150px; height: 112px; object-fit: cover; border-radius: 14px; }
.special b { display: block; margin-top: 8px; font-size: 14.5px; }
.special span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.freebie { display: flex; align-items: center; gap: 12px; width: calc(100% - 40px); margin: -4px 20px 14px; padding: 11px 14px; border: 0; border-radius: 16px; background: var(--violet); color: #fff; text-align: left; }
.freebie > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); }
.freebie svg { width: 20px; height: 20px; }
.freebie b { font-size: 15px; }
.freebie em { margin-left: auto; font-style: normal; font-size: 13px; opacity: .8; }
.freebie--line { width: 100%; margin: 14px 0 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.freebie--line > span { background: var(--chip); }

/* ---------------------------------------------------------------- the stamp card */
.scard { position: relative; transform-style: preserve-3d; }
.scard__face { border-radius: 20px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.scard__front {
  position: relative; padding: 16px 14px 14px; color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38  0 0 0 0 .25  0 0 0 0 .06  0 0 0 .26 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(158deg, #f7da8d, #f0cb68 55%, #ebc25b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(120,80,10,.12), 0 20px 34px -20px rgba(70,45,10,.55), 0 2px 5px rgba(70,45,10,.14);
}
.scard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 4px; }
.scard__brand { display: flex; align-items: center; gap: 10px; }
.scard__brand .logo { width: 34px; height: 34px; }
.scard__brand b { display: block; font: 400 17px/1.15 var(--serif); }
.scard__brand span { font-size: 12.5px; color: rgba(35,27,22,.66); }
.scard__count { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: rgba(35,27,22,.7); white-space: nowrap; }
.scard__count b { display: inline-block; min-width: .7em; font-size: 22px; font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.scard__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; justify-items: center; margin: 14px 0 12px; }
.slot { position: relative; width: min(56px, 14.2vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(70,45,10,.26); }
.slot__print { font-size: 13px; font-weight: 700; color: rgba(70,45,10,.42); line-height: 1; }
.slot--free { border: 1.5px dashed rgba(200,67,44,.55); }
.slot--free .slot__print { display: flex; flex-direction: column; align-items: center; gap: 1px; color: rgba(200,67,44,.85); }
.slot--free .slot__print svg { width: 20px; height: 20px; }
.slot--free small { font-size: 10.5px; font-weight: 700; }
.slot.is-inked .slot__print { opacity: .28; }
.imp { position: absolute; left: -7%; top: -7%; width: 114%; height: 114%; color: var(--ink-stamp); opacity: .9; pointer-events: none; overflow: visible; }
.imp--free { color: var(--tomato); }
.scard__note { margin: 0; padding: 0 4px; font-size: 13.5px; font-weight: 500; color: rgba(35,27,22,.78); }
.scard__back {
  position: absolute; inset: 0; transform: rotateY(180deg); padding: 18px 20px; color: var(--cream); overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .05  0 0 0 0 0  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(140% 120% at 0% 0%, #d65439, #b93a24 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 30px 50px -18px rgba(0,0,0,.7), 0 4px 10px rgba(0,0,0,.25);
}
.scard__backtop { display: flex; align-items: center; gap: 8px; font: 400 15px var(--serif); color: var(--cream); }
.scard__backtop .logo { width: 26px; height: 26px; color: var(--cream); }
.scard__backtop .logo__rye { color: #c3442c; }
.scard__big { margin: 14px 0 8px; font: 400 33px/1.02 var(--serif); letter-spacing: -0.01em; }
.scard__fine { margin: 0; max-width: 270px; font-size: 13px; line-height: 1.45; opacity: .85; }
.scard__stub { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 11px 20px 12px; border-top: 1.5px dashed rgba(251,245,234,.4); font-size: 12.5px; font-weight: 700; color: #ffe3a3; }

/* ---------------------------------------------------------------- scan */
.screen--scan { background: #0d0a08; }
.cam { position: absolute; inset: -5% -5% -30%; }
.cam__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: brightness(.86) saturate(.95) contrast(1.04) blur(.5px); }
.tent { position: absolute; left: 50%; top: 33%; width: 148px; margin-left: -74px; perspective: 700px; }
.tent__card {
  position: relative; z-index: 1; padding: 11px 12px 10px; border-radius: 9px; background: #fbf7ef; text-align: center; color: var(--ink);
  transform: rotateX(9deg) rotateZ(-2.5deg);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.2), 18px 26px 22px -14px rgba(25,12,0,.55);
}
.tent__name { display: block; font: 400 12.5px/1 var(--serif); }
.tent .qr { width: 100%; margin: 8px 0 6px; }
.tent b { display: block; font: 400 18px/1.1 var(--serif); }
.tent__how { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.tent__shadow { position: absolute; left: 4%; right: -10%; bottom: -16px; height: 26px; background: radial-gradient(closest-side, rgba(20,10,0,.5), transparent); filter: blur(3px); }
.cam__shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.6)); pointer-events: none; }
.cam__top { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 16px; padding: calc(var(--safe) + 8px) 16px 60px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); color: #fff; }
.cam__top p { margin: 0; text-align: center; font-size: 15.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.finder { position: absolute; pointer-events: none; }
.finder i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.finder i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.finder i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.finder.is-locked i { border-color: var(--card); width: 26px; height: 26px; }
.found { position: absolute; left: 12px; right: 12px; bottom: calc(14px + var(--bottom)); padding: 18px 18px 16px; border-radius: 26px; background: var(--surface); box-shadow: 0 -10px 40px -10px rgba(0,0,0,.4); }
.found__row { display: flex; align-items: center; gap: 12px; }
.found__tick { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #fff; }
.found__tick svg { width: 22px; height: 22px; }
.found__row b { display: block; font: 400 19px/1.15 var(--serif); }
.found__row span { font-size: 13px; color: var(--muted); }
.found p { margin: 12px 0 14px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

/* ---------------------------------------------------------------- menu */
.mhead { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: calc(var(--safe) + 8px) 16px 10px; background: var(--paper); }
.mhead__txt { min-width: 0; }
.mhead__txt b { display: block; font: 400 23px/1.12 var(--serif); }
.mhead__txt span { display: block; font-size: 13px; color: var(--muted); }
.mhead--flat { padding: calc(var(--safe) + 10px) 20px 16px; }
.cats { position: sticky; top: 0; z-index: 2; display: flex; gap: 22px; height: 44px; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cat { position: relative; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cat.is-on { color: var(--ink); }
.cats__bar { position: absolute; left: 0; bottom: -1px; width: 0; height: 2.5px; border-radius: 2px; background: var(--ink); }
.msec { padding: 0 20px; }
.msec .sec { margin: 22px 0 4px; }
.item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item__open { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 0; border: 0; background: none; text-align: left; }
.item__open img { width: 76px; height: 76px; flex: none; object-fit: cover; border-radius: 14px; }
.item__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item__txt b { font-size: 16px; }
.item__txt span { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__txt em { margin-top: 3px; font-style: normal; font-size: 14.5px; font-weight: 600; }
.item__add { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); }
.item__add svg { width: 18px; height: 18px; }
.item__add.has-q { background: var(--ink); color: var(--cream); font-weight: 800; font-size: 15px; }
.menu-scroll { padding-bottom: 100px; }
.foot--menu { padding: 18px 20px 30px; }
.cartbar {
  position: absolute; z-index: 4; left: 12px; right: 12px; bottom: calc(14px + var(--bottom)); height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px 0 11px; border: 0; border-radius: 18px; background: var(--ink); color: var(--cream); font-size: 16px; font-weight: 600;
  box-shadow: 0 16px 30px -12px rgba(35,27,22,.65); visibility: hidden;
}
.has-tabs .cartbar { bottom: calc(80px + var(--bottom)); }
.cartbar__n { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--ink); font-weight: 800; }
.cartbar__sum { margin-left: auto; }

/* ---------------------------------------------------------------- item sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; }
.sheet-wrap[hidden] { display: none; }
.sheet-dim { position: absolute; inset: 0; background: rgba(20,14,10,.45); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; border-radius: 26px 26px 0 0; background: var(--surface); padding-bottom: var(--bottom); scrollbar-width: none; }
.sheet__grab { position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255,255,255,.75); }
.sheet__img { width: 100%; height: 220px; object-fit: cover; }
.sheet__x { position: absolute; top: 14px; right: 14px; }
.sheet__body { padding: 18px 20px 20px; }
.sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet__head h3 { margin: 0; font: 400 26px/1.1 var(--serif); }
.sheet__head span { font-size: 17px; font-weight: 600; }
.sheet__desc { margin: 6px 0 2px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.opt p { margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.seg { display: flex; gap: 8px; }
.seg__b { flex: 1; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 4px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.seg__b b { font-size: 15px; font-weight: 600; }
.seg__b small { font-size: 12px; color: var(--muted); }
.seg__b.is-on { border-color: var(--ink); background: #fbefd0; box-shadow: inset 0 0 0 1px var(--ink); }
.sheet__foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty b { min-width: 18px; text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm { gap: 6px; }
.qty--sm .round--line { width: 30px; height: 30px; }
.qty--sm b { font-size: 15px; min-width: 14px; }

/* ---------------------------------------------------------------- order */
.order-scroll { padding: 0 20px 120px; }
.lines { list-style: none; padding: 0; margin: 4px 0 0; }
.line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line img, .line__ph { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; }
.line__ph { display: grid; place-items: center; background: var(--chip); color: var(--muted); }
.line__ph svg { width: 24px; height: 24px; }
.line__txt { flex: 1; min-width: 0; }
.line__txt b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line__txt span { display: block; font-size: 12.5px; color: var(--muted); }
.line em { min-width: 56px; text-align: right; font-style: normal; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.addmore { display: flex; align-items: center; gap: 6px; padding: 12px 0; border: 0; background: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.addmore svg { width: 16px; height: 16px; }
.earn { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 14px 16px; border-radius: 18px; background: #f8e6b4; }
.earn__dots { display: grid; grid-template-columns: repeat(5, 11px); gap: 5px; flex: none; }
.earn__dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(70,45,10,.3); }
.earn__dots i.is-had { background: var(--violet); border-color: var(--violet); }
.earn__dots i.is-new { background: var(--tomato); border-color: var(--tomato); }
.earn p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.earn b { color: var(--ink); }
.note { display: block; margin-top: 18px; }
.note span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.note input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.note input::placeholder { color: #ab9f92; }
.tipbox p { margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.seg--tip .seg__b { min-height: 44px; }
.sums { margin: 20px 0 0; }
.sums div { display: flex; justify-content: space-between; padding: 4px 0; }
.sums dt { font-size: 14.5px; color: var(--ink-2); }
.sums dd { margin: 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sums .sums__total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sums__total dt, .sums__total dd { font-size: 17px; font-weight: 700; color: var(--ink); }
.payrow { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.payrow > span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--chip); }
.payrow > span svg { width: 22px; height: 22px; }
.payrow b { display: block; font-size: 15px; }
.payrow small { font-size: 12.5px; color: var(--muted); }
.payrow em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 600; color: var(--violet); }
.paybar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 22px 16px calc(14px + var(--bottom)); background: linear-gradient(rgba(246,241,231,0), var(--paper) 34%); }
.btn--pay { position: relative; height: 58px; background: var(--ink); color: var(--cream); font-size: 17px; font-weight: 700; overflow: hidden; }
.btn--pay.is-paid { background: var(--leaf); }
.pay__spin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid rgba(251,245,234,.25); border-top-color: var(--cream); visibility: hidden; opacity: 0; }
.pay__done { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; color: #fff; visibility: hidden; opacity: 0; }
.pay__done svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- the stamp moment */
.screen--stamp { background: radial-gradient(120% 75% at 50% 48%, #3a2d23, #1b1410 72%); color: var(--cream); }
.stamp-screen { display: flex; flex-direction: column; height: 100%; padding: calc(var(--safe) + 14px) 20px calc(18px + var(--bottom)); }
.paid { display: flex; align-items: center; gap: 12px; }
.paid__tick { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #fff; }
.paid__tick svg { width: 20px; height: 20px; }
.paid b { display: block; font-size: 16px; }
.paid span { font-size: 13.5px; opacity: .65; }
.stamp-head { margin: 26px 0 0; overflow: hidden; font: 400 31px/1.1 var(--serif); letter-spacing: -0.01em; min-height: 2.25em; }
.stamp-head__in { display: block; }
.stamp-stage { position: relative; margin: auto -6px; }
.card-host--big { padding: 0; transform: rotate(-1.5deg); }
.card-host--big .scard__front { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(120,80,10,.12), 0 30px 50px -18px rgba(0,0,0,.7), 0 4px 10px rgba(0,0,0,.25); }
.tool { position: absolute; z-index: 6; left: 0; top: 0; overflow: visible; pointer-events: none; visibility: hidden; filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)); }
.tool-shadow { position: absolute; z-index: 5; left: 0; top: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(25,12,4,.6), rgba(25,12,4,0)); pointer-events: none; visibility: hidden; }
.thud { position: absolute; z-index: 4; left: 0; top: 0; border-radius: 50%; border: 2px solid rgba(70,54,166,.7); pointer-events: none; }
.thud--free { border-color: rgba(200,67,44,.8); }
.stamp-sub { margin: 0 0 22px; text-align: center; font-size: 14.5px; opacity: .7; }
.stamp-actions { min-height: 56px; }

/* ---------------------------------------------------------------- status */
.status-scroll { padding: 0 20px 30px; }
.hero { position: relative; margin: 4px 0 0; height: 214px; border-radius: 22px; overflow: hidden; background: #2a201a; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); }
.hero__cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; margin: 0; color: #fff; font: 400 22px/1.15 var(--serif); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.step { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; }
.step + .step::before { content: ""; position: absolute; left: 14px; top: -10px; width: 2px; height: 20px; background: var(--line-2); }
.step.is-done + .step.is-done::before { background: var(--leaf); }
.step i { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); color: transparent; }
.step i svg { width: 16px; height: 16px; }
.step.is-done i { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.step b { font-size: 15.5px; font-weight: 600; color: var(--muted); }
.step.is-done b { color: var(--ink); }
.step.is-now b { font-weight: 800; }
.step__t { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.recap { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.recap ul { list-style: none; padding: 0; margin: 0; }
.recap li { padding: 3px 0; font-size: 14.5px; }
.recap li span { font-size: 13px; color: var(--muted); }
.recap__note { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.empty { padding: 120px 20px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- card tab */
.voucher { display: flex; gap: 12px; margin: 0 20px 14px; padding: 16px; border-radius: 18px; background: var(--ink); color: var(--cream); }
.voucher b { display: block; margin-bottom: 4px; font: 400 20px/1.1 var(--serif); color: var(--card); }
.voucher span { font-size: 13.5px; line-height: 1.4; opacity: .8; }
.voucher .voucher__no { flex: none; font-size: 12px; opacity: .55; }
.plain { margin: 0 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hist { list-style: none; padding: 0 20px 20px; margin: 4px 0 0; }
.hist li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hist span { width: 56px; flex: none; color: var(--muted); font-size: 14px; }
.hist b { flex: 1; font-weight: 600; }
.hist i { font-style: normal; font-weight: 700; font-size: 14px; color: var(--violet); }

/* ---------------------------------------------------------------- the café's side */
.screen--counter { background: #17120f; color: var(--cream); }
.mhead--dark { background: transparent; }
.mhead--dark .mhead__txt span { color: rgba(251,245,234,.6); }
.counter-scroll { padding: 4px 16px 30px; }
.counter { color: var(--cream); }
.counter--panel { height: min(620px, calc(100vh - 230px)); min-height: 420px; overflow-y: auto; padding: 18px; border-radius: 28px; background: #1b1511; box-shadow: 0 40px 70px -34px rgba(40,25,10,.7); scrollbar-width: none; }
.counter__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.counter .logo { width: 34px; height: 34px; color: var(--card); }
.counter .logo__rye { color: #1b1511; }
.counter__top b { display: block; font-size: 15.5px; }
.counter__top span { font-size: 13px; color: rgba(251,245,234,.6); }
.tickets { display: flex; flex-direction: column; gap: 12px; }
.ticket { padding: 14px 16px; border-radius: 18px; background: #2a211b; border: 1px solid rgba(255,255,255,.06); }
.ticket.is-mine { border-color: rgba(242,207,116,.5); }
.ticket header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket header b { font: 400 20px/1.1 var(--serif); }
.ticket__st { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.08); }
.is-new .ticket__st { background: var(--card); color: var(--ink); }
.is-making .ticket__st { background: #5547b8; color: #fff; }
.is-onway .ticket__st, .is-ready .ticket__st { background: var(--leaf); color: #fff; }
.ticket__who { margin: 4px 0 10px; font-size: 13px; color: rgba(251,245,234,.6); }
.ticket ul { list-style: none; padding: 0; margin: 0; }
.ticket li { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-size: 15px; }
.ticket li b { min-width: 14px; color: var(--card); }
.ticket li span { font-size: 13.5px; color: rgba(251,245,234,.6); }
.ticket__note { margin: 8px 0 0; font-size: 13.5px; color: #f3dc9e; }
.ticket__card { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.16); font-size: 13px; color: rgba(251,245,234,.72); }
.is-mine .ticket__card { color: var(--card); }
.ticket__go { width: 100%; height: 44px; margin-top: 12px; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: 14.5px; font-weight: 700; }
.counter__empty { padding: 30px 0; text-align: center; color: rgba(251,245,234,.6); }

/* ---------------------------------------------------------------- chrome */
.tabbar {
  position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(64px + var(--bottom)); padding-bottom: var(--bottom);
  display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(246,241,231,.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tab svg { width: 24px; height: 24px; }
.tab.is-on { color: var(--ink); }
.toast { position: absolute; z-index: 30; left: 0; right: 0; top: calc(var(--safe) + 10px); width: max-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; visibility: hidden; opacity: 0; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.fx { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.fly { position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--surface); color: var(--ink); box-shadow: 0 8px 18px -6px rgba(0,0,0,.4); }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.fly svg { width: 60%; height: 60%; }
