/* tea-chart-scene.css — 🔮 命理茶語沉浸式獨立頁（2026-07-15）
   .hh-sky 全螢幕 scene 殼＋兩座 scene：
   [data-kind="ziwei"]＝紫檀夜（璇璣夜譜）／[data-kind="astro"]＝深海夜藍（三光夜譜）。
   玻璃語彙同會員登入卡 V4（白紗 blur＋白 rim＋頂部斜光）。
   ⚠️ 殼本身已是深底＋玻璃卡雙層，卡內勿再加 backdrop-filter（手機穩定性規範）。 */

.hh-sky {
  position: fixed; inset: 0; z-index: 10070;
  /* 深夜色底色兜底：星空全靠 .hh-sky-canvas（WebGL）渲染，整頁導航去 /tarot 時 iOS 暫停
     WebGL＝canvas 變透明、露出後面首頁抽籤入口（業主 iOS 閃抽籤根因，2026-07-27）。
     root 給不透明深色＝canvas 停也蓋滿、零疊層、視覺無變（canvas/nebula 疊在上面）。 */
  background: #080611;
  font-family: "Noto Serif TC", "Noto Serif TC Fallback", serif;
  color: #f0ead8;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  --gold: #d4b576;
  --gold-soft: rgba(212, 181, 118, 0.35);
  --gold-dim: rgba(212, 181, 118, 0.14);
  --cream: #f0ead8;
  --cream-dim: rgba(240, 234, 216, 0.62);
  --glass-rim: rgba(255, 255, 255, 0.16);
  --night2: #080611;
}
.hh-sky.is-open { opacity: 1; pointer-events: auto; }
/* scene 背景鎖＝modalStack 觸控 fixed 鎖（JS 上）＋本 class 後備。
   第五輪定調（2026-07-15）：完整鏡像真機驗證過的 overlay 家族（抽籤/挑戰）——
   iOS 對 body 只有 overflow:hidden 時，觸控手勢會讓給背後頁面＝scene 看似凍結。 */
body.hh-sky-open { overflow: hidden; }
.hh-sky[data-kind="ziwei"] { background: linear-gradient(180deg, #151024 0%, #0e0a1a 45%, #080611 100%); }
.hh-sky[data-kind="astro"] { background: linear-gradient(180deg, #122036 0%, #0b1524 45%, #070d17 100%); }
.hh-sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hh-sky-nebula { position: absolute; inset: -20%; pointer-events: none; animation: hhSkyDrift 44s ease-in-out infinite alternate; }
.hh-sky[data-kind="ziwei"] .hh-sky-nebula {
  background:
    radial-gradient(46% 34% at 24% 18%, rgba(120, 86, 180, 0.16), transparent 70%),
    radial-gradient(40% 30% at 78% 62%, rgba(64, 102, 150, 0.12), transparent 70%),
    radial-gradient(34% 26% at 60% 12%, rgba(212, 181, 118, 0.07), transparent 70%);
}
.hh-sky[data-kind="astro"] .hh-sky-nebula {
  background:
    radial-gradient(44% 32% at 22% 16%, rgba(74, 110, 168, 0.16), transparent 70%),
    radial-gradient(38% 28% at 80% 58%, rgba(96, 84, 150, 0.12), transparent 70%),
    radial-gradient(32% 24% at 58% 10%, rgba(212, 181, 118, 0.07), transparent 70%);
}
@keyframes hhSkyDrift { from { transform: translate3d(-1.5%, 0, 0); } to { transform: translate3d(1.5%, 1.2%, 0) scale(1.04); } }
@keyframes hhSkySpin { to { transform: rotate(360deg); } }

/* 頂欄（案 A 掛軸題字家族列，2026-07-22 業主拍板：紫微｜星座｜茶塔羅 統一頂層，
   與 /tarot 獨立頁的 .hh-tt-fam 同語彙——改樣式兩邊要一起改） */
.hh-sky-chrome {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 52px 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 4, 12, 0.55), transparent);
}
.hh-sky-fam { display: flex; align-items: center; justify-content: center; gap: 13px; }
.hh-sky-fam button {
  appearance: none; border: none; background: none; cursor: pointer; position: relative;
  font: 600 13.5px/1.4 "Noto Serif TC", "Noto Serif TC Fallback", serif; letter-spacing: 0.24em; text-indent: 0.24em;
  color: rgba(239, 230, 205, 0.42); padding: 4px 1px 9px; transition: color 0.3s;
  white-space: nowrap;
}
.hh-sky-fam i { width: 1px; height: 14px; flex: 0 0 auto;
  background: linear-gradient(180deg, transparent, rgba(197, 164, 90, 0.7), transparent); }
.hh-sky-fam button.is-on { color: #f2ead6; }
.hh-sky-fam button.is-on::after { content: ""; position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 3px; transform: translateX(-50%) rotate(-1deg); border-radius: 2px;
  background: #a63d2a; box-shadow: 0 0 6px rgba(166, 61, 42, 0.5); }
.hh-sky-fam [hidden] { display: none !important; } /* [hidden] vs display:flex 家規防禦 */
.hh-sky-famsub { margin-top: 5px; font: 600 9px/1 "Cormorant Garamond", serif;
  letter-spacing: 0.42em; text-indent: 0.42em; color: var(--gold); }
.hh-sky-close {
  appearance: none; cursor: pointer;
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--glass-rim); background: rgba(255, 255, 255, 0.06);
  color: var(--cream); font-size: 14px;
}
@media (min-width: 1024px) {
  .hh-sky-fam { gap: 17px; }
  .hh-sky-fam button { font-size: 15px; }
  .hh-sky-close { width: 38px; height: 38px; font-size: 15px; }
}

/* 捲動容器——⚠️ 結構＝真機驗證過的 overlay 捲動模式（同 .hh-chal-panel/.hh-fortune-panel）：
   in-flow 區塊＋height:100%＋overflow-y:auto。原「opacity 淡入 fixed 根內 absolute inset:0
   子層捲動」在 iOS Safari 真機整層凍結（2026-07-15 登入回跳 bug 第五輪），勿改回 absolute。
   -webkit-overflow-scrolling:touch 一併移除：iOS 13+ 已預設動量捲動，legacy 旗標只會誘發
   fixed 情境的捲動凍結怪癖。 */
.hh-sky-scroll {
  position: relative; height: 100%; overflow-y: auto;
  overscroll-behavior: contain; z-index: 1;
  touch-action: pan-y; /* 明示只給縱捲，防手勢被上層/祖先吃掉 */
  /* 手機禁橫向平移：任何段落內容溢出（寬標題/盤面/大限河）都不得帶動整頁左右晃 */
  overflow-x: hidden;
}
.hh-sky-body { max-width: 100%; }
.hh-sky-body { position: relative; padding-bottom: 40px; }
.hh-sky-loading { padding: 40vh 20px; text-align: center; color: var(--cream-dim); letter-spacing: 0.2em; }

/* 頂部免責章（2026-07-30 業主指示「AI 運算推衍・娛樂要直接寫在命盤 header 下方、要顯眼」）
   ⚠️ absolute（不是 in-flow）：hero 是 min-height:100svh 的置中舞台，若把章插進流內
   會把整個璇璣環往下推 110px、SCROLL 提示掉出首屏。absolute 掛在 .hh-sky-body
   （已 position:relative）＝佔位 0、隨內容捲走，只覆在 hero 頂端的空白上。
   pointer-events:none＝純文字不吃點擊，不擋 hero CTA。 */
.hh-sky-aibadge {
  position: absolute; z-index: 4; pointer-events: none;
  top: calc(74px + env(safe-area-inset-top, 0px)); /* 讓過 .hh-sky-chrome（家族題字列＋副標） */
  left: 50%; transform: translateX(-50%);
  /* max-content＝放得下就一行；absolute 的收縮寬度會在「・」提早斷行，不加會變兩行 */
  width: max-content; max-width: calc(100vw - 28px);
  margin: 0; padding: 8px 16px;
  border: 1px solid rgba(207, 169, 106, 0.62);
  border-radius: 14px;
  background: rgba(30, 26, 18, 0.55);
  text-align: center; white-space: normal;
  font: 700 12.5px/1.6 var(--font-ui, sans-serif);
  letter-spacing: 0.1em;
  color: #e8cd93;
}

/* 玻璃 */
.hh-sky-glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03) 55%);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-rim); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 50px rgba(4, 3, 10, 0.5);
  position: relative; overflow: hidden;
}
.hh-sky-glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0%, transparent 26%); }

/* 進場顯影 */
.hh-sky .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.hh-sky .rv.in { opacity: 1; transform: none; }

/* 段落骨架 */
.hh-sky-sec { position: relative; padding: 72px 18px; max-width: 1120px; margin: 0 auto; }
.hh-sky-sechead { text-align: center; margin-bottom: 36px; }
.hh-sky-eyebrow { font-family: "Cormorant Garamond", serif; font-size: 11.5px; letter-spacing: 0.4em; color: var(--gold); text-transform: uppercase; }
.hh-sky-sechead h3 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; letter-spacing: 0.22em; margin: 10px 0 6px; }
.hh-sky-subline { color: var(--cream-dim); font-size: 13.5px; letter-spacing: 0.05em; line-height: 2; max-width: 560px; margin: 6px auto 0; }
.hh-sky-rule { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 14px auto 0; }

/* HERO */
.hh-sky-hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 90px 22px 70px; position: relative;
}
.hh-sky-ring, .hh-sky-zring { position: relative; width: min(70vw, 290px); aspect-ratio: 1; margin-bottom: 56px; }
.hh-sky-ring .rg, .hh-sky-zring .rg { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-soft); }
.hh-sky-ring .rg.r2, .hh-sky-zring .rg.r2 { inset: 10%; border-color: var(--gold-dim); border-style: dashed; animation: hhSkySpin 70s linear infinite; }
.hh-sky-ring .rg.r3 { inset: 21%; border-color: rgba(255, 255, 255, 0.1); border-style: solid; }
.hh-sky-zring .glyphs { position: absolute; inset: 0; animation: hhSkySpin 120s linear infinite; }
.hh-sky-zring .glyphs i {
  position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 14px;
  color: rgba(240, 234, 216, 0.65);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(max(-35vw, -145px)) rotate(calc(var(--a) * -1));
}
.hh-sky-zring .glyphs i.hot { color: var(--gold); text-shadow: 0 0 14px rgba(212, 181, 118, 0.6); font-size: 17px; }
.hh-sky-seal {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(38px, 9vw, 52px); font-weight: 900; letter-spacing: 0.1em;
  writing-mode: vertical-rl; text-shadow: 0 0 34px rgba(212, 181, 118, 0.42);
}
.hh-sky-seal.is-h { letter-spacing: 0.14em; }
.hh-sky-seal-sub {
  position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); white-space: nowrap;
  font-family: "Cormorant Garamond", serif; font-size: 10px; letter-spacing: 0.5em; color: var(--gold);
}
.hh-sky-title { font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: 0.28em; margin: 12px 0 14px; }
.hh-sky-lead { color: var(--cream-dim); font-size: 14.5px; line-height: 2.1; letter-spacing: 0.05em; max-width: 460px; }
.hh-sky-scrollhint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: "Cormorant Garamond", serif; font-size: 10px; letter-spacing: 0.4em; color: rgba(240, 234, 216, 0.35); }
.hh-sky-scrollhint::after { content: ""; display: block; width: 1px; height: 32px; margin: 8px auto 0; background: linear-gradient(180deg, var(--gold-soft), transparent); animation: hhSkyDrip 2.2s ease-in-out infinite; }
@keyframes hhSkyDrip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 按鈕 */
.hh-sky-btn {
  appearance: none; cursor: pointer; font: inherit; letter-spacing: 0.26em;
  border-radius: 999px; padding: 14px 36px; min-height: 48px; font-size: 14px;
}
.hh-sky-btn.is-primary {
  margin-top: 30px; color: var(--night2); font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(160deg, #f2e7c8, #d4b576);
  box-shadow: 0 10px 34px rgba(212, 181, 118, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.hh-sky-btn.is-ghost { color: var(--gold); border: 1px solid var(--gold-soft); background: rgba(212, 181, 118, 0.06); }
.hh-sky-btn.is-plain { color: var(--cream-dim); border: 1px solid var(--glass-rim); background: none; }
.hh-sky-btn:active { transform: scale(0.97); }
.hh-sky-foot { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 34px auto 0; }
.hh-sky-foot .hh-sky-btn.is-primary { margin-top: 0; }
.hh-sky-copy { text-align: center; margin-top: 26px; font-family: "Cormorant Garamond", serif; font-size: 10.5px; letter-spacing: 0.34em; color: rgba(240, 234, 216, 0.35); }
.hh-sky-disclaimer { margin: 22px auto 0; max-width: 640px; text-align: center; font-size: 11.5px; line-height: 1.9; color: rgba(240, 234, 216, 0.58); }
.hh-sky-dim { color: rgba(240, 234, 216, 0.6); font-size: 13px; line-height: 2; }

/* ── 璇璣輪 ── */
.hh-sky-wheelzone { display: grid; gap: 30px; align-items: start; }
.hh-sky-wheelwrap { position: relative; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 1; }
.hh-sky-wheel { display: block; width: 100%; height: 100%; }
.hh-sky-halo { position: absolute; inset: -4%; border-radius: 50%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(212, 181, 118, 0.1), transparent 66%); }
.hh-sky-sector { cursor: pointer; }
.hh-sky-sector .cell { fill: rgba(255, 255, 255, 0.045); stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; transition: 0.35s ease; }
.hh-sky-sector:hover .cell { fill: rgba(255, 255, 255, 0.09); }
.hh-sky-sector.on .cell { fill: rgba(212, 181, 118, 0.16); stroke: var(--gold); stroke-width: 1.4; filter: drop-shadow(0 0 12px rgba(212, 181, 118, 0.4)); }
.hh-sky-sector.tri .cell { stroke: rgba(212, 181, 118, 0.6); fill: rgba(212, 181, 118, 0.07); }
.hh-sky-sector text { fill: var(--cream); pointer-events: none; }
.hh-sky-sector .pname { font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.hh-sky-sector .pstars { font-size: 11px; fill: rgba(240, 234, 216, 0.8); }
.hh-sky-sector .pbranch { font-size: 9px; fill: rgba(212, 181, 118, 0.65); letter-spacing: 1px; }
.hh-sky-sector.on .pname { fill: #f4e8c8; }
.hh-sky-triline { stroke: rgba(212, 181, 118, 0.4); stroke-width: 0.8; stroke-dasharray: 4 5; }
.hh-sky-core { pointer-events: none; }
.hh-sky-core .cc { fill: rgba(10, 8, 18, 0.55); stroke: var(--gold-soft); stroke-width: 1; }
.hh-sky-core .core-star { font-size: 26px; font-weight: 900; fill: #f4e8c8; letter-spacing: 3px; }
.hh-sky-core .core-tag { font-size: 10.5px; fill: var(--gold); letter-spacing: 3px; }
.hh-sky-core .core-sub { font-size: 10px; fill: rgba(240, 234, 216, 0.55); letter-spacing: 2px; }

/* 圓盤⇄方盤切換 */
.hh-sky-viewtoggle { display: flex; justify-content: center; gap: 0; margin: -14px 0 26px; }
.hh-sky-viewtoggle button {
  appearance: none; cursor: pointer;
  font: 700 12.5px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif; letter-spacing: 0.16em;
  color: var(--cream-dim); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-rim); padding: 9px 18px; min-height: 36px;
}
.hh-sky-viewtoggle button:first-child { border-radius: 999px 0 0 999px; border-right: 0; }
.hh-sky-viewtoggle button:last-child { border-radius: 0 999px 999px 0; }
.hh-sky-viewtoggle button.is-active { background: linear-gradient(160deg, #f2e7c8, #d4b576); color: var(--night2); border-color: rgba(255, 255, 255, 0.5); }

/* 傳統方盤（地支定位 4×4，夜色玻璃格） */
.hh-sky-gridwrap { width: min(100%, 560px); margin: 0 auto; }
.hh-sky-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hh-sky-cell {
  position: relative; min-height: 96px; padding: 8px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 10px;
  background: rgba(255, 255, 255, 0.045); cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hh-sky-cell:hover { background: rgba(255, 255, 255, 0.09); }
.hh-sky-cell.is-ming { border-color: rgba(212, 181, 118, 0.55); }
.hh-sky-cell.on { background: rgba(212, 181, 118, 0.16); border-color: var(--gold); box-shadow: 0 0 14px rgba(212, 181, 118, 0.3); }
.hh-sky-cell.tri { border-color: rgba(212, 181, 118, 0.55); background: rgba(212, 181, 118, 0.07); }
.hh-sky-cell.is-center {
  grid-area: 2 / 2 / 4 / 4; cursor: default;
  display: grid; place-content: center; text-align: center; gap: 6px;
  font-size: 13px; letter-spacing: 0.2em; color: rgba(240, 234, 216, 0.8);
  background: rgba(10, 8, 18, 0.45); border-color: var(--gold-soft);
}
.hh-sky-cell.is-center:hover { background: rgba(10, 8, 18, 0.45); }
.hh-sky-cellhead { display: flex; align-items: baseline; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; }
.hh-sky-cellhead em { font-style: normal; font-size: 9px; color: var(--night2); background: var(--gold); border-radius: 3px; padding: 0 3px; }
.hh-sky-cellhead i { margin-left: auto; font-style: normal; font-size: 9px; color: rgba(212, 181, 118, 0.65); letter-spacing: 0.08em; }
.hh-sky-cellstars { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 10.5px; color: rgba(240, 234, 216, 0.66); line-height: 1.6; }
.hh-sky-cellstars .is-main { color: #ece5d2; font-weight: 700; font-size: 11.5px; }
.hh-sky-cellstars u { text-decoration: none; font-size: 9px; color: var(--night2); background: var(--gold); border-radius: 3px; padding: 0 2px; margin-left: 1px; vertical-align: 1px; }
.hh-sky-cellln { position: absolute; right: 6px; bottom: 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: #d8a89f; border: 1px solid rgba(192, 138, 128, 0.6); border-radius: 4px; padding: 1px 4px; }
.hh-sky-gridnote { margin: 12px auto 0; max-width: 460px; text-align: center; font-size: 11.5px; line-height: 1.9; color: rgba(240, 234, 216, 0.45); }

/* 讀盤卡 */
.hh-sky-readcard { padding: 26px 22px 24px; min-height: 300px; font-size: 14px; line-height: 2.1; }
.hh-sky-readcard p { margin: 0 0 10px; color: rgba(240, 234, 216, 0.88); }
.hh-sky-rchead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.hh-sky-rchead h4 { font-size: 21px; letter-spacing: 0.18em; }
.hh-sky-rchead > span { color: var(--gold); font-size: 13.5px; letter-spacing: 0.08em; }
.hh-sky-bright { display: inline-block; font-style: normal; font-size: 10px; color: var(--night2); background: var(--gold); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 2px; }
.hh-sky-rcbranch { font-family: "Cormorant Garamond", serif; color: rgba(240, 234, 216, 0.42); font-size: 12px; letter-spacing: 0.26em; margin-bottom: 14px; }
.hh-sky-starblock { margin-bottom: 16px; }
.hh-sky-starblock h5 { font-size: 16.5px; letter-spacing: 0.12em; margin-bottom: 8px; }
.hh-sky-starblock h5 i { font-style: normal; font-size: 11.5px; color: var(--gold); margin-left: 10px; letter-spacing: 0.1em; }
.hh-sky-trad { font-size: 12.5px; color: #cdb98a; border-left: 2px solid var(--gold-soft); background: rgba(212, 181, 118, 0.07); padding: 6px 12px; border-radius: 0 8px 8px 0; }
.hh-sky-challenge { font-size: 13px; color: #d8a89f; border-left: 2px solid rgba(192, 138, 128, 0.7); background: rgba(192, 138, 128, 0.08); padding: 6px 12px; border-radius: 0 8px 8px 0; }
.hh-sky-brightnote { font-size: 13px; color: #b9cbb9; border-left: 2px solid rgba(163, 196, 171, 0.6); background: rgba(163, 196, 171, 0.07); padding: 6px 12px; border-radius: 0 8px 8px 0; }
.hh-sky-blend { font-size: 13.5px; color: #e8ddbe; border-left: 2px solid var(--gold); background: rgba(212, 181, 118, 0.09); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.hh-sky-auxtitle { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); margin: 14px 0 6px; }
.hh-sky-list { padding-left: 18px; margin: 0; }
.hh-sky-list li { margin: 6px 0; font-size: 13px; color: rgba(240, 234, 216, 0.8); line-height: 1.95; }

/* 身宮/五行局・流年 */
.hh-sky-duo { display: grid; gap: 14px; }
.hh-sky-notecard { padding: 24px 22px; }
.hh-sky-notecard h4 { font-size: 17px; letter-spacing: 0.18em; margin-bottom: 10px; color: #ece5d2; }
.hh-sky-notecard p { font-size: 13.5px; line-height: 2.1; color: rgba(240, 234, 216, 0.84); }
.hh-sky-notecard p + p { margin-top: 8px; }
.hh-sky-notecard.is-wide { max-width: 760px; margin: 0 auto; }

/* 四化 */
.hh-sky-shgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hh-sky-shcard { padding: 22px 16px 18px; text-align: center; }
.hh-sky-shseal {
  width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; font-weight: 900; position: relative; color: var(--night2);
  background: linear-gradient(160deg, #f2e7c8, #d4b576);
  box-shadow: 0 6px 22px rgba(212, 181, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hh-sky-shseal::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed var(--gold-soft); animation: hhSkySpin 26s linear infinite; }
.hh-sky-shcard.is-ji .hh-sky-shseal { background: linear-gradient(160deg, #c9a2a2, #9e6a63); color: #fff; }
.hh-sky-shcard h4 { font-size: 15px; letter-spacing: 0.24em; margin-bottom: 2px; }
.hh-sky-shstar { font-size: 11.5px; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; }
.hh-sky-shcard p { font-size: 12.5px; line-height: 1.95; color: rgba(240, 234, 216, 0.74); text-align: left; }

/* 大限長河 */
.hh-sky-river { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; }
.hh-sky-river::-webkit-scrollbar { height: 4px; }
.hh-sky-river::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
.hh-sky-dxcard { flex: 0 0 210px; scroll-snap-align: center; padding: 20px 18px; opacity: 0.58; }
.hh-sky-dxcard.is-now { opacity: 1; border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(212, 181, 118, 0.25), 0 16px 44px rgba(212, 181, 118, 0.12); }
.hh-sky-dxage { font-family: "Cormorant Garamond", serif; font-size: 11.5px; letter-spacing: 0.2em; color: var(--gold); }
.hh-sky-dxcard h4 { font-size: 16.5px; letter-spacing: 0.2em; margin: 6px 0 8px; }
.hh-sky-dxcard p { font-size: 12.5px; line-height: 1.95; color: rgba(240, 234, 216, 0.72); }
.hh-sky-dxnow { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: 0.2em; color: var(--night2); background: var(--gold); border-radius: 999px; padding: 3px 10px; }

/* ── 三光儀式 ── */
.hh-sky-pillar { position: relative; min-height: 88svh; display: grid; align-items: center; padding: 64px 18px; }
.hh-sky-atmo { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.hh-sky-pillar.lit .hh-sky-atmo { opacity: 1; }
.hh-sky-pillar.is-sun .hh-sky-atmo { background: radial-gradient(56% 44% at 50% 34%, rgba(233, 205, 134, 0.12), transparent 70%); }
.hh-sky-pillar.is-moon .hh-sky-atmo { background: radial-gradient(56% 44% at 50% 34%, rgba(195, 207, 219, 0.11), transparent 70%); }
.hh-sky-pillar.is-asc .hh-sky-atmo { background: radial-gradient(56% 44% at 50% 34%, rgba(163, 196, 171, 0.11), transparent 70%); }
.hh-sky-pinner { position: relative; display: grid; gap: 24px; max-width: 1120px; margin: 0 auto; width: 100%; }
.hh-sky-pstage { padding: 22px 18px 14px; }
.hh-sky-pstage .cwrap { aspect-ratio: 320 / 240; }
.hh-sky-pstage svg { display: block; width: 100%; height: 100%; }
.hh-sky-pillar:not(.lit) .constellation-line,
.hh-sky-pillar:not(.lit) .star,
.hh-sky-pillar:not(.lit) .primary-star-label { animation-play-state: paused !important; }
.hh-sky-pillar.is-sun .constellation { color: #e9cd86; }
.hh-sky-pillar.is-moon .constellation { color: #c3cfdb; }
.hh-sky-pillar.is-asc .constellation { color: #a3c4ab; }
.hh-sky-pstage figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px 0; }
.hh-sky-pstage figcaption b { font-family: "Cormorant Garamond", serif; font-size: 12px; letter-spacing: 0.24em; color: rgba(240, 234, 216, 0.8); }
.hh-sky-pstage figcaption small { font-family: "Cormorant Garamond", serif; font-size: 9.5px; letter-spacing: 0.26em; color: rgba(240, 234, 216, 0.4); }
.hh-sky-roleline { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hh-sky-roleline span { font-family: "Cormorant Garamond", serif; font-size: 11.5px; letter-spacing: 0.32em; color: var(--gold); white-space: nowrap; }
.hh-sky-roleline i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-soft), transparent); }
.hh-sky-pcopy h3 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: 0.18em; margin-bottom: 4px; }
.hh-sky-pcopy h3 em { font-style: normal; margin-right: 10px; }
.hh-sky-pillar.is-sun .hh-sky-pcopy h3 em { color: #e9cd86; }
.hh-sky-pillar.is-moon .hh-sky-pcopy h3 em { color: #c3cfdb; }
.hh-sky-pillar.is-asc .hh-sky-pcopy h3 em { color: #a3c4ab; }
.hh-sky-roleseal { display: block; font-size: 12.5px; letter-spacing: 0.14em; color: rgba(240, 234, 216, 0.55); }
.hh-sky-chips { display: flex; gap: 8px; margin: 14px 0 14px; flex-wrap: wrap; }
.hh-sky-chips span { font-size: 11px; letter-spacing: 0.14em; color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 999px; padding: 5px 12px; background: rgba(212, 181, 118, 0.06); }
.hh-sky-pcopy p { font-size: 14.5px; line-height: 2.15; color: rgba(240, 234, 216, 0.88); letter-spacing: 0.03em; }
.hh-sky-kv { margin-top: 12px; }
.hh-sky-kv p { font-size: 13.5px; line-height: 2.05; color: rgba(240, 234, 216, 0.78); margin-bottom: 4px; }
.hh-sky-kv b { color: #e8ddbe; }

/* 行星 */
.hh-sky-plgrid { display: grid; gap: 14px; }
.hh-sky-plcard { padding: 22px 20px; }
.hh-sky-plhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.hh-sky-plhead em { font-style: normal; font-size: 20px; color: var(--gold); }
.hh-sky-plhead h4 { font-size: 15.5px; letter-spacing: 0.14em; }
.hh-sky-house { margin-left: auto; font-size: 10.5px; letter-spacing: 0.1em; color: var(--night2); background: var(--gold); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hh-sky-plcard p { font-size: 13px; line-height: 2.05; color: rgba(240, 234, 216, 0.78); }
.hh-sky-plcard .hh-sky-dim { margin-top: 8px; font-size: 12px; }

/* 相位 */
.hh-sky-aspzone { display: grid; gap: 26px; align-items: center; }
.hh-sky-aweb { position: relative; width: min(100%, 380px); margin: 0 auto; aspect-ratio: 1; }
.hh-sky-aweb svg { display: block; width: 100%; height: 100%; }
.hh-sky-aweb .ring { fill: none; stroke: rgba(255, 255, 255, 0.14); }
.hh-sky-aweb .zg { fill: rgba(212, 181, 118, 0.4); font-size: 11px; }
.hh-sky-aweb .pnode { fill: #0d1826; stroke: var(--gold-soft); }
.hh-sky[data-kind="ziwei"] .hh-sky-aweb .pnode { fill: #14101f; }
.hh-sky-aweb .plabel { fill: var(--cream); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.hh-sky-aweb .aline { stroke-width: 1.3; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s ease; }
.hh-sky-aweb.lit .aline { stroke-dashoffset: 0; }
.hh-sky-asplist { display: grid; gap: 12px; }
.hh-sky-asprow { padding: 16px 18px; }
.hh-sky-asprow b { display: block; font-size: 14px; letter-spacing: 0.1em; color: #ece5d2; margin-bottom: 4px; }
.hh-sky-asprow b em { font-style: normal; color: var(--gold); margin: 0 6px; }
.hh-sky-asprow span { font-size: 12.5px; line-height: 1.95; color: rgba(240, 234, 216, 0.74); }

/* 宜飲（K.buildTeaHtml 的 .hh-chart-teas 深色換膚） */
.hh-sky-teacard { padding: 26px 22px; max-width: 760px; margin: 0 auto; }
.hh-sky-teacard > p { font-size: 14px; line-height: 2.15; color: rgba(240, 234, 216, 0.86); margin-bottom: 14px; }
.hh-sky .hh-chart-teas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hh-sky .hh-chart-tea {
  appearance: none; cursor: pointer; text-align: center; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px 14px; border-radius: 16px;
  border: 1px solid rgba(212, 181, 118, 0.4);
  background: rgba(212, 181, 118, 0.06);
  color: var(--cream);
}
.hh-sky .hh-chart-tea:active { transform: scale(0.98); }
.hh-sky .hh-chart-tea img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold-soft); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4); }
.hh-sky .hh-chart-tea-name { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.hh-sky .hh-chart-tea-meta { font-size: 11px; color: rgba(240, 234, 216, 0.55); }
.hh-sky .hh-chart-tea-why { font-size: 10.5px; color: var(--gold); letter-spacing: 0.05em; }

/* ── 桌機 ≥1024 ── */
@media (min-width: 1024px) {
  .hh-sky-chrome { padding: 18px 28px 14px; }
  .hh-sky-sec { padding: 88px 32px; }
  .hh-sky-wheelzone { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 52px; }
  .hh-sky-boardcol { position: sticky; top: 76px; }
  .hh-sky-duo { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hh-sky-shgrid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .hh-sky-dxcard { flex-basis: 23%; }
  .hh-sky-pinner { grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
  .hh-sky-pillar.is-moon .hh-sky-pinner .hh-sky-pstage { order: 2; }
  .hh-sky-plgrid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hh-sky-aspzone { grid-template-columns: 0.9fr 1.1fr; gap: 52px; }
  .hh-sky-foot { flex-direction: row; justify-content: center; max-width: none; }
  .hh-sky-foot .hh-sky-btn { min-width: 200px; }
}

/* 無障礙 */
@media (prefers-reduced-motion: reduce) {
  .hh-sky, .hh-sky * { animation: none !important; transition: none !important; }
  .hh-sky .rv { opacity: 1; transform: none; }
  .hh-sky-aweb .aline { stroke-dashoffset: 0; }
}
@supports not (backdrop-filter: blur(1px)) {
  .hh-sky-glass { background: rgba(16, 14, 28, 0.88); }
}

/* 流日行（2026-07-15）：流年卡內的「今日」高亮行——金字前綴＋農曆日小標 */
.hh-sky-today {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(212, 181, 118, 0.09);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  line-height: 2.05;
  color: #e8ddbe;
}
.hh-sky-today b { color: var(--gold); margin-right: 2px; }
.hh-sky-today i { font-style: normal; font-size: 11px; color: rgba(240, 234, 216, 0.5); letter-spacing: 0.1em; margin-right: 8px; }
