/* 奉家方糰本舖｜客製餐盒正式站 — 手機優先 */

/* 獅尾圓體 Swei Gothic TC Black：粗圓體，貼近 Logo「奉家」字形；僅含頁面用字的子集。
   只有單一 Black 字重，宣告 100–900 讓 700/900 直接使用原字形、不做假粗體。 */
@font-face {
  font-family: "Swei Gothic TC";
  src: url("../fonts/swei-gothic-tc-black-subset.woff2?v=17") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "獅尾圓體";
  src: url("../fonts/swei-gothic-tc-black-subset.woff2?v=17") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 奉家出良 CIS 字型（來源：fonts/chuliang/fonts.css，僅 woff2）。
   只含出良設計稿出現過的字：元素內每個字都在同一套字型裡才套用，否則維持上面的字型堆疊。
   目前使用處：Hero 字標「奉家」、副標「方糰本舖」，以及品牌故事標題的「家」（字標）。
   其餘宣告未被引用時瀏覽器不會下載。 */
@font-face {
  font-family: "奉家出良-字標";
  src: url("../fonts/chuliang/FengjiaChuliang-Logo.woff2?v=15") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-副標";
  src: url("../fonts/chuliang/FengjiaChuliang-Sub.woff2?v=15") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-標題";
  src: url("../fonts/chuliang/FengjiaChuliang-Title.woff2?v=15") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-內文";
  src: url("../fonts/chuliang/FengjiaChuliang-Body.woff2?v=15") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-細體";
  src: url("../fonts/chuliang/FengjiaChuliang-Light.woff2?v=15") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-招牌";
  src: url("../fonts/chuliang/FengjiaChuliang-Sign.woff2?v=15") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-招牌斜體";
  src: url("../fonts/chuliang/FengjiaChuliang-SignItalic.woff2?v=15") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "奉家出良-杯身";
  src: url("../fonts/chuliang/FengjiaChuliang-Cup.woff2?v=15") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #004070;
  --navy-deep: #002c4f;
  --orange: #f06000;
  --orange-ink: #c04c00; /* 小字對比 AA 4.5（底 #f8f6f1）；色相與 --orange 相同、略深 */
  --orange-soft: #fff1e6;
  --mist: #d0e0e0;
  --steel: #5080a0;
  --bg: #f8f6f1;
  --bg-alt: #efede7;
  --card: #ffffff;
  --ink: #1e2a33;
  --muted: #5d6b75;
  --line: #06c755;
  --border: #e2ded4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 44, 79, 0.08);
  --sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --display: "Swei Gothic TC", "獅尾圓體", "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h, 88px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  padding-bottom: 76px; /* 手機底部 CTA 空間 */
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0 0 0.9em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.eyebrow {
  color: var(--orange-ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.4em;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.5rem, 5.4vw, 2.2rem);
  margin-bottom: 0.6em;
}
#custom-title {
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
@media (max-width: 400px) {
  #custom-title {
    font-size: 1.5rem; /* 與 .h2 下限相同；13 字在 360 可單行 */
    letter-spacing: 0;
    white-space: nowrap;
  }
}
@media (max-width: 320px) {
  #custom-title {
    white-space: normal;
    font-size: 1.25rem;
  }
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }
.btn--line { background: var(--line); color: #fff; }
.btn--line:hover { background: #05b04b; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--text { background: none; color: var(--muted); padding: 0 10px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Logo：出良橫式 lockup（圖形＋奉家） */
.brand__mark {
  display: block; flex: none;
  width: 132px; height: auto;
}
.brand__mark img {
  display: block; width: 100%; height: auto;
}
.brand__mark--lg { width: 168px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border: 0; box-shadow: none;
}
.nav__inner {
  width: min(1120px, 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding-block: 12px;
}
/* 頁首 logo 縮小，與上下邊緣保留呼吸空間（頁尾 logo 不受影響） */
.nav .brand__mark { width: 96px; }
@media (min-width: 720px) {
  .nav__inner { padding-block: 14px; }
  .nav .brand__mark { width: 112px; }
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand__name {
  /* logo 已含店名，視覺上隱藏避免重複 */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
 font-family: var(--serif); font-weight: 900; color: var(--navy); font-size: 1.05rem; letter-spacing: 0.04em; }
.nav__links { display: none; gap: 22px; }
.nav__links a {
  position: relative;
  text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav__links a:hover { color: var(--orange-ink); }
.nav__links a.is-current,
.nav__links a[aria-current="location"] {
  color: var(--navy);
  font-weight: 700;
  background: rgba(0, 64, 112, 0.08);
  border-radius: 999px;
}
.nav__links a.is-current:hover,
.nav__links a.is-current:focus,
.nav__links a[aria-current="location"]:hover,
.nav__links a[aria-current="location"]:focus {
  color: var(--navy);
}
.nav__links a.is-current::after,
.nav__links a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  background: #FF5A1F;
  border-radius: 2px;
  pointer-events: none;
}

/* 頁首不再放 LINE（桌機與手機都改走流程圖或底部／頁尾） */
.nav__line { display: none; }
@media (max-width: 719px) {
  .nav__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 6px 0;
  }
  .nav .brand__mark { width: 84px; }
  .nav .brand { margin-right: 0; flex: none; }
  .nav__links {
    display: flex;
    order: 0;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    min-height: 40px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  html { scroll-padding-top: var(--nav-h, 52px); --nav-h: 52px; }
}
@media (max-width: 359px) {
  .nav .brand__mark { width: 76px; }
  .nav__links a { padding: 8px 3px; font-size: 0.72rem; }
}
@media (min-width: 720px) { .nav__links { display: flex; } }
html.is-focus { scroll-padding-top: var(--focus-scroll-pad, 56px); }

/* Hero */
.hero { padding: 32px 0 44px; }
.hero__grid { display: grid; gap: 28px; }
/* Hero 標題：大字標「奉家」＋右側橫排副標「方糰本舖」，下緣對齊。
   font-size 以字標為 1em；欄寬不夠並排時副標換到字標下方、靠左。 */
.hero__title {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.08em 0.2em;
  font-family: var(--display); font-weight: 900; color: var(--navy);
  font-size: clamp(4.2rem, 21vw, 6rem); line-height: 1;
  font-synthesis: none;
  margin: 0.06em 0 0.12em;
}
.hero__wordmark {
  font-family: "奉家出良-字標", "Swei Gothic TC", "獅尾圓體", "Noto Sans TC", sans-serif;
  font-weight: 900; letter-spacing: 0.02em; white-space: nowrap;
}
.hero__subtitle-mark {
  font-family: "奉家出良-副標", "Swei Gothic TC", "獅尾圓體", "Noto Sans TC", sans-serif;
  font-weight: 600; font-size: 0.31em; letter-spacing: 0.08em; line-height: 1;
  white-space: nowrap;
}
.hero__motto {
  font-family: var(--serif); font-weight: 700; color: var(--orange-ink);
  font-size: clamp(1.15rem, 4.6vw, 1.5rem); letter-spacing: 0.3em; margin: 0.3em 0 0.8em;
}
.hero__lead { color: var(--muted); max-width: 28em; }
.hero__lead strong,
.hero__keep { color: var(--navy); font-weight: 700; white-space: nowrap; }
/* Hero CTA：自己試算 或 LINE 找我們配，兩個同級按鈕；電話為下方小連結 */
.hero__cta { margin-top: 22px; container-type: inline-size; }
.hero__cta-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hero__btn {
  min-height: 52px; padding: 0 20px; gap: 8px;
  white-space: nowrap; letter-spacing: 0.02em;
}
.hero__btn.btn--primary { box-shadow: 0 4px 14px rgba(0, 44, 79, 0.18); }
.hero__btn.btn--line { box-shadow: 0 4px 14px rgba(6, 199, 85, 0.22); }
.hero__btn-icon { width: 22px; height: 22px; flex: none; color: #fff; }
/* 「或」：細線夾小字 */
.hero__or {
  display: flex; align-items: center; gap: 10px;
  color: var(--steel); font-size: 0.8rem; font-weight: 500; line-height: 1;
}
.hero__or::before,
.hero__or::after { content: ""; flex: 1; height: 1px; background: var(--mist); }
.hero__tel {
  display: inline-block; margin-top: 12px;
  color: var(--muted); font-size: 0.88rem; text-decoration: none; white-space: nowrap;
}
.hero__tel:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
/* 欄寬夠時並排：「或」改為兩按鈕間的直向分隔 */
@container (min-width: 460px) {
  .hero__cta-row { flex-direction: row; align-items: center; gap: 12px; }
  .hero__btn.btn--primary { flex: 0 0 auto; padding: 0 26px; }
  .hero__btn.btn--line { flex: 1 1 auto; }
  .hero__or { flex-direction: column; align-self: stretch; justify-content: center; gap: 6px; }
  .hero__or::before,
  .hero__or::after { width: 1px; height: auto; }
}
@media (max-width: 359px) {
  .hero__btn { padding: 0 14px; font-size: 0.94rem; }
}
.hero__media { margin: 0; }
.hero__media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
}

/* Story */
.story { background: var(--card); padding: 52px 0; border-block: 1px solid var(--border); }
.story__grid { display: grid; gap: 24px; }
.story__media { margin: 0; }
/* height:auto 蓋掉 img 的 height 屬性，避免被撐成 1080px 直圖 */
.story__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: var(--radius);
}
.story p:not(.eyebrow) { color: var(--muted); }
.story__copy { min-width: 0; }
/* 品牌故事首段：花樣留在破折號前；——獨佔一行。nowrap 避免「花樣」或「現做」孤字換行 */
.story__keep { white-space: nowrap; }
/* 標題中的「家」改用 hero「奉家」同一套字標字型並放大，其餘字維持 .h2；
   line-height: 0 讓放大的字不撐高行距；vertical-align: baseline 讓「家」與周圍字同一條基線，不浮不沉
   （標題在 360px 仍是一行，放大的字不會碰到上一行）
   左右各留一點水平空隙，與「於」「的」不擠在一起 */
.story__home {
  font-family: "奉家出良-字標", var(--display);
  font-weight: 900; font-size: 1.48em; line-height: 0;
  margin-inline: 0.22em;
  vertical-align: baseline;
  font-synthesis: none;
}
@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .story__media img {
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }
  .story__copy { max-width: 36rem; }
}

/* Builder */
.builder { padding: 56px 0; border-top: 1px solid var(--border); }

/* 客製區引言 */
.intro { max-width: 36em; margin-bottom: 20px; }
.intro__lead { color: var(--ink); font-weight: 500; margin-bottom: 0.2em; }
.intro__fact { color: var(--muted); font-size: 0.92rem; margin: 0.6em 0 0; }

/* 置頂區塊：步驟列＋預覽卡（#flow-stick）置頂。--stick-top 對齊 nav；--dash-h 由 JS 寫入供 scroll-margin。 */
.builder { --stick-top: 113px; } /* 不要設 overflow-x: clip，以免 sticky 失效 */
@media (min-width: 720px) { .builder { --stick-top: 80px; } }

.dash__stick {
  position: sticky; top: var(--stick-top); z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
  /* 全寬底色：蓋住捲上來的選項（wrap 左右各 20px） */
  margin-inline: -20px; padding: 0 20px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: top 0.28s ease;
}
/* 全視窗寬底。往上多蓋一段只在真正置頂時開，避免未釘住時蓋到上方「交給店家」卡片（v43） */
.dash__stick::before {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  width: 100vw;
  top: 0; bottom: 0;
  background: var(--bg);
  pointer-events: none;
  z-index: -1;
}
.dash__stick.is-stuck::before {
  top: -96px;
}
/* 手機：讓置頂卡的包含塊是整段 .flow（含關卡），否則 sticky 只活在短短的 .dash 裡，一滑到方糰就會跟著跑掉 */
@media (max-width: 899px) {
  .dash { display: contents; }
}

/* 關卡進度 */
.progress { padding: 4px 0 6px; }
.progress__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 10px 1fr 10px 1fr;
  align-items: center; gap: 0;
}
.progress__item { min-width: 0; }
.progress__rule { height: 2px; background: var(--border); margin: 0 2px; }
.progress__btn {
  width: 100%; min-height: 44px; padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: transparent; color: var(--muted);
  font: inherit; cursor: pointer;
}
.progress__btn:disabled { cursor: default; opacity: 0.4; }
.progress__no {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt); color: var(--muted);
  font-size: 0.75rem; font-weight: 700; line-height: 1;
}
.progress__label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3;
}
.progress__btn.is-done { color: var(--navy); }
.progress__btn.is-done .progress__no { background: var(--navy); color: #fff; }
.progress__btn.is-current { color: var(--orange-ink); }
.progress__btn.is-current .progress__no { background: var(--orange); color: #fff; }
.progress__btn:not(:disabled):hover { color: var(--navy); }
/* 已選內容以 pills 顯示；單列不換行，過長省略，「+N」固定寬度不縮 */
.progress__pills {
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 3px;
  max-width: 100%; min-width: 0;
}
.pill {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0 7px; border-radius: 999px;
  border: 1px solid currentColor; background: var(--card);
  font-size: 0.74rem; font-weight: 700; line-height: 1.5; letter-spacing: 0;
}
.pill--more { flex: none; padding: 0 5px; border-color: var(--border); background: var(--bg-alt); color: var(--muted); }
.progress__btn.is-current .pill:not(.pill--more) { background: var(--orange-soft); color: #a64200; border-color: var(--orange); }
.progress__btn:not(:disabled):hover .pill:not(.pill--more) { border-color: var(--steel); }
@media (max-width: 559px) {
  .progress__btn { padding: 4px 0; }
  .progress__pills { gap: 2px; }
  .pill { padding: 0 4px; font-size: 0.66rem; }
  .pill--more { padding: 0 3px; }
}

/* 步驟進度：只表示第幾關，不顯示金額 */
.progress__track {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px; padding: 0 2px;
}
.progress__count {
  flex: none; font-size: 0.72rem; font-weight: 700; line-height: 1.4; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress__segs { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.progress__seg { height: 4px; border-radius: 99px; background: var(--border); transition: background-color 0.2s; }
.progress__seg.is-done { background: var(--navy); }
.progress__seg.is-current { background: var(--orange); }

/* 關卡區塊：html 的 scroll-padding-top 已讓過 nav，scroll-margin 只需再讓過置頂區塊
   （手機為步驟列＋預覽，桌機為右欄步驟列；--dash-h 由 app.js 依實際高度寫入） */
.flow-step { scroll-margin-top: calc(var(--dash-h, 56px) + 16px); }
.flow-step.is-needed {
  position: relative;
  outline: 3px solid #FF5A1F;
  outline-offset: 8px;
  border-radius: 16px;
  animation: needPulse 0.7s ease-in-out 3;
}
@keyframes needPulse {
  0%, 100% { outline-color: #FF5A1F; box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.35); }
  50% { outline-color: #ff7a45; box-shadow: 0 0 0 8px rgba(255, 90, 31, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-step.is-needed { animation: none; }
}
.flow-step[hidden],
.peek[hidden],
.sides-empty[hidden] { display: none; }
@keyframes flowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
#step-drink:not([hidden]),
#step-onigiri:not([hidden]),
#step-sides:not([hidden]) {
  animation: flowIn 0.28s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  #step-drink:not([hidden]),
  #step-onigiri:not([hidden]),
  #step-sides:not([hidden]) { animation: none; }
}

.tiers__note { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }

/* 第 1–4 關容器：關卡之間留出明顯間距 */
.flow { display: flex; flex-direction: column; gap: 20px; }
/* 每關內容與下一關標題的間距（#food-steps 需自己設 gap） */
.flow__main,
#food-steps { display: flex; flex-direction: column; gap: 28px; }
.flow__main > * { min-width: 0; }
@media (min-width: 900px) {
  .flow__main,
  #food-steps { gap: 36px; }
}

/* 選好價位後的常駐預覽：便當紙卡（奶油底、內虛線、照片內縮）。手機置頂；桌機左欄。 */
.peek {
  --peek-paper: #fbf7f0;
  --peek-edge: #e4dccb;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-areas: "media body" "quote quote" "cta cta";
  align-items: start; gap: 6px 10px;
  position: relative;
  padding: 8px;
  background: var(--peek-paper);
  border: 1px solid var(--peek-edge);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 44, 79, 0.08);
}
.peek::after {
  content: "";
  position: absolute; inset: 5px;
  border: 1px dashed rgba(0, 64, 112, 0.28);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}
.peek__media-slot { grid-area: media; position: relative; z-index: 1; }
.peek__body { grid-area: body; position: relative; z-index: 1; }
.peek__body::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px; bottom: 4px;
  width: 1.5px; background: var(--orange);
  border-radius: 1px; opacity: 0.75;
}
.peek__plans { grid-area: plans; }
.peek__cta { grid-area: cta; }
.peek .quote { grid-area: quote; margin: 0; padding: 0 8px 2px; font-size: 1.02rem; line-height: 1.25; }
.peek .quote[hidden] { display: none; }
.peek__cta:empty { display: none; }
.peek__finish { display: none; }
.peek__finish:empty { display: none; }
.peek__plans[hidden] { display: none; }
.peek__plans {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 4px;
  min-width: 0;
}
.peek__pill {
  flex: none; display: inline-flex; align-items: center;
  min-height: 32px; padding: 0;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.peek__pill.is-editing {
  background: #eef4f9; border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(0, 64, 112, 0.18);
}
.peek__pill.is-added { animation: peekPillIn 0.7s ease-out; }
@keyframes peekPillIn {
  0% { box-shadow: 0 0 0 3px rgba(0, 64, 112, 0.28); background: #e8eef4; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.peek__pill__hit {
  flex: 1 1 auto; min-width: 0; align-self: stretch;
  display: inline-flex; align-items: center;
  min-height: 32px; border: 0; background: transparent;
  color: inherit; font: inherit; font-weight: 700; cursor: pointer;
  padding: 0 2px 0 8px; text-align: left;
}
.peek__pill__x {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.peek__pill__x:hover { color: var(--navy); background: var(--bg-alt); }
.peek__body { min-width: 0; line-height: 1.3; }
.peek__view {
  margin: 0 0 2px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--orange-ink); line-height: 1.2;
}
.peek__view[hidden] { display: none; }
.peek__adjust {
  margin: 0 0 4px; font-size: 0.72rem; font-weight: 700;
  color: #a64200; line-height: 1.3;
}
.peek__adjust[hidden] { display: none; }
.peek__pill.is-adjust { border-color: var(--orange); }
.peek__details {
  margin: 0; padding: 0; list-style: none;
  font-size: 0.75rem; line-height: 1.35; color: var(--ink);
}
.peek__row {
  display: flex; align-items: baseline; gap: 4px 6px;
  min-width: 0; margin: 0; padding: 1px 4px 1px 2px;
  border-radius: 4px;
}
.peek__k {
  flex: none; color: var(--muted); font-weight: 500;
  letter-spacing: 0.04em;
}
.peek__k::after { content: "："; }
.peek__v {
  min-width: 0; font-weight: 700; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.peek__v.is-empty { font-weight: 500; color: var(--muted); }
.peek__row[data-key="tier"] .peek__v:not(.is-empty) {
  font-family: var(--serif); font-weight: 800; color: var(--navy);
}
.peek__row.is-flash { animation: peekFlash 1s ease; }
@keyframes peekFlash {
  0% { background: rgba(255, 90, 31, 0.32); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .peek__pill.is-added { animation: none !important; }
  .peek__row.is-flash { animation: none !important; }
}
.peek__media { margin: 0; height: 100%; }
/* 手機照片固定高度，對齊右側四行；內縮圓角，不做捲動縮小，避免抖動 */
.peek__media > img,
.peek__media > .ph {
  width: 100%; height: 88px; aspect-ratio: auto; object-fit: cover;
  border-radius: 10px; display: block;
}
.peek__media .ph { gap: 4px; border: 0; padding: 4px; }
.peek__media .ph__mark { width: 40px; height: 24px; box-shadow: 0 -7px 0 -3px var(--navy), 0 7px 0 -3px var(--navy); }
.peek__media .ph__sub { font-size: 0.72rem; line-height: 1.2; text-align: center; white-space: nowrap; }

/* 預覽卡電話小字；完成按鈕在 finish 區（桌機移入預覽卡） */
.peek__cta { display: flex; align-items: center; gap: 4px 10px; min-width: 0; position: relative; z-index: 1; }
.peek__finish { position: relative; z-index: 3; }
.peek__line-btn {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px;
  font-family: var(--sans); font-size: 0.86rem; line-height: 1.25; text-align: center;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.2);
  transition: opacity 0.15s ease, transform 0.15s, background-color 0.15s, color 0.15s;
}
.peek__line-btn.is-swapping { opacity: 0; }
.peek__tel {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--muted); font-size: 0.8rem; text-decoration: none; white-space: nowrap;
}
.peek__tel:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 769px) and (max-width: 899px) {
  .peek { grid-template-columns: 180px minmax(0, 1fr); }
  .peek__media > img,
  .peek__media > .ph { height: 135px; }
}
@media (max-width: 359px) {
  .peek { grid-template-columns: 112px minmax(0, 1fr); }
  .peek__line-btn { font-size: 0.8rem; padding: 0 8px; }
}

/* 手機預覽卡更緊湊：照片旁四行選擇，底列電話＋LINE 完成按鈕 */
@media (max-width: 768px) {
  .dash__stick { gap: 6px; padding-bottom: 6px; }
  .peek {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 6px;
  }
  .peek::after { inset: 4px; border-radius: 10px; }
  .peek__media > img,
  .peek__media > .ph { height: 80px; border-radius: 8px; }
  .peek__media .ph__mark { width: 32px; height: 20px; box-shadow: 0 -6px 0 -3px var(--navy), 0 6px 0 -3px var(--navy); }
  .peek__details { font-size: 0.72rem; line-height: 1.28; }
  .peek__pill {
    flex: 1 1 0; min-width: 0; min-height: 32px;
    padding: 0; font-size: 0.7rem;
    justify-content: space-between;
  }
  .peek__pill__hit, .peek__pill__x { min-height: 32px; }
  .peek__pill__hit { padding: 0 2px 0 6px; overflow: hidden; text-overflow: ellipsis; }
  .peek__pill__x { width: 32px; height: 32px; font-size: 1rem; }
  .peek__line-btn { min-height: 40px; font-size: 0.82rem; padding: 0 10px; }
  .peek__tel { min-height: 40px; font-size: 0.78rem; }
}
@media (max-width: 359px) {
  .peek { grid-template-columns: 92px minmax(0, 1fr); }
}

/* 手機／平板直向：完成按鈕進置頂紙卡底列，跟電話並排；說明文字仍留在配餐列表下 */
@media (max-width: 899px) {
  .peek { overflow: visible; }
  .peek__cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 2px 2px 2px 4px;
    position: relative;
    z-index: 3;
  }
  .peek__cta .peek__tel {
    flex: none;
    min-height: 40px;
    padding: 0 4px;
    font-size: 0.72rem;
  }
  .peek__cta .peek__finish {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    overflow: visible;
    position: relative;
    z-index: 3;
  }
  .peek__cta .peek__finish:empty { display: none; }
  .peek__cta .finish__btn-slot { width: 100%; overflow: visible; }
  .peek__cta #finish-btn {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0;
    gap: 5px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .peek__cta #finish-btn .finish__icon { width: 18px; height: 18px; }
  .peek__cta #finish-btn .finish__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .peek__cta #finish-btn.is-complete,
  .peek__cta #finish-btn.btn--primary {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }
  .peek__cta #finish-btn.is-complete {
    box-shadow:
      0 2px 10px rgba(0, 64, 112, 0.22),
      0 0 0 2px #fff,
      0 0 0 5px rgba(255, 90, 31, 0.5);
  }
  .peek__cta #finish-btn.is-flash,
  .peek__cta #finish-btn.is-needed {
    background: linear-gradient(180deg, #ff8a52 0%, #FF5A1F 52%, #e04814 100%);
    box-shadow:
      0 2px 14px rgba(255, 90, 31, 0.5),
      0 0 0 2px #fff,
      0 0 0 6px rgba(255, 90, 31, 0.65);
    animation: finishFlashCompact 0.7s ease-in-out infinite;
  }
  .peek__cta .peek__finish .finish__callout {
    max-width: calc(100% - 4px);
    padding: 4px 8px 4px 6px;
  }
  .peek__cta .peek__finish .finish__callout-label { font-size: 0.68rem; }
  .peek__cta .peek__finish .finish__chevs { width: 20px; height: 24px; }
  .finish-home .finish:not(.has-foot) { display: none; }
  .finish-home .finish.has-foot { margin-top: 14px; }
}
@keyframes finishFlashCompact {
  0%, 100% {
    background: linear-gradient(180deg, #ff7a3d 0%, #FF5A1F 55%, #d94412 100%);
    box-shadow:
      0 2px 12px rgba(255, 90, 31, 0.4),
      0 0 0 2px #fff,
      0 0 0 5px rgba(255, 90, 31, 0.55);
    filter: brightness(1);
  }
  50% {
    background: linear-gradient(180deg, #ffb087 0%, #ff7a3d 48%, #FF5A1F 100%);
    box-shadow:
      0 4px 20px rgba(255, 90, 31, 0.7),
      0 0 0 3px #fff,
      0 0 0 9px rgba(255, 90, 31, 0.45);
    filter: brightness(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .peek__cta #finish-btn.is-flash,
  .peek__cta #finish-btn.is-needed { animation: none; filter: none; }
}

/* 桌機：步驟列移到右欄 .flow__main 頂部單獨置頂；左欄只留預覽卡（四行選擇、「就決定這組！」與電話）。 */
@media (min-width: 900px) {
  .dash {
    position: sticky; top: var(--stick-top); z-index: 20;
  }
  .dash__stick {
    position: static; top: auto;
    margin-inline: 0; padding: 0;
    background: transparent; border-bottom: 0;
    transition: none;
  }
  .dash__stick::before { content: none; }
  .flow__main > .progress {
    position: sticky; top: var(--stick-top); z-index: 30;
    margin-bottom: 0; padding: 8px 12px 10px;
    margin-inline: -12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    isolation: isolate;
  }
  /* 往上延伸的遮色只在步驟列真正釘住時才開，免得蓋到上方選擇卡片與左欄預覽（v43） */
  .flow__main > .progress.is-stuck {
    box-shadow: 0 -16px 0 var(--bg);
  }
  .flow__main > .progress.is-stuck::before {
    content: "";
    position: absolute;
    inset: -20px 0 0;
    background: var(--bg);
    z-index: -1;
    pointer-events: none;
  }
  .builder.has-peek .flow-step,
  .builder.has-peek .items,
  .builder.has-peek .tabs,
  .builder.has-peek .drinks { position: relative; z-index: 0; }
  .progress__label { font-size: 0.82rem; }
  .pill { font-size: 0.8rem; padding: 0 8px; }
  .progress__track { margin-top: 4px; }
  /* 還沒選預算時左欄沒有內容，整塊收起 */
  .builder:not(.has-peek) .dash { display: none; }
  .builder.has-peek .flow {
    display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start; gap: 36px;
  }
  /* padding 加在右欄內容，讓 grid 列變高（加在 .flow 本身不會拉長 sticky 的含塊） */
  .builder.has-peek .flow__main { padding-bottom: 200px; }
  .builder.has-peek .dash {
    /* 跟頂欄之間留縫，讓卡片上圓角、邊框完整看得見，不會貼齊切頭 */
    top: calc(var(--stick-top) + 12px);
    margin-inline: 0; padding: 0; border-bottom: 0;
    max-height: calc(100vh - var(--stick-top) - 24px);
    overflow: visible;
    display: flex; flex-direction: column;
  }
  .builder.has-peek .dash::before { content: none; }
  .peek {
    flex: 1 1 auto; min-height: 0; width: 100%;
    grid-template-columns: 1fr; grid-template-areas: "media" "body" "quote" "finish" "cta";
    grid-template-rows: minmax(88px, auto) auto auto auto auto;
    gap: 0; padding: 10px 10px 0; overflow: visible;
    border-radius: 16px;
  }
  .peek::after { inset: 7px; border-radius: 12px; }
  .peek__media-slot {
    min-height: 88px; margin: 2px 2px 0;
    max-height: min(240px, max(88px, calc(100vh - var(--stick-top) - 24px - 320px)));
    overflow: hidden; border-radius: 12px;
  }
  .peek__media { height: 100%; }
  .peek__media > img,
  .peek__media > .ph {
    width: 100%; height: 100%;
    aspect-ratio: 4 / 3;
    max-height: min(240px, max(88px, calc(100vh - var(--stick-top) - 24px - 320px)));
    object-fit: cover; object-position: center;
    border-radius: 12px; display: block;
  }
  .peek__media .ph__mark { width: 56px; height: 34px; box-shadow: 0 -10px 0 -4px var(--navy), 0 10px 0 -4px var(--navy); }
  .peek__media .ph__sub { font-size: 0.85rem; }
  .peek__body { padding: 12px 12px 8px; }
  .peek__body::before {
    left: 12px; right: 12px; top: 0; bottom: auto;
    width: auto; height: 1.5px;
  }
  .peek__view { font-size: 0.78rem; margin-bottom: 6px; }
  .peek__details { font-size: 0.9rem; line-height: 1.5; }
  .peek__row { padding: 3px 2px; gap: 8px; }
  .peek__v { white-space: normal; overflow: visible; text-overflow: unset; }
  .peek__row[data-key="tier"] .peek__v:not(.is-empty) { font-size: 1.15rem; }
  .peek__plans { flex-wrap: nowrap; padding: 0 18px 8px; gap: 6px; }
  .peek__pill { flex: 1 1 0; min-width: 0; min-height: 36px; font-size: 0.82rem; padding: 0; justify-content: space-between; }
  .peek__pill__hit, .peek__pill__x { min-height: 36px; }
  .peek__pill__hit { padding: 0 2px 0 10px; }
  .peek__pill__x { width: 36px; height: 36px; }
  .peek__cta { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 8px 14px; }
  .peek__line-btn { min-height: 48px; font-size: 0.95rem; padding: 6px 16px; }
  .peek__tel { justify-content: center; }
  .peek__finish { display: block; grid-area: finish; padding: 6px 8px 8px; overflow: visible; }
  .peek__finish .finish { margin-top: 0; width: 100%; }
  .peek__finish #finish-btn { width: 100%; justify-content: center; }
  /* desktop quote pad */
  .peek .quote { padding: 0 20px 8px; font-size: 1.2rem; }
}

/* 8 個預算 chips：手機 4×2，寬螢幕一列 8 個；每顆都是價錢在上、「／份」在下 */
.chips.chips--tier { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chips--tier .chip { padding: 4px 2px; min-height: 56px; min-width: 0; }
@media (max-width: 359px) { .chips--tier .chip__price { font-size: 1.25rem; } }
@media (min-width: 900px) { .chips.chips--tier { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.step__title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font-size: 1.1rem; color: var(--navy); margin-bottom: 12px;
  min-width: 0;
}
.step__no {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 0.9rem;
  flex: none;
}
.step__label {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.step__note {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.count { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.hint { font-size: 0.9rem; color: var(--muted); margin-top: -4px; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(5, 1fr); } }
.chip {
  min-height: 64px; border-radius: 12px;
  border: 2px solid var(--border); background: var(--card); color: var(--navy);
  font: inherit; cursor: pointer;
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 0;
  transition: border-color 0.15s, background-color 0.15s;
}
.chip__price { font-family: var(--serif); font-weight: 900; font-size: 1.45rem; line-height: 1.15; white-space: nowrap; }
.chip__unit { font-size: 0.78rem; line-height: 1.25; color: var(--muted); white-space: nowrap; }
.chip:hover { border-color: var(--steel); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] .chip__unit { color: var(--mist); }

/* 飲料關：基本款／冷泡茶（含口味，單選）直向排列，不含與其他飲品同一排 */
.drinks { display: flex; flex-direction: column; gap: 10px; }
.drinks__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drink--flavors { height: auto; }
#step-drink { container-type: inline-size; }
.drink {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; height: 100%;
  padding: 6px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--card); box-shadow: 0 1px 3px rgba(0, 44, 79, 0.06);
  transition: border-color 0.15s, background-color 0.15s;
}
.drink:not(.is-over) { cursor: pointer; }
.drink:not(.is-over):hover { border-color: var(--steel); }
.drink.is-selected,
.drink.is-selected:hover { background: #eef4f9; border-color: var(--navy); box-shadow: 0 2px 10px rgba(0, 44, 79, 0.14); }
.drink__type {
  flex: 1 1 auto; width: 100%; min-height: 48px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; color: var(--ink); cursor: pointer;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px; line-height: 1.3; text-align: left;
}
/* radio 圓點：未選空心、選中實心 */
.drink__radio {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--steel); background: var(--card);
  margin-top: 2px;
}
.drink__type[aria-pressed="true"] .drink__radio { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px var(--card); }
.drink__type:disabled .drink__radio { border-color: var(--border); }
.drink__label { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.drink__name { font-weight: 700; }
/* 組別標題的「無糖」與口味 chip 同一種寫法：名稱在上、小字在下（只在組別標題標一次） */
.drink__label--noted { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.drink__label--noted .drink__opt-note { margin-top: 1px; }
.drink__type[aria-pressed="true"] .drink__opt-note { color: #a64200; }
/* 類型按鈕第二行：口味與預算提示；每行不拆字，360 用稍小字級避免「冬瓜茶」孤字 */
.drink__hint { display: block; font-size: 0.62rem; font-weight: 500; line-height: 1.3; color: var(--muted); margin-top: 2px; white-space: nowrap; max-width: 100%; }
/* 飲料組不可選時的短句（不顯示加價或原因）；放在標籤下方，避免 360 溢出 */
.drink__extra { display: block; font-size: 0.72rem; font-weight: 500; line-height: 1.3; color: var(--muted); margin-top: 2px; white-space: normal; }
.drink__type[aria-pressed="true"] { color: var(--navy); }
/* 同組口味（擇一）單列可換行；「無糖」等註記以小字排在品名下方、同一顆 chip 內 */
.drink__opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 8px; }
.drink__opts.is-flavor-needed {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 12px;
  animation: flavorGuide 0.7s ease-in-out 3;
}
@keyframes flavorGuide {
  0%, 100% { outline-color: var(--orange); box-shadow: 0 0 0 0 rgba(240, 96, 0, 0.28); }
  50% { outline-color: #ff9440; box-shadow: 0 0 0 8px rgba(240, 96, 0, 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  .drink__opts.is-flavor-needed { animation: none; }
}
.drink--flavors .drink__opt { flex: 1 1 72px; min-width: 72px; padding: 6px 8px; }
.drink__opt {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 3px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--card);
  font: inherit; font-size: 0.88rem; font-weight: 500; line-height: 1.15; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.drink__opt-note { font-size: 0.68rem; font-weight: 500; line-height: 1.1; color: var(--muted); }
.drink__opt[aria-pressed="true"] .drink__opt-note { color: #a64200; }
.drink__opt:not(:disabled):hover { border-color: var(--steel); }
.drink__opt[aria-pressed="true"] { background: var(--orange-soft); border-color: var(--orange); color: #a64200; font-weight: 700; }
.drink__type:disabled,
.drink__opt:disabled { cursor: not-allowed; }
.drink.is-over { opacity: 0.5; background: var(--bg-alt); box-shadow: none; }
.drink-note {
  margin: 10px 0 0; padding: 6px 12px; border-radius: 8px;
  background: var(--orange-soft); color: #a64200; font-size: 0.88rem; line-height: 1.5;
}
.drink-note[hidden] { display: none; }
.drink__flavor-hint {
  margin: 8px 2px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #a64200;
  line-height: 1.4;
}
.infeasible {
  margin: 14px 0 0; padding: 14px 16px;
  background: var(--orange-soft); border-radius: var(--radius);
  display: grid; justify-items: start; gap: 10px;
}
.infeasible[hidden] { display: none; }
.infeasible__msg { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
/* 「想要其他飲品？」：同一 grid 第 4 張卡；虛線邊、無 radio，只跳 LINE 洽詢提示 */
.drink-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; min-height: 60px; height: 100%; padding: 6px 12px;
  border: 2px dashed var(--steel); border-radius: 12px; background: transparent;
  font: inherit; line-height: 1.3; color: var(--navy); cursor: pointer; text-align: center;
}
.drink-more:hover { background: var(--card); border-color: var(--line); }
.drink-more__title { font-size: 0.95rem; font-weight: 700; }
.drink-more__sub { font-size: 0.8rem; font-weight: 700; color: #04933f; }

/* 提示：底部浮出，手機讓過底部 CTA；可關閉、會自動消失 */
.toast {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 24px));
  display: grid; gap: 8px; padding: 12px 12px 10px 16px;
  background: var(--card); border: 1.5px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 44, 79, 0.2);
  animation: toastIn 0.2s ease-out;
}
.toast[hidden] { display: none; }
.toast__msg { margin: 0; font-weight: 700; color: var(--navy); line-height: 1.5; }
.toast__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toast.is-plain .toast__line,
.toast__line[hidden] { display: none !important; }
.toast.is-plain .toast__actions { justify-content: flex-end; }
.toast__close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--bg-alt); color: var(--muted); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.toast__close:hover { color: var(--navy); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (min-width: 900px) { .toast { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* 第 4 關配餐分類分頁（只篩選顯示，不影響已選） */
.tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  background: var(--bg-alt); border-radius: 12px; padding: 4px; margin-bottom: 10px;
}
.tabs__btn {
  min-width: 0; min-height: 44px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px;
  padding: 4px 2px; line-height: 1.3; white-space: nowrap;
}
.tabs__btn:hover { color: var(--navy); }
.tabs__btn[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: 0 2px 8px rgba(0, 44, 79, 0.12); }
.tabs__count {
  font-size: 0.7rem; font-weight: 700; padding: 0 6px; border-radius: 999px;
  background: var(--orange-soft); color: #a64200;
}
.sides-empty { margin: 4px 0 8px; padding: 14px 12px; border: 1.5px dashed var(--border); border-radius: 10px; text-align: center; font-size: 0.9rem; }

.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 0; min-height: 52px; padding: 8px 10px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.item:hover:not(:disabled) { border-color: var(--steel); }
.item__name { font-weight: 500; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.item__title { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.item__tags { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin-left: 22px; } /* 18px 圖示 + 4px 間距，對齊在品名下方 */

.item[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.item:disabled { cursor: default; }
/* 未定價配餐：虛線示意價格準備中，可選進方案 */
.item.is-tbd { border-style: dashed; background: transparent; opacity: 0.92; cursor: pointer; }
.item.is-tbd .item__name { color: var(--muted); }
/* 配餐／方糰分類小圖示（純裝飾） */
.item__icon {
  flex: none; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.item__icon--dessert { color: #b0567a; }
.item__icon--fried { color: #c06a00; }
.items--sides .item__title { flex-wrap: nowrap; min-width: 0; }

.ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(240, 96, 0, 0.08), transparent 55%),
    repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, #f3f1eb 12px 24px);
  border: 1px solid var(--border); color: var(--navy);
}
.ph__mark { width: 56px; height: 34px; border-radius: 50% / 60%; background: var(--orange); box-shadow: 0 -10px 0 -4px var(--navy), 0 10px 0 -4px var(--navy); }
.ph__sub { font-size: 0.85rem; color: var(--muted); }

/* Order：流程圖（手機直向、桌機橫向） */
.order { background: var(--card); padding: 56px 0; border-block: 1px solid var(--border); }
.order + .builder { border-top: 0; }
.order__lead {
  max-width: 40em;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.order__lead strong { color: var(--navy); font-weight: 700; }

.order-flow {
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.order-flow > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.order-step {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
  text-align: center;
}
.order-step__icon {
  --accent: var(--orange);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--navy);
}
.order-step__icon svg { width: 42px; height: 42px; display: block; }
.order-step__title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 6px;
}
.order-step__text {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.order-step__go {
  display: inline-block;
  margin-left: 0.2em;
  color: var(--orange-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.order-step__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-step__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.order-step__chips li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.82rem;
  color: var(--ink);
}
.order-step__chips li.is-optional {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}
.order-flow__conn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  line-height: 0;
}
.order-flow__arrow { display: block; }
.order-flow__arrow--down { width: 22px; height: 30px; }
.order-flow__arrow--right { display: none; width: 26px; height: 20px; }

.order__aside {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.order__aside strong { color: var(--navy); }
.order__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.order__cta .btn { flex: 1 1 200px; }

@media (min-width: 900px) {
  .order-flow {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin: 28px 0 16px;
  }
  .order-flow > li {
    flex: 1 1 0;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
  }
  .order-flow > li:nth-child(2) { flex: 1.35 1 0; }
  .order-step {
    flex: 1 1 auto;
    align-self: stretch;
    height: 100%;
    min-width: 0;
    padding: 18px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .order-step__icon { width: 56px; height: 56px; margin-bottom: 10px; }
  .order-step__icon svg { width: 36px; height: 36px; }
  .order-step__title { font-size: 0.95rem; }
  .order-step__text { font-size: 0.82rem; }
  .order-step__chips { gap: 4px; }
  .order-step__chips li { font-size: 0.72rem; padding: 1px 7px; }
  .order-flow__conn {
    flex: none;
    width: 22px;
    padding-top: 22px; /* 大約對齊圖示中心 */
    align-self: flex-start;
  }
  .order-flow__arrow--down { display: none; }
  .order-flow__arrow--right { display: block; }
  .order__cta .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .order-flow__arrow { transition: none; }
}

/* FAQ：原生 details/summary 手風琴 */
.faq { padding: 56px 0; border-bottom: 1px solid var(--border); }
.faq__list { display: grid; gap: 10px; max-width: 760px; }
.faq__item {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq__item[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.faq__item summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  min-height: 56px; padding: 12px 52px 12px 18px; position: relative;
  font-weight: 700; color: var(--navy); cursor: pointer; list-style: none;
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
/* 右側 +／− 指示：橘色圓鈕，展開時轉為實心 */
.faq__item summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-ink); font-size: 1.2rem; line-height: 1;
}
.faq__item[open] summary::after { content: "−"; background: var(--orange); color: #fff; }
.faq__item summary:hover { color: var(--orange-ink); }
.faq__item summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.faq__body { padding: 0 18px 16px; color: var(--ink); }
.faq__body p:last-child { margin-bottom: 0; }
.faq__link { font-weight: 700; color: var(--orange-ink); }
.faq__link::after { content: " →"; }
.faq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.faq__tel { color: var(--navy); font-weight: 700; white-space: nowrap; }
.faq__notes { margin: 0; padding-left: 1.2em; }
.faq__notes li { margin-bottom: 4px; }
.faq__notes li::marker { color: var(--orange-ink); }
/* Store */
.store { padding: 56px 0; }
.store__grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .store__grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
  /* 資訊卡與右欄等高，內容垂直置中 */
  .store__grid .info { display: grid; align-content: center; padding: 8px 24px; }
}
.info { margin: 0; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 4px 20px; }
.info > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info > div:last-child { border-bottom: 0; }
.info dt { color: var(--muted); font-size: 0.92rem; }
.info dd { margin: 0; font-weight: 500; }
/* 地圖卡在上方整寬、社群 2×2 在下；桌機與門市資訊左右並排 */
.store__actions { display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .store__actions { gap: 12px; } }
.map-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px;
  position: relative; padding: 18px 18px 22px;
  background: var(--card);
  color: var(--navy); border: 1.5px solid var(--border); border-radius: 18px;
  text-decoration: none; box-shadow: var(--shadow); overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
/* Google four-colour accent strip along the bottom edge — clipped by overflow to the card's inner rounded corners */
.map-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc04 50% 75%, #34a853 75%);
  pointer-events: none;
}
.map-card:hover { border-color: #4285f4; transform: translateY(-1px); }
.map-card__pin {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  background: #eef4fe; border-radius: 14px;
}
.map-card__pin svg { display: block; width: 30px; height: 30px; }
.map-card__text { min-width: 0; line-height: 1.4; }
.map-card strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.map-card small { display: block; color: var(--muted); font-size: 0.88rem; }
.map-card__cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.15s;
}
.map-card:hover .map-card__cta { background: var(--orange); }
@media (min-width: 560px) {
  /* 寬度足夠時 CTA 收到右側，卡片維持單列 */
  .map-card { grid-template-columns: auto 1fr auto; }
  .map-card__cta { grid-column: auto; padding: 0 18px; }
}

.social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social__btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 68px; padding: 10px 12px;
  border: 1.5px solid var(--navy); border-radius: 16px;
  text-decoration: none; color: var(--navy); background: var(--card);
  transition: background-color 0.15s, transform 0.15s;
}
.social__btn:hover { transform: translateY(-1px); }
/* 圖示放在白底圓角徽章裡，品牌色更好辨識 */
.social__icon {
  flex: none; width: 42px; height: 42px; padding: 7px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 44, 79, 0.1);
}
.social__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.social__text strong { font-size: 0.98rem; }
.social__text small {
  font-size: 0.78rem; font-weight: 500; opacity: 0.85;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Brand-tinted tiles; text colours darkened from the brand hue for AA contrast on the tint */
.social__btn--line { border-color: var(--line); color: #04933f; background: #f3fcf6; }
.social__btn--line:hover { background: #e2f8ea; }
/* LINE 為主要聯絡管道：加粗外框光暈 */
.social__btn--line { box-shadow: 0 0 0 1.5px var(--line), 0 4px 14px rgba(6, 199, 85, 0.18); }
.social__btn--fb { border-color: #1877f2; color: #0b5fcc; background: #f0f6fe; }
.social__btn--fb:hover { background: #dfeafd; }
.social__btn--ig { border-color: #e1306c; color: #b81f55; background: #fdf1f5; }
.social__btn--ig:hover { background: #fbe0ea; }
.social__btn--threads { border-color: #000; color: #000; background: #f4f4f4; }
.social__btn--threads:hover { background: #e6e6e6; }
.social__btn--threads .social__icon { padding: 9px; }
/* 320–360：社群卡副標（@feng_chia_、@322FYLZH、funtuantz）完整顯示、不省略。412 以上維持原樣。 */
@media (max-width: 360px) {
  .social { gap: 8px; }
  .social__btn { gap: 6px; padding: 8px 7px; }
  .social__icon { width: 32px; height: 32px; padding: 5px; }
  .social__btn--threads .social__icon { padding: 7px; }
  .social__text strong { font-size: 0.86rem; }
  .social__text small {
    font-size: 0.66rem;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
  }
}

/* Footer */
.footer { background: var(--navy-deep); color: #c9d6de; padding: 40px 0 28px; font-size: 0.92rem; }
.footer a { color: #fff; }
.footer__inner { display: grid; gap: 18px; }
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer__brand .brand__mark { background: transparent; border-radius: 0; padding: 0; }
.footer__brand .brand__mark--on-dark { width: min(220px, 70vw); }
.footer__brand .brand__mark--on-dark img { width: 100%; height: auto; display: block; }
.footer__motto {
  margin: 0;
  color: #ffb27a;
  letter-spacing: 0.18em;
  font-size: clamp(0.78rem, 2.6vw, 0.95rem);
  font-family: var(--serif);
  font-weight: 700;
  white-space: nowrap;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer__social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; font-weight: 500; }
.footer__social a:hover span:last-child { text-decoration: underline; }
.footer__social-badge {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  background: #fff; border-radius: 9px;
}
.footer__social-badge svg { display: block; width: 18px; height: 18px; }
/* Brand ring on each badge; label text uses lightened brand hues so it stays legible on navy */
.footer__social .footer__social--line { color: #5ee08f; }
.footer__social .footer__social--fb { color: #8fbcff; }
.footer__social .footer__social--ig { color: #ff8db4; }
.footer__social .footer__social--threads { color: #fff; }
.footer__social .footer__social--maps { color: #8ab4f8; }
.footer__social--line .footer__social-badge { box-shadow: 0 0 0 2px #06c755; }
.footer__social--fb .footer__social-badge { box-shadow: 0 0 0 2px #1877f2; }
.footer__social--ig .footer__social-badge { box-shadow: 0 0 0 2px #e1306c; }
.footer__social--threads .footer__social-badge { box-shadow: 0 0 0 2px #9aa7b1; }
.footer__social--maps .footer__social-badge { box-shadow: 0 0 0 2px #4285f4; }
.footer__copy { margin: 8px 0 0; font-size: 0.8rem; color: #8aa1b1; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; } .footer__social, .footer__copy { grid-column: 1 / -1; } }

/* 手機底部 CTA */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 246, 241, 0.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dock .btn { min-height: 48px; padding: 0 10px; }
@media (min-width: 900px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* 手機：訂購說明裡的 LINE／電話按鈕在畫面上時，收起底部常駐列，避免同一屏出現兩組聯絡按鈕 */
@media (max-width: 899px) {
  .dock { transition: transform 0.28s ease, opacity 0.28s ease; }
  html.is-order-cta .dock {
    transform: translateY(100%);
    pointer-events: none;
  }
}

/* 手機 focus mode：選配時把頂欄與底部 CTA 滑出，不佔空間、不造成內容跳動（nav 用 transform） */
@media (max-width: 768px) {
  .nav {
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .dock {
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  html.is-focus .nav {
    transform: translateY(-100%);
    pointer-events: none;
  }
  html.is-focus .dock {
    transform: translateY(100%);
    pointer-events: none;
  }
  html.is-focus,
  html.is-focus body { padding-bottom: 0; }
  html.is-focus .builder { --stick-top: 10px; }
  html.is-focus .dash__stick { top: 10px; transition: none; }
  html.is-focus .toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* 方糰分類分頁：窄螢幕兩列 */
.tabs--onigiri { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .tabs--onigiri { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* 素食標籤：鍋邊蛋奶素／全素 */
.veg { font-size: 0.66rem; font-weight: 700; padding: 0 5px; border-radius: 4px; line-height: 1.5; white-space: nowrap; }
.veg { background: #e3f1e6; color: #2d6b3a; }
.veg--vegan { background: #e8f0d8; color: #3a6b1f; }
.item__icon--chicken { color: #c06a00; }
.item__icon--pork { color: #b0567a; }
.item__icon--beef { color: #8b3a2a; }
.item__icon--seafood { color: #2a6f8f; }
.item__icon--combo { color: #6b4c9a; }
.item__icon--other { color: var(--muted); }
.item__icon--veg { color: #2d6b3a; }

/* 決定這組（關卡底部）：帶入 LINE 詢問 */
.finish-home { overflow: visible; }
.finish-home:empty { display: none; }
.finish { display: grid; justify-items: stretch; gap: 10px; margin-top: 18px; width: 100%; }
.finish[hidden] { display: none; }
.finish__btn-slot { position: relative; width: 100%; }
.finish__callout {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  z-index: 30;
  margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 0; box-shadow: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.finish__callout[hidden] { display: none; }
.finish__callout.is-out { animation: calloutFade 0.28s ease-in forwards; }
@keyframes calloutFade {
  from { opacity: 1; }
  to { opacity: 0; }
}
.finish__chevs {
  display: block;
  width: 26px; height: 30px;
  flex: none;
  overflow: visible;
}
.finish__chev {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.finish__callout.is-on .finish__chev--1 { animation: chevPulse 0.95s ease-in-out 3; }
.finish__callout.is-on .finish__chev--2 { animation: chevPulse 0.95s ease-in-out 0.14s 3; }
.finish__callout.is-on .finish__chev--3 { animation: chevPulse 0.95s ease-in-out 0.28s 3; }
@keyframes chevPulse {
  0%, 100% { opacity: 0.28; }
  40% { opacity: 1; }
}
.finish__callout-label {
  color: #004070;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 379px) {
  .finish__callout-label { font-size: 0.74rem; }
}
/* 桌機置頂卡：置中在按鈕上方，奶油底避免跟配餐文字疊在一起 */
.peek__finish .finish__callout {
  left: 50%;
  right: auto;
  top: auto;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: calc(100% - 16px);
  transform: translateX(-50%);
  padding: 5px 10px 5px 8px;
  background: #fbf7f0;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 64, 112, 0.06);
}
.peek__finish .finish__callout-label { font-size: 0.74rem; }
.peek__finish .finish__chevs { width: 22px; height: 26px; }
@media (prefers-reduced-motion: reduce) {
  .finish__callout.is-on .finish__chev--1,
  .finish__callout.is-on .finish__chev--2,
  .finish__callout.is-on .finish__chev--3,
  .finish__callout.is-out { animation: none; }
}

.finish__hint {
  margin: 0; max-width: 36em;
  font-size: 0.88rem; line-height: 1.55; color: var(--muted);
}
.finish__hint[hidden] { display: none; }
.peek__finish .finish__hint { max-width: none; font-size: 0.84rem; }
.finish__hint-link {
  font-weight: 700; color: var(--orange-ink); text-decoration: none;
  white-space: nowrap;
}
.finish__hint-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.finish__sent {
  margin: 0; max-width: 36em; padding: 10px 12px;
  border-radius: 10px; background: #eef4f9; color: var(--ink);
  font-size: 0.92rem; line-height: 1.55;
}
.finish__sent[hidden] { display: none; }
.peek__finish .finish__sent { max-width: none; }
#finish-btn {
  width: 100%; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 20px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  white-space: normal; text-align: center; line-height: 1.3;
  transition: opacity 0.15s ease, transform 0.15s, box-shadow 0.2s, background 0.2s;
}
#finish-btn .finish__icon { flex: none; width: 22px; height: 22px; }
#finish-btn .finish__label { min-width: 0; }
#finish-btn.is-swapping { opacity: 0; }
#finish-btn.btn--line {
  background: linear-gradient(180deg, #2ad66a 0%, #06c755 52%, #05b04b 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.28);
}
#finish-btn.btn--line:hover {
  background: linear-gradient(180deg, #3adf78 0%, #06c755 50%, #049e44 100%);
}
#finish-btn.btn--primary,
#finish-btn.is-complete {
  background: linear-gradient(180deg, #185a8a 0%, #004070 55%, #002c4f 100%);
  color: #fff;
  font-size: 1.05rem; letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0, 64, 112, 0.28);
}
#finish-btn.btn--primary:hover,
#finish-btn.is-complete:hover {
  background: linear-gradient(180deg, #1c679c 0%, #004070 50%, #00345c 100%);
}
/* 完成後靜止：海軍藍＋柔和橘光圈。前 3 秒 is-flash：橘紅發光閃爍 */
#finish-btn.is-complete,
#finish-wrap.is-complete #finish-btn {
  box-shadow:
    0 4px 16px rgba(0, 64, 112, 0.26),
    0 0 0 3px #fff,
    0 0 0 6px rgba(255, 90, 31, 0.45);
}
#finish-btn.is-flash,
#finish-btn.is-complete.is-flash,
#finish-btn.btn--primary.is-flash,
#finish-wrap.is-flash #finish-btn {
  background: linear-gradient(180deg, #ff8a52 0%, #FF5A1F 52%, #e04814 100%);
  color: #fff;
  box-shadow:
    0 4px 22px rgba(255, 90, 31, 0.55),
    0 0 0 3px #fff,
    0 0 0 8px rgba(255, 90, 31, 0.6);
  animation: finishFlash 0.7s ease-in-out infinite;
}
@keyframes finishFlash {
  0%, 100% {
    background: linear-gradient(180deg, #ff7a3d 0%, #FF5A1F 55%, #d94412 100%);
    box-shadow:
      0 4px 16px rgba(255, 90, 31, 0.4),
      0 0 0 3px #fff,
      0 0 0 7px rgba(255, 90, 31, 0.55);
    filter: brightness(1);
  }
  50% {
    background: linear-gradient(180deg, #ffb087 0%, #ff7a3d 48%, #FF5A1F 100%);
    box-shadow:
      0 8px 36px rgba(255, 90, 31, 0.75),
      0 0 0 5px #fff,
      0 0 0 14px rgba(255, 90, 31, 0.45);
    filter: brightness(1.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  #finish-btn.is-flash,
  #finish-btn.is-complete.is-flash,
  #finish-btn.btn--primary.is-flash,
  #finish-wrap.is-flash #finish-btn {
    animation: none;
    filter: none;
    background: linear-gradient(180deg, #ff8a52 0%, #FF5A1F 52%, #e04814 100%);
    box-shadow:
      0 4px 20px rgba(255, 90, 31, 0.45),
      0 0 0 3px #fff,
      0 0 0 8px rgba(255, 90, 31, 0.5);
  }
}
.finish__status { margin: 0; font-size: 0.88rem; color: var(--muted); }
.item__name .veg { margin-left: 0; }

.fork {
  margin: 0; padding: 14px 16px;
  background: var(--card); border: 1.5px dashed var(--navy); border-radius: var(--radius);
}
.fork[hidden] { display: none; }
.fork__label { margin: 0 0 10px; font-weight: 700; color: var(--navy); }
.fork__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fork__btns .btn { min-height: 48px; width: 100%; }
@media (min-width: 720px) {
  .fork { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .fork__label { margin: 0; }
  .fork__btns { width: auto; min-width: 280px; }
}

/* 自選雙主食洽詢卡、先選按鈕選中態 */
.item--contact { border-style: dashed; }
.item--contact .item__title { white-space: nowrap; }
.fork__btns .btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }


/* v26 paths */
.h2__note{
  display:inline-block;
  margin-left:.55em;
  font-size:.72em;
  font-weight:500;
  color:var(--muted, #6b7280);
  letter-spacing:0;
}
.order-step__actions{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  margin-top:.35rem;
  width:100%;
}
.order-step__actions .btn{
  width:100%;
  justify-content:center;
  text-align:center;
  flex: none;
}
.order-step__hint{
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .order-step__hint { font-size: 0.7rem; }
}
.order-step__tel{
  display:inline-block;
  margin-left:.15em;
  color:var(--navy, #004070);
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
@media (max-width: 899px) {
  .order-step__tel{ display:block; margin-left:0; margin-top:.35em; }
}
.order-step__tel:hover{ color:var(--orange, #f06000); text-decoration:underline; text-underline-offset:3px; }
.paths{
  display:grid;
  grid-template-columns:1fr;
  gap:.85rem;
  margin:1.25rem 0 1.5rem;
}
@media (min-width:720px){
  .paths{ grid-template-columns:repeat(3,1fr); }
}
.path-card{
  appearance:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
  width:100%;
  margin:0;
  padding:1rem 1.05rem 1.1rem;
  border:1.5px solid rgba(0,64,112,.18);
  border-radius:16px;
  background:#fff;
  color:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(0,64,112,.04);
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.path-card:hover,
.path-card:focus-visible{
  border-color:var(--navy, #004070);
  box-shadow:0 4px 16px rgba(0,64,112,.12);
  outline:none;
}
.path-card.is-current{
  border-color:var(--navy, #004070);
  box-shadow:0 0 0 3px rgba(0,64,112,.16);
}
.path-card__kicker{
  font-size:.75rem;
  color:var(--orange, #f06000);
  font-weight:700;
  letter-spacing:.04em;
}
.path-card__title{
  font-size:1.15rem;
  font-weight:800;
  color:var(--navy, #004070);
}
.path-card__note{
  font-size:.86rem;
  color:var(--muted, #6b7280);
}
.path-panel[hidden]{ display:none !important; }
.path-panel{ margin-top:.25rem; }
/* 自由挑選開始後，選擇卡片與步驟列／預覽之間留足空隙，避免貼齊看起來像疊影（v43） */
.builder.has-peek .path-panel{ margin-top: 1.5rem; }

.examples__ranges{
  display:flex;
  flex-wrap:nowrap;
  gap:.55rem;
  margin:0 0 1rem;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding: 2px 0 .25rem;
}
.examples__btn{
  appearance:none;
  flex:none;
  border:1.5px solid rgba(0,64,112,.2);
  background:#fff;
  color:var(--navy, #004070);
  border-radius:999px;
  padding:.6rem 1.15rem;
  min-height:44px;
  font-size:0.98rem;
  font-weight:700;
  cursor:pointer;
  line-height:1.2;
}
.examples__btn.is-preview{
  background:#eef4f9;
  border-color:rgba(0,64,112,.42);
  box-shadow:0 0 0 2px rgba(0,64,112,.12);
}
.examples__btn.is-current,
.examples__btn[aria-pressed="true"]{
  background:var(--navy, #004070);
  color:#fff;
  border-color:var(--navy, #004070);
  box-shadow:none;
}
.examples__stage{
  position: relative;
  margin: 0 0 1.05rem;
  padding: 0 0 .15rem;
}
.examples__frame{
  position: relative;
  overflow: hidden;
  margin-inline: -20px; /* 用掉 .wrap 左右各 20px，側圖可吃到螢幕邊再裁 */
}
.examples__viewport{
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 48%; /* 360：中間卡約寬 64%、4:3 */
  margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.examples__stage.is-wide .examples__viewport{
  padding-bottom: 28.5%; /* 桌機中間卡約寬 38%、4:3 */
  max-width: 920px;
}
.examples__card{
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64%;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(.7);
  transform-origin: center center;
  opacity: 0;
  filter: saturate(.6);
  box-shadow: 0 6px 16px rgba(0, 44, 79, 0.12);
  pointer-events: none;
  z-index: 1;
  cursor: pointer;
  will-change: transform, opacity;
  transition:
    transform 700ms ease-in-out,
    opacity 700ms ease-in-out,
    filter 700ms ease-in-out,
    box-shadow 700ms ease-in-out;
}
.examples__stage.is-wide .examples__card{ width: 38%; }
.examples__card img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.examples__card.is-instant,
.examples__viewport.is-dragging .examples__card{
  transition: none;
}
.examples__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy, #004070);
  box-shadow: 0 4px 14px rgba(0, 44, 79, 0.16);
  cursor: pointer;
}
.examples__nav:disabled{ opacity: .35; cursor: default; }
.examples__nav--prev{ left: 2px; }
.examples__nav--next{ right: 2px; }
@media (min-width: 900px) {
  .examples__nav{ width: 42px; height: 42px; }
  .examples__nav--prev{ left: 8px; }
  .examples__nav--next{ right: 8px; }
}
.examples__cap{
  margin: .7rem 0 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy, #004070);
  letter-spacing: .02em;
  line-height: 1.3;
}
.examples__dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: .45rem 0 0;
}
.examples__dot{
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,64,112,.22);
  cursor: pointer;
}
.examples__dot.is-current{ background: var(--navy, #004070); }
@media (prefers-reduced-motion: reduce) {
  .examples__card{ transition: none; }
}
.examples__viewport{ touch-action: pan-y; }
.examples__viewport.is-dragging{ touch-action: none; cursor: grabbing; }
.examples__note{
  margin:0 0 .7rem;
  font-size:.9rem;
  color:var(--muted, #6b7280);
}
.choices{
  margin-top:0;
}
.examples__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:.8rem;
  margin:1.1rem 0 0;
}
@media (min-width:640px){
  .examples__grid{ grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); }
}
.examples__fig{
  margin:0;
  border-radius:14px;
  overflow:hidden;
  background:#f3efe8;
}
.examples__fig img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
  vertical-align:middle;
}
@media (max-width:639px){
  .examples__grid{
    display:flex;
    gap:.8rem;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    margin-inline:-20px;
    padding:0 20px .4rem;
    scrollbar-width:thin;
  }
  .examples__fig{
    flex:0 0 min(85%, 320px);
    scroll-snap-align:start;
  }
  .examples__fig img{ max-height:min(70vh, 420px); object-fit:contain; }
}
.examples__ph{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:180px;
  color:var(--muted, #6b7280);
  font-weight:600;
}
.examples__want{ margin-top:.25rem; }
.examples{ margin: 1.1rem 0 0; }
.choices{
  display:grid;
  grid-template-columns:1fr;
  gap:.85rem;
  margin:1.15rem 0 .4rem;
}
@media (min-width:640px){
  .choices{ grid-template-columns:1fr 1fr; }
}
.choice-card{
  appearance:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
  width:100%;
  margin:0;
  padding:1rem 1.05rem 1.1rem;
  border:1.5px solid rgba(0,64,112,.18);
  border-radius:16px;
  background:#fff;
  color:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(0,64,112,.04);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.choice-card:hover,
.choice-card:focus-visible{
  border-color:var(--navy, #004070);
  box-shadow:0 4px 16px rgba(0,64,112,.12);
  outline:none;
}
.choice-card.is-current,
.choice-card[aria-pressed="true"]{
  border-color:var(--navy, #004070);
  box-shadow:0 0 0 3px rgba(0,64,112,.16);
}
.choice-card__kicker{
  font-size:.75rem;
  color:var(--orange-ink);
  font-weight:700;
  letter-spacing:.04em;
}
.choice-card__title{
  font-size:1.12rem;
  font-weight:800;
  color:var(--navy, #004070);
}
.choice-card__note{
  font-size:.86rem;
  color:var(--muted, #6b7280);
}
.contact-panel{
  background:#fff;
  border:1.5px solid rgba(0,64,112,.14);
  border-radius:16px;
  padding:1.15rem 1.2rem 1.3rem;
  margin: .85rem 0 0;
}
.contact-panel[hidden]{ display:none !important; }
.contact-panel__lead{ margin:0 0 1rem; font-size:1.02rem; }
.contact-panel__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
}
.contact-panel__actions .btn{ justify-content:center; }
.entrust{
  background:#fff;
  border:1.5px solid rgba(0,64,112,.14);
  border-radius:16px;
  padding:1.15rem 1.2rem 1.3rem;
}
.entrust__lead{ margin:0 0 1rem; font-size:1.02rem; }
.entrust__note{ color:var(--muted, #6b7280); font-size:.92em; }
.entrust__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
}
.entrust__actions .btn{ justify-content:center; }
.quote{
  margin:0 0 .75rem;
  font-size:1.15rem;
  font-weight:800;
  color:var(--navy, #004070);
}
.item__price{
  margin-left:auto;
  flex:0 0 auto;
  font-weight:700;
  color:var(--navy, #004070);
  font-size:.92em;
  white-space:nowrap;
  line-height:1.2;
  text-align:right;
}
.item__price.is-tbd{
  color:var(--muted, #6b7280);
  font-weight:600;
  font-size:.72em;
  letter-spacing:0;
}
@media (max-width: 411px) {
  .item__price { font-size:.86em; }
  .item__price.is-tbd { font-size:.68em; }
}
.item{ align-items:center; }
.item { flex-wrap: wrap; }
.item__name { flex: 1 0 auto; min-width: 0; }
/* 未定價字較長：單價改排到品名下一行 */
.item.is-tbd .item__price,
.item--contact .item__price {
  flex: 0 0 100%;
  margin-left: 0;
  text-align: right;
}
.drink__type .item__price { margin-top: 0; align-self: center; }
.drink__opt-price {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy, #004070);
  line-height: 1.1;
  margin-top: 1px;
  white-space: nowrap;
}
.drink__opt-price.is-tbd { color: var(--muted, #6b7280); font-weight: 600; }
.drink__opt[aria-pressed="true"] .drink__opt-price { color: #a64200; }

/* v26c：完成態標語、官方綠 LINE logo、次要電話按鈕、提示橘字非連結 */
.finish__ready {
  margin: 0 0 4px;
  text-align: center;
  color: var(--orange, #f06000);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.finish__ready[hidden] { display: none; }
.finish__btn-slot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.finish__tel {
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  gap: 6px;
  white-space: normal;
}
.finish__tel-k, .finish__tel-n { display: inline; }
#finish-btn .finish__icon--wordmark {
  flex: none;
  display: block;
  width: auto;
  height: 20px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-sizing: content-box;
  align-self: center;
}
#finish-btn.is-complete,
#finish-btn.btn--primary.is-complete {
  white-space: nowrap;
  overflow: visible;
}
#finish-btn .finish__word { flex: none; }
.finish__hint-em {
  font-weight: 700;
  color: var(--orange-ink);
  white-space: nowrap;
}
@media (max-width: 899px) {
  .peek .quote { padding: 2px 6px 2px 8px; font-size: 0.95rem; }
  .finish__ready { font-size: 0.92rem; margin: 0; }
  .finish__btn-slot:not(.is-complete) {
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
  }
  .finish__btn-slot:not(.is-complete) #finish-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .finish__btn-slot:not(.is-complete) .finish__tel {
    flex: 0 0 auto;
    width: auto;
    max-width: 38%;
    min-height: 40px;
    padding: 4px 8px;
    font-size: 0.68rem;
    line-height: 1.15;
    flex-direction: column;
    gap: 0;
  }
  .finish__btn-slot:not(.is-complete) .finish__tel-dial { display: none; }
  .finish__btn-slot:not(.is-complete) .finish__tel-n { white-space: nowrap; }
  .finish__btn-slot.is-complete { gap: 6px; }
  .finish__btn-slot.is-complete .finish__tel {
    min-height: 40px;
    font-size: 0.78rem;
    padding: 5px 8px;
  }
  .peek__cta .finish__btn-slot.is-complete #finish-btn {
    height: auto;
    min-height: 40px;
    overflow: visible;
    white-space: nowrap;
    font-size: 0.86rem;
  }
  .peek__cta #finish-btn .finish__icon--wordmark { width: auto; height: 18px; }
}
@media (max-width: 359px) {
  .finish__btn-slot:not(.is-complete) .finish__tel { max-width: 40%; font-size: 0.64rem; }
  .peek__cta .finish__btn-slot.is-complete #finish-btn { font-size: 0.8rem; padding: 0 8px; }
}


/* v30a 照片卡：依儲格選長／方／大餐盒實圖，單品貼紙風排在內底格線；飲料在盒外 */
.peek.peek--platter {
  grid-template-columns: minmax(0, 1.7fr) minmax(112px, 1fr);
}
.peek.peek--platter .peek__media-slot,
.peek.peek--platter .peek__media {
  position: relative;
  height: 210px;
  overflow: visible;
}
.peek.peek--platter .peek__media > img.peek__promo { display: none; }
@media (max-width: 359px) {
  .peek.peek--platter { grid-template-columns: minmax(0, 1.45fr) minmax(100px, 1fr); }
  .peek.peek--platter .peek__media-slot,
  .peek.peek--platter .peek__media { height: 188px; }
}
@media (min-width: 769px) and (max-width: 899px) {
  .peek.peek--platter { grid-template-columns: minmax(0, 1.45fr) minmax(140px, 1fr); }
  .peek.peek--platter .peek__media-slot,
  .peek.peek--platter .peek__media { height: 250px; }
}
@media (min-width: 900px) {
  .peek.peek--platter { grid-template-columns: 1fr; }
  .peek.peek--platter .peek__media-slot,
  .peek.peek--platter .peek__media {
    height: auto;
    aspect-ratio: 5 / 4;
    min-height: 220px;
    max-height: min(300px, max(180px, calc(100vh - var(--stick-top) - 24px - 260px)));
    overflow: hidden;
    border-radius: 12px;
  }
}

.platter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.platter__board {
  position: absolute;
  inset: 0 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.25s ease;
  padding: 4px 4px 0;
  box-sizing: border-box;
}
.platter.has-drink .platter__board { right: 36%; }
.platter:not(.has-drink) .platter__drink { display: none; }
.platter__stage {
  position: relative;
  flex: none;
  line-height: 0;
}
.platter--long .platter__stage { width: 88%; }
.platter--square .platter__stage { width: 64%; }
.platter--large .platter__stage { width: 96%; }
.platter--wood .platter__stage { width: 96%; }
.platter__box {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.platter__well {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.platter__grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 1px;
}
.platter--wood .platter__grid {
  column-gap: 1.1%;
  row-gap: 1%;
}
.platter__drink {
  position: absolute;
  top: 2%;
  right: 0;
  bottom: 4%;
  width: 34%;
  height: auto;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.platter__caption {
  margin: 4px 0 0;
  color: var(--muted, #6b7280);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  flex: none;
}
.platter__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.platter__item.is-enter,
.platter__item.is-leave {
  opacity: 0;
  transform: scale(0.72);
}
.platter__item--onigiri { z-index: 2; }
.platter__item--side { z-index: 3; }
.platter__item--drink {
  position: relative;
  left: auto; top: auto;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.platter__item img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(1.4px 0 0 #fff)
    drop-shadow(-1.4px 0 0 #fff)
    drop-shadow(0 1.4px 0 #fff)
    drop-shadow(0 -1.4px 0 #fff)
    drop-shadow(0 3px 5px rgba(0, 44, 79, 0.22));
}
.platter__item--drink img {
  max-width: 145%;
  max-height: 86%;
  width: auto;
  height: 86%;
  object-fit: contain;
  filter:
    drop-shadow(1.4px 0 0 #fff)
    drop-shadow(-1.4px 0 0 #fff)
    drop-shadow(0 1.4px 0 #fff)
    drop-shadow(0 -1.4px 0 #fff)
    drop-shadow(0 4px 8px rgba(0, 44, 79, 0.28));
}
.platter__tag {
  display: inline-block;
  max-width: 100%;
  padding: 0.28em 0.55em;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 0 #fff, 0 4px 8px rgba(0, 44, 79, 0.16);
  color: var(--navy, #004070);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.02em;
}
.platter__item--onigiri .platter__tag { font-size: 0.78rem; padding: 0.4em 0.75em; }

@media (prefers-reduced-motion: reduce) {
  .platter,
  .platter__item,
  .platter__board { transition: none; }
  .platter__item.is-enter,
  .platter__item.is-leave { opacity: 1; transform: scale(1); }
}

/* v31 照片卡插畫版（日式水彩）：紙盒無隔板，格線只用來排版；品項底部貼齊格子、可往上超出（立體感），前排蓋後排。
   方糰與 2 格配餐約一般配餐 1.5 倍寬；木餐盒品項放進黑色托盤格內。飲料瓶在盒外。 */
.platter--illus.platter--long .platter__stage { width: 92%; }
.platter--illus.platter--large .platter__stage { width: 96%; }
.platter--illus.platter--square .platter__stage { width: 77%; }   /* 方＝大 × 0.8 */
.platter--illus.platter--wood .platter__stage { width: 92%; }
.platter--illus .platter__grid { gap: 0; }
.platter--illus .platter__well { overflow: visible; }
.platter--illus .platter__item { align-items: flex-end; overflow: visible; }
.platter--illus .platter__item img {
  width: 92%;
  max-width: none;
  max-height: none;
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(60, 35, 10, 0.28));
}
.platter--illus .platter__item--wide img { width: 69%; }
/* 長餐盒內底淺，品項略小、置中於格 */
.platter--illus.platter--long .platter__item img { width: 88%; }
.platter--illus.platter--long .platter__item--wide img { width: 66%; }
/* 木餐盒：放進托盤格內，不超出 */
.platter--illus.platter--wood .platter__grid { column-gap: 1.8%; row-gap: 4%; }
.platter--illus.platter--wood .platter__item { align-items: center; }
.platter--illus.platter--wood .platter__item img { width: auto; height: auto; max-width: 94%; max-height: 94%; }
.platter--illus .platter__item--drink img {
  width: auto;
  height: 82%;
  max-width: 100%;
  max-height: 82%;
  filter: drop-shadow(0 3px 4px rgba(60, 35, 10, 0.25));
}
/* v31：瓶子縮小、盒子讓出更多寬度 */
.platter--illus.has-drink .platter__board { right: 26%; }
.platter--illus .platter__drink { width: 25%; top: 10%; bottom: 12%; }
.platter--illus .platter__item--drink img { height: 78%; max-height: 78%; }

/* v32 豐盛版：餐點放大、互相微疊，盒內不露空底 */
.platter--illus .platter__item img { width: 116%; }
.platter--illus .platter__item--wide img { width: 87%; }
.platter--illus .platter__item.is-stretch-h img { width: 74%; }
.platter--illus .platter__item.is-stretch-v { align-items: center; }
.platter--illus .platter__item.is-stretch-v img { width: 124%; }
.platter--illus.platter--long .platter__item img { width: 118%; }
.platter--illus.platter--long .platter__item--wide img { width: 84%; }
/* 木餐盒：每格塞滿，可略壓到隔板 */
.platter--illus.platter--wood .platter__item img { width: 112%; height: auto; max-width: none; max-height: 118%; object-fit: contain; }
.platter--illus.platter--wood .platter__item--wide img,
.platter--illus.platter--wood .platter__item--onigiri img { width: 100%; max-height: 125%; }
.platter__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8%;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 1;
  animation: slotPulse 1.4s ease-in-out infinite;
}
@keyframes slotPulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .platter__slot { animation: none; } }
.platter__room {
  display: inline-block;
  margin: 3px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange-ink, #c04c00);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  pointer-events: auto;
  max-width: 100%;
  box-sizing: border-box;
  flex: none;
  font-family: inherit;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.platter__room:hover {
  color: var(--orange, #f06000);
  opacity: 0.85;
}
.platter__need {
  margin: 2px 0 0;
  color: #e8590c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  flex: none;
}
.wood-need {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff4e6;
  color: #d9480f;
  font-weight: 700;
  font-size: 0.9rem;
}
/* v32b：再放大到塞滿 */
.platter--illus .platter__item img { width: 132%; }
.platter--illus .platter__item--wide img { width: 98%; }
.platter--illus .platter__item.is-stretch-h img { width: 84%; }
.platter--illus .platter__item.is-stretch-v img { width: 140%; }
.platter--illus.platter--long .platter__item img { width: 140%; }
.platter--illus.platter--long .platter__item--wide img { width: 102%; }
.platter--illus.platter--wood .platter__item img { width: 118%; max-height: 125%; }
.platter--illus.platter--wood .platter__item--side.platter__item--wide img { width: 150%; max-height: 120%; }
.platter--illus.platter--wood .platter__item--onigiri img { width: 104%; max-height: 135%; }
.platter--illus.has-drink .platter__board { right: 23%; }
.platter--illus .platter__drink { width: 24%; }
.platter--illus.platter--wood:not(.has-drink) .platter__stage { width: 80%; }
@media (min-width: 900px) {
  .platter--illus.platter--wood:not(.has-drink) .platter__stage { width: 70%; }
}

/* v33 插畫紙盒 9 宮格：餐點各佔一塊、互不重疊、完整顯示 */
.platter__frame {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  border-image-repeat: stretch;
  pointer-events: none;
}
.platter--illus .platter__grid.is-abs { display: block; position: relative; }
.platter--illus .platter__grid.is-abs .platter__item {
  position: absolute;
  align-items: center;
  justify-content: center;
}
.platter--illus .platter__grid.is-abs .platter__item img,
.platter--illus .platter__grid.is-abs .platter__item--wide img,
.platter--illus.platter--long .platter__grid.is-abs .platter__item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* v33 木餐盒：每樣放在自己的托盤格內，完整顯示、不重疊 */
.platter--illus.platter--wood .platter__item img,
.platter--illus.platter--wood .platter__item--wide img,
.platter--illus.platter--wood .platter__item--onigiri img,
.platter--illus.platter--wood .platter__item--side.platter__item--wide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.platter--illus.platter--wood .platter__grid { column-gap: 1.8%; row-gap: 4%; }

/* v34 餐點貼齊：紙盒每樣佔自己的一塊（px 定位、圖填滿該塊）；木盒每樣填滿托盤格，太寬的在格內裁切 */
.platter--illus .platter__grid.is-abs .platter__item { display: block; padding: 0; margin: 0; }
.platter--illus .platter__grid.is-abs .platter__item img {
  position: absolute;
  max-width: none;
  max-height: none;
  object-fit: fill;
  filter: drop-shadow(0 1px 0.5px rgba(60, 35, 10, 0.22));
}
.platter--illus .platter__grid.is-abs .platter__item.is-crop { overflow: hidden; border-radius: 3px; }
.platter--illus .platter__grid.is-abs .platter__item.is-crop img { filter: none; }
.platter--illus.platter--wood .platter__grid.is-abs { position: absolute; inset: 0; }
.platter--illus .platter__grid.is-abs .platter__slot { position: absolute; margin: 0; box-sizing: border-box; }
.platter__room[hidden] { display: none; }
/* v39：提醒一行顯示、字小一點 */
.platter__room { font-size: 0.72rem; font-weight: 500; white-space: nowrap; letter-spacing: 0; }

/* v42：還可以再放 1 樣時，在空位畫橘色虛線框 */
.platter__vacancy {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(0px, 4%, 3px);
  border: 2px dashed var(--orange, #f06000);
  border-radius: min(10px, 18%);
  background: rgba(240, 96, 0, 0.16);
  color: var(--orange-ink, #c04c00);
  cursor: pointer;
  pointer-events: auto;
  z-index: 12;
  font-family: inherit;
  container-type: size;
  container-name: vacancy;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  text-align: center;
  overflow: hidden;
}
.platter__vacancy[hidden] { display: none; }
.platter__vacancy-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  font-size: clamp(8px, min(22cqw, 36cqh), 13px);
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.platter__vacancy-text span {
  display: block;
  white-space: nowrap;
}
.platter__vacancy[data-vac-mode="compact"] .platter__vacancy-text span:first-child {
  font-size: 1.35em;
  line-height: 1;
  font-weight: 800;
}
.platter--illus .platter__grid.is-abs .platter__vacancy {
  position: absolute;
  margin: 0;
  box-sizing: border-box;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}
@media (prefers-reduced-motion: reduce) {
  .platter__vacancy { transition: none; }
}



/* v44：1 顆方糰＋3 或 4 樣配餐時，照片卡同時出示大餐盒（主、較大）與木盒（+$50） */
.peek.peek--platter.peek--dual {
  grid-template-columns: 1fr;
  grid-template-areas: "media" "body" "quote" "finish" "cta";
}
.builder.has-peek .peek.peek--platter.peek--dual .peek__media-slot,
.builder.has-peek .peek.peek--platter.peek--dual .peek__media,
.peek.peek--platter.peek--dual .peek__media-slot,
.peek.peek--platter.peek--dual .peek__media {
  display: block;
  width: 100%;
  height: 230px;
  min-height: 230px;
  max-height: 260px;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 12px;
}
.peek__box-picks {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 230px;
  padding: 4px 2px 0;
  box-sizing: border-box;
}
.peek__box-pick {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid transparent;
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 4px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  height: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 0 0 1px var(--border);
  position: relative;
  overflow: hidden;
}
.peek__box-pick--large { flex: 1.35 1 0; }
.peek__box-pick--wood { flex: 1 1 0; }
.peek__box-pick.is-current {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
  background: rgba(0, 64, 112, 0.05);
}
.peek__box-pick.is-off { opacity: 0.55; cursor: not-allowed; }
.peek__box-pick .platter {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
}
.peek__box-label {
  flex: none;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.25;
  color: var(--navy);
}
.peek__box-plus { color: var(--orange-ink); font-weight: 800; }
.peek__box-off {
  position: absolute;
  inset: 18% 8% 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(248, 246, 241, 0.9);
  border-radius: 10px;
  pointer-events: none;
  padding: 6px;
  z-index: 5;
}
.peek__box-off[hidden] { display: none; }
.peek.peek--dual .platter__drink { display: none; }
.peek.peek--dual .platter__caption { display: none; }
.peek.peek--dual .platter__stage,
.peek.peek--dual .platter__well,
.peek.peek--dual .platter__grid { overflow: hidden; }
.peek__box-pick--wood .platter__vacancy { padding: clamp(0px, 3%, 2px); }
.peek__box-pick--wood .platter__vacancy-text { font-size: clamp(8px, min(20cqw, 34cqh), 12px); }

@media (min-width: 900px) {
  .builder.has-peek .peek.peek--platter.peek--dual .peek__media-slot,
  .builder.has-peek .peek.peek--platter.peek--dual .peek__media,
  .peek.peek--platter.peek--dual .peek__media-slot,
  .peek.peek--platter.peek--dual .peek__media {
    height: 250px;
    min-height: 250px;
    max-height: 280px;
  }
  .peek__box-picks { height: 250px; }
}
