/* Coffee Immerse — 外帶預點／掃碼點餐（v4.91「點餐模式」）
   跟品牌官網共用：字體 Immersion Latin Tight、logo、色票（new-site globals.css）、方角細線、10px 卡片圓角。
   點餐頁才有的：墨綠櫃台區＋步驟條、TO GO 標記、點餐單（編號＋虛線撕線）、取餐券、底部購物袋列。
   注意：CSP style-src 'self' → 不能用 style 屬性，一律用 class。 */

@font-face {
  font-family: "Immersion Latin Tight";
  src: url("/brand/ImmersionLatinTight-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2026, U+20AC, U+2190-2193, U+2197;
}

:root {
  /* 官網 globals.css（日間） */
  --bg: #f7f6f3;          /* 點餐頁底：官網卡片色（官網本身是純白，這樣進來會覺得換了空間） */
  --card: #ffffff;
  --line: #eae7e2;
  --line-2: #d9d3c9;      /* 虛線撕線 */
  --sand: #c8bbae;
  --ink: #2c2c2c;
  --ink-soft: #5c5852;
  --ink-mute: #736d64;   /* 官網 #8C867D 太淡（小字對比不足）→ 加深一點 */
  --wood: #e3d2b2;
  --tag: #e3d2b2;
  --slate: #1e3135;       /* logo 墨色：櫃台區、實心按鈕 */
  --on-slate: #f7f6f3;
  --on-slate-soft: #b9c3c1;
  --solid: #1e3135;       /* 實心按鈕（夜間反轉） */
  --on-solid: #f7f6f3;
  --open: #6c7f57;
  --shu: #a3412e;
  --photo: #efece6;
  --scrim: rgba(26, 25, 24, 0.42);
  --radius: 10px;
  --latin: "Immersion Latin Tight";
  --font: var(--latin), "PingFang TC", "Hiragino Sans", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: light dark;
}

/* v4.93 白天／夜間：沒按過切換鈕 → 照手機；按過 → html[data-theme] 決定 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* 官網 html.dark：濃縮咖啡黑、暖白字 */
    --bg: #1a1918;
    --card: #23211f;
    --line: #3a3632;
    --line-2: #4a453f;
    --sand: #786c60;
    --ink: #ede8df;
    --ink-soft: #c9c2b6;
    --ink-mute: #8f887d;
    --wood: #8c7556;
    --tag: #c9b48f;       /* 夜間標籤底：比窗框色亮，深色字才讀得清楚 */
    --slate: #23211f;
    --on-slate: #ede8df;
    --on-slate-soft: #8f887d;
    --solid: #ede8df;
    --on-solid: #1a1918;
    --open: #9db083;
    --shu: #e08a78;
    --photo: #2e2b28;
    --scrim: rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
    /* 官網 html.dark：濃縮咖啡黑、暖白字 */
    --bg: #1a1918;
    --card: #23211f;
    --line: #3a3632;
    --line-2: #4a453f;
    --sand: #786c60;
    --ink: #ede8df;
    --ink-soft: #c9c2b6;
    --ink-mute: #8f887d;
    --wood: #8c7556;
    --tag: #c9b48f;       /* 夜間標籤底：比窗框色亮，深色字才讀得清楚 */
    --slate: #23211f;
    --on-slate: #ede8df;
    --on-slate-soft: #8f887d;
    --solid: #ede8df;
    --on-solid: #1a1918;
    --open: #9db083;
    --shu: #e08a78;
    --photo: #2e2b28;
    --scrim: rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  padding-top: var(--counter-full, 180px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.counter :focus-visible, .slip-head :focus-visible, body.status-mode :focus-visible { outline-color: var(--tag); }
.chip:focus-visible { outline-offset: -4px; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 櫃台區 ---------- */

.counter {
  position: fixed;
  left: 0; right: 0;
  top: 0;
  z-index: 20;
  background: var(--slate);
  color: var(--on-slate);
  padding: calc(14px + env(safe-area-inset-top)) 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: padding 0.3s ease, gap 0.3s ease;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .counter { border-bottom: 1px solid var(--line); } }
:root[data-theme="dark"] .counter { border-bottom: 1px solid var(--line); }

.counter-top { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; min-height: 44px; line-height: 0; }
.logo img { height: 30px; width: auto; }
.mode-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  border: 1px solid color-mix(in srgb, var(--on-slate) 55%, transparent);
  padding: 3px 6px 3px 8px;
  white-space: nowrap;
}
/* v4.93 白天／夜間切換鈕（夜間顯示太陽＝按了變白天；白天顯示月亮） */
.theme-btn {
  margin-left: auto;
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-slate) 30%, transparent);
  background: transparent; color: var(--on-slate);
  padding: 0; cursor: pointer;
}
.theme-btn:focus-visible { outline: 2px solid var(--on-slate); outline-offset: 2px; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.theme-anim, .theme-anim * { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important; }
@media (prefers-reduced-motion: reduce) { .theme-anim, .theme-anim * { transition: none !important; } }
.theme-btn + .site-link { margin-left: 0; }
.site-link { margin-left: auto; display: flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: 0.06em; color: var(--on-slate-soft); text-decoration: none; }

.counter-mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.counter-state { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.counter-lead { font-size: 13px; color: var(--on-slate-soft); }
.state-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-slate); }
.state-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a8bc8c; }
.state-pill.closed::before { background: var(--on-slate-soft); }
.counter-eta { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.eta-label { font-size: 13px; color: var(--on-slate-soft); }
.eta-num { font-family: var(--latin), sans-serif; font-size: 46px; line-height: 1; letter-spacing: 0.04em; }
.eta-unit { font-size: 14px; letter-spacing: 0.06em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 11px; letter-spacing: 0.06em; }
.steps li { border-top: 2px solid color-mix(in srgb, var(--on-slate) 25%, transparent); padding-top: 7px; color: var(--on-slate-soft); }
.steps li.on { border-top-color: var(--wood); color: var(--on-slate); }
.steps li.done { border-top-color: color-mix(in srgb, var(--wood) 60%, transparent); color: var(--on-slate); }

/* 往下捲：櫃台區收成一條（logo＋狀態） */
body.compact .counter { padding-bottom: 12px; gap: 0; }
body.compact .counter-mid, body.compact .steps { display: none; }

main { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- loading / notices ---------- */

.loading { text-align: center; padding: 100px 0; color: var(--ink-mute); }
.ripple { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%; border: 1.5px solid var(--ink-mute); animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.notice { margin: 20px 0 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.notice h2 { margin: 0 0 4px; font-size: 17px; font-weight: 500; }
.notice p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- 分類 ---------- */

.chips {
  position: sticky;
  top: var(--counter-h, calc(56px + env(safe-area-inset-top)));
  z-index: 10;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 14px 2px 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  cursor: pointer;
}
.chip[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.category { scroll-margin-top: calc(var(--counter-h, 60px) + 54px); margin-bottom: 10px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 26px 0 14px; }
.eyebrow { display: block; font-size: 11px; letter-spacing: 0.3em; color: var(--ink-mute); }
.cat-head h2 { margin: 2px 0 0; font-size: 22px; font-weight: 400; letter-spacing: 0.04em; }
.cat-head .count { font-size: 12px; color: var(--ink-mute); }

/* ---------- 點餐單 ---------- */

.ticket {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  min-height: 84px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1.2), border-color 0.2s;
}
.ticket:active { transform: scale(0.985); }
.ticket[disabled] { opacity: 0.5; cursor: default; }
.ticket-photo { flex: none; width: 92px; background: var(--photo); }
.ticket-photo img { display: block; width: 100%; height: 100%; min-height: 92px; object-fit: cover; }
.ticket-info { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ticket .no { font-size: 11px; letter-spacing: 0.16em; color: var(--ink-mute); }
.ticket .name { font-size: 15px; letter-spacing: 0.02em; }
.ticket .desc { font-size: 12px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sold-out { font-size: 12px; color: var(--shu); }
.ticket-price {
  position: relative;
  flex: none;
  width: 84px;
  border-left: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket-price .amt { font-size: 15px; letter-spacing: 0.04em; }
/* 加入：金額置中，小小的細線圓圈放在右下角 */
.plus {
  position: absolute; right: 6px; bottom: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--solid);
  display: grid; place-items: center;
  color: var(--solid);
}
.plus svg { width: 8px; height: 8px; }
.in-cart {
  position: absolute; right: 6px; bottom: 6px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--solid); color: var(--on-solid);
  font-size: 11px; letter-spacing: 0.04em;
}

/* 第一項：大張點餐單 */
.ticket.featured { flex-direction: column; }
.ticket.featured .ticket-photo { width: 100%; aspect-ratio: 16 / 10; position: relative; }
.ticket.featured .ticket-photo img { min-height: 0; }
.ticket.featured .ticket-info { padding: 16px 18px 14px; gap: 4px; }
.ticket.featured .name { font-size: 19px; }
.ticket.featured .desc { font-size: 13px; -webkit-line-clamp: 3; }
.ticket.featured .ticket-price {
  width: auto;
  border-left: 0;
  border-top: 1px dashed var(--line-2);
  justify-content: space-between;
  padding: 12px 18px;
}
.ticket.featured .ticket-price .amt { font-size: 20px; }
.featured-add { font-size: 13px; letter-spacing: 0.14em; background: var(--solid); color: var(--on-solid); padding: 12px 18px; }
.ticket.featured .in-cart { position: static; }
.tag-wood { position: absolute; top: 12px; left: 12px; background: var(--tag); color: #2c2c2c; font-size: 11px; letter-spacing: 0.16em; padding: 5px 8px; }

/* ---------- 品牌連結（安靜） ---------- */

.bridge { display: flex; margin: 26px 0 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--card); }
.bridge img { width: 110px; height: 96px; object-fit: cover; flex: none; display: block; }
.bridge span { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 14px; }
.bridge small { font-size: 11px; letter-spacing: 0.24em; color: var(--ink-mute); }
.bridge b { font-weight: 400; font-size: 14px; }
.bridge em { font-style: normal; font-size: 12px; letter-spacing: 0.06em; }

/* ---------- 購物袋列 ---------- */

.cart-bar {
  position: fixed;
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 692px;
  margin: 0 auto;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--solid);
  color: var(--on-solid);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: rise 0.45s cubic-bezier(.2,.9,.3,1.15);
}
.cart-label { font-size: 13px; }
.cart-total { font-size: 14px; letter-spacing: 0.06em; }
.cart-bar.bump { animation: bump 0.35s ease; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bump { 50% { transform: scale(1.03); } }

/* ---------- 彈出卡片 ---------- */

.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); animation: fade 0.25s ease; }
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  max-width: 720px;
  margin: 0 auto;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: sheet 0.42s cubic-bezier(.2,.9,.25,1.1);
}
.sheet.closing { animation: sheetOut 0.24s ease forwards; }
.scrim.closing { animation: fadeOut 0.24s ease forwards; }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.slip-head {
  position: sticky; top: 0; z-index: 2;
  margin: 0 -20px 16px;
  padding: 8px 12px 8px 20px;
  background: var(--slate);
  color: var(--on-slate);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.24em;
}
.slip-close { width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--on-slate) 40%, transparent); background: none; color: var(--on-slate); font-size: 14px; cursor: pointer; }

.sheet h3 { font-size: 22px; font-weight: 400; letter-spacing: 0.04em; margin: 2px 0; }
.sheet .sub { color: var(--ink-soft); font-size: 13px; margin: 0 0 6px; }
.sheet .hero { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin: 0 0 14px; background: var(--photo); }

.group { margin: 16px 0; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.group-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; letter-spacing: 0.04em; }
.group-title small { font-size: 12px; color: var(--ink-mute); }
.group-title .req { color: var(--shu); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option {
  min-height: 48px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.option small { color: var(--ink-mute); margin-left: 4px; }
/* v4.92 選項備註（例如 S.O.E. 底下的「淺焙」） */
.opt-note { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--ink-mute); text-align: left; }
.option[aria-pressed="true"] .opt-note { color: color-mix(in srgb, var(--on-solid) 72%, transparent); }
.option { text-align: left; }
.option[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.option[aria-pressed="true"]::before { content: "✓ "; }
.option[aria-pressed="true"] small { color: color-mix(in srgb, var(--on-solid) 70%, transparent); }
.group.missing .group-title { color: var(--shu); }

.field { display: block; margin: 16px 0; }
.field span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { resize: none; min-height: 64px; }
.field.invalid input { border-color: var(--shu); }
.hint { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--card); border-radius: 6px; }
.stepper button { width: 44px; height: 46px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.stepper output { font-size: 16px; min-width: 26px; text-align: center; }

.sheet-actions {
  position: sticky;
  bottom: calc(-20px - env(safe-area-inset-bottom));
  margin: 20px -20px calc(-20px - env(safe-area-inset-bottom));
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px dashed var(--line-2);
  display: flex; gap: 10px; align-items: center;
}
.primary {
  flex: 1;
  border: 0;
  border-radius: 6px;
  padding: 16px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.primary:active { transform: scale(0.98); }
.primary[disabled] { opacity: 0.4; cursor: default; }
.link-danger { border: 0; background: none; color: var(--shu); padding: 12px 0; cursor: pointer; font-size: 14px; }

.line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .info { flex: 1; min-width: 0; }
.line .name { font-size: 15px; }
.line .opts { font-size: 13px; color: var(--ink-mute); }
.line .amt { color: var(--ink-soft); font-size: 14px; letter-spacing: 0.04em; }
.line .stepper button { width: 44px; height: 44px; font-size: 16px; }

.total-row { display: flex; justify-content: space-between; margin: 16px 0 4px; font-size: 16px; }
.total-row strong { font-weight: 400; letter-spacing: 0.04em; }
.pay-note { font-size: 12px; color: var(--ink-mute); margin: 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin: 16px 0 4px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--slate); }
details.privacy { font-size: 12px; color: var(--ink-mute); margin: 4px 0 0 28px; }
details.privacy summary { cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error-text { color: var(--shu); font-size: 14px; margin: 10px 0 0; min-height: 1em; }

/* ---------- 取餐券 ---------- */

body.status-mode { background: var(--slate); }
body.status-mode .counter-eta { display: none !important; }
.pickup { margin: 20px 0 14px; background: var(--bg); border-radius: var(--radius); overflow: hidden; animation: rise 0.5s cubic-bezier(.2,.9,.3,1.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pickup { background: var(--card); border: 1px solid var(--line); } }
:root[data-theme="dark"] .pickup { background: var(--card); border: 1px solid var(--line); }
.pickup-top { padding: 24px 20px 20px; text-align: center; }
.status-icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; }
.status-icon.wait { border: 1.5px solid var(--ink-mute); animation: breathe 2.4s ease-in-out infinite; }
.status-icon.ok { border: 1px solid var(--open); color: var(--open); }
.status-icon.ready { background: var(--tag); color: #2c2c2c; animation: pop 0.6s ease; }
.status-icon.bad { border: 1px solid var(--shu); color: var(--shu); }
@keyframes breathe { 50% { transform: scale(0.9); opacity: 0.6; } }
@keyframes pop { 40% { transform: scale(1.15); } }
.pickup h2 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: 0.04em; }
.pickup .lead { color: var(--ink-soft); margin: 6px 0 0; font-size: 14px; }
.ticket-label { margin-top: 16px; font-size: 11px; letter-spacing: 0.3em; color: var(--ink-mute); }
.ticket-no { font-family: var(--latin), sans-serif; font-size: 60px; line-height: 1.1; letter-spacing: 0.1em; color: var(--slate); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticket-no { color: var(--ink); } }
:root[data-theme="dark"] .ticket-no { color: var(--ink); }
.eta { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.eta strong { font-weight: 400; font-size: 18px; color: var(--ink); letter-spacing: 0.04em; }
.tear { margin: 0 12px; border-top: 2px dashed var(--line-2); }
.pickup-lines { padding: 6px 20px 18px; }
.pickup-lines .line:last-of-type { border-bottom: 0; }

.progress { display: flex; justify-content: space-between; margin: 22px 6px 0; position: relative; }
.progress::before { content: ""; position: absolute; left: 12px; right: 12px; top: 6px; height: 1px; background: var(--line-2); }
.progress span { position: relative; font-size: 11px; color: var(--ink-mute); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 25%; }
.progress span::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-mute); }
.progress span.done { color: var(--ink); }
.progress span.done::before { background: var(--ink); border-color: var(--ink); }

body.status-mode .link-danger { color: #e6a596; }
body.status-mode .primary { background: var(--on-slate); color: var(--slate); width: 100%; margin-top: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.status-mode .primary { background: var(--solid); color: var(--on-solid); } }
:root[data-theme="dark"] body.status-mode .primary { background: var(--solid); color: var(--on-solid); }

.wait { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.wait .eyebrow { color: var(--on-slate-soft); }
.wait-card { display: flex; align-items: center; min-height: 88px; border: 1px solid color-mix(in srgb, var(--on-slate) 30%, transparent); border-radius: var(--radius); overflow: hidden; color: var(--on-slate); text-decoration: none; }
.wait-card img, .wait-card .ph { width: 96px; height: 88px; object-fit: cover; flex: none; display: block; background: color-mix(in srgb, var(--on-slate) 12%, transparent); }
.wait-card span { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; }
.wait-card b { font-weight: 400; font-size: 14px; }
.wait-card em { font-style: normal; font-size: 12px; color: var(--on-slate-soft); }
body.status-mode .foot { color: var(--on-slate-soft); }

.foot { text-align: center; color: var(--ink-mute); font-size: 12px; padding: 30px 20px 0; }
.foot p { margin: 4px 0; }

.toast {
  position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--solid); color: var(--on-solid);
  padding: 10px 18px; border-radius: 6px; font-size: 14px;
  animation: rise 0.3s ease;
  max-width: calc(100vw - 40px);
}

.secondary { width: 100%; margin-top: 10px; padding: 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; }
.table-badge { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; font-size: 12px; letter-spacing: 0.08em; }

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

/* ---------- 電腦版：左側固定櫃台、右側菜單 ---------- */

@media (min-width: 1024px) {
  body { padding-top: 0; padding-bottom: 40px; }
  .counter {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 380px;
    padding: 30px 32px 120px;
    gap: 26px;
    overflow-y: auto;
  }
  body.compact .counter { padding-bottom: 120px; gap: 26px; }
  body.compact .counter-mid, body.compact .steps { display: grid; }
  body.compact .counter-mid { display: flex; }
  .logo img { height: 38px; }
  .counter-mid { flex-direction: column; align-items: flex-start; }
  .eta-num { font-size: 60px; }
  main, .foot { margin-left: 380px; max-width: none; padding-left: 48px; padding-right: 48px; }
  .chips { top: 0; margin: 0 -48px; padding: 0 48px; }
  .category { scroll-margin-top: 70px; }
  .category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-list .ticket { margin-bottom: 0; }
  .category-list .ticket.featured { grid-column: 1 / -1; flex-direction: row; }
  .category-list .ticket.featured .ticket-photo { width: 46%; aspect-ratio: auto; min-height: 240px; }
  .category-list .ticket.featured .ticket-price { border-top: 0; border-left: 1px dashed var(--line-2); flex-direction: column; justify-content: center; gap: 14px; width: 170px; }
  .cart-bar { left: 32px; right: auto; width: 316px; bottom: 30px; margin: 0; }
  .sheet { left: 380px; max-width: 640px; bottom: 50%; transform: translateY(50%); border-radius: var(--radius); max-height: 86vh; }
  @keyframes sheet { from { opacity: 0; transform: translateY(54%); } to { opacity: 1; transform: translateY(50%); } }
  @keyframes sheetOut { to { opacity: 0; transform: translateY(54%); } }
  .sheet-actions { bottom: -20px; margin-bottom: -20px; }
  body.status-mode main { max-width: 640px; }
  .toast { left: calc(50% + 190px); }
}
