/* 露坑線上點餐：B1 夜墨金＋霞鶩文楷 TC（店主 2026-10-08 改用，原辰宇落雁體；docs/44 §4.2）。
   單一深色設計（夜營），刻意不跟系統淺色模式切換。 */
@font-face {
  font-family: "Cormorant Italic";
  src: url("/fonts-static/cormorant-italic-600.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0f10;
  --ink: #efe8da;
  --soft: #a59f92;
  --line: #24262a;
  --gold: #c8a96a;
  --photo: #1d1f22;
  --ui: system-ui, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --hand: var(--ui);
  --brand-latin: "Cormorant Italic", "Times New Roman", serif;
  --logo: url("/brand/logo-ink.png");
}
.hand-font-ready {
  --hand: "LukengHand", var(--ui);
}

* { box-sizing: border-box; }
/* hidden 一定要贏過 class 的 display（否則隱藏的詳情視窗會透明地蓋住整頁、什麼都點不到）。 */
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}
button, input, textarea { font: inherit; line-height: 1.5; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.logo {
  background-color: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar-logo { width: 30px; height: 40px; flex: none; }
.bar-name { flex: none; display: grid; line-height: 1.2; }
.bar-name b { font-weight: 400; font-size: 25px; letter-spacing: 0.08em; }
.bar-name small { font-family: var(--brand-latin); font-style: italic; font-size: 16px; color: var(--gold); letter-spacing: 0.04em; }
.bar-table {
  margin-left: auto;
  min-width: 0;
  max-width: 45%;
  overflow-wrap: anywhere;
  padding: 3px 10px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 18px;
}

.page { overflow-wrap: anywhere; max-width: 640px; margin: 0 auto; padding: 0 18px 120px; }
.greeting { margin: 22px 0 8px; font-size: 28px; letter-spacing: 0.04em; text-wrap: balance; }
.message { margin: 18px 0; padding: 12px 14px; border: 1px solid var(--gold); color: var(--ink); }

.tabs { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 44px;
  color: var(--soft);
  font-size: 21px;
  white-space: nowrap;
  cursor: pointer;
}
.tab-on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--gold); }

.list { display: grid; }
.item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 14px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.item-soldout { opacity: 0.5; }
.item-photo { width: 84px; height: 84px; border-radius: 4px; background: var(--photo); overflow: hidden; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-text { display: grid; gap: 2px; min-width: 0; }
.item-name { font-size: 23px; letter-spacing: 0.03em; }
.item-desc { font-size: 17px; color: var(--soft); }
.item-price, .sheet-price {
  font-family: var(--ui);
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.5;
}
.price-from { font-family: var(--ui); font-style: normal; font-weight: 400; font-size: 0.8em; }
.item-badge { font-size: 17px; color: var(--gold); white-space: nowrap; }
.item-badge-off { color: var(--soft); }

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--gold);
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.06em;
}
.footer-action { width: min(100%, 604px); border: 0; background: none; color: var(--gold); cursor: pointer; }

.view-title { margin: 4px 0 18px; font-weight: 400; font-size: 38px; letter-spacing: .06em; }
.eyebrow { margin: 28px 0 0; color: var(--gold); font-family: var(--ui); }
.back-link { margin: 18px 0 0; padding: 8px 0; border: 0; background: none; color: var(--gold); cursor: pointer; }
.action { display: block; width: 100%; margin: 20px 0; padding: 13px 18px; border: 1px solid var(--gold); border-radius: 3px; background: var(--gold); color: var(--bg); cursor: pointer; text-align: center; }
.action:hover { background: #dfc084; }
.quiet-action { padding: 8px; border: 0; background: none; color: var(--gold); cursor: pointer; }
.empty-state, .order-hint { color: var(--soft); }
.cart-line { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line > div:first-child { display: grid; align-content: start; gap: 5px; min-width: 0; }
.cart-line b { font-weight: 400; overflow-wrap: anywhere; }
.cart-controls { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.qty-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 2px; background: var(--photo); cursor: pointer; }
.cart-total { margin: 22px 0; padding-top: 14px; border-top: 1px solid var(--gold); color: var(--gold); font-size: 22px; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: right; }
.note-label { display: grid; gap: 8px; margin: 26px 0 8px; }
.note-label textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--photo); resize: vertical; }
.payment-note { color: var(--soft); }
.turnstile { margin: 16px 0; }
.field-error { color: #f4aaa2; }
.order-state { margin: 20px 0; padding: 20px; border-left: 2px solid var(--gold); background: var(--photo); font-size: 23px; }
.order-line { padding: 8px 0; border-bottom: 1px solid var(--line); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.6); display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.sheet {
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--gold);
  padding: 22px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--soft);
  cursor: pointer;
}
.sheet-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.sheet-title { margin: 16px 0 4px; font-weight: 400; font-size: 31px; letter-spacing: 0.04em; }
.sheet-desc { margin: 0 0 6px; color: var(--soft); font-family: var(--hand); font-size: 20px; line-height: 1.5; letter-spacing: .03em; }
.sheet-price { margin: 0 0 12px; font-size: 20px; }
.sheet-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--soft); }
.sheet-open { overflow: hidden; }
.opt-group { min-inline-size: 0; margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--line); line-height: 1.8; }
.opt-group-name { max-width: 100%; font-size: 21px; }
.opt-group-rule { font-size: 16px; color: var(--soft); }
.opt-off { color: var(--soft); }
.opt-extra { font-family: var(--ui); font-variant-numeric: tabular-nums; color: var(--gold); }
.opt-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 3px 0; cursor: pointer; }
.opt-choice:has(input:disabled) { cursor: default; opacity: .55; }
.opt-choice input { flex: none; width: 20px; height: 20px; accent-color: var(--gold); }
.opt-choice .opt-extra { margin-left: auto; }
.opt-choice > span { min-width: 0; }
.opt-choice .opt-extra, .opt-choice .opt-off { flex: none; }
.detail-controls { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.detail-controls .action { margin: 0; }
.qty-input { width: 68px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--photo); text-align: center; }

@media (max-width: 480px) {
  .cart-line { flex-wrap: wrap; }
  .cart-controls { width: 100%; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.item-flavor, .item-audience, .item-labels { display: block; font-family: var(--ui); font-size: 14px; line-height: 1.6; margin-top: 5px; }
.item-flavor, .item-audience { font-family: var(--hand); font-size: 19px; line-height: 1.5; letter-spacing: .03em; }
.item-flavor { color: var(--ink); }
.item-audience { color: var(--soft); }
.item-labels { color: var(--gold); font-size: 12px; letter-spacing: .04em; }

/* M1b：先選一個方向，再看完整品項。沿用夜墨、霧金與手寫標題。 */
.welcome { padding: 32px 0 28px; }
.welcome .greeting { margin: 0 0 12px; font-family: var(--ui); font-size: 14px; color: var(--soft); letter-spacing: .02em; }
.welcome-title { font-size: clamp(36px, 9vw, 48px); font-weight: 400; line-height: 1.35; margin: 0 0 28px; letter-spacing: .06em; }
.welcome-dot { color: var(--gold); }
.shortcuts { display: flex; gap: 8px; flex-wrap: wrap; }
.shortcut { flex: 1 1 85px; min-height: 52px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--photo); font-size: 18px; cursor: pointer; overflow-wrap: anywhere; }
.shortcut:first-child { border-color: var(--gold); }
.section-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.section-heading h2, .catalog-title { font-size: 24px; font-weight: 400; margin: 16px 0 8px; }
.section-heading > span { font-family: var(--ui); font-size: 12px; color: var(--soft); }
#recommendations, #quiz { scroll-margin-top: 90px; }
.recommended-list { gap: 12px; }
.recommended-list .item { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #151719; }
.catalog-title { margin-top: 30px; }
.tabs { flex-wrap: wrap; gap: 8px 18px; overflow: visible; }
.tab { font-size: 18px; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.item { display: block; cursor: default; padding: 22px 0; }
.item-detail { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 16px; padding: 0; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; min-height: 44px; }
.item-text { flex: 1; overflow-wrap: anywhere; }
.item-photo { flex: none; width: 76px; height: 76px; }
.item-name, .cart-line b { font-family: var(--hand); font-size: 25px; line-height: 1.4; letter-spacing: .03em; }
.item-desc { font-family: var(--hand); font-size: 19px; line-height: 1.5; letter-spacing: .03em; }
.item-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.item-actions > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.item-badge { font-family: var(--ui); font-size: 12px; }
.item-add { flex: none; min-height: 44px; min-width: 72px; padding: 8px 14px; font-family: var(--ui); font-size: 14px; border: 1px solid var(--gold); border-radius: 4px; color: var(--gold); background: none; cursor: pointer; }
.item-add:disabled { color: var(--soft); border-color: var(--line); cursor: default; }
.footer-action, .qty-button, .quiet-action, .back-link { min-height: 44px; }
.qty-button { min-width: 44px; }
.cart-feedback { position: fixed; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); left: 18px; right: 18px; z-index: 6; margin: 0 auto; width: fit-content; max-width: calc(100% - 36px); background: var(--photo); color: var(--ink); font: 13px/1.5 var(--ui); border-radius: 4px; }
.cart-feedback:not(:empty) { padding: 8px 14px; }
.sheet-title { padding-right: 34px; overflow-wrap: anywhere; }
.sheet { overscroll-behavior: contain; }

.footer-action, .back-link { font-family: var(--ui); }
/* 分類（首頁入口、分類分頁）也用手寫體（店主 2026-10-08）。 */
.shortcut, .tab { font-family: var(--hand); letter-spacing: .03em; }
.tab { font-size: 22px; }
.shortcut { font-size: 21px; }

/* 手寫體：品牌、標題、分類、商品名稱與內容說明；價格、數量、按鈕與標籤共用 UI 字型（店主 2026-10-08）。 */
.bar-name b, .welcome-title, .view-title, .section-heading h2, .catalog-title, .sheet-title { font-family: var(--hand); line-height: 1.4; }
.cart-controls { font-variant-numeric: tabular-nums; line-height: 1.5; }
.cart-controls > span { min-width: 2ch; text-align: center; }
.qty-button { display: inline-grid; place-items: center; padding: 0; font-size: 16px; }
.qty-input { font-variant-numeric: tabular-nums; }

/* ── 手沖體驗卡（docs/63 §4、M1c；店主 2026-10-08 選定）──
   卡面是淺色粉彩（照店主的豆單），舞台與卡背沿用夜墨金。動畫只動 transform／opacity。 */
.brew-theme-peach { --brew-bg: linear-gradient(160deg, #fbe7e1 0%, #f6d6cf 55%, #f3e4dc 100%); --brew-accent: #c56f66; --brew-ink: #b2483f; }
.brew-theme-honey { --brew-bg: linear-gradient(160deg, #fbf1dd 0%, #f4e3c3 55%, #f8eedd 100%); --brew-accent: #b88a46; --brew-ink: #9a6a22; }
.brew-theme-citrus { --brew-bg: linear-gradient(160deg, #e8eef0 0%, #d9e3e6 55%, #eef1ee 100%); --brew-accent: #5f7b86; --brew-ink: #2f4f7a; }
.brew-theme-wine { --brew-bg: linear-gradient(160deg, #f3e3e4 0%, #e9d0d3 55%, #f2e6e4 100%); --brew-accent: #9b4e5c; --brew-ink: #8d2f3e; }
.brew-theme-forest { --brew-bg: linear-gradient(160deg, #e6ece0 0%, #d4dfcc 55%, #eef0e6 100%); --brew-accent: #5c7a4c; --brew-ink: #3f5f2f; }
.brew-theme-ink { --brew-bg: linear-gradient(160deg, #2a2c2f 0%, #1c1e20 60%, #24262a 100%); --brew-accent: #c8a96a; --brew-ink: #e2cb8f; }

.brew-deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .brew-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brew-mini {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 10px 10px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--brew-bg); color: #3a2a24; font-family: var(--ui);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.brew-theme-ink.brew-mini, .brew-theme-ink.brew-front { color: var(--ink); }
.brew-mini:active { transform: scale(.98); }
.brew-art {
  display: block; height: auto; aspect-ratio: 1; object-fit: cover; pointer-events: none;
  /* 水彩圖底是米白紙色：邊緣淡出，淺色卡再用 multiply 讓紙色融進卡面配色。 */
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mix-blend-mode: multiply;
}
.brew-theme-ink .brew-art { mix-blend-mode: normal; }
.brew-mini .brew-art { width: 100%; }
.brew-mini-title { font-family: var(--hand); font-size: 20px; line-height: 1.3; letter-spacing: .04em; overflow-wrap: anywhere; }
.brew-mini-origin { font-size: 12px; opacity: .75; line-height: 1.4; overflow-wrap: anywhere; }
.brew-mini-off { font-size: 12px; color: var(--brew-ink); }
.brew-soldout { opacity: .55; }
.brew-drawn { visibility: hidden; }
.brew-tag { align-self: flex-start; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--brew-accent); color: #fff; letter-spacing: .05em; }

.brew-stage {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden;
  background: rgba(6, 7, 8, 0); transition: background .35s ease; perspective: 1100px;
}
.brew-stage.brew-on { background: rgba(6, 7, 8, .9); }
.brew-card {
  position: absolute; left: 50%; top: 50%; width: min(76vw, 320px); aspect-ratio: 5 / 7;
  margin-left: calc(min(76vw, 320px) / -2); margin-top: calc(min(76vw, 320px) * 1.4 / -2);
  transform-style: preserve-3d;
}
.brew-face { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.brew-back { background: radial-gradient(120% 80% at 50% 0%, #2a2c2f 0%, #121314 70%), #0e0f10; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px #3a3527; }
.brew-back-art { width: 100%; height: 100%; display: block; }
.brew-back-art text { font-family: var(--hand); }
.brew-front {
  transform: rotateY(180deg); background: var(--brew-bg); color: #3a2a24;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .4);
  padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px;
}
.brew-front .brew-art { position: absolute; right: -10px; bottom: 30px; width: 58%; opacity: .95; }
.brew-title { margin: 4px 0 0; font-family: var(--hand); font-weight: 400; font-size: clamp(26px, 8vw, 32px); line-height: 1.2; letter-spacing: .06em; overflow-wrap: anywhere; }
.brew-origin { margin: 0; font-size: 12.5px; opacity: .8; line-height: 1.5; }
.brew-notes { margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed rgba(60, 40, 30, .25); font-size: 13.5px; font-weight: 700; line-height: 1.6; color: var(--brew-ink); }
.brew-desc { position: relative; z-index: 1; margin: 0; font-size: 13px; line-height: 1.75; opacity: .9; }
.brew-foot { position: relative; z-index: 1; margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid rgba(60, 40, 30, .2); font-size: 13px; }
.brew-foot strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.brew-front::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-70%);
}
.brew-front.brew-shine::after { animation: brew-shine 1.1s ease-out .05s forwards; }
@keyframes brew-shine { 0% { opacity: 1; transform: translateX(-70%); } 100% { opacity: 0; transform: translateX(70%); } }

.brew-peek {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold);
  color: var(--bg); font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .3s ease;
}
.brew-peek.brew-on { opacity: 1; }
.brew-peek:disabled { background: var(--photo); color: var(--soft); border-color: var(--line); }
.brew-close {
  position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(29, 31, 34, .85); color: var(--ink); font-size: 22px; cursor: pointer;
}
.brew-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 64%; overflow-y: auto;
  background: #16181a; border-top: 1px solid #3a3527; border-radius: 22px 22px 0 0;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px;
  transform: translateY(105%); overscroll-behavior: contain;
}
.brew-panel-title { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 22px; color: var(--gold); letter-spacing: .05em; }
.brew-includes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.brew-includes li { display: grid; gap: 2px; padding-left: 14px; position: relative; line-height: 1.5; }
.brew-includes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.brew-includes small { color: var(--soft); font-size: 13px; }
.brew-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.brew-price { font-size: 24px; font-variant-numeric: tabular-nums; }
.brew-add { min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--gold); color: var(--bg); font-weight: 700; cursor: pointer; }
.brew-again { align-self: center; min-height: 40px; border: 0; background: none; color: var(--soft); text-decoration: underline; cursor: pointer; }

/* 抽卡道具：光芒、粒子、路面、咖啡車、店員、地板裂痕 */
.brew-rays {
  position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(196, 167, 102, .32) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%);
}
.brew-bit { position: absolute; left: 50%; top: 50%; width: 10px; height: 14px; margin: -7px 0 0 -5px; border-radius: 50%; pointer-events: none; }
.brew-bean { background: #7a4d2e; box-shadow: inset 2px 0 0 #3b2416; }
.brew-petal { background: #fffaf3; }
.brew-speed { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.brew-speed i { position: absolute; left: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(231, 227, 216, .75)); opacity: 0; }
.brew-road {
  position: absolute; left: 0; right: 0; height: 70px; pointer-events: none;
  background: linear-gradient(180deg, transparent, #2a2d30 18%, #2a2d30 82%, transparent),
    repeating-linear-gradient(90deg, rgba(196, 167, 102, .35) 0 34px, transparent 34px 70px) center / 100% 3px no-repeat;
}
.brew-skid { position: absolute; height: 14px; display: flex; flex-direction: column; justify-content: space-between; transform-origin: left center; pointer-events: none; }
.brew-skid span { display: block; height: 5px; border-radius: 3px; margin-left: 10%; width: 90%; background: linear-gradient(90deg, rgba(8, 8, 8, 0), rgba(8, 8, 8, .85) 40%, #050505); }
.brew-skid span + span { margin-left: 0; width: 100%; }
.brew-puff { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 40% 40%, rgba(231, 227, 216, .9), rgba(170, 167, 158, .45) 55%, rgba(170, 167, 158, 0) 72%); }
.brew-truck, .brew-worker, .brew-crack, .brew-chip, .brew-dust { position: absolute; left: 50%; pointer-events: none; }
.brew-truck { width: 230px; height: 134px; }
.brew-truck-art, .brew-worker-art { width: 100%; height: 100%; display: block; overflow: visible; }
.brew-truck-art text { font-family: var(--hand); }
.brew-wheel { transform-box: fill-box; transform-origin: center; }
.brew-rolling .brew-wheel { animation: brew-roll .28s linear infinite; }
@keyframes brew-roll { to { transform: rotate(360deg); } }
.brew-worker { width: 40px; height: 66px; margin-left: -20px; }
.brew-leg { transform-box: fill-box; transform-origin: top center; }
.brew-running .brew-leg-a { animation: brew-stride .22s ease-in-out infinite alternate; }
.brew-running .brew-leg-b { animation: brew-stride .22s ease-in-out infinite alternate-reverse; }
@keyframes brew-stride { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.brew-floor { position: absolute; left: -10%; right: -10%; bottom: -10%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, #3a342b 0, #2a2620 3px, #1d1b18 40%, #121110); box-shadow: 0 -1px 0 rgba(196, 167, 102, .5); }
.brew-crack { width: 320px; height: 80px; margin-left: -160px; z-index: 3; overflow: visible; }
.brew-crack path { fill: none; stroke: #050505; stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.brew-chip { width: 9px; height: 7px; margin-left: -4px; background: #5a5046; border-radius: 2px; z-index: 3; }
.brew-dust { width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; z-index: 3; background: radial-gradient(circle, rgba(170, 160, 140, .6), rgba(170, 160, 140, 0) 70%); }
@media (prefers-reduced-motion: reduce) {
  .brew-stage { transition: none; }
  .brew-rolling .brew-wheel, .brew-running .brew-leg-a, .brew-running .brew-leg-b, .brew-front.brew-shine::after { animation: none; }
}

/* 加購推薦（購物車下方，最多 2 項；略過就不再出現） */
.upsell { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
.upsell-title { margin: 0; font-family: var(--hand); font-size: 20px; color: var(--gold); }
.upsell-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upsell-item b { font-family: var(--hand); font-weight: 400; font-size: 20px; overflow-wrap: anywhere; }
.upsell-skip { justify-self: start; min-height: 40px; border: 0; background: none; color: var(--soft); text-decoration: underline; cursor: pointer; }

/* 帶回家零售商品（docs/63 §13）：依分類分組；提醒到櫃檯領取。 */
.take-home-list { display: grid; gap: 8px; }
.take-home-category { margin: 18px 0 0; font-family: var(--hand); font-weight: 400; font-size: 20px; color: var(--gold); letter-spacing: .04em; }
.take-home-group .item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.take-home-group .item:last-child { border-bottom: 0; }
.take-home-note { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 6px; color: var(--gold); font-size: 15px; }

/* 付款方式（docs/44 §4.4.2）：現金／LINE Pay；LINE Pay 可填手機條碼或統編。 */
.pay-methods { border: 0; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pay-methods legend { margin-bottom: 6px; color: var(--soft); font-size: 15px; }
.pay-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--gold); }
.pay-option input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--gold); }
.pay-option span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-option small { color: var(--soft); font-size: 13px; }
.invoice-fields { margin-top: 8px; }
.invoice-fields select, .invoice-fields input { width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #151719; color: var(--ink); font: inherit; font-size: 16px; }

/* 「不知道喝什麼」引導推薦（docs/63 §2 M2a）：一題一題問，答案是大按鈕。 */
.quiz-start { margin: 8px 0 4px; }
.quiz-step { margin: 4px 0 0; font-family: var(--ui); font-size: 12px; color: var(--soft); }
.quiz-prompt { margin: 4px 0 12px; font-family: var(--hand); font-size: 22px; font-weight: 400; line-height: 1.4; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--photo); color: inherit; font-family: var(--hand); font-size: 19px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--gold); }
.quiz-nav { margin-top: 8px; }
.quiz-label { margin: 14px 0 4px; font-family: var(--ui); font-size: 13px; color: var(--gold); }
.quiz-empty { margin: 8px 0 0; }
.link-button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--soft); font-family: var(--ui); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* 掃碼直接進完整菜單（2026-10-10）：分頁下的一句說明；「不知道喝什麼？」是問候語下的小按鈕。 */
.tab-note { margin: 4px 0 8px; font-family: var(--ui); font-size: 13px; color: var(--soft); }
.quiz-entry { flex: 0 1 auto; }
/* 桌號低消（2026-10-14） */
.minimum-box { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 6px; color: var(--gold); font-size: 15px; }
.minimum-box p { margin: 0; }
.party-field { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--ink); }
.party-field input { width: 96px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #151719; color: var(--ink); font: inherit; font-size: 16px; text-align: center; }
.minimum-shortfall { margin: 8px 0; }
.add-on-field { margin: 8px 0; }
.add-on-field[hidden] { display: none; }
.add-on-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 15px; }
.add-on-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.add-on-hint { margin: 2px 0 0 30px; color: var(--soft); font-size: 13px; }
.add-on-hint[hidden] { display: none; }
.action:disabled { opacity: .45; cursor: not-allowed; }
