.shell { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 150px; background: var(--plaster); }

.shell.nodock { padding-bottom: 40px; }

/* The one bold move: a shopfront. Espresso louvred shutters with a tan-framed sign holding the logo. */
.shopfront {
  background:
    repeating-linear-gradient(90deg, var(--shutter) 0 16px, var(--shutter-deep) 16px 19px);
  padding: 22px 18px 20px;
  color: var(--plaster);
}
.sign {
  background: var(--shutter);
  color: var(--wall-soft);
  border-radius: 10px;
  padding: 16px 18px 14px;
  box-shadow: inset 0 0 0 3px var(--shutter), inset 0 0 0 5px var(--wall);
  text-align: center;
}
.sign-logo { width: min(250px, 70%); height: auto; margin: 0 auto 4px; display: block; }
.sign h1 { font-size: clamp(30px, 9vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.sign p { margin-top: 6px; font-weight: 600; font-size: 14px; }
.open-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding: 8px 14px; font-weight: 600; font-size: 15px;
  background: rgba(46, 30, 23, 0.92); border-radius: 999px; width: fit-content; margin-inline: auto;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cane); flex: none; }
.dot.closed { background: var(--chili); }

.catbar {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 14px 0; background: var(--plaster); border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.catbar button {
  flex: none; background: none; border: 0; padding: 8px 12px 10px; font-weight: 700; color: var(--ink-soft);
  border-bottom: 4px solid transparent; margin-bottom: -1px;
}
.catbar button[aria-current='true'] { color: var(--ink); border-bottom-color: var(--wall); }

.banner { margin: 14px 14px 0; padding: 12px 16px; border-radius: var(--radius); background: #f8d9d4; color: #6d1a10; font-weight: 600; }

.menu-section { padding: 22px 16px 4px; scroll-margin-top: 56px; }
.menu-section h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }

.dish {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left;
  background: none; border-left: 0; border-right: 0; border-top: 0;
}
.dish:last-child { border-bottom: 0; }
.dish-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; line-height: 1.25; }
.dish-local { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.dish-desc { color: var(--ink-soft); font-size: 14px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-price { font-weight: 800; margin-top: 8px; }
.dish-art { position: relative; }
.dish-art .plus {
  position: absolute; right: -6px; bottom: -8px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--shutter); color: var(--plaster); display: grid; place-items: center;
  font-size: 24px; font-weight: 700; line-height: 1; border: 3px solid var(--plaster);
}
.dish.sold { opacity: 0.55; cursor: not-allowed; }
.dish.sold .plus { display: none; }

.veg { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 2px solid var(--cane); border-radius: 3px; flex: none; }
.veg::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cane); }
.veg.non { border-color: #8a4b1e; }
.veg.non::after { background: #8a4b1e; }

/* Bottom dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; padding-bottom: env(safe-area-inset-bottom); }
.dock-inner { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; padding: 0 12px 10px; pointer-events: auto; }
.cartbar { justify-content: space-between; min-height: 54px; font-size: 16px; box-shadow: 0 6px 18px rgba(42, 27, 20, 0.25); }
.tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: 0 4px 14px rgba(42, 27, 20, 0.12); }
.tabs a { text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.tabs a[aria-current='page'] { background: var(--shutter); color: var(--plaster); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wall); margin-left: 6px; }

/* Sheets */
dialog.sheet {
  width: 100%; max-width: 640px; margin: auto auto 0; max-height: 92vh; overflow: auto;
  border-radius: 24px 24px 0 0; padding: 0;
}
dialog.sheet[open] { animation: sheet-in 0.22s ease-out; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 8px; }
.sheet-head h2 { font-size: 22px; font-weight: 800; flex: 1; line-height: 1.2; }
.sheet-body { padding: 8px 18px 18px; display: grid; gap: 18px; }
.sheet-foot { position: sticky; bottom: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--plaster); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.close-x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font-size: 20px; line-height: 1; }

fieldset.opts { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.opts legend { font-weight: 800; font-size: 16px; padding: 0; margin-bottom: 8px; }
fieldset.opts legend small { font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--shutter); background: #F3E8D8; }
.opt:has(input:focus-visible) { outline: 3px solid var(--wall); outline-offset: 2px; }
.opt input { accent-color: var(--shutter); width: 20px; height: 20px; flex: none; }
.opt span:first-of-type { flex: 1; font-weight: 600; }
.opt small { color: var(--ink-soft); font-weight: 600; }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; font-weight: 700; border-radius: 50%; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }

.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .stepper { justify-self: start; }
.cart-line .name { font-weight: 700; }
.cart-line .meta { color: var(--ink-soft); font-size: 14px; }
.cart-line .gone { color: var(--chili); font-weight: 600; font-size: 14px; }
.bill { display: grid; gap: 6px; }
.bill div { display: flex; justify-content: space-between; }
.bill .grand { font-weight: 800; font-size: 19px; padding-top: 8px; border-top: 2px solid var(--ink); margin-top: 4px; }
.bill .soft { color: var(--ink-soft); font-size: 15px; }

/* Pages */
.page { padding: 18px 16px; display: grid; gap: 18px; }
.page-head { display: flex; align-items: center; gap: 12px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.back { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; font-size: 20px; text-decoration: none; color: var(--ink); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #EADCC8; padding: 4px; border-radius: 999px; }
.seg label { text-align: center; padding: 10px 4px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; }
.seg label:has(input:checked) { background: var(--shutter); color: var(--plaster); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--wall); outline-offset: 2px; }

/* Tracking */
.track-head { display: grid; gap: 4px; }
.track-head .code { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.track-head h1 { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0 10px 0; color: var(--ink-soft); font-weight: 600; }
.steps li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); flex: none; z-index: 1;
}
.steps li::after { content: ''; position: absolute; left: 10px; top: 32px; width: 3px; height: calc(100% - 22px); background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--shutter); border-color: var(--shutter); }
.steps li.done::after { background: var(--shutter); }
.steps li.now { color: var(--ink); font-weight: 800; }
.steps li.now::before { background: var(--wall); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(217, 191, 166, 0.6); }
.steps small { margin-left: auto; font-weight: 500; }

.hist { display: grid; gap: 12px; }
.hist-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.hist-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hist-items { color: var(--ink-soft); font-size: 15px; }
.hist-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 16px; display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: 22px; font-weight: 800; }
.empty p { color: var(--ink-soft); max-width: 32ch; }
.demo-note { background: var(--wall-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.skeleton { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, #EADCC8, #F3E9D9, #EADCC8); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; margin: 14px 16px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (min-width: 700px) {
  body { background: #E8DAC5; }
  .shell { box-shadow: 0 0 0 1px var(--line); }
  dialog.sheet { margin: auto; border-radius: 24px; }
}

/* ---------- accounts, rewards and offers ---------- */
.small-note { color: var(--ink-soft); font-size: 14px; }
.small-note.bad { color: var(--chili); font-weight: 600; }
.bill .saving { color: #3d5a10; font-weight: 700; }
.linkish { background: none; border: 0; padding: 0; color: var(--shutter); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.grid-gap { display: grid; gap: 14px; }
.member { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--wall-soft); font-weight: 600; font-size: 15px; }
.member.join { background: var(--paper); border: 2px dashed var(--wall); }
.code-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.opt.consent { align-items: flex-start; }
.opt.consent span { font-weight: 500; font-size: 15px; }
.h-sm { font-size: 19px; font-weight: 800; }
.h-join { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.stampcard { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.stampcard span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--wall); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.stampcard span.on { border: 0; background: var(--shutter) url('/mark.svg') center / 70% no-repeat; }
.stampcard span.free { border: 2px solid var(--shutter); background: var(--wall); color: var(--ink); }
.refcode { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--wall-soft); }
.refcode b { font-size: 22px; letter-spacing: 0.08em; }
.linkcard { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.linkcard span { color: var(--shutter); font-weight: 700; }
.welcome { text-align: center; justify-items: center; }
.welcome h1 { font-size: 28px; font-weight: 800; }
.offer-code { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 10px; background: var(--wall); font-size: 20px; letter-spacing: 0.08em; }
.perks { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 600; }

.counter-code { display: grid; gap: 2px; text-align: center; margin-top: 10px; }
.counter-code b { font-size: 34px; font-weight: 800; letter-spacing: 0.12em; }
.counter-code span { font-size: 14px; color: var(--ink-soft); }

.rate-card { border: 2px solid var(--wall); }
.fb-form { display: grid; gap: 16px; }
.stars { display: flex; gap: 6px; justify-content: center; }
.star { border: 0; background: none; font-size: 44px; line-height: 1; color: var(--line); cursor: pointer; padding: 4px; }
.star.on { color: #e2a52b; }
.fb-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fb-tag { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.fb-tag.on { border-color: var(--shutter); background: var(--shutter); color: var(--plaster); }
.apology { display: grid; gap: 4px; justify-items: center; background: var(--cane-soft); border-radius: 14px; padding: 14px; margin: 8px 0 14px; }
.apology b { font-size: 28px; letter-spacing: 0.08em; }

.store-line { display: inline-flex; gap: 6px; align-items: baseline; margin-top: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.store-list { display: grid; gap: 10px; padding: 4px 18px 20px; }
.store-opt { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: inherit; cursor: pointer; }
.store-opt.on { border: 2px solid var(--shutter); }
.store-opt span { color: var(--ink-soft); font-size: 14px; }
