:root {
  color-scheme: dark;
  --bg: #121615;
  --panel: #1c2220;
  --text: #f1f3ef;
  --muted: #c0c7c2;
  --faint: #a1ada5;
  --line: #343e38;
  --gold: #e0dba0;
  --sage: #a3cfb8;
  --wine: #e4b4c0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.page { min-height: 100svh; }
.hero-inner, .toolbar-inner, .content, .footer { width: min(100%, 1040px); margin: 0 auto; }
.hero { padding: max(20px, env(safe-area-inset-top)) 20px 14px; }
.hero-inner { position: relative; }
.hero-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hero-heading .brand { min-width: 0; }
.menu-switch { display: grid; align-content: center; flex: 0 0 auto; min-height: 44px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; text-align: center; text-decoration: none; color: var(--gold); line-height: 1.25; }
.menu-switch[hidden] { display: none; }
.menu-switch span { font-size: .8125rem; }
.menu-switch span[lang="en"] { color: var(--muted); font-size: .6875rem; }
.menu-switch:hover { background: var(--panel); border-color: var(--gold); }
@media (max-width: 380px) {
  .hero-heading:has(.menu-switch:not([hidden])) .brand { gap: 8px; }
  .hero-heading:has(.menu-switch:not([hidden])) .brand-logo { width: 40px; height: 40px; }
  .hero-heading:has(.menu-switch:not([hidden])) h1 { font-size: 1.65rem; }
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand > div { min-width: 0; }
.brand-logo { width: 48px; height: 48px; padding: 6px; border-radius: 4px; background: #fff; object-fit: contain; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.brand-kicker { margin: 0; color: var(--sage); font-size: 0.6875rem; }
h1 { margin: 0; font: 500 2rem/1.2 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.hero-copy { margin: 12px 0 0; color: var(--muted); font-size: 0.8125rem; }
#eventNote { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.event-item-note { white-space: pre-line; }
.price-unit { font-size: .75em; font-weight: 500; }
.hero-actions { margin-top: 12px; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; color: var(--bg); background: var(--gold); font-size: 0.9rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.hero-meta { display: grid; gap: 5px; margin-top: 12px; }
.meta-chip { font-size: 0.75rem; color: var(--faint); }
#happyHourStatus { border-left: 2px solid var(--line); padding-left: 10px; font-size: 0.8125rem; color: var(--muted); }
#happyHourStatus.is-live { color: var(--gold); border-color: var(--gold); }
.toolbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.toolbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) 44px; column-gap: 8px; padding: 8px 20px 0; }
.search-wrap { position: relative; }
.search-input { width: 100%; height: 44px; padding: 8px 48px 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); font-size: 1rem; -webkit-appearance: none; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-input::placeholder { color: var(--faint); }
.clear-search { display: none; position: absolute; right: 0; top: 0; width: 44px; height: 44px; color: var(--text); border: 0; background: transparent; font-size: 1.5rem; }
.clear-search.is-visible { display: block; }
.category-nav { grid-column: 1 / -1; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 6px -20px 0; padding: 0 20px; overscroll-behavior-inline: contain; }
.category-nav::-webkit-scrollbar { display: none; }
.category-button { flex: 0 0 auto; min-height: 48px; padding: 9px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; font-size: 0.9375rem; }
.category-button.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.content { padding: 12px 20px 30px; }
.menu-status { margin: 0; min-height: 22px; color: var(--faint); font-size: 0.75rem; }
.menu-section { padding-top: 22px; scroll-margin-top: 126px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-heading h2 { order: 0; margin: 0; font-size: 1.25rem; line-height: 1.4; }
.section-heading p { order: 1; margin: 0; color: var(--sage); font-size: 0.75rem; }
.section-heading small { display: none; }
.items-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.menu-item { min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.item-body { min-width: 0; }
.item-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.item-name { margin: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.item-name .name-en { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.price { color: var(--gold); font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-detail { margin: 9px 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.item-detail-lines { display: grid; gap: 3px; }
.item-detail-lines strong { display: none; }
.item-detail-lines .flavor-en { color: var(--faint); font-size: 0.75rem; line-height: 1.6; }
.choice-list, .tag-list { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; color: var(--sage); font-size: 0.8125rem; }
.choice + .choice::before { content: "/"; margin-right: 14px; color: var(--line); }
.tea-choice-title { margin: 10px 0 3px; font-size: .875rem; color: var(--sage); }
.tea-choices { margin: 0; padding-inline-start: 1.15em; font-size: .875rem; color: var(--muted); line-height: 1.65; }
.tag { color: var(--faint); }
.item-specs { display: grid; gap: 4px; margin-top: 10px; color: var(--muted); font-size: 0.875rem; }
.variant-list { display: grid; gap: 6px; padding: 0; margin: 12px 0 0; list-style: none; }
.variant-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; color: var(--muted); }
.variant-list strong { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wine-summary { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 16px; }
.wine-summary.no-image { grid-template-columns: minmax(0, 1fr); }
.item-image { position: relative; width: 76px; height: 132px; padding: 6px; overflow: hidden; border: 0; border-radius: 4px; background: #fff; }
.item-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.menu-item.has-image:not(.wine-item) { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
.product-image { width: 76px; height: 108px; background: #fff; border-radius: 4px; overflow: hidden; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-image.is-cover img { object-fit: cover; }
.zoom-mark { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 22px; height: 22px; color: #253a2c; background: #fff; font-size: 1.125rem; }
.zoom-mark::before { content: ""; width: 16px; height: 16px; background: currentColor; mask: url("./assets/zoom-in.svg") center / contain no-repeat; -webkit-mask: url("./assets/zoom-in.svg") center / contain no-repeat; }
.wine-title { font-size: 1.0625rem; line-height: 1.45; }
.wine-vintage { margin: 4px 0 8px; color: var(--wine); font-size: 0.75rem; }
.wine-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 9px; margin: 0; font-size: 0.8125rem; line-height: 1.6; }
.wine-facts dt { color: var(--faint); }
.wine-facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.wine-flavor { margin: 14px 0 0; font-size: 0.9375rem; color: var(--text); line-height: 1.7; overflow-wrap: anywhere; }
.wine-flavor strong { margin-right: 10px; font-size: 0.75rem; color: var(--sage); font-weight: 500; }
.wine-prices { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; padding: 0; list-style: none; }
.wine-prices li { display: flex; align-items: baseline; gap: 8px; }
.wine-prices span { font-size: 0.75rem; color: var(--faint); }
.wine-prices strong { color: var(--gold); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cocktail-note { margin: 14px 0 6px; color: var(--sage); font-size: 0.875rem; }
.empty { display: none; padding: 40px 0; text-align: center; color: var(--muted); }
.empty.is-visible { display: block; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 20px 20px max(78px, env(safe-area-inset-bottom)); font-size: 0.75rem; color: var(--faint); }
.to-top { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--sage); background: var(--panel); text-decoration: none; }
.to-top::before { content: ""; width: 20px; height: 20px; background: currentColor; mask: url("./assets/arrow-up.svg") center / contain no-repeat; -webkit-mask: url("./assets/arrow-up.svg") center / contain no-repeat; }
.wine-dialog { width: min(92%, 520px); max-height: 90svh; border: 1px solid var(--line); padding: 18px; border-radius: 6px; color: var(--text); background: var(--panel); }
.wine-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.dialog-close { display: block; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 1.75rem; }
.wine-dialog img { display: block; width: 100%; height: min(60svh, 600px); object-fit: contain; background: #fff; }
.wine-dialog p { margin: 12px 0 0; font-size: 1rem; overflow-wrap: anywhere; }
body:has(.wine-dialog[open]) { overflow: hidden; }
.entry-splash { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--bg); transition: opacity 300ms ease, visibility 300ms ease; }
.entry-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-splash-inner { display: grid; justify-items: center; gap: 16px; }
.entry-splash-mark { position: relative; width: 136px; height: 136px; padding: 18px; border-radius: 6px; background: #fff; }
.entry-splash-logo, .entry-wine-spin img { width: 100%; height: 100%; object-fit: contain; }
.entry-wine-spin { position: absolute; inset: 18px; clip-path: inset(27% 38% 25% 39%); transform-origin: 50% 51%; animation: wineSpin 980ms ease 180ms both; }
.entry-splash-wordmark { font: 1.375rem Georgia, serif; color: var(--gold); }
@keyframes wineSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.admin-gate { position: fixed; inset: 0; z-index: 998; display: none; place-items: center; padding: 20px; background: rgba(0, 0, 0, .82); }
.admin-gate.is-open { display: grid; }
.admin-gate-card { width: min(100%, 360px); padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.admin-gate-card h2 { margin: 0 0 16px; font-size: 1.25rem; }
.admin-gate-card input { width: 100%; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--bg); font-size: 1rem; }
.admin-gate-actions { display: flex; gap: 10px; margin-top: 12px; }
.admin-gate-actions button { flex: 1; min-height: 44px; border: 0; border-radius: 4px; background: var(--gold); color: var(--bg); }
.admin-gate-actions .secondary { color: var(--text); border: 1px solid var(--line); background: transparent; }
.admin-gate-status { min-height: 24px; margin: 10px 0 0; color: var(--wine); }
@media (min-width: 760px) {
  .hero { padding-top: 28px; }
  .hero-meta { display: flex; gap: 14px; align-items: center; }
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .content { padding-top: 16px; }
  .menu-section { padding-top: 30px; }
  .wine-summary { grid-template-columns: 90px minmax(0, 1fr); }
  .item-image { width: 90px; height: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry-wine-spin { animation: none; }
  .entry-splash { transition: none; }
}
.greeting-dialog { width: min(calc(100% - 32px), 380px); max-height: 85dvh; padding: 24px; text-align: center; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.greeting-dialog::backdrop { background: rgb(0 0 0 / 74%); }
.greeting-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.greeting-confetti[hidden] { display: none; }
.greeting-dialog img { border-radius: 4px; }
.greeting-dialog h2 { margin: 14px 0 20px; font-size: 1.35rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.greeting-dialog button { min-height: 44px; padding: 6px 16px; color: var(--bg); background: var(--gold); border: 0; border-radius: 4px; }
