/* Naoki's Place — design tokens and site styles.
   The look follows iPhone conventions: system type, black canvas, grouped cards,
   one accent colour, a tab bar and bottom sheets. Change the look centrally in :root. */
:root {
  --black: #000000;          /* page */
  --plate: #1c1c1e;          /* grouped cards and sheets */
  --fill: #2c2c2e;           /* controls resting on a card */
  --fill-2: #3a3a3c;         /* pressed / selected segment */
  --line: #38383a;           /* hairlines */
  --foam: #ffffff;           /* primary text */
  --dim: #a1a1a8;            /* secondary text */
  --mustard: #ffd60a;        /* the one action colour (the yellow of the menu board) */
  --red: #ff453a;            /* warnings and errors only */
  --palm: #30d158;           /* "open" and "ready" only */
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-chip: 12px; --r-btn: 14px; --r-img: 22px;
  --pad: 16px; --page: 720px;
  --top-h: 52px; --tab-h: 54px;
  --blur: saturate(180%) blur(20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + env(safe-area-inset-top) + 62px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--foam); font: 400 17px/1.4 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
img, picture, video { display: block; max-width: 100%; }
picture > img { width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--mustard); color: #000; padding: 12px 16px; border-radius: var(--r-btn); font-weight: 600; }
.skip:focus { top: 12px; }
.ic { flex: none; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: 22px; }
h2.big { font-size: 34px; letter-spacing: -0.028em; }
.card { background: var(--plate); border-radius: var(--r-img); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border-radius: var(--r-btn); border: 0; font-weight: 600; font-size: 17px; line-height: 1.15; text-decoration: none; text-align: center; transition: opacity .15s ease, transform .15s ease; }
.btn:active { opacity: .7; transform: scale(.985); }
.btn .ic { width: 20px; height: 20px; }
.btn-main { background: var(--mustard); color: #000; }
.btn-line, .btn-quiet, .btn-soft { background: var(--fill); color: var(--foam); }
.btn-danger { background: var(--fill); color: #ff6961; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-wide { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--foam); }
.icon-btn .ic { width: 22px; height: 22px; }
.count { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mustard); color: #000; font: 700 12px/20px var(--body); text-align: center; }

/* ---------- preview banner ---------- */
.preview { position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--fill); font-size: 14px; font-weight: 500; text-align: center; }
.preview button { background: var(--foam); color: #000; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px; min-height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: .5px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; flex: none; }
.top-nav, .top-cart { display: none; }
.top-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--dim); }
.lang { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 999px; background: var(--fill); }
.lang:focus-within { outline: 3px solid var(--mustard); outline-offset: 2px; }
.lang-ic .ic { width: 16px; height: 16px; display: block; margin-right: 5px; color: var(--dim); }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 0; font-weight: 600; font-size: 14px; outline: none; cursor: pointer; }
.lang select option { background: #1c1c1e; color: #fff; }
.top-cart { position: relative; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fill); }
.top-cart .ic { width: 20px; height: 20px; }

.notice { margin: 12px var(--pad) 0; padding: 12px 14px; background: var(--plate); border-radius: var(--r-btn); font-weight: 500; font-size: 15px; text-align: center; }

/* ---------- page frame ---------- */
main { max-width: var(--page); margin: 0 auto; }
main > section { padding: 36px max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
main > section > h2 { margin-bottom: 12px; }

/* ---------- hero ---------- */
main > section.hero { padding-top: 14px; }
.hero-card { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--plate); }
.hero-card picture { width: 100%; height: 100%; }
.hero-card img { object-position: 50% 0; }
.status { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(28, 28, 30, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 14px; font-weight: 600; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #8e8e93; flex: none; }
.status.is-open .dot { background: var(--palm); }
.hero-text { padding-top: 18px; }
.hero h1 { font-size: 34px; letter-spacing: -0.03em; }
.hero-tag { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--mustard); }
.hero-line { margin-top: 8px; color: var(--dim); max-width: 34em; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hero-cta .btn:only-child { grid-column: 1 / -1; }
.again { margin-top: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.again p { flex: 1 1 180px; color: var(--dim); font-size: 15px; }
.again strong { display: block; color: var(--foam); font-weight: 600; }
.again .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; background: var(--mustard); color: #000; border-radius: 999px; }

/* ---------- rails (side-scrolling rows of cards) ---------- */
.rail { display: flex; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 43%; max-width: 190px; scroll-snap-align: start; }
.fav a { display: block; text-decoration: none; }
.fav picture, .shot picture { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--plate); }
.fav-name { display: grid; gap: 1px; margin-top: 8px; font-weight: 600; font-size: 16px; line-height: 1.2; }
.fav-from { font-weight: 400; font-size: 14px; color: var(--dim); }
.reel-video { position: relative; border-radius: 18px; overflow: hidden; background: var(--plate); align-self: stretch; }
.reel-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; left: 8px; right: 8px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(28, 28, 30, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #fff; font-weight: 600; font-size: 14px; }
.reel-play .ic { width: 16px; height: 16px; }
.reel-video.is-playing .reel-play { display: none; }

/* ---------- menu ---------- */
.menu-note { margin-top: -6px; color: var(--dim); font-size: 15px; }
.cats { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 20; display: flex; gap: 8px; margin: 12px calc(var(--pad) * -1) 0; padding: 10px var(--pad); overflow-x: auto; scrollbar-width: none; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--fill); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cats a.is-here { background: var(--foam); color: #000; }
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-top: 4px; padding: 14px 16px; }
.legend dt { font-weight: 600; font-size: 15px; }
.legend dd { color: var(--dim); font-size: 14px; line-height: 1.3; }
.cat { padding-top: 28px; }
.cat h3 { font-size: 22px; margin: 0 0 10px 2px; }
.items { background: var(--plate); border-radius: var(--r-img); padding: 0 14px; }
.item { display: grid; grid-template-columns: 1fr; gap: 10px 12px; align-items: center; padding: 14px 0; border-bottom: .5px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item.has-img { grid-template-columns: 56px 1fr; }
.item-img picture, .item-img > img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; object-fit: cover; background: var(--fill); }
.item-text h4 { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.item-text p { color: var(--dim); font-size: 15px; line-height: 1.3; }
.item .chips, .item .item-ask { grid-column: 1 / -1; }
.item.few { grid-template-columns: 1fr auto; }
.item.few.has-img { grid-template-columns: 56px 1fr auto; }
.item.few .chips { grid-column: auto; grid-template-columns: repeat(var(--n, 1), 72px); }
.item-ask { color: var(--dim); font-size: 15px; font-weight: 500; padding: 9px 14px; background: var(--fill); border-radius: 999px; justify-self: start; }
.item.is-off .item-text { opacity: .5; }
.chips { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.chips[style*="--n:1"] { grid-template-columns: minmax(0, 120px); }
.chips[style*="--n:2"] { grid-template-columns: repeat(2, minmax(0, 120px)); }
.chip { position: relative; display: grid; gap: 0; justify-items: center; align-content: center; min-height: 54px; padding: 6px 4px 7px; border: 0; border-radius: var(--r-chip); background: var(--fill); color: var(--foam); transition: background-color .15s ease, transform .15s ease; }
.chip:active { transform: scale(.95); background: var(--fill-2); }
.chip-l { font-size: 12px; font-weight: 500; color: var(--dim); line-height: 1.25; }
.chip-p { font: 700 19px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--mustard); color: #000; }
.chip.on .chip-l { color: rgba(0, 0, 0, .66); }
.chip-q { position: absolute; top: -7px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--foam); color: #000; box-shadow: 0 0 0 2.5px var(--plate); font: 700 12px/22px var(--body); }
.chip-none { display: grid; place-items: center; min-height: 54px; border-radius: var(--r-chip); background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: #636366; }
.chip-none::before { content: "\2013"; }
.chip.bump { animation: bump .26s ease; }
@keyframes bump { 45% { transform: scale(1.07); } }

/* ---------- find the truck ---------- */
.visit-card { overflow: hidden; }
.visit-photo { aspect-ratio: 16 / 10; background: var(--fill); }
.visit-photo picture { width: 100%; height: 100%; }
.rows { padding: 0 14px; }
.fact { display: grid; grid-template-columns: 32px 1fr auto; gap: 0 12px; align-items: center; padding: 12px 0; border-bottom: .5px solid var(--line); text-decoration: none; }
.fact:last-child { border-bottom: 0; }
.fact-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--fill); color: var(--mustard); grid-row: span 2; align-self: start; margin-top: 2px; }
.fact-ic .ic { width: 18px; height: 18px; }
.fact h3 { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.fact p, .fact table { grid-column: 2; color: var(--dim); font-size: 15px; }
.fact-go { grid-column: 3; grid-row: 1 / span 2; color: #636366; }
.fact-go .ic { width: 18px; height: 18px; transform: rotate(180deg); }
.fact table { border-collapse: collapse; }
.fact td { padding: 1px 16px 1px 0; }
.fact td:last-child { color: var(--foam); font-variant-numeric: tabular-nums; }
.todo { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(255, 214, 10, .16); color: var(--mustard); font-size: 13px; font-weight: 600; }
.visit-sign { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 10px; }
.visit-sign picture { aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.visit-sign figcaption { color: var(--dim); font-size: 15px; padding-right: 6px; }

/* ---------- about and app ---------- */
.about-card { overflow: hidden; }
.about-photo picture { aspect-ratio: 16 / 11; }
.about-photo img { object-position: 50% 22%; }
.about-text { padding: 16px; }
.about-text p { margin-top: 6px; color: var(--dim); }
.app-card { display: grid; grid-template-columns: 56px 1fr; gap: 12px 14px; align-items: center; padding: 16px; }
.app-card > img { width: 56px; height: 56px; border-radius: 13px; }
.app-card h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.app-card p { margin-top: 3px; color: var(--dim); font-size: 15px; }
.app-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.app-actions .btn { flex: 1 1 150px; }

/* ---------- footer ---------- */
.foot { margin-top: 44px; padding: 28px 16px calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 10px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.foot nav a { padding: 10px 10px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--dim); }
.foot-small { color: #8e8e93; font-size: 13px; }
.foot-admin { display: inline-block; padding: 10px 12px; color: inherit; text-decoration: none; cursor: default; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); background: rgba(22, 22, 24, .78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: .5px solid var(--line); }
.tabbar > * { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: var(--tab-h); padding: 6px 2px 4px; border: 0; background: none; color: #8e8e93; text-decoration: none; font-size: 11px; font-weight: 500; line-height: 1.2; }
.tabbar .ic { width: 25px; height: 25px; }
.tabbar .is-here { color: var(--mustard); }
.tabbar .count { top: 3px; right: calc(50% - 24px); }

/* ---------- order bar ---------- */
.cartbar { position: fixed; z-index: 44; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px; border: 0; border-radius: 16px; background: var(--mustard); color: #000; font-weight: 600; font-size: 17px; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
.cartbar-n { justify-self: start; font-size: 15px; font-weight: 500; }
.cartbar-t { justify-self: end; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.cartbar.is-track { background: rgba(44, 44, 46, .88); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--foam); }
.cartbar.is-ready { background: var(--palm); color: #000; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* ---------- sheet (order, details, status, help) ---------- */
.sheet { width: 100%; max-width: none; height: auto; max-height: calc(100dvh - 44px - env(safe-area-inset-top)); margin: auto 0 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--plate); color: var(--foam); overflow: hidden; }
.sheet[open] { animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
.sheet[open]::backdrop { animation: fade .25s ease; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-in { display: grid; grid-template-rows: auto 1fr auto; max-height: inherit; }
.sheet-head { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; padding: 18px 8px 6px; }
.sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #48484a; }
.sheet-head h2 { grid-column: 2; font-size: 17px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
.sheet-head #sheet-close { grid-column: 3; }
.sheet-head .icon-btn { width: 32px; height: 32px; margin: 6px; background: var(--fill); color: var(--dim); }
.sheet-head .icon-btn .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.sheet-body { overflow-y: auto; padding: 10px 16px 20px; overscroll-behavior: contain; min-height: 120px; }
.sheet-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; border-top: .5px solid var(--line); }
.sheet-foot:empty { display: none; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.sum b { font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.empty { padding: 36px 8px; text-align: center; color: var(--dim); }

.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: .5px solid var(--line); }
.line:first-child { padding-top: 4px; }
.line h3 { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
.line-sub { color: var(--dim); font-size: 15px; font-weight: 400; }
.line-price { font: 600 17px var(--display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line-tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.step { display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill); }
.step button { width: 44px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 999px; }
.step button .ic { width: 18px; height: 18px; }
.step span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.link { background: none; border: 0; padding: 10px 2px; color: var(--mustard); font-weight: 500; font-size: 15px; }
.line input { grid-column: 1 / -1; margin-top: 6px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, fieldset > legend { font-weight: 600; font-size: 15px; padding: 0; }
.field small { color: var(--dim); font-size: 13px; }
.input, .line input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 0; border-radius: var(--r-chip); background: var(--fill); color: var(--foam); font-size: 17px; }
.input::placeholder, .line input::placeholder { color: #7c7c82; }
textarea.input { min-height: 76px; resize: vertical; }
.input:focus, .line input:focus { outline: 2px solid var(--mustard); outline-offset: 0; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--red); }
.err { color: #ff6961; font-size: 14px; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; margin-top: 8px; padding: 3px; border-radius: 12px; background: var(--fill); }
.choice label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 9px; font-weight: 600; font-size: 15px; text-align: center; line-height: 1.2; cursor: pointer; color: var(--dim); }
.choice label .ic { width: 18px; height: 18px; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { background: #636366; color: var(--foam); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--mustard); outline-offset: 1px; }
.hint { color: var(--dim); font-size: 14px; }
.banner-err { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-chip); background: rgba(255, 69, 58, .16); color: #ff8a82; font-weight: 500; font-size: 15px; }

.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.picks label { position: relative; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: 15px; cursor: pointer; }
.picks input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.picks label:has(input:checked) { background: var(--mustard); color: #000; }
.picks label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.picks label:has(input:focus-visible) { outline: 3px solid var(--mustard); outline-offset: 2px; }

.track { text-align: center; padding: 6px 0 2px; }
.track-code { font: 800 clamp(60px, 22vw, 92px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.track-state { margin-top: 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.track-help { margin-top: 4px; color: var(--dim); }
.track.is-ready .track-code, .track.is-ready .track-state { color: var(--palm); }
.track.is-cancelled .track-code { color: #636366; text-decoration: line-through; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; max-width: 260px; margin: 18px auto 4px; }
.steps span { height: 5px; border-radius: 3px; background: var(--fill-2); }
.steps span.on { background: var(--mustard); }
.track.is-ready .steps span.on { background: var(--palm); }
.receipt { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--fill); text-align: left; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 16px; }
.receipt li span:last-child { white-space: nowrap; color: var(--dim); font-variant-numeric: tabular-nums; }
.receipt small { display: block; color: var(--dim); font-size: 14px; }
.receipt .sum { margin-top: 8px; padding-top: 10px; border-top: .5px solid #48484a; }
.help-steps { display: grid; gap: 14px; counter-reset: s; margin: 6px 0 20px; }
.help-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; counter-increment: s; }
.help-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mustard); color: #000; font-weight: 700; font-size: 15px; }

/* Where the browser can animate a closing dialog, the sheet slides away instead of vanishing. */
@supports (overlay: auto) and (transition-behavior: allow-discrete) {
  .sheet { transform: translateY(100%); transition: transform .26s cubic-bezier(.4, 0, 1, 1), overlay .26s allow-discrete, display .26s allow-discrete; }
  .sheet[open] { transform: none; animation: none; transition-duration: .34s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
  .sheet::backdrop { background: rgba(0, 0, 0, 0); transition: background-color .26s ease, overlay .26s allow-discrete, display .26s allow-discrete; }
  .sheet[open]::backdrop { background: rgba(0, 0, 0, .5); animation: none; }
  @starting-style { .sheet[open]::backdrop { background: rgba(0, 0, 0, 0); } }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

@media (hover: hover) {
  .btn-main:hover { filter: brightness(1.08); }
  .btn-line:hover, .btn-quiet:hover, .btn-soft:hover, .btn-danger:hover, .cats a:hover, .chip:hover, .top-nav a:hover { background: var(--fill-2); }
  .top-nav a:hover { color: var(--foam); }
  .chip.on:hover { background: var(--mustard); filter: brightness(1.08); }
  .cats a.is-here:hover { background: var(--foam); }
  .foot nav a:hover { color: var(--foam); }
}
@media (max-width: 359px) { .hero-cta { grid-template-columns: 1fr; } }

/* ---------- larger screens: same app, centred, with a top menu instead of the tab bar ---------- */
@media (min-width: 760px) {
  :root { --pad: 24px; --top-h: 60px; }
  .tabbar { display: none; }
  .top-nav { display: flex; gap: 2px; }
  .top-cart { display: inline-grid; }
  .top { padding-left: max(24px, calc(50vw - 420px)); padding-right: max(24px, calc(50vw - 420px)); }
  main > section { padding-top: 48px; }
  main > section.hero { padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  .hero-text { padding-top: 0; }
  .hero h1 { font-size: 48px; }
  .hero-tag { font-size: 20px; }
  .rail > * { flex-basis: 180px; }
  .legend { grid-template-columns: repeat(4, 1fr); }
  .item, .item.has-img { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; }
  .item:not(.has-img) .item-text { grid-column: 1 / 3; }
  .item .chips, .item .item-ask { grid-column: 3; justify-self: end; }
  .chips, .chips[style*="--n:1"], .chips[style*="--n:2"] { grid-template-columns: repeat(var(--n, 4), 82px); }
  .about-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .about-photo picture { aspect-ratio: 5 / 4; }
  .about-text { padding: 28px; }
  .app-card { grid-template-columns: 56px 1fr auto; }
  .app-actions { grid-column: auto; flex-wrap: nowrap; }
  .app-actions .btn { flex: 0 0 auto; }
  .foot { padding-bottom: 110px; }
  .cartbar { left: auto; right: 28px; bottom: 28px; width: 360px; }
  .sheet { width: 480px; margin: auto; border-radius: 26px; max-height: min(760px, calc(100dvh - 64px)); }
  .sheet[open] { animation: fade .2s ease; }
  @supports (overlay: auto) and (transition-behavior: allow-discrete) {
    .sheet { transform: translateY(16px); opacity: 0; transition: transform .2s ease, opacity .2s ease, overlay .2s allow-discrete, display .2s allow-discrete; }
    .sheet[open] { transform: none; opacity: 1; animation: none; }
    @starting-style { .sheet[open] { transform: translateY(16px); opacity: 0; } }
  }
  .sheet-head::before { display: none; }
  .sheet-head { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
