/* =====================================================================
   WhereChi 哪儿吃 — pale-blue glass, Slender Gold 瘦金体, cinnabar seals
   Fonts live in fonts.css. Calligraphy is drawn with CSS masks (.cal).
   ===================================================================== */

:root {
  color-scheme: light;
  --sky: #e8f1fa; --paper: #eaf2fb; --paper-2: #dbe7f4;
  --card: rgba(255, 255, 255, .64); --card-2: rgba(255, 255, 255, .42); --solid: #f6faff;
  --ink: #13243f; --ink-2: #3b4f6e; --ink-3: #687b98; --ink-inv: #f6faff;
  --line: rgba(92, 134, 190, .2); --line-2: rgba(92, 134, 190, .36);
  --seal: #c2412d; --seal-deep: #9a2f1d; --seal-soft: rgba(194, 65, 45, .1);
  --azure: #2c6aae; --azure-deep: #1c4c86; --azure-soft: rgba(44, 106, 174, .12);
  --gold: #b08a3e; --gold-hi: #e6cf96; --gold-deep: #85651f; --gold-soft: rgba(190, 152, 70, .16);
  --jade: #2a7866; --jade-soft: rgba(42, 120, 102, .12);
  --mustard: #b4842a; --mustard-soft: rgba(196, 150, 60, .16);
  --post: #284a7c; --post-soft: rgba(40, 74, 124, .1);
  --edge: rgba(255, 255, 255, .78);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .9);
  --blur: blur(18px) saturate(1.6);
  --shadow: 0 1px 2px rgba(30, 70, 130, .06), 0 14px 34px -16px rgba(30, 70, 130, .32);
  --shadow-lg: 0 2px 6px rgba(30, 70, 130, .06), 0 34px 80px -26px rgba(20, 50, 100, .48);
  --gilt: linear-gradient(120deg, #57400f 0%, #84621f 34%, #a7843e 50%, #7a5a1b 64%, #57400f 100%);
  --gilt-bright: linear-gradient(120deg, #8a6a28 0%, #c9a65c 30%, #f0dda6 48%, #b8924a 62%, #8a6a28 100%);
  --gold-rule: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent) 18%, var(--gold-hi) 50%, color-mix(in srgb, var(--gold) 70%, transparent) 82%, transparent);
  --cal-ink: #172a48;
  --bg-art: url("/img/art/bg_day.webp");
  --bg-veil: linear-gradient(180deg, rgba(236, 244, 252, .78) 0%, rgba(236, 244, 252, .42) 38%, rgba(236, 244, 252, .12) 78%, rgba(236, 244, 252, .2) 100%);
  --orbs: radial-gradient(36vw 30vw at 88% 6%, rgba(240, 220, 170, .42), transparent 70%), radial-gradient(40vw 34vw at 4% 34%, rgba(150, 196, 240, .36), transparent 70%);
  --r: 18px; --r-sm: 12px;
  --f-display: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --f-zh: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-kai: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Noto Serif SC", serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topbar: 64px;
  --night: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --night: 1;
    --sky: #0a1424; --paper: #0c1729; --paper-2: #16253e;
    --card: rgba(20, 38, 66, .56); --card-2: rgba(20, 38, 66, .38); --solid: #111f36;
    --ink: #e9f0fa; --ink-2: #b7c6dc; --ink-3: #8193ae; --ink-inv: #0c1729;
    --line: rgba(150, 185, 235, .14); --line-2: rgba(150, 185, 235, .26);
    --seal: #e2604a; --seal-deep: #ff8a73; --seal-soft: rgba(226, 96, 74, .16);
    --azure: #86b6ee; --azure-deep: #a9cdf5; --azure-soft: rgba(134, 182, 238, .14);
    --gold: #d7b46a; --gold-hi: #f2dca4; --gold-deep: #e7c680; --gold-soft: rgba(215, 180, 106, .15);
    --jade: #6cc2a8; --jade-soft: rgba(108, 194, 168, .15);
    --mustard: #e3b35a; --mustard-soft: rgba(227, 179, 90, .15);
    --post: #a9c2ea; --post-soft: rgba(169, 194, 234, .14);
    --edge: rgba(170, 200, 245, .16);
    --hi: inset 0 1px 0 rgba(255, 255, 255, .07);
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 16px 36px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 80px -22px rgba(0, 0, 0, .8);
    --gilt: var(--gilt-bright);
    --cal-ink: var(--gilt-bright);
    --bg-art: url("/img/art/bg_night.webp");
    --bg-veil: linear-gradient(180deg, rgba(8, 16, 30, .5) 0%, rgba(8, 16, 30, .18) 45%, rgba(8, 16, 30, .3) 100%);
    --orbs: radial-gradient(36vw 30vw at 88% 6%, rgba(215, 180, 106, .12), transparent 70%), radial-gradient(40vw 34vw at 4% 34%, rgba(70, 120, 200, .2), transparent 70%);
  }
}
:root[data-theme="dark"] {
    color-scheme: dark; --night: 1;
    --sky: #0a1424; --paper: #0c1729; --paper-2: #16253e;
    --card: rgba(20, 38, 66, .56); --card-2: rgba(20, 38, 66, .38); --solid: #111f36;
    --ink: #e9f0fa; --ink-2: #b7c6dc; --ink-3: #8193ae; --ink-inv: #0c1729;
    --line: rgba(150, 185, 235, .14); --line-2: rgba(150, 185, 235, .26);
    --seal: #e2604a; --seal-deep: #ff8a73; --seal-soft: rgba(226, 96, 74, .16);
    --azure: #86b6ee; --azure-deep: #a9cdf5; --azure-soft: rgba(134, 182, 238, .14);
    --gold: #d7b46a; --gold-hi: #f2dca4; --gold-deep: #e7c680; --gold-soft: rgba(215, 180, 106, .15);
    --jade: #6cc2a8; --jade-soft: rgba(108, 194, 168, .15);
    --mustard: #e3b35a; --mustard-soft: rgba(227, 179, 90, .15);
    --post: #a9c2ea; --post-soft: rgba(169, 194, 234, .14);
    --edge: rgba(170, 200, 245, .16);
    --hi: inset 0 1px 0 rgba(255, 255, 255, .07);
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 16px 36px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 80px -22px rgba(0, 0, 0, .8);
    --gilt: var(--gilt-bright);
    --cal-ink: var(--gilt-bright);
    --bg-art: url("/img/art/bg_night.webp");
    --bg-veil: linear-gradient(180deg, rgba(8, 16, 30, .5) 0%, rgba(8, 16, 30, .18) 45%, rgba(8, 16, 30, .3) 100%);
    --orbs: radial-gradient(36vw 30vw at 88% 6%, rgba(215, 180, 106, .12), transparent 70%), radial-gradient(40vw 34vw at 4% 34%, rgba(70, 120, 200, .2), transparent 70%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-synthesis: none; }
body {
  margin: 0; min-height: 100vh; background-color: var(--sky);
  color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* the painting sits behind everything; glass panels blur it */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--orbs), var(--bg-veil), var(--bg-art) 50% 100% / cover no-repeat, var(--sky); }
[v-cloak] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zh { font-family: var(--f-zh); }
.kai { font-family: var(--f-kai); }
.display { font-family: var(--f-display); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 640px) { .container { padding: 0 14px; } }

/* ---------- 瘦金体 calligraphy (mask images from /img/cal, see js/cal.js) ---------- */
.cal { display: inline-block; position: relative; flex: none; height: 1.05em; aspect-ratio: var(--ar); vertical-align: -.17em;
  background: var(--cal-fill, var(--cal-ink));
  -webkit-mask: var(--cal) center / contain no-repeat; mask: var(--cal) center / contain no-repeat; }
.cal-v { height: auto; width: 1.05em; vertical-align: top; }
.cal-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-fb { font-family: var(--f-zh); font-weight: 600; }
.gold .cal, .cal.gold { --cal-fill: var(--gilt); }
.cal.write { animation: cal-write 1.5s cubic-bezier(.55, 0, .25, 1) .15s both; }
.cal-v.write { animation-name: cal-write-v; }
@keyframes cal-write { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
@keyframes cal-write-v { from { clip-path: inset(0 -10% 100% -10%); } to { clip-path: inset(0 -10% 0 -10%); } }
.gold-rule { display: block; height: 1px; background: var(--gold-rule); border: 0; }

/* a little cinnabar seal, as at the end of an inscription */
.mini-seal { display: inline-grid; place-items: center; flex: none; width: .5em; height: .5em; border-radius: .07em; background: var(--seal);
  box-shadow: inset 0 0 0 .04em var(--seal), inset 0 0 0 .06em rgba(255, 255, 255, .85); transform: rotate(-4deg); }
.mini-seal > .cal { --cal-fill: #fff; height: .34em; vertical-align: 0; }

/* ---------- Glass surfaces ---------- */
.glass, .crave, .step, .panel, .form-card, .cta-band, .sheet, .banner, div.empty, .filters, .topbar, .dock {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --card: rgba(255, 255, 255, .9); --card-2: rgba(255, 255, 255, .78); }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 500; height: var(--topbar);
  background: color-mix(in srgb, var(--paper) 58%, transparent);
  border-bottom: 1px solid var(--edge);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-rule); opacity: .7; pointer-events: none; }
.topbar .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-seal { width: 36px; height: 36px; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .logo-seal { transform: rotate(-12deg) scale(1.08); }
.logo-word { line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.logo-en { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 24px; letter-spacing: .005em; line-height: .9; }
.logo-zh { font-size: 15px; line-height: 1; color: var(--ink-2); }
.logo-zh .cal { height: 17px; vertical-align: 0; }
.logo-word br { display: none; }
.nav { display: flex; gap: 2px; }
.nav a, .nav button { position: relative; padding: 7px 13px; border-radius: 999px; border: 0; background: none; text-decoration: none; font-size: 14px; color: var(--ink-2); font-weight: 520; transition: background .2s, color .2s; }
.nav a:hover, .nav button:hover { background: var(--card-2); color: var(--ink); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 18px; height: 1.5px; margin-left: -9px; border-radius: 1px; background: var(--gilt); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; padding: 2px; background: var(--card-2); box-shadow: var(--hi); }
.lang-toggle button { border: 0; background: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: background .2s, color .2s; }
.lang-toggle button.on { background: var(--ink); color: var(--ink-inv); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 480px) { .topbar .btn-seal .btn-label { display: none; } }

/* ---------- Buttons & chips ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
  box-shadow: var(--hi), 0 2px 8px -4px rgba(30, 70, 130, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: var(--hi), 0 10px 22px -10px rgba(30, 70, 130, .45); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: var(--hi); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-seal { background: linear-gradient(180deg, #3d7cc2, #1d4f8c); border-color: rgba(230, 207, 150, .75); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 22px -12px rgba(28, 76, 134, .8); }
.btn-seal:hover { border-color: #ecd9a6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 28px -12px rgba(28, 76, 134, .85); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--ink-inv); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { background: var(--card-2); border-color: transparent; box-shadow: none; transform: none; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn-icon { width: 40px; padding: 0; }
.btn .ico { width: 17px; height: 17px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-seal { background: var(--gilt); background-size: 160% 100%; border-color: rgba(255, 240, 200, .45); color: #1b1406; } }
:root[data-theme="dark"] .btn-seal { background: var(--gilt); background-size: 160% 100%; border-color: rgba(255, 240, 200, .45); color: #1b1406; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2);
  font-size: 13.5px; font-weight: 520; color: var(--ink-2); white-space: nowrap; box-shadow: var(--hi);
  transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease);
}
.chip:hover { border-color: color-mix(in srgb, var(--gold) 70%, transparent); color: var(--ink); background: var(--card); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ink-inv); }
.chip.on.seal { background: var(--seal); border-color: var(--seal); color: #fff; }
.chip .count { font-size: 11.5px; opacity: .65; font-variant-numeric: tabular-nums; }
.flav { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 64px; height: 64px; padding: 0; border-radius: 50%; background: var(--card); }
.flav .g { font-family: var(--f-zh); font-size: 22px; font-weight: 600; line-height: 1; color: var(--seal); }
.flav .e { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.flav.on { background: var(--seal); border-color: var(--seal); box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255, 255, 255, .7); }
.flav.on .g, .flav.on .e { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.seal { background: var(--seal-soft); border-color: transparent; color: var(--seal-deep); }
.pill.jade { background: var(--jade-soft); border-color: transparent; color: var(--jade); }
.pill.mustard { background: var(--gold-soft); border-color: transparent; color: var(--gold-deep); }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.label { font-size: 13px; font-weight: 650; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.label .opt { font-weight: 500; color: var(--ink-3); }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); box-shadow: var(--hi);
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.select option, .select optgroup { background: var(--solid); color: var(--ink); }
.textarea { height: auto; min-height: 92px; padding: 11px 14px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--azure); background: var(--solid); box-shadow: 0 0 0 4px var(--azure-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input.big { height: 54px; font-size: 18px; font-family: var(--f-zh); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--azure); flex-shrink: 0; }
.counter { font-size: 11.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--edge); gap: 2px; box-shadow: inset 0 1px 3px rgba(30, 70, 130, .08); }
.seg button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: background .2s, color .2s; }
.seg button.on { background: var(--solid); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 50, 100, .16), var(--hi); }

/* ---------- Home ---------- */
.hero { position: relative; padding: 58px 0 34px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 50px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--edge); box-shadow: var(--hi); padding: 5px 13px 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.hero-eyebrow .ico { color: var(--gold); }
.hero-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(54px, 8vw, 104px); line-height: .94; letter-spacing: -.015em; margin: 22px 0 4px; }
.hero-title em { font-style: italic; color: var(--azure); font-weight: 500; }
.hero-zh { display: flex; align-items: center; gap: .3em; font-size: clamp(44px, 5.8vw, 74px); line-height: 1.2; margin-top: 2px; }
.hero-zh > .cal { height: 1em; }
.hero-zh .mini-seal { margin-top: .32em; }
.hero-zh .cal-fb { font-weight: 600; letter-spacing: .06em; font-size: .72em; }
.hero-sub { margin-top: 18px; max-width: 560px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.hero-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-rules span { font-size: 13px; font-weight: 600; padding: 4px 12px; border: 1px solid var(--line-2); background: var(--card-2); border-radius: 999px; color: var(--ink-2); }
.hero-rules span s { text-decoration-thickness: 1.5px; text-decoration-color: var(--seal); }
.hero-rules span:last-child { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold-deep); background: var(--gold-soft); }
.hero-art { position: relative; min-height: 450px; }
/* a glass moon gate behind the example cards */
.hero-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(450px, 96%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .16) 62%, rgba(255, 255, 255, .08));
  border: 1px solid var(--edge); box-shadow: inset 0 0 0 9px rgba(255, 255, 255, .14), inset 0 0 0 10px color-mix(in srgb, var(--gold) 45%, transparent), 0 30px 80px -30px rgba(30, 70, 130, .4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art::before { background: radial-gradient(circle at 32% 26%, rgba(150, 190, 245, .16), rgba(20, 38, 66, .3) 62%); } }
:root[data-theme="dark"] .hero-art::before { background: radial-gradient(circle at 32% 26%, rgba(150, 190, 245, .16), rgba(20, 38, 66, .3) 62%); }
.hero-art .ticket { position: absolute; width: 290px; }
.hero-art .t1 { top: 44px; left: 0; transform: rotate(-5deg); z-index: 2; }
.hero-art .t2 { top: 10px; right: 0; transform: rotate(5deg); z-index: 1; }
.hero-art .t2:hover, .hero-art .t1:hover { z-index: 3; }
.hero-swallows { position: absolute; top: -46px; right: 6%; width: 210px; height: auto; z-index: 4; pointer-events: none; animation: glide 9s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(20, 50, 100, .18)); }
@keyframes glide { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-16px, 8px) rotate(-2deg); } }
.example-tag { position: absolute; bottom: 6px; left: 16%; z-index: 4; font-family: var(--f-kai); font-size: 15px; color: var(--ink-3); transform: rotate(5deg); }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero { padding-top: 26px; }
  .flav { width: 56px; height: 56px; } .flav .g { font-size: 19px; } .flav .e { font-size: 9.5px; }
  .crave { padding: 14px; }
  .hero-art { min-height: 370px; } .hero-art .ticket { width: 228px; } .hero-art .t1 { top: 74px; }
  .hero-swallows { width: 150px; top: -26px; right: 0; }
}

.crave { margin-top: 26px; padding: 18px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--hi), var(--shadow); }
.crave-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.crave-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-style: italic; font-size: 25px; font-weight: 600; }
.crave-title .cal { font-size: 26px; }
.crave-flavs { display: flex; gap: 8px; flex-wrap: wrap; }
.crave-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid transparent; border-image: var(--gold-rule) 1; }
.crave-where { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }

.section { padding: 50px 0 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; flex-wrap: wrap; column-gap: 14px; font-family: var(--f-display); font-size: 40px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.section-title .cal { --cal-fill: var(--gilt); height: 1.05em; }
.section-title .cal-fb { font-size: .62em; color: var(--gold-deep); letter-spacing: .06em; }
.section-sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.stats { display: flex; gap: 0; flex-wrap: wrap; margin-top: 26px; }
.stat { padding: 0 24px; border-left: 1px solid transparent; border-image: linear-gradient(transparent, var(--gold), transparent) 1; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: 42px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--edge); box-shadow: var(--hi), var(--shadow); }
.step::before { counter-increment: s; content: counter(s, cjk-decimal); position: absolute; top: -13px; left: 20px; width: 28px; height: 28px; border-radius: 4px; background: var(--seal); color: #fff;
  font-family: var(--f-zh); font-weight: 600; font-size: 15px; display: grid; place-items: center; transform: rotate(-5deg);
  box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 255, 255, .8); }
.step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 16px; font-weight: 650; margin: 8px 0 8px; }
.step h3 .cal { font-size: 30px; }
.step h3 .cal-fb { color: var(--gold-deep); }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.cities-tabs { margin-bottom: 14px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.city-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 96px;
  padding: 14px 14px 12px; border-radius: var(--r-sm); border: 1px solid var(--edge); background: var(--card-2); box-shadow: var(--hi);
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; overflow: hidden;
}
.city-tile:hover { transform: translateY(-3px); box-shadow: var(--hi), var(--shadow); background: var(--card); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.city-tile .zh { font-size: 26px; line-height: 1.1; color: var(--ink); }
.city-tile .zh .cal { height: 1em; vertical-align: 0; }
.city-tile .zh .cal-fb { font-size: 20px; font-weight: 600; }
.city-tile .en { font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--ink-3); line-height: 1.1; }
.city-tile .n { position: absolute; top: 9px; right: 12px; font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--seal); font-variant-numeric: lining-nums; }
.city-tile.empty .n { color: var(--line-2); }
.city-tile.has { background: var(--card); }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--edge); box-shadow: var(--hi); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.feed-item:hover { transform: translateY(-2px); box-shadow: var(--hi), var(--shadow); }
.feed-item .who { font-size: 12.5px; color: var(--ink-3); }
.feed-item .dish { font-family: var(--f-zh); font-weight: 600; font-size: 18px; line-height: 1.3; }
.feed-item .note { font-family: var(--f-kai); font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

.cta-band { margin: 60px 0 10px; padding: 38px 40px; border-radius: 28px; color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--solid) 78%, transparent), var(--card-2)); border: 1px solid var(--edge); box-shadow: var(--hi), var(--shadow-lg); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--f-display); font-size: 40px; font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.cta-band h2 .zh { display: block; font-family: var(--f-zh); font-size: 19px; font-weight: 600; color: var(--gold-deep); margin-top: 8px; letter-spacing: .08em; }
.cta-band p { color: var(--ink-2); margin-top: 10px; max-width: 560px; }
.cta-band .bg-cal { position: absolute; right: 230px; top: 50%; z-index: 0; font-size: 150px; transform: translateY(-50%); opacity: .13; pointer-events: none; }
.cta-band .bg-cal .cal { --cal-fill: var(--gilt); }
.cta-band .cta-art { position: absolute; z-index: 0; top: -20px; right: -30px; width: 360px; height: auto; opacity: .9; pointer-events: none; }
.cta-band .btn-lg { z-index: 2; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; padding: 28px 24px; } .cta-band h2 { font-size: 30px; } .cta-band .cta-art { width: 220px; top: -30px; right: -50px; opacity: .55; } .cta-band .bg-cal { right: 10px; font-size: 110px; } }

/* ---------- Ticket (spot card) ---------- */
.ticket {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r);
  background: color-mix(in srgb, var(--solid) 80%, transparent); box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s;
  -webkit-mask: radial-gradient(circle 9px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
}
a.ticket:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ticket-top { position: relative; height: 0; padding-bottom: 62%; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.ticket-top > * { position: absolute; inset: 0; }
.ticket-photo { width: 100%; height: 100%; object-fit: cover; }
/* dish board: a glazed porcelain tile tinted by the cuisine colour */
.board { display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; color: #fff;
  background-color: color-mix(in srgb, var(--c, #41607a) 82%, #1c3558);
  background-image: radial-gradient(130% 90% at 12% 0%, rgba(255, 255, 255, .3), transparent 55%), linear-gradient(160deg, rgba(255, 255, 255, .1), transparent 40%, rgba(10, 25, 50, .25)); }
.board::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(236, 216, 160, .42); border-radius: 10px; pointer-events: none; }
.board .b-zh { font-family: var(--f-zh); font-weight: 600; font-size: 30px; line-height: 1.18; letter-spacing: .05em; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); overflow-wrap: anywhere; }
.b-zh.latin, .spot-dish .zh.latin, .feed-item .dish.latin, .susan-result .latin { font-family: var(--f-display); letter-spacing: 0; font-weight: 600; }
.board .b-en { font-family: var(--f-display); font-style: italic; font-size: 20px; opacity: .95; margin-top: 4px; line-height: 1.15; }
.board .b-py { font-size: 12px; opacity: .78; letter-spacing: .06em; margin-top: 2px; }
.board .b-tag { position: absolute; top: 13px; left: 16px; font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ticket-photo-dish { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; background: linear-gradient(to top, rgba(8, 20, 40, .8), transparent); color: #fff; }
.ticket-photo-dish .b-zh { font-family: var(--f-zh); font-weight: 600; font-size: 22px; line-height: 1.2; }
.ticket-photo-dish .b-en { font-family: var(--f-display); font-style: italic; font-size: 17px; opacity: .92; }
.ticket-body { position: relative; padding: 14px 16px 14px; border-top: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent); flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ticket-name { font-weight: 650; font-size: 16px; line-height: 1.3; }
.ticket-name .alt { font-weight: 500; color: var(--ink-3); font-size: 13.5px; margin-left: 6px; }
.ticket-meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ticket-meta .price { color: var(--gold-deep); font-weight: 700; letter-spacing: .05em; }
.ticket-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.stamp-stack { display: flex; align-items: center; }
.stamp-stack .seal-svg { margin-left: -12px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .08)); }
.stamp-stack .seal-svg:first-child { margin-left: 0; }
.stamp-count { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stamp-count b { color: var(--seal); font-size: 17px; font-family: var(--f-display); font-variant-numeric: lining-nums; }
.hometown { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--jade); background: var(--jade-soft); padding: 3px 9px; border-radius: 999px; }
.flav-glyphs { display: inline-flex; gap: 3px; }
.flav-glyphs i { font-style: normal; font-family: var(--f-zh); font-weight: 600; font-size: 12px; min-width: 20px; padding: 0 3px; white-space: nowrap; height: 20px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--seal); color: var(--seal); transform: rotate(-4deg); }
.flav-glyphs i:nth-child(2n) { transform: rotate(3deg); }

/* ---------- Seals ---------- */
.seal-svg { display: inline-block; flex-shrink: 0; overflow: visible; }
.seal-press { animation: seal-press .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes seal-press {
  0% { transform: scale(2.4) rotate(-18deg); opacity: 0; }
  55% { transform: scale(.9) rotate(var(--rot, 0deg)); opacity: 1; }
  75% { transform: scale(1.06) rotate(var(--rot, 0deg)); }
  100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 1; }
}
.shake { animation: shake .35s .32s ease both; }
@keyframes shake { 20% { transform: translate(2px, 1px); } 40% { transform: translate(-2px, -1px); } 60% { transform: translate(1px, -2px); } 80% { transform: translate(-1px, 1px); } }

/* ---------- City / list page ---------- */
.page-head { padding: 36px 0 18px; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-title { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 12px; }
.page-title .zh { font-size: clamp(48px, 6.4vw, 78px); line-height: 1.1; }
.page-title .zh .cal { height: 1em; vertical-align: 0; display: block; }
.page-title .zh .cal-fb { font-size: .7em; letter-spacing: .06em; }
.page-title .en { font-family: var(--f-display); font-style: italic; font-size: clamp(26px, 3.2vw, 38px); color: var(--ink-2); font-weight: 500; padding-left: 18px; border-left: 1px solid transparent; border-image: linear-gradient(transparent, var(--gold), transparent) 1; }
.filters { position: sticky; top: var(--topbar); z-index: 40; padding: 10px 0; background: color-mix(in srgb, var(--paper) 55%, transparent); border-bottom: 1px solid var(--edge); }
.filters-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px 28px 2px 0; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.filters-row::-webkit-scrollbar { display: none; }
.filters-row > * { flex-shrink: 0; }
.filters .chip { height: 32px; font-size: 13px; }
.filters .chip .g { font-family: var(--f-zh); font-weight: 600; color: var(--seal); }
.filters .chip.on .g { color: inherit; }
.filters .select { height: 32px; width: auto; border-radius: 999px; padding: 0 30px 0 12px; font-size: 13px; font-weight: 520; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23687b98' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.vsep { width: 1px; height: 22px; background: linear-gradient(transparent, var(--gold), transparent); flex-shrink: 0; opacity: .7; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 22px; padding: 20px 0 40px; align-items: start; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.list-map { position: sticky; top: calc(var(--topbar) + 66px); height: calc(100vh - var(--topbar) - 90px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); box-shadow: var(--hi), var(--shadow-lg); }
.list-map > div { width: 100%; height: 100%; }
.view-toggle { display: none; }
@media (max-width: 900px) {
  .list-layout { grid-template-columns: 1fr; }
  .list-map { position: relative; top: 0; height: 68vh; }
  .view-toggle { display: inline-flex; }
  .list-layout.show-map .list-cards { display: none; }
  .list-layout:not(.show-map) .list-map { display: none; }
}
.result-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }

div.empty { text-align: center; padding: 46px 20px 50px; border: 1px solid var(--edge); border-radius: 24px; background: var(--card-2); box-shadow: var(--hi); }
.empty svg.bowl { width: 120px; height: 100px; margin: 0 auto 8px; color: var(--ink-2); }
.empty .bowl-art { width: 170px; height: auto; margin: -6px auto 6px; filter: drop-shadow(0 14px 16px rgba(20, 50, 100, .18)); }
.empty h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; margin-bottom: 4px; }
.empty h3 .zh { display: block; font-family: var(--f-zh); font-size: 16px; color: var(--gold-deep); font-weight: 600; margin-top: 4px; letter-spacing: .06em; }
.empty p { color: var(--ink-3); max-width: 420px; margin: 8px auto 18px; font-size: 14px; }
.steam path { animation: steam 2.6s ease-in-out infinite; transform-origin: center bottom; }
.steam path:nth-child(2) { animation-delay: .5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }

.skeleton { background: linear-gradient(100deg, var(--card-2) 30%, var(--card) 50%, var(--card-2) 70%); background-size: 240% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); border: 1px solid var(--edge); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- Map markers ---------- */
.leaflet-container { background: var(--paper-2); font-family: var(--f-body); }
.leaflet-tile-pane { filter: grayscale(.5) sepia(.28) hue-rotate(176deg) saturate(1.25) brightness(1.06) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(.92) hue-rotate(185deg) saturate(.55) brightness(.92) contrast(.92); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(.92) hue-rotate(185deg) saturate(.55) brightness(.92) contrast(.92); }
.wc-pin { width: 34px; height: 34px; }
.wc-pin-inner { width: 34px; height: 34px; border-radius: 6px; background: var(--seal); color: #fff; display: grid; place-items: center; font-family: var(--f-zh); font-weight: 600; font-size: 16px; box-shadow: 0 4px 10px rgba(20, 40, 80, .32), inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 255, 255, .75); transform: rotate(-6deg); transition: transform .25s var(--ease), background .2s; border: 1.5px solid #fff; }
.wc-pin-inner small { font-family: var(--f-display); font-size: 13px; font-weight: 700; }
.wc-pin.on .wc-pin-inner, .wc-pin:hover .wc-pin-inner { transform: rotate(0) scale(1.22); background: var(--azure-deep); box-shadow: 0 4px 12px rgba(20, 40, 80, .4), inset 0 0 0 2px var(--azure-deep), inset 0 0 0 3px rgba(236, 216, 160, .9); }
.wc-me { width: 18px; height: 18px; border-radius: 50%; background: #2f7ae5; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 122, 229, .25); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: color-mix(in srgb, var(--solid) 90%, transparent); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.leaflet-popup-tip { background: var(--solid); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.45; }
.pop-dish { font-family: var(--f-zh); font-weight: 600; font-size: 16px; }
.pop-name { color: var(--ink-3); font-size: 12.5px; }
.pop-link { display: inline-block; margin-top: 6px; font-weight: 650; color: var(--azure); }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--solid) 75%, transparent) !important; color: var(--ink-3); }
.leaflet-control-attribution a { color: var(--ink-2); }
.leaflet-bar { border: 1px solid var(--edge) !important; box-shadow: var(--shadow) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a { background: color-mix(in srgb, var(--solid) 88%, transparent); color: var(--ink); border-color: var(--line) !important; }

/* ---------- Spot page ---------- */
.spot-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 28px 0 10px; align-items: start; }
.spot-visual { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; background: var(--card); border: 1px solid var(--edge); }
.spot-visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.spot-visual .board { position: absolute; inset: 0; padding: 40px; }
.spot-visual .board::after { inset: 14px; border-radius: 14px; }
.spot-visual .board .b-zh { font-size: clamp(42px, 6vw, 74px); }
.spot-visual .board .b-en { font-size: clamp(24px, 2.8vw, 34px); }
.spot-visual .board .b-py { font-size: 15px; }
.gallery { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.spot-kicker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-3); }
.spot-dish { margin-top: 14px; }
.spot-dish .zh { font-family: var(--f-zh); font-weight: 600; font-size: clamp(40px, 5vw, 62px); line-height: 1.12; letter-spacing: .04em; }
.spot-dish .en { font-family: var(--f-display); font-style: italic; font-size: clamp(25px, 2.8vw, 34px); color: var(--ink-2); font-weight: 500; line-height: 1.15; margin-top: 6px; }
.spot-dish .py { font-size: 14px; color: var(--ink-3); letter-spacing: .06em; margin-top: 2px; }
.spot-at { margin-top: 16px; font-size: 17px; }
.spot-at .at { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--ink-3); margin-right: 6px; }
.spot-at b { font-weight: 700; }
.spot-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.spot-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 26px 0 40px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--edge); border-radius: 20px; padding: 22px; box-shadow: var(--hi), var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.panel h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 55%, transparent), transparent); }
.panel h3 .zh { letter-spacing: .2em; text-transform: none; color: var(--gold-deep); }
.panel .prose { font-size: 15.5px; line-height: 1.75; white-space: pre-wrap; color: var(--ink); }
.panel .prose.kai { font-family: var(--f-kai); font-size: 17.5px; }
.mini-map { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--edge); margin-top: 12px; box-shadow: var(--shadow); }
.stamp-sheet { position: relative; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; padding: 14px; border-radius: 14px; background: var(--card-2); border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); min-height: 92px; }
.stamp-sheet .seal-svg { cursor: help; }
.stamp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.stamp-big-count { font-family: var(--f-display); font-weight: 600; font-size: 50px; line-height: .9; color: var(--seal); font-variant-numeric: lining-nums; }
.guestbook { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gb-item { display: flex; gap: 12px; align-items: flex-start; }
.gb-item .who { font-size: 12.5px; color: var(--ink-3); }
.gb-item .note { font-family: var(--f-kai); font-size: 16px; line-height: 1.55; color: var(--ink); }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--gold-soft) 60%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: var(--hi); font-size: 14px; margin-top: 18px; }
.banner > .ico { color: var(--gold-deep); }
@media (max-width: 900px) { .spot-hero, .spot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Whisper form ---------- */
.whisper { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 34px; padding: 26px 0 60px; align-items: start; }
.stepper { display: flex; gap: 6px; margin-bottom: 22px; }
.stepper button { flex: 1; border: 0; background: none; padding: 0; text-align: left; }
.stepper .bar { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.stepper .bar i { display: block; height: 100%; width: 0; background: var(--gilt); transition: width .35s var(--ease); }
.stepper .on .bar i, .stepper .done .bar i { width: 100%; }
.stepper .t { font-size: 12px; font-weight: 650; color: var(--ink-3); margin-top: 7px; }
.stepper .on .t { color: var(--ink); }
.form-card { background: var(--card); border: 1px solid var(--edge); border-radius: 24px; padding: 26px; box-shadow: var(--hi), var(--shadow); }
.form-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-display); font-size: 32px; font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.form-title .cal { --cal-fill: var(--gilt); height: 1.05em; }
.form-title .zh, .form-title .cal-fb { display: block; width: 100%; font-family: var(--f-zh); font-size: 17px; color: var(--gold-deep); font-weight: 600; letter-spacing: .06em; }
.form-intro { color: var(--ink-3); font-size: 14px; margin: 8px 0 20px; }
.pick-map { height: 330px; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); margin: 10px 0 12px; box-shadow: var(--shadow); }
.geo-results { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.geo-results button { text-align: left; border: 0; background: var(--solid); padding: 10px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.geo-results button:last-child { border-bottom: 0; }
.geo-results button:hover { background: var(--paper-2); }
.detected { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--jade); background: var(--jade-soft); padding: 5px 11px; border-radius: 999px; }
.detected.bad { color: var(--seal-deep); background: var(--seal-soft); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid transparent; border-image: var(--gold-rule) 1; }
.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10, 25, 50, .6); color: #fff; font-size: 14px; line-height: 1; }
.photo-add { width: 96px; height: 96px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--card-2); color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; }
.photo-add:hover { border-color: var(--azure); color: var(--azure); }
.preview-col { position: sticky; top: calc(var(--topbar) + 20px); }
.preview-label { font-family: var(--f-kai); color: var(--ink-3); font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.region-tabs { margin-bottom: 10px; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 4px; }
.region-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 12px; border: 1px solid transparent; background: none; font-size: 11.5px; color: var(--ink-2); transition: background .15s, border-color .15s, transform .15s var(--ease); }
.region-btn:hover { background: var(--card); }
.region-btn.on { border-color: var(--seal); background: var(--seal-soft); transform: scale(1.04); }
.done-card { text-align: center; padding: 40px 24px; }
.done-card .seal-svg { margin: 0 auto 10px; }
@media (max-width: 900px) { .whisper { grid-template-columns: 1fr; } .preview-col { position: static; order: -1; } .preview-col .ticket { max-width: 340px; } }

/* ---------- Modals & sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 28, 54, .32); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: color-mix(in srgb, var(--solid) 80%, transparent); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--hi), var(--shadow-lg); padding: 26px; animation: pop .3s var(--ease); position: relative;
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7); }
.sheet::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: var(--gold-rule); }
.sheet.wide { max-width: 720px; }
.sheet-title { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; font-family: var(--f-display); font-size: 30px; font-weight: 500; letter-spacing: -.005em; line-height: 1.15; padding-right: 40px; }
.sheet-title .zh, .sheet-title .cal-fb { display: block; width: 100%; font-family: var(--f-zh); font-size: 15px; font-weight: 600; color: var(--gold-deep); margin-top: 2px; letter-spacing: .08em; }
.sheet-title .cal { --cal-fill: var(--gilt); height: 1.05em; }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 600px) {
  .overlay { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; animation: rise .3s var(--ease); padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
}
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }

.dir-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.dir-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); text-decoration: none; font-weight: 650; transition: border-color .2s, background .2s; }
.dir-list a:hover { border-color: color-mix(in srgb, var(--gold) 70%, transparent); background: var(--card); }
.dir-list a small { font-weight: 500; color: var(--ink-3); }

/* point & order card: always light porcelain, it is shown to restaurant staff */
.point { position: fixed; inset: 0; z-index: 1200; background: radial-gradient(120% 80% at 50% 0%, #ffffff, #eef5fc 60%, #e2edf8); color: #13243f; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; text-align: center; animation: fade .2s; }
.point .p-place { font-size: 14px; color: #687b98; letter-spacing: .08em; }
.point .p-lead { font-family: var(--f-zh); font-size: clamp(22px, 5vw, 34px); font-weight: 600; margin-top: 18px; }
.point .p-dish { font-family: var(--f-zh); font-weight: 600; font-size: clamp(54px, 15vw, 128px); line-height: 1.08; letter-spacing: .04em; margin: 8px 0; color: #c2412d; word-break: break-word; }
.point .p-dish.en { font-family: var(--f-display); font-style: normal; letter-spacing: 0; }
.point .p-thanks { font-family: var(--f-zh); font-size: clamp(22px, 5vw, 34px); font-weight: 600; }
.point .p-sub { margin-top: 26px; padding-top: 18px; border-top: 1px solid #d9c590; font-size: 15px; color: #3b4f6e; max-width: 640px; line-height: 1.7; }
.point .p-sub .py { letter-spacing: .06em; }
.point .p-close { position: absolute; top: 18px; right: 18px; border-color: rgba(19, 36, 63, .3); color: #13243f; background: rgba(255, 255, 255, .7); }
.point .p-hint { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 12.5px; color: #687b98; }

/* lazy susan: a celadon glass turntable */
.susan-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 6px; }
.susan-stage { position: relative; width: min(84vw, 400px); aspect-ratio: 1; }
.susan-cloth { position: absolute; inset: -4%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #3f7fc0 0 52%, #24578f 68%, #183f6c 72%); box-shadow: inset 0 0 0 2px rgba(236, 216, 160, .7), inset 0 0 0 10px rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(20, 50, 100, .6); }
.susan-disc { position: absolute; inset: 6%; border-radius: 50%; transform: rotate(var(--R, 0deg)); transition: transform 4.6s cubic-bezier(.12, .7, .08, 1); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .14) 40%, rgba(255, 255, 255, .06) 70%), rgba(220, 238, 250, .22); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 10px 30px rgba(0, 20, 50, .3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.susan-disc.fast { transition-duration: 0s; }
.plate { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; margin: -13.5% 0 0 -13.5%; transform: rotate(var(--a)) translateY(-128%) rotate(calc(-1 * var(--a))); }
.plate-inner { width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10%; transform: rotate(calc(-1 * var(--R, 0deg))); transition: transform 4.6s cubic-bezier(.12, .7, .08, 1); background: radial-gradient(circle, #fbfdff 0 55%, transparent 56%), repeating-conic-gradient(#2a568f 0 6deg, #fbfdff 6deg 12deg); box-shadow: 0 3px 8px rgba(0, 20, 50, .28), inset 0 0 0 2px #2a568f; color: #13243f; }
.susan-disc.fast .plate-inner { transition-duration: 0s; }
.plate-inner b { font-family: var(--f-zh); font-weight: 600; font-size: clamp(11px, 3vw, 14px); line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.plate-inner span { font-size: 9.5px; color: #3b4f6e; line-height: 1.1; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.plate.win .plate-inner { box-shadow: 0 0 0 4px #d8b96e, 0 0 30px rgba(240, 214, 140, .9); }
.susan-hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #23406a, #0f2140); color: #f2dca4; display: grid; place-items: center; font-family: var(--f-zh); font-weight: 600; font-size: clamp(16px, 4vw, 22px); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); border: 2px solid #d8b96e; z-index: 2; }
.susan-pointer { position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%); z-index: 3; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-bottom: 24px solid #d8b96e; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.susan-you { pointer-events: none; position: absolute; left: 50%; bottom: -12.5%; transform: translateX(-50%); font-family: var(--f-kai); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.susan-result { width: 100%; text-align: center; min-height: 64px; margin-top: 46px; position: relative; z-index: 4; }

/* share poster */
.poster-img { width: 100%; max-width: 360px; margin: 14px auto 0; border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 28px); }
.toast { padding: 11px 18px; border-radius: 16px; background: color-mix(in srgb, #13243f 88%, transparent); color: #f6faff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); border: 1px solid rgba(236, 216, 160, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: pop .3s var(--ease); }
.toast.err { background: color-mix(in srgb, #b23a26 92%, transparent); color: #fff; }

/* ---------- Footer & mobile dock ---------- */
.footer { position: relative; margin-top: 64px; padding: 36px 0 calc(90px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 13px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent) 40%); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-rule); }
.footer .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer .motto { font-family: var(--f-display); font-style: italic; font-size: 24px; color: var(--ink); line-height: 1.2; }
.footer .motto .zh { font-style: normal; font-weight: 600; font-size: 15px; margin-left: 10px; color: var(--gold-deep); letter-spacing: .06em; }
.footer a { color: var(--ink-2); }
.dock { display: none; }
@media (max-width: 860px) {
  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 600; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--solid) 62%, transparent); border: 1px solid var(--edge); box-shadow: var(--hi), var(--shadow-lg); }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--ink-3); text-decoration: none; font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 16px; transition: background .2s, color .2s; }
  .dock .on { color: var(--ink); background: var(--card); box-shadow: var(--hi); }
  .dock .ico { width: 21px; height: 21px; }
  .dock .plus { color: #fff; background: linear-gradient(180deg, #3d7cc2, #1d4f8c); box-shadow: inset 0 0 0 1px rgba(236, 216, 160, .6); }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dock .plus { background: var(--gilt); color: #1b1406; } }
:root[data-theme="dark"] .dock .plus { background: var(--gilt); color: #1b1406; }

/* ---------- About ---------- */
.about { max-width: 820px; margin: 34px auto 0; padding: 48px 56px 40px; border-radius: 30px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--hi), var(--shadow-lg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (max-width: 700px) { .about { padding: 30px 20px 26px; margin-top: 18px; border-radius: 24px; } }
.about h1 { font-family: var(--f-display); font-size: clamp(40px, 6.4vw, 64px); font-weight: 500; letter-spacing: -.015em; line-height: 1.04; }
.about h1 .zh { display: block; font-size: .95em; margin-top: 14px; }
.about h1 .zh .cal { height: 1em; vertical-align: 0; }
.about h1 .cal-fb { font-size: .55em; color: var(--gold-deep); letter-spacing: .06em; }
.about h2 { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 30px; font-weight: 500; margin: 38px 0 12px; }
.about h2 .cal { --cal-fill: var(--gilt); height: 1.05em; }
.about h2 .cal-fb { font-size: .6em; color: var(--gold-deep); }
.about p, .about li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.about ul { padding-left: 20px; }
.about .rules li { margin-bottom: 6px; }
.about .rules li::marker { color: var(--gold); }
.about-art { float: right; height: auto; width: min(46%, 300px); margin: -64px -72px 0 10px; pointer-events: none; }
@media (max-width: 700px) { .about-art { width: 46%; margin: -10px -14px 0 6px; } }
.legend { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.legend > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); }

/* =====================================================================
   Day / night switch, effects & little delights
   ===================================================================== */
.theme-switch { position: relative; flex: none; width: 56px; height: 30px; padding: 0; border-radius: 999px; border: 1px solid var(--edge); background: var(--card-2); box-shadow: var(--hi), inset 0 1px 3px rgba(30, 70, 130, .1); cursor: pointer; overflow: hidden; transition: background .3s, border-color .3s; }
.theme-switch:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.theme-switch .ts-ico { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; transition: opacity .3s, transform .45s var(--ease); }
.theme-switch .ts-sun { left: 7px; color: var(--gold); }
.theme-switch .ts-moon { right: 7px; color: var(--azure); }
.theme-switch .ts-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--seal); color: #fff; font: 600 12px/1 var(--f-zh); box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 255, 255, .85), 0 2px 6px -1px rgba(0, 0, 0, .35);
  transition: transform .5s cubic-bezier(.3, 1.45, .5, 1); }
.theme-switch[aria-checked="true"] .ts-knob { transform: translateX(26px) rotate(360deg); }
.theme-switch[aria-checked="false"] .ts-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-switch[aria-checked="true"] .ts-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
.theme-switch::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 38% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 12% 62%, #f2dca4, transparent); }
.theme-switch[aria-checked="true"]::before { opacity: .9; animation: twinkle 2.4s ease-in-out infinite; }
.theme-switch:hover .ts-knob { box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 255, 255, .85), 0 3px 10px -1px rgba(194, 65, 45, .55); }
@keyframes twinkle { 50% { opacity: .35; } }
.theme-seg button { height: 28px; padding: 0 11px; font-size: 12.5px; }
@media (max-width: 440px) { .topbar .container { gap: 10px; } .topbar-right { gap: 6px; } .logo-word { display: none; } }

/* moon-light reveal when the theme changes (View Transitions) */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { animation: vt-reveal .7s cubic-bezier(.45, 0, .2, 1); }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); } to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); } }

/* page arrival */
#app > main { animation: page-in .5s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* effects layer (decorative only, never blocks clicks) */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 3000; overflow: hidden; }
.fx-ink, .fx-dot { position: absolute; border-radius: 50%; line-height: 1; will-change: transform, opacity; }
.fx-fall { position: absolute; top: 0; line-height: 1; will-change: transform; user-select: none; }
.fx-seal { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: .24em; background: #c2412d; color: #fff; font-family: var(--f-zh); font-weight: 600;
  box-shadow: inset 0 0 0 .1em #c2412d, inset 0 0 0 .16em rgba(255, 255, 255, .9); }
.fx-crumb { position: absolute; width: 6px; height: 5px; border-radius: 2px; background: #d8b96e; }
.fx-bigseal { position: absolute; left: 50%; top: 46%; width: min(52vw, 230px); aspect-ratio: 1; border-radius: 24px; background: #c2412d; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: inset 0 0 0 10px #c2412d, inset 0 0 0 14px rgba(255, 255, 255, .92), 0 34px 80px -24px rgba(10, 30, 60, .55); }
.fx-bigseal b { font-family: var(--f-kai); font-size: min(27vw, 128px); line-height: 1; font-weight: 900; }
.fx-bigseal small { font: 700 11px/1.3 var(--f-body); letter-spacing: .18em; margin-top: 6px; padding: 0 18px; }

/* flavour chips each have their own little reaction */
[data-flav] { position: relative; overflow: hidden; }
[data-flav].fx-play[data-flav="spicy"] { animation: fl-spicy .5s ease; }
[data-flav].fx-play[data-flav="numbing"] { animation: fl-buzz .65s linear; }
[data-flav].fx-play[data-flav="sour"] { animation: fl-sour .6s cubic-bezier(.3, 1.6, .5, 1); }
[data-flav].fx-play[data-flav="umami"]::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); animation: fl-glint .7s ease forwards; pointer-events: none; }
[data-flav].fx-play[data-flav="crispy"] { animation: fl-crisp .4s steps(4); }
[data-flav].fx-play[data-flav="soupy"] { animation: fl-ripple .9s ease-out; }
[data-flav].fx-play[data-flav="sweet"] { animation: fl-hop .55s cubic-bezier(.3, 1.6, .5, 1); }
[data-flav].fx-play[data-flav="smoky"] { animation: fl-smoke .8s ease; }
[data-flav].fx-play[data-flav="carby"] { animation: fl-plop .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes fl-spicy { 15% { transform: rotate(-8deg) scale(1.08); } 35% { transform: rotate(7deg) scale(1.1); } 55% { transform: rotate(-5deg); } 75% { transform: rotate(3deg); } }
@keyframes fl-buzz { 0%, 100% { transform: none; } 10%, 30%, 50%, 70%, 90% { transform: translate(-1.6px, .6px); } 20%, 40%, 60%, 80% { transform: translate(1.6px, -.6px); } }
@keyframes fl-sour { 30% { transform: scale(1.2, .78); } 60% { transform: scale(.9, 1.1); } }
@keyframes fl-glint { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@keyframes fl-crisp { 25% { transform: rotate(-5deg) translateY(-1px); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
@keyframes fl-ripple { 0% { box-shadow: 0 0 0 0 rgba(44, 106, 174, .4), 0 0 0 0 rgba(44, 106, 174, .25); } 100% { box-shadow: 0 0 0 14px rgba(44, 106, 174, 0), 0 0 0 26px rgba(44, 106, 174, 0); } }
@keyframes fl-hop { 40% { transform: translateY(-9px) scale(1.06); } 70% { transform: translateY(1px) scale(1.02, .97); } }
@keyframes fl-smoke { 30% { transform: translateX(-2px) rotate(-3deg); filter: blur(.4px); } 60% { transform: translateX(2px) rotate(2deg); } }
@keyframes fl-plop { 0% { transform: translateY(-10px); } 45% { transform: translateY(2px) scale(1.16, .84); } 70% { transform: scale(.95, 1.06); } }

/* "chi" takes a bite */
.hero-title em.chi { cursor: pointer; display: inline-block; padding: .12em .1em 0 0; margin: -.12em -.1em 0 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent; }
.hero-title em.chi:hover { transform: rotate(-4deg) scale(1.04); }
.hero-title em.chi:active { transform: scale(.94); }
.hero-title em.chi[data-bites="1"] { -webkit-mask: radial-gradient(circle .3em at 96% 16%, transparent 97%, #000); mask: radial-gradient(circle .3em at 96% 16%, transparent 97%, #000); }
.hero-title em.chi[data-bites="2"] { -webkit-mask: radial-gradient(circle .3em at 96% 16%, transparent 97%, #000), radial-gradient(circle .26em at 64% 4%, transparent 97%, #000); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle .3em at 96% 16%, transparent 97%, #000), radial-gradient(circle .26em at 64% 4%, transparent 97%, #000); mask-composite: intersect; }
.hero-title em.chi[data-bites="3"] { -webkit-mask: radial-gradient(circle .3em at 96% 16%, transparent 97%, #000), radial-gradient(circle .26em at 64% 4%, transparent 97%, #000), radial-gradient(circle .28em at 30% 8%, transparent 97%, #000); -webkit-mask-composite: source-in, source-in;
  mask: radial-gradient(circle .3em at 96% 16%, transparent 97%, #000), radial-gradient(circle .26em at 64% 4%, transparent 97%, #000), radial-gradient(circle .28em at 30% 8%, transparent 97%, #000); mask-composite: intersect; }
.hero-title em.chi.regrow { animation: regrow .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes regrow { from { transform: scale(.4); opacity: 0; } }
.meal-now { color: var(--gold-deep); font-weight: 650; }

/* logo seal: a full spin for the five-tap egg */
.logo-seal.logo-spin { animation: logo-spin .9s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes logo-spin { from { transform: rotate(-360deg) scale(.6); } }
.logo:hover .logo-zh .cal { animation: gilt-sheen 1.6s ease; background-size: 220% 100%; }
@keyframes gilt-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* stamp counter and stamp sheet */
.bump-pop { animation: bump-pop .6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump-pop { 30% { transform: scale(1.4) rotate(-4deg); } }
.stamp-sheet .seal-svg, .legend .seal-svg, .feed-item .seal-svg { transition: scale .3s cubic-bezier(.3, 1.6, .5, 1), translate .3s; }
.stamp-sheet .seal-svg:hover, .legend .seal-svg:hover, .feed-item:hover .seal-svg { scale: 1.14; translate: 0 -3px; }
.stamp-big-count { display: inline-block; }

/* tickets catch the light under the cursor, like glass */
@media (hover: hover) and (pointer: fine) {
  a.ticket::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .34), transparent 62%); }
  a.ticket:hover::after { opacity: 1; }
}

/* lazy Susan: the pointer flutters past the plates, the winner steams */
.susan-stage.spinning .susan-pointer { animation: flutter .1s linear infinite alternate; transform-origin: 50% 100%; }
@keyframes flutter { from { rotate: -9deg; } to { rotate: 9deg; } }
.plate.win .plate-inner { position: relative; }
.plate.win::after { content: ""; position: absolute; left: 50%; bottom: 92%; width: 46px; height: 34px; margin-left: -23px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 34' fill='none' stroke='%23f6faff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 32c-4-6 4-10 0-16s4-10 0-14'/%3E%3Cpath d='M23 30c-4-6 4-10 0-16s4-10 0-12'/%3E%3Cpath d='M34 32c-4-6 4-10 0-16s4-10 0-14'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: win-steam 1.8s ease-in-out infinite; }
@keyframes win-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .95; } 100% { opacity: 0; transform: translateY(-10px); } }
.win-in { animation: win-in .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes win-in { from { transform: scale(.6) translateY(8px); opacity: 0; } }

/* 404: chopsticks still searching the bowl */
.chop-peck { transform-box: fill-box; transform-origin: 100% 0; animation: peck 1.5s ease-in-out infinite; }
@keyframes peck { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-9deg) translate(-3px, 4px); } 50% { transform: rotate(-6deg) translate(-2px, 2px); } }
.empty .bowl, .empty .bowl-art { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.empty:hover .bowl, .empty:hover .bowl-art { transform: rotate(-3deg) scale(1.04); }
.bowl-steam { display: block; width: 70px; height: 40px; margin: 0 auto -18px; color: var(--ink-3); opacity: .7; position: relative; z-index: 1; }

/* footer: fortune cookie + theme picker */
.footer-mid { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; justify-content: center; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cookie { position: relative; flex: none; width: 58px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cookie svg { width: 100%; height: 100%; overflow: visible; }
.cookie .half { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transform-box: view-box; transform-origin: 29px 28px; }
.cookie:hover .half-l { transform: rotate(-4deg); }
.cookie:hover .half-r { transform: rotate(4deg); }
.cookie.open .half-l { transform: rotate(-26deg) translate(-4px, 2px); }
.cookie.open .half-r { transform: rotate(26deg) translate(4px, 2px); }
.cookie:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 10px; }
.slip { position: relative; max-width: 380px; padding: 9px 14px 9px 16px; background: #fbfdff; color: #23395c; border-radius: 3px; font-size: 13px; line-height: 1.5;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 8px 20px -8px rgba(20, 50, 100, .4); animation: slip-out .55s cubic-bezier(.3, 1.5, .5, 1) both; transform-origin: left center; }
.slip .zh { display: block; color: var(--seal); font-family: var(--f-zh); font-weight: 600; }
.slip .lucky { display: block; margin-top: 3px; font-size: 11px; color: #687b98; letter-spacing: .04em; }
.slip-hint { font-size: 14px; color: var(--ink-3); font-style: italic; font-family: var(--f-display); }
@keyframes slip-out { from { transform: scaleX(.1) rotate(-3deg); opacity: 0; } }
@media (max-width: 760px) { .footer-mid { justify-content: flex-start; } .footer-side { align-items: flex-start; } }

/* stomach growl */
#app.growl { animation: growl .6s ease; }
@keyframes growl { 15% { transform: translateX(-3px) rotate(-.2deg); } 30% { transform: translateX(3px) rotate(.2deg); } 45% { transform: translateX(-2px); } 60% { transform: translateX(2px); } 75% { transform: translateX(-1px); } }

/* dock & whisper details */
.dock .plus .ico { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.dock .plus:active .ico, .topbar .btn-seal:hover .ico { transform: rotate(90deg); }
.topbar .btn-seal .ico { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }

/* =====================================================================
   Meal tickets 饭票: wallet, locked spots, passport
   ===================================================================== */
.wallet { position: relative; flex: none; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--edge); background: var(--card-2); box-shadow: var(--hi); color: var(--ink); cursor: pointer; font-size: 13px; transition: border-color .2s, background .2s; }
.wallet .ico { color: var(--gold); }
.wallet b { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.wallet:hover { border-color: color-mix(in srgb, var(--gold) 70%, transparent); background: var(--card); }
.wallet.needs-save::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--seal); border: 2px solid var(--paper); }
.wallet:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
@media (max-width: 480px) { .wallet-label { display: none; } .wallet { padding: 0 9px; } }

.hidden-name { display: inline-block; padding: 1px 10px; border-radius: 6px; color: var(--ink-3); font-style: italic; font-weight: 600;
  background: repeating-linear-gradient(-45deg, var(--card) 0 6px, transparent 6px 12px); border: 1px dashed var(--line-2); }
.hidden-name.sm { padding: 0 6px; font-size: .95em; }
.hidden-name.lg { font-size: 18px; padding: 2px 12px; }
.ticket-top .lock-badge { position: absolute; inset: auto; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(10, 24, 46, .55); color: #fff; font: 650 13px/1 var(--f-body); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ticket-top .lock-badge.gem { background: var(--gilt-bright); color: #241a05; border-color: rgba(255, 240, 200, .6); }
.ticket-top .lock-badge.mine { background: color-mix(in srgb, var(--jade) 85%, transparent); }
.ticket-photo.blurred { transform: scale(1.08); filter: saturate(1.1); }

.lock-banner { align-items: flex-start; flex-wrap: wrap; }
.lock-banner > .ico { flex: none; margin-top: 2px; }
.lock-banner > .grow { flex: 1 1 260px; min-width: 0; }
.lock-banner b { color: var(--ink); }
.lock-progress { display: block; height: 4px; border-radius: 2px; background: var(--line-2); margin: 10px 0 4px; max-width: 320px; overflow: hidden; }
.lock-progress i { display: block; height: 100%; background: var(--gilt); border-radius: 2px; }

.locked-photo { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: var(--paper-2); }
.locked-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.locked-photo .lp-dish { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px; display: flex; align-items: center; gap: 10px; color: #fff;
  background: linear-gradient(to top, rgba(8, 20, 40, .82), transparent); font: 600 clamp(26px, 4vw, 40px)/1.15 var(--f-zh); }
.locked-photo .lp-dish .latin { font-family: var(--f-display); }
.unlock-card { margin-top: 18px; padding: 16px 18px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(135deg, var(--gold-soft), var(--card)); box-shadow: var(--hi), var(--shadow); max-width: 520px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.uc-top { display: flex; align-items: center; gap: 8px; color: var(--gold-deep); }
.uc-top b { font-size: 16px; color: var(--ink); }
.uc-cost { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 600 24px/1 var(--f-display); color: var(--gold-deep); font-variant-numeric: lining-nums tabular-nums; }
.uc-cost.big { font-size: 46px; margin-left: 0; }
.unlock-card p { margin: 8px 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.uc-dish { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.uc-dish b { font: 600 28px/1.2 var(--f-zh); }
.uc-dish b.latin { font-family: var(--f-display); }
.uc-dish span { color: var(--ink-3); font-size: 14px; }
.uc-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 6px; }
.pp-earn-mini { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; }

.wc-pin.fog .wc-pin-inner { background: rgba(255, 255, 255, .85); color: var(--seal); border: 1.5px dashed var(--seal); box-shadow: 0 4px 10px rgba(20, 40, 80, .25); }

.passport .pp-balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pp-tile { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--hi); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-tile b { font: 600 40px/1 var(--f-display); color: var(--azure); font-variant-numeric: lining-nums tabular-nums; }
.pp-tile.starter b { color: var(--gold-deep); }
.pp-tile span { font-size: 13px; font-weight: 650; }
.pp-tile small { font-size: 11.5px; color: var(--ink-3); }
.pp-recovery { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); background: var(--gold-soft); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.pp-recovery > div:first-child { grid-column: 1 / -1; }
.pp-recovery p { margin: 2px 0 0; }
.pp-recovery code { font: 700 17px/1 var(--f-mono); letter-spacing: .06em; background: var(--solid); padding: 10px 12px; border-radius: 10px; white-space: nowrap; border: 1px solid var(--line); }
.pp-h { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pp-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 55%, transparent), transparent); }
.pp-earn { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.pp-earn li { display: flex; gap: 10px; align-items: baseline; }
.pp-earn b { min-width: 40px; font: 600 19px/1 var(--f-display); color: var(--gold-deep); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.pp-list { display: grid; gap: 6px; }
.pp-list a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pp-list a span { font-weight: 650; }
.pp-list a small { color: var(--ink-3); }
.pp-hist { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; font-size: 13.5px; }
.pp-hist > div { display: flex; gap: 10px; align-items: baseline; padding: 6px 2px; border-bottom: 1px dashed var(--line-2); }
.pp-hist .plus, .pp-hist .minus { min-width: 38px; font: 600 17px/1 var(--f-display); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.pp-hist .plus { color: var(--jade); } .pp-hist .minus { color: var(--seal); }
.pp-hist small { color: var(--ink-3); }
@media (max-width: 560px) { .passport .pp-balance { grid-template-columns: 1fr 1fr; } .passport .pp-balance .pp-tile:last-child { grid-column: 1 / -1; } .pp-recovery { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
