/* brew-timer.css — ⏱ 沖泡計時器（2026-07-05，games-plan ④；2026-07-10 換膚「茶湯清玻璃」）
   玻璃語彙同會員登入卡 V4（白透玻璃＋白 rim＋頂部斜光＋金髮絲線），底＝深茶綠夜色 veil。
   z 10060 對齊 fortune/quiz（高於購物車 FAB 10000、商品 modal）。
   ⚠️ 模糊面共 2 層（veil＋panel），勿再往此 overlay 內加 backdrop-filter（手機穩定性規範）。 */
.hh-bt-open {
  appearance: none; -webkit-appearance: none;
  display: flex; width: fit-content; align-items: center; gap: 7px;
  margin: 14px auto 2px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid rgba(47, 75, 60, 0.35);
  border-radius: 999px;
  background: rgba(47, 75, 60, 0.05);
  color: #2f4b3c;
  font: 700 13.5px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hh-bt-open:hover { background: rgba(47, 75, 60, 0.1); border-color: rgba(47, 75, 60, 0.5); }
.hh-bt-open:active { transform: scale(0.97); }
.hh-bt-open i { font-size: 16px; }

/* ── 夜色 veil：深茶綠壓暗＋輕模糊，玻璃面板的「窗外世界」 ── */
.hh-bt-overlay {
  position: fixed; inset: 0; z-index: 10060;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(31, 46, 35, 0.55), rgba(12, 18, 14, 0.72));
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  backdrop-filter: blur(8px) saturate(1.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hh-bt-overlay.is-open { opacity: 1; }

/* ── 茶湯清玻璃面板 ── */
.hh-bt-panel {
  position: relative;
  width: 100%; max-width: 380px;
  /* 家族一致的高度保險：超小螢幕/超大系統字級下底部按鈕不被切 */
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06) 58%, rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  padding: 22px 20px 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 24px 60px rgba(0, 0, 0, 0.42);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 頂部金髮絲線＋斜光（同 .hh-lv4-glass 語彙；靜態、不佔 pointer） */
.hh-bt-panel::before {
  content: ""; position: absolute; inset: 0 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 178, 112, 0.75), transparent);
  pointer-events: none;
}
.hh-bt-panel::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 34%, transparent 52%);
  pointer-events: none;
}
.hh-bt-overlay.is-open .hh-bt-panel { transform: none; }
/* 不支援 backdrop-filter（舊瀏覽器/省電模式）→ 實心深茶綠，文字對比不失守 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hh-bt-panel { background: rgba(30, 42, 33, 0.96); }
}

.hh-bt-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(246, 240, 222, 0.85);
  font-size: 15px; cursor: pointer;
  transition: background 0.2s ease;
}
.hh-bt-close:hover { background: rgba(255, 255, 255, 0.2); }

.hh-bt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-right: 48px; }
.hh-bt-head h3 { margin: 0; font: 700 16px/1.2 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #f6efdc; letter-spacing: 0.08em; }
.hh-bt-tea { margin: 3px 0 0; font: 500 12px/1.4 var(--font-ui, sans-serif); color: rgba(246, 240, 222, 0.6); }
.hh-bt-ico { font-size: 22px; color: #d4b270; }

.hh-bt-body { text-align: center; padding-top: 6px; }
/* 展開成一泡一計時後道次可達 13 顆，390px 要能換行 */
.hh-bt-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 4px 0 12px; }
.hh-bt-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hh-bt-dots i.is-done { background: rgba(212, 178, 112, 0.75); box-shadow: none; }
.hh-bt-dots i.is-cur { background: #f6efdc; transform: scale(1.3); box-shadow: 0 0 8px rgba(246, 240, 222, 0.5); }

.hh-bt-step-label { margin: 0 0 2px; font: 700 15px/1.3 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #f3ead6; letter-spacing: 0.06em; }

/* 倒數 ± 微調：兩側 44px 玻璃圓鈕，中間倒數固定寬避免按鈕左右跳動 */
.hh-bt-count-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hh-bt-count {
  min-width: 148px;
  font: 700 64px/1.1 "Cormorant Garamond", "Noto Serif TC", "Noto Serif TC Fallback", serif;
  color: #f8f2e2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.hh-bt-count.is-done { color: #e8c98a; animation: hh-bt-flash 0.8s ease 2; }
@keyframes hh-bt-flash {
  50% { opacity: 0.25; }
}
.hh-bt-nudge {
  appearance: none; -webkit-appearance: none;
  flex: none;
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(246, 240, 222, 0.9);
  font: 700 13px/1 var(--font-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hh-bt-nudge:hover { background: rgba(255, 255, 255, 0.18); }
.hh-bt-nudge:active { transform: scale(0.94); }
.hh-bt-nudge:disabled { opacity: 0.3; pointer-events: none; }

.hh-bt-flavor { margin: 4px 0 0; font: 500 12.5px/1.6 var(--font-ui, sans-serif); color: rgba(246, 240, 222, 0.66); }

.hh-bt-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.hh-bt-btn {
  appearance: none; -webkit-appearance: none;
  min-height: 46px; min-width: 46px; padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(246, 240, 222, 0.92);
  font: 700 14px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  transition: background 0.2s ease;
}
.hh-bt-btn:hover { background: rgba(255, 255, 255, 0.18); }
.hh-bt-btn:active { transform: scale(0.96); }
.hh-bt-btn:disabled { opacity: 0.3; }
/* 主鈕＝米白實體（玻璃上唯一高對比主角），墨綠字 */
.hh-bt-main {
  background: rgba(243, 234, 208, 0.94);
  border-color: rgba(243, 234, 208, 0.94);
  color: #24382b;
  padding: 0 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.hh-bt-main:hover { background: #f7f0dc; }
.hh-bt-reset, .hh-bt-next { padding: 0 14px; font-size: 16px; }
.hh-bt-golden { background: #94723e; border-color: #94723e; color: #fbf3e2; }
.hh-bt-golden:hover { background: #a37f48; }

/* 鍵盤焦點（桌機）：金圈，同 desktop.css §34 語彙 */
.hh-bt-panel button:focus-visible {
  outline: 2px solid rgba(212, 178, 112, 0.9);
  outline-offset: 2px;
}

.hh-bt-end { padding: 12px 0 4px; }
.hh-bt-end-emoji { margin: 0 0 6px; font-size: 34px; }
.hh-bt-end-text { margin: 0 0 16px; font: 600 15px/1.7 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #f3ead6; }

@media (prefers-reduced-motion: reduce) {
  .hh-bt-count.is-done { animation: none; }
  .hh-bt-panel { transition: none; }
  .hh-bt-overlay { transition-duration: 0.01s; }
}
