/* Lab 8 design system. Loaded after styles.css on every page so that the same component looks the same everywhere.
   The look stays "temple": rice paper, ink, one vermilion accent. What this file settles:
   - colour roles: vermilion only for the main action, links and emphasis; one hairline colour for every border
   - corners: cards and panels 10px, buttons and fields 8px, tags as pills
   - cards: a hairline and a soft shadow, no inner double frame
   - buttons: two kinds (solid vermilion, hairline outline), one height, letter-spacing by language
   - type: three heading sizes (page, section, card) and one body size; English gets its own spacing
   - spacing on a 4px grid
   Selectors start with :root so they win over the older ".temple ..." theme rules of the same weight. */

:root {
  --ds-paper: #efe9dd;
  --ds-card: #fbf8f2;
  --ds-card-2: #f6f1e7;
  --ds-ink: #2b2722;
  --ds-ink-2: #5d554b;
  --ds-ink-3: #8a8174;
  --ds-line: rgba(74, 52, 38, .16);
  --ds-line-2: rgba(74, 52, 38, .09);
  --ds-red: #a8402e;
  --ds-red-dark: #8f3424;
  --ds-red-soft: rgba(168, 64, 46, .08);
  --ds-green: #2e7a4b;
  --ds-r-card: 10px;
  --ds-r-ctl: 8px;
  --ds-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 26px -18px rgba(60, 38, 20, .45);
  --ds-shadow-lift: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 16px 32px -20px rgba(60, 38, 20, .55);
  --ds-h-page: clamp(28px, 6.4vw, 40px);
  --ds-h-sec: clamp(22px, 4.8vw, 30px);
  --ds-h-card: 19px;
  --ds-body: 16px;
  --ds-small: 13.5px;
}

/* ---------- cards and panels ---------- */
:root .panel, :root .pkg, :root .play-card, :root .el-intro, :root .cycle, :root .lb-inner, :root .install-bar, :root .daily-box, :root .dr-ask-card, :root .acc-plan, :root .daily:not(main) {
  background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-r-card); box-shadow: var(--ds-shadow);
}
:root .panel::before, :root .panel::after { display: none; }
:root .play-card:hover, :root .pkg:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-lift); }
/* inner boxes inside cards: a lighter tint, same corners */
:root .bk-quote, :root .today-notes, :root .order-meta, :root .track-card, :root .month-detail, :root .bk-list li, :root .rel-list li, :root .sum-facts, :root .dm-facts, :root .bk-orig, :root .bk-match {
  border-radius: var(--ds-r-ctl); border-color: var(--ds-line);
}
:root .bk-quote { background: var(--ds-card-2); border-left: 3px solid #b08a3c; }

/* ---------- buttons ---------- */
:root .btn-primary, :root .btn-gold, :root .btn-ghost, :root .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--ds-r-ctl); font: 600 15px/1.2 var(--f-body); letter-spacing: .14em; text-decoration: none; text-shadow: none;
  box-shadow: none; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer;
}
:root .btn-primary, :root .btn-gold { background: var(--ds-red); color: #fbf6ee; border: 1px solid var(--ds-red); }
:root .btn-primary:hover, :root .btn-gold:hover { background: var(--ds-red-dark); border-color: var(--ds-red-dark); transform: none; filter: none; }
:root .btn-ghost, :root .btn-line { background: transparent; color: var(--ds-ink); border: 1px solid rgba(43, 39, 34, .45); }
:root .btn-ghost:hover, :root .btn-line:hover { background: rgba(43, 39, 34, .06); color: var(--ds-ink); border-color: var(--ds-ink); transform: none; }
:root .btn-primary:active, :root .btn-gold:active, :root .btn-ghost:active, :root .btn-line:active { transform: translateY(1px); box-shadow: none; }
:root .btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
:root:is(:lang(en), :lang(fr)) .btn-primary, :root:is(:lang(en), :lang(fr)) .btn-gold, :root:is(:lang(en), :lang(fr)) .btn-ghost, :root:is(:lang(en), :lang(fr)) .btn-line,
:root .btn-primary:is(:lang(en), :lang(fr)), :root .btn-gold:is(:lang(en), :lang(fr)), :root .btn-ghost:is(:lang(en), :lang(fr)), :root .btn-line:is(:lang(en), :lang(fr)) { letter-spacing: .03em; font-size: 15.5px; }
/* text links */
:root .zoom-link { color: var(--ds-red); text-decoration: underline; text-decoration-color: rgba(168, 64, 46, .35); text-underline-offset: 3px; }
:root .zoom-link:hover { text-decoration-color: var(--ds-red); }

/* ---------- tags ---------- */
:root .play-tag, :root .pc-tag, :root .play-kind, :root .tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 0; border-radius: 999px;
  background: var(--ds-red-soft); color: var(--ds-red); font-size: 12.5px; letter-spacing: .08em; line-height: 1;
}

/* ---------- fields ---------- */
:root input[type=text], :root input[type=number], :root input[type=email], :root input[type=date], :root input[type=time], :root input[type=search], :root select, :root textarea {
  min-height: 48px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-line); background-color: #fffdf8; color: var(--ds-ink); box-shadow: none;
}
:root input:focus, :root select:focus, :root textarea:focus { outline: 2px solid rgba(168, 64, 46, .35); outline-offset: 1px; border-color: var(--ds-red); }
:root .seg { padding: 4px; gap: 4px; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: var(--ds-card-2); box-shadow: none; }
:root .seg span { min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--ds-r-ctl); color: var(--ds-ink-2); }
:root .seg input:checked + span { background: var(--ds-red); color: #fbf6ee; box-shadow: 0 4px 10px -6px rgba(143, 52, 36, .6); }

/* ---------- headings ---------- */
/* page title on sub-pages */
:root .th-title, :root .fun-page h1, :root main > .wrap > h1 { font: 500 var(--ds-h-page)/1.2 var(--f-body); letter-spacing: .08em; color: var(--ds-ink); text-shadow: none; }
:root:is(:lang(en), :lang(fr)) .th-title, :root:is(:lang(en), :lang(fr)) .fun-page h1, :root:is(:lang(en), :lang(fr)) main > .wrap > h1 { font-family: var(--f-display); letter-spacing: .005em; font-weight: 600; }
/* section title */
:root .sec-head h2, :root .play .sec-head h2, :root .stems .sec-head h2, :root .readings > .wrap > .sec-head h2, :root .panel-title {
  font-family: var(--f-body); font-weight: 600; letter-spacing: .08em; color: var(--ds-ink); text-shadow: none;
}
:root .sec-head h2, :root .play .sec-head h2, :root .stems .sec-head h2, :root .readings > .wrap > .sec-head h2 { font-size: var(--ds-h-sec); }
:root .panel-title { font-size: 21px; }
:root:is(:lang(en), :lang(fr)) .sec-head h2, :root:is(:lang(en), :lang(fr)) .panel-title { font-family: var(--f-display); letter-spacing: .005em; font-weight: 600; }
:root:is(:lang(en), :lang(fr)) .sec-head h2 { font-size: calc(var(--ds-h-sec) + 4px); }
:root:is(:lang(en), :lang(fr)) .panel-title { font-size: 24px; }
/* card title */
:root .play-text strong, :root .pkg h3, :root .daily-box h2 { font: 600 var(--ds-h-card)/1.35 var(--f-body); letter-spacing: .04em; color: var(--ds-ink); }
:root:is(:lang(en), :lang(fr)) .play-text strong, :root:is(:lang(en), :lang(fr)) .pkg h3 { font-family: var(--f-display); font-size: 21px; letter-spacing: 0; }
/* eyebrow and lede */
:root .eyebrow { color: var(--ds-red); letter-spacing: .24em; font-size: 13px; }
:root:is(:lang(en), :lang(fr)) .eyebrow { letter-spacing: .14em; }
:root .lede { color: var(--ds-ink-2); font-size: var(--ds-body); line-height: 1.8; }
:root .crumbs { font-size: 13px; letter-spacing: .06em; color: var(--ds-ink-3); }

/* ---------- card thumbnails: no heavy dark frames anywhere ---------- */
:root .play-art, :root .temple .play-art { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ds-line), 0 6px 16px -12px rgba(60, 38, 20, .4) !important; outline: 0 !important; overflow: hidden; }

/* ---------- back button: a quiet pill ---------- */
:root .back-link { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px 0 10px; border: 1px solid var(--ds-line); border-radius: 999px; background: rgba(251, 248, 242, .8); color: var(--ds-ink-2); font-size: 14px; text-decoration: none; box-shadow: none; }

/* ---------- spacing ---------- */
:root .panel { padding-left: 20px; padding-right: 20px; }
@media (min-width: 761px) { :root .panel { padding-left: 28px; padding-right: 28px; } }
:root .play-grid, :root .dr-acts { gap: 12px; }

/* header controls: language and sign-in share one pill shape */
:root .acct-btn, :root .temple .acct-btn { border-radius: 999px; height: 32px; padding: 0 14px; border: 1px solid rgba(246, 239, 226, .55); letter-spacing: .06em; }
:root .site-head .acct-btn, :root .site-nav .acct-btn { border-radius: 999px; }
/* the drawn slip: one fine vermilion line instead of the heavy double rule */
:root .dr-slip { background: #fbf6ec; border: 1px solid rgba(168, 64, 46, .45); border-radius: var(--ds-r-card); box-shadow: var(--ds-shadow), inset 0 0 0 5px #fbf6ec, inset 0 0 0 6px rgba(168, 64, 46, .18); }

/* ---------- sub-page header: back pill, breadcrumb, title, one-line intro, all centred ---------- */
:root .fun-page .crumbs, :root .game .crumbs, :root .theater .crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; text-align: center; }
:root .fun-page .th-title, :root .fun-page .wrap > .lede, :root .fun-page .cal-lede { text-align: center; margin-left: auto; margin-right: auto; }
:root .fun-page .wrap > .lede, :root .fun-page .cal-lede { max-width: 34em; text-align: center; }
:root .fun-page .th-title { margin-top: 6px; margin-bottom: 10px; }
:root .fun-page.legal h1 { text-align: center; }
@media (max-width: 760px) {
  :root .game .th-title, :root .theater .th-side > .th-title, :root .theater .th-side > .lede { text-align: center; }
  :root .game .gm-intro > .lede { text-align: left; }
}
/* every page title in Chinese uses the same calm serif, not the brush face */
:root:lang(zh) .th-title { font: 600 var(--ds-h-page)/1.25 var(--f-body); letter-spacing: .1em; }

/* ---------- score chips (merge game): light cards, not dark blocks ---------- */
:root .mg-chips span { min-width: 76px; padding: 6px 12px; background: var(--ds-card-2); color: var(--ds-ink); border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); text-align: center; }
:root .mg-chips small { color: var(--ds-ink-3); opacity: 1; }
:root .mg-chips b { color: var(--ds-red); }

/* ---------- tab switchers: one segmented control ---------- */
:root .tm-tabs { gap: 6px; padding: 5px; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: var(--ds-card-2); }
:root .tm-tabs button { min-height: 42px; border: 0; border-radius: var(--ds-r-ctl); background: transparent; color: var(--ds-ink-2); font: 500 15px/1.2 var(--f-body); letter-spacing: .08em; }
:root .tm-tabs button.is-on { background: var(--ds-red); color: #fbf6ee; box-shadow: 0 4px 10px -6px rgba(143, 52, 36, .6); }
:root:is(:lang(en), :lang(fr)) .tm-tabs button { letter-spacing: .01em; }

/* ---------- small fixes found in the page pass ---------- */
:root .lede, :root .cal-lede, :root .sec-head p { text-wrap-style: var(--tw-pretty, pretty); }
:root .fun-page .wrap > .lede, :root .fun-page .cal-lede { text-wrap-style: balance; }
:root .cal-day { border-radius: 6px; }
:root .mg-board { border-radius: var(--ds-r-card); background: #c3b296; }
:root .mg-board > i, :root .mg-board .mg-tile { border-radius: 6px; }
:root .cal-day.is-sel { border-color: var(--ds-red); box-shadow: 0 0 0 1px var(--ds-red) inset; }
/* no lonely last characters in body text */
:root main p, :root main li { text-wrap-style: var(--tw-pretty, pretty); }
:root .rtabs { gap: 4px; padding: 4px; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: var(--ds-card-2); }
:root .rtabs button { border: 0; border-radius: var(--ds-r-ctl); min-height: 42px; color: var(--ds-ink-2); }
:root .rtabs button + button { border-left: 0; }
:root .rtabs button[aria-selected="true"] { background: var(--ds-red); color: #fbf6ee; box-shadow: 0 4px 10px -6px rgba(143, 52, 36, .6); }
/* classical-book findings: one per row on phones, word pairs never split */
@media (max-width: 760px) { :root .bk-list { grid-template-columns: minmax(0, 1fr) !important; } }
:root .bk-list li > span:first-child { white-space: nowrap; }
:root:lang(zh) .bk-score small, :root:lang(zh) .bk-score span { white-space: nowrap; }
:root:is(:lang(en), :lang(fr)) .bk-score small { display: block; max-width: 7.5em; text-align: center; line-height: 1.3; }

/* ---------- English: words, not spaced-out letters ---------- */
:root:is(:lang(en), :lang(fr)) :is(.brand-name, .acct-btn, .crumbs a, .crumbs span, .tabbar span, .bottom-nav span, .cal-month, .cal-today, .cal-h3, .dr-hang-head b, .dr-hang-head span, .dr-no, .dr-level, .dr-jie h3, .gm-end-label, .play-tag, .el-name, .el-tags, .play-gh, .sec-head h2, .ls-u-name, .th-who, .th-rel) { letter-spacing: .01em; }
:root:is(:lang(en), :lang(fr)) .cal-wd { letter-spacing: .04em; }
:root:is(:lang(en), :lang(fr)) :is(.hero-eyebrow, .eyebrow, .tm-kicker, .pkg-soon) { letter-spacing: .1em; }
:root:is(:lang(en), :lang(fr)) .dr-jie h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
@media (max-width: 760px) { :root body[data-tab="home"] .dy-acts .btn-gold { width: 100%; justify-content: center; } }
/* almanac Do / Avoid badges: fit the English word, rounded like other tags */
:root .cal-yj > b, :root .ch-yj b.cal-yi, :root .ch-yj b.cal-ji { border-radius: 6px; }
:root:is(:lang(en), :lang(fr), :lang(ko)) .cal-yj { grid-template-columns: auto minmax(0, 1fr); }
:root:is(:lang(en), :lang(fr), :lang(ko)) .cal-yj > b { width: auto; min-width: 30px; padding: 0 8px; font-size: 13px; }
:root:is(:lang(en), :lang(fr), :lang(ko)) .ch-yj b.cal-yi, :root:is(:lang(en), :lang(fr), :lang(ko)) .ch-yj b.cal-ji { width: 3.7em; padding: 0; height: 20px; }
:root .cal-cta { border-radius: var(--ds-r-ctl); }
/* game intro start button: centred and wide like the quiz one */
:root .gm-intro .btn-primary { display: flex; width: min(100%, 260px); margin-left: auto; margin-right: auto; }
:root .qz-wrap .btn-primary { min-width: min(100%, 260px); }

/* ---------- home daily card with a chart, desktop: the character stands at the left of its own words ----------
   left column = character | score, bubble (tail pointing at the character), buttons; right column = hour bars */
@media (min-width: 761px) {
  :root .daily-band .daily.has-chart { position: relative; grid-template-columns: 132px fit-content(520px) minmax(0, 1fr); column-gap: 0;
    grid-template-areas: "k k hours" ". people hours" ". row hours" ". talk hours" ". acts hours"; }
  :root .daily-band .daily.has-chart > :not(.dy-hours) { margin-right: 40px; }
  :root .daily-band .daily.has-chart .dy-hours { padding-left: 40px; }
  :root .daily-band .daily.has-chart .dy-row.has-char { align-items: center !important; min-height: 64px; margin-top: 10px; }
  :root .daily-band .daily.has-chart .dy-char-top { position: absolute; left: 22px; bottom: 20px; width: 118px; margin: 0; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo { margin-top: 12px; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo .dy-bubble { text-align: left; padding: 14px 18px 14px 20px; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo .dy-yj { justify-content: flex-start; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo .dy-bubble::after { left: -7px; right: auto; top: 50%; margin-top: -6px; border-top: 0; border-right: 0; border-left: 1.5px solid #4a3426; border-bottom: 1.5px solid #4a3426; transform: rotate(45deg); }
  :root .daily-band .daily.has-chart .dy-acts { margin-top: 16px; }
}

/* ---------- team page role rows: both figures the same height, a light frame instead of the dark one ---------- */
:root .pv-row { border-radius: var(--ds-r-card); border-color: var(--ds-line); background: var(--ds-card); }
:root .pv-pair { --fig: 48px; border-radius: var(--ds-r-ctl); box-shadow: inset 0 0 0 1px var(--ds-line); background: linear-gradient(180deg, #f6efe2, #ece2cf); overflow: hidden; }
:root .pv-pair img { height: calc(var(--fig) * 1100 / var(--feet, 1100)); margin: 0 -4px calc(5px - var(--fig) * (1100 - var(--feet, 1100)) / var(--feet, 1100)); }
@media (max-width: 560px) { :root .pv-pair { --fig: 40px; } }

/* daily pages (draw, merit, merge): no card behind the scene, it sits straight on the page like before */
:root main.fun-page.daily .daily-box { background: transparent; border: 0; box-shadow: none; }
/* balance pass: two equal halves; both halves start on the same line (small heading) and end on the same line (actions / links) */
@media (min-width: 761px) {
  :root .daily-band .daily.has-chart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0;
    grid-template-areas: "k hours" "people hours" "row hours" "talk hours" "acts hours"; grid-template-rows: auto auto auto 1fr auto; }
  :root .daily-band .daily.has-chart > :is(.dy-people, .dy-row, .dy-talk, .dy-acts) { margin-left: 140px; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo { align-self: start; }
  :root .daily-band .daily.has-chart .dy-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: end; }
  :root .daily-band .daily.has-chart .dy-acts > * { width: 100%; min-height: 46px; margin: 0; }
  :root .daily-band .daily.has-chart .dy-acts .dy-add { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(43, 39, 34, .45); border-radius: var(--ds-r-ctl); text-decoration: none; color: var(--ds-ink); font-size: 15px; }
  :root .daily-band .daily.has-chart .dy-hours { display: flex; flex-direction: column; }
  :root .daily-band .daily.has-chart .dy-hours .dy-cal { margin-top: auto; }
  :root .daily-band .daily.has-chart .dy-hours .score-how { margin-bottom: 0; }
  :root .daily-band .daily.has-chart .dy-hours .hr-bars { width: 100%; }
}
@media (min-width: 761px) {
  /* the hour bars take up the spare height instead of a gap above the links */
  :root .daily-band .daily.has-chart .dy-hours .hr-bars { flex: 1 1 auto; height: auto; min-height: 72px; }
  :root .daily-band .daily.has-chart .dy-hours .dy-cal { margin-top: 10px; }
}
@media (min-width: 761px) {
  :root .daily-band .daily.has-chart .dy-acts > * { white-space: nowrap; letter-spacing: .06em; padding: 0 12px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  :root .daily-band .daily.has-chart > :is(.dy-people, .dy-row, .dy-talk, .dy-acts) { margin-left: 118px; }
  :root .daily-band .daily.has-chart .dy-char-top { width: 100px; left: 16px; }
  :root .daily-band .daily.has-chart > :not(.dy-hours) { margin-right: 28px; }
  :root .daily-band .daily.has-chart .dy-hours { padding-left: 28px; }
}

/* ---------- drawn slip on wide screens: landscape, verse on the left, reading on the right ----------
   both halves share one top line (slip number / "what it means") and one bottom line */
@media (min-width: 900px) {
  :root .dr-result .dr-slip { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 30px 0; }
  :root .dr-side { display: flex; flex-direction: column; min-width: 0; padding: 0 36px; }
  :root .dr-side-verse { border-right: 1px dashed rgba(168, 64, 46, .35); }
  :root .dr-side-verse .dr-slip-head { margin-bottom: 0; }
  :root .dr-side-verse .dr-verse { margin: auto 0; padding: 18px 0; }
  :root .dr-side-verse:has(.dr-verse-en) .dr-verse { margin-bottom: 0; }
  :root .dr-side-verse .dr-verse-en { margin: 10px auto auto; }
  :root .dr-side-read .dr-jie { margin: 0; padding: 0; border-top: 0; }
  :root .dr-side-read .dr-jie h3 { line-height: 35px; margin-bottom: 8px; }
  :root .dr-side-read .dr-yiji { justify-content: flex-start; }
  :root .dr-side-read .dr-why { margin-top: auto; padding-top: 12px; }
  :root .dr-side-read .dr-yiji + .dr-why { margin-top: 16px; }
}
/* role / pair thumbnails: each figure gets its own half, a gap between them, both scaled from the feet */
:root .pv-row { grid-template-columns: 128px minmax(0, 1fr) auto; }
:root .pv-pair { --fig: 66px; height: 82px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-items: end; justify-items: center; padding: 0 10px; }
:root .pv-pair img { margin: 0 0 calc(6px - var(--fig) * (1100 - var(--feet, 1100)) / var(--feet, 1100)); max-width: none; }
@media (max-width: 560px) { :root .pv-row { grid-template-columns: 96px minmax(0, 1fr) auto; } :root .pv-pair { --fig: 52px; height: 66px; column-gap: 6px; padding: 0 6px; } }
/* relation-kind switcher on the match tab: same segmented control as the other tabs */
:root .pv-kinds { gap: 4px; padding: 4px; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: var(--ds-card-2); }
:root .pv-kinds button { border: 0 !important; border-radius: var(--ds-r-ctl); background: transparent; color: var(--ds-ink-2); min-height: 42px; }
:root .pv-kinds button[aria-pressed="true"], :root .pv-kinds button.is-on, :root .pv-kinds button[aria-selected="true"] { background: var(--ds-red); color: #fbf6ee; box-shadow: 0 4px 10px -6px rgba(143, 52, 36, .6); }
:root .pv-text em { border: 0; border-radius: 999px; background: var(--ds-red-soft); color: var(--ds-red); padding: 2px 10px; font-style: normal; }
:root .tm-seg { gap: 4px; padding: 4px; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: var(--ds-card-2); }
:root .tm-seg span { border-radius: var(--ds-r-ctl); color: var(--ds-ink-2); }
:root .tm-seg label + label span { border-left: 0; }
:root .tm-seg input:checked + span, :root .lang-toggle button[aria-pressed=true] { background: var(--ds-red); color: #fbf6ee; }
:root .lang-toggle { padding: 4px; gap: 4px; background: var(--ds-card-2); border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); }
:root .lang-toggle button { border: 0; border-radius: var(--ds-r-ctl); }
/* match page: both panels the same height; choice chips rounded like every other control */
@media (min-width: 761px) { :root .tm-layout { align-items: stretch; } }
:root .mt-sc, :root .chip-btn { border-radius: var(--ds-r-ctl); border-color: var(--ds-line); }
:root .mt-sc.is-on, :root .mt-sc[aria-pressed="true"] { border-color: var(--ds-red); background: var(--ds-red-soft); color: var(--ds-red); }
@media (min-width: 761px) {
  /* the empty-state preview fills its panel: rows share the height evenly, no blank patch at the bottom */
  :root .tm-result.is-empty { display: flex; flex-direction: column; }
  :root .tm-result.is-empty > .pv { flex: 1; display: flex; flex-direction: column; }
  :root .tm-result.is-empty .pv-rows, :root .tm-result.is-empty .pv-grid { flex: 1; grid-auto-rows: 1fr; }
  :root .tm-result.is-empty .pv-foot { margin-bottom: 0; }
}
@media (max-width: 760px) {
  /* phone rows: picture and element on one line, the words underneath at full width */
  :root .pv-row { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "pair el" "text text"; row-gap: 10px; padding: 10px 14px 12px 10px; }
  :root .pv-row .pv-pair { grid-area: pair; }
  :root .pv-row .pv-el { grid-area: el; align-self: center; }
  :root .pv-row .pv-text { grid-area: text; padding-left: 2px; }
  :root .pv-row .pv-el small { display: block; }
  :root .pv-text b { white-space: normal; }
  :root .pv-text em { display: inline-block; white-space: nowrap; margin-left: 6px; }
  /* five relation kinds: three on top, two below */
  :root .pv-kinds { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  :root .pv-kinds button { grid-column: span 2; white-space: nowrap; font-size: 13px; padding: 0 4px; min-height: 40px; }
  :root .pv-kinds button:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 760px) {
  :root .pv-kinds button { white-space: normal; line-height: 1.15; font-size: 12.5px; }

  /* home daily card on phones: score on top; the character sits left of its bubble, exactly as tall as the bubble */
  :root .daily-band .daily.has-chart { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px;
    grid-template-areas: "k k" "people people" "ring head" "char talk" "hours hours" "acts acts"; align-items: center; }
  :root .daily-band .daily.has-chart .dy-k { grid-area: k; }
  :root .daily-band .daily.has-chart .dy-people { grid-area: people; }
  :root .daily-band .daily.has-chart .dy-row.has-char { display: contents !important; }
  :root .daily-band .daily.has-chart .dy-ring { grid-area: ring; justify-self: center; margin-top: 8px; }
  :root .daily-band .daily.has-chart .dy-head { grid-area: head; margin-top: 8px; }
  :root .daily-band .daily.has-chart .dy-char-top { grid-area: char; width: 100%; height: 0; min-height: 100%; object-fit: contain; object-position: center bottom; margin: 12px 0 0; align-self: stretch; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo { grid-area: talk; margin-top: 12px; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo .dy-bubble { margin: 0; text-align: left; padding: 12px 14px; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo .dy-yj { justify-content: flex-start; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo .dy-bubble::after { left: -7px; right: auto; top: 50%; margin-top: -6px; border-top: 0; border-right: 0; border-left: 1.5px solid #4a3426; border-bottom: 1.5px solid #4a3426; transform: rotate(45deg); }
  :root .daily-band .daily.has-chart .dy-hours { grid-area: hours; }
  :root .daily-band .daily.has-chart .dy-acts { grid-area: acts; }
}
@media (max-width: 760px) {
  :root .daily-band .daily.has-chart .dy-char-top, :root .daily-band .daily.has-chart .dy-talk.is-solo { margin-top: 0; }
  :root .daily-band .daily.has-chart :is(.dy-ring, .dy-head) { margin-bottom: 14px; }
}
/* the bubble's first sentence breaks evenly instead of leaving a few characters alone on line two */
:root .dy-bubble .dy-s { text-wrap-style: var(--tw-pretty, pretty); }
@media (max-width: 760px) {
  /* height comes from the bubble (set by fitDailyChar); width follows the figure, so wide and narrow characters both match */
  :root .daily-band .daily.has-chart { grid-template-columns: auto minmax(0, 1fr); }
  :root .daily-band .daily.has-chart .dy-char-top { height: var(--bubble-h, 130px); min-height: 0; width: auto; max-width: 120px; object-fit: contain; justify-self: center; align-self: center; }
}
@media (max-width: 760px) {
  :root .daily-band .daily.has-chart { grid-template-columns: 92px minmax(0, 1fr); }
  :root .daily-band .daily.has-chart .dy-char-top { min-height: 0; max-width: none; object-fit: cover; object-position: center bottom; justify-self: center; align-self: center; }
}
:root .dy-bubble .dy-yj span { text-wrap-style: balance; }

/* ---------- home daily card without a chart, desktop: two equal halves like the chart version ----------
   left = date, question, character beside its bubble (same height), button; right = the ten stems filling the half,
   top on the date line, bottom on the button line */
@media (min-width: 761px) {
  :root .daily-band .daily.is-ask.is-ask.is-ask { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0;
    grid-template-areas: "k stems" "ask stems" "s stems" "acts stems"; grid-template-rows: auto auto 1fr auto; }
  :root .daily-band .daily.is-ask.is-ask.is-ask > :not(.dy-stems) { margin-right: 40px; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-stems { grid-area: stems; align-self: stretch; justify-self: stretch;
    max-width: none !important; width: auto !important; margin: 0; padding-left: 40px; border-left: 1px dashed var(--line);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 10px; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-stem { aspect-ratio: auto; height: auto; min-height: 0; border-radius: var(--ds-r-ctl); font-size: 26px; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-host { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: stretch; margin-top: 14px; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-host .dy-char { width: 72px; height: 0; min-height: 100%; object-fit: contain; object-position: center bottom; margin: 0; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-host .dy-bubble { margin: 0; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-acts { margin-top: 18px; }
  :root .daily-band .daily.is-ask.is-ask.is-ask .dy-acts .btn-gold { width: 100%; justify-content: center; }
}

/* ---------- home hero on phones: one centred column, a short promise, clear hierarchy ----------
   small kicker with a rule on both sides, a big two-line title, a one-or-two-line lede in a softer tone, then the buttons */
@media (max-width: 760px) {
  :root .temple .hero-copy, :root .hero-copy { display: flex !important; flex-direction: column; align-items: center; text-align: center; }
  :root .hero-copy > * { grid-column: auto !important; }
  :root .hero-eyebrow { justify-content: center; margin: 4px 0 14px; font-size: 12.5px; letter-spacing: .22em; }
  :root .hero-eyebrow::before, :root .hero-eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; flex: none; }
  :root:is(:lang(en), :lang(fr)) .hero-eyebrow { letter-spacing: .14em; }
  :root .temple .hero-title, :root .hero-title { height: auto !important; margin: 0 auto 14px !important; padding: 0 !important; text-align: center; text-wrap-style: balance; }
  :root .temple:lang(zh) .hero-title, :root .temple .hero-title:lang(zh) { font-size: 34px; line-height: 1.3; letter-spacing: .06em; }
  :root .temple:is(:lang(en), :lang(fr)) .hero-title, :root .temple .hero-title:is(:lang(en), :lang(fr)) { font-size: 36px; line-height: 1.12; }
  :root .temple .hero-lede, :root .hero-lede { margin: 0 auto 22px; padding: 0; max-width: 22em; font-size: 15.5px; line-height: 1.8; color: var(--ds-ink-2); text-align: center; text-wrap-style: balance; }
  :root .temple .hero-lede br, :root .hero-lede br { display: inline; }
  :root:is(:lang(en), :lang(fr)) .hero-lede { max-width: 21em; font-size: 16px; }
  :root .hero-cta { width: 100%; justify-content: center; }
  :root .hero-trust { justify-content: center; text-align: center; font-size: 13px; color: var(--ds-ink-3); }
}
@media (max-width: 760px) {
  :root .hero-trust { margin-bottom: 18px; }
  :root .hero-cta { margin-bottom: 14px; }
}
/* hero cards sit lower on phones, so the whole taiji in the dial stays in view above them */
@media (max-width: 760px) { :root body[data-tab="home"] .hero-fan { height: calc(var(--gate) * .516 + var(--card-w) * 1.62 + 104px); } }

/* ---------- 脆皮捏捏 squish page ---------- */
:root .sq-stage { width: 100%; max-width: 560px; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
:root .sq-canvas { display: block; width: 100%; cursor: grab; touch-action: pan-y; }
:root .sq-canvas:active { cursor: grabbing; }
:root .sq-hint { margin: 14px 0 0; text-align: center; color: var(--ds-ink-2); font-size: 15px; min-height: 1.6em; }
:root .sq-acts { display: flex; justify-content: center; margin-top: 10px; }
:root .sq-acts .btn-primary { min-width: min(100%, 240px); }
:root .sq-kinds, :root .sq-els { display: grid; gap: 4px; padding: 4px; max-width: 560px; margin: 16px auto 0; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: rgba(251, 248, 242, .8); }
:root .sq-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:root .sq-els { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 8px; }
:root .sq-els[hidden] { display: none; }
:root .sq-kind, :root .sq-el { min-height: 40px; border: 0; border-radius: var(--ds-r-ctl); background: transparent; color: var(--ds-ink-2); font: 500 14px/1.2 var(--f-body); cursor: pointer; }
:root .sq-kind.is-on { background: var(--ds-red); color: #fbf6ee; }
:root .sq-el { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
:root .sq-el::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
:root .sq-el.is-on { background: #fff; color: var(--ds-ink); box-shadow: inset 0 0 0 1.5px var(--ds-red); }
:root .sq-foot { display: flex; justify-content: space-between; align-items: center; max-width: 560px; margin: 12px auto 0; font-size: 13.5px; color: var(--ds-ink-3); }
@media (max-width: 560px) { :root .sq-kind { font-size: 13px; } :root .sq-el { font-size: 12.5px; gap: 4px; white-space: nowrap; } }
@media (max-width: 400px) { :root .sq-el { font-size: 11.5px; gap: 3px; } :root .sq-el::before { width: 9px; height: 9px; } }
:root .sq-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; max-width: 320px; margin: 0 auto 16px; border: 1px solid var(--ds-line); border-radius: calc(var(--ds-r-ctl) + 4px); background: rgba(251, 248, 242, .8); }
:root .sq-modes button { min-height: 40px; border: 0; border-radius: var(--ds-r-ctl); background: transparent; color: var(--ds-ink-2); font: 500 15px/1 var(--f-body); cursor: pointer; }
:root .sq-modes button.is-on { background: var(--ds-red); color: #fbf6ee; }
:root .sq-kinds[hidden], :root .sq-stage[hidden], :root .sq-hud[hidden], :root .sq-lvs[hidden] { display: none; }
:root .sq-hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 560px; margin: 0 auto 10px; padding: 10px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-card); background: rgba(251, 248, 242, .9); font-size: 15px; }
:root .sq-hud b { font-weight: 600; color: var(--ds-ink); }
:root .sq-hud span { color: var(--ds-ink-2); }
:root .sq-clock { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ds-ink) !important; }
:root .sq-clock.is-low { color: var(--ds-red) !important; }
:root .sq-res { width: 100%; margin: 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--ds-ink); }
:root .sq-stars { color: #d99a2b; letter-spacing: .1em; }
:root .sq-stars i, :root .sq-lv span i { font-style: normal; color: rgba(74, 52, 38, .2); }
:root .sq-res-acts { width: 100%; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
:root .sq-res-acts .btn-primary, :root .sq-res-acts .btn-ghost { min-height: 42px; padding: 0 16px; }
:root .sq-lvs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 0 auto; }
:root .sq-lv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); background: var(--ds-card); cursor: pointer; font-family: var(--f-body); }
:root .sq-lv b { font-size: 20px; font-weight: 600; color: var(--ds-ink); }
:root .sq-lv span { font-size: 11px; color: #d99a2b; letter-spacing: .05em; }
:root .sq-lv:hover:not(:disabled) { border-color: var(--ds-red); }
:root .sq-lv.is-locked { opacity: .5; cursor: default; }

/* ---------- 五行消消乐 ---------- */
:root .match-page .daily-box { padding: 0; }
:root .mt-play { max-width: 476px; margin: 0 auto; }
/* the bar above the board: level | goals | moves, three blocks of one height */
:root .mt-hud { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: stretch; gap: 8px; margin: 0 0 12px; }
:root .mt-hud > div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line); }
:root .mt-hud small { font: 500 11.5px/1.2 var(--f-body); color: var(--ds-ink-3); letter-spacing: .08em; }
:root .mt-hud-lv b, :root .mt-hud-mv b { font: 600 22px/1.15 var(--f-body); color: var(--ds-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
:root .mt-hud-mv.is-low b { color: var(--ds-red); }
:root .mt-hud .mt-goals { flex-direction: row; gap: 14px; }
:root .mt-goal { display: inline-flex; align-items: center; gap: 6px; font: 600 18px/1 var(--f-body); color: var(--ds-ink); font-variant-numeric: tabular-nums; }
:root .mt-goal.is-done b { color: #4f9a62; }
:root .mt-gi { width: 28px; height: 28px; border-radius: 30%; display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .5); }
:root .mt-gi svg { width: 86%; height: 86%; }

:root .mt-wrap { display: flex; justify-content: center; }
:root .mt-board { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: 14px; overflow: hidden;
  background: linear-gradient(#e2d1b4, #d5c09d); box-shadow: inset 0 0 0 1px rgba(74, 52, 38, .18), 0 10px 24px -14px rgba(60, 36, 18, .45); }
:root .mt-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
:root .mt-cells i { margin: 2px; border-radius: 24%; background: rgba(255, 252, 245, .45); }
:root .mt-cells i:nth-child(odd) { background: rgba(255, 252, 245, .7); }
:root .mt-tiles, :root .mt-fx { position: absolute; inset: 0; }
:root .mt-fx { pointer-events: none; }
:root .mt-t { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); padding: 3px; transition-property: transform; transition-timing-function: cubic-bezier(.25, .9, .35, 1.08); will-change: transform; cursor: pointer; }
:root .mt-g { width: 100%; height: 100%; border-radius: 26%; display: grid; place-items: center; position: relative;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .17), inset 0 2px 0 rgba(255, 255, 255, .45), 0 2px 3px rgba(70, 40, 16, .22); transition: transform .16s ease, filter .16s ease; }
:root .mt-g svg { width: 80%; height: 80%; filter: drop-shadow(0 1.5px 0 rgba(40, 20, 8, .25)); }
:root .mt-e0 { background: radial-gradient(circle at 34% 26%, #6fbf5c, #3a8d35 60%, #286a26); }
:root .mt-e1 { background: radial-gradient(circle at 34% 26%, #f2735a, #d43a28 60%, #a6261a); }
:root .mt-e2 { background: radial-gradient(circle at 34% 26%, #ffe07a, #f0b52a 60%, #c48a14); }
:root .mt-e3 { background: radial-gradient(circle at 34% 26%, #ffffff, #f1eee8 60%, #cfc9bd); }

:root .mt-g.mt-e3, :root .mt-gi.mt-e3 { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 0 0 1.5px rgba(150, 125, 85, .5), 0 2px 3px rgba(70, 40, 16, .22); }
:root .mt-e4 { background: radial-gradient(circle at 34% 26%, #5a8fe0, #2856ad 60%, #1a3b82); }
:root .mt-taiji { background: radial-gradient(circle at 34% 26%, #fff8e6, #e9d3a1 60%, #c6a564); }
:root .mt-taiji svg { width: 74%; height: 74%; fill: initial; animation: mt-spin 6s linear infinite; }
@keyframes mt-spin { to { transform: rotate(360deg); } }
/* 旺: a bright band across the tile, along the line it will clear */
:root .mt-sp-row .mt-g::after, :root .mt-sp-col .mt-g::after { content: ""; position: absolute; border-radius: 3px; background: rgba(255, 255, 255, .78); box-shadow: 0 0 8px rgba(255, 255, 255, .9); }
:root .mt-sp-row .mt-g::after { left: 10%; right: 10%; top: 50%; height: 4px; margin-top: -2px; }
:root .mt-sp-col .mt-g::after { top: 10%; bottom: 10%; left: 50%; width: 4px; margin-left: -2px; }
:root .mt-sp-row svg, :root .mt-sp-col svg { position: relative; z-index: 1; }
/* 爆: a glowing ring */
:root .mt-sp-burst .mt-g { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .17), inset 0 0 0 3px rgba(255, 255, 255, .7), 0 0 10px 2px rgba(255, 230, 160, .85); animation: mt-glow 1.4s ease-in-out infinite; }
@keyframes mt-glow { 50% { filter: brightness(1.12); } }
:root .mt-t.is-sel .mt-g { transform: scale(1.1); filter: brightness(1.08); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .17), 0 0 0 2.5px #fff, 0 0 0 4.5px var(--ds-red); }
:root .mt-t.mt-hint .mt-g { animation: mt-nudge 1s ease-in-out infinite; }
@keyframes mt-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
:root .mt-t.mt-no .mt-g { animation: mt-shake .26s ease; }
@keyframes mt-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
:root .mt-t.mt-pop .mt-g { animation: mt-pop .24s ease-in forwards; }
@keyframes mt-pop { 40% { transform: scale(1.22); filter: brightness(1.3); } 100% { transform: scale(.2); opacity: 0; } }
:root .mt-t.mt-born .mt-g { animation: mt-born .26s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mt-born { from { transform: scale(.3); } }

/* sparks, beams, rings and the combo words */
:root .mt-spark { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; animation: mt-spark .5s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes mt-spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
:root .mt-k0 { --k: #5fb84e; } :root .mt-k1 { --k: #ef5a40; } :root .mt-k2 { --k: #f3bd32; } :root .mt-k3 { --k: #ffffff; } :root .mt-k4 { --k: #3f74d0; }
:root .mt-spark { background: var(--k); box-shadow: 0 0 6px var(--k); }
:root .mt-beam { position: absolute; background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent); box-shadow: 0 0 14px 4px var(--k); animation: mt-beam .5s ease-out forwards; }
:root .mt-beam-h { left: 0; right: 0; height: calc(var(--s) * .34); margin-top: calc(var(--s) * .33); }
:root .mt-beam-v { top: 0; bottom: 0; width: calc(var(--s) * .34); margin-left: calc(var(--s) * .33); background: linear-gradient(180deg, transparent, #fff 20%, #fff 80%, transparent); }
@keyframes mt-beam { from { opacity: 1; } to { opacity: 0; transform: scale(1, .2); } }
:root .mt-beam-v { animation-name: mt-beam-v; }
@keyframes mt-beam-v { from { opacity: 1; } to { opacity: 0; transform: scale(.2, 1); } }
:root .mt-ring { position: absolute; width: calc(var(--s) * 3); height: calc(var(--s) * 3); margin: calc(var(--s) * -1.5) 0 0 calc(var(--s) * -1.5); border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 16px 4px var(--k), inset 0 0 16px 4px var(--k); animation: mt-ring .55s ease-out forwards; }
:root .mt-ring-tj { --k: #e9c879; width: calc(var(--s) * 9); height: calc(var(--s) * 9); margin: calc(var(--s) * -4.5) 0 0 calc(var(--s) * -4.5); }
@keyframes mt-ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
:root .mt-say { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: rgba(43, 33, 26, .82); color: #fbf6ee;
  font: 600 17px/1.2 var(--f-body); letter-spacing: .06em; animation: mt-say 1.1s ease-out forwards; }
:root .mt-say-sheng { background: rgba(168, 64, 46, .92); }
@keyframes mt-say { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } 70% { opacity: 1; transform: translate(-50%, -60%); } 100% { opacity: 0; transform: translate(-50%, -80%); } }

/* the result card over the board */
:root .mt-res { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(244, 239, 228, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: mt-fade .3s ease; }
:root .mt-res[hidden] { display: none; }
@keyframes mt-fade { from { opacity: 0; } }
:root .mt-res-in { width: 100%; max-width: 300px; padding: 22px 20px 20px; text-align: center; border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), 0 14px 30px -16px rgba(60, 36, 18, .5); }
:root .mt-res-in h2 { margin: 0 0 6px; font: 600 22px/1.3 var(--f-body); color: var(--ds-ink); }
:root .mt-res-in p { margin: 6px 0 16px; color: var(--ds-ink-2); font-size: 14.5px; }
:root .mt-stars { font-size: 30px; letter-spacing: .12em; color: #ddd2bf; line-height: 1.2; }
:root .mt-stars .is-on { color: #d9a03a; text-shadow: 0 1px 0 #a8742a; }
:root .mt-res-acts { display: grid; gap: 10px; }
:root .mt-res-done { margin: 0 !important; color: var(--ds-red) !important; font-weight: 600; }

:root .mt-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; margin-top: 14px; }
:root .mt-bar .btn-ghost { min-height: 44px; }
:root .mt-sound { padding: 0 4px; white-space: nowrap; }
:root .mt-how { margin: 16px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ds-ink-3); text-align: center; text-wrap-style: var(--tw-pretty, pretty); }
:root .mt-lvs { max-width: 476px; margin: 0 auto; }
:root .mt-lvs[hidden], :root .mt-play[hidden] { display: none; }
:root .mt-pick { text-align: center; color: var(--ds-ink-2); margin: 0 0 12px; }
:root .mt-lvs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
:root .mt-lvb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-line); background: var(--ds-card); color: var(--ds-ink); cursor: pointer; }
:root .mt-lvb b { font: 600 19px/1.1 var(--f-body); }
:root .mt-lvb small { font-size: 11px; color: #d9a03a; letter-spacing: .05em; }
:root .mt-lvb.is-cur { border-color: var(--ds-red); box-shadow: inset 0 0 0 1px var(--ds-red); }
:root .mt-lvb.is-locked { opacity: .5; cursor: default; }
:root .mt-lvb:hover:not(:disabled) { border-color: var(--ds-red); }
@media (max-width: 400px) { :root .mt-hud { grid-template-columns: 56px minmax(0, 1fr) 56px; } :root .mt-hud .mt-goals { gap: 10px; } :root .mt-goal { font-size: 16px; } :root .mt-gi { width: 24px; height: 24px; } }

/* Chinese text: Safari's "pretty" wrapping re-breaks every line at punctuation, which leaves a ragged right edge and
   empty space in bubbles and cards; Chinese reads best filled to the edge, so plain wrapping there */
/* Safari's "pretty" and "balance" wrapping re-break every line early, which leaves a ragged right edge and an empty
   patch in bubbles and cards (in both languages). Plain wrapping fills each line; the speech bubbles are also set
   centred with balanced lines, the way a speech bubble is lettered: equal lines with equal space either side, so
   no side of the box is left empty. Centred headings keep their balanced lines too. */
:root main p, :root main li, :root .lede, :root .cal-lede, :root .sec-head p, :root .dy-s, :root .play-text > span, :root .site-foot p,
:root .dy-bubble, :root .dy-bubble .dy-s, :root .dy-bubble .dy-yj span, :root .mt-how, :root .stem-tag { text-wrap-style: auto; }
:root .dy-bubble > p:not(.dy-yj) { text-align: center !important; text-wrap-style: balance; }
:root .dy-bubble .dy-cl { display: inline-block; }
/* the 宜 / 忌 lines sit as one block in the middle, their labels lined up on the left of it */
:root .dy-bubble .dy-yj { display: grid !important; justify-content: center !important; justify-items: start; gap: 4px; }
/* 宜 / 忌 lines: the label, then the items; a wrapped line starts under the first item, not under the label */
:root .dy-bubble .dy-yj { grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; }
:root .dy-bubble .dy-yj span { display: contents; text-align: left; }
:root .dy-bubble .dy-yj b { margin-right: 0 !important; width: auto !important; text-align: left; }
:root .dy-bubble .dy-yj em { flex: 1; min-width: 0; font-style: normal; }
:root .dy-bubble .dy-yj i { font-style: normal; white-space: nowrap; }

/* centred text (marked by js/clauses.js): balanced lines, and in Chinese whole clauses */
:root [data-bal] { text-wrap-style: balance; }
:root [data-bal] .cl { display: inline-block; }
html[lang^="zh"] [data-just] { text-align: start; }

/* 万年历 hour rows on a phone: the hour on the left, its 宜 and 忌 in the middle, the 干支 and 吉/凶 on the right, so
   each row is filled evenly across instead of crowding the left half */
@media (max-width: 640px) {
  :root .ch-row, :root .cal-hours.has-me .ch-row { grid-template-columns: 5.8em minmax(0, 1fr) auto; grid-template-areas: "name yi gz" "name ji luck"; column-gap: 12px; row-gap: 5px; align-items: center; padding: 9px 4px; }
  :root .cal-hours.has-me .ch-row { grid-template-columns: 5.8em minmax(0, 1fr) auto auto; grid-template-areas: "name yi gz me" "name ji luck me"; }
  :root .ch-name { grid-area: name; align-self: center; white-space: nowrap; }
  :root .ch-gz { grid-area: gz; text-align: right; }
  :root .ch-luck { grid-area: luck; text-align: right; }
  :root .ch-me { grid-area: me; align-self: center; min-width: 2.4em; padding: 6px 0; border-radius: 6px; }
  :root .ch-row .ch-yj { grid-column: auto; white-space: normal; }
  :root .ch-row .ch-yj:nth-last-child(2) { grid-area: yi; }
  :root .ch-row .ch-yj:last-child { grid-area: ji; }
}

/* section intros: two even lines rather than a long one and a stray word */
:root .sec-head p { text-wrap-style: balance; }
/* 宜 / 忌 on the home card as small filled tags, the same as the almanac's */
:root .dy-pair b, :root .hr-yj b.dy-yi, :root .hr-yj b.dy-ji { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1; color: #fff; align-self: center; }
:root .dy-pair b.dy-yi, :root .hr-yj b.dy-yi { background: #5d7a3c; }
:root .dy-pair b.dy-ji, :root .hr-yj b.dy-ji { background: #a8402e; }
:root:is(:lang(en), :lang(fr), :lang(ko)) .dy-pair b, :root:is(:lang(en), :lang(fr), :lang(ko)) .hr-yj b.dy-yi, :root:is(:lang(en), :lang(fr), :lang(ko)) .hr-yj b.dy-ji { width: 3.7em; padding: 0; }
:root .hr-yj b.dy-yi, :root .hr-yj b.dy-ji { margin-right: 6px; vertical-align: 1px; }
/* 宜 and 忌 side by side in two equal halves under a hairline, each tag above its items */
:root .dy-pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(90, 60, 40, .25); text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
:root .dy-pair > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 6px; min-width: 0; }
:root .dy-pair > div + div { border-left: 1px dashed rgba(90, 60, 40, .25); }
:root .dy-pair b { margin-bottom: 4px; }
:root .dy-pair span { text-wrap-style: balance; }
:root .dy-pair span[hidden] { display: none; }
:root .dy-pair em { display: flex; flex-direction: column; align-items: center; gap: 2px; font-style: normal; min-width: 0; }
:root .dy-pair b { flex: none; }
/* narrow phones: no room for two halves, so 宜 and 忌 become two rows, tags in line on the left, the block centred */
@media (max-width: 400px) {
  :root .dy-pair { grid-template-columns: auto; justify-content: center; gap: 6px; }
  :root .dy-pair > div { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; }
  :root .dy-pair > div + div { border-left: 0; }
  :root .dy-pair b { margin-bottom: 0; align-self: flex-start; margin-top: 1px; }
  :root .dy-pair em { display: block; text-align: left; }
  :root .dy-pair .is-on ~ .is-on::before { content: '、'; }
  html:not([lang^="zh"]):not([lang="ja"]) .dy-pair .is-on ~ .is-on::before { content: ', '; }
}
:root .cl.eol, :root .dy-cl.eol { margin-right: -.5em; }
:root #ls-canvas { cursor: pointer; }
/* 五行消消乐 太极 bomb: a gold-rimmed tile that pulses, then a blast that throws the tiles round it outward */
:root .mt-sp-taiji .mt-g { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 0 0 2px #fff6dc, 0 0 12px 3px rgba(240, 196, 92, .9); animation: mt-tj-pulse 1.2s ease-in-out infinite; }
:root .mt-sp-taiji.mt-big .mt-g { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 0 0 2.5px #fff, 0 0 18px 6px rgba(255, 170, 60, .95); }
:root .mt-sp-taiji.mt-big .mt-taiji svg { animation-duration: 2.4s; }
@keyframes mt-tj-pulse { 50% { transform: scale(1.07); filter: brightness(1.12); } }
:root .mt-t.mt-fly { z-index: 3; pointer-events: none; }
:root .mt-t.mt-fly .mt-g { animation: mt-fly .52s cubic-bezier(.15, .7, .4, 1) var(--fd) forwards; }
@keyframes mt-fly {
  0% { transform: scale(1); filter: brightness(1); }
  14% { transform: scale(1.25); filter: brightness(1.8); }
  100% { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.35); opacity: 0; filter: brightness(1.3); }
}
:root .mt-flash { position: absolute; inset: 0; background: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, .95), rgba(255, 236, 180, .55) 30%, rgba(255, 220, 140, 0) 70%); animation: mt-flash .5s ease-out forwards; z-index: 4; }
@keyframes mt-flash { from { opacity: 1; } to { opacity: 0; } }
:root .mt-wave { position: absolute; width: calc(var(--s) * 6); height: calc(var(--s) * 6); margin: calc(var(--s) * -3) 0 0 calc(var(--s) * -3); border-radius: 50%; z-index: 4;
  border: 6px solid rgba(255, 250, 235, .95); box-shadow: 0 0 22px 6px rgba(245, 190, 80, .85), inset 0 0 22px 6px rgba(245, 190, 80, .7); animation: mt-wave .62s cubic-bezier(.2, .7, .3, 1) forwards; }
:root .mt-wave2 { border-width: 3px; animation-delay: .1s; transform: scale(.1); box-shadow: 0 0 16px 3px rgba(255, 255, 255, .8); }
:root .mt-wave-big { width: calc(var(--s) * 10); height: calc(var(--s) * 10); margin: calc(var(--s) * -5) 0 0 calc(var(--s) * -5); }
@keyframes mt-wave { from { transform: scale(.1); opacity: 1; } to { transform: scale(1); opacity: 0; } }
:root .mt-tj-boom { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) * -.5) 0 0 calc(var(--s) * -.5); z-index: 5; animation: mt-tj-boom .66s cubic-bezier(.2, .8, .3, 1) forwards; }
:root .mt-tj-boom svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(255, 215, 120, .95)); }
@keyframes mt-tj-boom { 0% { transform: scale(.8) rotate(0); opacity: 1; } 35% { transform: scale(2.4) rotate(220deg); opacity: 1; } 100% { transform: scale(3.6) rotate(400deg); opacity: 0; } }
:root .mt-ring-born { --k: #f0c45c; width: calc(var(--s) * 2.2); height: calc(var(--s) * 2.2); margin: calc(var(--s) * -1.1) 0 0 calc(var(--s) * -1.1); }
:root .mt-board.mt-quake { animation: mt-quake .45s cubic-bezier(.36, .07, .19, .97); }
:root .mt-board.mt-quake-big { animation: mt-quake-big .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes mt-quake { 10% { transform: translate(-5px, 3px) rotate(-.6deg); } 25% { transform: translate(6px, -4px) rotate(.6deg); } 40% { transform: translate(-4px, -3px); } 55% { transform: translate(4px, 3px); } 70% { transform: translate(-2px, 1px); } 85% { transform: translate(1px, -1px); } }
@keyframes mt-quake-big { 10% { transform: translate(-9px, 5px) rotate(-1deg) scale(1.02); } 25% { transform: translate(10px, -6px) rotate(1deg); } 40% { transform: translate(-7px, -5px); } 55% { transform: translate(6px, 5px); } 70% { transform: translate(-3px, 2px); } 85% { transform: translate(2px, -1px); } }
:root .mt-say-boom { background: linear-gradient(135deg, #b8392a, #e0892f); font-size: 22px; letter-spacing: .1em; box-shadow: 0 6px 18px -6px rgba(120, 40, 10, .6); animation-name: mt-say-boom; }
:root .mt-say-born { background: rgba(176, 122, 18, .92); }
@keyframes mt-say-boom { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 32% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; transform: translate(-50%, -60%); } 100% { opacity: 0; transform: translate(-50%, -80%); } }
@media (prefers-reduced-motion: reduce) { :root .mt-board.mt-quake, :root .mt-board.mt-quake-big { animation: none; } }
/* the day pillar panel, under the Day Master card */
:root .area-card { display: flex; flex-direction: column; gap: 16px; }
:root .area-card > .dm-panel { height: auto; }
:root .area-card > .dm-panel:first-child { flex: 1 1 auto; }
:root .pl-gz { font: 600 22px/1 var(--f-display, var(--f-body)); letter-spacing: .08em; }
:root .pl-body { padding: 4px 20px 18px; }
:root .pl-facts { margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 253, 248, .7); overflow: hidden; }
:root .pl-facts div { padding: 10px 12px; border-right: 1px solid var(--line-soft); min-width: 0; text-align: center; }
:root .pl-facts div:last-child { border-right: 0; }
:root .pl-facts dt { font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; margin-bottom: 4px; }
:root .pl-facts dd { margin: 0; font-size: 15px; }
:root .pl-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line-soft); }
:root .pl-row:first-of-type { border-top: 0; }
:root .pl-row b { font-weight: 600; color: var(--seal); font-size: 14px; letter-spacing: .08em; }
:root:is(:lang(en), :lang(fr)) .pl-row { grid-template-columns: 5.6em minmax(0, 1fr); }
:root:is(:lang(en), :lang(fr)) .pl-row b { letter-spacing: .02em; }
:root .pl-row p { margin: 0; line-height: 1.75; }
@media (max-width: 640px) {
  :root .pl-body { padding: 2px 14px 14px; }
  :root .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root .pl-facts div:nth-child(2n) { border-right: 0; }
  :root .pl-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
:root .pl-row p { text-align: left; } :root .pl-row .dy-cl { display: inline-block; }
/* both mini-games in faded traditional pigments (竹青, 胭脂, 驼色, 缃黄, 黛蓝) on light paper, so they sit quietly with the site */
:root .mg-board { background: #d8ccb5; }
:root .mg-board > i { background: rgba(250, 246, 236, .55); }
:root .mg-l0 { background: #e9efe2; color: #5e8768; } :root .mg-l1 { background: #9bb7a0; color: #fbf8f1; }
:root .mg-l2 { background: #f6e6df; color: #b06a5c; } :root .mg-l3 { background: #cf968a; color: #fffaf5; }
:root .mg-l4 { background: #f2eadb; color: #8f7558; } :root .mg-l5 { background: #bba380; color: #fffaf2; }
:root .mg-l6 { background: #f6efd9; color: #a08548; } :root .mg-l7 { background: #d2b67f; color: #fffbf0; }
:root .mg-l8 { background: #e5ebf2; color: #5c7795; } :root .mg-l9 { background: #98abc2; color: #f8fafc; }
:root .mg-l10 { background: #716659; color: #f6ead0; }
:root .mt-board { background: linear-gradient(#efe7d8, #e5d9c3); }
:root .mt-e0 { background: radial-gradient(circle at 34% 26%, #d4e5c6, #b3cfa3 60%, #9cbd8c); }
:root .mt-e1 { background: radial-gradient(circle at 34% 26%, #f6d1c6, #eab0a1 60%, #dc988a); }
:root .mt-e2 { background: radial-gradient(circle at 34% 26%, #faecc4, #f0d79f 60%, #e3c47f); }
:root .mt-e3 { background: radial-gradient(circle at 34% 26%, #ffffff, #f7f4ee 60%, #e6e0d4); }
:root .mt-e4 { background: radial-gradient(circle at 34% 26%, #d3dff0, #b2c5e2 60%, #9bb2d6); }
:root .mt-g { box-shadow: inset 0 -3px 0 rgba(90, 60, 30, .1), inset 0 2px 0 rgba(255, 255, 255, .55), 0 2px 3px rgba(90, 60, 30, .14); }
:root .mt-g svg { filter: drop-shadow(0 1px 0 rgba(60, 40, 20, .18)); }
/* ---------- 锦鲤池 koi pond: the game-page pond drawn large, with the day's food above it ---------- */
:root body:has(.pond-page) .bg-pond { height: max(62vh, 420px) !important; bottom: 0 !important; }
@media (max-width: 760px) { :root body:has(.pond-page) .bg-pond { height: max(360px, calc(100vh - 470px)) !important; bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; } }
:root .pond-page .daily-box { max-width: 520px; margin: 0 auto; padding: 0; background: none; box-shadow: none; border: 0; display: grid; justify-items: center; gap: 12px; }
:root .pd-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; }
:root .pd-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 252, 245, .9); box-shadow: inset 0 0 0 1px var(--line); }
:root .pd-stat i { font-style: normal; font-size: 12.5px; color: var(--ink-faint); letter-spacing: .06em; }
:root .pd-stat b { font-weight: 600; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
:root .pd-sound { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 252, 245, .9); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink-soft); }
:root .pd-feed { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; padding: 14px 28px; border-radius: 999px; font-size: 17px; letter-spacing: .12em; box-shadow: 0 10px 22px -10px rgba(140, 50, 30, .55); }
:root:is(:lang(en), :lang(fr)) .pd-feed { letter-spacing: .02em; }
:root .pd-feed svg { width: 22px; height: 22px; flex: none; }
:root .pd-feed:active { transform: scale(.97); }
:root .pd-feed:disabled { opacity: .5; box-shadow: none; }
:root .pd-tip { margin: 0; text-align: center; color: var(--ink-soft); font-size: 13.5px; }
:root .pd-tip.is-flash { animation: pd-flash 1.6s ease; }
@keyframes pd-flash { 0%, 100% { color: var(--ink-soft); } 20% { color: var(--seal); } }
/* phones: the pond sits just above the tab bar, which grows by the home-indicator inset when the browser has no bar of its own */
@media (max-width: 760px) { :root .bg-pond { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); } }
/* the 锦鲤池 card spans both columns under the daily stick and the wooden fish: the scene on the left, words on the right */
:root .play-card.play-card-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 22px; }
:root .play-card-wide .play-art { height: 100%; min-height: 180px; margin: 0; aspect-ratio: auto; }
:root .pa-pond { padding: 0 !important; overflow: hidden; border-radius: 10px; background: #e6dfcf; }
:root .pa-pond img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  :root .play-card.play-card-wide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  :root .play-card-wide .play-art { min-height: 0; height: 132px; }
}
/* the 锦鲤池 card: its own full row under both groups on wide screens; on one-column phones it follows the daily stick and the wooden fish */
:root .play-group-wide { grid-column: 1 / -1; }
@media (max-width: 1040px) { :root .play-groups > .play-group:nth-child(1) { order: 1; } :root .play-group-wide { order: 2; } :root .play-groups > .play-group:nth-child(2) { order: 3; } }
:root .play-group-wide .play-card-wide { height: auto; }
:root .pond-page .daily-box { position: relative; }
:root .pd-plus { position: absolute; top: 52px; transform: translateX(-50%); pointer-events: none; color: var(--seal); font: 600 15px/1 var(--f-body); letter-spacing: .08em; animation: pd-plus 1.2s ease-out forwards; }
@keyframes pd-plus { 0% { opacity: 0; transform: translate(-50%, 10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -28px); } }
/* ---------- plans page (pricing.html): a free strip, then three equal cards with their buttons on one line ---------- */
:root .pricing-page .daily-wrap { max-width: 1040px; }
:root .pr-free { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 12px 28px; padding: 20px 24px; margin-top: 6px; background: rgba(255, 252, 245, .72); }
:root .pr-free-head h2 { margin: 0; font-size: 20px; letter-spacing: .08em; }
:root .pr-free-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-faint); }
:root .pr-free-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
:root .pr-free-list li { padding: 5px 12px; border-radius: 999px; background: rgba(93, 122, 60, .1); color: var(--tp-moss, #4f6b3a); font-size: 14px; }
:root .pr-soon { margin: 22px 0 12px; text-align: center; color: var(--ink-soft); font-size: 14.5px; }
:root .pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
:root .pr-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; min-width: 0; }
:root .pr-card.is-pick { box-shadow: inset 0 0 0 2px var(--seal), 0 16px 30px -18px rgba(140, 50, 30, .45); }
:root .pr-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: var(--seal); color: #fff8ee; font-size: 12.5px; letter-spacing: .1em; white-space: nowrap; }
:root .pr-head { text-align: center; display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
:root .pr-head h2 { margin: 0; font-size: 19px; letter-spacing: .06em; }
:root .pr-price { margin: 4px 0 0; display: flex; justify-content: center; align-items: baseline; gap: 6px; }
:root .pr-amt { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
:root .pr-per { color: var(--ink-faint); font-size: 14px; }
:root .pr-permo { margin: -2px 0 0; font-size: 13px; color: var(--seal); }
:root .pr-desc { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; text-wrap-style: balance; }
:root .pr-feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; align-content: start; }
:root .pr-feats li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
:root .pr-feats li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--tp-moss, #5d7a3c); border-bottom: 2px solid var(--tp-moss, #5d7a3c); transform: rotate(-45deg); }
:root .pr-btn { width: 100%; }
:root .pr-done { margin: 0; padding: 11px; text-align: center; border-radius: 10px; background: rgba(93, 122, 60, .1); color: var(--tp-moss, #4f6b3a); font-weight: 600; font-size: 14px; }
:root .pr-email { display: flex; gap: 8px; }
:root .pr-email[hidden] { display: none; }
:root .pr-email input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fffdf8; }
:root .pr-small { margin: 0; font-size: 13px; color: var(--ink-faint); }
:root .pr-foot { margin-top: 18px; text-align: center; }
:root .pr-msg { min-height: 1.5em; margin: 8px 0 0; text-align: center; color: var(--seal); }
:root .pr-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(168, 64, 46, .08); text-align: center; }
:root .pr-banner.is-ok { background: rgba(93, 122, 60, .12); color: var(--tp-moss, #4f6b3a); font-weight: 600; }
@media (max-width: 860px) {
  :root .pr-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 460px; margin: 0 auto; }
  :root .pr-free { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 18px; }
  :root .pr-free-list { justify-content: center; }
}
/* ---------- owner page (owner.html) ---------- */
:root .ow-gate { padding: 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
:root .ow-gate code { word-break: break-all; }
:root .ow-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
:root .ow-stat { padding: 14px 16px; display: grid; gap: 4px; }
:root .ow-stat span { font-size: 12.5px; color: var(--ink-faint); }
:root .ow-stat b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
:root .ow-sec { padding: 18px; margin-bottom: 16px; display: grid; gap: 10px; min-width: 0; }
:root .ow-sec h2 { margin: 0; font-size: 17px; }
:root .ow-small { margin: 0; font-size: 13px; color: var(--ink-faint); }
:root .ow-scroll { overflow-x: auto; }
:root .ow-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
:root .ow-table th, :root .ow-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
:root .ow-table th { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
:root .ow-table small { display: block; color: var(--ink-faint); font-size: 11.5px; }
:root .ow-in { width: 100%; min-width: 110px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fffdf8; }
:root .ow-num { min-width: 70px; max-width: 100px; font-variant-numeric: tabular-nums; }
:root .ow-msg { margin: 0; min-height: 1.4em; color: var(--tp-moss, #4f6b3a); }
:root .ow-msg.is-bad { color: var(--seal); }
/* the link from 咨询 to the plans page */
:root .rd-plans { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 6px; padding: 16px 20px; text-decoration: none; color: inherit; }
:root .rd-plans > span { display: grid; gap: 3px; min-width: 0; }
:root .rd-plans b { font-size: 16px; font-weight: 600; }
:root .rd-plans > span > span { font-size: 14px; color: var(--ink-soft); }
:root .rd-plans em { font-style: normal; color: var(--seal); white-space: nowrap; font-weight: 600; }
:root .rd-plans:hover em { text-decoration: underline; }
/* the two board games fit on one phone screen: no breadcrumb under the back button, and the merge board sized to the height */
@media (max-width: 760px) {
  :root .match-page .crumbs { display: none; } /* 五行合成 keeps its breadcrumb: it is the page's only title */
  :root .merge-page .th-title, :root .match-page .th-title { margin-top: 0; }
  :root .merge-page .mg-board { max-width: min(420px, 100%, calc(100svh - 360px)); min-width: 260px; }
}

/* ---------- birth form: optional settings folded, errors under their own field ---------- */
.more-set summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; list-style: none; }
.more-set summary::-webkit-details-marker { display: none; }
.more-set summary::before { content: '+'; display: inline-block; width: 1em; color: var(--gold); font-weight: 600; }
.more-set[open] summary::before { content: '−'; }
.more-set .ms-hint { font-weight: 400; font-size: 13px; color: var(--ink-faint); }
.more-set .ms-hint.is-warn { color: #9a5a1c; }
.more-set .ms-sub { margin: 18px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 600; font-size: 14px; }
.field.has-err input, .field.has-err select, .field.has-err .seg { border-color: #c4705c; box-shadow: 0 0 0 2px rgba(196, 112, 92, .14); }
.field-err { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #9b3324; }
:lang(zh) .field-err { font-size: 14px; }

/* ---------- shared Day Master card page ---------- */
.card-page .cp-hero { text-align: center; padding-top: 8px; }
.cp-kicker { margin: 0; font-size: 13px; letter-spacing: .14em; color: var(--seal, #a8402e); }
.cp-name { margin: 8px 0 4px; font-size: clamp(28px, 7vw, 40px); line-height: 1.2; }
.cp-tag { margin: 0 0 18px; color: var(--ink-soft); font-style: italic; }
.cp-card { display: block; width: min(320px, 78vw); height: auto; margin: 0 auto 18px; border-radius: 16px; box-shadow: 0 14px 30px rgba(40, 30, 20, .25); }
.cp-about { max-width: 34em; margin: 0 auto 26px; text-align: left; line-height: 1.8; }
.cp-cta { text-align: center; padding: 22px 18px; }
.cp-cta h2 { margin: 0 0 6px; }
.cp-cta p { margin: 0 0 16px; color: var(--ink-soft); }
.cp-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cp-acts a { text-decoration: none; }
.cp-cta .cp-small { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.cp-all { margin-top: 30px; }
.cp-all h2 { font-size: 18px; text-align: center; }
.cp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cp-grid a { display: block; text-align: center; color: var(--ink); text-decoration: none; font-size: 13px; }
.cp-grid img { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 4px; }
.cp-grid a[aria-current] img { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) { .cp-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; } .cp-grid a { font-size: 11.5px; } }
/* the save line on its own row, then the three actions side by side */
:root .sum-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: start; }
.sum-acts .save-box { grid-column: 1 / -1; }
.sum-acts .save-box:empty { display: none; }
.sum-acts .btn-ghost { padding-inline: 4px; white-space: nowrap; font-size: 14px; }

/* ---------- yearly report ---------- */
.report-page .rp-head { text-align: center; margin: 6px 0 18px; }
.rp-kicker { margin: 0; font-size: 13px; letter-spacing: .14em; color: var(--seal); }
.rp-head h1 { margin: 8px 0 6px; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.25; }
.rp-who { margin: 0; color: var(--ink-soft); font-size: 14px; }
.rp-who a { color: var(--gold); }
.rp-sample { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r); background: var(--gold-soft); font-size: 14px; }
.rp-sec { margin-bottom: 14px; padding: 18px 18px 8px; }
.rp-sec h2 { margin: 0 0 10px; font-size: 19px; }
.rp-sec p { line-height: 1.85; }
.rp-lead { font-weight: 600; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chips span { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 13.5px; }
.rp-rel { list-style: none; margin: 0 0 10px; padding: 0; }
.rp-rel li { padding: 10px 0; border-top: 1px dashed var(--line); line-height: 1.8; }
.rp-rel li:first-child { border-top: 0; padding-top: 0; }
.rp-rel b { display: inline-block; min-width: 3.2em; margin-right: 8px; color: var(--seal); }
.rp-areas { margin: 0 0 10px; }
.rp-areas div { padding: 10px 0; border-top: 1px dashed var(--line); }
.rp-areas div:first-child { border-top: 0; padding-top: 0; }
.rp-areas dt { font-weight: 700; margin-bottom: 4px; }
.rp-areas dd { margin: 0; line-height: 1.85; }
.rp-months { list-style: none; margin: 0 0 10px; padding: 0; }
.rp-months li { padding: 10px 0; border-top: 1px dashed var(--line); }
.rp-months li:first-child { border-top: 0; padding-top: 0; }
.rp-m-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rp-m-h b { font-size: 17px; }
.rp-m-h span { color: var(--ink-faint); font-size: 13px; }
.rp-m-h em { margin-left: auto; font-style: normal; color: var(--gold); font-size: 13.5px; }
.rp-months p { margin: 4px 0 0; }
.rp-do { margin: 0 0 10px; padding-left: 1.4em; line-height: 1.9; }
.rp-lock { margin-bottom: 14px; padding: 20px 18px; text-align: center; border: 1px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), transparent 70%); }
.rp-lock h2 { margin: 0 0 10px; font-size: 18px; }
.rp-lock ul { display: inline-block; margin: 0 0 16px; padding-left: 1.2em; text-align: left; line-height: 1.9; }
.rp-lock .btn-primary { display: inline-block; text-decoration: none; }
.rp-small { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.rp-acts { text-align: center; }
.rp-method { margin: 18px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-faint); }
@media print {
  .report-page ~ .site-foot, .site-head, .tabbar, .install-bar, .rp-acts, .rp-who a, .bg-arch { display: none !important; }
  body { background: #fff !important; }
  .rp-sec { box-shadow: none !important; border: 1px solid #ddd; break-inside: avoid; }
  .rp-months li { break-inside: avoid; }
}
.rp-lock .btn-primary, .cp-acts a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding-block: 0; }
.rp-promo { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--gold); background: var(--gold-soft); color: var(--ink); text-decoration: none; }
.rp-promo b { color: var(--seal); font-size: 16px; }
.rp-promo span { font-size: 13.5px; color: var(--ink-soft); }
:root .pr-grid.is-one { grid-template-columns: minmax(0, 460px); justify-content: center; }
.pr-preview { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: var(--gold); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
/* match-3 card art: muted to sit with the ink-wash cards beside it */
.pa-elements img { filter: saturate(.55) sepia(.12) brightness(1.03); }
/* 每日三件事: the koi pond spans both columns under the stick and the wooden fish */
:root .play-grid-2 .daily-pond { grid-column: 1 / -1; }
/* phones, 抽签 and 敲木鱼: the pond sits at the end of the page instead of behind it, clear of the tab bar */
.bg-scene.is-inline { position: relative; inset: auto; z-index: 0; height: 240px; margin-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
.bg-scene.is-inline .bg-pond { position: absolute; bottom: 0 !important; height: 100% !important; }
:root.scene-inline main.fun-page { padding-bottom: 12px !important; }
/* report: richer sections */
.rp-rel .rp-why { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.7; }
.rp-rhythm { list-style: none; margin: 0 0 10px; padding: 0; }
.rp-rhythm li { position: relative; padding: 9px 0 9px 18px; border-top: 1px dashed var(--line); line-height: 1.8; }
.rp-rhythm li:first-child { border-top: 0; }
.rp-rhythm li::before { content: ''; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.rp-rhythm li.is-push::before { background: var(--seal); }
.rp-rhythm li.is-rest::before { background: #7f9a72; }
.rp-rhythm li.is-move::before { background: #5f86b8; }
.rp-rhythm li.is-press::before { background: #8a6a44; }
.rp-months li.is-key .rp-m-h b { color: var(--seal); }
.rp-months li.is-key .rp-m-h em { font-weight: 600; }
.rp-sub { margin: 16px 0 6px; font-size: 16px; }
.rp-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; }
.rp-price b { font-size: 20px; color: var(--ink); }
.rp-price span { font-size: 13px; color: var(--ink-faint); }
.rp-rules { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: left; }
.rp-rules h3 { margin: 0 0 6px; font-size: 15px; text-align: center; }
.rp-rules ul { display: block; margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.85; color: var(--ink-soft); }
.rp-lock-sample { margin-top: 14px; }
.rp-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rp-acts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
/* home: the yearly report, a slim strip at the end of the page */
.rpsec { padding: 6px 0 28px; }
.rp-band { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 22px 16px 26px; border: 1px solid rgba(140, 111, 69, .3); background: linear-gradient(100deg, var(--gold-soft), rgba(255, 252, 245, .95) 45%); overflow: hidden; }
.rp-band::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--seal); }
.rp-band-art { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fdf7ec, #ead6b4); box-shadow: inset 0 0 0 1.5px rgba(168, 64, 46, .35); color: var(--seal); line-height: 1; }
.rp-band-art b { font-size: 18px; letter-spacing: .06em; margin-top: 10px; }
.rp-band-art small { font-size: 10.5px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 10px; }
.rp-band-text { display: grid; gap: 3px; min-width: 0; }
.rp-band-text strong { font-size: 17px; font-weight: 600; }
.rp-band-text span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.rp-band-text em { font-style: normal; font-size: 12.5px; color: var(--ink-faint); }
.rp-band-acts { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rp-band-go { padding: 9px 22px; border-radius: 999px; background: var(--seal); color: #fff; font-size: 14px; white-space: nowrap; text-decoration: none; }
.rp-band-go:hover { filter: brightness(1.06); }
.rp-band-mine { font-size: 12.5px; color: var(--gold); white-space: nowrap; }
@media (max-width: 600px) {
  .rp-band { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; padding: 18px 16px 16px; background: linear-gradient(180deg, var(--gold-soft), rgba(255, 252, 245, .95) 55%); }
  .rp-band-acts { flex-direction: row; justify-content: center; gap: 18px; margin-top: 4px; }
  .rp-band-text { justify-items: center; }
}
:root .rp-band a.rp-band-go, :root .rp-band a.rp-band-go:visited { color: #fff; }
:root .rp-band a.rp-band-mine { color: var(--gold); }

/* 丁未, the fire goat: a red paper-cut goat with the year's name under it */
.rp-seal { display: grid; justify-items: center; gap: 2px; width: 64px; }
.rp-seal img { display: block; width: 60px; height: auto; }
.rp-seal i { font-style: normal; font-family: "Ma Shan Zheng", "Noto Serif SC", serif; font-size: 16px; line-height: 1; letter-spacing: .12em; color: var(--seal); }
@media (max-width: 600px) { .rp-seal { width: 62px; } .rp-seal img { width: 62px; } .rp-seal i { font-size: 14px; } }
/* phones: bigger hero cards, the fan spread to match, the dial still whole above them */
@media (max-width: 760px) {
  :root.temple body[data-tab="home"] .hero-fan, .temple body[data-tab="home"] .hero-fan { --gate: 300px; --card-w: 138px; --spread: 74px; --taiji-gap: 58px; }
}
@media (max-width: 380px) {
  :root.temple body[data-tab="home"] .hero-fan, .temple body[data-tab="home"] .hero-fan { --gate: 280px; --card-w: 124px; --spread: 66px; }
}
/* sign-in dialog: Google, or an emailed link */
.signin-card { position: relative; display: grid; gap: 10px; text-align: center; }
.signin-card p { margin: 0; }
.signin-card .btn-primary, .signin-card .btn-ghost { width: 100%; }
.signin-or { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 12.5px; }
.signin-or::before, .signin-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.signin-msg { min-height: 1.2em; font-size: 13px; color: var(--ink-soft); }
.signin-msg.is-ok { color: #3f6f45; }
.signin-msg.is-bad { color: #9b3324; }
.signin-note { font-size: 12px; color: var(--ink-faint); }
.signin-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-faint); cursor: pointer; }
/* the report tab: three things the report gives, then the way in */
.rr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.rr-card { display: grid; gap: 6px; align-content: start; padding: 18px; color: var(--ink); text-decoration: none; }
.rr-card b { font-size: 17px; color: var(--seal); }
.rr-card span { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.rr-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rr-acts a { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; text-decoration: none; }
.rr-price { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-faint); }
.rr-price a { color: var(--gold); display: inline-block; }
@media (max-width: 700px) { .rr-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .rr-acts a { flex: 1 1 140px; min-width: 0; } }
:root .script-btn { margin-right: 6px; min-width: 0; padding-inline: 10px; }
.signin-step { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; font-size: 16px; }
.signin-step i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--seal); color: #fff; font-style: normal; font-size: 12.5px; }
.signin-same { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-soft); }
/* sign-in text: each sentence on its own line, never a lone character wrapping */
.signin-lede span { display: block; text-wrap-style: balance; }
.signin-code { display: grid; gap: 10px; }
.signin-code input { letter-spacing: .3em; font-size: 20px; }
.signin-resend { border: 0; background: none; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.signin-code { display: grid; gap: 10px; }
.signin-code input { letter-spacing: .3em; font-size: 20px; }
.signin-resend { border: 0; background: none; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.signin-card .signin-lede { font-size: 13.5px; color: var(--ink-soft); }
.signin-msg:empty { display: none; }
.name-msg { min-height: 0; margin: 6px 0 0 !important; font-size: 13px; color: #9b3324 !important; }
.name-msg:empty { display: none; }

/* ---------- 念珠 prayer beads (beads.html) ---------- */
:root main.fun-page.daily.beads-page .bd-box { position: relative; max-width: 560px; margin: 0 auto; padding: 14px 14px 18px; display: grid; gap: 14px; border-radius: 14px; background: rgba(251, 248, 242, .94); box-shadow: inset 0 0 0 1px var(--ds-line-2), var(--ds-shadow); }
:root .bd-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 460px; height: auto; margin: 0 auto; border-radius: var(--ds-r-card); overflow: hidden; outline: 0;
  background: radial-gradient(90% 80% at 50% 42%, #faf6ef 0%, #f1e9dc 55%, #e5d9c5 100%); box-shadow: inset 0 0 0 1px rgba(74, 52, 38, .1), inset 0 18px 40px -30px rgba(60, 38, 20, .35), var(--ds-shadow);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
:root .bd-stage canvas { position: absolute; inset: 0; display: block; }
:root .bd-stage.is-drag { cursor: grabbing; }
:root .bd-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--ds-red), var(--ds-shadow); }
:root .bd-stage.is-paused canvas { opacity: .55; transition: opacity .3s; }
:root .bd-count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 2px; pointer-events: none; color: var(--ds-ink); white-space: nowrap; }
:root .bd-count b { font: 400 46px/1 var(--f-display, Georgia, serif); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: rgba(43, 39, 34, .86); }
:root .bd-count span { font: 500 16px/1 var(--f-display, Georgia, serif); color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
:root .bd-sub { margin: -4px 0 0; text-align: center; font-size: 14px; letter-spacing: .04em; color: var(--ds-ink-2); font-variant-numeric: tabular-nums; }
:root .bd-done, :root .bd-paused { position: absolute; left: 16px; right: 16px; top: 14px; margin: 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ds-ink-2);
  background: rgba(251, 248, 242, .88); border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); padding: 8px 12px; pointer-events: none; animation: bd-in .6s ease both; }
@keyframes bd-in { from { opacity: 0; } to { opacity: 1; } }
:root .bd-hint { margin: 0; text-align: center; font-size: 13px; color: var(--ds-ink-3); }
:root .bd-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
:root .bd-btn, :root .bd-goal button { min-height: 40px; padding: 0 14px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-line); background: var(--ds-card); color: var(--ds-ink);
  font: inherit; font-size: 14.5px; cursor: pointer; }
:root .bd-btn[aria-pressed="true"] { border-color: rgba(168, 64, 46, .5); color: var(--ds-red-dark); background: var(--ds-red-soft); }
:root .bd-btn:focus-visible, :root .bd-goal button:focus-visible { outline: 2px solid var(--ds-red); outline-offset: 2px; }
:root .bd-reset { color: var(--ds-ink-2); }
:root .bd-goal { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--ds-ink-3); }
:root .bd-goal button { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
:root .bd-goal button[aria-checked="true"] { border-color: var(--ds-ink-2); color: var(--ds-ink); font-weight: 600; }
:root .bd-about { text-align: left; margin-top: 8px; padding: 16px 18px; border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line-2); display: grid; gap: 8px; }
:root .bd-about h2 { margin: 0; font: 600 16px/1.4 var(--f-body); letter-spacing: .06em; color: var(--ds-ink); }
:root .bd-about p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ds-ink-2); }
:root .bd-about .bd-store { font-size: 13px; color: var(--ds-ink-3); }
@media (prefers-reduced-motion: reduce) { :root .bd-done, :root .bd-paused { animation: none; } }

/* ---------- Home: 静一会儿, a quiet minute (beads and pond side by side; fish and stick as small links) ---------- */
:root #play .play-groups { grid-template-columns: minmax(0, 1fr); }
:root .quiet .qt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
:root .qt-card { display: flex; flex-direction: column; border-radius: var(--ds-r-card); overflow: hidden; background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow);
  text-decoration: none; color: var(--ds-ink); transition: transform .2s, box-shadow .2s; }
:root .qt-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow-lift); }
:root .qt-card:focus-visible, :root .qt-mini:focus-visible { outline: 2px solid var(--ds-red); outline-offset: 2px; }
:root .qt-art { display: block; aspect-ratio: 2.1 / 1; max-height: 220px; width: 100%; overflow: hidden; }
:root .qt-art img { display: block; width: 100%; height: 100%; }
:root .qt-beads .qt-art { background: radial-gradient(120% 100% at 50% 30%, #f8f3ea 0%, #efe6d6 65%, #e7dbc7 100%); }
:root .qt-beads .qt-art img { object-fit: contain; padding: 6% 7% 2%; box-sizing: border-box; }
:root .qt-pond .qt-art { background: #e6dfcf; }
:root .qt-pond .qt-art img { object-fit: cover; }
:root .qt-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
:root .qt-verb { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--ds-red-dark); }
:root:is(:lang(en), :lang(fr)) .qt-verb { letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
:root .qt-text strong, :root .qt-mini-text strong { font: 600 var(--ds-h-card)/1.35 var(--f-body); letter-spacing: .04em; color: var(--ds-ink); }
:root:is(:lang(en), :lang(fr)) .qt-text strong, :root:is(:lang(en), :lang(fr)) .qt-mini-text strong { font-family: var(--f-display); letter-spacing: 0; }
:root .qt-text > span { font-size: 14.5px; line-height: 1.65; color: var(--ds-ink-2); }
:root .qt-text em { margin-top: 4px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--ds-red); }
:root .qt-text em::after { content: " →"; }
:root .qt-more { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:root .qt-mini { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--ds-r-card); background: var(--ds-card-2);
  box-shadow: inset 0 0 0 1px var(--ds-line-2); text-decoration: none; color: var(--ds-ink); min-width: 0; }
:root .qt-mini:hover { box-shadow: inset 0 0 0 1px var(--ds-line); }
:root .qt-mini-art { flex: 0 0 52px; height: 52px; border-radius: 8px; background: rgba(140, 111, 69, .1); display: grid; place-items: center; }
:root .qt-mini-art img { width: 40px; height: 40px; object-fit: contain; }
:root .qt-mini-text { display: grid; gap: 1px; min-width: 0; }
:root .qt-mini-text .qt-verb { font-size: 11.5px; }
:root .qt-mini-text strong { font-size: 16px; }
:root .qt-mini-text > span { font-size: 13px; line-height: 1.5; color: var(--ds-ink-3); }
@media (max-width: 720px) {
  :root .quiet .qt-pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :root .qt-art { aspect-ratio: 2.4 / 1; }
  :root .qt-text { padding: 12px 14px 14px; }
}
@media (max-width: 400px) {
  :root .qt-more { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
:root .bd-wood { flex-wrap: wrap; }
:root .bd-wood button { display: inline-flex; align-items: center; gap: 6px; }
:root .bd-wood button i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* bead page, settings as a small table under the count */
:root .bd-under { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; }
:root .bd-under .bd-sub { margin: 0; }
:root .bd-reset { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13.5px; color: var(--ds-ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:root .bd-reset:hover { color: var(--ds-red-dark); }
:root .bd-set { display: grid; border-radius: var(--ds-r-card); box-shadow: inset 0 0 0 1px var(--ds-line-2); background: var(--ds-card); }
:root .bd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 14px; }
:root .bd-row + .bd-row { border-top: 1px solid var(--ds-line-2); }
:root .bd-row > span { font-size: 14.5px; color: var(--ds-ink-2); letter-spacing: .06em; flex: none; }
:root .bd-swatches { display: flex; gap: 6px; }
:root .bd-swatches button { display: grid; justify-items: center; gap: 2px; min-width: 40px; padding: 4px 2px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; color: var(--ds-ink-3); border-radius: 8px; }
:root .bd-swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 1px 2px rgba(60, 38, 20, .2); }
:root .bd-swatches button[aria-checked="true"] { color: var(--ds-ink); font-weight: 600; }
:root .bd-swatches button[aria-checked="true"] i { box-shadow: 0 0 0 2px var(--ds-card), 0 0 0 3.5px var(--ds-ink-2); }
:root .bd-seg { display: flex; gap: 6px; }
:root .bd-seg button { min-height: 34px; padding: 0 14px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-line); background: transparent; color: var(--ds-ink-2); font: inherit; font-size: 13.5px; cursor: pointer; }
:root .bd-seg button[aria-checked="true"] { border-color: var(--ds-ink-2); color: var(--ds-ink); font-weight: 600; background: var(--ds-card-2); }
:root .bd-swatches button:focus-visible, :root .bd-seg button:focus-visible, :root .bd-reset:focus-visible { outline: 2px solid var(--ds-red); outline-offset: 2px; }
:root .bd-row-wood { justify-content: center; }
:root .bd-row-wood .bd-swatches { gap: 14px; }
:root .bd-under { align-items: center; }
:root .bd-spk { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ds-line); background: var(--ds-card); color: var(--ds-ink-3); cursor: pointer; padding: 0; }
:root .bd-spk svg { width: 20px; height: 20px; }
:root .bd-spk[aria-pressed="true"] { color: var(--ds-red-dark); border-color: rgba(168, 64, 46, .4); }
:root .bd-spk[aria-pressed="true"] .off, :root .bd-spk[aria-pressed="false"] .on { display: none; }
:root .bd-spk:focus-visible { outline: 2px solid var(--ds-red); outline-offset: 2px; }
:root .bd-about h3 { margin: 6px 0 0; font: 600 15px/1.4 var(--f-body); letter-spacing: .04em; color: var(--ds-ink); }
:root .bd-good { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
:root .bd-good li { display: grid; gap: 2px; }
:root .bd-good b { font-size: 15px; color: var(--ds-ink); letter-spacing: .04em; }
:root .bd-good span { font-size: 14.5px; line-height: 1.75; color: var(--ds-ink-2); }
:root .bd-row-wood .bd-swatches button span { font-size: 14px; font-weight: 600; }

/* home: the pond as one wide card (look only; feeding is inside); the beads among the games */
:root .qt-wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
:root .qt-wide .qt-art { aspect-ratio: auto; max-height: none; height: 100%; min-height: 200px; position: relative; }
:root .qt-wide .qt-text { align-self: center; padding: 18px 22px; }
:root .qt-cap { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-size: 12px; letter-spacing: .06em; color: #fff; background: rgba(40, 52, 50, .42); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 720px) { :root .qt-wide { grid-template-columns: minmax(0, 1fr); } :root .qt-wide .qt-art { min-height: 0; height: auto; aspect-ratio: 2.4 / 1; } :root .qt-wide .qt-text { padding: 12px 14px 14px; } }
:root .pa-beads { padding: 0 !important; background: #e9e4d8 !important; }
:root .pa-beads img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
:root #play .play-group .play-grid.play-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  :root #play .play-group .play-grid.play-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  :root #play .play-grid-3 .play-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; }
  :root #play .play-grid-3 .play-art { aspect-ratio: 1 / 1; height: auto; padding-top: 0; }
}

/* home: 预测 — the 2027 report with the goat on the left, and three quick forecasts beside it */
:root .rpsec { padding: 8px 0 32px; }
:root .fc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
:root .fc-main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 18px; row-gap: 14px; align-items: center;
  padding: 20px 22px; border-radius: var(--ds-r-card); background: linear-gradient(110deg, rgba(232, 214, 180, .5), var(--ds-card) 55%); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); }
:root .fc-main .rp-seal { grid-row: 1 / 3; align-self: center; margin: 0; }
:root .fc-main-text { display: grid; gap: 4px; min-width: 0; }
:root .fc-main-text strong { font: 600 21px/1.3 var(--f-body); letter-spacing: .06em; color: var(--ds-ink); }
:root:is(:lang(en), :lang(fr)) .fc-main-text strong { font-family: var(--f-display); letter-spacing: 0; }
:root .fc-main-text span { font-size: 14px; color: var(--ds-ink-2); }
:root .fc-main-text em { font-style: normal; font-size: 13px; color: var(--ds-ink-3); }
:root .fc-main-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
:root .fc-main-acts .btn-primary { min-height: 42px; padding: 0 20px; }
:root .fc-mine, :root .fc-mine:visited { font-size: 14px; color: var(--ds-red-dark); text-decoration: none; }
:root .fc-list { display: grid; grid-template-rows: repeat(4, 1fr); border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); overflow: hidden; }
:root .fc-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ds-ink); }
:root .fc-row + .fc-row { border-top: 1px solid var(--ds-line-2); }
:root .fc-row:hover { background: var(--ds-card-2); }
:root .fc-ic { width: 36px; height: 36px; padding: 7px; box-sizing: border-box; border-radius: 50%; background: var(--ds-red-soft); fill: none; stroke: var(--ds-red-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:root .fc-row span { display: grid; gap: 1px; min-width: 0; }
:root .fc-row b { font-size: 15.5px; font-weight: 600; letter-spacing: .04em; }
:root .fc-row small { font-size: 13px; color: var(--ds-ink-3); line-height: 1.45; }
:root .fc-row > i { font-style: normal; font-size: 20px; color: var(--ds-ink-3); }
@media (max-width: 760px) {
  :root .fc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :root .fc-main { padding: 16px; column-gap: 14px; }
  :root .fc-main .rp-seal { grid-row: 1; }
  :root .fc-main-acts { grid-column: 1 / -1; }
  :root .fc-main-acts .btn-primary { flex: 1; }
  :root .fc-row { padding: 11px 14px; }
}

/* 锦鲤池: the visitor's own fish on a canvas over the pond scene; the controls stay small */
:root .koi-canvas { position: fixed; pointer-events: none; z-index: 0; }
:root .pond-page .pd-box { max-width: 520px; margin: 0 auto; display: grid; justify-items: center; gap: 10px; position: relative; z-index: 2; }
:root .pd-left { margin: 0; font-size: 15px; color: var(--ds-ink); letter-spacing: .04em; text-align: center; }
:root .pd-acts { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
:root .pd-act { min-height: 46px; padding: 0 26px; border-radius: 999px; font-size: 16px; letter-spacing: .1em; }
:root:is(:lang(en), :lang(fr)) .pd-act { letter-spacing: .02em; }
:root .pd-tip { min-height: 1.4em; margin: 0; text-align: center; font-size: 13.5px; color: var(--ds-ink-2); }
:root .pd-tip.is-note { color: var(--ds-red-dark); }
:root .pd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
:root .pd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--ds-line); background: rgba(251, 248, 242, .92); font: inherit; font-size: 13.5px; color: var(--ds-ink); cursor: pointer; }
:root .pd-chip small { font-size: 11.5px; color: var(--ds-ink-3); }
:root .pd-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
:root .pd-card { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: var(--ds-r-card); background: rgba(251, 248, 242, .97); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); display: grid; gap: 6px; }
:root .pd-card-head { display: flex; align-items: baseline; gap: 10px; }
:root .pd-card-head b { font-size: 17px; }
:root .pd-card-head span { font-size: 13px; color: var(--ds-red-dark); letter-spacing: .06em; }
:root .pd-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ds-ink-3); cursor: pointer; padding: 0 4px; }
:root .pd-card p { margin: 0; font-size: 14.5px; color: var(--ds-ink-2); line-height: 1.6; }
:root .pd-card .pd-card-sub { font-size: 13px; color: var(--ds-ink-3); }
:root .pd-name { display: grid; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--ds-ink-3); }
:root .pd-name span { display: flex; gap: 8px; }
:root .pd-name input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-line); background: #fff; font: inherit; font-size: 15px; }
:root .pd-save { margin: 0; text-align: center; font-size: 12.5px; color: var(--ds-ink-3); line-height: 1.6; background: rgba(244, 239, 228, .85); border-radius: 999px; padding: 2px 12px; }
:root .pd-link { border: 0; background: none; padding: 0; font: inherit; color: var(--ds-red-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:root .pd-choose { display: grid; gap: 8px; width: 100%; box-sizing: border-box; padding: 14px 16px; }
:root .pd-choose p { margin: 0; font-size: 13.5px; color: var(--ds-ink-2); }
:root .pd-choose-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
:root .pd-choose-acts button { display: grid; gap: 2px; padding: 8px; }
:root .pd-choose-acts small { font-size: 12px; color: var(--ds-ink-3); }
:root.koi-aiming .bg-pond { cursor: crosshair; }

/* 命理师: five open places, how it works, how to join */
:root main.fun-page.daily.masters-page .ms-box { max-width: 980px; margin: 0 auto; padding: 0; display: grid; gap: 22px; background: none; box-shadow: none; }
:root .masters-page .daily-wrap { max-width: 1040px; }
:root .ms-status { margin: 0; justify-self: center; padding: 6px 16px; border-radius: 999px; background: var(--ds-red-soft); color: var(--ds-red-dark); font-size: 14px; letter-spacing: .04em; }
:root .ms-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
:root .ms-slot { display: grid; justify-items: center; gap: 4px; padding: 18px 10px 16px; border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); text-align: center; }
:root .ms-fig { width: 64px; height: 64px; border-radius: 50%; background: var(--ds-card-2); box-shadow: inset 0 0 0 1px var(--ds-line); display: grid; place-items: center; margin-bottom: 6px; }
:root .ms-fig svg { width: 40px; height: 40px; fill: none; stroke: var(--ds-ink-3); stroke-width: 2; stroke-linecap: round; }
:root .ms-slot b { font-size: 15px; font-weight: 600; color: var(--ds-ink-2); letter-spacing: .06em; }
:root .ms-slot small { font-size: 12.5px; color: var(--ds-ink-3); }
:root .ms-slot em { margin-top: 4px; font-style: normal; font-size: 12px; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(168, 64, 46, .35); color: var(--ds-red-dark); }
:root .ms-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
:root .ms-panel { padding: 18px 20px; border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); display: grid; gap: 10px; align-content: start; text-align: left; }
:root .ms-panel h2 { margin: 0; font: 600 17px/1.4 var(--f-body); letter-spacing: .06em; color: var(--ds-ink); }
:root .ms-steps, :root .ms-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.65; color: var(--ds-ink-2); }
:root .ms-apply { margin: 2px 0 0; font-size: 14px; color: var(--ds-ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
:root .ms-mail { font-weight: 600; color: var(--ds-ink); user-select: all; }
:root .ms-copy { min-height: 30px; padding: 0 10px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-line); background: transparent; font: inherit; font-size: 12.5px; color: var(--ds-ink-2); cursor: pointer; }
@media (max-width: 760px) {
  :root .ms-slots { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); overflow: hidden; }
  :root .ms-slot { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 12px; row-gap: 0; padding: 10px 14px; border-radius: 0; box-shadow: none; background: none; text-align: left; }
  :root .ms-slot + .ms-slot { border-top: 1px solid var(--ds-line-2); }
  :root .ms-fig { grid-row: 1 / 3; width: 48px; height: 48px; margin: 0; }
  :root .ms-fig svg { width: 30px; height: 30px; }
  :root .ms-slot em { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  :root .ms-two { grid-template-columns: minmax(0, 1fr); }
}
:root .pd-tip.is-aim { color: var(--ds-red-dark); font-size: 15px; font-weight: 600; }
/* 锦鲤池: the button first, the day's count under it in a quieter voice; the five fish in one row, each tinted with its element */
:root .pd-left { font-size: 13.5px; color: var(--ds-ink-3); }
:root .pd-chips { flex-wrap: nowrap; gap: 6px; width: 100%; max-width: 460px; margin: 0 auto; }
:root .pd-chip { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 4px 4px 5px; border-radius: 12px;
  border-color: color-mix(in srgb, var(--el) 38%, transparent); background: color-mix(in srgb, var(--el) 13%, rgba(251, 248, 242, .94)); }
:root .pd-chip b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: 14px; white-space: nowrap; }
:root .pd-chip small { color: color-mix(in srgb, var(--el) 70%, #4a4038); }
:root .pd-chip .pd-dot { width: 8px; height: 8px; background: var(--el); box-shadow: none; }
/* 静一会儿: 敲木鱼 and 今日一签 first, two real cards side by side with their pictures on top; the pond below */
:root .quiet .qt-more { margin: 0 0 14px; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root .quiet .qt-mini { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; background: var(--ds-card); box-shadow: inset 0 0 0 1px var(--ds-line), var(--ds-shadow); }
:root .quiet .qt-mini-art { flex: none; height: auto; aspect-ratio: 16 / 9; border-radius: 0; background: radial-gradient(120% 100% at 50% 40%, #f8f1e2, #eadfc8); }
:root .quiet .qt-mini-art img { width: 78%; height: 86%; object-fit: contain; }
:root .quiet .qt-mini-text { padding: 12px 16px 14px; gap: 3px; }
:root .quiet .qt-mini-text strong { font-size: 18px; }
:root .quiet .qt-mini-text > span { font-size: 14px; color: var(--ds-ink-2); }
@media (max-width: 720px) {
  :root .quiet .qt-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :root .quiet .qt-mini-art { aspect-ratio: 4 / 3; }
  :root .quiet .qt-mini-text { padding: 10px 12px 12px; }
  :root .quiet .qt-mini-text strong { font-size: 16px; }
  :root .quiet .qt-mini-text > span { font-size: 13px; }
}
/* the two pictures exactly the same height, so the two titles sit on one line */
:root .quiet .qt-mini-art { aspect-ratio: auto; height: 150px; }
@media (max-width: 720px) { :root .quiet .qt-mini-art { aspect-ratio: auto; height: 120px; } }
:root .quiet .qt-mini { justify-content: flex-start; }
:root .quiet .qt-mini-art { display: flex; align-items: center; justify-content: center; }
:root .quiet .qt-mini-art img { width: 80%; height: 80%; }
/* 敲木鱼 and 今日一签 on the home page show the same picture as their pages: the zen room and the temple hall behind,
   the monk with his wooden fish and the girl with the stick pot standing where they stand there */
:root .quiet .qt-mini-art.qt-zen, :root .quiet .qt-mini-art.qt-temple { position: relative; display: block; height: auto; aspect-ratio: 4 / 3; background: #efe6d2 url(../assets/art/zen.svg?v=397) center bottom / cover no-repeat; }
:root .quiet .qt-mini-art.qt-temple { background-image: url(../assets/art/temple.svg?v=397); }
:root .quiet .qt-zen img, :root .quiet .qt-temple img { position: absolute; left: 22.5%; bottom: 4%; width: 55%; height: auto; }
@media (max-width: 720px) { :root .quiet .qt-mini-art.qt-zen, :root .quiet .qt-mini-art.qt-temple { height: auto; aspect-ratio: 4 / 3; } }
/* the 念珠 picture is square; a wider card trims sky rather than the monk */
:root .pa-beads img { object-fit: cover; object-position: 50% 92%; }
/* phones: the pond is fixed at the foot of the window on every page with it; the page ends with room to see it clear */
@media (max-width: 760px) {
  :root.has-scene body:not(:has(.pond-page)) main.fun-page { padding-bottom: 250px !important; }
  :root body:not(:has(.pond-page)) .bg-pond { height: 230px !important; bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* the leaning string leaves a narrow hollow: the count stands in it, the number over "/ 108" */
:root .bd-count { flex-direction: column; align-items: center; gap: 4px; }
:root .bd-count b { font-size: 40px; }
:root .bd-count span { font-size: 14px; }
/* the beads picture keeps the finger: no page scroll, no zoom, no callout while pulling */
:root .bd-stage { touch-action: none; overscroll-behavior: contain; -webkit-touch-callout: none; }
/* phones: 繁 / EN / 登录 sit together at the right of the bar, not spread across it */
@media (max-width: 760px) {
  :root body.has-subbar .site-nav, :root body[data-tab] .site-nav { flex: 0 0 auto; width: auto; margin-left: auto; justify-content: flex-end; gap: 8px; }
  :root body.has-subbar .site-nav > *, :root body[data-tab] .site-nav > * { margin: 0; }
}
/* daily pages: the breadcrumb is the page's heading (每日 › 念珠), a little larger; the big title repeating its last
   word is kept for screen readers and search only */
:root main.daily:not(.match-page) .wrap > .th-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root main.daily:not(.match-page) .crumbs { font-size: 20px; gap: 10px; letter-spacing: .1em; margin: 6px 0 12px; }
:root main.daily:not(.match-page) .crumbs a { font-weight: 600; }
:root main.daily:not(.match-page) .crumbs > span:last-child { color: var(--ds-ink); font-weight: 600; }
:root main.daily:not(.match-page) .crumbs > span[aria-hidden] { color: var(--ds-ink-3); font-weight: 400; }
:root:is(:lang(en), :lang(fr)) main.daily:not(.match-page) .crumbs { font-size: 19px; letter-spacing: .01em; }
/* 锦鲤池 controls: the button alone on the centre line, the speaker set off to the right; the status under it,
   in red while it waits for a tap on the water */
:root .pond-page .pd-acts { position: relative; width: 100%; justify-content: center; }
:root .pond-page .pd-left.is-aim { color: var(--ds-red-dark); font-weight: 600; font-size: 15px; }
:root .pond-page .pd-save[hidden] { display: none; }
:root .pond-page .lede, :root .pond-page .crumbs { text-align: center; justify-content: center; }
/* phones: the pond page is one screen, nothing to scroll; the water fills what is left under the controls */
@media (max-width: 760px) {
  :root:has(.pond-page), :root body:has(.pond-page) { height: 100%; overflow: hidden; overscroll-behavior: none; }
  :root body:has(.pond-page) main.pond-page { padding-bottom: 0 !important; }
  :root body:has(.pond-page) .back-link { margin-bottom: 0; }
}
@media (max-width: 760px) {
  /* the breadcrumb already leads back, so the back pill goes; the intro fits one line; the pond starts under the controls */
  :root body:has(.pond-page) .back-link { display: none; }
  :root .pond-page .crumbs { margin-top: 14px; }
  :root .pond-page .lede { font-size: 14px; margin: 0 0 10px; white-space: nowrap; letter-spacing: 0; }
  :root .pond-page .pd-box { gap: 8px; }
  :root body:has(.pond-page) .bg-pond { height: max(250px, calc(100dvh - 430px)) !important; }
}
/* 锦鲤池: the day's count and the speaker share one centred line under the button */
:root .pond-page .pd-status { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; }
:root .pond-page .pd-status .pd-left { margin: 0; }
/* chart summary: the extra lines beside the pillars; the facts box runs to the foot of the left column */
:root .sum-facts .sf-gap { display: inline-block; width: 14px; }
@media (min-width: 901px) { :root .summary .sum-more, :root .summary .warn, :root .summary .rp-promo { grid-column: 1; } :root .summary .sum-facts { grid-column: 2; grid-row: span 4; align-self: stretch; } :root .sum-facts div { padding-block: 8px; } }
/* 五行: the roles table, read from the Day Master, and two lines on the most and least plentiful */
:root .el-roles { margin-top: 22px; }
:root .el-roles h3 { font: 600 17px/1.2 var(--f-display); margin: 0 0 2px; }
:root .el-roles .basis { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 10px; }
:root .el-role-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
:root .el-role-tbl th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); padding: 6px 10px; border-bottom: 1px solid var(--ds-line); }
:root .el-role-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--ds-line); vertical-align: middle; }
:root .el-role-tbl td:first-child { font-weight: 600; font-size: 16px; }
:root .el-role-tbl td:nth-child(3) { font-variant-numeric: tabular-nums; }
:root .el-role-tbl td:last-child { color: var(--ink-soft); }
:root .el-role-tbl tr.is-dm td { background: color-mix(in srgb, var(--ds-red) 5%, transparent); }
:root .el-read { margin-top: 12px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.75; color: var(--ds-ink-2, var(--ink-soft)); }
:root .el-read p { margin: 0; }
@media (max-width: 560px) { :root .el-role-tbl { font-size: 13px; } :root .el-role-tbl th, :root .el-role-tbl td { padding: 7px 6px; } }
/* 静一会儿: both pictures cropped the same way and fading the same into a paper top, so the two cards match */
:root .quiet .qt-mini-art.qt-zen, :root .quiet .qt-mini-art.qt-temple { background-size: cover; background-position: center 78%; isolation: isolate; }
:root .quiet .qt-zen::before, :root .quiet .qt-temple::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #f4ecdc 0%, rgba(244, 236, 220, .75) 40%, rgba(244, 236, 220, 0) 100%); }
:root .quiet .qt-zen img, :root .quiet .qt-temple img { z-index: 1; }
/* the girl with the stick pot is drawn smaller in her square than the monk is in his: a little larger here, so the
   two figures stand the same height on the same floor */
:root .quiet .qt-temple img { left: 24%; width: 48%; bottom: 4%; } /* measured: both figures stand 0.265 of the card width tall, on the same floor */
/* 排盘 page: my saved charts under the intro, above the form. Their own chart is one large row; the rest fold below it */
:root .my-charts { padding: 18px 20px; margin: 24px 0 20px; width: 100%; box-sizing: border-box; align-self: stretch; }
:root .my-charts .mc-title { font: 600 18px/1.3 var(--f-display); margin: 0 0 12px; }
:root .mc-me { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: var(--ds-ink); cursor: pointer;
  border: 1px solid var(--ds-red); border-radius: 12px; background: var(--ds-card); box-shadow: 0 1px 0 rgba(58, 42, 30, .04); }
:root .mc-me:hover { background: #fffdf8; }
:root .mc-dm { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ds-line);
  background: #fbf6ec; font: 600 24px/1 var(--f-display); }
:root .mc-who { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
:root .mc-who b { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .mc-who > span { font-size: 13px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root .mc-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ds-red); white-space: nowrap; }
:root .mc-go i { font-style: normal; font-size: 18px; line-height: 1; }
:root .mc-more { margin-top: 12px; border-top: 1px solid var(--ds-line); }
:root .mc-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 2px 2px; cursor: pointer; font-size: 14.5px; color: var(--ds-ink-2, var(--ds-ink)); }
:root .mc-more > summary::-webkit-details-marker { display: none; }
:root .mc-more > summary .chev { margin-left: auto; width: 16px; height: 16px; color: var(--ds-ink-3); transition: transform .2s; }
:root .mc-more > summary .chev svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root .mc-more[open] > summary .chev { transform: rotate(180deg); }
:root .mc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
:root .mc-row { display: flex; align-items: stretch; gap: 8px; }
:root .mc-item { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n i" "d i"; align-items: center; gap: 1px 8px; text-align: left; padding: 10px 12px;
  border: 1px solid var(--ds-line); border-radius: 10px; background: var(--ds-card); font: inherit; color: var(--ds-ink); cursor: pointer; }
:root .mc-item:hover { border-color: var(--ds-red); }
:root .mc-item b { grid-area: n; font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .mc-item > span { grid-area: d; font-size: 12.5px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
:root .mc-item i { grid-area: i; font-style: normal; color: var(--ds-ink-3); font-size: 18px; }
:root .mc-set { flex: none; align-self: center; padding: 7px 11px; border: 1px solid var(--ds-line); border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; line-height: 1.2; color: var(--ds-ink-3); cursor: pointer; white-space: nowrap; }
:root .mc-set:hover { color: var(--ds-red); border-color: var(--ds-red); }
:root .my-charts em { font-style: normal; white-space: nowrap; }
@media (max-width: 760px) { :root .my-charts { margin: 4px 0 0; } }
/* 敲木鱼: the encouragement line and the speaker share one centred line, as on the 念珠 page */
:root .mr-under { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
:root .mr-under .mr-hint { margin: 0; }
/* 大运流年: a score on every luck pillar and year, coloured by level; the reading cards for the selected pair */
:root .lk { position: relative; }
:root .lk-sc { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 999px; padding: 1px 0; }
:root .lk-sc.t-hi { color: #2f7a4f; background: rgba(47, 122, 79, .1); }
:root .lk-sc.t-mid { color: #8a6a2a; background: rgba(168, 132, 63, .12); }
:root .lk-sc.t-lo { color: var(--ds-red-dark); background: rgba(168, 64, 46, .1); }
:root .lr-wrap { margin-top: 18px; }
:root .lr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:root .lr-card { border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-card); padding: 14px 16px 16px; border-top: 3px solid var(--lr-c, var(--ds-line)); }
:root .lr-card.t-hi { --lr-c: #2f7a4f; } :root .lr-card.t-mid { --lr-c: #a8843f; } :root .lr-card.t-lo { --lr-c: #a8402e; }
:root .lr-card header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
:root .lr-k { font-size: 12.5px; letter-spacing: .12em; color: var(--ds-ink-3); }
:root .lr-gz { font: 600 22px/1.2 var(--f-body); }
:root .lr-p { font-size: 13px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
:root .lr-score { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; color: var(--lr-c); }
:root .lr-score b { font: 700 26px/1 var(--f-display, serif); font-variant-numeric: tabular-nums; }
:root .lr-score em { font-style: normal; font-size: 13px; font-weight: 600; }
:root .lr-god { margin: 6px 0 2px; font-size: 13px; color: var(--ds-ink-3); }
:root .lr-theme { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ds-ink); font-weight: 500; }
:root .lr-more { margin: 8px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--ds-ink-2, var(--ink-soft)); }
:root .lr-notes { margin: 8px 0 0; padding-left: 1.1em; font-size: 14px; line-height: 1.75; color: var(--ds-ink-2, var(--ink-soft)); }
:root .lr-tip { margin: 8px 0 0; font-size: 14px; line-height: 1.7; }
:root .lr-tip b { color: var(--ds-red-dark); margin-right: 2px; }
:root .lr-wrap .lock-box { margin-top: 14px; }
@media (max-width: 760px) { :root .lr-cards { grid-template-columns: minmax(0, 1fr); } }
/* the sample chart's notice runs across the top of the summary, so the name and actions keep their own row */
:root .summary .sum-sample { grid-column: 1 / -1; }
/* 报告 page: 预测 opens the page, with room under the top bar like the other pages */
:root body[data-tab="readings"] #rpsec { padding-top: 40px; }
@media (max-width: 760px) { :root body[data-tab="readings"] #rpsec { padding-top: 26px; } }
/* 敲木鱼: the line sits centred in the gap between the bar and the picture, clear of the screen; the speaker set
   off to its right, so the words themselves stay on the centre line */
:root .merit-page .mr-under { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 10px; margin: 2px 0 0; width: 100%; }
:root .merit-page .mr-under .mr-hint { grid-column: 2; margin: 0; font-size: 14px; color: rgba(74, 52, 38, .62); letter-spacing: .08em; text-align: center; }
:root .merit-page .mr-under .bd-spk { grid-column: 3; justify-self: start; width: 30px; height: 30px; background: rgba(251, 248, 242, .6); border-color: rgba(74, 52, 38, .18); }
:root .merit-page .mr-under .bd-spk svg { width: 16px; height: 16px; }
/* phones: the wooden fish page is one screen, nothing to scroll (js/merit.js sets mr-lock and fits the room and the
   pond); the breadcrumb leads back, so the back pill goes */
@media (max-width: 760px) {
  :root:has(body.mr-lock), :root body.mr-lock { height: 100%; overflow: hidden; overscroll-behavior: none; }
  :root body.mr-lock main.merit-page { padding-bottom: 0 !important; }
  /* the back pill stays, small, at the left end of the breadcrumb's line, so it costs no height */
  :root .merit-page .daily-wrap { position: relative; }
  :root body:has(.merit-page) .back-link { position: absolute; left: 12px; top: 17px; transform: translateY(-50%); margin: 0; z-index: 2;
    height: 32px; padding: 0 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
  /* 返回 already leads to 静一会儿, so the breadcrumb keeps only this page's name */
  :root .merit-page .crumbs > a, :root .merit-page .crumbs > span[aria-hidden] { display: none; }
  :root .merit-page .tp-stage { margin-inline: auto; }
}
/* 合盘 previews */
:root .pv-tag { display: none; }
@media (max-width: 760px) {
  /* 天干五合: the match's name, large, in the space beside the picture; the pair and their story underneath */
  :root .pv-row.pv-he { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "pair tag el" "text text text"; column-gap: 12px; }
  :root .pv-row.pv-he .pv-tag { display: block; grid-area: tag; align-self: center; justify-self: center; font: 600 21px/1.2 var(--f-body); letter-spacing: .12em; color: var(--ds-red-dark); }
  :root .pv-row.pv-he .pv-text em { display: none; }
  /* five team roles: the words sit in the middle, between the picture and the element */
  :root .pv-row.pv-role { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "pair text el"; column-gap: 14px; align-items: center; }
  :root .pv-row.pv-role .pv-text { padding-left: 0; }
}
@media (max-width: 760px) {
  :root .pv-row.pv-role .pv-text b { font-size: 15px; white-space: nowrap; }
  :root .pv-row.pv-role .pv-text small { font-size: 13px; }
  :root .pv-row.pv-role { column-gap: 10px; }
}
@media (max-width: 760px) {
  /* room for the title on one line: a slightly smaller picture, and the two stems stacked under the element */
  :root .pv-row.pv-role { grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 8px; }
  :root .pv-row.pv-role .pv-pair { --fig: 44px; }
  :root .pv-row.pv-role .pv-el { width: 36px; text-align: center; }
  :root .pv-row.pv-role .pv-el small { white-space: normal; font-size: 10.5px; line-height: 1.35; }
}
/* 安装到手机 */
:root .in-box { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
:root .in-done { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(47, 122, 79, .1); color: #2f7a4f; font-weight: 600; text-align: center; }
:root .in-guide { padding: 0; overflow: hidden; }
:root .in-guide summary { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
:root .in-guide summary::-webkit-details-marker { display: none; }
:root .in-guide summary b { font: 600 18px/1.3 var(--f-body); }
:root .in-guide summary span { font-size: 13px; color: var(--ds-ink-3); }
:root .in-guide summary em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--ds-red); padding: 2px 9px; border-radius: 999px; }
:root .in-guide.is-mine { box-shadow: inset 0 0 0 1.5px var(--ds-red), var(--ds-shadow); }
:root .in-steps { margin: 0; padding: 0 18px 16px 2.4em; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.7; }
:root .in-steps li::marker { color: var(--ds-red); font-weight: 700; }
:root .in-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 2px; vertical-align: -7px; border: 1px solid var(--ds-line); border-radius: 7px; background: var(--ds-card-2, #f4efe4); color: #2b6cd8; }
:root .in-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root .in-ic svg circle { fill: currentColor; stroke: none; }
:root .in-btn { margin: 0 18px 16px; width: calc(100% - 36px); }
:root .in-faq { padding: 16px 18px; }
:root .in-faq h2 { margin: 0 0 8px; font: 600 18px/1.3 var(--f-display); }
:root .in-faq dl { margin: 0; display: grid; gap: 10px; }
:root .in-faq dt { font-weight: 600; font-size: 15px; }
:root .in-faq dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ds-ink-2, var(--ink-soft)); }
:root .install-how { flex: none; font-size: 13px; font-weight: 600; color: var(--ds-red-dark); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
:root .install-page .in-box, :root .install-page .in-steps, :root .install-page .in-faq { text-align: left; }
:root .install-page .in-steps li, :root .install-page .in-faq dd { text-align: left !important; text-align-last: auto !important; }
/* 年度报告 (pricing): the small print sits close to the footer links, without a wide empty band between */
:root body:has(.pricing-page) main.pricing-page { padding-bottom: 16px !important; }
:root body:has(.pricing-page) .site-foot { padding-top: 12px; margin-top: 0; }
/* 静一会儿: the 木鱼 card holds both of the monk's practices; its two links take the place of the line under the
   title, in the same size and grey as 今日一签's line beside it, so the two cards line up */
:root .qt-mb-go { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0; }
:root .qt-mb-go a { font: inherit; color: inherit; text-decoration: none; }
:root .qt-mb-go a::after { content: " →"; }
:root .qt-mb-go a:hover { color: var(--ds-red-dark); }
/* 小游戏 cards: the small tag (静心, 闯关…) sits beside the title on the same line, not on a line of its own */
:root .play-card .play-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 6px; align-items: center; }
:root .play-card .play-text > * { grid-column: 1 / -1; }
:root .play-card .play-text > strong { grid-column: 1; grid-row: 1; min-width: 0; }
:root .play-card .play-text > .play-tag { grid-column: 2; grid-row: 1; justify-self: start; margin: 0; }
/* phones: the top bar stays pinned at the top. iOS 26 Safari softly blurs whatever page content sits just under the
   status bar; a header pinned there is read as the page's own bar and drawn sharp, its colour carried up behind the clock */
@media (max-width: 760px) { :root .site-head { position: sticky; top: 0; } }
/* the 木鱼 card art is 260 wide (room for the beads beside the fish), so it is drawn wider to keep the monk the same size */
:root .quiet .qt-zen img { width: 60.6%; }
/* 排盘 summary: the four pillars as a ruled table, a label column on the left (天干 · 地支 · 藏干) and a line between
   every row, the day pillar's column lightly shaded */
:root .sum-pillars.sp-grid { display: grid; grid-template-columns: 3.4em repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
:root .sp-grid > span { display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; }
:root .sp-grid > span:nth-child(-n+5) { border-top: 0; }
:root .sp-grid > .sp-rh { border-left: 0; font-size: 12.5px; letter-spacing: .12em; color: var(--ink-faint); background: rgba(140, 111, 69, .05); }
:root .sp-grid > .sp-c.is-day { background: rgba(168, 64, 46, .06); }
:root .sp-grid .sp-head { position: relative; padding: 18px 0 6px; font-size: 12.5px; letter-spacing: .12em; color: var(--ink-faint); }
:root .sp-grid .sp-dm { position: absolute; top: -1px; right: -1px; padding: 1px 6px; font: normal 11px/1.5 var(--f-body); letter-spacing: .04em; color: #fbf3e6; background: var(--tp-red, var(--seal)); }
:root .sp-grid b { font: 500 34px/1.15 var(--f-body); padding: 8px 0; }
:root .sp-grid b.sp-q, :root .sp-grid em.sp-q { color: var(--ink-faint); font-weight: 400; }
:root .sp-grid em { display: flex; flex-direction: column; align-items: center; gap: 2px; font-style: normal; font: 500 16px/1.25 var(--f-body); padding: 8px 0; } /* 藏干: written top to bottom, main qi first */
@media (max-width: 560px) { :root .sp-grid b { font-size: 28px; } :root .sp-grid em { font-size: 15px; } :root .sp-grid > .sp-rh { font-size: 12px; letter-spacing: .04em; } }
/* the facts beside the pillars: one ink colour and one size, so the column reads calmly and lines up */
:root .sum-facts dd { font-size: 18px; line-height: 1.4; }
:root .sum-facts dd > span:not(.el-bar):not(.el-key), :root .sum-facts dd > .term, :root .sum-facts dd > .term span { color: inherit !important; }
:root .sum-facts dd small { font-size: 13px; }
/* English / 中文 card switch: one slim pill with two flat halves; the chosen half filled, the other plain text, no
   inner boxes or borders (overrides the older temple-style rules stacked above) */
:root .lang-toggle, :root .lb-head .lang-toggle { display: inline-flex !important; align-items: center; gap: 2px; padding: 3px; width: auto;
  background: var(--ds-card-2); border: 1px solid var(--ds-line); border-radius: 999px !important; box-shadow: none !important; }
:root .lang-toggle button, :root .lb-head .lang-toggle .lb-lang { -webkit-appearance: none; appearance: none; margin: 0; min-width: 0 !important;
  padding: 5px 16px !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; background: transparent !important;
  font: 500 14px/1.4 var(--f-body); letter-spacing: .04em; color: var(--ds-ink-2); cursor: pointer; }
:root .lang-toggle button[aria-pressed=true], :root .lb-head .lang-toggle .lb-lang[aria-pressed=true] { background: var(--ds-red) !important; color: #fbf6ee; }
/* the pillars table's fuller rows: 十神 over each stem, 藏干 with their 十神, 星运, 纳音 and 神煞; small, quiet type so
   the big stems and branches still lead */
:root .sp-grid small { font-size: 13px; line-height: 1.4; padding: 7px 2px; text-align: center; color: var(--ds-ink-2); }
:root .sp-grid .sp-god { font-size: 13.5px; color: var(--ds-ink); font-weight: 500; }
:root .sp-grid .sp-god .term, :root .sp-grid .sp-sm .term { color: inherit; }
:root .sp-grid em .sp-h { display: flex; align-items: baseline; gap: 3px; }
:root .sp-grid em .sp-h small { padding: 0; font-size: 11.5px; color: var(--ds-ink-3); }
:root .sp-grid .sp-sha { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ds-ink-3); }
:root .sp-grid > span.sp-c { align-items: center; }
@media (max-width: 560px) { :root .sp-grid small { font-size: 12px; } :root .sp-grid .sp-god { font-size: 12.5px; } :root .sp-grid em .sp-h small { font-size: 10.5px; } :root .sp-grid .sp-sha { font-size: 11px; } }

/* ===== 排盘 chart, v402: two views and depth =====
   The chart sits on a raised paper board; stems and branches are small raised tiles, the day pillar's column is
   lit, the 大运 / 流年 columns are tinted gold. Rows are ruled; the label column is a slightly darker strip. */
:root .sum-chart { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 6px; max-width: 640px; }
:root .sp-views { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ds-card-2);
  border: 1px solid var(--ds-line); box-shadow: inset 0 1px 2px rgba(60, 40, 20, .08); }
:root .sp-views button { -webkit-appearance: none; appearance: none; border: 0; background: transparent; border-radius: 999px; padding: 6px 16px;
  font: 500 14px/1.3 var(--f-body); letter-spacing: .06em; color: var(--ds-ink-2); cursor: pointer; }
:root .sp-views button[aria-selected=true] { background: var(--ds-red); color: #fbf6ee; box-shadow: 0 2px 6px -2px rgba(140, 40, 25, .55); }
:root .sum-pillars.sp-grid { margin: 0; border: 1px solid #d8ccb4; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #fdfaf3, #f5eee0); box-shadow: 0 1px 0 #fff inset, 0 14px 28px -18px rgba(70, 45, 20, .55), 0 2px 4px -2px rgba(70, 45, 20, .18); }
:root .sp-grid > span { border-color: #e4d9c3; }
:root .sp-grid > .sp-rh { background: linear-gradient(90deg, #efe6d4, #f4ecdd); color: #8a7a62; }
:root .sp-grid > .sp-c.is-day { background: rgba(168, 64, 46, .07); }
:root .sp-grid > .sp-c.is-dyn { background: rgba(176, 122, 18, .07); }
:root .sp-grid .sp-head { flex-direction: column; gap: 1px; }
:root .sp-grid .sp-sub { padding: 0; font-size: 11px; letter-spacing: .02em; color: var(--ds-ink-3); }
:root .sp-grid .sp-r-gz { padding: 6px 0; }
:root .sp-grid b.sp-tile { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 10px;
  font: 600 30px/1 var(--f-body); background: linear-gradient(180deg, #fffdf8, #f1e8d6);
  box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(120, 90, 50, .12) inset, 0 3px 6px -2px rgba(70, 45, 20, .35), 0 0 0 1px rgba(150, 120, 80, .22);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
:root .sp-grid .is-day b.sp-tile { box-shadow: 0 1px 0 #fff inset, 0 3px 7px -2px rgba(140, 50, 30, .45), 0 0 0 1.5px rgba(168, 64, 46, .55); }
:root .sp-grid .sp-r-god .sp-god { font-weight: 600; }
:root .sp-grid em .sp-h > span { font-weight: 600; }
/* six columns in the 大运流年盘: a little tighter so it fits a phone */
:root .sp-grid.sp-n6 { grid-template-columns: 2.6em repeat(6, minmax(0, 1fr)); }
:root .sp-grid.sp-n6 b.sp-tile { width: 40px; height: 40px; font-size: 25px; border-radius: 8px; }
:root .sp-grid.sp-n6 em .sp-h { flex-direction: column; align-items: center; gap: 0; }
:root .sp-grid.sp-n6 small, :root .sp-grid.sp-n6 .sp-head { font-size: 11.5px; letter-spacing: 0; }
:root .sp-grid.sp-n6 > .sp-rh { font-size: 11px; letter-spacing: 0; writing-mode: vertical-rl; padding: 4px 0; }
@media (max-width: 400px) { :root .sp-grid b.sp-tile { width: 42px; height: 42px; font-size: 26px; } :root .sp-grid.sp-n6 b.sp-tile { width: 34px; height: 36px; font-size: 21px; } }
/* 大运 / 流年 pickers: two scrolling rows of small raised chips */
:root .sp-pick { display: grid; gap: 6px; }
:root .sp-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
:root .sp-strip::-webkit-scrollbar { display: none; }
:root .sp-strip button { flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; min-width: 54px; padding: 6px 8px; -webkit-appearance: none; appearance: none;
  border: 1px solid #e0d4bd; border-radius: 10px; background: linear-gradient(180deg, #fffdf8, #f3ead9); box-shadow: 0 2px 4px -2px rgba(70, 45, 20, .3); cursor: pointer; }
:root .sp-strip button small { font-size: 11px; color: var(--ds-ink-3); }
:root .sp-strip button b { font: 600 17px/1.2 var(--f-body); }
:root .sp-strip button.is-now small::after { content: " ·今"; color: var(--ds-red); } /* the same in every language, like the rest of the chart */
:root .sp-strip button[aria-pressed=true] { border-color: var(--ds-red); box-shadow: 0 0 0 1.5px var(--ds-red), 0 3px 8px -3px rgba(140, 40, 25, .45); background: #fff; }
/* 五行 in the facts: one bar in five parts, the key underneath */
:root .sum-facts .sf-el dd { display: grid; gap: 6px; font-size: 14px; }
:root .el-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); background: #eee6d6; }
:root .el-bar i { display: block; min-width: 0; }
:root .el-bar i + i { box-shadow: -1px 0 0 rgba(255, 255, 255, .7); }
:root .el-bar .el-wood { background: var(--wood); } :root .el-bar .el-fire { background: var(--fire); } :root .el-bar .el-earth { background: var(--earth); }
:root .el-bar .el-metal { background: var(--metal); } :root .el-bar .el-water { background: var(--water); }
:root .el-key { display: flex; justify-content: space-between; gap: 4px; color: var(--ds-ink-2); }
:root .el-key > span { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
:root .el-key b { font-weight: 600; }
:root .el-key small { margin: 0 !important; font-size: 11px !important; color: var(--ds-ink-3); }
/* the 五行 key: five even columns under the bar, the element and count on one line, the share under it */
:root .sum-facts .sf-el dd { min-width: 0; }
:root .el-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
:root .el-key > span { flex-direction: column; align-items: center; gap: 0; font-size: 14px; }
:root .el-key > span small { line-height: 1.2; }
:root .sp-grid.sp-n6 .sp-sha { font-size: 10.5px; letter-spacing: -.02em; }
:root .sp-grid.sp-n6 .sp-sha span { white-space: nowrap; }
/* 你的日主 / 你的日柱 / 古籍: open from the start, one calm heading size; the glyph a little smaller so title, glyph
   and subtitle read as one line rather than one heavy word and two faint ones */
:root .dm-panel > summary { min-height: 54px; gap: 10px; }
:root .dm-sum-title { font-size: 19px; }
:root .dm-glyph { font-size: 32px; }
:root .pl-gz { font-size: 20px; }
:root .dm-panel > summary .zh-sm { font-size: 13.5px; color: var(--ds-ink-2); }
/* nothing in the chart table wraps: names stay whole, a touch smaller in the six-column view, with a hair of room each side */
:root .sp-grid small, :root .sp-grid .sp-sub, :root .sp-grid .sp-sha span, :root .sp-grid em .sp-h { white-space: nowrap; }
:root .sp-grid.sp-n6 .sp-sha { font-size: 9.5px; letter-spacing: -.03em; padding: 6px 1px; }
:root .sp-grid.sp-n6 .sp-sub { font-size: 10.5px; }
/* 日主 facts: 禄位 and 长生 on one row, the second label set off like the first */
:root .dm-facts .dm-pair dd { display: flex; align-items: baseline; gap: 10px; }
:root .dm-facts .dm-pair-k { margin-left: 22px; font-size: 13px; letter-spacing: .1em; color: var(--ink-faint); }
:root .dm-facts .dm-pair-k .term { color: inherit; }
/* ===== 排盘 table type scale (v406): one clear order of size so it reads comfortably =====
   1 the stem / branch tiles · 2 十神 and the hidden stems · 3 星运, 纳音 · 4 神煞, column and row labels */
:root .sp-grid .sp-head { font-size: 12px; letter-spacing: .08em; padding: 16px 0 6px; }
:root .sp-grid > .sp-rh { font-size: 11.5px; letter-spacing: .06em; }
:root .sp-grid b.sp-tile { width: 44px; height: 44px; font-size: 26px; }
:root .sp-grid .sp-r-gz { padding: 5px 0; }
:root .sp-grid .sp-god { font-size: 12.5px; font-weight: 600; padding: 6px 2px; }
:root .sp-grid em { padding: 6px 0; gap: 1px; }
:root .sp-grid em .sp-h { flex-direction: row; align-items: baseline; gap: 2px; }
:root .sp-grid em .sp-h > span { font: 600 14px/1.35 var(--f-body); }
:root .sp-grid em .sp-h small { font-size: 10.5px; color: var(--ds-ink-3); }
:root .sp-grid .sp-sm { font-size: 12px; padding: 5px 2px; }
:root .sp-grid .sp-sha { font-size: 10.5px; line-height: 1.45; color: var(--ds-ink-3); padding: 6px 2px; }
/* six columns: every level one step smaller, hidden stems still on one line with their 十神 */
:root .sp-grid.sp-n6 .sp-head { font-size: 11px; letter-spacing: 0; padding: 14px 0 4px; }
:root .sp-grid.sp-n6 .sp-sub { font-size: 10px; }
:root .sp-grid.sp-n6 > .sp-rh { font-size: 10.5px; }
:root .sp-grid.sp-n6 b.sp-tile { width: 34px; height: 34px; font-size: 20px; border-radius: 8px; }
:root .sp-grid.sp-n6 .sp-god { font-size: 11px; }
:root .sp-grid.sp-n6 em .sp-h { flex-direction: row; gap: 1px; }
:root .sp-grid.sp-n6 em .sp-h > span { font-size: 12.5px; }
:root .sp-grid.sp-n6 em .sp-h small { font-size: 9px; letter-spacing: -.03em; }
:root .sp-grid.sp-n6 .sp-sm { font-size: 10.5px; letter-spacing: -.02em; }
:root .sp-grid.sp-n6 .sp-sha { font-size: 9.5px; letter-spacing: -.03em; }
/* the pickers under it: a little smaller too, so the chart stays the main thing */
:root .sp-strip button { min-width: 50px; padding: 5px 7px; }
:root .sp-strip button b { font-size: 15.5px; }
:root .sp-strip button small { font-size: 10.5px; }
/* 你的日主 / 你的日柱: no rule under the heading; heading and content share the same side margins, with even room
   between them, so the box below lines up with the title instead of sitting inset under a wider line */
:root .dm-panel > summary { border-bottom: 0 !important; padding: 16px 18px 6px !important; min-height: 0; }
:root .dm-panel .pl-body, :root .dm-panel .dm-body { padding: 8px 18px 18px !important; }
:root .dm-panel .pl-facts, :root .dm-panel .dm-facts { margin-top: 0; }
/* 日柱 reading: each label sits level with the first line of its text */
:root .pl-row { align-items: start !important; }
:root .pl-row b { align-self: start !important; line-height: 1.9; }
:root .pl-row p { margin-top: 0; }
:root .pl-row .dy-cl { vertical-align: top; } /* a clause that wraps inside itself lines up by its first line */
/* 你的日主 / 你的日柱, fuller: the reading runs the full width (no early breaks), a narrower label column, less
   empty room at the foot; the two buttons share the row in equal halves */
:root .pl-row { grid-template-columns: 3.2em minmax(0, 1fr) !important; gap: 10px !important; padding: 9px 0 !important; }
:root .pl-row .dy-cl { display: inline !important; }
:root .pl-row .dy-cl.eol { margin-right: 0; }
:root .pl-row p { line-height: 1.8; }
:root .dm-panel .pl-body { padding-bottom: 8px !important; }
:root .dm-foot .dm-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; align-items: stretch; }
:root .dm-foot .dm-actions > * { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; text-align: center; }
:root .dm-foot .zoom-link { -webkit-appearance: none; appearance: none; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl, 10px);
  background: var(--ds-card-2); color: var(--ds-ink); font: 600 15px/1.2 var(--f-body); letter-spacing: .06em; text-decoration: none; cursor: pointer; }
/* no lone character on a last line: a half-size smaller reading, and balanced breaking where the browser has it */
:root .pl-row p { font-size: 15px; }
/* 你的日主, one section: the card, its tagline in plain quotes (「」 in Chinese, no side bar, no italics), the
   description, then the 日柱 reading under a small heading, then the buttons */
:root .dm-tag { border-left: 0 !important; padding-left: 0 !important; margin: 14px 0 6px !important; font: 600 18px/1.4 var(--f-body) !important; font-style: normal !important; letter-spacing: .04em; color: var(--ds-ink); }
:root:is(:lang(en), :lang(fr)) .dm-tag { font-family: var(--f-display) !important; font-style: italic !important; letter-spacing: 0; }
:root .pl-in { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ds-line); }
:root .pl-in-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font: 600 17px/1.3 var(--f-body); letter-spacing: .06em; color: var(--ds-ink); }
:root .pl-in-h .pl-gz { font-size: 19px; }
:root .pl-in-h small { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--ds-ink-3); }
:root .pl-in .pl-row:first-of-type { border-top: 0; }
:root .dm-body .dm-foot { grid-column: 1 / -1; margin-top: 12px; }
/* 五行概览: the bars, then 旺相休囚死 underneath as one full-width row of five equal cells, both on the same edges */
:root .area-el .el-cols { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
:root .area-el .el-block h3 { margin-bottom: 8px; }
:root .area-el .season { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: none; }
:root .area-el .season > div { min-width: 0; }
/* 干支关系: one list inside one frame, rows split by a hairline, instead of a separate box per relation. Each row: the
   pair on the left, then its type and pillars on one line with the note under it in grey */
:root .rel-list { gap: 0 !important; border: 1px solid var(--ds-line); border-radius: 12px; overflow: hidden; background: var(--ds-card); }
:root .rel-list li { grid-template-columns: 4.6em minmax(0, 1fr) !important; align-items: baseline; gap: 10px !important; padding: 11px 14px !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
:root .rel-list li + li { border-top: 1px solid var(--ds-line) !important; }
:root .rel-list .rel-text { font: 600 17px/1.3 var(--f-body); letter-spacing: .04em; white-space: nowrap; }
:root .rel-list .rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
:root .rel-list .rel-type { font-weight: 600; margin-right: 2px; }
:root .rel-list .ptag { font-size: 11.5px; padding: 1px 7px; }
:root .rel-list .rel-note { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--ds-ink-3); }
/* 命盘详表 on phones: the whole table fits the screen, no sideways scrolling. Fixed equal columns, a narrow label
   column with the label written top to bottom, smaller type, nothing sticky, and nothing that wraps a name */
@media (max-width: 760px) {
  :root .area-table .scroll-hint { display: none !important; }
  :root .area-table .table-scroll { overflow: visible !important; }
  :root table.pillars { min-width: 0 !important; width: 100%; table-layout: fixed; border: 1px solid var(--ds-line); border-radius: 10px; overflow: hidden; }
  :root .pillars th, :root .pillars td { padding: 6px 1px !important; font-size: 12px; white-space: nowrap; }
  :root .pillars thead th { font-size: 11.5px; padding-block: 8px !important; position: static !important; }
  :root .pillars thead th .zh-sm { font-size: 10px; }
  :root .pillars thead th:first-child, :root .pillars th[scope=row] { width: 1.9em !important; min-width: 0 !important; position: static !important; }
  :root .pillars th[scope=row] { writing-mode: vertical-rl; font-size: 11px !important; letter-spacing: .1em; padding: 6px 0 !important; }
  :root .pillars th[scope=row] .zh-sm { display: none; }
  :root .pillars .big { font-size: 21px !important; }
  :root .pillars .polel { display: block; font-size: 9.5px; }
  :root .pillars .stack span { font-size: 11.5px; }
  :root .pillars .qi { font-size: 8.5px; }
  :root .pillars .ss-list { display: grid; gap: 1px; font-size: 9.5px; letter-spacing: -.03em; }
  :root .pillars .void-mark { font-size: 9.5px; padding: 0 3px; }
}
/* the 2027 report: one plain line of link text under the facts, no frame */
:root .summary .rp-promo.rp-line { display: block; grid-column: 1 / -1; margin: 4px 0 0; padding: 4px 0; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important;
  font: 600 15px/1.5 var(--f-body); letter-spacing: .04em; color: var(--ds-red); text-decoration: none; }
:root .summary .rp-promo.rp-line:hover { color: var(--ds-red-dark); text-decoration: underline; }
/* the English / 中文 switch, rebuilt from nothing: `all: unset` wipes every native button style a phone might add,
   so the half that is not chosen is plain text and only the chosen half is filled */
:root .lang-toggle button, :root .lb-head .lang-toggle .lb-lang { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 16px; border-radius: 999px; font: 500 14px/1.4 var(--f-body); letter-spacing: .04em; color: var(--ds-ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
:root .lang-toggle button[aria-pressed=true], :root .lb-head .lang-toggle .lb-lang[aria-pressed=true] { background: var(--ds-red); color: #fbf6ee; }
:root .lang-toggle button:focus-visible { outline: 2px solid var(--ds-red); outline-offset: 2px; }
/* enlarged card: the tagline on its own line above the description */
:root .lb-tag { display: block; margin-bottom: 4px; font: 600 16px/1.5 var(--f-body); letter-spacing: .04em; color: var(--ds-ink); }
/* 五行与你的日主: the short columns never break a word; the 代表 column takes the rest of the width */
:root .el-role-tbl th, :root .el-role-tbl td:not(:last-child) { white-space: nowrap; }
:root .el-role-tbl td:last-child { width: 100%; }
@media (max-width: 560px) { :root .el-role-tbl th, :root .el-role-tbl td { padding: 8px 5px; } :root .el-role-tbl th { font-size: 11.5px; letter-spacing: .04em; } }
:root .rel-list li { grid-template-columns: 5.4em minmax(0, 1fr) !important; }
:root .rel-list .rel-text { font-size: 16px; }

/* 日柱 reading: every line runs to the same right edge (no ragged, early-ending lines) */
:root .pl-row p { text-align: start; } /* full lines, and no lone character left on the last one */
/* English: the 日主 / 日柱 parts need wider labels and a heading that wraps as text, and the two buttons may take two lines */
:root:is(:lang(en), :lang(fr)) .pl-row { grid-template-columns: 6.2em minmax(0, 1fr) !important; }
:root:is(:lang(en), :lang(fr)) .pl-row p { text-align: left; }
:root:is(:lang(en), :lang(fr)) .pl-row b { letter-spacing: 0; }
:root:is(:lang(en), :lang(fr)) .pl-in-h { display: block; font-family: var(--f-display); letter-spacing: 0; }
:root:is(:lang(en), :lang(fr)) .pl-in-h .pl-gz { margin: 0 4px; }
:root:is(:lang(en), :lang(fr)) .pl-in-h small { display: block; margin-top: 2px; }
:root .dm-foot .dm-actions > * { padding: 8px 10px; line-height: 1.25; }
:root:is(:lang(en), :lang(fr)) .dm-foot .dm-actions > * { font-size: 14px; letter-spacing: 0; }
:root .dm-about:is([lang="en"], [lang="fr"]), :root #lb-about:is([lang="en"], [lang="fr"]) { font-family: var(--f-display); }
/* the quiet pages (木鱼, 念珠, 一签, 鱼池): quick repeated taps never trigger the phone's double-tap zoom, which made
   the whole page jump and the words look as if they shook */
:root body:has(.merit-page), :root body:has(.daily), :root body:has(.pond-page) { touch-action: manipulation; }
:root .merit-page .tp-stage { cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
/* 念珠: the one-line note beside the speaker until a tap lets the phone play sound */
@keyframes bd-hint { 50% { opacity: .45; } }

/* ===== whole-site pass (v417) ===== */
/* no line ends on a lone character: balanced last lines for reading text everywhere */
:root p, :root li, :root dd, :root .lede, :root blockquote, :root figcaption { text-wrap-style: var(--tw-pretty, pretty); }
/* footer links stay whole (「安装到手机」 never splits) */
:root .site-foot a { white-space: nowrap; }
/* dates and short tags that must not break inside */
:root .nw { white-space: nowrap; }
/* 十神简称 key: each abbreviation with its name, kept together, in tidy rows */
:root .abbr-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
:root .abbr-legend .abbr-i { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
:root .lk .pre-label { white-space: nowrap; font-size: 12px; }

/* home hero caption under the cards, English on phones: one short line (the image phrase is on the card itself),
   so it never grows up into the cards */
@media (max-width: 560px) { :root:is(:lang(en), :lang(fr)) .fan-cap .fc-img { display: none; } :root .fan-cap { flex-wrap: nowrap; white-space: nowrap; } }
:root .sum-facts dd small { white-space: nowrap; }
:root:is(:lang(en), :lang(fr)) .sum-facts div { grid-template-columns: 6.6em minmax(0, 1fr) !important; }
:root :is(div, h1, h2, h3, h4, label, summary, td, th) { text-wrap-style: var(--tw-pretty, pretty); }
/* 今日运势, hour list: the 「现在」 badge stays whole, on its own small line under the hour's name */
:root .hr-name em { display: block; width: fit-content; margin-top: 3px; white-space: nowrap; }

/* v428 iPhone Safari. text-wrap-style instead of the text-wrap shorthand, so the global "pretty" no longer
   switches white-space: nowrap back to wrapping (本月节|气). In Chinese, Safari's "pretty" broke lines early and
   left a wide gap on the right, so Chinese wraps normally; the glue in i18n.js keeps the last line from being one character. */
html:lang(zh) { --tw-pretty: auto; }
:root .dial-label, :root .dl-text, :root .dl-text > * { white-space: nowrap; }
/* the day-master heading: the arrow stays on the first line at the right, whatever the title wraps to */
:root .dm-panel > summary { position: relative; flex-wrap: wrap; row-gap: 2px; padding-right: 42px !important; }
:root .dm-panel > summary .chev { position: absolute; right: 18px; top: calc(50% + 5px); margin: -.6em 0 0; line-height: 1.2; }

/* v440: the result page's night band is switched off on every page (.temple), so it no longer leaves a 96px gap
   above the chart; the home cards sit closer to today's card on phones */
.temple .result-sky { display: none; }
.temple #view-result { padding-top: 32px; }
@media (max-width: 760px) {
  .temple #view-result { padding-top: 14px; }
  .temple body[data-tab="home"] .hero-fan { margin-bottom: 22px; }
  .temple body[data-tab="home"] .hero-in > #install-bar { margin-top: 0; }
}
/* 和朋友一起: the same cards as everywhere else, four of them in a 2 × 2 grid on wide screens */
.pf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-list a { border: 1px solid var(--ds-line); border-radius: var(--ds-r-card); background: var(--ds-card); box-shadow: var(--ds-shadow); }
.pf-list a:hover { border-color: var(--ds-red); box-shadow: var(--ds-shadow-lift); }
@media (max-width: 760px) { .pf-list { grid-template-columns: minmax(0, 1fr); } }
.play-stems { margin: 10px 0 0; }
.play-stems a { color: var(--ds-red); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
/* 每日: the 认识十天干 link belongs to the intro above it, with room before 小游戏 */
.play .lede + .play-stems { margin: -10px 0 26px; }
/* 小游戏 cards: the tag keeps its own width and a long title (English "Five Elements Match") wraps beside it,
   instead of pushing the tag past the card's edge */
:root .play-card .play-text { grid-template-columns: minmax(0, auto) minmax(min-content, 1fr); }
/* 小游戏 cards stack picture over text on wide screens: the text block takes the card's full width, so every card's
   text starts at the picture's left edge (a short description no longer leaves it centred and indented) */
.play-group .play-card .play-text { align-self: stretch; width: 100%; }
/* ---------- 2027 十二生肖运势 (zodiac.html, /zodiac/<sign>) ---------- */
.zd-box { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 0 auto; }
.zd-box > .lede { text-align: center; margin: -8px auto 4px; max-width: 40em; }
.zd-box .panel { padding: 20px 22px; border-radius: var(--ds-r-card); }
.zd-box h2 { margin: 0 0 12px; font: 600 var(--ds-h-card)/1.4 var(--f-body); color: var(--ds-ink); }
:is(:lang(en), :lang(fr)) .zd-box h2 { font-family: var(--f-display); }
.zd-box p { margin: 0; line-height: 1.85; color: var(--ds-ink); }
.zd-box p + p { margin-top: 10px; }
.zd-note { font-size: 14px; color: var(--ds-ink-3) !important; }
.zd-h2 { margin: 10px 0 0 !important; }
.zd-br { font: 600 30px/1 var(--f-body); color: var(--ds-red); }
.zd-chip { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12.5px; line-height: 1.7; background: var(--ds-card-2); color: var(--ds-ink-2); border: 1px solid var(--ds-line); white-space: nowrap; }
.zd-chip.zd-six, .zd-chip.zd-triad { color: var(--ds-green); border-color: rgba(46, 122, 75, .3); background: rgba(46, 122, 75, .07); }
.zd-chip.zd-same, .zd-chip.zd-clash, .zd-chip.zd-punish, .zd-chip.zd-harm { color: var(--ds-red); border-color: rgba(168, 64, 46, .28); background: var(--ds-red-soft); }
.zd-score { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.zd-score em { font: 600 16px/1 var(--f-body); font-style: normal; color: var(--ds-ink); min-width: 1.4em; text-align: right; }
.zd-bar { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--ds-line-2); overflow: hidden; }
.zd-bar i { display: block; height: 100%; background: var(--ds-red); border-radius: 2px; }
/* hub: who meets Tai Sui how */
.zd-ts ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; }
.zd-ts li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--ds-line-2); }
.zd-ts li:last-child { border-bottom: 0; }
.zd-ts li b { font-weight: 600; color: var(--ds-red); }
.zd-ts .zd-ts-six b, .zd-ts .zd-ts-triad b { color: var(--ds-green); }
.zd-ts li span { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.zd-ts li a { color: var(--ds-ink); text-decoration: none; border-bottom: 1px solid var(--ds-line); }
.zd-ts li a:hover { color: var(--ds-red); border-color: currentColor; }
/* hub: birth-year lookup */
.zd-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.zd-form label { font-size: 15px; color: var(--ds-ink-2); }
.zd-form input { width: 7.5em; height: 44px; padding: 0 12px; font: 500 17px var(--f-body); border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); background: #fff; color: var(--ds-ink); }
.zd-form .btn-primary { height: 44px; min-height: 0; padding: 0 22px; }
.zd-find-res { margin-bottom: 10px !important; font-weight: 500; }
.zd-find-res a { color: var(--ds-red); font-weight: 600; }
.zd-find-res.is-bad { color: var(--ds-red); }
/* hub: the twelve signs */
.zd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zd-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px !important; text-align: center; color: inherit; text-decoration: none; }
.zd-tile b { font-weight: 600; font-size: 16px; }
.zd-tile:hover { box-shadow: var(--ds-shadow-lift); border-color: var(--ds-red); }
.zd-tile .zd-score { margin-top: 2px; }
.zd-tile .zd-bar { width: 48px; }
@media (max-width: 640px) { .zd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .zd-tile .zd-chip { font-size: 11.5px; padding: 0 7px; } }
/* sign page */
.zd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.zd-head .zd-br { font-size: 48px; }
.zd-head div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.zd-head div b { font-size: 17px; font-weight: 600; }
.zd-score.is-big { flex-direction: column; align-items: flex-end; gap: 4px; }
.zd-score.is-big small { font-size: 12.5px; color: var(--ds-ink-3); }
.zd-score.is-big em { font-size: 30px; }
.zd-score.is-big .zd-bar { width: 76px; }
.zd-areas { margin: 0; display: grid; gap: 0; }
.zd-areas div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ds-line-2); }
:is(:lang(en), :lang(fr)) .zd-areas div { grid-template-columns: 8.5em minmax(0, 1fr); }
.zd-areas div:last-child { border-bottom: 0; padding-bottom: 0; }
.zd-areas dt { font-weight: 600; color: var(--ds-red); }
.zd-areas dd { margin: 0; line-height: 1.8; }
.zd-months { list-style: none; margin: 12px 0 0; padding: 0; }
.zd-months li { padding: 12px 0; border-top: 1px solid var(--ds-line-2); }
.zd-m-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 4px; }
.zd-m-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; }
.zd-m-head b { font-weight: 600; }
.zd-m-date { font-size: 13.5px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.zd-months p { font-size: 15px; color: var(--ds-ink-2) !important; }
.zd-mk { font-size: 12px; padding: 0 7px; border-radius: 99px; line-height: 1.7; }
.zd-mk.is-best { color: var(--ds-green); background: rgba(46, 122, 75, .08); }
.zd-mk.is-watch { color: var(--ds-red); background: var(--ds-red-soft); }
.zd-tips { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.8; }
.zd-cta { text-align: center; }
.zd-cta p { color: var(--ds-ink-2) !important; max-width: 34em; margin: 0 auto !important; }
.zd-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.zd-acts a { flex: 0 1 13em; text-align: center; justify-content: center; }
.zd-others h2 { text-align: center; margin-bottom: 10px !important; }
.zd-others div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zd-others a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); background: var(--ds-card); color: var(--ds-ink); text-decoration: none; font-size: 14.5px; }
.zd-others a span { color: var(--ds-red); font-weight: 600; }
.zd-others a[aria-current="page"] { border-color: var(--ds-red); background: var(--ds-red-soft); }
@media (max-width: 520px) {
  .zd-box .panel { padding: 16px 16px; }
  .zd-head { gap: 12px; } .zd-head .zd-br { font-size: 40px; } .zd-score.is-big em { font-size: 26px; }
  .zd-others div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zd-areas div, :is(:lang(en), :lang(fr)) .zd-areas div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .zd-acts a { flex: 1 1 100%; max-width: 18em; }
}
/* ---------- membership: the lock card, the small lock in place of a score, the toast (js/member.js) ---------- */
.mb-lock { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 18px 16px; margin: 14px 0; border: 1px solid rgba(168, 64, 46, .22); border-radius: var(--ds-r-card); background: linear-gradient(180deg, rgba(168, 64, 46, .05), rgba(168, 64, 46, .02)); }
.mb-lock-t { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font: 600 17px/1.4 var(--f-body); color: var(--ds-ink); }
:is(:lang(en), :lang(fr)) .mb-lock-t { font-family: var(--f-display); font-size: 18px; }
.mb-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ds-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mb-lock-p { margin: 0; max-width: 30em; font-size: 14.5px; line-height: 1.75; color: var(--ds-ink-2); }
.mb-lock .mb-buy { min-width: 15em; margin-top: 4px; }
.mb-lock-n { margin: 0; font-size: 12.5px; color: var(--ds-ink-3); }
.mb-lock-n a { color: var(--ds-red); }
.mb-mark { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.mb-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.dy-ring.is-locked b .mb-mark svg, .today-score.is-locked .ts-n .mb-mark svg { width: 22px; height: 22px; opacity: .5; }
.wk-day.is-locked b { color: var(--ds-ink-3); }
.today-hours.is-locked .hr-meter { display: flex; align-items: center; color: var(--ds-ink-3); }
.dy-hours.is-locked { padding-top: 4px; }
.dy-hours.is-locked .mb-lock { margin: 4px 0 0; }
.mb-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h, 0px) + 20px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 12px); max-width: min(92vw, 440px); margin: 0; padding: 12px 18px; border-radius: 10px; background: #2b2722; color: #fbf6ee; font-size: 14.5px; line-height: 1.6; text-align: center; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.mb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* the report: what the unlock adds, then the card */
.rp-locked { margin-top: 8px; }
.rp-lock-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; }
.rp-lock-list li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--ds-line); border-radius: var(--ds-r-ctl); color: var(--ds-ink-3); font-weight: 500; }
.rp-lock-list li::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .45; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.rp-lock-sample { text-align: center; margin: 6px 0 0; }
.rp-lock-sample a { color: var(--ds-red); font-weight: 600; }
/* 会员与年报 page */
.mp-box { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.mp-box > .lede { text-align: center; margin: -6px auto 2px; max-width: 40em; }
.mp-box .panel { padding: 20px 22px; border-radius: var(--ds-r-card); }
.mp-box h2 { margin: 0 0 6px; font: 600 var(--ds-h-card)/1.4 var(--f-body); }
:is(:lang(en), :lang(fr)) .mp-box h2 { font-family: var(--f-display); }
.mp-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.mp-status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.mp-status ul li:first-child { color: var(--ds-ink-3); font-size: 13.5px; }
.mp-status p { margin: 0; color: var(--ds-ink-2); flex: 1 1 18em; }
.mp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.mp-plan { display: flex; flex-direction: column; gap: 6px; }
.mp-price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 0; }
.mp-price b { font: 600 34px/1.1 var(--f-body); color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.mp-price span, .mp-sub { color: var(--ds-ink-3); font-size: 14px; }
.mp-sub { margin: 0 0 6px; }
.mp-feats { margin: 4px 0 14px; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.7; flex: 1; }
.mp-plan .btn-primary { width: 100%; text-align: center; justify-content: center; }
.mp-have { margin: 0; padding: 12px; text-align: center; border-radius: var(--ds-r-ctl); background: rgba(46, 122, 75, .08); color: var(--ds-green); font-weight: 600; }
.mp-sample { display: block; margin-top: 10px; text-align: center; color: var(--ds-red); font-weight: 600; text-decoration: none; }
.mp-rules ul { margin: 6px 0 10px; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.75; color: var(--ds-ink-2); }
.mp-rules a { color: var(--ds-red); }
@media (max-width: 640px) { .mp-plans { grid-template-columns: minmax(0, 1fr); } .mp-box .panel { padding: 16px; } }
.mp-status .btn-ghost { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 640px) { .mp-status .btn-ghost { width: 100%; } }
/* membership offers: the regular price struck through beside the first-term price */
.mb-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; max-width: 22em; margin-top: 4px; }
.mb-opts .mb-buy { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 0; width: 100%; min-height: 48px; flex-wrap: wrap; }
.mb-o-n { font-weight: 600; }
.mb-opts s, .mp-price s { opacity: .6; font-weight: 400; text-decoration-thickness: 1px; }
.mb-o-p b { font-weight: 700; }
.mp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 2px; }
.mp-opt { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); background: var(--ds-card-2); }
.mp-opt-h { margin: 0; font-weight: 600; }
.mp-opt .mp-price { gap: 8px; flex-wrap: wrap; }
.mp-opt .mp-price s { font-size: 15px; color: var(--ds-ink-3); }
.mp-opt .mp-price b { font-size: 26px; }
.mp-opt-n { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: var(--ds-ink-3); flex: 1; }
.mp-opt .btn-primary { width: 100%; min-height: 44px; padding: 0 10px; }
.mp-plan .mp-have { margin-top: 10px; }
@media (max-width: 380px) { .mp-opts { grid-template-columns: minmax(0, 1fr); } }
.mb-opts .mb-buy { align-items: center; align-content: center; padding-block: 8px; line-height: 1.3; }
.mp-opt .mp-price { flex-wrap: wrap; row-gap: 0; }
.mp-opt .mp-price s { flex-basis: 100%; }
.mb-nb { white-space: nowrap; }
.mb-lock-p i { font-style: normal; color: var(--ds-ink-3); }
/* home card: seven days, today free and the next six for members */
.dy-week { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ds-line); }
.dy-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.dy-wd { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 1px 7px; border: 1px solid var(--ds-line); border-radius: 6px; background: rgba(255, 255, 255, .45); min-width: 0; }
.dy-wd span { font-size: 12px; color: var(--ds-ink-2); white-space: nowrap; }
.dy-wd small { font-size: 10.5px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.dy-wd b { margin-top: 3px; min-width: 2em; padding: 1px 4px; border-radius: 4px; font-size: 13px; line-height: 1.3; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
.dy-wd.is-high b, .dy-wd.is-mid b, .dy-wd.is-low b { background: var(--tone); }
.dy-wd.is-locked b { background: transparent; color: var(--ds-ink-3); }
.dy-wd.is-today { border-color: var(--ds-red); background: var(--ds-red-soft); }
.dy-wk-cta { display: block; margin-top: 10px; text-align: center; font-weight: 600; color: var(--ds-red); text-decoration: none; }
.cal-lock-d { margin: 12px 0 -4px; text-align: center; font-weight: 600; color: var(--ds-ink); }
.rp-lock-more { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--ds-r-ctl); background: var(--ds-red-soft); color: var(--ds-ink-2); font-size: 14.5px; }
.cal-hours-lock { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 14px 16px; border: 1px dashed var(--ds-line); border-radius: var(--ds-r-ctl); color: var(--ds-ink-3); font-size: 14.5px; }
/* v449: today by area (career, money, love, people, health) — flush left, one badge column shared with the hour below */
.ar { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ds-line); text-align: left; }
.ar-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ar-row { padding: 12px 0; border-top: 1px solid var(--ds-line); }
.ar-row:first-child { border-top: 0; padding-top: 6px; }
.ar-n { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ds-ink); letter-spacing: .04em; }
.ar-lv { font-style: normal; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 4px; color: #fff; letter-spacing: 0; }
.ar-lv.lv2 { background: #5f7f52; } .ar-lv.lv1 { background: #a8874a; } .ar-lv.lv0 { background: #9a4a3a; }
.ar-yj, .hr-line.hr-line-yj .hr-yj { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: start; margin: 0; text-align: left; }
.ar-yj + .ar-yj { margin-top: 8px; }
.ar-yj b, .hr-line.hr-line-yj .hr-yj b { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin: 0; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1; color: #fff; }
.ar-yj b.dy-yi, .hr-line.hr-line-yj .hr-yj b.dy-yi { background: #5d7a3c; }
.ar-yj b.dy-ji, .hr-line.hr-line-yj .hr-yj b.dy-ji { background: #9a4a3a; }
.ar-h { font-size: 15px; font-weight: 600; line-height: 22px; color: var(--ds-ink); }
.ar-more { margin-top: 2px; font-size: 13.5px; line-height: 1.65; color: var(--ds-ink-3); }
:root:is(:lang(en), :lang(fr), :lang(ko)) .ar-yj, :root:is(:lang(en), :lang(fr), :lang(ko)) .hr-line.hr-line-yj .hr-yj { grid-template-columns: 3.7em minmax(0, 1fr); }
:root:is(:lang(en), :lang(fr), :lang(ko)) .ar-yj b, :root:is(:lang(en), :lang(fr), :lang(ko)) .hr-line.hr-line-yj .hr-yj b { width: 3.7em; }
:root:is(:lang(en), :lang(fr)) .ar-h { font-size: 14.5px; line-height: 1.5; }
.hr-line.hr-line-yj { display: block; margin-top: 8px; }
.hr-line.hr-line-yj .hr-yj { font-size: 14.5px; line-height: 22px; color: var(--ds-ink); }
.hr-line.hr-line-yj .hr-yj + .hr-yj { margin-top: 6px; }
.today-main .ar { margin-top: 16px; }
/* 择吉日 */
.dy-pick { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ds-line); }
.pk-h { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--ds-ink); }
.dy-pick .pk-h { font-size: 15px; }
.pk-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: var(--ds-red-soft); color: var(--ds-red); font-size: 12px; font-weight: 600; }
.pk-badge .mb-mark svg { width: 12px; height: 12px; }
.pk-lede { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--ds-ink-3); text-align: left; }
.pk-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pk-chip { min-height: 40px; padding: 6px 4px; border: 1px solid var(--ds-line); border-radius: 8px; background: rgba(255, 255, 255, .55); color: var(--ds-ink); font: inherit; font-size: 14px; cursor: pointer; }
.pk-chip.is-on { border-color: var(--ds-red); background: var(--ds-red-soft); color: var(--ds-red); font-weight: 600; }
.pk-out:not(:empty) { margin-top: 10px; }
.pk-rt { margin: 0 0 6px; font-size: 13.5px; color: var(--ds-ink-3); text-align: left; }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--ds-line); border-radius: 8px; background: rgba(255, 255, 255, .5); text-align: left; }
.pk-day.is-best { border-color: var(--ds-red); background: var(--ds-red-soft); }
.pk-d { margin: 0; font-weight: 600; color: var(--ds-ink); }
.pk-d em { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--ds-red); color: #fff; font-style: normal; font-size: 11.5px; vertical-align: 1px; }
.pk-why { margin: 2px 0 0; font-size: 13px; color: var(--ds-ink-3); }
.pk-day > b { flex: none; min-width: 2.4em; padding: 2px 6px; border-radius: 5px; background: var(--tone, #a8874a); color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.pk-day > b small { font-size: 11px; font-weight: 400; margin-left: 1px; }
.pk-day.is-high > b { --tone: #5f7f52; } .pk-day.is-mid > b { --tone: #a8874a; } .pk-day.is-low > b { --tone: #9a4a3a; }
.pk-none { margin: 0; font-size: 14px; color: var(--ds-ink-3); }
.mb-lock-pick { margin-top: 0; }
.cal-pick { margin-top: 16px; }
.cal-pick .pk-h { font-size: 18px; }
.cal-pick[hidden] { display: none; }
@media (max-width: 380px) { .pk-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mb-nb { white-space: normal; }
.dy-hours > .ar { margin-top: 0; padding-top: 0; border-top: 0; }
.dy-hours > .ar + .dy-hk-hr { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ds-line); }
/* v450: an iPhone zooms the whole page in when a field under 16px is focused, and leaves it zoomed (the page then runs off the screen) */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  .signin-code input { font-size: 20px !important; }
}
/* the first touch on the 念珠 page: phones start sound only on a real tap, and pulling a bead is a drag */
:root .bd-start { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: rgba(250, 245, 236, .62); font: inherit; cursor: pointer; }
:root .bd-start[hidden] { display: none; }
:root .bd-start span { padding: 10px 20px; border-radius: 999px; background: var(--ds-red); color: #fff; font-size: 16px; letter-spacing: .08em; box-shadow: var(--ds-shadow); }
/* v451: the 会员 entry in the header, a filled muted-gold pill beside the account button */
:root .site-nav .member-link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin: 0 2px 0 12px; border-radius: 999px; background: #c9a46a; color: #3b2a1c; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
:root .site-nav .member-link:hover { background: #d6b47c; }
@media (max-width: 760px) { :root .site-nav .member-link { height: 29px; padding: 0 10px; margin: 0; font-size: 12.5px; letter-spacing: .04em; } :root .site-head .brand-sub { white-space: nowrap; letter-spacing: .2em; } }
/* very narrow phones (≤360px): the 会员 pill fits by dropping the brand's small subtitle and tightening the pills */
@media (max-width: 360px) {
  :root .site-head .brand-sub { display: none; }
  :root .site-nav .member-link { padding: 0 8px; letter-spacing: 0; }
  :root .site-nav .acct-btn { margin-right: 0; padding: 3px 8px; max-width: 5.5em; }
  :root .site-nav .lang-btn, :root .site-nav .script-btn { padding-left: 8px; padding-right: 8px; }
  :root body.has-subbar .site-nav, :root body[data-tab] .site-nav { gap: 4px; }
}
@media (max-width: 760px) { :root .site-nav .acct-btn { height: 29px; display: inline-flex; align-items: center; } }
/* v451: a cancelled membership: 恢复自动续费 first, 更换付款方式 beside it */
:root .mp-status .mp-acts { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 1 auto; }
:root .mp-status .mp-acts > * { flex: 0 0 auto; width: auto; margin: 0; }
@media (max-width: 640px) { :root .mp-status .mp-acts { flex: 1 1 100%; } :root .mp-status .mp-acts > * { flex: 1 1 140px; padding-left: 10px; padding-right: 10px; } }
/* v453: more languages. The language button shows a globe and the current language; it opens a short list. */
:root .lang-btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
:root .lang-btn .lang-ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
:root .lang-menu { position: fixed; z-index: 1000; min-width: 168px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--ds-card, #fffaf2); border: 1px solid var(--ds-line, rgba(60,40,20,.14)); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(50, 30, 15, .45); }
:root .lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 14px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ds-ink, #2f2219); font: 500 15px/1.2 var(--f-body); letter-spacing: .02em; text-align: left; cursor: pointer; }
:root .lang-menu button:hover, :root .lang-menu button:focus-visible { background: rgba(168, 64, 46, .08); outline: none; }
:root .lang-menu button[aria-checked="true"] { color: var(--seal, #a8402e); font-weight: 700; }
:root .lang-menu button[aria-checked="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 760px) { :root .site-nav .lang-btn { gap: 4px; } :root .site-nav .lang-btn .lang-ic { width: 13px; height: 13px; } }
@media (max-width: 420px) { :root .site-nav .lang-btn .lang-ic { display: none; } }
/* Japanese and Korean: the system's own Mincho / Myeongjo faces first, so kana and Hangul match the Chinese characters */
:root:lang(ja) { --f-body: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif SC", serif;
  --f-display: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; --f-brush: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
:root:lang(ko) { --f-body: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --f-display: "Cormorant Garamond", "Noto Serif KR", "Nanum Myeongjo", serif; --f-brush: "Noto Serif KR", "Nanum Myeongjo", serif; }
:root:lang(ja) body, :root:lang(ko) body { word-break: normal; line-break: strict; }
:root:lang(ko) body { word-break: keep-all; }
/* Hangul reads best untracked: the wide letter-spacing set for Chinese headings and labels is dropped for Korean */
:root:lang(ko) body, :root:lang(ko) body * { letter-spacing: 0 !important; }
/* Japanese and Korean home headline: set across like the Latin one, sized for full-width characters */
:root.temple:is(:lang(ja), :lang(ko)) .hero-title { grid-column: 1 / -1; font: 600 clamp(30px, 3vw, 42px)/1.35 var(--f-body); letter-spacing: .03em; text-shadow: none; color: var(--tp-ink); white-space: normal; writing-mode: horizontal-tb; }
:root.temple:is(:lang(ja), :lang(ko)) .hero-lede { max-width: 30em; }
@media (max-width: 760px) { :root.temple:is(:lang(ja), :lang(ko)) .hero-title { font-size: 28px; line-height: 1.4; } }

/* ---------- fr / ja / ko fit-ups (v454) ---------- */
/* almanac terms like 求嗣 never split across lines */
:root .ch-yj, :root .cal-yj, :root .hr-yj { word-break: keep-all; }
/* the pond intro is one line in English only; longer languages wrap */
@media (max-width: 760px) { :root:is(:lang(fr), :lang(ja), :lang(ko)) .pond-page .lede { white-space: normal; text-wrap-style: balance; } }
/* French words run longer: the "now" tag drops under the hour, day-type chips and badges shrink a little */
:root:lang(fr) .ch-name em { display: table; margin: 2px 0 0; }
:root:lang(fr) .pk-chip { font-size: 12.5px; padding: 6px 2px; }
:root .in-guide summary em { white-space: nowrap; }

/* ---------- chart table in English / fr / ja / ko (v455): the cells hold glossary names, not two-character terms ---------- */
:root:not(:lang(zh)) .sp-grid small, :root:not(:lang(zh)) .sp-grid .sp-sha span, :root:not(:lang(zh)) .sp-grid em .sp-h, :root:not(:lang(zh)) .sp-grid .sp-sub { white-space: normal; }
:root:not(:lang(zh)) .sp-grid small, :root:not(:lang(zh)) .sp-grid .sp-sha { line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
:root:not(:lang(zh)) .sp-grid > .sp-rh { writing-mode: horizontal-tb; letter-spacing: 0; line-height: 1.2; padding: 4px 4px; text-align: center; font-size: 11px; hyphens: auto; overflow-wrap: break-word; }
:root:not(:lang(zh)) .sum-pillars.sp-grid { grid-template-columns: 4.8em repeat(4, minmax(0, 1fr)); }
:root:not(:lang(zh)) .sum-pillars.sp-grid.sp-n6 { grid-template-columns: 4.2em repeat(6, minmax(0, 1fr)); }
:root:not(:lang(zh)) .sp-grid.sp-n6 > .sp-rh { font-size: 9.5px; padding: 4px 2px; }
:root:not(:lang(zh)) .sp-grid .sp-head { letter-spacing: 0; line-height: 1.2; text-align: center; padding-left: 2px; padding-right: 2px; }
:root:not(:lang(zh)) .sp-grid .sp-dm { position: static; order: -1; margin: -12px 0 4px; padding: 1px 5px; font-size: 10px; letter-spacing: 0; line-height: 1.3; }
:root:not(:lang(zh)) .sp-grid.sp-n6 .sp-dm { margin-top: -10px; font-size: 9px; padding: 1px 3px; }
/* hidden stems: the stem over its Ten God, so the name gets the whole column */
:root:not(:lang(zh)) .sp-grid em .sp-h { flex-direction: column; align-items: center; gap: 0; margin-bottom: 3px; }
:root:not(:lang(zh)) .sp-grid em .sp-h small { text-align: center; line-height: 1.2; }
:root:not(:lang(zh)) .sp-grid .sp-god { line-height: 1.2; font-size: 12px; }
:root:not(:lang(zh)) .sp-grid.sp-n6 small, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-god, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-sha { font-size: 9.5px; letter-spacing: 0; padding-left: 1px; padding-right: 1px; }
:root:not(:lang(zh)) .sp-grid .sp-sha { gap: 4px; }
:root:not(:lang(zh)) .sp-grid small, :root:not(:lang(zh)) .sp-grid .sp-sha, :root:not(:lang(zh)) .sp-grid > .sp-rh { hyphens: manual; }
:root:not(:lang(zh)) .sp-grid .sp-sm, :root:not(:lang(zh)) .sp-grid em .sp-h small { font-size: 11px; }
:root:not(:lang(zh)) .sp-grid.sp-n6 small, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-god, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-sha, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-sm { font-size: 9px; }
:root:lang(en) .sp-strip button.is-now small::after { content: " · now"; }
:root:lang(fr) .sp-strip button.is-now small::after { content: " · auj."; }
:root:lang(ko) .sp-strip button.is-now small::after { content: " · 지금"; }
/* the six-column luck view needs room for words: on a phone it scrolls sideways instead of squeezing them */
:root .sp-scroll { min-width: 0; }
@media (max-width: 560px) {
  :root:not(:lang(zh)) .sp-scroll:has(.sp-n6) { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 0 2px 4px; }
  :root:not(:lang(zh)) .sum-pillars.sp-grid.sp-n6 { min-width: 470px; grid-template-columns: 4.6em repeat(6, minmax(0, 1fr)); }
  :root:not(:lang(zh)) .sp-grid.sp-n6 small, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-god, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-sha, :root:not(:lang(zh)) .sp-grid.sp-n6 .sp-sm { font-size: 10px; }
  :root:not(:lang(zh)) .sp-grid.sp-n6 > .sp-rh { font-size: 10px; }
}
:root:not(:lang(zh)) .sp-grid small, :root:not(:lang(zh)) .sp-grid .sp-sha span { max-width: 100%; overflow-wrap: anywhere; }
/* calendar grid in English / fr / ja / ko: festival and solar-term names are words, so they wrap inside their own cell */
:root:not(:lang(zh)) .cal-day .cd-l { max-width: 100%; white-space: normal; overflow-wrap: break-word; font-size: 9px; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-stretch: condensed; line-height: 1.1; letter-spacing: -.01em; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:root:not(:lang(zh)) .cal-day { min-width: 0; overflow: hidden; }
:root:is(:lang(en), :lang(fr)) .cal-day .cd-l { -webkit-hyphens: auto; hyphens: auto; }
/* 命盘详表 in English / fr / ja / ko on phones: names are words, so the table keeps readable columns and scrolls sideways */
@media (max-width: 760px) {
  :root:not(:lang(zh)) .area-table .scroll-hint { display: block !important; }
  :root:not(:lang(zh)) .area-table .table-scroll { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  :root:not(:lang(zh)) table.pillars { min-width: 560px !important; width: 560px; overflow: visible; }
  :root:not(:lang(zh)) .pillars th, :root:not(:lang(zh)) .pillars td { white-space: normal; font-size: 11.5px; line-height: 1.25; padding: 6px 3px !important; overflow-wrap: break-word; }
  :root:not(:lang(zh)) .pillars thead th:first-child, :root:not(:lang(zh)) .pillars th[scope=row] { width: 5.4em !important; }
  :root:not(:lang(zh)) .pillars th[scope=row] { writing-mode: horizontal-tb; letter-spacing: 0; text-align: left; padding-left: 6px !important; }
  :root:not(:lang(zh)) .pillars .stack > span, :root:not(:lang(zh)) .pillars .ss-list > * { white-space: normal; }
}
:root:not(:lang(zh)) .pillars .stack { gap: 5px; }
:root:not(:lang(zh)) .pillars .stack > span { height: auto !important; min-height: 1.3em; line-height: 1.15; }
:root:not(:lang(zh)) .pillars .stack { grid-template-rows: repeat(3, auto); }
/* almanac hour rows on wide screens: the activities are words in other languages, so they wrap instead of being cut */
:root:not(:lang(zh)) .ch-yj { white-space: normal; overflow: visible; text-overflow: clip; }
/* home card fan caption on phones: the longer stem names leave no room for the image line */
@media (max-width: 560px) { :root:not(:lang(zh)) .fan-cap .fc-img { display: none; } }

/* ---------- v457: 个人择日免费预览 (chart page) and 我的本周报告 (home card, Daily page), membership note ---------- */
:root .area-card > .pv { margin: 0; padding: 18px 18px 20px; text-align: left; }
.pv-q { margin: 0; font-family: var(--f-display, inherit); font-size: 18px; font-weight: 700; color: var(--ds-ink); }
.pv-p { margin: 4px 0 12px; font-size: 14px; line-height: 1.65; color: var(--ds-ink-3); }
.pv-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv .pv-go { display: flex; justify-content: center; width: 100%; margin-top: 12px; }
.pv-out:not(:empty) { margin-top: 12px; }
.pv-day { padding: 12px 14px; border: 1px solid var(--ds-red); border-radius: 10px; background: var(--ds-red-soft); }
.pv-tag { display: inline-block; margin: 0 0 6px; padding: 1px 8px; border-radius: 999px; background: var(--ds-ink-3); color: #fff; font-size: 12px; }
.pv-dh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-d { margin: 0; font-weight: 700; font-size: 16px; color: var(--ds-ink); }
.pv-d small { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--ds-red); }
.pv-sc, .wr-sc { flex: none; min-width: 2.6em; padding: 2px 7px; border-radius: 5px; background: var(--tone, #a8874a); color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.pv-sc small, .wr-sc small { font-size: 11px; font-weight: 400; margin-left: 1px; }
.pv-sc.is-high, .wr-sc.is-high { --tone: #5f7f52; } .pv-sc.is-low, .wr-sc.is-low { --tone: #9a4a3a; }
.pv-why { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--ds-ink-2, var(--ds-ink)); }
.pv-hr { margin-top: 4px; color: var(--ds-ink-3); }
.pv-acts:not(:empty) { margin-top: 12px; }
.pv-acts .btn-primary { display: flex; justify-content: center; width: 100%; text-align: center; }
.pv-none { margin: 0; font-size: 14px; color: var(--ds-ink-3); }
.pv-full { margin-top: 12px; }
.pk-hr { margin: 2px 0 0; font-size: 12.5px; color: var(--ds-ink-3); }

.wr { text-align: left; }
.wr-home { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ds-line); }
:root .wr-play { margin: 18px 0 8px; padding: 18px 18px 20px; }
.wr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.wr-t { margin: 0; font-weight: 700; font-size: 16px; color: var(--ds-ink); }
.wr-play .wr-t { font-size: 18px; }
.wr-r { margin: 0; font-size: 13px; color: var(--ds-ink-3); font-variant-numeric: tabular-nums; }
.wr-th { margin: 6px 0 10px; font-weight: 600; font-size: 15px; color: var(--ds-red); }
.wr-pick { display: grid; gap: 8px; }
.wr-day { padding: 10px 12px; border: 1px solid var(--ds-line); border-radius: 8px; background: rgba(255, 255, 255, .55); }
.wr-dh { display: flex; align-items: center; gap: 8px; margin: 0; }
.wr-dl { font-weight: 600; color: var(--ds-ink); }
.wr-dd { color: var(--ds-ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.wr-dh .wr-sc { margin-left: auto; }
.wr-why { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ds-ink-3); }
.wr .wr-more { display: flex; justify-content: center; width: 100%; margin-top: 12px; text-align: center; }
.wr-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ds-ink-3); }
.wr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wr-row { padding: 9px 12px; border: 1px solid var(--ds-line); border-radius: 8px; background: rgba(255, 255, 255, .45); }
.wr-row.is-today { border-color: var(--ds-red); }
.wr-hbtn { margin-top: 4px; padding: 2px 0; border: 0; background: none; color: var(--ds-red); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wr-hrs { margin-top: 8px; }
.wr-hrs .hr-detail { margin-top: 6px; }

.mp-from { margin: 2px 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--ds-red-soft); color: var(--ds-red); font-weight: 600; font-size: 14px; line-height: 1.5; }
.mp-back { margin: 0 0 8px; font-size: 14px; }
.mp-back a { color: var(--ds-red); text-decoration: none; font-weight: 600; }
@media (max-width: 380px) { .pv-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wr-dl { min-width: 0; }
.wr-dd { white-space: nowrap; font-weight: 400; margin-left: 2px; }
:root:lang(fr) .pv-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* v457: the home card with a chart, rebalanced. Right: the five areas of life. Left: the character beside the score and
   its bubble, then the hours, this week's report, the day picker and the buttons, so neither side is left half empty. */
:root .daily-band .daily.has-chart .dy-hrs { grid-area: hr; min-width: 0; }
:root .daily-band .daily.has-chart .wr-home { grid-area: week; min-width: 0; }
:root .daily-band .daily.has-chart .dy-pick { grid-area: pick; min-width: 0; }
:root .daily-band .daily.has-chart .dy-hrs, :root .daily-band .daily.has-chart .dy-pick { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ds-line); }
:root .daily-band .daily.has-chart .dy-hrs .hr-bars { width: 100%; }
@media (min-width: 761px) {
  :root .daily-band .daily.has-chart { grid-template-columns: 124px 72px minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 0;
    grid-template-areas: "k k k hours" "char people people hours" "char ring head hours" "char talk talk hours" "hr hr hr hours" "week week week hours" "pick pick pick hours" "acts acts acts hours";
    grid-template-rows: auto auto auto auto auto auto auto 1fr; align-items: start; }
  :root .daily-band .daily.has-chart > :is(.dy-people, .dy-row, .dy-talk, .dy-acts) { margin-left: 0; }
  :root .daily-band .daily.has-chart .dy-k { grid-area: k; }
  :root .daily-band .daily.has-chart .dy-people { grid-area: people; }
  :root .daily-band .daily.has-chart .dy-row.has-char { display: contents !important; }
  :root .daily-band .daily.has-chart .dy-ring { grid-area: ring; align-self: center; margin-top: 10px; }
  :root .daily-band .daily.has-chart .dy-head { grid-area: head; align-self: center; margin: 10px 40px 0 12px; }
  :root .daily-band .daily.has-chart .dy-char-top { grid-area: char; position: static; align-self: end; justify-self: start; width: 112px; margin: 0 0 4px; }
  :root .daily-band .daily.has-chart .dy-talk.is-solo { grid-area: talk; }
  :root .daily-band .daily.has-chart .dy-hours { grid-area: hours; grid-row: 1 / -1; }
  :root .daily-band .daily.has-chart .dy-acts { grid-area: acts; align-self: end; margin-top: 18px; }
  :root .daily-band .daily.has-chart .wr-home { margin-top: 14px; padding-top: 12px; }
}
@media (max-width: 760px) {
  :root .daily-band .daily.has-chart { grid-template-areas: "k k" "people people" "ring head" "char talk" "hours hours" "hr hr" "week week" "pick pick" "acts acts"; }
}

/* v458 今日一签: the drawn stick hangs as a token (令牌) — a red lacquer plaque with an arched top, a gold inner line,
   the number set vertically in Chinese (a large figure in other languages) and the level on a small cream seal.
   The verse and the reading live only in the slip below. */
:root .tp-stage .dr-hang.dr-token { top: 9%; width: clamp(70px, 13%, 104px); }
:root .dr-hang.dr-token::before { top: -34%; height: 36%; width: 2px; background: #7a4a2c; }
.dr-token-plate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10%; padding: 22% 0 18%;
  background: linear-gradient(180deg, #b84a32 0%, #9c3524 55%, #842b1d 100%); color: #f6e5bb;
  border-radius: 50% 50% 8px 8px / 22% 22% 8px 8px;
  box-shadow: inset 0 0 0 3px #842b1d, inset 0 0 0 4.5px #d8b46a, inset 0 2px 10px rgba(255, 220, 170, .25), 0 12px 22px -10px rgba(60, 25, 10, .55); }
.dr-token-plate::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 2px; height: 16px; background: #c9a35a; transform: translateX(-50%); }
.dr-token .tk-v { writing-mode: vertical-rl; font: 700 clamp(18px, 3vw, 26px)/1 "Noto Serif SC", "Songti SC", serif; letter-spacing: .1em; text-shadow: 0 1px 0 rgba(60, 20, 10, .35); }
.dr-token .tk-n { font: 700 clamp(30px, 5vw, 42px)/1 var(--f-display, "Noto Serif SC", serif); font-variant-numeric: lining-nums; text-shadow: 0 1px 0 rgba(60, 20, 10, .35); }
.dr-token .tk-lv { padding: 4px 3px; background: #f6e5bb; color: #8e2f20; font: 700 clamp(12.5px, 1.6vw, 15px)/1.1 "Noto Serif SC", "Songti SC", serif; letter-spacing: .08em; border-radius: 2px; text-align: center; max-width: 84%; }
.dr-token.is-zh .tk-lv { letter-spacing: .1em; padding: 3px 5px; }
.dr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { :root .tp-stage .dr-hang.dr-token { top: 4%; width: 62px; } :root .dr-token-plate { padding: 18% 0 14%; gap: 7%; } }

/* v459b: the hero fan is back to its earlier, larger cards (owner, 11-15) */
/* v458 koi card: the art's frame now holds all five fish and every leaf; phones keep the art's own shape so nothing is cut */
@media (max-width: 720px) { :root .qt-wide.qt-pond .qt-art { aspect-ratio: 1200 / 420; } }

/* v458 locked previews: what members get is shown blurred under a lock tag (seen, not readable), never a blank box */
.lk-wrap { position: relative; margin-top: 10px; border-radius: 10px; overflow: hidden; }
.lk-blur { filter: blur(4.5px); opacity: .7; pointer-events: none; user-select: none; max-height: 260px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.lk-tag { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); margin: 0; display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 999px; background: rgba(251, 246, 236, .96); border: 1px solid rgba(168, 64, 46, .35);
  color: var(--ds-red, #a8402e); font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: center; box-shadow: 0 6px 18px -8px rgba(60, 30, 10, .35); }
.lk-tag .mb-mark svg { width: 14px; height: 14px; }
.wr-sumline { margin: 0 0 2px; font-size: 14px; color: var(--ds-ink-2, #5d554b); }
.wr-lock .lk-blur { max-height: 230px; }
/* the Today strip: a locked day keeps its date and shows its score blurred behind a small lock */
.wk-day.is-locked b { position: relative; display: inline-grid; place-items: center; }
.wk-day.is-locked b .lk-num { grid-area: 1 / 1; filter: blur(3.5px); opacity: .55; }
.wk-day.is-locked b .mb-mark { grid-area: 1 / 1; position: relative; }
.cal-hours-lock + .lk-wrap { margin-top: 6px; }
/* v458 koi: each fish's progress towards its next change (colours, then grown), and the nearest one named under the five */
:root .pd-chip .pd-prog { display: block; width: 78%; height: 3px; margin-top: 3px; border-radius: 2px; background: rgba(74, 64, 56, .14); overflow: hidden; }
:root .pd-chip .pd-prog > i { display: block; height: 100%; border-radius: 2px; background: var(--el, #a8874a); }
.pd-goal { margin: 8px auto 0; max-width: 34em; text-align: center; font-size: 13.5px; color: var(--ds-ink-2, #5d554b); }
.pd-card-goal { margin: 6px 0 0; font-weight: 600; color: var(--ds-ink, #2b2722); }
/* v458 the 108 keepsake (wooden fish, beads): a red seal with the run of days and the day's line */
.kt-reward { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px auto; max-width: 30em; text-align: left; }
.kt-badge { position: relative; flex: none; width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #f6e5bb; }
.kt-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(80, 30, 15, .3)); }
.kt-badge b { position: relative; font: 700 22px/1 var(--f-display, "Noto Serif SC", serif); font-variant-numeric: lining-nums; }
.kt-badge span { position: relative; font-size: 11px; line-height: 1; letter-spacing: .12em; }
.kt-rw-text p { margin: 0; }
.kt-days { font-weight: 700; color: var(--ds-red, #a8402e); font-size: 15px; }
.kt-verse { margin-top: 4px !important; font-size: 15px; line-height: 1.6; color: var(--ds-ink, #2b2722); }
.bd-reward { margin: 4px 0 0; }
/* v458 member page: one line on what membership is for, the yearly plan recommended */
.mp-hero { margin: 4px auto 8px; max-width: 34em; text-align: center; font: 700 18px/1.6 var(--f-display, "Noto Serif SC", serif); color: var(--ds-red, #a8402e); }
.mp-opt { position: relative; }
.mp-opt.is-best { border-color: var(--ds-red, #a8402e) !important; box-shadow: 0 0 0 1px var(--ds-red, #a8402e) inset; }
.mp-best { position: absolute; top: -10px; right: 12px; padding: 2px 9px; border-radius: 999px; background: var(--ds-red, #a8402e); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.mp-opt-per { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ds-red, #a8402e); }
.mb-best { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #fff3e6; color: var(--ds-red, #a8402e); font-style: normal; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.member-link.is-current { box-shadow: inset 0 0 0 1.5px rgba(255, 244, 220, .9); }
/* the end of the sample report: what changes in your own, and the unlock */
.rp-hook { margin: 26px 0 8px; padding: 18px 20px; border: 1px solid var(--ds-red, #a8402e); border-radius: 12px; background: var(--ds-red-soft, #f6e7e1); text-align: center; }
.rp-hook h2 { margin: 0 0 6px; font-size: 18px; color: var(--ds-red, #a8402e); }
.rp-hook p { margin: 0 auto 14px; max-width: 32em; line-height: 1.7; }
.mp-opt .btn-ghost { width: 100%; min-height: 44px; padding: 0 10px; justify-content: center; }
.dy-sp { white-space: pre-wrap; }

/* v459 phone fixes found in the 390px check */
@media (max-width: 560px) {
  /* chart grid in Latin languages: whole words, a size that fits a quarter of the phone, no words split mid-way */
  :root:not(:lang(zh)) .sp-grid small, :root:not(:lang(zh)) .sp-grid .sp-god, :root:not(:lang(zh)) .sp-grid .sp-sha, :root:not(:lang(zh)) .sp-grid .sp-sha span { font-size: 11px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  :root:not(:lang(zh)) .sp-grid .sp-sha span { font-size: 10.5px; }
  :root:not(:lang(zh)) .sp-grid em .sp-h small { font-size: 10px; }
  /* the five elements under the chart: names small enough to sit apart */
  :root:not(:lang(zh)) .el-key > span { font-size: 11px; }
  :root:not(:lang(zh)) .el-key b { font-size: 10.5px; letter-spacing: 0; }
  :root:not(:lang(zh)) .el-key > span { padding: 0 1px; }
  /* copy link / save image / edit: two lines rather than spilling out of the button */
  :root .sum-acts .btn-ghost { white-space: normal; line-height: 1.2; min-height: 44px; font-size: 13px; }
  :root .mp-opt .btn-primary, :root .mp-opt .btn-ghost { white-space: normal; line-height: 1.2; }
}
@media (max-width: 760px) { :root .pond-page .lede { white-space: normal; text-wrap-style: balance; } }
@media (min-width: 761px) { :root .daily-band .daily.has-chart .wr-home .lk-blur { max-height: 118px; } :root .daily-band .daily.has-chart .wr-home .lk-tag { top: 46%; } }
/* v459 home card, desktop: the five areas share out any height the left column has over them, so both columns end together */
@media (min-width: 761px) {
  :root .daily-band .daily.has-chart .dy-hours > .ar { flex: 1 1 auto; display: flex; flex-direction: column; }
  :root .daily-band .daily.has-chart .dy-hours > .ar > .ar-list { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
}
@media (max-width: 560px) { :root:not(:lang(zh)) .season small { white-space: normal; line-height: 1.15; font-size: 11px; text-align: center; overflow: visible; text-overflow: clip; } }

/* v459b 今日一签: no token over the temple; the stick number and level head the slip */
:root .dr-slip .dr-slip-head { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 0 14px; }
:root .dr-slip .dr-no { font: 600 20px/1.2 "Noto Serif SC", "Songti SC", serif; color: var(--ink, #2f2219); letter-spacing: .14em; }
:root .dr-slip .dr-level { padding: 3px 12px; font: 700 16px/1.3 "Noto Serif SC", "Songti SC", serif; color: #fff; background: #a8402e; border-radius: 2px; letter-spacing: .12em; }
:root:is(:lang(en), :lang(fr)) .dr-slip .dr-no { letter-spacing: .02em; }
@media (min-width: 900px) { :root .dr-side-verse .dr-slip-head { margin-bottom: 16px; } }
/* v460: on wide screens the number, level and verse sit together in the middle of the left half, with no gap between them */
@media (min-width: 900px) {
  :root .dr-side.dr-side-verse { justify-content: center; }
  :root .dr-side-verse .dr-slip-head.dr-slip-head { margin: 0 0 22px; }
  :root .dr-side-verse .dr-verse.dr-verse { margin: 0; padding: 0; }
  :root .dr-side-verse .dr-verse-en.dr-verse-en { margin: 14px auto 0; }
}
/* v460: each English verse line stays on one line wherever the slip is wide enough */
:root .dr-verse-en.dr-verse-en { max-width: 30em; }
@media (min-width: 900px) { :root .dr-side.dr-side { padding: 0 30px; } }
/* v460 今日一签: a clear button under the pot, and the pot on the birthday screen leads to the birthday field */
:root .dr-draw-btn { display: block; min-width: 200px; margin: 12px auto 4px; }
:root .dr-ask.is-nudge { animation: dr-nudge .9s ease; }
@keyframes dr-nudge { 0%, 100% { box-shadow: var(--ds-shadow, 0 2px 10px rgba(0,0,0,.08)); } 35% { box-shadow: 0 0 0 4px rgba(168, 64, 46, .35); } }
/* v460 锦鲤池: lines under the buttons keep one fixed height, so nothing below moves while the fish eat */
:root .pond-page .pd-status { min-height: 40px; }
:root .pd-goal.pd-goal { margin: 2px auto 0; height: 1.6em; line-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 760px) { :root body:has(.pond-page) .bg-pond { height: max(230px, calc(100dvh - 466px)) !important; } }
:root .pond-page .pd-status.pd-status { height: 48px; min-height: 0; }
:root .pond-page .pd-status .pd-left, :root .pond-page .pd-status .pd-left.is-aim { font-size: 14px; line-height: 22px; max-height: 44px; overflow: hidden; }
@media (max-width: 760px) {
  :root.pd-tight .pond-page .lede { display: none; }
  :root.pd-tight .pond-page .crumbs { margin-bottom: 10px; }
  :root.pd-tight2 .pond-page .pd-tip:empty { display: none; }
  :root.pd-tight2 .pond-page .pd-status.pd-status { height: 44px; }
}
/* v460: every number on the site uses full-height (lining) figures; Cormorant Garamond draws low "old-style" digits
   by default, which made "每天 5 分钟", dates and prices look small and uneven (owner, 11-15) */
*, *::before, *::after { font-feature-settings: "lnum" 1 !important; } /* !important: the font shorthand used across the site resets it */
.mp-hero:lang(zh) { font-family: var(--f-body); }
/* v460 member page: feature lists keep their natural spacing (the button still sits at the bottom of the card),
   and both plan buttons fit their label on one line */
:root .mp-feats.mp-feats { align-content: start; }
:root .mp-opt :is(.btn-primary, .btn-ghost) { width: 100%; min-height: 44px; padding: 0 6px; white-space: nowrap; }
:root:is(:lang(en), :lang(fr)) .mp-opt :is(.btn-primary, .btn-ghost) { font-size: 14px; letter-spacing: 0; }
:root .mp-opt { padding: 12px 10px; }
/* v460: the two offers stack, each the full width of the page, so neither card is left half empty beside the other;
   on wide screens each card's list runs in two columns */
:root .mp-plans.mp-plans { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) {
  :root .mp-plan .mp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 8px; }
  :root .mp-plan > .btn-primary, :root .mp-plan > a.btn-primary { max-width: 360px; }
}

/* v463: also landscape phones and tablets (pointer: coarse). v462: phones zoom the page into any text field under 16px (the koi name box pushed the page sideways), so fields are 16px there */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]), select, textarea { font-size: 16px !important; }
}
:root .pd-name span { min-width: 0; }
:root .pd-name .bd-btn { flex: none; }

/* account: saved charts open into a small editor (open, rename, delete) */
.acc-charts li { display: block; padding: 0; }
.acc-ch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.acc-ch span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ch i { font-style: normal; color: var(--ink-faint); font-size: 18px; line-height: 1; transition: transform .2s; }
.acc-charts li.is-open .acc-ch i { transform: rotate(90deg); }
.acc-ed { display: grid; gap: 14px; padding: 2px 0 16px; }
.acc-nm { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-faint); }
.acc-nm span { display: flex; gap: 8px; }
.acc-nm input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.acc-nm .btn-sm { flex: none; }
.acc-msg { font-style: normal; color: var(--ink-soft); }
.acc-ed-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-del { color: var(--ink-faint); }
.acc-ed, .acc-nm { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.acc-nm input { width: 100%; }
@media (min-width: 761px) { .acc-nm { max-width: 440px; } }

/* v462: the chart reads clearer: purer five-element colours on the pillars and the luck strips, bolder stems,
   and the small grey type (藏干十神, 神煞, headings) moved one step darker */
:root .sum-chart, :root .sp-strip { --wood: #1a8a3c; --fire: #d9281c; --earth: #96602a; --metal: #c98600; --water: #1f58c4; }
:root .sp-grid b.sp-tile { font-weight: 700; text-shadow: none; }
:root .sp-grid em .sp-h > span { font-weight: 700; }
:root .sp-strip button b { font-weight: 700; }
:root .sp-grid > .sp-rh { color: #66573f; }
:root .sp-grid .sp-head, :root .sp-grid .sp-sub, :root .sp-strip button small { color: var(--ds-ink-2); }
:root .sp-grid small { color: var(--ds-ink); }
:root .sp-grid em .sp-h small { color: var(--ds-ink-2); font-size: 12.5px; }
:root .sp-grid .sp-sha { color: #6e5a3c; }
@media (max-width: 560px) { :root .sp-grid em .sp-h small { font-size: 11.5px; } }

/* v463: a quick second tap (beads, games, quiz answers, tabs) made iPhone zoom the page; keep pinch zoom, drop double-tap zoom */
html { touch-action: manipulation; }
/* v463: the hidden time-zone list kept a 51px native width at the end of its row and pushed the page sideways once "More settings" opened */
:root .tz-native { left: 0; top: 0; width: 1px !important; min-width: 0; max-width: 1px; padding: 0; border: 0; -webkit-appearance: none; appearance: none; overflow: hidden; }
/* v466: whose day the home card shows. "切换" beside "name · mood" opens a small list under the title, exactly as wide as
   the title line (name to button), so the character on the left stays in view */
:root .daily .dy-head { position: relative; }
:root .daily .dy-t { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; }
:root .daily .dy-sw { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--ds-line); border-radius: 999px; background: rgba(255, 255, 255, .6); font: 500 13px/1 var(--f-body); letter-spacing: .04em; color: var(--ds-ink-2); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
:root .daily .dy-sw svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
:root .daily .dy-sw[aria-expanded="true"] { border-color: var(--ds-ink); color: var(--ds-ink); }
:root .daily .dy-sw[aria-expanded="true"] svg { transform: rotate(180deg); }
:root .daily .dy-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 220px; max-width: calc(100vw - 32px); max-height: 60vh; overflow: auto; padding: 4px; border: 1px solid var(--ds-line); border-radius: 10px; background: #fffdf8; box-shadow: 0 12px 28px -12px rgba(60, 35, 15, .35); }
:root .daily .dy-menu[hidden] { display: none; }
:root .daily .dy-mi { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; align-items: center; column-gap: 9px; width: 100%; min-height: 44px; padding: 5px 8px; border: 0; border-radius: 7px; background: none; font: inherit; letter-spacing: normal; color: var(--ds-ink); text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:root .daily .dy-mi + .dy-mi { margin-top: 1px; }
:root .daily .dy-mi:hover, :root .daily .dy-mi:focus-visible { background: rgba(120, 90, 50, .07); outline: none; }
:root .daily .dy-mi.is-on { background: rgba(120, 90, 50, .1); }
:root .daily .dy-mi-dm { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ds-line); border-radius: 50%; background: #fff; font: 700 13px/1 "Noto Serif SC", "Songti SC", serif; color: var(--ds-ink-2); }
:root .daily .dy-mi-who { display: grid; gap: 1px; min-width: 0; }
:root .daily .dy-mi-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; line-height: 1.3; }
:root .daily .dy-mi-who small { font-size: 12px; line-height: 1.3; color: var(--ds-ink-2); font-variant-numeric: lining-nums; }
:root .daily .dy-mi i { justify-self: end; font-style: normal; font-size: 13px; color: var(--seal, #a8402e); }
:root .daily .dy-mi-new { margin-top: 3px; border-top: 1px dashed var(--ds-line); border-radius: 0 0 7px 7px; color: var(--seal, #a8402e); }
:root .daily .dy-mi-new .dy-mi-dm { border-style: dashed; background: none; color: var(--seal, #a8402e); font: 400 15px/1 var(--f-body); }
:root .daily .dy-mi-new b { font-weight: 500; }

/* v468: tab bar hidden while the phone keyboard or a picker is open */
@media (max-width: 760px) { html.kb-open .tabbar { display: none !important; } }
/* v470: the same membership paid once (WeChat Pay / Alipay): a two-way switch on the member page, a quiet link on lock cards */
.mp-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 4px 0 10px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); background: var(--ds-card-2); }
.mp-mode button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; min-height: 48px; border: 0; border-radius: calc(var(--ds-r-ctl) - 3px); background: transparent; color: var(--ds-ink-2); font: 600 15px/1.2 var(--f-body); cursor: pointer; }
.mp-mode button.is-on { background: var(--ds-red); color: #fbf6ee; }
.mb-pass { margin: 0; font-size: 13px; }
.mb-pass a { color: var(--ds-red); font-weight: 600; text-decoration: none; }
.mb-pass a:hover { text-decoration: underline; }
/* v470 member page head: the breadcrumb is the title (as on the other daily pages), then one line of promise,
   what is in it, and what is free; the sign-in note moves under the plans */
:root .member-page .mp-box > .th-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mp-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 2px 0 4px; }
.mp-head .mp-hero { margin: 0; font: 600 24px/1.35 var(--f-body); letter-spacing: .06em; color: var(--ds-ink); }
:is(:lang(en), :lang(fr)) .mp-head .mp-hero { font-family: var(--f-display); font-size: 26px; letter-spacing: .005em; }
.mp-hero-sub { margin: 0; font-size: 15px; font-weight: 600; color: var(--ds-red); letter-spacing: .04em; }
.mp-hero-sub i { font-style: normal; opacity: .6; }
.mp-lede { margin: 6px 0 0; max-width: 36em; font-size: 14px; line-height: 1.75; color: var(--ds-ink-3); }
.mp-lede span { display: block; }
.mp-status.is-out { padding: 14px 18px; }
.mp-status.is-out p { font-size: 14px; }
@media (max-width: 640px) { .mp-head .mp-hero { font-size: 21px; } .mp-hero-sub { font-size: 14px; } .mp-lede { font-size: 13.5px; } }
.mp-mode small { font-size: 11.5px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
/* v476: the note under "what you'll get" sits centred like the footer below it, its lines balanced, no seal */
:root .intro .privacy { justify-content: center; text-align: center; text-wrap: balance; padding: 18px 8px 0; }
:root .intro .privacy .seal-sm { display: none; }
