/* Mary's Taqueria — warm masa, terracotta, agave and marigold gold */
:root {
  --ground: #f4e7d2;        /* masa */
  --surface: #ecdcc1;       /* toasted masa, one step darker */
  --surface-2: #e3cfae;
  --ink: #2b1a11;           /* mole */
  --ink-soft: #5e4636;
  --terra: #b5452a;         /* terracotta: the action colour */
  --terra-ink: #fff6ec;
  --terra-deep: #8f3119;
  --agave: #2f5d45;         /* agave green field */
  --agave-ink: #f2eadb;
  --gold: #d99a2b;          /* marigold */
  --gold-ink: #2b1a11;
  --ok: #2f7a4b;
  --bad: #a3352a;
  --focus: #1f6fd1;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --margin: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 999px;
  --card: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 68px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ground: #16100c;
  --surface: #221811;
  --surface-2: #2d2017;
  --ink: #f3e6d2;
  --ink-soft: #c7b39c;
  --terra: #e0714c;
  --terra-ink: #1a0f0a;
  --terra-deep: #f08f6c;
  --agave: #1d3a2c;
  --agave-ink: #eee3cf;
  --gold: #e9b04c;
  --gold-ink: #1a0f0a;
  --ok: #6fc28e;
  --bad: #f08a7a;
  --focus: #7db4ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--font-text); -webkit-font-smoothing: antialiased; transition: background-color .35s var(--ease), color .35s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.025em; line-height: 1; font-variation-settings: "SOFT" 60, "WONK" 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--gold-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--terra); color: var(--terra-ink); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--margin); padding-right: var(--margin); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 24px; border-radius: var(--radius); border: 0; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terra); color: var(--terra-ink); }
.btn-primary:hover { background: var(--terra-deep); }
[data-theme="dark"] .btn-primary:hover { background: #f08f6c; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #e7ad45; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; transition: background-color .2s, transform .18s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.link-btn { background: none; border: 0; color: var(--terra); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 12px 0; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: var(--ground); transition: background-color .35s var(--ease); }
.bar.scrolled { background: var(--surface); }
.bar-in { height: var(--bar-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #f0c25a; }
.brand span { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { color: var(--terra); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: var(--radius); transition: background-color .2s; }
.nav a:hover { background: var(--surface); }
.bar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.store-pick select { appearance: none; -webkit-appearance: none; height: 44px; border: 0; border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b5452a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 0 36px 0 16px; font-weight: 600; font-size: 15px; cursor: pointer; max-width: 230px; }
.store-pick select:hover { background-color: var(--surface-2); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: var(--radius); background: var(--terra); color: var(--terra-ink); font-weight: 600; cursor: pointer; transition: transform .18s var(--ease), background-color .2s; }
.cart-btn:hover { background: var(--terra-deep); }
.cart-btn:active { transform: scale(.96); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cart-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radius); background: var(--terra-ink); color: var(--terra); display: inline-grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); line-height: .95; letter-spacing: -0.035em; font-weight: 800; max-width: 11ch; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; margin-top: 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-store { margin-top: 28px; font-size: 16px; color: var(--ink-soft); }
.hero-store b { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--ok); }
.status.closed { color: var(--bad); }
.status.unknown { color: var(--ink-soft); }

.wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.wheel { position: relative; width: min(100%, 620px); aspect-ratio: 1; }
.wheel-img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: cover; border-radius: 50%; transition: transform 1s var(--ease); }
.meat { position: absolute; left: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 8px 14px; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, scale .2s var(--ease); }
.meat:hover { background: var(--gold); color: var(--gold-ink); scale: 1.06; }
.meat[aria-checked="true"] { background: var(--terra); color: var(--terra-ink); scale: 1.08; }
.meat.primary { font-size: 16px; padding: 10px 16px; }
.pick { width: min(100%, 560px); min-height: 132px; background: var(--surface); border-radius: var(--card); padding: 20px 22px; }
.pick-hint { color: var(--ink-soft); font-size: 16px; }
.pick h3 { font-size: 28px; }
.pick p { margin-top: 6px; }
.pick .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pick .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- locations ---------- */
.stores { background: var(--agave); color: var(--agave-ink); padding: clamp(72px, 9vw, 140px) 0; }
.stores h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 16ch; }
.store-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.store-tab { text-align: left; border: 0; border-radius: var(--card); padding: 18px 20px; background: rgba(255, 255, 255, .07); color: inherit; cursor: pointer; transition: background-color .2s, transform .18s var(--ease); }
.store-tab:hover { background: rgba(255, 255, 255, .13); }
.store-tab:active { transform: scale(.985); }
.store-tab[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.store-tab .t-name { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.store-tab .t-street { display: block; margin-top: 2px; opacity: .85; }
.store-tab .status { margin-top: 10px; font-size: 15px; }
.store-tab[aria-selected="true"] .status.open { color: #1d5a33; }
.store-tab[aria-selected="true"] .status.closed { color: #8a2216; }
.store-tab[aria-selected="true"] .status.unknown { color: #5a4325; }
.store-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); margin-top: 28px; }
.store-info .addr { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.store-info .phone { display: inline-block; margin-top: 16px; font-size: 24px; font-weight: 700; color: var(--gold); text-decoration: none; font-variant-numeric: tabular-nums; }
.store-info .phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.hours { width: 100%; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 7px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today { color: var(--gold); font-weight: 700; }
.hours tr.today th { font-weight: 700; }
.hours-note { margin-top: 14px; font-size: 15px; opacity: .8; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store-actions .btn-ghost { background: rgba(255, 255, 255, .1); color: inherit; }
.store-actions .btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.map { border-radius: var(--card); overflow: hidden; min-height: 380px; background: rgba(255, 255, 255, .06); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.9); }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }

/* ---------- menu ---------- */
.menu { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(48px, 6vw, 96px); }
.menu-head h2 { font-size: clamp(38px, 5vw, 72px); max-width: 14ch; }
.menu-head p { margin-top: 24px; max-width: 40em; font-size: 18px; }
.tools { position: sticky; top: var(--bar-h); z-index: 30; background: var(--ground); margin-top: 36px; padding: 12px 0; transition: background-color .35s var(--ease); }
.tools.stuck { background: var(--surface); }
.tools-in { display: grid; gap: 10px; }
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 50px; border: 2px solid transparent; border-radius: var(--radius); background: var(--surface); padding: 0 48px; font-size: 17px; transition: border-color .2s, background-color .2s; }
.tools.stuck .search input { background: var(--ground); }
.search input:focus { outline: none; border-color: var(--terra); }
.search input::-webkit-search-cancel-button { display: none; }
.q-clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.q-clear:hover { background: var(--surface-2); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 0; border-radius: var(--radius); background: var(--surface); padding: 9px 16px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; scroll-snap-align: start; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.tools.stuck .chip { background: var(--ground); }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(.95); }
.tools .chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.tools .chips.cats .chip[aria-pressed="true"] { background: var(--agave); color: var(--agave-ink); }
[data-theme="dark"] .tools .chips.cats .chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.chip small { font-weight: 500; opacity: .7; margin-left: 4px; }
.result-line { margin: 20px 0 0; color: var(--ink-soft); min-height: 1.5em; }
.result-line button { margin-left: 8px; }

.cat { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(48px, 6vw, 96px); }
.cat-side { position: sticky; top: calc(var(--bar-h) + 190px); align-self: start; }
.cat-side h3 { font-size: clamp(34px, 3.6vw, 52px); }
.cat-side .blurb { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.cat-side .count { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.cat-img { margin-top: 22px; border-radius: var(--card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .8s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.04); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 18px 0; align-items: start; }
.item + .item { }
.item-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.item-desc { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.item-tags { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: 3px; }
.tag { font: 600 12.5px/1 var(--font-text); letter-spacing: 0; padding: 4px 8px; border-radius: var(--radius); background: var(--surface); color: var(--ink-soft); }
.tag.popular { background: var(--gold); color: var(--gold-ink); }
.tag.spicy { background: var(--terra); color: var(--terra-ink); }
.item-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.item-price small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.item-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.item-opts { font-size: 14px; color: var(--ink-soft); }
.add { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.add:hover { background: var(--terra); color: var(--terra-ink); }
.add:active { transform: scale(.94); }
.add.added { background: var(--ok); color: #fff; }
.item mark { background: var(--gold); color: var(--gold-ink); border-radius: 3px; padding: 0 2px; }
.empty { padding: 48px 0; display: grid; gap: 16px; justify-items: start; font-size: 18px; }
.noscript { padding: 24px; background: var(--surface); border-radius: var(--card); }

/* ---------- how ---------- */
.how { background: var(--terra); color: var(--terra-ink); padding: clamp(72px, 9vw, 140px) 0; }
[data-theme="dark"] .how { background: #3a1c12; color: var(--ink); }
.how-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.how h2 { font-size: clamp(38px, 4.8vw, 68px); max-width: 12ch; }
.how-steps { margin: 32px 0 36px; padding-left: 1.3em; display: grid; gap: 16px; font-size: 18px; max-width: 34em; }
.how-steps li::marker { font-family: var(--font-display); font-weight: 700; }
.how-fig { margin: 0; }
.how-fig img { width: 100%; border-radius: var(--card); aspect-ratio: 16 / 10; object-fit: cover; }
.how-fig figcaption { margin-top: 12px; font-size: 15px; opacity: .85; }

/* ---------- footer ---------- */
.foot { padding: clamp(64px, 8vw, 120px) 0 calc(48px + env(safe-area-inset-bottom)); background: var(--surface); }
.foot-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 11vw, 176px); line-height: .9; letter-spacing: -0.045em; color: var(--terra); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.foot-grid h3 { font-size: 24px; }
.foot-grid p { margin-top: 8px; }
.foot-grid a { font-weight: 600; text-decoration: none; color: var(--terra); }
.foot-grid a:hover { text-decoration: underline; }
.foot-notes { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); max-width: 60em; }
.foot-small { margin-top: 28px; font-size: 14px; color: var(--ink-soft); }
.foot-small a { color: var(--ink); font-weight: 600; }

/* ---------- order bar (phones) ---------- */
.order-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--terra); color: var(--terra-ink); font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px rgba(43, 26, 17, .28); transform: translateY(0); transition: transform .3s var(--ease); }
.order-bar b { font-variant-numeric: tabular-nums; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 8, .5); opacity: 0; transition: opacity .3s var(--ease); }
.scrim.on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(480px, 100%); background: var(--ground); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: -20px 0 50px rgba(20, 12, 8, .25); }
.drawer.on { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; background: var(--surface); }
.drawer-head h2 { font-size: 30px; }
.drawer-store { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.drawer-store a { color: var(--terra); font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px calc(28px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 0; }
.line + .line { border-top: 0; }
.line:nth-child(even) { }
.line-name { font-weight: 700; }
.line-det { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.line-ctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border-radius: var(--radius); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; font-size: 20px; cursor: pointer; transition: background-color .15s; }
.stepper button:hover { background: var(--surface-2); }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.remove { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 8px 0; }
.remove:hover { color: var(--bad); }
.cart-empty { display: none; padding: 20px 0; gap: 16px; justify-items: start; }
.cart-empty img { border-radius: var(--card); width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.drawer.is-empty .cart-empty { display: grid; }
.drawer.is-empty .checkout { display: none; }
.checkout { display: grid; gap: 14px; margin-top: 12px; padding-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 2px solid transparent; border-radius: 12px; background: var(--surface); padding: 12px 14px; font-size: 16px; font-weight: 400; resize: vertical; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); }
.field input.invalid { border-color: var(--bad); }
.totals { margin: 6px 0 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-size: 22px; font-weight: 800; font-family: var(--font-display); padding-top: 8px; }
.form-err { color: var(--bad); font-weight: 600; font-size: 15px; }
.fine { font-size: 13.5px; color: var(--ink-soft); }
.sheet-ok { margin: 14px 0 12px; font-size: 18px; }
.sheet-ok b { color: var(--terra); font-variant-numeric: tabular-nums; }
.sheet { margin: 0 0 16px; padding: 18px; background: var(--surface); border-radius: 14px; font: 500 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow: auto; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* ---------- customizer ---------- */
.custom { width: min(560px, calc(100% - 24px)); max-height: min(92vh, 860px); padding: 0; border: 0; border-radius: 22px; background: var(--ground); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 12, 8, .35); overflow: hidden; }
.custom[open] { display: flex; flex-direction: column; animation: pop .32s var(--ease); }
.custom::backdrop { background: rgba(20, 12, 8, .5); }
.custom form { display: flex; flex-direction: column; overflow: hidden; max-height: inherit; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.custom-media { flex-shrink: 0; }
.custom-media img { width: 100%; aspect-ratio: 16 / 7; max-height: 26vh; object-fit: cover; }
.custom-in { padding: 20px 22px 22px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.custom-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.custom-top h3 { font-size: 30px; }
.custom-desc { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.group { margin: 18px 0 0; padding: 0; border: 0; }
.group legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.group legend small { font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 15px; transition: background-color .15s, color .15s; }
.opt input:hover + span { background: var(--surface-2); }
.opt input:checked + span { background: var(--ink); color: var(--ground); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt span small { font-weight: 500; opacity: .75; }
.custom .field { margin-top: 18px; }
.custom-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.custom-foot .btn { flex: 1; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 80; background: var(--ink); color: var(--ground); padding: 12px 20px; border-radius: var(--radius); font-weight: 600; box-shadow: 0 10px 30px rgba(20, 12, 8, .3); animation: toast .3s var(--ease); max-width: calc(100% - 32px); }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

/* ---------- reveal motion ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .item.rv { transform: translateY(14px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .items { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
}
@media (max-width: 900px) {
  :root { --bar-h: 62px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 12ch; }
  .store-panel { grid-template-columns: minmax(0, 1fr); }
  .cat { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cat-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 6px 18px; align-items: end; }
  .cat-side .cat-img { grid-row: 1 / span 3; grid-column: 2; margin-top: 0; aspect-ratio: 1; }
  .how-in { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .brand span { font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .cart-label { display: none; }
  .cart-btn { padding: 0 6px 0 12px; }
  .store-pick select { max-width: 150px; padding-left: 12px; font-size: 14px; }
  .bar-in { gap: 10px; }
  .hero { padding-top: 16px; }
  .lede { margin-top: 24px; }
  .wheel { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; }
  .wheel-img { position: static; width: 100%; height: auto; aspect-ratio: 1; }
  .wheel .ring { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 calc(var(--margin) * -1); padding-left: var(--margin); padding-right: var(--margin); }
  .wheel .ring::-webkit-scrollbar { display: none; }
  .meat { position: static; translate: none; flex-shrink: 0; }
  .store-tabs { grid-template-columns: minmax(0, 1fr); }
  .store-tab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 16px; }
  .store-tab .t-name { font-size: 22px; }
  .store-tab .status { grid-row: 1 / span 2; grid-column: 2; margin-top: 0; }
  .map, .map iframe { min-height: 280px; }
  .tools { margin-top: 24px; padding: 10px 0; }
  .search input { height: 46px; }
  .item-name { font-size: 19px; }
  .order-bar { display: flex; }
  .order-bar[hidden] { display: none; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .custom { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 721px) { .wheel .ring { display: contents; } }
@media (max-width: 480px) {
  .bar-in { gap: 8px; }
  .brand { gap: 8px; flex-shrink: 1; min-width: 0; }
  .brand span b { display: none; }
  .bar-tools { gap: 6px; min-width: 0; }
  .store-pick { min-width: 0; }
  .store-pick select { max-width: 132px; font-size: 13.5px; padding: 0 30px 0 12px; background-position: right 11px center; }
  .icon-btn { width: 42px; height: 42px; }
  .cart-btn { padding: 0 5px 0 10px; gap: 6px; }
}
@media (max-width: 360px) { .brand span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print {
  .bar, .tools, .order-bar, .drawer, .scrim, .how, .wheel-wrap { display: none !important; }
}
