/* 玄因 app 樣式：4B 炭銅，明暗兩套；吉凶用 B 方案（吉綠底、凶灰底紅字、大凶淡紅底）；全部字用 rem 跟 --scale */
:root {
  --bg: #F1EFEA; --surface: #FFFFFF; --sunken: #E6E3DC; --sunken-line: #E6E3DC; --line: #D6D2C9;
  --text: #1A1A1A; --text2: #3A3833; --text3: #625E56;
  --accent: #7D6229; --accent-surface: #FFFFFF; --danger: #A33A31;
  --good: #2C6A4D; --good-bg: #E7F1EB; --good-line: #BFD9CA; --bad-bg: #F7E6E3; --bad-line: #E9C3BD;
  --peach: #9C4A63; --peach-core: #F6E9EC;
  --ink: #1A1A1A; --on-ink: #F1EFEA; --scrim: rgba(26, 24, 20, 0.36); --glow: rgba(125, 98, 41, 0.38); --handle: #D6D2C9;
  --wx-red: #B23A30; --wx-purple: #6B4A78; --wx-yellow: #C9A24A; --wx-green: #4E6B48; --wx-blue: #2F4C6B; --wx-white: #F5F3EE; --wx-gold: #C2A158; --wx-black: #1A1A1A; --wx-brown: #7A5A3A;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --num: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --scale: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #1C1C1C; --sunken: #0C0C0C; --sunken-line: #242424; --line: #2E2E2E;
    --text: #EDE8DD; --text2: #C9C4B8; --text3: #8A867C;
    --accent: #C9A962; --accent-surface: #1E1C18; --danger: #D9665C;
    --good: #74B894; --good-bg: #15241C; --good-line: #2B4636; --bad-bg: #2A1614; --bad-line: #4A2723;
    --peach: #E79AB0; --peach-core: #2A1A1F;
    --ink: #EDE8DD; --on-ink: #121212; --scrim: rgba(0, 0, 0, 0.62); --glow: rgba(201, 169, 98, 0.5); --handle: #3A3A3A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #1C1C1C; --sunken: #0C0C0C; --sunken-line: #242424; --line: #2E2E2E;
  --text: #EDE8DD; --text2: #C9C4B8; --text3: #8A867C;
  --accent: #C9A962; --accent-surface: #1E1C18; --danger: #D9665C;
  --good: #74B894; --good-bg: #15241C; --good-line: #2B4636; --bad-bg: #2A1614; --bad-line: #4A2723;
    --peach: #E79AB0; --peach-core: #2A1A1F;
  --ink: #EDE8DD; --on-ink: #121212; --scrim: rgba(0, 0, 0, 0.62); --glow: rgba(201, 169, 98, 0.5); --handle: #3A3A3A; color-scheme: dark;
}

html { font-size: calc(16px * var(--scale)); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-wrap: pretty; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--text); }
[hidden] { display: none !important; }

/* 舞台 */
.app { position: relative; height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; background: var(--bg); scrollbar-width: none; padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px)); }
.screen::-webkit-scrollbar { display: none; }
.tabs { min-height: 84px; flex-shrink: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 8px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--bg); position: relative; z-index: 2; }
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: none; background: transparent; color: var(--text3); font-size: 0.8125rem; letter-spacing: 0.1em; transition: color .35s var(--ease); }
.tabs button[aria-current="page"] { color: var(--accent); }
.tabs svg { stroke: currentColor; transition: transform .35s var(--ease); }
.tabs button[aria-current="page"] svg { transform: translateY(-1px); }

/* 通用 */
.pad { padding: 0 24px; }
.top { padding: calc(28px + env(safe-area-inset-top, 0px)) 24px 0; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; margin-left: -12px; border: none; background: transparent; font-size: 0.8125rem; white-space: nowrap; }
.back svg { stroke: currentColor; }
h1.title { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1.1; text-wrap: balance; }
.eyebrow { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); }
.sub { font-size: 0.8125rem; color: var(--text3); }
.body { font-size: 1rem; font-weight: 400; line-height: 1.75; color: var(--text2); }
.headline { margin: 0; font-size: 1.3125rem; font-weight: 700; line-height: 1.45; letter-spacing: 0.02em; color: var(--text); }
.support { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.7; color: var(--text2); }
.detail { margin: 0; font-size: 0.8125rem; font-weight: 300; line-height: 1.65; color: var(--text3); }
.concl { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.65; color: var(--text); }
.card { border-radius: 14px; background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.primary { min-height: 52px; border: none; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.12em; padding: 8px 0 8px 0.12em; width: 100%; transition: background .4s var(--ease), color .4s var(--ease); }
.primary:disabled { background: var(--sunken); color: var(--text3); cursor: default; }
.secondary { min-height: 52px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 0.9375rem; letter-spacing: 0.12em; width: 100%; }
.link { min-height: 44px; border: none; background: transparent; color: var(--text2); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); white-space: nowrap; }
.pill { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 0.6875rem; letter-spacing: 0.2em; white-space: nowrap; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--sunken-line); }
.seg button { flex: 1; min-height: 32px; border: none; border-radius: 999px; background: transparent; color: var(--text3); font-size: 0.75rem; letter-spacing: 0.06em; transition: color .25s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 500; }
.tag { min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text3); font-size: 0.6875rem; letter-spacing: 0.12em; display: inline-flex; align-items: center; white-space: nowrap; }
.tag.bad { border-color: var(--danger); color: var(--danger); }
.tag.good { border-color: var(--good); color: var(--good); }
.tag.gold { border-color: var(--accent); color: var(--accent); }
.list { border-radius: 14px; background: var(--surface); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border: none; width: 100%; background: transparent; text-align: left; text-decoration: none; }
.list > * + * { box-shadow: inset 0 1px 0 var(--line); }
.list .lab { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list svg.chev { stroke: var(--text3); flex-shrink: 0; }
.spacer { flex: 1; }
.sw { width: 8px; height: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); display: inline-block; flex-shrink: 0; }
.summary { display: flex; gap: 6px; flex-wrap: wrap; }
.summary span { min-height: 2rem; padding: 0.2rem 0.75rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.summary i { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.words { word-break: keep-all; }
.nw { white-space: nowrap; }
/* 術語：撳落去睇白話解釋 */
.term { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--accent); text-underline-offset: 3px; cursor: pointer; }
.headline, .support, .detail, .concl, .body { line-break: strict; }

/* 羅盤 */
#dial { display: block; width: min(300px, 100%); margin: 18px auto 0; overflow: visible; }
#dial .minor { stroke: var(--text3); } #dial .major { stroke: var(--text); } #dial .inner { stroke: var(--line); }
#dial .idx { fill: var(--accent); transform-box: view-box; transform-origin: 150px 4px; animation: idx 2.6s ease-in-out infinite; }
@keyframes idx { 50% { opacity: 0.45; } }
#dial text { font-family: var(--sans); fill: var(--text3); font-size: 12px; transition: fill .3s; }
#dial text.on { fill: var(--accent); font-weight: 500; }
#deg { font-family: var(--num); font-size: 52px; font-weight: 200; fill: var(--text); letter-spacing: -0.02em; }
#deg-sub { font-size: 12px; letter-spacing: 0.2em; }
.status-chip { min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 0.6875rem; color: var(--text2); white-space: nowrap; transition: color .4s var(--ease); }
.status-chip i, .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; transition: background .4s var(--ease); flex-shrink: 0; }
.status-chip.ok i { background: var(--good); }
.status-chip.warn i { background: var(--danger); }
.status-chip.wait { color: var(--text3); }
.status-chip.wait i { background: var(--text3); animation: idx 1.4s ease-in-out infinite; }
.hint { margin: 0; min-height: 1.7em; text-align: center; font-size: 0.9375rem; line-height: 1.7; color: var(--text2); transition: color .3s; }
.hint.warn { color: var(--danger); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pick button { min-height: 4.25rem; border-radius: 12px; border: 1px solid var(--surface); background: var(--surface); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.06em; transition: border-color .3s, color .3s; }
.pick button:hover, .pick button:focus-visible { border-color: var(--accent); color: var(--accent); }
.pick .me { background: transparent; border: 1px dashed var(--line); color: var(--text3); font-size: 0.8125rem; font-weight: 400; cursor: default; }

/* 九宮格 */
.door { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.door span { font-size: 0.6875rem; letter-spacing: 0.4em; padding-left: 0.4em; color: var(--accent); white-space: nowrap; }
.door i { width: 60px; height: 1px; background: var(--accent); display: block; }
.grid-wrap { position: relative; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cell { --i: 0; position: relative; min-height: 7.25rem; min-width: 0; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--surface); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; text-align: left; transition: background .55s var(--ease) calc(var(--i) * 45ms), border-color .55s var(--ease) calc(var(--i) * 45ms), opacity .3s, transform .35s var(--ease), box-shadow .35s; }
.cell > span { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; width: 100%; transition: opacity .45s var(--ease) calc(var(--i) * 45ms + 120ms); }
.cell > .c-mid { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; }
.c-dir, .c-luck { font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text3); transition: color .6s var(--ease) calc(var(--i) * 45ms); }
.c-luck { font-weight: 500; }
.c-star { font-size: 1.375rem; font-weight: 500; line-height: 1.2; color: var(--text); transition: color .6s var(--ease) calc(var(--i) * 45ms), opacity .3s; }
.c-tag { font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--danger); white-space: nowrap; }
.c-bot { gap: 6px; justify-content: flex-start !important; align-items: center !important; flex-wrap: wrap; font-size: 0.8125rem; line-height: 1.35; color: var(--text2); }
.c-item { min-width: 0; text-wrap: balance; }
.grid.settled .cell.k-good { background: var(--good-bg); border-color: var(--good-line); }
.grid.settled .cell.k-good .c-star, .grid.settled .cell.k-good .c-luck { color: var(--good); }
.grid.settled .cell.k-bad { background: var(--sunken); border-color: var(--sunken-line); }
.grid.settled .cell.k-bad .c-star { color: var(--text3); }
.grid.settled .cell.k-bad .c-luck { color: var(--danger); }
.grid.settled .cell.k-worst { background: var(--bad-bg); border-color: var(--bad-line); }
.grid.settled .cell.k-worst .c-star, .grid.settled .cell.k-worst .c-luck { color: var(--danger); }
.grid.settled .cell.is-door { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.grid.settled .cell.is-door .c-dir { color: var(--accent); font-weight: 500; }
.grid.pre .cell { opacity: 0; }
.grid:not(.settled) .cell > .c-top, .grid:not(.settled) .cell > .c-bot, .grid:not(.settled) .c-tag { opacity: 0; }
.grid:not(.settled) .cell:not(.lit) .c-star { opacity: 0; }
.grid:not(.settled) .cell.lit .c-star { color: var(--accent); }
.cell.center { background: transparent; border: 1px dashed var(--line); align-items: center; justify-content: center; }
.center .c-star { position: absolute; inset: 0; display: grid; place-items: center; }
.center .c-you { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--text3); transition: opacity .5s var(--ease) .4s; }
.grid.settled .center .c-star { opacity: 0; }
.grid:not(.settled) .center .c-you { opacity: 0; }
.center svg .ring { stroke: var(--accent); } .center svg .me { fill: var(--text); } .center svg path { stroke: var(--text); }
.grid.focus .cell:not(.picked) { opacity: 0.32; }
.cell.picked { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px -14px var(--glow); z-index: 2; }
.cell.is-door.picked { box-shadow: inset 0 0 0 1px var(--accent), 0 14px 30px -14px var(--glow); }
.ripple { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 999px; border: 1px solid var(--accent); pointer-events: none; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail line { stroke: var(--accent); stroke-width: 1; stroke-opacity: 0.55; stroke-linecap: round; }
.flier { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 14px 5px var(--glow); opacity: 0; pointer-events: none; }

/* 面板 */
/* 面板放喺 .app 最外層，貼住螢幕底；z-index 由 router 按疊幾層設定 */
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 10; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 24px calc(30px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 88%; overflow-y: auto; overflow-x: hidden; box-shadow: 0 -20px 40px -30px rgba(0,0,0,.4); }
.handle { width: 36px; height: 4px; border-radius: 999px; background: var(--handle); margin: 0 auto; flex-shrink: 0; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; display: grid; place-items: center; flex-shrink: 0; }
.icon-btn svg { stroke: var(--text3); }
.yiji { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.yiji .k { font-size: 0.8125rem; letter-spacing: 0.12em; padding-top: 3px; font-weight: 500; }
.yiji .k.yi { color: var(--good); } .yiji .k.ji { color: var(--danger); }
.yiji ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.yiji li { font-size: 0.9375rem; line-height: 1.6; display: flex; flex-direction: column; gap: 2px; }
.yiji li .why { font-size: 0.8125rem; color: var(--text3); }
.overlay { border-radius: 12px; background: var(--sunken); border: 1px solid var(--sunken-line); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
/* 家人 */
.fam-list { display: flex; flex-direction: column; margin: 0 -18px; }
.fam-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 18px; border: none; background: transparent; width: 100%; text-align: left; }
.fam-list .fam-row + .fam-row, .list .fam-row + .fam-row { box-shadow: inset 0 1px 0 var(--line); }
.fam-row .lab { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fam-row .lab b { font-size: 0.9375rem; font-weight: 500; }
.fam-row .lab small { font-size: 0.8125rem; color: var(--text3); }
.fam-row svg.chev { stroke: var(--text3); flex-shrink: 0; }
.fam-glyph { width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 1.0625rem; font-weight: 500; }
.fam-glyph.big { width: 4rem; height: 4rem; font-size: 1.75rem; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.fam-status { font-size: 0.8125rem; font-weight: 500; text-align: right; max-width: 45%; }
.fam-status.bad { color: var(--danger); } .fam-status.good { color: var(--good); } .fam-status.plain { color: var(--text3); font-weight: 400; }
.zodiac-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.zodiac-pick button { min-height: 2.75rem; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-size: 1rem; transition: border-color .25s, color .25s, background .25s; }
.zodiac-pick button[aria-checked="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-surface); font-weight: 500; }
.field { min-height: 48px; border-radius: 12px; border: 1px solid var(--sunken-line); background: var(--sunken); padding: 0 14px; font-size: 1rem; outline: none; }
.field:focus { border-color: var(--accent); }
.field.area { padding: 12px 14px; line-height: 1.7; resize: none; min-height: 9rem; }
.type-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.type-pick button { min-height: 2.5rem; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 0.875rem; white-space: nowrap; transition: border-color .25s, color .25s, background .25s; }
.type-pick button[aria-checked="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-surface); font-weight: 500; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
/* 用 inline-block：flex 會將術語 span 拆成獨立一截 */
.mini { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--sunken); font-size: 0.8125rem; line-height: 1.4; }
.aspect { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.aspect + .aspect { box-shadow: inset 0 1px 0 var(--line); }
.aspect .k { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); padding-top: 2px; white-space: nowrap; }
/* 桃花：獨立嘅桃花粉，唔同吉凶紅綠、亦唔用品牌銅色 */
.c-fam { display: inline-flex; align-items: center; margin-left: 5px; color: var(--peach); vertical-align: -1px; }
.peach-icon { flex-shrink: 0; display: inline-block; vertical-align: -1px; }
.grid:not(.settled) .c-fam { opacity: 0; }
.fam-row .lab small .peach-icon { color: var(--peach); margin-right: 3px; }

/* 延伸同玄因 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-entry { display: flex; flex-direction: column; gap: 10px; }
.ask-title { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.ask-chip { min-height: 2.25rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 0.8125rem; line-height: 1.4; text-align: left; transition: border-color .25s, color .25s; }
.ask-chip:hover, .ask-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
.ask-topic { align-self: flex-start; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text3); }
.thread { display: flex; flex-direction: column; gap: 18px; }
.bubble { align-self: flex-end; max-width: 82%; border-radius: 16px 16px 4px 16px; background: var(--sunken); border: 1px solid var(--sunken-line); padding: 12px 14px; font-size: 0.9375rem; line-height: 1.65; overflow-wrap: anywhere; }
.answer { display: flex; flex-direction: column; gap: 10px; }
.answer p { margin: 0; font-size: 1rem; line-height: 1.85; color: var(--text2); }
.answer p b { font-weight: 500; color: var(--text); }
.ask-note { border-radius: 14px; border: 1px solid var(--accent); background: var(--accent-surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.wait { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--text3); }
.wait svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ask-foot { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 24px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ask-box { display: flex; align-items: flex-end; gap: 8px; }
.ask-box textarea { flex: 1; min-height: 48px; padding: 13px 16px; border-radius: 24px; border: 1px solid var(--sunken-line); background: var(--sunken); font-size: 1rem; line-height: 1.4; resize: none; outline: none; }
.ask-box textarea:focus { border-color: var(--accent); }
.send { width: 48px; height: 48px; flex-shrink: 0; border: none; border-radius: 999px; background: var(--ink); display: grid; place-items: center; }
.send svg { stroke: var(--on-ink); }
.quota { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; color: var(--text3); padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .wait svg { animation: none; } }

.toast { position: absolute; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 10px 18px; border-radius: 999px; font-size: 0.875rem; z-index: 9; white-space: nowrap; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  #dial .idx, .status-chip.wait i { animation: none; }
  .cell, .cell > span, .c-star, .center .c-you { transition: none; }
}

/* 品牌：F2 新月。開 app 畫面蓋住成個 app（連底部選單），霧化走之後先見第一個畫面 */
:root { --serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; }
.splash { position: absolute; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: env(safe-area-inset-top, 0px) 24px env(safe-area-inset-bottom, 0px); cursor: default; }
.splash-mark { width: 116px; }
.splash-mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.splash-word { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.splash-word .zh { font-family: var(--serif); font-weight: 700; font-size: 1.875rem; letter-spacing: 0.42em; padding-left: 0.42em; line-height: 1.2; }
.splash-word .en { font-family: var(--num); font-weight: 300; font-size: 0.75rem; letter-spacing: 0.38em; padding-left: 0.38em; text-transform: uppercase; color: var(--text3); }
.splash-slogan { position: absolute; left: 0; right: 0; bottom: calc(9% + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 0.8125rem; letter-spacing: 0.24em; padding-left: 0.24em; color: var(--text3); line-height: 1.9; }
.lockup { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lockup svg.lm { width: 40px; height: 40px; flex-shrink: 0; overflow: visible; }
.lockup-text { display: flex; flex-direction: column; gap: 4px; }
.lockup .zh { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.3em; line-height: 1.2; }
.lockup .en { font-family: var(--num); font-weight: 300; font-size: 0.6875rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text3); }
.me-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px 32px; text-align: center; }
.me-brand .slogan { margin: 0; font-size: 0.8125rem; letter-spacing: 0.2em; padding-left: 0.2em; color: var(--text3); line-height: 1.8; }
.me-brand .sub { margin: 0; line-height: 1.7; }

/* 延伸（藥櫃即答）同玄因（收費答問） */
.free-tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--good-line); color: var(--good); font-size: 0.6875rem; letter-spacing: 0.08em; white-space: nowrap; }
.faq-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.faq-items li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.faq-items li + li { box-shadow: inset 0 1px 0 var(--line); }
.faq-items .t { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.faq-items .b { font-size: 0.8125rem; line-height: 1.6; color: var(--text3); }
.foot-lab { font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--text3); }
.deep-entry { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .25s var(--ease); }
.deep-entry:hover, .deep-entry:focus-visible { border-color: var(--accent); }
.deep-entry .lab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.deep-entry .lab b { font-size: 0.9375rem; font-weight: 500; }
.deep-entry .lab span { font-size: 0.8125rem; color: var(--text3); }
.deep-entry svg.chev { stroke: var(--text3); flex-shrink: 0; }
.hint-list { margin: 0; padding: 0 0 0 1.1em; display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; line-height: 1.6; color: var(--text2); }
.num { font-family: var(--num); font-weight: 500; color: var(--text); }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.note-actions .pill { min-height: 40px; font-size: 0.8125rem; letter-spacing: 0.08em; }
.note-actions .pill.go { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.clarify-opts .ask-chip.picked { border-color: var(--accent); color: var(--accent); background: var(--accent-surface); }
.clarify-opts .ask-chip:disabled { cursor: default; }
#ask-cost.free { color: var(--good); }
.nw { white-space: nowrap; }
.ask-box textarea { scrollbar-width: none; }
.ask-box textarea::-webkit-scrollbar { display: none; }
/* 玄因額度 */
.quota-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-surface); color: var(--accent); font-size: 0.8125rem; letter-spacing: 0.06em; white-space: nowrap; }
.quota-pill svg { flex-shrink: 0; }
.quota-pill.muted { border-color: var(--line); background: transparent; color: var(--text3); }
.quota-head { margin: 6px 0 0; font-size: 1.25rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.4; }
.quota-rows { margin: 0; display: flex; flex-direction: column; border-radius: 12px; background: var(--sunken); border: 1px solid var(--sunken-line); }
.quota-rows > div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.quota-rows > div + div { box-shadow: inset 0 1px 0 var(--sunken-line); }
.quota-rows dt { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); padding-top: 1px; }
.quota-rows dd { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
.quota-rules { margin: 8px 0 0; padding: 0 0 0 1.1em; display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; line-height: 1.65; color: var(--text2); }
#ask-cost { background: none; border: none; padding: 0; font: inherit; color: var(--text3); cursor: pointer; }
#ask-cost.low { color: var(--accent); }
/* 玄因 PRO：掣右上角一粒細細嘅金色字，唔用膠囊框（用家 2026-10-21） */
.deep-entry { position: relative; }
.deep-entry .pro { position: absolute; top: 8px; right: 12px; font-family: var(--num); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; line-height: 1; color: var(--accent); }
/* 返回掣淨係箭咀（用家 2026-10-21：擺明嘅嘢唔使講） */
.back { min-width: 44px; justify-content: flex-start; }

/* 會員：方案、比較表、會員卡、成功畫面 */
.plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--surface); background: var(--surface); text-align: left; transition: border-color .3s var(--ease), background .3s var(--ease); }
.plan[aria-checked="true"] { border-color: var(--accent); background: var(--accent-surface); }
.plan-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.plan-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.plan-n b, .plan-l > b { font-size: 1rem; font-weight: 500; white-space: nowrap; }
.plan .best { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; }
.plan-p { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; white-space: nowrap; }
.num-l { font-family: var(--num); font-size: 1.25rem; font-weight: 300; }
.rd { width: 18px; height: 18px; flex-shrink: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.rd i { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.plan[aria-checked="true"] .rd { box-shadow: inset 0 0 0 1px var(--accent); }
.plan[aria-checked="true"] .rd i { transform: scale(1); }
.cmp { border-radius: 14px; background: var(--surface); padding: 4px 18px; }
.cmp > div { display: grid; grid-template-columns: minmax(0, 1fr) 4.2em 5.4em; gap: 8px; align-items: center; min-height: 44px; font-size: 0.875rem; }
.cmp > div > span:first-child { line-height: 1.5; padding: 8px 0; }
.cmp > div + div { box-shadow: inset 0 1px 0 var(--line); }
.cmp .h { font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--text3); text-align: center; }
.cmp .h.m { color: var(--accent); }
.cmp .c { text-align: center; color: var(--text2); }
.cmp .c.no { color: var(--text3); }
.cmp .m { text-align: center; font-weight: 500; color: var(--accent); }
.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.legal .link { min-height: 40px; }
.pay-note { text-align: center; color: var(--text2); }
.member-card { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent-surface); text-align: left; }
.member-card .mc-t { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.04em; }
.member-card .mc-p { font-family: var(--num); font-size: 0.9375rem; color: var(--accent); white-space: nowrap; }
.paid { position: absolute; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; padding: calc(96px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.paid-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.paid-foot { display: flex; flex-direction: column; }

/* ===== 延伸 A＋C（用家 2026-10-21 定案）：目錄、文章、玄因金邊長條 ===== */
.eb { font-size: 0.8125rem; letter-spacing: 0.24em; color: var(--text3); }
.hl { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left center; pointer-events: none; }
.ext { display: flex; flex-direction: column; --xy-bg: var(--bg); }
.sheet .ext { --xy-bg: var(--surface); }
.ext-head { position: relative; padding-bottom: 12px; }
.ext-list { display: flex; flex-direction: column; }
.ext-row { position: relative; display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 0; border: none; background: transparent; text-align: left; color: var(--text); transition: background-color .25s var(--ease); }
.ext-row .n { font-family: var(--serif); font-size: 0.9375rem; color: var(--accent); opacity: 0.85; }
.ext-row .q { font-size: 1rem; line-height: 1.5; padding: 12px 0; }
.ext-row svg.chev { stroke: var(--text3); transition: transform .3s var(--ease); }
.ext-row:active svg.chev, .ext-row:hover svg.chev { transform: translateX(3px); }
.ext-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 玄因金邊長條：PRO 嵌喺框線上（底色要同所在位置一樣，先睇得出係「斷開」條線） */
.xy-bar { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 26px; padding: 0 8px 0 20px; border: none; border-radius: 999px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); text-align: left; color: var(--text); }
.xy-bar .xy-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.xy-bar .xy-trace rect { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.xy-bar .ph { flex: 1; min-width: 0; font-size: 1rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xy-bar .ph b { font-family: var(--serif); font-weight: 700; letter-spacing: 0.12em; color: var(--text); margin-right: 10px; }
.xy-bar .pro { position: absolute; top: -0.5em; right: 26px; padding: 0 6px; line-height: 1; background: var(--xy-bg, var(--bg)); font-family: var(--num); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); }
.xy-bar .go { width: 42px; height: 42px; flex-shrink: 0; border-radius: 999px; background: var(--accent); display: grid; place-items: center; }
.xy-bar .go svg { stroke: var(--on-ink); }
.xy-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.xy-dock { position: sticky; bottom: 0; z-index: 2; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent, var(--bg) 10px); --xy-bg: var(--bg); } /* 10px 之後實色：碌落去嘅字唔會透喺 PRO 字後面 */
.xy-dock .xy-bar { margin-top: 6px; }

/* 延伸答案：文章 */
.ext-doc { display: flex; flex-direction: column; }
.ext-art { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; padding-bottom: 8px; }
.ext-art.next { margin-top: 30px; padding-top: 30px; box-shadow: inset 0 1px 0 var(--line); }
.ext-h { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.45; letter-spacing: 0.04em; text-wrap: balance; }
.ext-lead { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.75; color: var(--text); }
.ext-p { margin: 0; font-size: 1rem; line-height: 1.8; color: var(--text2); }
.ext-items { display: flex; flex-direction: column; margin-top: 2px; }
.ext-item { position: relative; display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 10px; padding: 12px 0; }
.ext-item .hl { top: 0; bottom: auto; }
.ext-item .k { font-size: 0.8125rem; letter-spacing: 0.1em; padding-top: 3px; }
.ext-item .k.yi { color: var(--good); } .ext-item .k.ji { color: var(--danger); }
.ext-item .k.mk::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 999px; background: var(--accent); vertical-align: 0.3em; }
.ext-item .v b { display: block; font-weight: 500; line-height: 1.55; }
.ext-item .v small { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.6; color: var(--text3); }
.ext-more { margin-top: 34px; }
.ext-doc .wait { padding-top: 10px; padding-bottom: 10px; }

/* ===== 我的、會員方案（用家 2026-10-21 重新設計）：大數字做重點、金色＝會員 ===== */
.mem-hero { display: flex; flex-direction: column; gap: 10px; --xy-bg: var(--bg); }
.mem-big { margin: 4px 0 0; display: flex; align-items: baseline; gap: 10px; }
.mem-num { font-family: var(--serif); font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: 0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.mem-big .u, .mem-bal .u { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.12em; }
.mem-big .per { font-size: 0.9375rem; color: var(--text3); letter-spacing: 0.1em; }
.mem-hero .mem-cta { margin-top: 18px; }
.mem-bal { display: flex; align-items: baseline; gap: 10px; padding: 4px 0 0; border: none; background: transparent; color: var(--text); text-align: left; }
.mem-bal svg.chev { stroke: var(--text3); align-self: center; margin-left: 2px; }
.mem-split { font-size: 0.875rem; color: var(--text3); letter-spacing: 0.04em; }
.mem-num-s { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; }

/* 設定清單：同延伸目錄一樣嘅細線 */
.set-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0; border: none; background: transparent; text-align: left; color: var(--text); }
.set-row .l { font-size: 1rem; padding: 12px 0; }
.set-row .v { font-size: 0.9375rem; color: var(--text3); white-space: nowrap; }
.set-row svg.chev { stroke: var(--text3); }
.set-row.static { grid-template-columns: minmax(0, 1fr) auto; }
.seg.seg-s { min-width: 0; width: 13.5em; }
.seg.seg-s button { min-height: 32px; font-size: 0.8125rem; }

/* 會員方案 */
.plans-hero { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.plans-moon { width: 56px; height: 56px; margin-bottom: 10px; }
.plans-moon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.demo-tag { display: block; margin-top: 4px; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; --xy-bg: var(--bg); }
.sheet .tiles { --xy-bg: var(--surface); grid-template-columns: 1fr; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 132px; padding: 18px 16px 16px; border: none; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; color: var(--text); transition: box-shadow .35s var(--ease), background .35s var(--ease); }
.sheet .tile { background: var(--sunken); min-height: 0; }
.tile[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-surface); }
.tile-tag { position: absolute; top: -0.55em; left: 14px; padding: 0 6px; line-height: 1.1; background: var(--xy-bg, var(--bg)); font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--accent); }
.tile-n { font-size: 0.9375rem; color: var(--text2); letter-spacing: 0.06em; }
.tile-p { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.tile-note { margin-top: auto; font-size: 0.8125rem; line-height: 1.5; color: var(--text3); }
.tile[aria-checked="true"] .tile-n { color: var(--accent); }
.cta-gold { min-height: 56px; width: 100%; border: none; border-radius: 999px; background: var(--accent); color: var(--on-ink); font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; padding: 8px 18px; transition: transform .2s var(--ease), opacity .3s; }
.cta-gold:active { transform: scale(0.985); }
.cta-gold:disabled { opacity: 0.6; }
.plans-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.paid-items { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; }
.paid-items > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.paid .cta-gold { width: 100%; }

/* 執位：有日期、數字嘅小標題唔好拉闊字距；金色主掣字距收窄，價錢唔會散開；餘額箭咀貼近；成功頁置中 */
.eb.eb-t { letter-spacing: 0.06em; }
.cta-gold { letter-spacing: 0.06em; }
.mem-bal svg.chev { margin-left: -4px; }
.paid-body { justify-content: center; padding-bottom: 40px; }
/* 方案卡：細屏或者大字時唔准爆框，「／年」唔夠位就跌落下一行 */
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet .tiles { grid-template-columns: minmax(0, 1fr); }
.tile { min-width: 0; }
.tile-p { flex-wrap: wrap; white-space: normal; row-gap: 0; }
.tile-p .mem-num-s { white-space: nowrap; }

/* 術語唔准喺行尾斷開（例如「二／黑」）*/
.term { white-space: nowrap; }

/* 登入面板、帳戶頁（2026-10-21）：掣跟 Apple、Google 官方規範；新月同宋體標題沿用會員方案頁 */
.si-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 4px; }
.si-moon { width: 44px; height: 44px; display: block; }
.si-moon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.si-title { display: flex; flex-direction: column; gap: 6px; margin-top: -2px; }
.si-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.si-btn { min-height: 52px; width: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; padding: 8px 18px; transition: transform .2s var(--ease), opacity .3s; }
.si-btn:active { transform: scale(0.985); }
.si-btn:disabled { opacity: 0.6; }
.si-btn svg { flex-shrink: 0; }
.si-apple { border: none; background: var(--ink); color: var(--on-ink); }
.si-google { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.si-legal { text-align: center; }
.si-legal .link { min-height: 32px; padding: 0 2px; font-size: inherit; vertical-align: baseline; }
.acc-hero { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.set-row.danger .l { color: var(--danger); }
.acc-confirm { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.note-actions .pill.danger { background: var(--danger); color: var(--on-ink); border-color: var(--danger); }

/* 今日、通勝（第 22 步，2026-10-21）：跟原型版面，加 A＋C 細線同小標題 */
.today-date { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-top: 10px; }
.date-big { font-family: var(--num); font-size: 4.5rem; font-weight: 200; line-height: 0.9; letter-spacing: -0.03em; color: var(--text); }
.date-side { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; min-width: 0; }
.date-side .lunar { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.gz { display: flex; flex-wrap: wrap; column-gap: 0.6em; row-gap: 2px; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--text3); }
.gz > span { white-space: nowrap; }
.today-lead { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.lk { font-weight: inherit; }
.lk.yi { color: var(--good); } .lk.ji { color: var(--danger); }
.al-card { cursor: pointer; gap: 12px; position: relative; }
.al-card .ext-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; }
.al-card .ext-head svg.chev { stroke: var(--text3); flex-shrink: 0; }
.hl.rel { position: relative; display: block; }
.jc-btn { border: none; background: transparent; padding: 0; font: inherit; letter-spacing: inherit; color: var(--accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.yj-row { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 12px; align-items: start; }
.yj-b { width: 1.5rem; height: 1.5rem; border-radius: 999px; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 500; margin-top: 3px; }
.yj-b.yi { background: var(--good); color: var(--bg); }
.yj-b.ji { box-shadow: inset 0 0 0 1px var(--danger); color: var(--danger); }
.yj-words { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.yj-w { min-height: 32px; padding: 0; border: none; background: transparent; font-size: 0.9375rem; color: var(--text2); white-space: nowrap; letter-spacing: 0.02em; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--line); text-underline-offset: 5px; }
.quad { border-radius: 14px; background: var(--surface); padding: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quad > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.9375rem; font-weight: 500; text-align: center; padding: 0 2px; }
.quad > span + span { box-shadow: -1px 0 0 var(--line); }
.quad small { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); font-weight: 400; white-space: nowrap; }
.today-hours .ext-head { margin-bottom: 14px; }
.hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hours span { min-height: 52px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.9375rem; font-weight: 500; }
.hours span small { font-size: 0.8125rem; font-weight: 500; }
.hours span.good small { color: var(--good); }
.hours span.bad { background: var(--sunken); box-shadow: inset 0 0 0 1px var(--sunken-line); font-weight: 300; color: var(--text3); }
.hours span.bad small { color: var(--danger); }
.hours span.now { box-shadow: inset 0 0 0 1px var(--accent); animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px 0 var(--glow); } }
@media (prefers-reduced-motion: reduce) { .hours span.now { animation: none; } }
.fam-chong { gap: 6px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week button { min-height: 66px; padding: 6px 0; border-radius: 12px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 0.75rem; color: var(--text3); transition: border-color .3s, color .3s; min-width: 0; }
.week button span { white-space: nowrap; }
.week button b { font-family: var(--num); font-size: 1.0625rem; font-weight: 300; color: var(--text); }
.week button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.al-date { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.al-date-main { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.04em; }
.al-full { gap: 14px; }
.al-facts { display: flex; flex-direction: column; }
.al-facts > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.al-facts > div:last-child { border-bottom: 1px solid var(--line); }
.al-facts .k { color: var(--text3); font-size: 0.8125rem; letter-spacing: 0.12em; padding-top: 2px; }
.al-facts .v { color: var(--text2); }
.al-yiji { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--text2); line-height: 1.8; }
.gz-v { display: flex; flex-wrap: wrap; column-gap: 0.8em; } .gz-v > span { white-space: nowrap; }
/* 時辰 13 段（早子、丑……亥、夜子），7 格一行 */
.hours { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.hours span { min-height: 50px; padding: 0 1px; }
.hours span.zi2 { font-size: 0.75rem; letter-spacing: -0.02em; white-space: nowrap; }
.lk.term { text-decoration-color: currentColor; }

/* 命理、出生資料、生肖運程（2026-10-22）*/
.hub-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 0; border: none; background: transparent; text-align: left; color: var(--text); }
.hub-row .lab { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-row .lab b { font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.hub-row .lab small { font-size: 0.8125rem; color: var(--text3); }
.hub-row svg.chev { stroke: var(--text3); }
.hub-row .soon { font-size: 0.8125rem; color: var(--text3); white-space: nowrap; }
.hub-row.off .lab b, .hub-row.off .hub-glyph { opacity: 0.55; }
.hub-glyph { width: 42px; height: 42px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; flex-shrink: 0; }
.pf-v { white-space: normal !important; text-align: right; font-size: 0.875rem !important; }
.pf-form { display: flex; flex-direction: column; gap: 22px; }
.pf-field { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pf-field .seg { width: 100%; }
.pf-input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; padding: 0 14px; }
.pf-lunar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; }
.pf-lunar .pf-input { padding: 0 8px; }
.pf-out:empty { display: none; }
.zy-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.zy-pick button { min-height: 62px; border-radius: 12px; border: 1px solid transparent; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text2); padding: 4px 0; min-width: 0; }
.zy-pick .g { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.zy-pick small { font-size: 0.6875rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-height: 1em; }
.zy-pick button[aria-checked="true"] { border-color: var(--accent); color: var(--accent); }
.zy-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.zy-tag { color: var(--danger); font-weight: 500; white-space: nowrap; }
.pf-line { display: flex; flex-wrap: wrap; column-gap: 0.5em; }
.pf-line > span { white-space: nowrap; }
.pf-line > span:not(:last-child)::after { content: "·"; margin-left: 0.5em; color: var(--text3); }
/* 小標題下面第一行唔使再畫頂線 */
.ext-head + .ext-items > .ext-item:first-child > .hl { display: none; }

/* 八字命盤（2026-10-22）*/
.sw { width: 8px; height: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); display: inline-block; flex-shrink: 0; }
.pillars { border-radius: 14px; background: var(--surface); padding: 8px 8px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pl { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.pl-name { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); padding: 8px 0 2px; }
.pl-ss { font-size: 0.8125rem; color: var(--text2); white-space: nowrap; }
.pillars .glyph { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.pillars .glyph .ch { font-family: var(--serif); font-weight: 700; font-size: 1.875rem; line-height: 1.15; }
.pillars .glyph small { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--text3); }
.pl.day .pl-name, .pl.day .pl-ss, .pl.day .gan .ch { color: var(--accent); }
.pl.none .ch { color: var(--text3); font-weight: 300; }
.pl-hide { display: flex; flex-direction: column; gap: 2px; font-size: 0.8125rem; color: var(--text2); padding-top: 4px; border-top: 1px solid var(--line); width: 80%; align-items: center; }
.pl-hide > span { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.pl-hide small { font-size: 0.6875rem; color: var(--text3); white-space: nowrap; }
.pl-ny { font-size: 0.6875rem; color: var(--text3); white-space: nowrap; }
.wx-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wx-row { display: grid; grid-template-columns: 3em minmax(0, 1fr) 3.5em; gap: 12px; align-items: center; font-size: 0.875rem; }
.wx-row > span:first-child { display: flex; align-items: center; gap: 6px; }
.wx-bar { height: 4px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.wx-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--text); transform-origin: left center; display: block; }
.wx-row em { font-style: normal; font-family: var(--num); font-size: 0.8125rem; color: var(--text3); text-align: right; white-space: nowrap; }
.bz-meter { margin-top: 18px; }
.bz-meter .track { position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.bz-meter .zone { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; opacity: 0.55; }
.bz-meter .zone.weak { background: var(--sunken-line); }
.bz-meter .zone.strong { background: var(--sunken-line); }
.bz-meter .mark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.bz-meter .labels { display: grid; grid-template-columns: 45fr 10fr 45fr; margin-top: 8px; font-size: 0.8125rem; color: var(--text3); }
.bz-meter .labels span:nth-child(2) { text-align: center; white-space: nowrap; }
.bz-meter .labels span:last-child { text-align: right; }
.yun-line { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.yun { border-radius: 10px; background: var(--surface); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.yun .g { font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.yun small { font-size: 0.6875rem; color: var(--text3); white-space: nowrap; font-family: var(--num); }
.yun.now { box-shadow: inset 0 0 0 1px var(--accent); animation: breathe 2.8s ease-in-out infinite; }
.yun.now .g { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .yun.now { animation: none; } }
/* 八字修正：揀咗嘅分頁、納音對齊、刻度、大運四格一行 */
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 500; }
.pl-ny { margin-top: auto; padding-top: 4px; }
.bz-meter .zone { display: none; }
.bz-meter .tick { position: absolute; top: -5px; width: 1px; height: 16px; background: var(--text3); opacity: 0.6; }
.yun-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.yun { padding: 10px 2px; gap: 4px; }
.yun .g { font-size: 1.25rem; letter-spacing: 0.06em; }
.yun small { font-size: 0.75rem; }
.sw.sw-w { box-shadow: inset 0 0 0 1px var(--text3); }
/* 八字解讀（2026-10-22）*/
.bz-sec { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.bz-sec .ext-head { margin-bottom: 4px; }
.bz-god { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.bz-god + .bz-god { margin-top: 12px; }
.bz-h { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; color: var(--accent); }
.bz-sec .ext-item .k { white-space: nowrap; }
.bz-sec .ext-item { grid-template-columns: 4.2em minmax(0, 1fr); }
.bz-how { padding: 0; min-height: 36px; }
.bz-method { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; line-height: 1.75; color: var(--text2); }
.bz-sec .ext-item .v { font-size: 0.9375rem; line-height: 1.7; color: var(--text2); } .bz-sec .ext-item .k { color: var(--text3); }
/* 星座（2026-10-22）*/
.sg-pick .g { font-size: 1.0625rem; letter-spacing: 0.04em; }
.sg-note { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--text3); }
.sg-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-pick .g { white-space: nowrap; }
.sg-sec .ext-item { grid-template-columns: 4.2em minmax(0, 1fr); }
.sg-sec .ext-item .k { white-space: nowrap; color: var(--text3); }
.sg-sec .ext-item .v { font-size: 0.9375rem; line-height: 1.7; color: var(--text2); }
/* 16 型人格（2026-10-22）*/
.ty-top { display: flex; align-items: center; justify-content: space-between; }
.ty-count { font-size: 0.875rem; color: var(--text3); font-weight: 400; }
.ty-progress { height: 2px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.ty-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transition: width .5s var(--ease); }
.ty-text { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.55; letter-spacing: 0.03em; text-wrap: balance; }
.ty-opts { display: flex; flex-direction: column; gap: 12px; }
.ty-opt { min-height: 64px; width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 1.0625rem; line-height: 1.5; text-align: left; padding: 14px 20px; transition: border-color .25s, background .25s; }
.ty-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ty-dims { display: flex; flex-direction: column; gap: 20px; }
.ty-dims .ext-head { margin-bottom: -4px; }
.ty-dim { display: flex; flex-direction: column; gap: 8px; }
.ty-dim-head .ty-lean { font-size: 0.875rem; color: var(--text2); }
.ty-bar { position: relative; display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.ty-bar i { display: block; height: 100%; }
.ty-bar i.l { background: var(--text); transform-origin: right center; }
.ty-bar i.r { background: var(--text3); opacity: 0.55; transform-origin: left center; }
.ty-bar .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--bg); }
.ty-dim-foot { font-size: 0.8125rem; color: var(--text3); }
.ty-dim-foot .num { font-weight: 500; color: var(--text2); }
.ty-items .ext-item { grid-template-columns: 4.2em minmax(0, 1fr); }
.ty-items .ext-item .k { white-space: nowrap; color: var(--text3); }
.ty-items .ext-item .v { font-size: 0.9375rem; line-height: 1.7; color: var(--text2); }
/* 面向條：贏嗰邊實色，輸嗰邊淡；打和兩邊一樣 */
.ty-bar i.l, .ty-bar i.r { background: var(--sunken-line); opacity: 1; }
.ty-bar.win-l i.l, .ty-bar.win-r i.r { background: var(--text); }
.ty-bar.even i.l, .ty-bar.even i.r { background: var(--text3); }
.ty-lean b { font-weight: 500; color: var(--text); }

/* 紫微命盤（2026-10-22，跟原型）*/
.zw { word-break: keep-all; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(96px, auto)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.zw-cell { background: var(--surface); padding: 6px 5px; border: none; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; min-width: 0; font: inherit; font-size: 0.8125rem; text-align: left; color: var(--text); }
.zw .pn { display: flex; justify-content: space-between; font-weight: 500; }
.zw .body-mk { font-weight: 400; color: var(--accent); }
.zw .ms, .zw .mn { display: flex; flex-wrap: wrap; gap: 0 4px; }
.zs { white-space: nowrap; }
.zw .ms .zs { font-weight: 500; }
.zw .ms .zs.empty { color: var(--text3); font-weight: 400; }
.zs small { font-size: 0.8125rem; font-weight: 400; color: var(--text3); }
.zw .mn .zs { color: var(--text3); }
.mut { color: var(--accent); font-weight: 500; } .mut.ji { color: var(--danger); }
.zw .ft { display: flex; flex-wrap: wrap; gap: 0 4px; justify-content: space-between; color: var(--text3); font-family: var(--num); }
.zw .ft .now { color: var(--accent); font-weight: 500; }
.zw .ming { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-surface); }
.zw .ming .pn { color: var(--accent); }
.zw .ctr { grid-row: 2 / 4; grid-column: 2 / 4; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px 6px; }
.zw .ctr .pf-line { justify-content: center; }
.ctr-name { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.1em; }
.ctr-line { width: 24px; height: 1px; background: var(--line); margin: 4px 0; display: block; }
.ctr-ju { font-size: 0.875rem; color: var(--text2); }
.zw-legend { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 0.8125rem; color: var(--text3); word-break: keep-all; }
.zw-mut .ext-item, .zw-sheet .ext-item { grid-template-columns: 4.2em minmax(0, 1fr); }
.zw-mut .ext-item .k, .zw-sheet .ext-item .k { white-space: nowrap; color: var(--text3); }
.zw-mut .ext-item .v, .zw-sheet .ext-item .v { font-size: 0.9375rem; line-height: 1.7; color: var(--text2); display: flex; flex-wrap: wrap; gap: 0 8px; }
.zw-sheet .zs small { margin-left: 1px; }
/* 紫微修正：格仔由上排落，干支大限貼底；面板亮度同星名同一行 */
.zw-cell { justify-content: flex-start; gap: 2px; }
.zw .ms { margin-top: 2px; }
.zw .ft { margin-top: auto; padding-top: 4px; }
.zw-sheet .zs small { display: inline; margin: 0 0 0 1px; font-size: 0.8125rem; }
.nw { white-space: nowrap; }
.bz-h .zw-b { margin-left: 6px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 400; color: var(--text3); letter-spacing: 0.04em; }
.zw-mut .ext-item .v { display: block; }
.zw-mut .ext-item .v b { font-weight: 500; color: var(--text); }

/* ===== 條款、私隱政策（第 21 步，2026-10-22）：同延伸文章一樣；每段頂一條細線，碌到先畫出 ===== */
.lg-art { gap: 16px; padding-bottom: 12px; }
.lg-sec { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; margin-top: 2px; }
.lg-sec > .hl { top: 0; bottom: auto; }
.lg-sec.pre > * { opacity: 0; }
.lg-h { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.02em; color: var(--text); text-wrap: balance; }
.lg-li { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lg-li li { position: relative; padding-left: 16px; font-size: 1rem; line-height: 1.8; color: var(--text2); }
.lg-li li::before { content: ""; position: absolute; left: 2px; top: 0.82em; width: 4px; height: 4px; border-radius: 999px; background: var(--accent); }
.lg-contact .ext-p { color: var(--text); }
.lg-date { margin-top: 6px; }
.sheet.lg-sheet { gap: 10px; max-height: 92%; }
.lg-sheet-head { display: flex; justify-content: flex-end; margin-bottom: -10px; }
/* 玄因 PRO 傳送資料前嘅同意 */
.cs-head { display: flex; align-items: center; justify-content: space-between; }
.cs-title { margin-top: -6px; }
.cs-foot { display: flex; }
.cs-foot .link { min-height: 36px; padding: 0; }
.cs-actions { justify-content: flex-end; margin-top: 2px; }
/* 解答底：回報（Google Play 規定人工智能內容要可以喺 app 內回報） */
.ans-foot { display: flex; justify-content: flex-end; }
.ans-foot .link { min-height: 32px; padding: 0 2px; font-size: 0.8125rem; color: var(--text3); }
.cs-items .ext-item { grid-template-columns: 10px minmax(0, 1fr); gap: 12px; }
.cs-items .ext-item .v b { font-weight: 400; color: var(--text); }

/* ===== 擇日（2026-10-22）：十二件事三欄細框、月份橫排、避沖、月曆（適合綠字細點、較佳綠圈、揀咗銅圈）、日子清單 ===== */
.zr-head { display: flex; flex-direction: column; gap: 8px; }
.zr-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zr-ev { min-height: 58px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); font-size: 0.9375rem; line-height: 1.35; letter-spacing: 0.04em; text-align: center; display: flex; align-items: center; justify-content: center; transition: border-color .35s, color .35s; }
.zr-ev[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.zr-months { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 26px; padding: 2px 24px 4px; scroll-padding-inline: 24px; }
.zr-months::-webkit-scrollbar { display: none; }
.zr-month { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text2); font-size: 0.875rem; white-space: nowrap; transition: border-color .3s, color .3s; }
.zr-month small { margin-right: 6px; font-size: 0.75rem; color: var(--text3); }
.zr-month[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.zr-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zr-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text3); font-size: 0.8125rem; white-space: nowrap; transition: border-color .3s, color .3s; }
.zr-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.zr-chip.add { border-style: dashed; color: var(--text3); }
.zr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.zr-wd { text-align: center; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text3); padding-bottom: 8px; }
.zr-day { position: relative; aspect-ratio: 1 / 1; max-width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 999px; background: transparent; color: var(--text3); font-size: 0.9375rem; font-variant-numeric: tabular-nums; transition: box-shadow .3s; }
.zr-day.blank { pointer-events: none; }
.zr-day.past { opacity: 0.35; }
.zr-day.ok, .zr-day.better { color: var(--good); font-weight: 500; }
.zr-day .dot { position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 999px; background: var(--good); }
.zr-day .ring { position: absolute; inset: 10%; border: 1px solid var(--good); border-radius: 999px; pointer-events: none; }
.zr-day.today .n { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--text3); }
.zr-day.sel { box-shadow: inset 0 0 0 1.5px var(--accent); }
.zr-note { margin-top: 12px; }
.zr-note:empty { display: none; }
.zr-note b { font-weight: 500; color: var(--text); }
.zr-row { position: relative; display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 0; border: none; background: transparent; text-align: left; color: var(--text); }
.zr-row .hl { top: 0; bottom: auto; }
.zr-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.zr-date b { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.zr-date small, .zr-info small { font-size: 0.75rem; color: var(--text3); }
.zr-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 0.9375rem; }
.zr-row svg.chev { stroke: var(--text3); }
.zr-list + .bz-how { margin-top: 14px; }

/* ===== 塔羅（2026-10-22，方向一「線刻符印」）：新月牌背、銅色細線牌面、扇形攤開、飛入、翻牌、細線畫出；解讀用延伸文章格式 ===== */
.tr { --back: #23211D; --back-edge: #3A362E; --back-line: #C9A962; --back-dim: rgba(201, 169, 98, 0.42); --face: #FFFFFF; --face-edge: #D9D4CA; --shade: rgba(40, 32, 18, 0.55); --card-shadow: 0 10px 22px -14px var(--shade); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tr { --back: #191816; --back-edge: #34312B; --back-dim: rgba(201, 169, 98, 0.38); --face: #1C1C1C; --face-edge: #34312B; --shade: rgba(0, 0, 0, 0.9); }
}
:root[data-theme="dark"] .tr { --back: #191816; --back-edge: #34312B; --back-dim: rgba(201, 169, 98, 0.38); --face: #1C1C1C; --face-edge: #34312B; --shade: rgba(0, 0, 0, 0.9); }
.tr.lock { overflow: hidden; }
.tr-head { display: flex; flex-direction: column; gap: 8px; }
/* 線長當 1：虛線「1 實 2 空」，畫線由 1.05 移到 0；butt 收尾，開頭唔會喺每條線起點見到一粒點 */
.tr .ln { stroke-dasharray: 1 2; stroke-dashoffset: 0; stroke-linecap: butt; }
.tr .sp { transform-box: fill-box; transform-origin: center; }
.tr .emb, .tr-suit .emb { fill: none; stroke: var(--accent); stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.tr .emb .faint, .tr-suit .emb .faint { stroke-opacity: 0.45; }
.tr-mini svg, .tr-card svg, .tr-deck .dk svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 牌陣頁：三張牌背扇開，中間嗰張二十四山刻度慢轉 */
.tr-hero { position: relative; height: 158px; margin-top: 22px; }
.tr-mini { position: absolute; left: 50%; top: 14px; width: 80px; height: 133px; margin-left: -40px; transform-origin: 50% 115%; }
.tr-mini.m1 { z-index: 1; }
.tr-mini .tr-back { position: absolute; inset: 0; border-radius: 6px; background: var(--back); box-shadow: inset 0 0 0 1px var(--back-edge), var(--card-shadow); }
.tr-hero .m1 .tk { transform-box: fill-box; transform-origin: center; animation: tr-spin 240s linear infinite; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-body { margin-top: 18px; }
.tr-sp .q { display: flex; flex-direction: column; gap: 3px; }
.tr-sp .q b { font-weight: 500; }
.tr-sp .q small { font-size: 0.8125rem; line-height: 1.5; color: var(--text3); }
.tr-dot { display: inline-block; width: 4px; height: 4px; border-radius: 999px; background: var(--accent); vertical-align: 0.3em; }
.tr-recent { margin-top: 30px; }
.tr-body > .bz-how, .tr-foot .bz-how { margin-top: 14px; }
/* 抽牌：牌位、牌疊、扇形 */
.tr-stage { position: relative; flex-shrink: 0; margin-top: 12px; }
.tr-row { position: absolute; left: 0; right: 0; top: 12px; display: flex; justify-content: center; gap: 12px; transform-origin: 50% 0; }
.tr-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; width: var(--cw); }
.tr-box { position: relative; width: var(--cw); height: calc(var(--cw) * 5 / 3); }
.tr-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tr-outline rect { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 1 2; stroke-dashoffset: 0; transition: stroke .4s var(--ease); }
.tr-slot.cur .tr-outline rect { stroke: var(--accent); }
.tr-cap { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 2.9em; text-align: center; }
.tr-cap .pos, .tr-cap .ori { font-size: 0.8125rem; letter-spacing: 0.2em; padding-left: 0.2em; white-space: nowrap; }
.tr-cap .pos { color: var(--text3); }
.tr-cap .ori { color: var(--text2); }
.tr-deck { position: absolute; left: calc(50% - var(--dw) / 2); width: var(--dw); height: calc(var(--dw) * 5 / 3); }
.tr-deck .dk { position: absolute; inset: 0; border-radius: 6px; background: var(--back); box-shadow: inset 0 0 0 1px var(--back-edge), var(--card-shadow); transform: translate(calc((6 - var(--i)) * 0.8px), calc((6 - var(--i)) * 1.2px)); }
.tr-fan { position: absolute; inset: 0; visibility: hidden; }
.tr-fan.on { visibility: visible; }
.tr-fan .fc { position: absolute; left: calc(var(--px) - var(--fw) / 2); top: calc(var(--py) - var(--fh) / 2); width: var(--fw); height: var(--fh); padding: 0; border: none; border-radius: 4px; background: var(--back) var(--glyph) 50% 50% / 64% auto no-repeat; box-shadow: inset 0 0 0 1px var(--back-edge), inset 0 0 0 3.5px var(--back), inset 0 0 0 4.2px var(--back-dim); }
.tr-fan .fc.sel { box-shadow: 0 0 0 1px var(--back-line), inset 0 0 0 3.5px var(--back), inset 0 0 0 4.2px var(--back-dim); }
.tr-fan .fc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tr-cta { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 4; }
/* 牌：背面新月、正面銅線符印；逆位成張轉 180° */
.tr-card { position: absolute; inset: 0; perspective: 1000px; container-type: inline-size; }
.tr-card .card-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.tr-card .card-in.flipped { transform: rotateY(180deg); }
.tr-card .tr-back, .tr-card .tr-face { position: absolute; inset: 0; border-radius: 7px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tr-card .tr-back { background: var(--back); box-shadow: inset 0 0 0 1px var(--back-edge), var(--card-shadow); }
.tr-card .tr-face { background: var(--face); box-shadow: inset 0 0 0 1px var(--face-edge), var(--card-shadow); transform: rotateY(180deg); }
.tr-card .tr-face.rev { transform: rotateY(180deg) rotate(180deg); box-shadow: inset 0 0 0 1px var(--face-edge), 0 -10px 22px -14px var(--shade); }
.tr-card .f-num { position: absolute; top: 5.5%; left: 0; right: 0; text-align: center; font-family: var(--num); font-weight: 300; font-size: 8.5cqw; line-height: 1.2; letter-spacing: 0.25em; padding-left: 0.25em; color: var(--accent); }
.tr-card .f-name { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 12cqw; line-height: 1.2; letter-spacing: 0.12em; padding-left: 0.12em; color: var(--text); white-space: nowrap; }
/* 解讀：延伸文章格式，每個牌位一段 */
.tr-read { display: flex; flex-direction: column; padding: 0 24px; }
.tr-rd { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 0 22px; }
.tr-rd > .hl { top: 0; bottom: auto; }
.tr-rd .eb .nz { font-style: normal; font-family: var(--serif); color: var(--accent); letter-spacing: 0; margin-right: 1em; }
.tr-name { margin: 2px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-weight: 400; font-size: inherit; }
.tr-name b { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; line-height: 1.4; letter-spacing: 0.06em; }
.tr-name small { font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--text3); }
.tr-kw { margin: -6px 0 2px; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--text3); }
.tr-rd .ext-items { margin-top: 0; }
.tr-rd .ext-item { grid-template-columns: 0.9em minmax(0, 1fr); gap: 8px; padding: 2px 0 0; }
.tr-rd .ext-item .v b { font-weight: 400; }
.tr-img span { margin-right: 0.8em; letter-spacing: 0.12em; }
.tr-foot { padding-bottom: 8px; }
.tr-suit { width: 1.375rem; height: 1.375rem; display: block; margin-top: 1px; }
.tr-suits .ext-item { grid-template-columns: 2.2em minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) { .tr-hero .m1 .tk { animation: none; } }
