/* Tiffin Lane: Durban food-poster app.
   Direction: kinetic brutalism softened by sticker shapes. Turmeric, chilli, curry-leaf green on paper. */

:root {
  color-scheme: light;
  --bg: #FBF1DA;
  --surface: #FFF9EA;
  --surface-2: #F4E3BB;
  --text: #1E1A12;
  --text-2: #5B4E36;
  --line: #1E1A12;
  --shadow-c: #1E1A12;
  --turmeric: #F4B41A;
  --on-turmeric: #1E1A12;
  --chilli: #C42A18;
  --on-chilli: #FFF7E6;
  --leaf: #1F5A3A;
  --on-leaf: #FBF1DA;
  --hot-text: #C42A18;
  --green-text: #1F5A3A;
  --stamp: #1F5A3A;
  --ink: #1E1A12;
  --paper: #FBF1DA;
  --grain: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .30 0 0 0 0 .20 0 0 0 0 .06 .26 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --g-bg: #17432B;
  --g-text: #FBF1DA;
  --g-text-2: #D4E3D0;
  --g-line: #FBF1DA;

  --f-display: "Bricolage Grotesque", "Arial Narrow", Impact, sans-serif;
  --f-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --bw: 2px;
  --ribbon-h: calc(26px + env(safe-area-inset-top, 0px));
  --appbar-h: 56px;
  --tab-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17140E;
    --surface: #221D13;
    --surface-2: #2E2718;
    --text: #F8EBCF;
    --text-2: #D0C19E;
    --line: #E6D5AC;
    --shadow-c: #050403;
    --hot-text: #FF7A66;
    --green-text: #6FD09B;
    --stamp: #6FD09B;
    --paper: #F8EBCF;
    --grain: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 .12 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
    --g-bg: #0F3320;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17140E;
  --surface: #221D13;
  --surface-2: #2E2718;
  --text: #F8EBCF;
  --text-2: #D0C19E;
  --line: #E6D5AC;
  --shadow-c: #050403;
  --hot-text: #FF7A66;
  --green-text: #6FD09B;
  --stamp: #6FD09B;
  --paper: #F8EBCF;
  --grain: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 .12 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --g-bg: #0F3320;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--ribbon-h) + var(--appbar-h) + 64px); }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 1rem/1.5 var(--f-text);
  color: var(--text);
  background: var(--bg) var(--grain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--hot-text); outline-offset: 3px; border-radius: 6px; }
.guide :focus-visible, .appbar :focus-visible, .tabbar :focus-visible, .btn--ink:focus-visible { outline-color: var(--turmeric); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.display {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .92;
  color: var(--text);
}
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--turmeric); color: var(--on-turmeric); padding: 12px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: calc(var(--ribbon-h) + 8px); }

/* ---------- demo pill / ribbon ---------- */
.demo-pill {
  position: fixed; z-index: 90; top: 0; left: 0; right: 0;
  height: var(--ribbon-h);
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--chilli); color: var(--on-chilli);
  font: 700 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.netpill { display: inline-flex; align-items: center; gap: 6px; }
.netpill i { width: 8px; height: 8px; border-radius: 50%; background: #BFF3CF; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.netpill b { font-weight: 700; }
.netpill.is-off i { background: var(--turmeric); }

/* ---------- stage / phone ---------- */
.stage { display: block; }
.phone {
  position: relative;
  max-width: 100%;
  min-height: 100dvh;
  padding-top: var(--ribbon-h);
}
.appbar {
  position: sticky; top: var(--ribbon-h); z-index: 60;
  height: var(--appbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px 0 14px;
  background: #1E1A12; color: #FBF1DA;
  border-bottom: var(--bw) solid #000;
}
:root[data-theme="dark"] .appbar, :root:not([data-theme="light"]) .appbar { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appbar { background: #0E0B06; border-bottom-color: #3A3222; } }
:root[data-theme="dark"] .appbar { background: #0E0B06; border-bottom-color: #3A3222; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; }
.brand__t { font-size: 1.625rem; color: var(--turmeric); line-height: 1; padding-top: 2px; }
.appbar__tools { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: transparent; border: var(--bw) solid var(--line); border-radius: 50%;
  color: var(--text);
}
.iconbtn--dark { color: #FBF1DA; border-color: rgba(251, 241, 218, .5); }
.iconbtn:active { transform: scale(.94); }
.theme-toggle .ic--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic--moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ic--sun { display: block; }
}
.guidebtn {
  min-height: 44px; padding: 0 14px;
  background: var(--turmeric); color: var(--on-turmeric);
  border: var(--bw) solid #000; border-radius: 999px;
  font: 700 .875rem/1 var(--f-text);
}
.guidebtn:active { transform: scale(.96); }

.screen { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px); }
main { display: block; outline: none; }
main > * + * { }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  background: #1E1A12; border-top: var(--bw) solid #000; color: #FBF1DA;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar { background: #0E0B06; border-top-color: #3A3222; } }
:root[data-theme="dark"] .tabbar { background: #0E0B06; border-top-color: #3A3222; }
.tab {
  min-width: 0; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; border-radius: 14px;
  font: 700 .75rem/1 var(--f-text); color: #E9DDBF;
}
.tab__ic { position: relative; display: block; }
.tab:active { transform: scale(.95); }
.tab[aria-current="page"] { background: var(--turmeric); color: var(--on-turmeric); }
.tab__badge {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--chilli); color: var(--on-chilli); border: 2px solid #1E1A12;
  font: 700 .6875rem/1 var(--f-mono);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: var(--bw) solid var(--ink); border-radius: var(--r-m);
  font: 700 1rem/1.1 var(--f-text); text-decoration: none; text-align: center;
  background: var(--surface); color: var(--text);
  box-shadow: 3px 3px 0 var(--shadow-c);
  transition: transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .btn { border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { border-color: var(--line); } }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow-c); }
.btn .ic { width: 20px; height: 20px; }
.btn--primary { background: var(--turmeric); color: var(--on-turmeric); border-color: var(--ink); }
.btn--hot { background: var(--chilli); color: var(--on-chilli); border-color: var(--ink); }
.btn--ink { background: #1E1A12; color: #FBF1DA; border-color: #1E1A12; box-shadow: 3px 3px 0 #FBF1DA; }
.btn--paper { background: var(--surface); color: var(--text); }
.btn--turmeric { background: var(--turmeric); color: var(--on-turmeric); border-color: #000; box-shadow: 3px 3px 0 #000; }
.btn--line-dark { background: transparent; color: var(--g-text); border-color: var(--g-line); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; border-radius: 14px; }
.btn--lg { min-height: 56px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 12px 4px; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--hot-text); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; flex: none;
  border: var(--bw) solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font: 700 .9375rem/1 var(--f-text); text-decoration: none;
}
.chip[aria-current="true"] { background: var(--turmeric); color: var(--on-turmeric); border-color: var(--ink); }
.chip--r { position: relative; cursor: pointer; }
.chip--r input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip--r:has(input:checked) { background: var(--leaf); color: var(--on-leaf); border-color: var(--leaf); }
.chip--r:has(input:focus-visible) { outline: 3px solid var(--hot-text); outline-offset: 3px; }

/* ---------- type bits ---------- */
.eyebrow { display: flex; align-items: center; gap: 6px; font: 700 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.eyebrow .ic { width: 16px; height: 16px; }
.eyebrow--on-dark { color: var(--g-text-2); }
.fine { font-size: .875rem; color: var(--text-2); line-height: 1.45; }
.hint { font-size: .875rem; color: var(--text-2); margin-top: 6px; }
.err { font-size: .875rem; font-weight: 700; color: var(--hot-text); margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.empty { padding: 32px 16px; text-align: center; color: var(--text-2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 22px 16px 28px;
  background: var(--turmeric) var(--grain);
  color: var(--on-turmeric);
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden;
}
.hero .eyebrow { color: #3A2E0C; }
.hero__h {
  margin-top: 12px;
  font-size: clamp(4.5rem, 24vw, 7rem);
  line-height: .84;
  color: var(--ink);
  letter-spacing: -.012em;
}
.hero__h em { font-style: normal; color: var(--chilli); }
@media (min-width: 1024px) { .hero__h { font-size: 6.75rem; } }
.hero__lede { margin-top: 16px; max-width: 30ch; font-size: 1.125rem; line-height: 1.4; color: var(--ink); font-weight: 500; }
.hero__cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { padding: 0 16px; }
.hero .btn--paper { background: #FBF1DA; color: #1E1A12; border-color: #1E1A12; box-shadow: 3px 3px 0 #1E1A12; }
.hero__photo { position: relative; margin: 28px 0 0; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: var(--bw) solid var(--ink); border-radius: var(--r-l);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1.4deg);
}
.photo-tag {
  position: absolute; left: -4px; bottom: 14px;
  padding: 8px 12px; background: var(--paper); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 10px;
  font: 700 .875rem/1 var(--f-text);
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.burst {
  position: absolute; top: -26px; right: -6px; z-index: 2;
  width: 112px; height: 112px;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--chilli); color: var(--on-chilli);
  clip-path: polygon(50.0% 0.0%,61.1% 8.5%,75.0% 6.7%,80.4% 19.6%,93.3% 25.0%,91.5% 38.9%,100.0% 50.0%,91.5% 61.1%,93.3% 75.0%,80.4% 80.4%,75.0% 93.3%,61.1% 91.5%,50.0% 100.0%,38.9% 91.5%,25.0% 93.3%,19.6% 80.4%,6.7% 75.0%,8.5% 61.1%,0.0% 50.0%,8.5% 38.9%,6.7% 25.0%,19.6% 19.6%,25.0% 6.7%,38.9% 8.5%);
  transform: rotate(10deg);
}
.burst__a { font: 800 1.125rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; }
.burst__b { font: 700 .6875rem/1.1 var(--f-mono); letter-spacing: .02em; padding: 0 12px; }
.burst.is-closed { background: var(--ink); color: var(--turmeric); }

.marquee { overflow: hidden; background: var(--ink); color: var(--turmeric); border-bottom: var(--bw) solid #000; padding: 10px 0; }
.marquee__track { display: flex; align-items: center; gap: 20px; width: max-content; animation: mq 34s linear infinite; }
.marquee__track span { font: 800 1.375rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; white-space: nowrap; }
.mq-star { width: 16px; height: 16px; fill: var(--chilli); stroke: none; flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

.installstrip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--leaf); color: var(--on-leaf); border-bottom: var(--bw) solid #000; }
.installstrip[hidden] { display: none; }
.installstrip p { font-size: .9375rem; line-height: 1.3; }

/* ---------- sections, cards ---------- */
.sect { padding: 28px 16px 0; }
.sect--t0 { padding-top: 4px; }
.sect__head { margin-bottom: 14px; }
.sect__head h2, .sect__h2 { font-size: 2.5rem; }
.sect__head p { margin-top: 6px; color: var(--text-2); }
.sect__h2 { margin-bottom: 12px; }
.card {
  position: relative; display: block;
  padding: 18px 16px 16px;
  background: var(--surface); color: var(--text);
  border: var(--bw) solid var(--line); border-radius: var(--r-l);
  box-shadow: 4px 4px 0 var(--shadow-c);
  text-decoration: none;
}
.card > * + * { margin-top: 12px; }
.card__h { font: 800 1.625rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; color: var(--text); letter-spacing: -.005em; }
.card__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: var(--bw) solid var(--ink); }
.card__ic--hot { background: var(--chilli); color: var(--on-chilli); }
.alerts .btn { align-self: flex-start; }
.alerts [data-alerts-btn][data-state="on"] { background: var(--leaf); color: var(--on-leaf); }

.board { border: var(--bw) solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: 4px 4px 0 var(--shadow-c); overflow: hidden; }
.special { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "a b p" "a b x"; gap: 4px 12px; align-items: start; padding: 14px; }
.special + .special { border-top: var(--bw) dashed var(--line); }
.special__art { grid-area: a; }
.special__b { grid-area: b; min-width: 0; }
.special__n { font: 700 1.0625rem/1.15 var(--f-text); color: var(--text); }
.special__b p { font-size: .875rem; color: var(--text-2); margin: 2px 0 6px; line-height: 1.35; }
.special__p { grid-area: p; text-align: right; display: grid; justify-items: end; }
.special__p s { font: 500 .875rem/1.2 var(--f-mono); color: var(--text-2); }
.special__p b { font: 700 1.375rem/1.1 var(--f-mono); color: var(--hot-text); }
.special .btn { grid-area: x; justify-self: end; }
.friday { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; }
.friday__b { background: var(--chilli); color: var(--on-chilli); padding: 4px 10px; border-radius: 999px; font: 700 .75rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-2deg); }

.art { width: 100%; height: 100%; }
[class*="art--"] { display: block; border: var(--bw) solid var(--ink); border-radius: 18px; padding: 6px; transform: rotate(-3deg); }
.art--bunny { background: var(--turmeric); }
.art--tub { background: #F6D6A0; }
.art--roll { background: #9ED4B0; }
.art--samoosa { background: #F2A99B; }
.art--falooda { background: #F7C4D6; }
.special__art, .item__art { width: 64px; height: 64px; }
.special__art.art--bunny, .item__art.art--bunny { }

.heat { display: inline-flex; align-items: center; gap: 2px; }
.chilli { width: 20px; height: 20px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linejoin: round; transform: rotate(-12deg); }
.chilli.is-on { fill: var(--chilli); stroke: var(--ink); }
:root[data-theme="dark"] .chilli.is-on { fill: #FF5A44; stroke: #FFD9CF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chilli.is-on { fill: #FF5A44; stroke: #FFD9CF; } }
.heat--cool { font: 700 .75rem/1 var(--f-mono); letter-spacing: .04em; color: var(--green-text); text-transform: uppercase; }

.rolist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rolist li:last-child { border-bottom: 0; }
.rolist b { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.reorder .btn { margin-top: 16px; }

.peek { transition: transform .12s var(--ease); }
.peek:active { transform: translate(3px, 3px); }
.peek__t { font-size: 1rem; }
.peek__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hot-text); }
.peek__go .ic { width: 18px; height: 18px; }

.info__l > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.info__l > div:last-child { border-bottom: 0; }
.info__l dt { font: 700 .75rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.info__l a { font-weight: 700; text-underline-offset: 3px; }

/* ---------- stamps ---------- */
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border: var(--bw) dashed var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
.slot__n { font-size: 1.25rem; font-weight: 700; color: var(--text-2); opacity: .7; }
.slot__free { position: absolute; font: 800 .9375rem/.95 var(--f-display); font-stretch: 75%; text-transform: uppercase; text-align: center; color: var(--hot-text); letter-spacing: .01em; }
.slot--free { border-style: solid; border-color: var(--chilli); }
.slot--free .slot__n { display: none; }
.slot.is-on { border-style: solid; background: var(--surface); }
.slot.is-on .slot__n, .slot.is-on .slot__free { opacity: 0; }
.stamp { position: absolute; inset: 4%; width: 92%; height: 92%; color: var(--stamp); transform: rotate(var(--r, -6deg)); filter: url(#ink); opacity: .94; }
.slot--free.is-on .stamp { color: var(--hot-text); }
.slot.is-new .stamp { animation: stampdown .62s var(--ease) both; }
.slot.is-new::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 3px solid var(--stamp); opacity: 0;
  animation: ripple .7s .18s ease-out both;
}
@keyframes stampdown {
  0% { transform: translateY(-34px) scale(2.3) rotate(-24deg); opacity: 0; }
  55% { transform: translateY(0) scale(.88) rotate(var(--r, -6deg)); opacity: 1; }
  75% { transform: scale(1.06) rotate(var(--r, -6deg)); }
  100% { transform: scale(1) rotate(var(--r, -6deg)); opacity: .94; }
}
@keyframes ripple { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.stamps--mini { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.stamps--mini .slot { border-width: 1.5px; }
.stamps--mini .slot__n { font-size: .6875rem; }
.stamps--mini .slot__free { font-size: .5rem; }
.stampcard {
  padding: 16px; background: var(--surface); color: var(--text);
  border: var(--bw) solid var(--line); border-radius: var(--r-l); box-shadow: 5px 5px 0 var(--shadow-c);
  background-image: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--turmeric) 22%, transparent), transparent 55%);
}
.stampcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: var(--bw) dashed var(--line); }
.stampcard__brand { font-size: 1.75rem; }
.stampcard__id { font-size: .75rem; color: var(--text-2); }
.stampcard__t { margin-top: 14px; font-size: 1.0625rem; }
.stampcard--sheet { padding: 12px; box-shadow: none; margin: 16px 0 8px; }
.stampcard--sheet .stamps { grid-template-columns: repeat(3, 72px); justify-content: center; gap: 10px; }

.member { text-align: center; }
.member > * + * { margin-top: 12px; }
.qr { width: min(240px, 100%); margin-inline: auto; padding: 10px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--shadow-c); }
.qr svg { width: 100%; height: auto; aspect-ratio: 1; }
.member__id { font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; }
.voucher { padding: 14px; background: var(--turmeric); color: var(--on-turmeric); border: var(--bw) solid var(--ink); border-radius: var(--r-m); display: grid; gap: 10px; justify-items: center; }
.voucher[hidden] { display: none; }
.voucher__t { font-size: 1.0625rem; }
.how li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.how li:last-child { border-bottom: 0; }

/* ---------- page heads ---------- */
.pagehead { padding: 22px 16px 8px; }
.pagehead h1 { margin-top: 10px; font-size: clamp(3.5rem, 18vw, 5rem); line-height: .86; }
.pagehead--tight h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
.pagehead__p { margin-top: 12px; color: var(--text-2); max-width: 40ch; }

/* ---------- menu ---------- */
.menubar { position: sticky; top: calc(var(--ribbon-h) + var(--appbar-h)); z-index: 40; padding: 10px 0 10px; background: var(--bg) var(--grain); border-bottom: var(--bw) solid var(--line); }
.cats, .heatf { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px; scrollbar-width: none; }
.cats::-webkit-scrollbar, .heatf::-webkit-scrollbar { display: none; }
.heatf { margin: 14px 0 20px; }
.cat { padding: 28px 16px 0; }
.cat__h { font-size: 2.75rem; }
.cat__d { margin-top: 8px; color: var(--text-2); max-width: 44ch; }
.cat__photo { margin-top: 14px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border: var(--bw) solid var(--ink); border-radius: var(--r-l); box-shadow: 4px 4px 0 var(--shadow-c); }
.items { margin-top: 14px; display: grid; gap: 14px; }
.item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "a b" "f f"; gap: 10px 14px; align-items: start;
  padding: 14px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-l); box-shadow: 4px 4px 0 var(--shadow-c);
}
.item__art { grid-area: a; }
.item__b { grid-area: b; min-width: 0; }
.item__n { font: 800 1.5rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; color: var(--text); letter-spacing: -.005em; }
.item__d { margin-top: 6px; font-size: .9375rem; color: var(--text-2); line-height: 1.4; }
.item__m { margin-top: 10px; display: flex; align-items: center; }
.item__p { font-weight: 700; font-size: 1.25rem; color: var(--text); }
.item__foot { grid-area: f; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: var(--bw) dashed var(--line); }
.item[hidden], .cat[hidden] { display: none; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(14, 11, 6, .6); opacity: 0; transition: opacity .2s ease; }
.sheet__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--bg) var(--grain); color: var(--text);
  border: var(--bw) solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
  transform: translateY(100%); transition: transform .26s var(--ease);
  outline: none;
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel > * + * { margin-top: 14px; }
.sheet__x { position: absolute; top: 10px; right: 10px; margin: 0 !important; background: var(--surface); }
.sheet__h { font-size: 2.5rem; padding-right: 48px; }
.sheet__fine { font-size: .9375rem; }
.sheet__d { color: var(--text-2); font-size: .9375rem; }
.iosl li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.iosl__g { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--surface); }

.opt__fs { padding: 0; }
.opt__fs legend, .blk__h { font: 700 .75rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); padding: 0; margin-bottom: 10px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(96px, 100%), 1fr)); gap: 8px; }
.sizec { position: relative; display: grid; gap: 2px; text-align: center; padding: 12px 8px; min-height: 64px; align-content: center; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--surface); cursor: pointer; }
.sizec input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sizec b { font-size: 1rem; }
.sizec span { font: 700 .9375rem/1.1 var(--f-mono); color: var(--text-2); }
.sizec s { font-weight: 500; opacity: .8; }
.sizec:has(input:checked) { background: var(--turmeric); color: var(--on-turmeric); border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow-c); }
.sizec:has(input:checked) span { color: var(--on-turmeric); }
.sizec:has(input:focus-visible) { outline: 3px solid var(--hot-text); outline-offset: 3px; }
.extrac { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--surface); cursor: pointer; }
.extrac input { width: 24px; height: 24px; accent-color: var(--leaf); flex: none; margin: 0; }
.extrac span { flex: 1; font-weight: 700; }
.extrac b { font-family: var(--f-mono); }
.qty { display: inline-flex; align-items: center; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.qty button:active { background: var(--surface-2); }
.qty output { min-width: 2ch; text-align: center; font: 700 1.125rem/1 var(--f-mono); }
.opt__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- order ---------- */
.blk { padding: 0 16px; margin-top: 26px; }
form#order-form { padding-bottom: 8px; }
.blk--first { padding-top: 8px; }
.cartlist { border: var(--bw) solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: 4px 4px 0 var(--shadow-c); overflow: hidden; }
.cline { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "a b p" "a q q"; gap: 6px 12px; padding: 14px; }
.cline + .cline { border-top: var(--bw) dashed var(--line); }
.cline__art { grid-area: a; width: 52px; height: 52px; padding: 4px; border-radius: 14px; }
.cline__b { grid-area: b; min-width: 0; }
.cline__n { font-weight: 700; line-height: 1.2; }
.cline__o { font-size: .875rem; color: var(--text-2); }
.cline__p { grid-area: p; font: 700 1.0625rem/1.2 var(--f-mono); }
.cline__q { grid-area: q; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cline__rm { background: none; border: 0; min-height: 44px; padding: 0 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--hot-text); }
.totals { margin-top: 14px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals__big { font-size: 1.25rem; font-weight: 700; padding-top: 10px !important; border-top: var(--bw) solid var(--line); margin-top: 6px; }
.totals dd { font-family: var(--f-mono); font-weight: 700; }
.totals .fine { margin-top: 8px; }
.blk .fine { margin-top: 10px; }
.slots__day { font: 800 1.75rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; margin-bottom: 12px; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(76px, 100%), 1fr)); gap: 8px; }
.slots__grid[hidden] { display: none; }
.slots__grid + .slots__grid { margin-top: 8px; }
.slotc { position: relative; display: grid; place-items: center; min-height: 48px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--surface); font: 700 1rem/1 var(--f-mono); cursor: pointer; }
.slotc input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slotc:has(input:checked) { background: var(--leaf); color: var(--on-leaf); border-color: var(--leaf); }
.slotc:has(input:focus-visible) { outline: 3px solid var(--hot-text); outline-offset: 3px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.req { font-weight: 400; color: var(--text-2); font-size: .875rem; }
.field input { width: 100%; min-height: 52px; padding: 0 14px; background: var(--surface); color: var(--text); border: var(--bw) solid var(--line); border-radius: var(--r-m); font-size: 1rem; }
.field input[aria-invalid="true"] { border-color: var(--chilli); box-shadow: 0 0 0 2px var(--chilli); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--leaf); flex: none; }
.choice__b { display: grid; gap: 2px; }
.choice__b span { font-size: .9375rem; color: var(--text-2); }
#order-form > .btn { margin: 24px 16px 0; width: calc(100% - 32px); }
#order-form > .fine { padding: 0 16px; margin-top: 12px; }
.empty-state { padding: 32px 16px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.empty-state[hidden] { display: none; }
.empty-state__art { width: 96px; height: 96px; padding: 8px; }
.empty-state p { color: var(--text-2); max-width: 32ch; }
.empty-state__a { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.pl-msg { font-weight: 700; font-size: 1.125rem; }

/* ---------- tracker ---------- */
#trk-live { padding: 8px 16px 0; }
#trk-live[hidden] { display: none; }
.ticket {
  position: relative; padding: 18px 16px 16px; background: var(--surface); color: var(--text);
  border: var(--bw) solid var(--line); border-radius: var(--r-l); box-shadow: 5px 5px 0 var(--shadow-c);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 74px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: var(--bw) solid var(--line); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket__l { font: 700 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ticket__no { margin-top: 6px; font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.ticket__sub { margin-top: 10px; padding-top: 12px; border-top: var(--bw) dashed var(--line); color: var(--text-2); }
.ticket__items { margin-top: 8px; font-size: .9375rem; color: var(--text-2); }
.ticket__items li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ticket__items b { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; color: var(--text); }
.status { margin-top: 20px; }
.status__big { font-size: clamp(3.5rem, 18vw, 4.75rem); line-height: .86; color: var(--hot-text); }
.status__msg { margin-top: 10px; font-size: 1.0625rem; }
.meter { margin-top: 16px; height: 18px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: var(--leaf); transform-origin: left center; transform: scaleX(0); border-radius: 999px; transition: transform .3s linear; }
.status__eta { margin-top: 10px; font-size: .9375rem; font-weight: 700; color: var(--text-2); }
.rail { margin-top: 24px; position: relative; }
.rail::before { content: ""; position: absolute; left: 21px; top: 23px; height: var(--rl, 70%); width: 3px; background: repeating-linear-gradient(var(--line) 0 5px, transparent 5px 10px); opacity: .5; }
.rail__fill { position: absolute; left: 21px; top: 23px; width: 3px; height: 70%; z-index: 0; background: var(--leaf); transform-origin: top; transform: scaleY(0); transition: transform .3s linear; }
.rail__i { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.rail__i:last-child { padding-bottom: 0; }
.rail__n { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--bg); color: var(--text-2); }
.rail__t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 800 1.375rem/1.1 var(--f-display); font-stretch: 75%; text-transform: uppercase; color: var(--text-2); padding-top: 8px; }
.rail__time { font-size: .8125rem; font-weight: 700; color: var(--text-2); letter-spacing: 0; text-transform: none; }
.rail__d { margin-top: 4px; color: var(--text-2); font-size: .9375rem; }
.rail__typ { margin-top: 4px; font-size: .75rem; color: var(--text-2); }
.rail__i.is-done .rail__n { background: var(--leaf); color: var(--on-leaf); border-color: var(--leaf); }
.rail__i.is-done .rail__t { color: var(--text); }
.rail__i.is-now .rail__n { background: var(--turmeric); color: var(--on-turmeric); border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow-c); }
.rail__i.is-now .rail__t { color: var(--text); }
.rail__i.is-now .rail__d { color: var(--text); }
.rail__i.is-now[data-k="pot"] .rail__n .ic { animation: wobble 1.4s ease-in-out infinite; }
@keyframes wobble { 50% { transform: translateY(-2px) rotate(-6deg); } }
.demo-note { margin-top: 24px; padding: 12px 14px; border: var(--bw) dashed var(--line); border-radius: var(--r-m); }
.trk-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.is-ready .status__big { color: var(--green-text); }

/* ---------- offline ---------- */
.offline { padding: 28px 16px 0; display: grid; gap: 14px; }
.offline__art { width: 96px; height: 96px; padding: 8px; }
.offline__h { font-size: clamp(3.25rem, 17vw, 4.5rem); line-height: .86; }
.offline__p { font-size: 1.125rem; max-width: 34ch; }
.offline__cols { display: grid; gap: 14px; margin-top: 8px; }
.offline__a { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tick li, .cross li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.tick li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF1DA' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l5 5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cross li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--chilli) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF7E6' stroke-width='3.500' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- prose ---------- */
.prose { padding: 8px 16px 0; max-width: 62ch; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 28px; font: 800 1.75rem/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li { padding: 4px 0; }
.prose a { color: var(--hot-text); font-weight: 700; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { margin-top: 48px; padding: 24px 16px 20px; background: var(--ink); color: #E9DDBF; border-top: var(--bw) solid #000; }
:root[data-theme="dark"] .foot { background: #0E0B06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0E0B06; } }
.foot > * + * { margin-top: 10px; }
.foot__legal { font: 500 .75rem/1.4 var(--f-mono); color: #E9DDBF; }
.foot__demo { font-size: .875rem; color: #D9CCAE; max-width: 44ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot__links a, .foot__links .linkbtn { display: inline-flex; align-items: center; min-height: 44px; color: var(--turmeric); font-weight: 700; font-size: .9375rem; }
.foot__credit { font-size: .875rem; }
.foot__credit a { color: var(--turmeric); font-weight: 700; text-underline-offset: 3px; }

/* ---------- toast, to-top ---------- */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 14px);
  width: min(calc(100% - 28px), 420px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 14px 16px; background: var(--ink); color: #FBF1DA; border: var(--bw) solid var(--turmeric); border-radius: var(--r-m);
  font-weight: 500; line-height: 1.35; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
  transition: transform .22s var(--ease), opacity .22s ease;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: var(--turmeric); }
.to-top {
  position: fixed; z-index: 65; left: 14px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 14px);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--turmeric); color: var(--on-turmeric); border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--shadow-c);
}
.to-top[hidden] { display: none; }
.to-top:active { transform: translate(2px, 2px); }

/* ---------- guide ---------- */
.guide { color: var(--g-text); }
.guide__panel { background: var(--g-bg) var(--grain); border: var(--bw) solid #000; padding: 22px 18px 20px; outline: none; }
.guide__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.guide__head h2 { margin-top: 8px; font-size: 3rem; color: var(--turmeric); }
.steps { margin-top: 18px; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px dashed rgba(251, 241, 218, .45); }
.step__n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--turmeric); color: var(--on-turmeric); font-weight: 700; font-size: 1rem; border: 2px solid #000; transform: rotate(-6deg); }
.step__t { font: 800 1.375rem/1.05 var(--f-display); font-stretch: 75%; text-transform: uppercase; color: #FBF1DA; }
.step__d { margin-top: 4px; font-size: .9375rem; color: var(--g-text-2); line-height: 1.4; }
.step__a { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.step.is-done .step__n { background: #6FD09B; }
.guide__pitch { margin-top: 12px; padding: 16px; border: 2px solid var(--turmeric); border-radius: var(--r-m); display: grid; gap: 12px; justify-items: start; }
.guide__pitch-t { font: 800 1.5rem/1.05 var(--f-display); font-stretch: 75%; text-transform: uppercase; color: #FBF1DA; }
.guide__fine { margin-top: 14px; font-size: .875rem; color: var(--g-text-2); line-height: 1.45; }
.guide__links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.guide__links a, .guide__links .linkbtn { display: inline-flex; align-items: center; min-height: 44px; color: var(--turmeric); font-weight: 700; font-size: .9375rem; padding: 0; }

@media (max-width: 1023.98px) {
  .guide { position: fixed; inset: 0; z-index: 110; visibility: hidden; display: flex; align-items: flex-end; justify-content: center; }
  .guide.is-open { visibility: visible; }
  .guide__scrim { position: absolute; inset: 0; background: rgba(14, 11, 6, .6); opacity: 0; transition: opacity .2s ease; }
  .guide.is-open .guide__scrim { opacity: 1; }
  .guide__panel { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; border-radius: 26px 26px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .26s var(--ease); }
  .guide.is-open .guide__panel { transform: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .phone { max-width: 560px; margin-inline: auto; border-inline: var(--bw) solid var(--line); background: var(--bg) var(--grain); }
  .tabbar { left: 50%; right: auto; width: min(100%, 560px); transform: translateX(-50%); }
  .appbar { }
  .toast { }
  .to-top { left: max(14px, calc(50% - 266px)); }
}

/* ---------- desktop: phone frame + guide ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 80px; }
  body { overflow: hidden; height: 100dvh; }
  .demo-pill { left: 50%; right: auto; top: 14px; transform: translateX(-50%); height: 32px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid #000; gap: 14px; background: var(--chilli); }
  .stage { display: flex; align-items: flex-start; justify-content: center; gap: 40px; height: 100dvh; padding: 64px 32px 24px; }
  .phone {
    flex: none; width: 420px; height: calc(100dvh - 88px); max-height: 880px; min-height: 560px;
    padding-top: 0; display: flex; flex-direction: column;
    background: var(--bg) var(--grain);
    border: 3px solid var(--ink); border-radius: 34px;
    box-shadow: 10px 10px 0 var(--shadow-c);
    overflow: hidden; isolation: isolate;
    --ribbon-h: 0px;
  }
  :root[data-theme="dark"] .phone { border-color: var(--line); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { border-color: var(--line); } }
  .appbar { position: static; flex: none; }
  .guidebtn { display: none; }
  .screen { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; scroll-padding-top: 130px; }
  .tabbar { position: static; flex: none; width: auto; height: var(--tab-h); transform: none; padding-bottom: 6px; }
  .menubar { top: 0; }
  .toast { position: absolute; bottom: calc(var(--tab-h) + 14px); }
  .to-top { position: absolute; bottom: calc(var(--tab-h) + 14px); left: 14px; }
  .sheet { position: absolute; z-index: 100; border-radius: 30px; overflow: hidden; }
  .sheet__panel { border-radius: 26px 26px 0 0; }
  .guide { flex: none; width: min(400px, calc(100vw - 420px - 104px)); height: calc(100dvh - 88px); max-height: 880px; }
  .guide__panel { height: 100%; overflow-y: auto; border-radius: 26px; box-shadow: 8px 8px 0 var(--shadow-c); padding: 24px 22px; }
  .guide__scrim, .guide__x { display: none; }
  .foot { margin-top: 36px; }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .stage { padding-top: 56px; }
}

/* ---------- motion ---------- */
.js .rise { opacity: 0; transform: translateY(14px); animation: rise .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .js .rise { opacity: 1; transform: none; }
}
@media print { .tabbar, .demo-pill, .guide, .to-top { display: none; } }
