/* BaZi is a visual skin. Layout, control dimensions and typography come from
   the shared homepage styles, so changing modes never reflows the page. */
.bazi-fan-art, .bazi-fan-canvas { display: none; }
.mobile-ask-shell[data-signal-view="home"] .constellation-home[data-reading-mode="bazi"] {
  background: #062227 url('/static/brand/bazi-background.webp') center bottom / cover no-repeat;
}
body:has(.mobile-ask-shell[data-signal-view="home"] [data-reading-mode="bazi"]) .huhu-signal-nav { background: #061619 !important; }
.constellation-home[data-reading-mode="bazi"] { --bazi-gold: #ecd4a0; }
.constellation-home[data-reading-mode="bazi"] .constellation-orbit { visibility: hidden; }
/* Decorative layers are absolute; neither contributes to the layout height. */
.constellation-home[data-reading-mode="bazi"] .bazi-fan-art,
.constellation-home[data-reading-mode="bazi"] .bazi-fan-canvas.is-ready {
  display: block; position: absolute; width: calc(100% - 80px); height: 160%;
  left: 50%; top: -35.5%; transform: translateX(-50%); object-fit: fill; pointer-events: none;
}
.constellation-home[data-reading-mode="bazi"]:has(.bazi-fan-canvas.is-ready) .bazi-fan-art { visibility: hidden; }
.constellation-home[data-reading-mode="bazi"] .constellation-topic,
.constellation-home[data-reading-mode="bazi"] .constellation-topic.active { color: #f3dfb3; text-shadow: 0 1px 3px #082426; }
.constellation-home[data-reading-mode="bazi"] .constellation-topic[data-signal-topic-key="personality"] { color: #124a40; text-shadow: none; }
.constellation-home[data-reading-mode="bazi"] .constellation-topic img { visibility: hidden; }
.constellation-home[data-reading-mode="bazi"] .constellation-composer,
.constellation-home[data-reading-mode="bazi"] .constellation-composer:focus-within {
  background: url('/static/brand/bazi-composer.webp') center / 100% 100% no-repeat;
  box-shadow: none;
}
.constellation-home[data-reading-mode="bazi"] .constellation-composer:focus-within { outline: 1px solid #ecd4a0; outline-offset: 2px; }
.constellation-home[data-reading-mode="bazi"] .signal-question-row textarea { color: #eee8d7; }
.constellation-home[data-reading-mode="bazi"] .signal-question-row textarea::placeholder { color: #c4ccc6; }
.constellation-home[data-reading-mode="bazi"] .signal-question-row:has(textarea:placeholder-shown) > button { background: #dfb0c3; }
.constellation-home[data-reading-mode="bazi"] .signal-question-row:has(textarea:placeholder-shown) > button img { filter: none; }
.constellation-home[data-reading-mode="bazi"] .signal-mode-tabs button { color: #9bada8; }
.constellation-home[data-reading-mode="bazi"] .signal-mode-tabs button.active { color: var(--bazi-gold); }
.constellation-home[data-reading-mode="bazi"] .signal-mode-tabs button.active::after { background: var(--bazi-gold); }
.constellation-home[data-reading-mode="bazi"] .signal-section-heading h2 { color: #eee5cc; }
.constellation-home[data-reading-mode="bazi"] .signal-recent-list > a { border-color: #c7c9a72b; }
.constellation-home[data-reading-mode="bazi"] .constellation-arrow { opacity: 1; }
.constellation-home[data-reading-mode="bazi"] .constellation-arrow img { filter: brightness(2); }

/* Hover feedback changes colour only, never the mode label position. */
.constellation-home .signal-mode-tabs button:hover { transform: none; }
