/* FateTips V3 · onboarding reveal extras (js/ob-reveal-extra.js, 2026-09-27): the 籤詩 slip, the 日元 stem card,
   喜忌 and the 解籤 view. Same paper, ink, WenKai Light + Satoshi and hairline sections as the 命書; no rims, no new
   card surfaces; entries use the step's 560ms zen reveal (JS). */

/* The shared stem card (five-elements.css) reads V2 tokens: map them to this page's. Horizontal swipes reach the
   page-turn gesture; vertical scrolling and pinch zoom stay native. */
.ob-reveal {
  --text-strong: var(--ink); --text-body: var(--ink-2); --text-muted: var(--ink-2); --text-faint: var(--ink-3);
  --line-soft: var(--line); --r-md: var(--radius-sm); --font-latin: var(--font-ui);
  --fate-seal: var(--seal); --fate-jade: var(--jade); --fate-paper: var(--paper-bright);
  touch-action: pan-y pinch-zoom;
}

/* ── 籤詩: a vertical temple slip beside the ring. Number column first (rightmost), then four seven-character lines. */
.ob-qian { justify-self: center; margin: 0; writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 300; color: var(--ink); }
.ob-qian__no { margin: 0 0 0 14px; font-size: 12.5px; line-height: 1; letter-spacing: .3em; color: var(--seal); }
/* 籤號 in its own column; 日元 · 格局 share the next, so a 3-digit 籤號 never runs past the seven-character lines */
.ob-qian__no > :first-child { display: block; margin-left: 7px; }
.ob-qian__dm, .ob-qian__gj { color: var(--ink-2); }
.ob-qian__gj { margin-top: .9em; }
.ob-qian__l { margin: 0 0 0 12px; font-size: 18px; line-height: 1; letter-spacing: .3em; }
.ob-qian__l:last-child { margin-left: 0; }
/* the columns ink in, one after another, once the scroll has opened */
.ob-card:not(.is-done) .ob-qian > * { opacity: 0; }
.ob-card.is-done .ob-qian > * { animation: ob-seep 1100ms cubic-bezier(.25, .46, .45, .94) both; }
.ob-qian > :nth-child(2) { animation-delay: 260ms !important; }
.ob-qian > :nth-child(3) { animation-delay: 520ms !important; }
.ob-qian > :nth-child(4) { animation-delay: 780ms !important; }
.ob-qian > :nth-child(5) { animation-delay: 1040ms !important; }
@media (max-width: 399px) {
  .ob-qian__l { font-size: 16px; margin-left: 9px; }
  .ob-qian__no { font-size: 11.5px; margin-left: 10px; }
}
/* the archetype name now heads its one-line gloss, under the slip */
.ob-card > .ob-card__archname { margin-top: 18px; }
.ob-card > .ob-card__archname + .ob-card__archline { margin-top: 4px; }

/* ── 日元: the Today stem card, flat on the 命書 paper (the scroll's unroll is its entrance) */
.ob-card__stem .wx-stemcard { padding: 0; animation: none; }
.ob-card__stem .wx-stemcard__top { justify-content: flex-start; min-height: 0; margin-bottom: 12px; }
.ob-card__stem .wx-stemcard__note { display: none; } /* the card foot already says 示範解讀，待大師審閱 */

/* ── 喜忌 */
.ob-xj__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ob-xj__title .t-micro { margin: 0; font-weight: 400; }
.ob-xj__method { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); }
.ob-xj__row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.ob-xj__row + .ob-xj__row { margin-top: 18px; }
.ob-xj__mark { font-family: var(--font-display); font-size: 22px; font-weight: 300; line-height: 1.15; text-align: center; color: var(--jade); }
.ob-xj__row.is-ji .ob-xj__mark { color: var(--ink-2); }
.ob-xj__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ob-xj__k { font-size: 13px; letter-spacing: .06em; color: var(--ink-2); }
/* 合參 can name up to four elements: the chips wrap inside the column instead of running past the card */
.ob-xj__body { min-width: 0; }
.ob-xj__els { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.ob-xj__el { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 17px; font-weight: 400; line-height: 1.3; color: var(--ink); }
.ob-xj__el::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ob-xj__why { margin-top: 6px; font-family: var(--font-display); font-size: 15.5px; font-weight: 300; line-height: 1.6; letter-spacing: .02em; color: var(--ink); text-wrap: balance; }
.ob-xj__do { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
:lang(en) .ob-xj__why { letter-spacing: 0; font-size: 16px; line-height: 1.45; }

/* ── 解籤: a paper slip in the 命書's material, one hairline section per line of the poem */
.ob-qian-next { margin-bottom: 2px; }
/* 看解籤 inside the 命書, right under the ring + slip it opens (L 2026-09-27) */
.ob-card .ob-qian-next { margin: 10px 0 2px; }
.ob-jq__tiep { display: block; }
.ob-jq__tiep + .ob-jq__tiep { margin-top: 6px; }
.ob-jq { display: grid; gap: 22px; }
.ob-jq .ob-card { will-change: auto; }
.ob-jq__who { margin-top: 14px; font-size: 13px; line-height: 1.5; letter-spacing: .04em; color: var(--ink-2); }
.ob-jq__lines { list-style: none; margin: 16px 0 0; padding: 0; }
.ob-jq__line { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 16px 0 18px; border-top: 1px solid var(--line); }
.ob-jq__k { font-family: var(--font-display); font-size: 15px; font-weight: 400; line-height: 1.75; color: var(--seal); }
.ob-jq__verse { font-family: var(--font-display); font-size: 19px; font-weight: 300; line-height: 1.45; letter-spacing: .14em; color: var(--ink); }
.ob-jq__plain { margin-top: 6px; font-family: var(--font-display); font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--ink); text-wrap: balance; }
.ob-jq__tie { margin-top: 10px; font-family: var(--font-display); font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--ink); text-wrap: balance; }
:lang(en) .ob-jq__tie { font-size: 15.5px; line-height: 1.5; }
.ob-jq__tiek { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--jade); }
.ob-jq__basis { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .ob-qian > *, .ob-card.is-done .ob-qian > * { animation: none !important; opacity: 1 !important; }
}

/* 你的命數（L 2026-09-30）：四小節，每節一個小標與幾行說明，同喜忌的字級 */
.ob-life__b + .ob-life__b { margin-top: 18px; }
.ob-life__h { margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; font-weight: 400; letter-spacing: .04em; color: var(--ink); }
.ob-life__p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.ob-life__p + .ob-life__p { margin-top: 6px; }
:lang(en) .ob-life__h { letter-spacing: 0; }
