/* tea-chart.css — 🔮 命理茶語 overlay（fortune-plan.md M4）
   overlay 家族（同 tea-fortune 語彙：z 10060、深綠×米白×金、襯線）。
   高度一律 vh fallback＋dvh（手機穩定性鐵則⑦）。 */

.hh-chart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(24, 34, 26, 0.55);
  -webkit-backdrop-filter: var(--hh-scrim-blur);
  backdrop-filter: var(--hh-scrim-blur);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hh-chart-overlay.is-open { opacity: 1; }

.hh-chart-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  /* 2026-07-15 業主拍板玻璃表單：classic 報告退役後 overlay 只剩表單/玻璃門，整面入夜 */
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(58, 84, 118, 0.45), transparent 62%),
    linear-gradient(160deg, #141c30 0%, #0d1522 60%, #0a1018 100%);
  color: #f0ead8;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 -8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(24px);
  transition: transform 0.25s ease;
  font-family: "Noto Serif TC", "Noto Serif TC Fallback", "Songti TC", serif;
}
.hh-chart-overlay.is-open .hh-chart-panel { transform: translateY(0); }

.hh-chart-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(240, 234, 216, 0.6);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}
.hh-chart-head {
  padding: 18px 20px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hh-chart-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #d4b576;
}
.hh-chart-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: 0.25em;
}
/* 表單態的「‹ 換一種讀法」（回三選一）——與 ✕ 左右對稱，44px 熱區 */
.hh-chart-back {
  position: absolute;
  top: 10px;
  left: 6px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  font: 500 12.5px/44px "Noto Serif TC", "Noto Serif TC Fallback", serif;
  letter-spacing: 0.1em;
  color: rgba(240, 234, 216, 0.72);
}
.hh-chart-back:hover { color: #d4b576; }
.hh-chart-back[hidden] { display: none; }

/* ── 步驟 0：家族三選一（2026-08-08）──
   命理茶語＝紫微／三光／茶塔羅三個功能的傘。三張卡權重相等，別再把其中一個做成小膠囊。 */
.hh-chart-pick { display: grid; gap: 10px; margin-top: 2px; }
.hh-chart-pick-card {
  appearance: none; -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 12px 15px 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(212, 181, 118, 0.26);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  color: #f0ead8;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.hh-chart-pick-card:hover,
.hh-chart-pick-card:focus-visible {
  border-color: rgba(212, 181, 118, 0.6);
  background: linear-gradient(160deg, rgba(212, 181, 118, 0.12), rgba(255, 255, 255, 0.02));
  outline: none;
}
.hh-chart-pick-card:active { transform: scale(0.99); }
.hh-cp-glyph {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 181, 118, 0.4);
  color: #d4b576;
}
.hh-cp-glyph svg { width: 22px; height: 22px; display: block; }
.hh-cp-txt { flex: 1 1 auto; min-width: 0; display: block; line-height: 1.5; }
.hh-cp-txt b {
  display: block;
  font: 700 16px/1.5 "Noto Serif TC", "Noto Serif TC Fallback", serif;
  letter-spacing: 0.14em;
  color: #f4efdf;
}
.hh-cp-txt small {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: rgba(212, 181, 118, 0.7);
}
.hh-cp-txt em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(240, 234, 216, 0.66);
}
.hh-cp-req {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(240, 234, 216, 0.62);
  background: rgba(255, 255, 255, 0.06);
}
.hh-cp-req.is-free {
  color: #e6cd94;
  background: rgba(212, 181, 118, 0.16);
}
.hh-cp-go { flex: none; color: rgba(212, 181, 118, 0.65); font-size: 20px; line-height: 1; }

/* 紫微＋「不知道出生時間」＝排不出來，先講清楚 */
.hh-chart-needtime {
  margin: -4px 0 12px;
  padding: 8px 11px;
  border-radius: 8px;
  border-left: 2px solid rgba(212, 181, 118, 0.6);
  background: rgba(212, 181, 118, 0.08);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(240, 234, 216, 0.8);
}
.hh-chart-needtime[hidden] { display: none; }
.hh-chart-body {
  /* flex 子項預設 min-height:auto 不會縮＝body 撐破 92dvh panel、overflow-y 永不觸發
     ＝手機表單完全不能捲（2026-07-15 業主真機回報「不能滑」的根因） */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto; /* 勿加 -webkit-overflow-scrolling:touch（legacy 旗標，iOS 真機凍結嫌疑） */
  touch-action: pan-y;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  line-height: 1.9;
  font-size: 14.5px;
}

/* ── 夜觀星象（2026-07-15 沉浸層：夜藍星空窗 × 茶金/月銀/茶玉三色溫）── */
.hh-chart-cosmos {
  position: relative;
  margin: 2px 0 24px;
  padding: 22px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(212, 181, 118, 0.35);
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(58, 84, 118, 0.4), transparent 62%),
    linear-gradient(180deg, #101d2e 0%, #0b1522 55%, #091019 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(9, 16, 25, 0.25);
  overflow: hidden;
}
.hh-cosmos-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hh-cosmos-head { position: relative; text-align: center; margin-bottom: 14px; }
.hh-cosmos-head small {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: rgba(212, 181, 118, 0.75);
}
.hh-cosmos-head h4 {
  margin: 4px 0 0;
  font-family: "Noto Serif TC", "Noto Serif TC Fallback", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #f0ead8;
}
.hh-cosmos-row { position: relative; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.hh-cosmos-card { margin: 0; min-width: 0; flex: 1 1 42%; }
.hh-cosmos-card.is-sun { flex-basis: 100%; order: 1; color: #e9cd86; }
.hh-cosmos-card.is-moon { order: 2; color: #c3cfdb; }
.hh-cosmos-card.is-asc { order: 3; color: #a3c4ab; }
/* SVG 的 <g color> 是 presentation attribute，CSS 覆寫得過（品牌三色溫） */
.hh-cosmos-card.is-sun .constellation { color: #e9cd86; }
.hh-cosmos-card.is-moon .constellation { color: #c3cfdb; }
.hh-cosmos-card.is-asc .constellation { color: #a3c4ab; }
.hh-cosmos-svg { aspect-ratio: 320 / 240; }
.hh-cosmos-svg svg { display: block; width: 100%; height: 100%; }
.hh-cosmos-card figcaption {
  text-align: center;
  opacity: 0.25;
  transition: opacity 0.9s ease;
  line-height: 1.5;
  padding-top: 2px;
}
.hh-cosmos-card.is-lit figcaption { opacity: 1; }
.hh-cosmos-card figcaption b {
  display: block;
  font-family: "Noto Serif TC", "Noto Serif TC Fallback", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ece5d2;
}
.hh-cosmos-card.is-sun figcaption b { font-size: 14.5px; }
.hh-cosmos-card figcaption b i {
  font-style: normal;
  margin-right: 6px;
  color: currentColor;
}
.hh-cosmos-card figcaption small {
  font-family: "Cormorant Garamond", serif;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(236, 229, 210, 0.45);
}
/* 只有太陽（不知道出生時間）＝置中收窄 */
.hh-chart-cosmos[data-solo="1"] .hh-cosmos-card.is-sun { max-width: 420px; margin: 0 auto; }
/* 桌機＝三聯屏：月亮｜太陽（放大）｜上升 */
@media (min-width: 1024px) {
  .hh-chart-cosmos { padding: 26px 24px 20px; }
  .hh-cosmos-row { flex-wrap: nowrap; gap: 18px; }
  .hh-cosmos-card { flex: 1 1 0; }
  .hh-cosmos-card.is-sun { flex: 1.45 1 0; order: 2; }
  .hh-cosmos-card.is-moon { order: 1; }
  .hh-cosmos-card.is-asc { order: 3; }
}

/* ── 表單 ── */
.hh-chart-intro { margin: 0 0 14px; color: rgba(240, 234, 216, 0.66); }
.hh-chart-field { display: block; margin: 0 0 12px; }
.hh-chart-field > span { display: block; font-size: 12px; color: #d4b576; margin-bottom: 6px; letter-spacing: 0.14em; }
.hh-chart-field input[type="date"],
.hh-chart-field input[type="time"],
.hh-chart-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box; /* 沒這行 padding 會撐爆 100%（2026-07-15 業主回報爆版） */
  /* iOS 的 date/time input 有 UA 內在寬度（inline-flex），會贏過 width:100% ＝照樣溢出；
     appearance:none 才真正交還寬度控制（2026-07-15 業主真機二度回報溢出） */
  -webkit-appearance: none;
  appearance: none;
  display: block;
  font-size: 16px; /* iOS 防聚焦放大鐵則 */
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #f0ead8;
  font-family: inherit;
  color-scheme: dark; /* 原生日期/時間選擇器跟著入夜 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hh-chart-field input[type="date"],
.hh-chart-field input[type="time"] {
  min-height: 47px; /* appearance:none 後 iOS 空值會塌高 */
}
/* appearance:none 後 iOS 值改靠左＝維持原生置中視覺 */
.hh-chart-field input::-webkit-date-and-time-value { text-align: center; }
.hh-chart-field input:focus,
.hh-chart-field select:focus {
  outline: none;
  border-color: rgba(212, 181, 118, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 3px rgba(212, 181, 118, 0.18);
}
.hh-chart-clear {
  border: 0;
  background: transparent;
  color: #c08a80;
  font-family: inherit;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.hh-chart-field input:disabled { opacity: 0.45; }
.hh-chart-checkbox { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: rgba(240, 234, 216, 0.7); }
.hh-chart-checkbox input, .hh-chart-body input[type="checkbox"] { accent-color: #d4b576; }
.hh-chart-seg { display: flex; gap: 8px; }
.hh-chart-seg label { flex: 1; }
.hh-chart-seg input { position: absolute; opacity: 0; pointer-events: none; }
.hh-chart-seg i {
  display: block;
  text-align: center;
  font-style: normal;
  letter-spacing: 0.2em;
  padding: 11px 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 234, 216, 0.75);
  cursor: pointer;
}
.hh-chart-seg input:checked + i {
  background: linear-gradient(160deg, #f2e7c8, #d4b576);
  color: #080611;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 18px rgba(212, 181, 118, 0.3);
}
.hh-chart-note { font-size: 12px; color: rgba(240, 234, 216, 0.45); margin: 4px 0 16px; line-height: 1.8; }
.hh-chart-submit {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(160deg, #f2e7c8, #d4b576);
  color: #080611;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: 15px 0 15px 6px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 181, 118, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.hh-chart-submit:active { transform: scale(0.98); }
/* 登入會員身分綠標（renderForm 於已登入時插入） */
.hh-chart-member {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(6, 199, 85, 0.1);
  border: 1px solid rgba(6, 199, 85, 0.3);
  font-size: 11.5px;
  color: rgba(240, 234, 216, 0.8);
}
.hh-chart-member .dot { width: 7px; height: 7px; border-radius: 50%; background: #06c755; box-shadow: 0 0 8px rgba(6, 199, 85, 0.8); flex: none; }
/* 訪客選配登入列（2026-07-15 免登入化）：不擋排盤，只順帶提供生辰同步 */
.hh-chart-guestlogin {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(240, 234, 216, 0.55);
}
.hh-chart-loginbtn {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(6, 199, 85, 0.5);
  border-radius: 999px;
  background: rgba(6, 199, 85, 0.12);
  color: #7fe0a8;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hh-chart-privacy { font-size: 11px; color: rgba(240, 234, 216, 0.42); text-align: center; margin: 12px 0 0; }
.hh-chart-loading { text-align: center; padding: 48px 0; color: rgba(240, 234, 216, 0.6); letter-spacing: 0.2em; }

/* ── 分頁 ── */
.hh-chart-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.hh-chart-tabs button {
  flex: 1;
  border: 1px solid #c9bfa8;
  border-radius: 999px;
  background: transparent;
  color: #5c6355;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 8px 0;
  cursor: pointer;
}
.hh-chart-tabs button.is-active { background: #2d3a2e; color: #f2ead6; border-color: #2d3a2e; }

/* ── 盤面 ── */
.hh-chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 4px 0 8px; }
.hh-chart-cell {
  position: relative;
  min-height: 84px;
  padding: 5px 6px;
  background: #fff;
  border: 1px solid #e0d8c2;
  border-radius: 6px;
  font-size: 10.5px;
  line-height: 1.5;
}
.hh-chart-cell.is-center {
  grid-area: 2 / 2 / 4 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #2d3a2e;
  color: #f2ead6;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hh-chart-cell.is-ming { border-color: #a8894f; box-shadow: 0 0 0 1px #a8894f; }
.hh-chart-cell-head { display: flex; justify-content: space-between; color: #4a7a52; font-weight: 600; }
.hh-chart-cell-head i { font-style: normal; font-weight: 400; color: #a09a88; }
.hh-chart-cell-head em { font-style: normal; color: #b0554d; margin-left: 2px; }
.hh-chart-cell-stars { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 1px 5px; color: #8a8471; }
.hh-chart-cell-stars .is-main { color: #2d3a2e; font-weight: 700; }
.hh-chart-cell-stars u { color: #b0554d; text-decoration: none; font-size: 9px; vertical-align: super; }
.hh-chart-cell-ln {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-size: 9px;
  font-weight: 400;
  color: #b0554d;
  border: 1px solid #b0554d;
  border-radius: 3px;
  padding: 0 3px;
}

/* ── 報告內文 ── */
.hh-chart-sec {
  font-size: 14px;
  color: #4a7a52;
  letter-spacing: 0.15em;
  border-bottom: 1px solid #d9cfb4;
  padding-bottom: 5px;
  margin: 26px 0 10px;
}
.hh-chart-star h4 { font-size: 17px; margin: 14px 0 6px; }
.hh-chart-star h4 span { font-size: 12px; color: #a8894f; font-weight: 400; margin-left: 10px; }
.hh-chart-star p { margin: 0 0 8px; }
.hh-chart-trad {
  font-size: 13px;
  color: #7d6330;
  background: rgba(168, 137, 79, 0.07);
  border-left: 2px solid #a8894f;
  padding: 6px 12px;
  margin: 0 0 10px;
}
/* 三方四正/夫妻宮：宮位子區塊 */
.hh-chart-secintro { color: #5c6355; font-size: 13.5px; margin: 0 0 10px; }
.hh-chart-palace { margin: 0 0 16px; }
.hh-chart-palace h5 {
  font-size: 15px;
  margin: 0 0 6px;
  color: #2d3a2e;
  letter-spacing: 0.08em;
}
.hh-chart-palace h5 span { font-size: 12px; color: #a8894f; font-weight: 400; margin-left: 10px; }
.hh-chart-palace p { margin: 0 0 8px; }

/* 真話挑戰段（編輯方針 v2「直言不諱、凶中帶解」）＝印章紅細線，與古義金線區隔 */
.hh-chart-challenge {
  font-size: 13.5px;
  color: #7a4a44;
  background: rgba(176, 85, 77, 0.06);
  border-left: 2px solid #b0554d;
  padding: 6px 12px;
  margin: 0 0 10px;
}
/* 亮度修飾句（廟旺 strong／落陷 weak）：茶綠細框註腳 */
.hh-chart-bright-note {
  font-size: 13px;
  color: #4a5a4c;
  background: rgba(61, 84, 67, 0.05);
  border-left: 2px solid #3d5443;
  padding: 6px 12px;
  margin: 0 0 10px;
}
.hh-chart-list { padding-left: 18px; margin: 6px 0; }
.hh-chart-list li { margin: 6px 0; }
.hh-chart-note-block {
  color: #7d6330;
  background: rgba(168, 137, 79, 0.07);
  border: 1px dashed #c9bfa8;
  border-radius: 8px;
  padding: 10px 14px;
}
.hh-chart-disclaimer { font-size: 11px; color: #a09a88; border-top: 1px solid #d9cfb4; padding-top: 10px; margin-top: 26px; }

/* ── 宜飲卡 ── */
.hh-chart-teas { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hh-chart-tea {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #e0d8c2;
  border-left: 3px solid #a8894f;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
.hh-chart-tea img { width: 56px; height: 42px; object-fit: cover; border-radius: 5px; }
.hh-chart-tea-name { font-size: 14px; font-weight: 600; }
.hh-chart-tea-meta { font-size: 11.5px; color: #8a8471; }
/* M7 命中理由（依你的盤命中的香型）：金字小註 */
.hh-chart-tea-why { font-size: 11px; color: #a8894f; letter-spacing: 0.04em; }

.hh-chart-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.hh-chart-redo {
  display: block;
  width: 100%;
  border: 1px solid #c9bfa8;
  border-radius: 10px;
  background: transparent;
  color: #5c6355;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.2em;
  padding: 10px 0;
  cursor: pointer;
}
/* 問阿興師：金字 ghost（M6 深聊 CTA） */
.hh-chart-ask-ai {
  display: block;
  width: 100%;
  border: 1px solid rgba(148, 114, 62, 0.5);
  border-radius: 10px;
  background: rgba(148, 114, 62, 0.06);
  color: #94723e;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 11px 0;
  cursor: pointer;
}
.hh-chart-ask-ai:active { transform: scale(0.98); }

/* 登入玻璃門（2026-07-15：命理茶語＝會員功能）：紙面 overlay 內的夜空玻璃邀請卡 */
.hh-chart-gate {
  border-radius: 16px;
  padding: 34px 22px 30px;
  text-align: center;
  color: #f0ead8;
  border: 1px solid rgba(212, 181, 118, 0.45);
  background: radial-gradient(130% 100% at 50% -10%, rgba(58, 84, 118, 0.5), transparent 60%),
    linear-gradient(160deg, #141c30 0%, #0d1522 60%, #0a1018 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 34px rgba(13, 21, 34, 0.3);
}
.hh-chart-gate-ico { font-size: 34px; display: block; margin-bottom: 10px; }
.hh-chart-gate h4 { font-size: 18px; letter-spacing: 0.18em; margin: 0 0 10px; }
.hh-chart-gate p { font-size: 13px; line-height: 2; color: rgba(240, 234, 216, 0.75); margin: 0 0 20px; }
.hh-chart-gate-line {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  max-width: 300px;
  padding: 13px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: #06c755; /* LINE 綠 */
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35);
}
.hh-chart-gate-line:active { transform: scale(0.98); }

/* 沉浸版入口（各 pane 頂）：夜色漸層＋金字，與紙面形成「入夜」邀請 */
.hh-chart-scene-launch {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #e9d3a1;
  cursor: pointer;
  border: 1px solid rgba(212, 181, 118, 0.55);
  border-radius: 12px;
  background: linear-gradient(160deg, #1d2434 0%, #141a28 55%, #0e1320 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(14, 19, 32, 0.35);
}
.hh-chart-scene-launch:active { transform: scale(0.98); }

/* 分享鈕：深綠實體主鈕（主行動），重排退居 ghost */
.hh-chart-share {
  display: block;
  width: 100%;
  border: 1px solid #3d5443;
  border-radius: 10px;
  background: #3d5443;
  color: #f4efdf;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 11px 0;
  cursor: pointer;
}
.hh-chart-share:active { transform: scale(0.98); }

/* 桌機＝置中對話框 */
@media (min-width: 1024px) {
  .hh-chart-overlay { align-items: center; padding: 24px; }
  .hh-chart-panel { border-radius: 18px; max-height: 88vh; max-height: 88dvh; }
  .hh-chart-body { padding: 22px 32px 28px; }
  /* 三選一＝並排「三道門」（非 zh 只有兩張，auto-fit 自動變兩欄） */
  .hh-chart-pick { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
  .hh-chart-pick-card { flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 20px; gap: 12px; }
  .hh-cp-txt { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; }
  .hh-cp-txt em { flex: 1 1 auto; }
  .hh-cp-go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-chart-overlay, .hh-chart-panel { transition: none; }
}

/* ── M2.5 全面化第二批（2026-07-14）── */
/* 廟旺利陷小標：廟旺＝金、陷/不得地＝印章紅、其餘灰 */
.hh-chart-bright {
  font-style: normal;
  font-size: 10px;
  vertical-align: super;
  margin-left: 3px;
  color: #8a8471;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 3px;
}
.hh-chart-bright[data-lv="廟"], .hh-chart-bright[data-lv="旺"] { color: #a8894f; }
.hh-chart-bright[data-lv="陷"], .hh-chart-bright[data-lv="不得地"] { color: #b0554d; }
/* 其餘宮位摺疊全覽 */
.hh-chart-details { border: 1px solid #e0d8c2; border-radius: 8px; margin: 0 0 8px; background: #fff; }
.hh-chart-details summary { cursor: pointer; padding: 9px 14px; font-size: 14px; color: #4a7a52; letter-spacing: 0.1em; }
.hh-chart-details[open] summary { border-bottom: 1px solid #eee7d5; }
.hh-chart-details .hh-chart-palace { padding: 10px 14px 2px; margin: 0; }
/* 大限章節標 */
.hh-chart-dx { color: #7d6330; }
/* 行星落宮行＋相位列表 */
.hh-chart-houseline { font-size: 12.5px; color: #7d6330; background: rgba(168, 137, 79, 0.06); border-radius: 6px; padding: 5px 10px; }
.hh-chart-aspects li { list-style: none; margin-left: -18px; }
