*{box-sizing:border-box}body{margin:0;background:#080f10;color:#d9dfd6;font:14px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}button,a,input,select{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #c9aa70;outline-offset:5px}#space{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}header{height:98px;margin:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0d;position:relative}.brand{color:#ddc291;text-decoration:none;font-size:27px;display:flex;gap:14px;align-items:center}.brand b{font:24px Georgia,serif}.brand small{font-size:9px;letter-spacing:3px;border-left:1px solid #b79d6140;padding:8px 14px}nav{display:flex;gap:36px}button{border:0;background:none}nav button{font-size:13px;color:#7d8b84;height:98px}nav .active{color:#dfc896;border-bottom:2px solid #c2a36a}header>button{font-size:12px;color:#8b9890}main{position:relative;display:grid;grid-template-columns:300px minmax(400px,1fr) 230px;gap:20px;margin:46px 4% 0;min-height:680px}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#86978e}.intro h1{font:42px/1.6 'Songti SC',STSong,Georgia,serif;letter-spacing:5px;font-weight:400;margin:17px 0}.intro h1 span{color:#d2b27b}.intro>p{font-size:12px;line-height:2.1;color:#81928a;margin-bottom:35px}.birth{border:1px solid #b2caba20;background:linear-gradient(130deg,#17252288,#101a1877);padding:22px;border-radius:3px}.cardhead{font-size:14px;margin-bottom:23px;display:flex;justify-content:space-between}.cardhead span{font-size:10px;color:#637970}label{display:block;color:#8c9e94;font-size:10px;margin-bottom:19px}input,select{color:#d5ded6;background:#0d1817;border:1px solid #a8c7b323;border-radius:2px;width:100%;margin-top:9px;padding:12px 9px;font:12px inherit;color-scheme:dark}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.generate{background:#cbb07f;color:#17221d;width:100%;padding:14px;text-align:left;font-size:12px}.generate span{float:right}.birth>small{display:block;color:#667c72;font-size:9px;margin-top:15px}.quote{margin-top:28px;font:12px 'Songti SC',serif;color:#738379;letter-spacing:1px}.world{position:relative;min-height:680px}.worldtop{display:flex;justify-content:space-between;font-size:10px;color:#768d80;padding:0 15px}.live{color:#9abb9e;letter-spacing:2px}.figure{position:absolute;top:38px;width:430px;left:50%;transform:translateX(-50%);filter:drop-shadow(0 0 28px #dba64426)}.figure svg{width:100%}.worldbottom{position:absolute;bottom:14px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#61746b}.worldbottom button{width:32px;height:30px;border:1px solid #a7c5b326;margin-left:5px;font-size:17px}.orbitlabel{position:absolute;bottom:155px;left:50%;transform:translateX(-50%);text-align:center;pointer-events:none}.orbitlabel span{font-family:'Songti SC',serif;color:#cbb482;letter-spacing:5px;font-size:13px}.orbitlabel small{display:block;font-size:7px;letter-spacing:1px;color:#687e71;margin-top:9px}.readout{padding-left:15px;border-left:1px solid #d3e7d514}h2{font:20px 'Songti SC',serif;letter-spacing:3px;font-weight:400;margin:14px 0 25px}#pillars{display:flex;justify-content:space-between}#pillars div{text-align:center}#pillars small{display:block;color:#83958b;font-size:9px;margin-bottom:14px}#pillars b{display:block;font:25px/1.7 'Songti SC',serif;color:#cdb78d;font-weight:400}#pillars em{font-size:9px;font-style:normal;color:#7d9586;display:block;margin-top:11px}.elementtitle{font-size:12px;margin:33px 0 20px}.elementtitle small{font-size:8px;float:right;color:#5a7365}#elements>div{display:flex;align-items:center;gap:12px;margin:13px 0;font-size:10px}#elements i{height:3px;background:#273b30;flex:1}#elements i b{display:block;height:3px}#elements small{width:25px;color:#789281}.detail{margin-top:30px;padding:22px 17px;border:1px solid #acc4a922;background:#17221b55}.detailicon{font-size:32px;color:#a7c7ac;margin-top:18px}.detail h3{font:23px 'Songti SC',serif;letter-spacing:4px;font-weight:400;margin:12px 0}.detail p{font-size:11px;line-height:1.9;color:#8f9e91;min-height:62px}#detailmeta{border-top:1px solid #a7bfac18;padding-top:13px;font-size:9px;color:#697f6c;line-height:1.7}.outline{border:1px solid #91b09b30;width:100%;font-size:11px;margin-top:18px;padding:12px;color:#99ad9a}.symbol{position:absolute;border:0;width:65px;height:70px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#aec8b1;font-size:10px;animation:float 6s ease-in-out infinite;z-index:3}.symbol i{font-style:normal;font-size:25px;text-shadow:0 0 18px currentColor}.symbol.absent{opacity:.3}.symbol:hover,.symbol.selected{color:#f0d799;opacity:1;transform:scale(1.15)}.symbol small{font-size:8px;opacity:.7}.symbol.omen{color:#c4ae8d}@keyframes float{50%{translate:0 -8px}}footer{position:relative;margin:25px 4%;padding-top:22px;border-top:1px solid #ffffff0d;display:flex;justify-content:space-between;font-size:9px;color:#657b6b}footer button{font-size:9px;color:#aaaf90}dialog{max-width:560px;background:#13201c;color:#c8d3c7;border:1px solid #8b9d7244;padding:35px;line-height:1.9}dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}dialog p{font-size:12px;color:#9eafa0}dialog a{color:#d4bc87}#close{float:right;font-size:24px}#space{touch-action:none}.world{touch-action:pan-y}@media(min-width:1500px){main{grid-template-columns:330px minmax(400px,1fr) 260px;margin-top:65px}.figure{width:470px}}@media(max-width:1100px){main{grid-template-columns:260px minmax(360px,1fr)}.readout{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px 40px;border-left:0;padding:20px}.readout>.eyebrow,.readout>h2{grid-column:1}.detail{grid-column:2;grid-row:1/6;margin-top:0}.outline{grid-column:2}#elements{grid-column:1}footer{gap:20px}}@media(max-width:700px){header{height:74px}.brand small{display:none}nav{gap:12px}nav button{height:74px;font-size:10px}header>button{display:none}main{display:flex;flex-direction:column;margin:28px 6% 0}.intro h1{font-size:34px;margin:12px 0}.intro>p{margin-bottom:20px}.quote{display:none}.world{min-height:660px;margin:25px -4%}.figure{width:360px;top:60px}.worldbottom{font-size:8px}.readout{display:block}.detail{margin-top:28px}footer{line-height:1.8;flex-direction:column}.eyebrow{font-size:8px}.birth{padding:20px}.symbol{width:50px;font-size:9px}}

/* Both symbol families share an orbit, with distinct silhouettes. */
.symbol{width:58px;height:76px;margin-left:-29px;margin-top:-38px;gap:5px}
.symbol i{display:grid;place-items:center;width:34px;height:34px;position:relative;font-size:23px}
.symbol.god i{background:radial-gradient(circle,#9dcdbb16,transparent 70%);color:#9dcdbb}
.symbol.omen{color:#c6a9e6}
.symbol.omen i{border:1px solid #bda0db70;border-radius:50%;background:radial-gradient(circle,#8d62b72e,#39264e11);color:#d4b7ec;box-shadow:0 0 17px #b68ae323;font-size:19px}
.symbol.omen i::after{content:'';position:absolute;inset:-5px;border:1px dashed #bba1d24a;border-radius:50%;animation:seal-turn 24s linear infinite}
.symbol small{font-size:7px;letter-spacing:1px;color:inherit;opacity:.55}
.symbol.omen:hover,.symbol.omen.selected{color:#efd6ff}
.symbol.selected i{filter:drop-shadow(0 0 7px currentColor)}
.omen-empty{position:absolute;top:470px;left:0;right:0;text-align:center;font-size:10px;color:#b5a2c7}
@keyframes seal-turn{to{transform:rotate(360deg)}}
@media(max-width:700px){.symbol{width:46px;margin-left:-23px}.symbol i{width:28px;height:28px;font-size:19px}.symbol.omen i{font-size:16px}.symbol span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.symbol,.symbol.omen i::after{animation:none}}
/* Compact energy spirit stays inside the ring of interactive symbols. */
.world .figure{top:110px;width:min(52%,290px);height:310px;pointer-events:none;filter:drop-shadow(0 0 15px #dba64422)}
.figure .spirit{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 8px #ffc65b24)}
.figure::before{content:'';position:absolute;inset:12% 7%;z-index:-1;background:radial-gradient(ellipse,#dcb55b0c,transparent 68%)}
.figure-caption{position:absolute;top:434px;left:0;right:0;text-align:center;color:#bba06c;letter-spacing:7px;font:10px 'Songti SC',serif;pointer-events:none}
@media(max-width:700px){.world .figure{top:125px;width:min(52%,235px);height:280px}.figure-caption{top:429px}}

.symbol-orbit{position:absolute;border:1px solid #9fc3b017;border-radius:50%;pointer-events:none}
.orbit-stem{border-color:#c2d6b32a}.orbit-hidden{border-style:dashed}.orbit-omen{border-color:#b79bd622}
.symbol.stem{width:70px;height:86px;margin-left:-35px;margin-top:-43px}
.symbol.stem i{width:44px;height:44px;font-size:32px;text-shadow:0 0 20px #9dd8b9}
.symbol.stem span{font-size:12px;color:#dae4c9}
.symbol.hidden{width:58px;height:70px;margin-left:-29px;margin-top:-35px}
.symbol.hidden i{width:29px;height:29px;font-size:22px}
.symbol.omen{width:58px;height:70px;margin-left:-29px;margin-top:-35px}
.symbol.omen i{width:27px;height:27px;font-size:17px}
.symbol small{white-space:nowrap;font-size:7px;letter-spacing:0}
.world .figure{top:170px;width:min(30%,180px);height:230px}
.figure-caption{top:410px}
.world{min-height:760px}.orbitlabel{bottom:155px}
@media(max-width:700px){.world{min-height:750px}.world .figure{top:177px;width:30%;height:216px}.symbol.stem{width:60px;margin-left:-30px}.symbol.stem i{width:37px;height:37px;font-size:28px}.symbol.hidden{width:46px;margin-left:-23px}.symbol.hidden i{width:25px;height:25px;font-size:19px}.symbol.omen{width:46px;margin-left:-23px}.symbol.omen i{width:23px;height:23px;font-size:15px}.symbol small{font-size:6px}.figure-caption{top:401px}}

/* Quiet golden linework, with the reference used only for anatomy and pose. */
.world .figure{top:146px;width:min(37%,205px);height:auto;filter:drop-shadow(0 0 12px #c7a66412)}
.figure svg{display:block;width:100%;height:auto;overflow:visible}
.figure::before{background:radial-gradient(ellipse,#bfa36805,transparent 68%)}
@media(max-width:700px){.world .figure{top:166px;width:min(37%,180px);height:auto}}
/* The 3D scene and satellite labels share the same camera projection. */
.cosmos3d{position:absolute;top:0;left:0;right:0;height:570px;z-index:6;touch-action:none;outline:none;cursor:grab}
.cosmos3d:focus-visible{outline:1px solid #b4caa64a;outline-offset:6px}
.cosmos3d canvas{display:block;pointer-events:none}
.has-3d .figure,.has-3d .figure-caption{visibility:hidden}
.has-3d .symbol{animation:none;transition:opacity .15s;will-change:transform}
.has-3d .symbol i{transition:filter .2s}
.has-3d .symbol:hover i{filter:drop-shadow(0 0 10px currentColor)}
.has-3d .worldtop{position:relative;z-index:30;pointer-events:none}
.space-controls{position:absolute;top:558px;left:10px;right:10px;display:flex;align-items:center;justify-content:center;gap:14px;z-index:25;font-size:9px;color:#879d8b}
.space-controls button{font-size:9px;border:1px solid #acbd9d26;padding:7px 10px;color:#b3c2a5;background:#0d1817c7}
.has-3d.dragging,.has-3d.dragging .cosmos3d{cursor:grabbing}
@media(max-width:700px){.space-controls{gap:8px;font-size:8px}.space-controls button{font-size:8px}}

.has-3d{touch-action:none}.cosmos3d{pointer-events:none}

/* Fixed 2D spirit is independent of the orbital camera. */
.has-3d .figure,.has-3d .figure-caption{visibility:visible}
.has-3d .figure{z-index:10;top:285px;width:min(37%,205px);height:auto;transform:translate(-50%,-50%);pointer-events:none}
.has-3d .figure-caption{z-index:10}
@media(max-width:700px){.has-3d .figure{top:285px;width:min(37%,180px);height:auto;transform:translate(-50%,-50%)}}

.figure .selected-spirit{width:100%;height:auto;filter:saturate(.55) brightness(.82);opacity:.85}
.omens-summary{width:100%;text-align:left;color:#c2acd7;font-size:10px;border:1px solid #bca5d425;padding:10px;margin-top:18px}
.gender-field{margin-top:-3px}.gender-field select{padding:9px}
#omens-dialog{max-width:650px;width:92%}#omens-close{float:right;font-size:23px}
#omens-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}#omens-list h3{font:16px 'Songti SC',serif;color:#cab68a}
.omen-list-item{display:block;text-align:left;padding:8px 0;width:100%;font-size:12px;color:#ccb5e1;border-bottom:1px solid #b59bc21a}
.omen-list-item small{display:block;font-size:9px;color:#93a392;padding-top:4px}
.symbol.omen small{max-width:56px;overflow:hidden}
@media(max-width:700px){#omens-list{grid-template-columns:1fr}.symbol.omen span{font-size:8px}}

[hidden]{display:none!important}

/* Inline vector icons stay identical across iOS, Android and desktop fonts. */
.symbol-glyph{display:block;width:100%;height:100%;flex:none;pointer-events:none}
.symbol i>.symbol-glyph{width:92%;height:92%;filter:drop-shadow(0 0 5px #9dcdbb40)}
.symbol.omen i>.symbol-glyph{width:82%;height:82%;filter:drop-shadow(0 0 4px #c5a7df38)}
.detailicon>.symbol-glyph{width:38px;height:38px}
.detailicon[data-family="omen"]{color:#c6a9e6}
.omen-list-icon{display:inline-flex;width:23px;height:23px;vertical-align:middle;margin-right:8px;color:inherit;font-style:normal}

/* Focus only changes the glyph, never the camera-projected button transform. */
.world.is-focusing .symbol{animation-play-state:paused}
.world.is-focusing .symbol:not(.is-focused){opacity:.18!important;filter:saturate(.4);transition:opacity .18s}
.world.is-focusing .symbol.is-focused{opacity:1!important;z-index:40!important;filter:none}
.symbol.is-focused>i{animation:element-focus-glow 1.8s ease-in-out infinite}
.symbol.is-focused.god>i{color:#d5f3df}
.symbol.is-focused.omen>i{color:#f2d8ff;border-color:#e2bfff;box-shadow:0 0 20px #d2a4f74a}
.symbol.is-focused>span{color:#f1e4c3}
.world.is-focusing .cosmos3d canvas{opacity:.4;transition:opacity .2s}
#detailmeta a{color:#bdbb93;font-size:9px;text-decoration:underline;text-underline-offset:3px}
@keyframes element-focus-glow{0%,100%{filter:brightness(1.12) drop-shadow(0 0 5px currentColor)}50%{filter:brightness(1.5) drop-shadow(0 0 13px currentColor)}}
@media(prefers-reduced-motion:reduce){.symbol.is-focused>i{animation:none;filter:brightness(1.2) drop-shadow(0 0 8px currentColor)}}

/* Keep the scene still while the neighbouring explanation changes height. */
@media(min-width:701px){main>.world{align-self:start}}

/* End the compact page at the birth celestial scene. */
.worldbottom[hidden]{display:none}
@media(max-width:1100px){main>.readout{display:none}main{margin-bottom:0}.world{margin-bottom:0}}
#compact-details{width:min(420px,90vw);max-height:80vh;overflow:auto;padding:20px}
#compact-details>button{float:right;font-size:25px;position:relative;z-index:1}
#compact-details .detail{margin:0;border:0;background:none;padding:12px 4px}

.orbit-heading{display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap}
#back-to-top{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:6px 10px;border:1px solid #cbb48255;border-radius:4px;background:#14211f;color:#d6c193;font-size:10px;touch-action:manipulation}
#back-to-top:hover{background:#26352c;border-color:#cbb482}
#back-to-top svg{flex:none;pointer-events:none}

#play{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:6px 10px;border:1px solid #cbb48255;border-radius:4px;background:#14211f;color:#d6c193;font-size:10px;touch-action:manipulation}
#play:hover,#play[aria-pressed="true"]{background:#26352c;border-color:#cbb482}
#play svg{flex:none;pointer-events:none}
@media(max-width:400px){.orbit-heading{gap:7px}.orbitlabel span{letter-spacing:3px}#play,#back-to-top{padding:6px 7px}}

/* Explanations stay beside the inspected element, on desktop and touch screens. */
#element-popover{position:fixed;z-index:1000;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:#10201ef5;border:1px solid #b9c99b66;border-radius:8px;box-shadow:0 10px 40px #0009;padding:16px;pointer-events:none;touch-action:pan-y}
#element-popover[hidden]{display:none}
#element-popover[data-interaction="tap"]{pointer-events:auto}
#element-popover .detail{margin:0;padding:0;border:0;background:none}
#element-popover .detailicon{margin-top:10px}
#element-popover .detail h3{font-size:20px;margin:9px 0}
#element-popover .detail p{min-height:0;font-size:12px;line-height:1.8;margin:9px 0}
#element-popover .detail>div:last-of-type{border-top:1px solid #a7bfac25;padding-top:10px;font-size:10px;color:#8fa48f;line-height:1.7}
#element-popover .detail .motif-note{color:#cfbc91;font-size:11px}
.popover-close{float:right;width:32px;height:32px;position:relative;z-index:1;border:1px solid #b9c99b44;border-radius:4px;font-size:23px;line-height:1;color:#d9dfd6}
.popover-close[hidden]{display:none}
.popover-notice{display:block;font-size:9px;line-height:1.7;color:#8b9b8f;margin-top:12px}

/* The lower celestial scene scrolls with the page; only star rings capture gestures. */
.world.has-3d{touch-action:pan-y}
.cosmos3d,.world .symbol{touch-action:none}

/* Wider-spaced current-period layers beyond the natal rings. */
.world{min-height:950px}.cosmos3d{height:720px}
.world .figure,.has-3d .figure{top:360px;width:min(28%,160px);height:auto;transform:translate(-50%,-50%)}
.period-legend{position:absolute;top:29px;left:0;right:0;display:flex;justify-content:center;gap:18px;font-size:9px;pointer-events:none;z-index:21}
.period-legend span:first-child{color:#dfbc80}.period-legend span:last-child{color:#9bcce8}
.period-legend span::before{content:'';display:inline-block;width:6px;height:6px;border:1px solid currentColor;border-radius:50%;margin-right:5px}
.period-status{font-size:10px;line-height:1.8;color:#a6b5a7;margin:0 0 16px}
.symbol.dayun,.symbol.dayun.omen{color:#dfbc80}.symbol.annual,.symbol.annual.omen{color:#9bcce8}
.symbol.dayun i,.symbol.annual i{width:29px;height:29px}
.symbol.dayun i::before,.symbol.annual i::before{content:'';position:absolute;inset:-4px;border:1px solid currentColor;opacity:.35;border-radius:6px}
.symbol.annual i::before{border-radius:50%;border-style:dashed}
@media(max-width:700px){.world{min-height:940px}.world .figure,.has-3d .figure{top:360px;width:min(28%,140px)}.symbol.dayun,.symbol.annual{width:46px;margin-left:-23px}.symbol.dayun i,.symbol.annual i{width:24px;height:24px}.symbol.dayun span,.symbol.annual span{font-size:8px}}
