/* Four real second-layer boards. No core, shared-home or deeper-page styles.
   Scroll/clip is OUTSIDE depth scenes; preserve-3d parents have no filter/opacity. */
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) {
  --world-time:680ms; --world-ease:cubic-bezier(.18,.76,.24,1);
  overflow-y:auto;overflow-x:hidden;align-items:start;touch-action:pan-y;display:block;padding:0;
}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__content {
  width:min(1120px,calc(100% - 64px));max-width:none;margin:0 auto;padding:86px 0 60px;text-align:left;
}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__title {
  display:inline-block;font-size:clamp(1.9rem,3vw,2.7rem);line-height:1.3;margin:2px 22px 8px 0;letter-spacing:.12em;vertical-align:middle;
}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__kicker {font-size:.65rem;margin:0 0 7px;letter-spacing:.24em;}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__subtitle {font-size:.8rem;line-height:1.6;margin:4px 0;max-width:none;}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__context {font-size:.75rem;line-height:1.7;margin:8px 0 18px;padding:0;border:0;}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__identity {display:none;}
html:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .app.is-detail #feature-page {transform:none;filter:none;transition:none;}
html:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .app.is-transitioning.is-detail {touch-action:pan-y;}
html:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .app.is-transitioning #back-button {pointer-events:auto;}
.tradition-trigger {display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:0;border-bottom:1px solid currentColor;border-radius:0;color:inherit;background:transparent;font-size:.78rem;letter-spacing:.04em;cursor:pointer;vertical-align:middle;}
#feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) > #back-button {position:absolute;top:22px;left:max(18px,calc((100% - 1120px)/2));z-index:20;}
.tradition-trigger[hidden],.ziwei-entry[hidden],#ziwei-entry-result[hidden] {display:none;}
.world-eyebrow {display:block;font-size:.68rem;letter-spacing:.16em;line-height:1.8;}
.tradition-trigger:focus-visible,.ziwei-entry button:focus-visible {outline:2px solid #b9a16b;outline-offset:3px;}

/* BAZI — one continuous ruled ledger, six aligned rows, day axis marked. */
html[data-skill-experience="bazi-order"] #feature-page[data-feature="bazi"]:has(#bazi-overview:not([hidden])) {--bazi-ink:#372e25;--bazi-muted:#73634f;--bazi-gold:#937346;--bazi-jade:#625541;--bazi-rule:#c5b394;color:#372e25;background:#f1eadd;}
#feature-page[data-feature="bazi"] .feature-page__title {color:#372e25;}
#feature-page[data-feature="bazi"] #bazi-overview {display:block;width:100%;margin:0;transition:none;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-summary {background:transparent;box-shadow:none;margin-bottom:18px;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-day-master {background:#e3d6bd;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-day-master span {color:#73634f;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage {position:relative;padding:20px 22px 14px 74px;margin:0;min-height:0;border:1px solid #b49b73;border-radius:0;background:#f9f3e7;overflow:visible;isolation:auto;perspective:1000px;transform-style:preserve-3d;box-shadow:0 7px 0 -1px #d1bd99,0 8px 0 #a68b60,0 24px 36px #46321b1a;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage::before {display:none;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage__heading {padding:0 0 12px;margin:0;border-bottom:1px solid #a58c63;gap:12px;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage__heading h3 {font-size:1.3rem;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage__heading p {font-size:.7rem;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillars {margin:0;gap:0;min-height:0;background:transparent;transform-style:preserve-3d;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar {display:grid;grid-template-rows:36px 30px 78px 78px 34px 36px;align-content:start;align-items:center;gap:0;padding:0;min-height:0;border:0;border-right:1px solid #c5b394;border-radius:0;opacity:1;transform:none;transition:none;background:transparent;box-shadow:none;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar:last-child {border-right:0;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar > * {margin:0;width:100%;height:100%;display:grid;place-items:center;line-height:1.3;border-bottom:1px solid #c5b39466;letter-spacing:.05em;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__label {grid-row:1;font-size:.8rem;background:#eadfc9;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__god {grid-row:2;font-size:.75rem;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__stem {grid-row:3;font-size:3.2rem;color:var(--element-accent);}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__branch {grid-row:4;font-size:3.2rem;color:#372e25;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__elements {grid-row:5;font-size:.78rem;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__hidden {grid-row:6;font-size:.76rem;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar.is-active {background:#b99b5c12;box-shadow:inset 0 3px #9a713a;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar::before,#feature-page[data-feature="bazi"] .bazi-axis-field i::after {display:none;}
.bazi-ledger {position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);margin-left:-52px;transform-style:preserve-3d;}
.bazi-row-labels {display:grid;grid-template-rows:36px 30px 78px 78px 34px 36px;font-size:.68rem;color:#806a48;text-align:center;pointer-events:none;}
.bazi-row-labels span {display:grid;place-items:center;}
#feature-page[data-feature="bazi"] .bazi-axis-field {inset:0 22px 0 74px;z-index:0;pointer-events:none;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-depth-gates {display:flex;gap:0;margin:26px 0 0;border-block:1px solid #bba580;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-depth-gates button {flex:1;min-height:70px;padding:12px 16px;border:0;border-right:1px solid #c5b394;background:transparent;}
#feature-page[data-feature="bazi"] #bazi-overview .bazi-tap-hint {font-size:.7rem;padding:12px 0 0;margin:0;}
/* ZIWEI — fixed square palace topology with recessed observatory center. */
#feature-page[data-feature="ziwei"] {color:#e9e4ee;background:#171725;}
#feature-page[data-feature="ziwei"] :is(.feature-page__title,.back-button) {color:#eee7f4;}
#feature-page[data-feature="ziwei"] :is(.feature-page__subtitle,.feature-page__context,.feature-page__secondary) {color:#c1b5ce;}
#feature-page[data-feature="ziwei"] :is(.feature-page__kicker,.tradition-trigger) {color:#ccb88c;}
#feature-page[data-feature="ziwei"] .motion-label {display:none;}
#feature-page[data-feature="ziwei"] .primary-action {margin:20px 0 0;min-height:48px;background:#30263e;color:#f8eedb;border:1px solid #9b846b;}
.ziwei-entry {margin:22px 0 0;}
.ziwei-entry-layout {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);gap:48px;align-items:center;}
.ziwei-entry-board {position:relative;height:480px;border:1px solid #978291;background:#151521;perspective:1100px;transform-style:preserve-3d;box-shadow:0 7px 0 -1px #34283e,0 8px 0 #695769,0 28px 45px #09071266;}
.world-star-field {position:absolute;width:50%;height:50%;left:25%;top:25%;object-fit:cover;opacity:.18;pointer-events:none;}
.ziwei-entry-grid {position:absolute;inset:0;display:grid;grid-template:repeat(4,minmax(0,1fr))/repeat(4,minmax(0,1fr));gap:1px;}
.ziwei-entry-palace {min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:10px 12px;border:1px solid #65546f;border-radius:0;color:#e8dbed;background:#262133;text-align:left;cursor:pointer;}
.ziwei-entry-palace small {font-size:.72rem;color:#c4ac86;}
.ziwei-entry-palace strong {font-size:1rem;letter-spacing:.1em;color:#f3e9f7;}
.ziwei-entry-palace span {font-size:.78rem;line-height:1.6;color:#c9b9d7;overflow-wrap:anywhere;}
.ziwei-entry-palace[aria-pressed="true"] {background:#49364e;border-color:#d4b975;box-shadow:inset 0 0 0 1px #d4b975;}
.ziwei-entry-center {position:absolute;inset:25%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px;pointer-events:none;}
.ziwei-entry-center span {font-size:.65rem;letter-spacing:.16em;color:#b2a2bd;}
.ziwei-entry-center strong {font-family:'DFKai-SB',serif;font-size:2rem;font-weight:400;color:#ddcba0;margin:12px 0 0;}
.ziwei-entry-center p {font-size:.8rem;color:#e5daf0;}
.ziwei-entry-center small {font-size:.65rem;line-height:1.7;color:#b2a5be;}
.ziwei-entry-selected {padding:24px 0;border-block:1px solid #77617f;}
.ziwei-entry-selected .world-eyebrow {color:#ccb88c;}
.ziwei-entry-selected h3 {font-family:'DFKai-SB',serif;font-size:2rem;font-weight:400;line-height:1.4;margin:16px 0;color:#f3e5fd;}
.ziwei-entry-selected p {font-size:.92rem;line-height:1.85;color:#d0c4de;}
.ziwei-entry-selected small {display:block;border-top:1px solid #50455f;padding-top:16px;font-size:.78rem;line-height:1.8;color:#bbaec8;}
/* SHENGXIAO — continuous 12-branch dial, not cards or a rotated reading layer. */
#feature-page[data-feature="zodiac"] {color:#51392f;background:#f4eee1;--zodiac-ink:#51392f;--zodiac-muted:#766552;--zodiac-rule:#c4b298;}
#feature-page[data-feature="zodiac"] :is(.feature-page__title,.back-button,.zodiac-section-heading h3) {color:#51392f;}
#feature-page[data-feature="zodiac"] .tradition-trigger {color:#975340;}
#feature-page[data-feature="zodiac"] .zodiac-result {display:block;}
.zodiac-wheel-layout {display:grid;grid-template-columns:minmax(330px,1.15fr) minmax(220px,1fr);gap:56px;align-items:center;margin:14px 0 26px;}
.zodiac-wheel {position:relative;aspect-ratio:1;max-width:440px;width:100%;margin:12px auto;container-type:inline-size;border:1px solid #aa8a5b;border-radius:50%;background:#e9ddc5;perspective:1000px;transform-style:preserve-3d;box-shadow:0 7px 0 #c2a57b,0 9px 0 #9d7952,0 22px 30px #4b352025;}
.zodiac-wheel ol {list-style:none;margin:0;padding:0;position:absolute;inset:0;border:12px double #b49a7260;border-radius:50%;pointer-events:none;}
.zodiac-wheel li {position:absolute;left:50%;top:50%;width:54px;height:66px;margin:-33px -27px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;transform:rotate(var(--angle)) translateY(-38cqw) rotate(calc(-1 * var(--angle)));color:#6c5440;}
.zodiac-wheel li strong {font-family:'DFKai-SB',serif;font-size:1.4rem;font-weight:400;}
.zodiac-wheel li span {font-size:.8rem;}.zodiac-wheel li small {font-size:.62rem;}
.zodiac-wheel li[data-active="true"] {background:#985644;color:#fff3db;border-radius:3px;box-shadow:0 3px 0 #714230;}
.zodiac-wheel-center {position:absolute;inset:29%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #b09974;border-radius:50%;color:#824b39;background:#faf6ec;box-shadow:0 5px 0 #cebd9c;}
.zodiac-wheel-center span {font-size:.74rem;letter-spacing:.12em;}
.zodiac-wheel-center strong {font-family:'DFKai-SB',serif;font-size:4.5rem;font-weight:400;line-height:1.25;}
.zodiac-wheel-center small {font-size:.9rem;color:#766044;}
.zodiac-wheel-reading {border-block:1px solid #bda381;padding:24px 0;}
.zodiac-wheel-reading h3 {font-family:'DFKai-SB',serif;font-size:2rem;font-weight:400;line-height:1.5;color:#824b39;margin:12px 0;}
.zodiac-wheel-reading p {line-height:1.9;font-size:.9rem;color:#71604d;max-width:420px;}
.zodiac-dial-facts {margin:18px 0;font-size:.88rem;}.zodiac-dial-facts > div {display:flex;gap:16px;padding:11px 0;border-bottom:1px solid #c4b298;}.zodiac-dial-facts dt {min-width:85px;color:#766552;}.zodiac-dial-facts dd {margin:0;}
.zodiac-dial-actions {display:flex;gap:12px;flex-wrap:wrap;}.zodiac-dial-actions button {padding:11px 14px;min-height:44px;color:#824b39;border:1px solid #b09974;background:transparent;font:inherit;font-size:.82rem;cursor:pointer;}
#feature-page[data-feature="zodiac"] .zodiac-identity {border-radius:0;border-block:1px solid #bea98c;background:transparent;}
#feature-page[data-feature="zodiac"] .zodiac-identity__primary {background:#ece0cb;}
/* JIUGONG — one contiguous three-by-three plate; exact existing order unchanged. */
#feature-page[data-feature="jiugong"] {background:#eceee7;color:#243a35;--zodiac-ink:#243a35;--zodiac-muted:#596b60;--zodiac-rule:#b6c2b4;}
#feature-page[data-feature="jiugong"] :is(.feature-page__title,.back-button) {color:#243a35;}
#feature-page[data-feature="jiugong"] .jiugong-result {gap:20px;}
#feature-page[data-feature="jiugong"] .jiugong-identity>div {min-height:0;padding:10px 18px;}
#feature-page[data-feature="jiugong"] .jiugong-identity strong {font-size:1.2rem;}
#feature-page[data-feature="jiugong"] .jiugong-layout {grid-template-columns:minmax(0,1fr) minmax(300px,1.05fr);gap:40px;align-items:start;}
#feature-page[data-feature="jiugong"] .zodiac-section-heading {margin:0 0 16px;padding:0;}
#feature-page[data-feature="jiugong"] .zodiac-section-heading h3 {font-size:1.3rem;}
.jiugong-board {width:100%;max-width:440px;padding:15px;background:#334b44;border:1px solid #24362f;perspective:1000px;transform-style:preserve-3d;box-shadow:0 7px 0 #61786b,0 9px 0 #263d34,0 25px 35px #20352b20;}
.jiugong-board-heading {display:flex;justify-content:space-between;gap:12px;color:#e3e9d6;font-size:.7rem;padding:3px 0 12px;}
.jiugong-board-heading:last-child {padding:12px 0 3px;}
#feature-page[data-feature="jiugong"] .jiugong-grid {gap:1px;padding:1px;background:#7b8f7f;aspect-ratio:1;transform-style:preserve-3d;}
#feature-page[data-feature="jiugong"] .jiugong-cell {border:0;border-radius:0;background:#eff0e5;box-shadow:none;min-height:0;gap:6px;}
#feature-page[data-feature="jiugong"] .jiugong-cell strong {font-family:serif;font-size:2rem;font-weight:400;}
#feature-page[data-feature="jiugong"] .jiugong-cell :is(span,small) {font-size:.74rem;line-height:1.4;}
#feature-page[data-feature="jiugong"] .jiugong-cell[aria-selected="true"] {background:#b9cbbb;color:#203c2d;box-shadow:inset 0 0 0 2px #536d58;outline:none;transform:none;}
.jiugong-natal-mark {border-bottom:2px solid #617453;font-weight:700;}
#feature-page[data-feature="jiugong"] .jiugong-summary {background:transparent;border:0;padding:0;}
#feature-page[data-feature="jiugong"] .jiugong-summary h4 {font-size:1.65rem;margin:12px 0;}
#feature-page[data-feature="jiugong"] .jiugong-summary :is(p,blockquote) {font-size:.82rem;line-height:1.8;}
/* Child motion belongs to enterFeature's transaction. No independent timers/listeners. */
.world-entry .bazi-world-stage {animation:calendar-base var(--world-time) var(--world-ease) both;}
.world-entry .bazi-axis-field {animation:calendar-axis var(--world-time) var(--world-ease) both;}
.world-entry .bazi-pillars .bazi-pillar {animation:calendar-type calc(var(--world-time) * .82) var(--world-ease) both;}
.world-entry .bazi-pillars .bazi-pillar:nth-child(even) {animation-name:calendar-type-near;}
.world-entry .bazi-row-labels {animation:world-reading var(--world-time) var(--world-ease) both;}
.world-entry .world-star-field {animation:observatory-arc var(--world-time) var(--world-ease) both;}
.world-entry .ziwei-entry-grid {animation:observatory-grid var(--world-time) var(--world-ease) both;}
.world-entry .ziwei-entry-center,.world-entry .ziwei-entry-selected {animation:world-reading var(--world-time) var(--world-ease) both;}
.world-entry .zodiac-wheel {animation:cycle-back var(--world-time) var(--world-ease) both;}
.world-entry .zodiac-wheel ol {animation:cycle-front var(--world-time) var(--world-ease) both;}
.world-entry .zodiac-wheel-center {animation:cycle-center var(--world-time) var(--world-ease) both;}
.world-entry .zodiac-wheel-reading {animation:world-reading var(--world-time) var(--world-ease) both;}
.world-entry .jiugong-board {animation:palace-base var(--world-time) var(--world-ease) both;}
.world-entry .jiugong-grid {animation:palace-grid var(--world-time) var(--world-ease) both;}
.world-entry .jiugong-board-heading,.world-entry .jiugong-summary {animation:world-reading var(--world-time) var(--world-ease) both;}
@keyframes calendar-base {from{transform:rotateX(7deg) translateY(20px)}to{transform:none}}
@keyframes calendar-axis {from{transform:translateY(-26px) scaleY(.82)}to{transform:none}}
@keyframes calendar-type {from{transform:translate3d(0,-18px,-28px);opacity:.2}to{transform:none;opacity:1}}
@keyframes calendar-type-near {from{transform:translate3d(0,14px,32px);opacity:.2}to{transform:none;opacity:1}}
@keyframes observatory-arc {from{transform:rotate(-14deg) scale(.92)}to{transform:none}}
@keyframes observatory-grid {from{transform:translateZ(-42px) scale(.93);opacity:.25}to{transform:none;opacity:1}}
@keyframes cycle-back {from{transform:translate3d(-20px,12px,-24px)}to{transform:none}}
@keyframes cycle-front {from{transform:translate3d(30px,-18px,32px)}to{transform:none}}
@keyframes cycle-center {from{transform:translate3d(-10px,16px,60px);opacity:.1}to{transform:none;opacity:1}}
@keyframes palace-base {from{transform:rotateX(11deg) translateY(20px)}to{transform:none}}
@keyframes palace-grid {from{transform:translate3d(0,-18px,50px);opacity:.2}to{transform:none;opacity:1}}
@keyframes world-reading {from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
/* Native dialog keeps focus trapped without touching navigation or saved profile. */
.tradition-dialog {position:fixed;inset:24px 24px 24px auto;margin:0;width:min(640px,calc(100vw - 48px));height:calc(100dvh - 48px);max-height:none;max-width:none;padding:0;border:1px solid #b6a582;border-radius:6px;color:#302f2b;background:#faf6ed;box-shadow:0 25px 100px #15152260;overflow:hidden;}
.tradition-dialog[open] {display:flex;flex-direction:column;animation:tradition-reveal 180ms ease-out;}
.tradition-dialog::backdrop {background:#11192590;}
.tradition-dialog>header {display:flex;justify-content:space-between;gap:20px;align-items:start;padding:28px 32px 22px;border-bottom:1px solid #cfc4ae;flex-shrink:0;}
.tradition-dialog header span {font-size:.7rem;letter-spacing:.18em;color:#7a6d50;}
.tradition-dialog h2 {font-size:1.6rem;line-height:1.5;font-family:'DFKai-SB',serif;font-weight:400;margin:12px 0 0;}
.tradition-dialog header button {flex-shrink:0;min-width:68px;min-height:44px;border:1px solid #8a7b5a;border-radius:2px;background:transparent;color:#403d33;cursor:pointer;}
.tradition-body {padding:26px 32px 48px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;line-height:1.95;font-size:1rem;}
.tradition-body section {padding:24px 0;border-bottom:1px solid #dfd5c2;}
.tradition-body h3 {font-size:1.12rem;font-weight:600;line-height:1.6;margin:8px 0 16px;}
.tradition-body p {margin:0 0 18px;}
.tradition-body small {display:block;color:#6d685e;font-size:.83rem;line-height:1.85;}
.tradition-body a {color:#286352;text-underline-offset:4px;}
.tradition-lead {color:#6e603f;font-family:'DFKai-SB',serif;font-size:1.3rem;}
@keyframes tradition-reveal {from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}

@media(max-width:900px){
 .ziwei-entry-layout {grid-template-columns:1fr;gap:28px;}.ziwei-entry-board {max-width:630px;width:100%;margin:auto;}
 .ziwei-entry-selected {padding:18px 0;}
 .zodiac-wheel-layout {grid-template-columns:minmax(280px,1fr) minmax(0,1fr);gap:26px;}
 #feature-page[data-feature="jiugong"] .jiugong-layout {grid-template-columns:1fr;gap:26px;}.jiugong-board {max-width:480px;width:100%;margin:auto;}
}
@media(max-width:600px){
 #feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) {--world-time:480ms;}
 #feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__content {width:calc(100% - 28px);padding:66px 0 40px;}
 #feature-page:is([data-feature="bazi"],[data-feature="ziwei"],[data-feature="zodiac"],[data-feature="jiugong"]) .feature-page__title {font-size:1.75rem;display:block;margin-bottom:3px;}
 .tradition-trigger {min-height:40px;padding:4px 0;font-size:.74rem;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage {padding:14px 8px 12px 40px;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage__heading {display:block;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-world-stage__heading p {max-width:none;text-align:left;margin-top:5px;font-size:.65rem;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar {grid-template-rows:32px 28px 64px 64px 32px 34px;}
 #feature-page[data-feature="bazi"] #bazi-overview :is(.bazi-pillar__stem,.bazi-pillar__branch){font-size:2.6rem;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-pillar__hidden {font-size:.65rem;letter-spacing:0;}
 .bazi-ledger {grid-template-columns:32px minmax(0,1fr);margin-left:-32px;}
 .bazi-row-labels {grid-template-rows:32px 28px 64px 64px 32px 34px;font-size:.6rem;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-depth-gates {display:flex;flex-direction:column;margin-top:22px;}
 #feature-page[data-feature="bazi"] #bazi-overview .bazi-depth-gates button {min-height:64px;border:0;border-bottom:1px solid #c5b394;}
 .ziwei-entry-board {height:430px;box-shadow:0 5px 0 #34283e;}
 .ziwei-entry-palace {padding:8px 5px;gap:6px;}.ziwei-entry-palace strong {font-size:.85rem;letter-spacing:0;}.ziwei-entry-palace span {font-size:.73rem;}.ziwei-entry-palace small {font-size:.64rem;}
 .ziwei-entry-center {padding:6px;}.ziwei-entry-center strong {font-size:1.6rem;}.ziwei-entry-center small {font-size:.6rem;}
 .zodiac-wheel-layout {grid-template-columns:1fr;gap:18px;}.zodiac-wheel {max-width:330px;}.zodiac-wheel li {width:46px;height:56px;margin:-28px -23px;}.zodiac-wheel-center strong {font-size:3.4rem;}.zodiac-wheel-reading {padding:16px 0;}.zodiac-wheel-reading h3 br {display:none;}
 #feature-page[data-feature="jiugong"] .jiugong-identity>div {padding:8px;}.jiugong-board {padding:10px;}
 #feature-page[data-feature="jiugong"] .jiugong-cell :is(span,small) {font-size:.68rem;}
 .tradition-dialog {inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);}.tradition-dialog>header {padding:20px;}.tradition-dialog h2 {font-size:1.3rem;}.tradition-body {padding:20px;}
}
@media(prefers-reduced-motion:reduce){
 #feature-page.world-entry * {animation:none!important;transition:none!important;}
 .tradition-dialog[open] {animation:none;}
}
