/* tea-blind.css — 🎴 盲品挑戰盒（v1，innovation ⑨，2026-07-19）
   overlay 家族（z 10060）：深綠夜色 veil＋宣紙面板（語彙同 tea-drop/tea-group）。
   高度 vh fallback＋dvh 兩行；勿再往內加 backdrop-filter（手機穩定性規範）。
   兌換碼輸入 16px（iOS 防自動放大鐵則）；揭曉＝逐格翻牌，中＝印章紅章。 */
.hh-bl-overlay {
  position: fixed; inset: 0; z-index: 10060;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(24, 32, 26, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
.hh-bl-overlay.is-open { background: rgba(24, 32, 26, 0.55); pointer-events: auto; }
.hh-bl-panel {
  width: 100%; max-width: 520px;
  max-height: 88vh; max-height: 88dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, #faf6ec, #f2ead6);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  position: relative;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.24s ease;
}
.hh-bl-overlay.is-open .hh-bl-panel { transform: translateY(0); opacity: 1; }
.hh-bl-close {
  appearance: none; -webkit-appearance: none;
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: none; background: none;
  font-size: 17px; color: #8a8069; cursor: pointer;
}
.hh-bl-head { display: flex; align-items: center; gap: 10px; margin: 4px 4px 14px; }
.hh-bl-ico { font-size: 26px; }
.hh-bl-head h3 { font: 700 20px/1.3 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 0; letter-spacing: 0.1em; }
.hh-bl-sub { font: 500 12px/1.5 var(--font-ui, sans-serif); color: #8a7a5c; margin: 2px 0 0; }
.hh-bl-loading { text-align: center; padding: 40px 0; color: #8a7a5c; }
.hh-bl-note { font: 500 11.5px/1.7 var(--font-ui, sans-serif); color: #9a8f76; margin: 6px 4px 0; }
.hh-bl-center { text-align: center; }
.hh-bl-err { font: 600 12.5px/1.6 var(--font-ui, sans-serif); color: #8f2f1f; margin: 8px 2px 0; }
.hh-bl-round-title { font: 700 16px/1.5 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 2px 2px 4px; letter-spacing: 0.04em; }

/* 兌換碼輸入（⚠️ 16px＝iOS 防自動放大鐵則，勿調小） */
.hh-bl-code-label { display: block; font: 600 12.5px/1.5 var(--font-ui, sans-serif); color: #6b5a36; margin: 8px 2px 6px; letter-spacing: 0.06em; }
.hh-bl-code-input {
  width: 100%; box-sizing: border-box;
  font: 700 16px/1.4 ui-monospace, "SF Mono", monospace;
  letter-spacing: 0.22em; text-transform: uppercase; text-align: center;
  color: #2c3a2e; background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 114, 62, 0.45); border-radius: 12px;
  padding: 13px 14px; outline: none;
}
.hh-bl-code-input:focus { border-color: #94723e; box-shadow: 0 0 0 3px rgba(148, 114, 62, 0.15); }

/* 按鈕 */
.hh-bl-btn {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box;
  cursor: pointer; border: none; border-radius: 999px;
  min-height: 48px; padding: 13px 22px; margin-top: 14px;
  font: 700 14.5px/1 var(--font-ui, sans-serif); letter-spacing: 0.08em;
  background: #2c3a2e; color: #f5efe0;
}
.hh-bl-btn:disabled { opacity: 0.55; cursor: default; }

/* 反向導購：前往購買盲品盒（低調金色文字連結） */
.hh-bl-buy { text-align: center; margin-top: 12px; }
.hh-bl-buylink {
  appearance: none; -webkit-appearance: none; background: none; border: none;
  cursor: pointer; padding: 6px 4px;
  font: 600 12.5px/1.6 var(--font-ui, sans-serif); letter-spacing: 0.03em;
  color: #9a7b3c; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(154, 123, 60, 0.4);
}
.hh-bl-buylink:hover { color: #7d6330; }

/* 三格作答槽 */
.hh-bl-slots { display: grid; gap: 8px; margin: 12px 0 4px; }
.hh-bl-slot {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  width: 100%; box-sizing: border-box; text-align: left;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px dashed rgba(148, 114, 62, 0.45);
}
.hh-bl-slot.is-set { border-style: solid; background: rgba(255, 255, 255, 0.85); }
.hh-bl-slot.is-active { border-color: #2c6e49; box-shadow: 0 0 0 3px rgba(44, 110, 73, 0.14); }
.hh-bl-slot-bag {
  flex: none; font: 700 13px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #94723e;
  letter-spacing: 0.06em; min-width: 44px;
}
.hh-bl-slot-thumb, .hh-bl-slot-thumb.hh-bl-thumb-fb {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; background: #efe7d4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.hh-bl-slot-name { font: 700 13.5px/1.5 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; }
.hh-bl-slot-ph { font: 500 12.5px/1.5 var(--font-ui, sans-serif); color: #a99d82; }

/* 候選茶盤 */
.hh-bl-picker-title { font: 600 11.5px/1.4 var(--font-ui, sans-serif); color: #8a7a5c; letter-spacing: 0.16em; margin: 14px 2px 8px; text-transform: uppercase; }
.hh-bl-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hh-bl-opt {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px; border-radius: 12px; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 114, 62, 0.28);
}
.hh-bl-opt.is-picked { border-color: #2c6e49; background: rgba(44, 110, 73, 0.08); }
.hh-bl-opt-thumb, .hh-bl-opt-thumb.hh-bl-thumb-fb {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; background: #efe7d4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px;
}
.hh-bl-opt-title { font: 600 11.5px/1.45 var(--font-ui, sans-serif); color: #4a4334; text-align: center; }
.hh-bl-opt-title i { display: block; font: 700 10px/1.4 var(--font-ui, sans-serif); color: #94723e; font-style: normal; }
.hh-bl-opt-mark {
  position: absolute; top: 6px; right: 6px;
  font: 700 12px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #f5efe0;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #2c6e49;
}
.hh-bl-opt-mark:empty { display: none; }

/* 揭曉：逐格翻牌 */
.hh-bl-revs { display: grid; gap: 8px; margin: 10px 0 4px; }
.hh-bl-rev {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 114, 62, 0.3);
}
.hh-bl-rev.is-anim { opacity: 0; animation: hhBlFlip 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes hhBlFlip {
  from { opacity: 0; transform: perspective(600px) rotateX(70deg); }
  to { opacity: 1; transform: perspective(600px) rotateX(0deg); }
}
.hh-bl-rev-bag { flex: none; font: 700 13px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #94723e; min-width: 44px; }
.hh-bl-rev-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hh-bl-rev-info b { font: 700 13.5px/1.5 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; }
.hh-bl-rev-info i { font: 600 12px/1.5 var(--font-ui, sans-serif); color: #8f2f1f; font-style: normal; }
.hh-bl-rev-stamp {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 700 15px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif; letter-spacing: 0.02em;
  transform: rotate(-8deg);
}
.hh-bl-rev.is-hit .hh-bl-rev-stamp {
  border: 2px solid rgba(168, 64, 45, 0.9);
  color: #f5e9dc; background: radial-gradient(circle at 50% 42%, #a8402d, #8f2f1f);
  box-shadow: inset 0 0 0 2px rgba(245, 233, 220, 0.35);
}
.hh-bl-rev.is-miss .hh-bl-rev-stamp {
  border: 2px dashed rgba(138, 128, 105, 0.6);
  color: #8a8069; background: rgba(138, 128, 105, 0.08);
  font-size: 11px;
}
.hh-bl-res-title { font: 700 15px/1.7 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; margin: 12px 2px 2px; text-align: center; letter-spacing: 0.06em; }
.hh-bl-res-title.is-anim { opacity: 0; animation: hhBlFade 0.45s ease forwards; }
@keyframes hhBlFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 答案茶卡（回購導購） */
.hh-bl-answers-title { font: 600 11.5px/1.4 var(--font-ui, sans-serif); color: #8a7a5c; letter-spacing: 0.16em; margin: 16px 2px 8px; text-transform: uppercase; }
.hh-bl-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hh-bl-ans-card {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px; border-radius: 12px; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 114, 62, 0.35);
}
.hh-bl-ans-thumb, .hh-bl-ans-thumb.hh-bl-thumb-fb {
  width: 56px; height: 56px; border-radius: 10px;
  object-fit: cover; background: #efe7d4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
.hh-bl-ans-name { font: 700 12px/1.45 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .hh-bl-overlay, .hh-bl-panel { transition: none; }
  .hh-bl-rev.is-anim, .hh-bl-res-title.is-anim { animation: none; opacity: 1; }
}
@media (min-width: 1024px) {
  .hh-bl-overlay { align-items: center; }
  .hh-bl-panel { border-radius: 22px; max-height: 86vh; max-height: 86dvh; }
  .hh-bl-picker, .hh-bl-answers { grid-template-columns: repeat(4, 1fr); }
}
