/* Grocery navigator prototype — design system.
   Direction "Shelf + route": a calm native delivery app, one green accent,
   and the courier route as the only signature graphic. */
@import url("fonts/fonts.css");

:root {
  --bg: #ffffff;
  --surface: #f4f5f2;
  --surface-2: #eceee9;
  --line: #e6e8e3;
  --ink: #161a17;
  --ink-2: #5c635d;
  --ink-3: #8a908b;
  --accent: #1d7a47;
  --accent-press: #15613a;
  --accent-soft: #e8f3ec;
  --route: #1d7a47;
  --danger: #c5372c;
  --danger-soft: #fdeeec;
  --warn-soft: #fff5e1;
  --warn-ink: #7a4d00;

  --store-a: #e5484d;
  --store-b: #3e63dd;
  --store-v: #e09a13;
  --store-g: #2f8a55;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;

  --shadow-1: 0 1px 2px rgb(22 26 23 / .06), 0 2px 8px rgb(22 26 23 / .05);
  --shadow-2: 0 8px 28px rgb(22 26 23 / .14), 0 2px 6px rgb(22 26 23 / .06);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 150ms;
  --t: 240ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412; --surface: #1c1f1c; --surface-2: #252925; --line: #2c312d;
    --ink: #eef1ee; --ink-2: #a5aca6; --ink-3: #7b827c;
    --accent: #3fae6d; --accent-press: #59c283; --accent-soft: #19301f; --route: #3fae6d;
    --danger: #ff6b5f; --danger-soft: #3a1c19; --warn-soft: #33290f; --warn-ink: #f2c46b;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4); --shadow-2: 0 10px 30px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.grow { flex: 1; min-width: 0; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(32px); } }
html.back::view-transition-new(root) { animation-name: vt-in-back; }
html.back::view-transition-old(root) { animation-name: vt-out-back; }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-32px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(24px); } }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: var(--ease); }

/* ---------- Phone frame (desktop) and prototype panel ---------- */
.phone { min-height: 100dvh; display: flex; flex-direction: column; }
.device { display: contents; }
.hw, .island, .home-ind { display: none; }
.screen { flex: 1; display: flex; flex-direction: column; position: relative; overflow-x: clip; }
.status { display: none; }
.proto { display: none; }
.foot-note { padding: 24px 20px 28px; font-size: 13px; color: var(--ink-3); text-align: center; }
.foot-note a { text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 900px) {
  html, body { height: 100%; }
  body { background: var(--surface); display: grid; grid-template-columns: minmax(280px, 360px) auto; justify-content: center; align-items: center; gap: 80px; padding: 20px; }

  /* iPhone 15 Pro-style body: titanium band, black bezel, Dynamic Island, side buttons */
  .device {
    display: block; position: relative; padding: 12px; border-radius: 68px;
    background: linear-gradient(135deg, #8d8a85 0%, #5d5a56 18%, #3c3a37 50%, #5d5a56 82%, #8d8a85 100%);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .28), inset 0 0 0 3px #2a2826, 0 50px 100px -20px rgb(0 0 0 / .35), 0 20px 40px -12px rgb(0 0 0 / .25);
  }
  .phone {
    width: 393px; height: min(852px, calc(100dvh - 64px)); min-height: 0;
    background: var(--bg); border-radius: 56px; overflow: hidden auto; overscroll-behavior: contain;
    box-shadow: 0 0 0 7px #050505; scrollbar-width: none; position: relative;
  }
  .phone::-webkit-scrollbar { display: none; }
  .hw, .island, .home-ind { display: block; }
  .hw { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #3c3a37, #8d8a85 60%, #5d5a56); }
  .hw.action { left: -3px; top: 128px; height: 32px; }
  .hw.vol-up { left: -3px; top: 188px; height: 62px; }
  .hw.vol-down { left: -3px; top: 264px; height: 62px; }
  .hw.power { right: -3px; top: 220px; height: 100px; background: linear-gradient(270deg, #3c3a37, #8d8a85 60%, #5d5a56); }
  .island { position: absolute; z-index: 60; top: 23px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; pointer-events: none; }
  .island::after { content: ""; position: absolute; right: 22px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3550 0 25%, #0d1220 60%, #000 100%); }
  .home-ind { position: absolute; z-index: 60; bottom: 20px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--ink); opacity: .9; pointer-events: none; }
  .proto { display: block; align-self: center; }

  /* iOS: the status bar floats over content; nav bars extend under it with blur */
  .status { position: absolute; z-index: 55; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 2px 30px 0 52px; border-radius: 56px 56px 0 0; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; pointer-events: none; transition: background var(--t), color var(--t); }
  .status .ind { display: flex; gap: 6px; align-items: center; }
  .status svg { display: block; height: 12px; width: auto; fill: currentColor; }
  .device.scrolled:not(.on-photo) .status.bare { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
  .device.on-photo .status { color: #fff; }
  .phone .screen { padding-top: 54px; }
  .phone .topbar { top: 0; margin-top: -54px; padding-top: 60px; }
  .phone .r-hero { margin-top: -54px; }
  .phone .r-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 110px; z-index: 1; background: linear-gradient(rgb(0 0 0 / .32), transparent); pointer-events: none; }
  .phone .r-hero .icon-btn { z-index: 2; }
  .phone .r-hero .icon-btn { top: 62px; }
  .phone .tabbar { padding-bottom: 30px; }
  .phone .dock { padding-bottom: 34px; }
  .phone .toast { bottom: 112px; }
}
.proto-brand { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.proto-lead { margin: 14px 0 28px; color: var(--ink-2); font-size: 15px; max-width: 32ch; }
.proto-k { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.proto ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.proto li a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--r-s); font-size: 15px; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.proto li a::before { counter-increment: s; content: counter(s); width: 22px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.proto li a:hover { background: var(--surface-2); color: var(--ink); }
.proto li a[aria-current="page"] { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.proto-meta { margin-top: 24px; display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); }
.proto-meta a, .proto-meta button { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-2); }

/* logo: two route stops joined by a line */
.logo { display: inline-block; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.app-icon { width: 28px; height: 28px; flex: none; border-radius: 7px; }
/* logo: the swirl mark stands in for the letter "Р" */
.logo-r { display: inline-block; width: 1em; height: 1.175em; vertical-align: -.295em; margin-right: .01em; }

/* ---------- Layout helpers ---------- */
.pad { padding-inline: 20px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec { margin-top: 32px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-h h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.sec-h .link { font-size: 15px; color: var(--accent); font-weight: 500; }
.sec-sub { font-size: 14px; color: var(--ink-2); margin: -6px 0 14px; }
.h1 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.h2 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow var(--t); }
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar h1 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.topbar p { font-size: 13px; color: var(--ink-2); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background var(--t-fast), transform var(--t-fast); }
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on-photo { background: rgb(255 255 255 / .92); color: #161a17; box-shadow: var(--shadow-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: var(--r-m); background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease), opacity var(--t-fast); width: 100%; text-align: center;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: var(--r-s); width: auto; }
.btn.split { justify-content: space-between; }
.btn.split .sum { font-variant-numeric: tabular-nums; font-weight: 700; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { color: var(--accent); font-weight: 500; font-size: 15px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* sticky action dock */
.dock { position: sticky; bottom: 0; z-index: 25; margin-top: auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.dock-note { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 8px; }
.dock .two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* ---------- Tab bar ---------- */
.tabbar { position: sticky; bottom: 0; z-index: 25; margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font-size: 11px; font-weight: 500; color: var(--ink-3); transition: color var(--t-fast); }
.tabbar a svg { width: 24px; height: 24px; transition: transform var(--t) var(--spring); }
.tabbar a:active svg { transform: scale(.88); }
.tabbar a[aria-current="page"] { color: var(--accent); }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.badge.bump { animation: bump 420ms var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Chips, segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; scroll-padding-inline: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip svg { width: 16px; height: 16px; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--surface); }
.seg button { position: relative; z-index: 1; height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color var(--t); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: var(--bg); box-shadow: var(--shadow-1); transition: transform 320ms var(--ease), width 320ms var(--ease); }

/* ---------- Inputs ---------- */
.field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: var(--r-m); background: var(--surface); border: 1.5px solid transparent; transition: border-color var(--t-fast), background var(--t-fast); }
.field:focus-within { border-color: var(--accent); background: var(--bg); }
.field input, .field textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 14px 0; font-size: 16px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
a.li { transition: opacity var(--t-fast); }
a.li:active { opacity: .6; }
.li .th { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface); }
.li .th.cut { object-fit: contain; padding: 6px; }
.li b { display: block; font-weight: 500; font-size: 16px; }
.li .sub { display: block; font-size: 14px; color: var(--ink-2); }
.li .end { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; }

/* ---------- Photo cards ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 0 20px 4px; scroll-padding-inline: 20px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.dish { display: block; width: 236px; }
.dish .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.dish:hover .ph img { transform: scale(1.04); }
.dish h3 { margin-top: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.dish p { font-size: 14px; color: var(--ink-2); }
.dish .price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dish.sm { width: 156px; }
.dish.sm .ph { aspect-ratio: 1; }
.tag { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: rgb(255 255 255 / .94); color: #161a17; font-size: 12px; font-weight: 600; }
.heart { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .94); color: #161a17; display: grid; place-items: center; transition: transform var(--t) var(--spring); }
.heart svg { width: 18px; height: 18px; }
.heart[aria-pressed="true"] { color: var(--danger); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart.pop { animation: bump 380ms var(--spring); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.grid2 .dish { width: auto; }
.grid2 .dish .ph { aspect-ratio: 1; }

/* ---------- Store marks ---------- */
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.mark.lg { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.mark[data-s="A"] { background: var(--store-a); }
.mark[data-s="B"] { background: var(--store-b); }
.mark[data-s="V"] { background: var(--store-v); }
.mark[data-s="G"] { background: var(--store-g); }

/* ---------- Notices ---------- */
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); font-size: 14px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.note b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.note.warn { background: var(--warn-soft); color: var(--warn-ink); }
.note.warn b { color: var(--ink); }
.note.good { background: var(--accent-soft); }
.note.good svg { color: var(--accent); }
.note.bad { background: var(--danger-soft); }
.note.bad svg { color: var(--danger); }

details.faq { border-radius: var(--r-m); background: var(--surface); }
details.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t) var(--ease); }
details.faq[open] summary svg { transform: rotate(90deg); }
details.faq p { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast-host { position: sticky; bottom: 0; height: 0; z-index: 40; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 88px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--r-m); background: #1f2420; color: #fff; font-size: 15px; box-shadow: var(--shadow-2); animation: toast-in 320ms var(--spring); }
.toast button { margin-left: auto; color: #8fe0ad; font-weight: 600; }
.toast.out { animation: toast-out 200ms var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Bottom sheet (dialog) ---------- */
dialog.sheet { margin: auto auto 0; width: 100%; max-width: 390px; max-height: 88dvh; padding: 0; border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--bg); color: var(--ink); overflow: auto; }
dialog.sheet::backdrop { background: rgb(10 14 11 / .45); }
dialog.sheet[open] { animation: sheet-in 380ms var(--ease); }
dialog.sheet[open]::backdrop { animation: fade-in 300ms var(--ease); }
dialog.sheet.closing { animation: sheet-out 220ms var(--ease) forwards; }
dialog.sheet.closing::backdrop { animation: fade-out 220ms var(--ease) forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-in { padding: 8px 20px 20px; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--surface-2); margin: 0 auto 14px; }
.sheet-in h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sheet-in > p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.sheet-in fieldset { border: 0; margin: 20px 0 0; padding: 0; }
.sheet-in legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); }
.stepper button { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); }
.stepper button:hover { background: var(--bg); }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; pointer-events: none; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm button { width: 30px; height: 30px; }
.stepper.sm output { min-width: 22px; font-size: 15px; }

/* ---------- Switch / check row ---------- */
.check { position: relative; width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--ink-3); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); }
.check svg { width: 16px; height: 16px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity var(--t-fast), transform var(--t) var(--spring); }
input:checked + .check { background: var(--accent); border-color: var(--accent); }
input:checked + .check svg { opacity: 1; transform: none; }
input:focus-visible + .check { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* ---------- Entrance motion ---------- */
.rise { animation: rise 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.skel { border-radius: var(--r-s); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fly { position: fixed; z-index: 100; width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--bg); box-shadow: var(--shadow-2); pointer-events: none; }

/* ======================================================================
   Screens
   ====================================================================== */

/* ---------- Home ---------- */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 0; }
.addr { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); line-height: 1.3; text-align: right; }
.addr b { color: var(--ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.addr svg { width: 16px; height: 16px; }
.hello { padding: 24px 20px 0; }
.hello .h1 { font-size: 32px; }
.taste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.taste button { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--surface); font-size: 14px; font-weight: 500; transition: background var(--t-fast); }
.taste button:hover { background: var(--surface-2); }
.taste button svg { width: 14px; height: 14px; color: var(--ink-3); }
.ask { margin: 20px 20px 0; }
.ask .field { min-height: 56px; background: var(--bg); border: 1.5px solid var(--line); box-shadow: var(--shadow-1); }
.ask .field:focus-within { border-color: var(--accent); }
.ask .go { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; margin-right: -6px; transition: transform var(--t-fast), background var(--t-fast); }
.ask .go:hover { background: var(--accent-press); }
.ask .go:active { transform: scale(.92); }
.ask .go svg { color: #fff; }
.ask-hint { margin-top: 10px; }
.ask-res { margin: 16px 20px 0; }
.ask-res .lead { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.ask-res .lead b { color: var(--ink); font-weight: 600; }
.season { margin-top: 32px; padding: 24px 20px; background: var(--surface); }
.season .produce { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
.season .pr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 500; line-height: 1.2; }
.season .pr img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.season .pr small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }

/* ---------- Recipe ---------- */
.r-hero { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.r-hero img { width: 100%; height: 100%; object-fit: cover; view-transition-name: dish-photo; }
.r-hero .icon-btn { position: absolute; top: 12px; }
.r-hero .back { left: 12px; }
.r-hero .save { right: 12px; }
.r-title { padding: 20px 20px 0; }
.r-src { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.r-src a { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.meta span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--ink-3); }
.setup { margin: 20px 20px 0; padding: 4px 16px; border-radius: var(--r-m); background: var(--surface); }
.setup .between { min-height: 56px; }
.setup .between + .between { border-top: 1px solid var(--line); }
.setup .seg { background: var(--bg); }
.setup .seg .thumb { background: var(--surface-2); box-shadow: none; }
.setup label, .setup .lbl { font-size: 15px; font-weight: 500; }
.ing { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity var(--t); }
.ing:last-child { border-bottom: 0; }
.ing input { position: absolute; opacity: 0; pointer-events: none; }
.ing .th { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); object-fit: contain; padding: 5px; flex: none; transition: filter var(--t), opacity var(--t); }
.ing b { display: block; font-weight: 500; }
.ing .sub { font-size: 14px; color: var(--ink-2); }
.ing.off b { color: var(--ink-2); }
.ing.off .th { filter: grayscale(1); opacity: .55; }
.ing .home { font-size: 13px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: st; font-size: 15px; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.steps .t { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.steps.clamp li:nth-child(n+4) { display: none; }
.extra { width: 132px; }
.extra .ph { position: relative; aspect-ratio: 1; border-radius: var(--r-m); background: var(--surface); display: grid; place-items: center; }
.extra .ph img { width: 78%; height: 78%; object-fit: contain; }
.extra .add { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 10px; background: var(--bg); box-shadow: var(--shadow-1); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t) var(--spring); }
.extra .add svg { width: 18px; height: 18px; }
.extra .add[aria-pressed="true"] { background: var(--accent); color: #fff; }
.extra .add:active { transform: scale(.88); }
.extra .p { margin-top: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.extra .p s { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.extra .n { font-size: 14px; line-height: 1.3; }
.extra .q { font-size: 13px; color: var(--ink-2); }

/* ---------- Compare: the route ---------- */
.variants { margin: 4px 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.var { position: relative; text-align: left; padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 1.5px solid transparent; transition: border-color var(--t), background var(--t), transform var(--t-fast); }
.var:active { transform: scale(.97); }
.var .k { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.var .v { display: block; margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.var .d { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.var[aria-checked="true"] { background: var(--bg); border-color: var(--accent); }
.var[aria-checked="true"] .k { color: var(--accent); font-weight: 600; }
.var .best { position: absolute; top: -9px; right: 10px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }

.route { position: relative; margin: 20px 20px 0; padding: 4px 0; }
.route svg.line { position: absolute; left: 0; top: 0; width: 32px; height: 100%; overflow: visible; }
.route svg.line path { fill: none; stroke: var(--route); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route.drawn svg.line path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease); }
.route svg.line path.dash { stroke-dasharray: 2 7; stroke-dashoffset: 0; opacity: 0; transition: opacity 400ms 700ms; }
.route.drawn svg.line path.dash { opacity: 1; }
.stop { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 22px; opacity: 0; transform: translateY(8px); }
.route.drawn .stop { opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: calc(var(--i) * 260ms); }
.stop:last-child { padding-bottom: 0; }
.stop .dot { width: 32px; height: 32px; display: grid; place-items: center; z-index: 1; }
.stop .home { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.stop .home svg { width: 16px; height: 16px; }
.stop h3 { font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; padding-top: 5px; }
.stop h3 span { font-variant-numeric: tabular-nums; }
.stop .what { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.thumbs { display: flex; margin-top: 10px; padding-right: 8px; flex: none; }
.thumbs img { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--bg); object-fit: contain; padding: 4px; margin-right: -8px; }
.stop .leg { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.stop .leg svg { width: 16px; height: 16px; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.total-row strong { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.saving { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.saving svg { width: 16px; height: 16px; }

.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
.ptable col.c-name { width: 38%; }
.ptable th { text-align: right; vertical-align: bottom; font-size: 12px; line-height: 1.25; font-weight: 500; color: var(--ink-2); padding: 0 10px 8px; }
.ptable th:first-child { text-align: left; padding-left: 0; }
.ptable td { padding: 10px; border-top: 1px solid var(--line); text-align: right; vertical-align: top; line-height: 20px; color: var(--ink-2); white-space: nowrap; }
.ptable td:first-child { text-align: left; padding-left: 0; color: var(--ink); white-space: normal; }
.ptable td.lo { color: var(--accent); font-weight: 600; }
.ptable .sel { background: var(--accent-soft); }
.ptable thead .sel { border-radius: 10px 10px 0 0; }
.ptable tr:last-child .sel { border-radius: 0 0 10px 10px; }
.ptable tr.tot td { font-weight: 700; color: var(--ink); }
.ptable tr.tot td.lo { color: var(--accent); }
.ptable th.sel { color: var(--accent); }
.ptable td small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); }

/* ---------- Cart ---------- */
.store-h { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.store-h h2 { font-size: 17px; font-weight: 600; }
.store-h .s { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-li .th { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); object-fit: contain; padding: 5px; flex: none; }
.cart-li b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.cart-li .sub { font-size: 13px; color: var(--ink-2); }
.cart-li .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-li .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-li.leaving { animation: leave 260ms var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-24px); } }
.swap { margin: 8px 0; padding: 14px; border-radius: var(--r-m); background: var(--warn-soft); }
.swap .h { font-size: 14px; color: var(--warn-ink); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.swap .h svg { width: 16px; height: 16px; }
.swap .h s { color: var(--ink-2); font-weight: 400; }
.swap .cart-li { border: 0; padding: 10px 0 12px; }
.swap .cart-li .th { background: var(--bg); }
.swap .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swap .btn { min-height: 42px; font-size: 15px; }
.swap .btn.ghost { background: var(--bg); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); padding: 3px 0; font-variant-numeric: tabular-nums; }
.sum-row.good { color: var(--accent); }
.sum-row.big { color: var(--ink); font-size: 20px; font-weight: 700; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.empty { text-align: center; padding: 48px 12px; }
.empty img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 16px; }
.empty b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.empty p { color: var(--ink-2); font-size: 15px; margin: 6px auto 20px; max-width: 30ch; }
.empty .btn { width: auto; }

/* ---------- Checkout ---------- */
.map { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.map svg { width: 100%; height: auto; display: block; }
.map .r { fill: none; stroke: var(--route); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s 200ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map .cap { position: absolute; left: 10px; top: 10px; padding: 6px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-1); }
.slots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
.slots::-webkit-scrollbar { display: none; }
.slot { flex: none; position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid transparent; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); font-variant-numeric: tabular-nums; }
.slot small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.slot input:checked + span { background: var(--bg); border-color: var(--accent); }
.slot input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.radio-li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.radio-li:last-child { border-bottom: 0; }
.radio-li input { position: absolute; opacity: 0; }
.radio-li .r { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; display: grid; place-items: center; transition: border-color var(--t-fast); }
.radio-li .r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t) var(--spring); }
.radio-li input:checked ~ .r { border-color: var(--accent); }
.radio-li input:checked ~ .r::after { transform: scale(1); }
.radio-li input:focus-visible ~ .r { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.pm { width: 40px; height: 28px; border-radius: 6px; background: var(--surface); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-2); flex: none; border: 1px solid var(--line); }

/* ---------- Done ---------- */
.ok-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: pop 520ms var(--spring) both; }
.ok-mark svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: dash 420ms 300ms var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
.tl { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl.ok::before { background: var(--accent); }
.tl .d { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; z-index: 1; }
.tl.ok .d { background: var(--accent); border-color: var(--accent); }
.tl.ok .d svg { width: 14px; height: 14px; color: #fff; }
.tl.now .d { border-color: var(--accent); }
.tl.now .d::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.tl b { display: block; font-weight: 500; }
.tl span { font-size: 14px; color: var(--ink-2); }
.cook-ban { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-m); background: var(--surface); transition: background var(--t-fast); }
.cook-ban:hover { background: var(--surface-2); }
.cook-ban img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.cook-ban b { display: block; font-weight: 600; }
.cook-ban span { font-size: 14px; color: var(--ink-2); }

/* ---------- Orders ---------- */
.ord { display: block; padding: 16px; border-radius: var(--r-m); background: var(--surface); transition: background var(--t-fast); }
.ord:hover { background: var(--surface-2); }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 8px; }
.prog i { height: 4px; border-radius: 2px; background: var(--surface-2); }
.prog i.on { background: var(--accent); }
.prog i.now { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-2) 50%) 0 0 / 200% 100%; animation: fill 1.8s var(--ease) infinite alternate; }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 30% 0; } }

/* ---------- Paste ---------- */
.pstep { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-3); transition: color var(--t); }
.pstep .pd { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.pstep.now { color: var(--ink); }
.pstep.now .pd { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.pstep.ok { color: var(--ink); }
.pstep.ok .pd { background: var(--accent); border-color: var(--accent); animation: pop 360ms var(--spring); }
.pstep.ok .pd svg { width: 14px; height: 14px; color: #fff; }
.found { display: flex; flex-wrap: wrap; gap: 8px; }
.found img { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); object-fit: contain; padding: 5px; animation: pop 360ms var(--spring) both; animation-delay: calc(var(--i) * 70ms); }

/* ---------- Cook ---------- */
.cook-bar { display: grid; grid-auto-flow: column; gap: 4px; padding: 0 20px; }
.cook-bar i { height: 4px; border-radius: 2px; background: var(--surface-2); transition: background var(--t); }
.cook-bar i.on { background: var(--accent); }
.cook-stage { aspect-ratio: 4 / 3; border-radius: var(--r-l); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.cook-stage svg { width: 88%; height: 92%; animation: rise 420ms var(--ease); }
.cook-stage svg * { transform-box: fill-box; }
.cook-stage .fl { transform-origin: 50% 100%; animation: c-fl .45s ease-in-out infinite alternate; }
.cook-stage .bub { transform-origin: center; animation: c-bub 1.6s ease-in infinite; }
.cook-stage .stm { animation: c-stm 2.6s ease-in-out infinite; }
.cook-stage .foam { animation: c-fade 2.4s ease-in-out infinite alternate; }
.cook-stage .swing { transform-box: view-box; animation: c-swing 2.4s ease-in-out infinite alternate; }
.cook-stage .chop { animation: c-chop .8s cubic-bezier(.5, 0, .3, 1) infinite; }
.cook-stage .pop { transform-origin: center; animation: c-pop 2.8s var(--ease) infinite backwards; }
.cook-stage .grate { animation: c-grate .9s ease-in-out infinite alternate; }
.cook-stage .fall { animation: c-fall 1s ease-in infinite; }
.cook-stage .hop { animation: c-hop .55s ease-in-out infinite alternate; }
.cook-stage .siz { animation: c-siz .5s steps(2) infinite; }
.cook-stage .stir { transform-box: view-box; animation: c-stir 1.3s ease-in-out infinite alternate; }
.cook-stage .drop { animation: c-drop 2.4s cubic-bezier(.5, 0, .8, .4) infinite backwards; }
.cook-stage .ripple { transform-origin: center; animation: c-ripple 2.4s ease-out infinite backwards; }
.cook-stage .lid { transform-box: view-box; animation: c-lid 2.6s ease-in-out infinite; }
.cook-stage .dollop { transform-origin: center; animation: c-dollop 2.6s var(--ease) infinite; }
@keyframes c-fl { to { transform: scaleY(.65); } }
@keyframes c-bub { 0% { transform: translateY(0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-40px) scale(1); opacity: 0; } }
@keyframes c-stm { 0% { transform: translateY(10px); opacity: 0; } 40% { opacity: .8; } 100% { transform: translateY(-18px); opacity: 0; } }
@keyframes c-fade { from { opacity: 1; } to { opacity: .3; } }
@keyframes c-swing { from { transform: rotate(-8deg); } to { transform: rotate(6deg); } }
@keyframes c-chop { 0%, 100% { transform: translate(0, -46px); } 45%, 60% { transform: translate(0, 0); } }
@keyframes c-pop { 0% { transform: scale(0); opacity: 0; } 10% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c-grate { from { transform: translate(10px, 0); } to { transform: translate(10px, 66px); } }
@keyframes c-fall { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }
@keyframes c-hop { to { transform: translateY(-10px); } }
@keyframes c-siz { 50% { opacity: 0; } }
@keyframes c-stir { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
@keyframes c-drop { 0% { transform: translateY(-100px); opacity: 0; } 10% { opacity: 1; } 45% { transform: translateY(0); opacity: 1; } 52%, 100% { transform: translateY(6px); opacity: 0; } }
@keyframes c-ripple { 0%, 44% { transform: scale(.2); opacity: 0; } 47% { opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes c-lid { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px) rotate(-2deg); } 90% { transform: translateY(-2px) rotate(2deg); } }
@keyframes c-dollop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cook-stage svg * { animation: none !important; } }
.cook-t { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; }
.timer { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-m); background: var(--surface); }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset 1s linear; }
.timer b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  @view-transition { navigation: none; }
}
