:root {
  color-scheme: light;
  --ink: #14110f;
  --ink-secondary: #46413c;
  --muted: #6b655f;
  --paper: #fffefb;
  --surface: #fff;
  --canvas: #f8f6f1;
  --line: #dedad4;
  --line-strong: #aba49c;
  --accent: #f97316;
  --accent-deep: #b84512;
  --accent-soft: #fff1e7;
  --btn: #222;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --motion-fast: 130ms;
  --motion-normal: 210ms;
  --ease-out: cubic-bezier(.2,.75,.22,1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
:is(button, a, select, input, textarea, summary):focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
button:disabled { cursor: default; opacity: .55; }
svg { flex: none; vertical-align: middle; }
::selection { background: #ffdbbf; color: var(--ink); }

#topbar {
  position: sticky; top: 0; z-index: 8;
  background: rgb(255 254 251 / .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.bar-inner, #main { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.bar-inner { height: 64px; display: flex; align-items: center; gap: clamp(18px,3.4vw,52px); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.14rem; font-weight: 720; letter-spacing: -.035em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.desktop-nav, .bar-right, .account, .location { display: flex; align-items: center; }
.desktop-nav { flex: 0 1 490px; min-width: 0; }
.nav-rail { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(var(--nav-count),minmax(0,1fr)); width: 100%; }
.nav-cursor { position: absolute; z-index: -1; inset: 0 auto 0 calc(100% / var(--nav-count) * var(--nav-index,0)); width: calc(100% / var(--nav-count)); pointer-events: none; border-radius: 8px; background: #faecdf; box-shadow: inset 0 0 0 1px #efdfcf; transition: left var(--motion-normal) var(--ease-out); }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; padding: 8px 12px; border-radius: 7px; font-size: .9rem; color: var(--ink-secondary); }
.nav-link { transition: color var(--motion-fast), background-color var(--motion-fast); }
.nav-link.active { color: #934216; font-weight: 650; }
@media (hover:hover) and (pointer:fine) {
  .nav-link:not(.active):hover { background: var(--canvas); }
}
.bar-right { margin-left: auto; gap: 14px; }
.location, .account { white-space: nowrap; font-size: .86rem; gap: 6px; }
.location { color: var(--muted); min-height: 40px; }
.location:hover { color: var(--accent-deep); }
.bar-rule { background: var(--line); width: 1px; height: 20px; }
.account { font-weight: 600; padding: 5px 0 5px 2px; }
.avatar { display: inline-grid; place-items: center; }
.main-avatar { width: 29px; height: 29px; border: 1px solid #e6d9c7; border-radius: 50%; background: #f7ecdb; color: #60472d; font-size: .8rem; }
#main { padding-top: clamp(20px,2.2vw,34px); }
#mobile-nav { display: none; }

/* The lunch spread keeps the restaurant photography and daily table foremost. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(26px,3.3vw,49px);
  background: linear-gradient(104deg,#f9f5ed 24%,#f5e9d8 74%,#f5d7b8);
  border: 1px solid #e7dece; border-radius: 14px;
}
.hero-copy, .hero-index { position: relative; z-index: 1; width: fit-content; max-width: 59%; }
.hero-date { display: flex; align-items: center; gap: 9px; color: #73573e; font: 500 .77rem/1.4 var(--mono); }
.hero-date::before { content: ""; width: 22px; height: 1px; background: #b37d53; }
.hero-date span { font-family: inherit; }
.hero h1 { margin: 14px 0 11px; font: 650 clamp(2.8rem,4.5vw,4.7rem)/1.12 "Songti SC","STSong","Noto Serif CJK SC",serif; letter-spacing: -.065em; }
.hero h1 em { color: #9d482a; font-style: normal; }
.hero-heading p { margin: 0; color: #63594d; font-size: .94rem; line-height: 1.6; overflow-wrap: anywhere; }
.hero-heading p a { margin-inline: .18em; color: #3d332a; text-decoration: underline; text-decoration-color: #bfb1a0; text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 23px; }
.action-primary, .action-second, .action-note, .ticket-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 43px;
  padding: 8px 15px; border-radius: 6px; font-size: .89rem; line-height: 1.4; font-weight: 600;
}
.action-primary { background: var(--btn); color: #fff; border: 1px solid var(--btn); }
.action-primary:hover { background: #070605; }
.action-second { color: var(--ink); background: #fffefa; border: 1px solid #c9c0b4; }
.action-second:hover { background: white; border-color: #9b8b7a; }
.action-note { color: var(--ink-secondary); padding-inline: 9px; }
.action-note:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-art {
  position: absolute; z-index: 0; right: 2%; top: 50%; height: 100%; max-width: 49%; aspect-ratio: 1.54;
  transform: translateY(-50%); pointer-events: none; background: url('assets/hero-wide.webp') center / cover no-repeat;
  mix-blend-mode: multiply; filter: saturate(.84) contrast(1.05) brightness(1.08);
  mask-image: linear-gradient(90deg,transparent,#000 13%,#000 87%,transparent);
}
.hero-index { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 17px; }
.hero-index a { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; color: #61574c; font-size: .78rem; }
.hero-index strong { font-weight: 520; font-variant-numeric: tabular-nums; }
.hero-index svg { color: #986648; }
.hero-index a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.lunch-layout { display: grid; grid-template-columns: minmax(0,2.65fr) minmax(225px,1fr); gap: clamp(22px,2.8vw,42px); margin-top: clamp(25px,2.6vw,38px); }
.picks, .tables { min-width: 0; }
.section-line { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 35px; }
.section-line h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.3rem; line-height: 1.4; font-weight: 670; letter-spacing: -.025em; }
.heading-icon { display: inline-grid; place-items: center; color: #9c583b; }
.quiet-btn, .directory-source { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-secondary); }
.quiet-btn { min-height: 36px; padding: 3px 1px; }
.quiet-btn:hover, .directory-source:hover { color: var(--accent-deep); }
.directory-source { text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 11px 0 15px; }
.taste-filters { display: flex; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.filter { flex: none; padding: 7px 9px; border-radius: 5px; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.filter.picked { background: #332c25; color: white; }
.filter:not(.picked):hover { background: var(--canvas); color: var(--ink); }
.taste-filters :focus-visible { outline-offset: -2px; }
.mall-select { display: inline-flex; align-items: center; position: relative; flex: none; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-secondary); font-size: .8rem; }
.mall-select select { appearance: none; max-width: 98px; padding: 7px 16px 7px 0; line-height: 1.4; border: 0; background: none; color: inherit; }
.mall-select>svg:last-child { position: absolute; right: 8px; pointer-events: none; }

.food-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.4vw,22px); }
.food-card { position: relative; display: flex; min-width: 0; }
.food-open { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; border-radius: 8px; }
.food-image { position: relative; display: block; width: 100%; aspect-ratio: 1.72; overflow: hidden; border-radius: 8px; background: #f2eee7; }
.food-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s; }
.food-image picture {display:block;width:100%;height:100%}
@media (hover:hover) and (pointer:fine) {
  .food-open:hover .food-image img { transform: scale(1.035); }
}
.illustration-caption { position: absolute; bottom: 5px; right: 6px; padding: 2px 5px; border-radius: 3px; color: #fff; background: rgb(30 22 14 / .73); font-size: .62rem; line-height: 1.35; }
.food-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; width: 100%; padding: 10px 0 2px; }
.food-kind { color: var(--accent-deep); font-size: .73rem; line-height: 1.45; }
.food-title { font-size: clamp(1.04rem,1.25vw,1.18rem); line-height: 1.45; font-weight: 670; margin: 3px 0 6px; overflow-wrap: anywhere; letter-spacing: -.025em; }
.food-open:hover .food-title { color: var(--accent-deep); }
.food-where { margin-top: auto; padding-right: 60px; min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.food-where i { width: 2px; height: 2px; background: #a59b90; }
.vote { position: absolute; bottom: 2px; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 9px; min-height: 32px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink-secondary); white-space: nowrap; font-size: .77rem; font-variant-numeric: tabular-nums; }
.vote { transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast); }
.vote.is-voted { border-color: #ce9470; color: #8e401a; background: #fff0e2; }
@media (hover:hover) and (pointer:fine) {
  .vote:not(.is-voted):hover { border-color: #c3aa94; background: #fcf8f1; }
}
.vote-summary:empty, .picks [hidden] { display:none; }
.vote-receipt { display:flex; align-items:center; gap:8px; margin-top:12px; padding:3px 10px; min-height:36px; border:1px solid #eadbcb; border-radius:7px; background:#fcf7ef; color:#805434; font-size:.8rem; }
.vote-receipt span { flex:1; color:#675a4d; overflow-wrap:anywhere; }
.vote-receipt strong { margin-inline-start:4px; color:#47382a; font-weight:600; }
.vote-receipt button { align-self:stretch; flex:none; color:#73452a; padding-inline:6px; text-decoration:underline; text-underline-offset:3px; }
.menu-art { --cloth:#e8d7bc; --stripe:#d6bd98; --glaze:#f9f1df; position:relative; isolation:isolate; overflow:hidden; height:100%; display:grid; place-items:center; color:#8b643d; background:linear-gradient(135deg,#ffffff40,transparent 65%),var(--cloth); }
.menu-sage { --cloth:#dbe3d4; --stripe:#c4cfbb; --glaze:#f4f5e8; color:#5c715a; }
.menu-chili { --cloth:#efcfb8; --stripe:#dcb297; --glaze:#fcf0e1; color:#95573b; }
.menu-stone { --cloth:#dddcd5; --stripe:#c5c3b9; --glaze:#f5f2e9; color:#6d675d; }
.menu-art::before { content:""; position:absolute; z-index:-1; left:-12%; top:-25%; width:53%; height:160%; rotate:22deg; background:repeating-linear-gradient(90deg,var(--stripe) 0 2px,transparent 2px 7px); opacity:.7; }
.menu-plate { height:75%; aspect-ratio:1; display:grid; place-items:center; border:3px solid #fff9; border-radius:50%; background:var(--glaze); outline:1px solid #5548311a; box-shadow:inset 0 0 0 3px var(--glaze),inset 0 0 0 4px #63554126,2px 6px 9px #4935231f; }
.menu-plate svg { width:42%; height:42%; stroke-width:1.35; }
.empty-result { grid-column: 1/-1; min-height: 150px; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--canvas); border: 1px dashed var(--line); border-radius: 8px; }

.table-ticket { position: relative; margin-top: 13px; padding: clamp(16px,1.6vw,25px); border: 1px solid #e5d9c9; border-radius: 10px; background: linear-gradient(155deg,#faf6ee,#f7efe4); color: var(--ink); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ticket-circle-name { display: inline-flex; align-items: center; gap: 6px; font-size: 1.02rem; font-weight: 640; overflow-wrap: anywhere; }
.ticket-circle-name svg { color: #8c674c; }
.ticket-circle-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticket-label { flex: none; display: inline-flex; align-items: center; gap: 5px; color: #945033; border: 1px solid #e5c6a8; border-radius: 20px; padding: 3px 7px; font-size: .7rem; }
.ticket-label i { width: 5px; height: 5px; border-radius: 50%; background: #ac6442; }
.ticket-group p, .ticket-meta span, .ticket-members span { color: #716557; font-size: .79rem; }
.ticket-group p { margin: 6px 0 0; line-height: 1.45; }
.ticket-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 18px 0 6px; }
.ticket-meta time { color: #614633; font: 500 clamp(1.65rem,2.3vw,2.3rem)/1.1 var(--mono); letter-spacing: -.07em; }
.ticket-meta span { display: inline-flex; gap: 3px; align-items: center; }
.ticket-empty { font-size: .94rem; line-height: 1.75; margin: 20px 0; }
.table-ticket h3 { margin: 8px 0; font-size: 1.07rem; line-height: 1.5; font-weight: 640; overflow-wrap: anywhere; }
.table-ticket h3 small { margin-left: 5px; font-family: inherit; color: #796958; font-size: .65rem; font-weight: 450; }
.ticket-members { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin: 7px 0 17px; font-size: .81rem; }
.ticket-members strong { font-weight: 550; overflow-wrap: anywhere; }
.ticket-button { justify-content: space-between; min-height: 40px; width: 100%; padding: 10px 0 0; border-radius: 0; border-top: 1px dashed #cdbda7; font-size: .85rem; color: #7d432b; }
.ticket-button::after { content: "→"; font: 1.1rem/1 var(--mono); margin-left: auto; }
.ticket-button:hover { color: var(--accent-deep); }
.all-tables { padding: 8px 0; color: var(--ink-secondary); font-size: .82rem; text-decoration: underline; }
.promos { margin-top: 28px; }
.promo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.promo-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); }
.promo-card:hover { border-color: var(--line-strong); }
.promo-badge { display: grid; place-items: center; color: var(--accent-deep); font-weight: 600; font-size: .83rem; }
.promo-text { min-width: 0; display: grid; gap: 3px; }
.promo-text b { font-size: .94rem; font-weight: 610; }
.promo-text small { color: var(--muted); font-size: .78rem; }
.promo-card>svg { margin-left: auto; color: var(--muted); }
.promos .promo-grid { gap: 12px; border: 0; }
.promos .promo-grid>.promo-card { border: 1px solid var(--line); border-radius: 7px; }
.promos .promo-grid .promo-badge { border: 0; border-radius: 4px; }
.demo-foot { margin-top: 24px; padding: 15px 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.demo-foot button { padding: 3px; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

#toast { pointer-events: none; opacity: 0; position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,5px); padding: 10px 16px; border-radius: 9px; background: #302b26; box-shadow: 0 4px 16px #29170726; color: white; font-size: .88rem; z-index: 100; transition: opacity var(--motion-fast),transform var(--motion-normal) var(--ease-out); width: max-content; max-width: min(90vw,38rem); text-align: center; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#modal { color: var(--ink); max-width: min(550px,calc(100vw - 28px)); width: 100%; max-height: 88dvh; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 85px #14110f26; background: var(--surface); padding: 0; }
#modal::backdrop { background: rgb(20 17 15 / .45); }
.home-dialog { padding: 24px; }
.dialog-title, .list-table { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-title h2 { margin: 0; font-size: 1.35rem; }
.close-btn { width: 36px; height: 36px; display: grid; place-items: center; background: var(--canvas); border-radius: 50%; }
.home-dialog p { line-height: 1.7; }
.home-dialog .muted, .dialog-store { color: var(--muted); font-size: .9rem; }
.home-dialog a { text-decoration: underline; }
.credit-list { padding-left: 20px; line-height: 1.8; font-size: .9rem; }
.list-table { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-table span { color: var(--muted); font-size: .83rem; }
.manage-circles { margin-top: 14px; padding: 8px 12px; background: var(--canvas); border: 1px solid var(--line); }

.circle-tools, .platform-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.circle-tools { margin: 12px 0; }
.platform-block { margin: 12px 0 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.platform-block h3 { margin: 0 0 9px; font-size: 1rem; }
.platform-buttons { align-items: center; }
.platform-buttons :is(a,button) { padding: 7px 10px; border: 1px solid var(--line); font-size: .86rem; font-weight: 550; background: var(--surface); }
.platform-block details { margin-top: 9px; font-size: .83rem; color: var(--ink-secondary); }
.platform-block summary { padding: 3px 0; }
.platform-block form { display: grid; gap: 8px; margin-top: 8px; }
.platform-block input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); padding: 8px 10px; }
.platform-block .platform-status { color: var(--ink-secondary); font-size: .83rem; }

@media (max-width:1050px) {
  .bar-inner, #main { width: calc(100% - 40px); }
  .bar-inner { gap: 14px; }
  .nav-link { padding-inline: 8px; }
}
@media (max-width:860px) {
  .desktop-nav .nav-link svg { display: none; }
  .bar-right { gap: 8px; }
}
@media (max-width:740px) {
  body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .bar-inner, #main { width: calc(100% - 32px); }
  .bar-inner { height: 58px; }
  .brand { gap: 8px; font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; }
  .desktop-nav, .account-name, .account>svg { display: none; }
  #mobile-nav { position: fixed; inset: auto 0 0; z-index: 8; display: grid; grid-template-columns: minmax(0,1fr); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  #mobile-nav .nav-link { flex-direction: column; gap: 3px; min-height: 47px; padding: 4px 0; font-size: .72rem; }
  #main { padding-top: 16px; }
  .promos { margin-top: 22px; }
  .promo-grid { grid-template-columns: 1fr; gap: 7px; }
  #toast { bottom: calc(69px + env(safe-area-inset-bottom)); }
}
@media (max-width:560px) {
}
@media (max-width:360px) {
  .location { font-size: .78rem; }
}
@media (max-width:1050px) {
  .lunch-layout { grid-template-columns: minmax(0,2.5fr) minmax(208px,1fr); gap: 22px; }
  .food-grid { gap: 12px; }
  .table-ticket { padding: 16px; }
  .hero { padding: 27px 32px; }
}
@media (max-width:800px) {
  .lunch-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .hero-copy, .hero-index { max-width: 60%; }
  .table-ticket { margin-top: 8px; }
}
@media (max-width:620px) {
  .hero { padding: 18px; border-radius: 11px; }
  .hero-copy, .hero-index { max-width: 100%; }
  .hero-heading { max-width: 60%; }
  .hero-date { gap: 6px; font-size: .69rem; }
  .hero-date::before { width: 13px; }
  .hero h1 { font-size: clamp(1.87rem,6.65vw,2.6rem); line-height: 1.15; margin: 12px 0 7px; }
  .hero h1 em { white-space: nowrap; }
  .hero-heading p { font-size: .79rem; line-height: 1.6; }
  .hero-art {
    background-image:url('assets/hero-mobile.webp');
    right: -6%; top: 3px; width: 56%; max-width: none; height: clamp(122px,37vw,182px); transform: none;
    mask-image: linear-gradient(90deg,transparent,#000 21%),linear-gradient(to top,transparent,#000 16%); mask-composite: intersect;
  }
  .hero-actions { margin-top: 16px; gap: 6px; }
  .hero-actions>* { min-height: 39px; padding-inline: 9px; gap: 5px; font-size: .82rem; }
  .hero-index { gap: 3px 14px; margin-top: 9px; }
  .hero-index a { min-height: 30px; font-size: .7rem; gap: 4px; }
  .section-line h2 { font-size: 1.18rem; }
  .lunch-layout { margin-top: 23px; }
  .menu-toolbar { margin: 7px 0 5px; gap: 8px; }
  .filter { min-height: 36px; padding-inline: 8px; }
  .mall-select { padding-inline: 6px; }
  .mall-select>svg:first-child { display: none; }
  .food-grid { grid-template-columns: 1fr; gap: 0; }
  .food-card { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .food-open { display: grid; grid-template-columns: clamp(84px,23vw,118px) minmax(0,1fr); align-items: stretch; gap: 13px; }
  .food-image { aspect-ratio: 1.13; align-self: center; }
  .illustration-caption { right: 3px; bottom: 3px; padding: 1px 3px; font-size: .57rem; }
  .food-body { padding: 0; justify-content: center; }
  .food-title { font-size: 1.02rem; margin: 2px 0 1px; }
  .food-where { min-height: 30px; margin-top: 0; padding-right: 55px; }
  .vote { bottom: 13px; min-height: 31px; padding-inline: 7px; }
  .table-ticket { padding: 16px 18px; }
}
@media (max-width:360px) {
  .hero { padding: 14px 11px; }
  .hero-heading { max-width: 63%; }
  .hero h1 { font-size: 1.7rem; }
  .hero-art { width: 53%; }
  .hero-actions { gap: 4px; }
  .hero-actions>* { padding-inline: 6px; gap: 4px; font-size: .78rem; }
  .hero-index { column-gap: 9px; }
  .hero-index svg { width: 11px; }
}
@media (prefers-reduced-motion:no-preference) {
  .route-arrived { animation: page-arrival 160ms var(--ease-out); }
  .pick-arrived { animation: pick-arrival var(--motion-normal) var(--ease-out) backwards; }
  .pick-arrived:nth-child(2) { animation-delay:22ms; }
  .pick-arrived:nth-child(3) { animation-delay:44ms; }
  .vote-updated { animation: vote-tally var(--motion-normal) var(--ease-out); }
  :is(.hero-actions>*,.filter,.close-btn,.promo-card,.quiet-btn) { transition: translate var(--motion-fast) var(--ease-out), background-color var(--motion-fast), border-color var(--motion-fast); }
  :is(.hero-actions>*,.filter,.close-btn,.promo-card,.quiet-btn):active { translate:0 1px; }
  #modal[open] { animation: dialog-arrival 170ms var(--ease-out); }
  #modal[open]::backdrop { animation: dialog-shade 150ms ease-out; }
}
@keyframes page-arrival { from { translate:0 3px; } to { translate:0 0; } }
@keyframes pick-arrival { from { opacity:.45; transform:translateY(5px); } to { opacity:1; transform:none; } }
@keyframes vote-tally { from { opacity:.5; transform:translateY(3px); } to { opacity:1; transform:none; } }
@keyframes dialog-arrival { from { translate:0 6px; } to { translate:0 0; } }
@keyframes dialog-shade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after, dialog::backdrop { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .food-open:hover .food-image img { transform:none; }
}

.account-gate :is(#topbar,#mobile-nav) { display:none; }
.account-gate #main { width:min(780px,calc(100% - 32px)); padding:clamp(30px,8vh,96px) 0; }
.auth-wrap { max-width:670px; margin:auto; background:#fffdf9; border:1px solid #e4d9c9; border-radius:17px; overflow:hidden; }
.auth-cover { display:flex; align-items:center; gap:12px; padding:24px clamp(20px,5vw,45px); min-height:120px; background:#f4e6ce url('assets/sign-in.webp') 62% center / cover; }
.auth-cover>img { width:40px; height:40px; border-radius:10px; }
.auth-cover>div { display:grid; gap:3px; background:#fffbf1ed; padding:6px 10px; border-radius:7px; }
.auth-cover span { font-size:.76rem; color:var(--muted); }
.auth-box { padding:clamp(22px,5vw,44px); }
.auth-box h1 { margin:0; font:650 clamp(1.9rem,5vw,2.7rem)/1.2 'Songti SC',serif; }
.auth-box>p { font-size:.9rem; line-height:1.65; color:var(--muted); }
.auth-tabs { display:flex; width:fit-content; margin:21px 0; padding:3px; border-radius:8px; background:var(--canvas); border:1px solid var(--line); }
.auth-tabs button { padding:7px 18px; border-radius:5px; font-size:.88rem; }
.auth-tabs [aria-pressed=true] { background:white; box-shadow:0 1px 4px #2820181c; font-weight:650; }
.auth-form, .auth-form label { display:grid; gap:8px; }
.auth-form { gap:16px; }
.auth-form label { font-size:.86rem; font-weight:570; }
.auth-form label[hidden], .auth-error:empty { display:none; }
.auth-form input { width:100%; min-height:43px; padding:9px 11px; border:1px solid var(--line-strong); border-radius:6px; color:var(--ink); background:white; font-size:16px; }
.auth-error { margin:0; font-size:.84rem; color:#943b26; }

.auth-recover{margin-top:12px;min-height:40px;padding:5px 0;color:var(--muted);font-size:.82rem;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.auth-recover[hidden]{display:none}
