:root {
  color-scheme: dark;
  --ink: #07111f;
  --ink-deep: #040b15;
  --ink-soft: #0c1a2a;
  --card: rgba(11, 27, 45, 0.82);
  --card-solid: #0d2033;
  --line: rgba(160, 188, 218, 0.16);
  --line-bright: rgba(224, 189, 116, 0.42);
  --gold: #e0b86a;
  --gold-soft: #f2d69a;
  --blue: #9fc4e8;
  --text: #edf3fa;
  --muted: #91a5bb;
  --faint: #5d738b;
  --danger: #f1a0a0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius: 18px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

:root[data-mode="light"] {
  color-scheme: light;
  --ink: #efe8da;
  --ink-deep: #f7f2e9;
  --ink-soft: #e5dbca;
  --card: rgba(255, 252, 245, 0.88);
  --card-solid: #fffaf0;
  --line: rgba(86, 73, 49, 0.16);
  --line-bright: rgba(139, 98, 34, 0.42);
  --gold: #8b641d;
  --gold-soft: #684813;
  --blue: #456783;
  --text: #25231e;
  --muted: #766f63;
  --faint: #9b9284;
  --shadow: 0 24px 70px rgba(92, 70, 34, 0.13);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink-deep); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 15% 0%, rgba(46, 86, 126, .22), transparent 35%), radial-gradient(circle at 88% 18%, rgba(168, 119, 56, .10), transparent 28%), var(--ink); transition: background .35s ease, color .35s ease; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hidden { display: none !important; }

.sky-noise { position: fixed; inset: 0; pointer-events: none; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; z-index: 0; }
.star-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .78; z-index: 0; }
.site-header, .shell { position: relative; z-index: 1; }
.site-header { max-width: 1320px; margin: 0 auto; padding: 26px 32px; display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--gold-soft); font-size: 18px; box-shadow: 0 0 24px rgba(224,184,106,.13); }
.brand strong { display: block; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; letter-spacing: .16em; font-weight: 600; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.local-badge { color: var(--muted); font-size: 11px; }
.local-badge i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #74c59a; box-shadow: 0 0 12px #74c59a; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); background: transparent; }

.shell { max-width: 1320px; margin: 0 auto; padding: 10px 32px 70px; }
.hero { min-height: 330px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding: 45px 0 58px; }
.eyebrow { margin: 0 0 17px; color: var(--gold); font-size: 10px; letter-spacing: .25em; }
.hero h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(36px, 5vw, 68px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; }
.hero h1 em { color: var(--gold-soft); font-style: normal; }
.hero-text { max-width: 490px; margin: 22px 0 0; color: var(--muted); line-height: 1.9; font-size: 14px; }
.hero-orbit { position: relative; justify-self: end; width: min(390px, 70vw); aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.hero-orbit::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(224,184,106,.12), transparent 62%); filter: blur(2px); z-index: -1; }
.hero-orbit::after { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(159,196,232,.10); border-radius: 50%; background: repeating-conic-gradient(from 4deg, rgba(224,184,106,.32) 0 1deg, transparent 1deg 30deg); -webkit-mask: radial-gradient(circle, transparent 72%, #000 72.5% 74%, transparent 74.5%); mask: radial-gradient(circle, transparent 72%, #000 72.5% 74%, transparent 74.5%); opacity: .9; }
.orbit { position: absolute; border: 1px solid rgba(224,184,106,.34); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { inset: 8%; }
.orbit-two { inset: 20%; border-color: rgba(159,196,232,.30); transform: rotate(34deg) scaleX(.56); }
.hero-astrolabe-ticks { position: absolute; inset: 15%; border: 1px solid rgba(224,184,106,.20); border-radius: 50%; background: repeating-conic-gradient(from 8deg, rgba(224,184,106,.55) 0 1deg, transparent 1deg 15deg); -webkit-mask: radial-gradient(circle, transparent 83%, #000 83.5% 85%, transparent 85.5%); mask: radial-gradient(circle, transparent 83%, #000 83.5% 85%, transparent 85.5%); }
.hero-axis { position: absolute; width: 67%; height: 1px; background: linear-gradient(90deg, transparent, rgba(159,196,232,.38), transparent); }
.hero-axis-x { transform: rotate(-24deg); }.hero-axis-y { transform: rotate(66deg); }
.orbit-core { position: relative; z-index: 2; display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--gold-soft); background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.08), transparent 30%), rgba(8,24,42,.82); box-shadow: inset 0 0 35px rgba(224,184,106,.11), 0 0 45px rgba(79,119,165,.16); text-align: center; }
.orbit-core::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(224,184,106,.26); border-radius: 50%; }
.orbit-core .core-mark { color: var(--gold); font-size: 17px; line-height: 1; }.orbit-core b { margin-top: -3px; color: var(--text); font-size: 12px; letter-spacing: .24em; font-weight: 500; }.orbit-core small { margin-left: .18em; color: var(--muted); font-size: 7px; letter-spacing: .18em; }
.orbit-label { position: absolute; z-index: 2; color: var(--faint); font-size: 8px; letter-spacing: .18em; }.orbit-label-top { top: 18%; left: 50%; transform: translateX(-50%); }.orbit-label-bottom { bottom: 15%; right: 17%; color: var(--gold-soft); letter-spacing: .08em; }
.orbit-star { position: absolute; z-index: 2; color: var(--gold); font-size: 20px; text-shadow: 0 0 14px rgba(224,184,106,.55); }.orbit-star-a { top: 7%; left: 29%; }.orbit-star-b { bottom: 17%; right: 21%; color: var(--blue); }.orbit-star-c { top: 35%; right: 2%; font-size: 24px; }

.workspace-grid { display: grid; grid-template-columns: minmax(310px, 390px) 1fr; gap: 18px; align-items: stretch; }
.panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.055), transparent 55%), var(--card); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(18px); }
.form-card { padding: 28px; }
.panel-kicker { color: var(--gold); font-size: 10px; letter-spacing: .2em; }
.panel h2 { margin: 9px 0 7px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 25px; font-weight: 500; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.field-label { display: block; margin: 21px 0 8px; color: var(--blue); font-size: 11px; }
.date-fields { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.calendar-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.10); }
.calendar-tab { border: 0; border-radius: 7px; padding: 6px 13px; color: var(--muted); background: transparent; font-size: 11px; }.calendar-tab.active { color: #20160b; background: var(--gold); }
.leap-wrap { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--gold-soft); font-size: 11px; }.leap-wrap input { width: 14px; height: 14px; accent-color: var(--gold); }
.custom-select { position: relative; }.select-trigger { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--text); background: rgba(0,0,0,.12); text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; }.select-trigger:hover, .custom-select.open .select-trigger { border-color: var(--gold); background: rgba(224,184,106,.07); box-shadow: 0 0 0 3px rgba(224,184,106,.08); }.select-trigger span { color: var(--muted); }.select-trigger b { margin-left: auto; color: var(--gold); font-size: 16px; font-weight: 400; transition: transform .2s; }.custom-select.open .select-trigger b { transform: rotate(180deg); }
.select-menu { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 20; display: none; max-height: 270px; overflow-y: auto; padding: 6px; border: 1px solid var(--line-bright); border-radius: 12px; background: rgba(10, 27, 45, .98); box-shadow: 0 18px 45px rgba(0,0,0,.38); }.custom-select.open .select-menu { display: grid; gap: 3px; animation: menu-in .16s ease both; }.select-option { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 8px; padding: 10px 10px; color: var(--text); background: transparent; text-align: left; }.select-option:hover, .select-option.selected { color: var(--gold-soft); background: rgba(224,184,106,.14); }.select-option small { margin-left: auto; color: var(--muted); font-size: 10px; }.select-option.selected::after { content: "✦"; margin-left: auto; color: var(--gold); }.select-option.selected small { margin-left: 0; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--text); background: rgba(0,0,0,.12); }
input::placeholder { color: var(--faint); }
select option { color: #17202b; background: #faf7f0; }
.field-hint { margin: 7px 0 0; color: var(--faint); font-size: 10px; line-height: 1.6; }
.primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 25px; border: 0; border-radius: 10px; padding: 13px 15px; color: #20160b; background: linear-gradient(110deg, #c79243, #f0d08d 52%, #b77e32); font-weight: 600; box-shadow: 0 12px 25px rgba(198,145,65,.17); transition: transform .2s, filter .2s; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.08); }.primary-button b { font-size: 18px; font-weight: 400; }
.form-note { display: flex; gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); }
.form-note p { margin: 0; font-size: 11px; line-height: 1.65; }.note-icon { color: var(--gold); font-size: 18px; }
.status-line { margin-top: 18px; color: var(--faint); font-size: 10px; }.status-line.ok { color: #86cfaa; }.status-line.error { color: var(--danger); }
.intro-card { position: relative; display: flex; flex-direction: column; min-height: 390px; overflow: hidden; padding: 31px 36px; }
.intro-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -110px; top: 50%; border-radius: 50%; background: radial-gradient(circle, rgba(224,184,106,.10), transparent 62%); transform: translateY(-50%); pointer-events: none; }
.intro-card::after { content: ""; position: absolute; width: 290px; height: 290px; right: -80px; bottom: -120px; border: 1px solid var(--line-bright); border-radius: 50%; opacity: .55; pointer-events: none; }
.intro-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; letter-spacing: .12em; }.intro-status { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .04em; }.intro-status i { width: 5px; height: 5px; border-radius: 50%; background: #74c59a; box-shadow: 0 0 12px #74c59a; }.intro-layout { position: relative; z-index: 1; display: grid; flex: 1; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr); gap: 28px; align-items: center; min-height: 300px; }.intro-copy { min-width: 0; }.intro-symbol { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: var(--gold); font-size: 38px; opacity: .82; }.intro-symbol span { color: var(--muted); font-size: 10px; letter-spacing: .2em; }.intro-card h2 { margin: 0; font-size: 38px; line-height: 1.3; }.intro-card h2 em { color: var(--gold-soft); font-style: normal; }.intro-copy > p { max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.intro-stats { display: flex; gap: 38px; margin-top: 35px; }.intro-stats div { display: grid; gap: 6px; }.intro-stats strong { color: var(--gold-soft); font-size: 20px; font-weight: 500; }.intro-stats span { color: var(--faint); font-size: 10px; }.mode-note { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: var(--blue); font-size: 11px; }.mode-note span { color: var(--gold); }
.intro-visual { position: relative; min-height: 260px; display: grid; place-items: center; }.intro-ring { position: absolute; border: 1px solid rgba(224,184,106,.3); border-radius: 50%; transform: rotate(-16deg); }.intro-ring-a { width: 230px; height: 230px; }.intro-ring-b { width: 168px; height: 168px; border-color: rgba(159,196,232,.3); transform: rotate(28deg) scaleX(.62); }.intro-ring-c { width: 112px; height: 112px; border-color: rgba(224,184,106,.22); transform: rotate(62deg) scaleY(.55); }.intro-core { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--line-bright); border-radius: 50%; background: rgba(7,23,40,.65); box-shadow: 0 0 35px rgba(224,184,106,.11), inset 0 0 28px rgba(224,184,106,.08); text-align: center; }.intro-core strong { color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 500; }.intro-core small { color: var(--muted); font-size: 9px; }.intro-star { position: absolute; color: var(--gold); font-size: 17px; font-style: normal; }.intro-star-a { top: 17%; left: 22%; }.intro-star-b { right: 15%; bottom: 25%; color: var(--blue); }.intro-star-c { top: 30%; right: 10%; font-size: 24px; }.intro-visual-caption { position: absolute; right: 0; bottom: 0; display: grid; gap: 5px; text-align: right; }.intro-visual-caption b { color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 500; }.intro-visual-caption span { color: var(--faint); font-size: 10px; }
.intro-visual { position: relative; min-height: 260px; display: grid; place-items: center; }.intro-ring { position: absolute; border: 1px solid rgba(224,184,106,.3); border-radius: 50%; transform: rotate(-16deg); }.intro-ring-a { width: 230px; height: 230px; }.intro-ring-b { width: 168px; height: 168px; border-color: rgba(159,196,232,.3); transform: rotate(28deg) scaleX(.62); }.intro-ring-c { width: 112px; height: 112px; border-color: rgba(224,184,106,.22); transform: rotate(62deg) scaleY(.55); }.intro-core { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--line-bright); border-radius: 50%; background: rgba(7,23,40,.65); box-shadow: 0 0 35px rgba(224,184,106,.11), inset 0 0 28px rgba(224,184,106,.08); text-align: center; }.intro-core strong { color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 500; }.intro-core small { color: var(--muted); font-size: 9px; }.intro-star { position: absolute; color: var(--gold); font-size: 17px; font-style: normal; }.intro-star-a { top: 17%; left: 22%; }.intro-star-b { right: 15%; bottom: 25%; color: var(--blue); }.intro-star-c { top: 30%; right: 10%; font-size: 24px; }.intro-visual-caption { position: absolute; right: 0; bottom: 0; display: grid; gap: 5px; text-align: right; }.intro-visual-caption b { color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 500; }.intro-visual-caption span { color: var(--faint); font-size: 10px; }
.intro-guide { position: relative; z-index: 1; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }.guide-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 14px; }.guide-heading small { color: var(--faint); font-family: inherit; font-size: 9px; letter-spacing: .18em; }.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.guide-steps > div { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 11px 12px; border: 1px solid rgba(159,196,232,.12); border-radius: 9px; background: rgba(0,0,0,.12); }.guide-steps b { color: var(--gold); font-size: 10px; font-weight: 500; }.guide-steps span { display: grid; gap: 4px; color: var(--text); font-size: 11px; }.guide-steps small { color: var(--faint); font-size: 9px; }

.result-area { margin-top: 80px; animation: reveal .65s ease both; }.result-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 24px; }.result-heading h2 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 32px; font-weight: 500; }.result-meta { color: var(--muted); font-size: 11px; text-align: right; line-height: 1.8; }
.summary-strip { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }.summary-item { min-height: 80px; padding: 14px 16px; border-right: 1px solid var(--line); }.summary-item:last-child { border-right: 0; }.summary-item span { display: block; color: var(--faint); font-size: 10px; margin-bottom: 8px; }.summary-item strong { display: block; color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 500; }
.chart-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 18px; align-items: start; }.chart-panel { padding: 24px; }.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }.section-heading > div { display: flex; align-items: center; gap: 10px; }.section-index { color: var(--gold); font-size: 10px; letter-spacing: .12em; }.section-heading h3 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 500; }.section-hint { color: var(--faint); font-size: 10px; }
.palace-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; aspect-ratio: 1 / .86; }.palace-card { min-height: 120px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.12); transition: border-color .2s, transform .2s, background .2s; cursor: pointer; }.palace-card:hover, .palace-card.active { border-color: var(--line-bright); background: linear-gradient(135deg, rgba(224,184,106,.12), transparent), rgba(0,0,0,.08); transform: translateY(-2px); }.palace-card.empty { opacity: .68; }.palace-name { display: flex; justify-content: space-between; color: var(--gold-soft); font-size: 12px; }.palace-branch { color: var(--faint); font-size: 10px; }.palace-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }.star-tag { padding: 3px 5px; border-radius: 4px; color: var(--text); background: rgba(159,196,232,.10); font-family: "Noto Serif SC", serif; font-size: 11px; }.star-tag.major { color: var(--gold-soft); background: rgba(224,184,106,.13); }.star-tag.sha { color: #e4a7a7; background: rgba(199,102,112,.10); }.star-tag.lucky { color: #9fd6c1; background: rgba(108,190,157,.10); }.palace-footer { margin-top: 15px; color: var(--faint); font-size: 9px; }.palace-footer b { color: var(--blue); font-weight: 400; }
.palace-center { position: relative; grid-column: 2 / span 2; grid-row: 2 / span 2; overflow: hidden; border: 1px solid rgba(224,184,106,.62); border-radius: 18px; color: var(--muted); background: radial-gradient(circle at 50% 47%, rgba(224,184,106,.18), transparent 34%), linear-gradient(145deg, rgba(224,184,106,.08), rgba(5,19,34,.72) 58%); box-shadow: inset 0 0 70px rgba(224,184,106,.06), 0 14px 35px rgba(0,0,0,.16); text-align: center; isolation: isolate; }.palace-center::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(159,196,232,.16); border-radius: 14px; transform: rotate(1.5deg); pointer-events: none; }.palace-center::after { content: ""; position: absolute; width: 180px; height: 180px; top: 50%; left: 50%; border: 1px solid rgba(224,184,106,.12); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }.center-grid-lines { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(159,196,232,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(159,196,232,.18) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at center, black, transparent 72%); pointer-events: none; }.center-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(224,184,106,.42); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); pointer-events: none; }.center-orbit-a { width: 68%; height: 68%; }.center-orbit-b { width: 47%; height: 78%; border-color: rgba(159,196,232,.32); transform: translate(-50%, -50%) rotate(42deg) scaleX(.55); }.center-orbit-c { width: 31%; height: 48%; border-color: rgba(224,184,106,.25); transform: translate(-50%, -50%) rotate(-62deg) scaleX(.68); }.center-core { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 106px; height: 106px; border: 1px solid var(--line-bright); border-radius: 50%; background: radial-gradient(circle at 38% 28%, rgba(255,255,255,.08), transparent 32%), rgba(8,24,42,.86); box-shadow: 0 0 38px rgba(224,184,106,.18), inset 0 0 28px rgba(224,184,106,.11); transform: translate(-50%, -50%); }.center-core span { color: var(--muted); font-size: 8px; letter-spacing: .22em; }.center-core strong { display: block; margin: 2px 0; color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 25px; font-weight: 500; }.center-core small { color: var(--faint); font-size: 9px; }.center-star { position: absolute; z-index: 2; color: var(--gold); font-size: 15px; font-style: normal; text-shadow: 0 0 12px rgba(224,184,106,.55); }.center-star-a { top: 17%; left: 22%; }.center-star-b { right: 20%; bottom: 24%; color: var(--blue); }.center-star-c { top: 25%; right: 14%; font-size: 22px; }.center-fact { position: absolute; z-index: 2; display: grid; gap: 4px; text-align: left; }.center-fact span { color: var(--faint); font-size: 9px; letter-spacing: .15em; }.center-fact b { color: var(--text); font-size: 11px; font-weight: 500; }.center-fact-top { top: 22px; left: 23px; }.center-fact-bottom { right: 23px; bottom: 22px; text-align: right; }
.detail-column { display: grid; gap: 18px; align-content: start; }.selected-panel, .topics-panel, .chart-insights { padding: 24px; }.selected-panel { min-height: 180px; }.topics-fullscreen { margin-top: 18px; }.selected-title { display: flex; justify-content: space-between; align-items: start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.selected-title h3 { margin: 0; color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 500; }.selected-title span { color: var(--muted); font-size: 11px; }.selected-main { padding: 17px 0; }.selected-main p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }.selected-main strong { color: var(--text); font-weight: 500; }.selected-flags { display: flex; flex-wrap: wrap; gap: 7px; }.flag { border: 1px solid var(--line); border-radius: 20px; padding: 5px 9px; color: var(--blue); font-size: 10px; }.flag.gold { color: var(--gold-soft); border-color: var(--line-bright); }
.insights-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 16px; }.insights-heading small { color: var(--faint); font-family: inherit; font-size: 9px; letter-spacing: .16em; }.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.insight-card { display: grid; gap: 6px; min-height: 72px; padding: 11px; border: 1px solid rgba(159,196,232,.13); border-radius: 9px; background: rgba(0,0,0,.12); }.insight-card span { color: var(--faint); font-size: 9px; }.insight-card strong { color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 500; }.insight-card small { color: var(--muted); font-size: 9px; }.insight-tip { display: flex; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--blue); font-size: 10px; line-height: 1.7; }.insight-tip span { color: var(--gold); }.insight-tip p { margin: 0; }
.topic-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 13px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }.topic-tab { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 20px; padding: 6px 10px; color: var(--muted); background: transparent; font-size: 10px; }.topic-tab.active { color: #21170a; border-color: var(--gold); background: var(--gold); }.topic-content { min-height: 220px; padding-top: 17px; }.topic-content h4 { margin: 0 0 12px; color: var(--gold-soft); font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 500; }.rich-text { color: var(--muted); font-size: 12px; line-height: 1.9; white-space: normal; }.topic-empty { color: var(--faint); font-size: 12px; }
.data-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; color: var(--faint); font-size: 10px; }.attribution { display: grid; gap: 4px; line-height: 1.6; }.attribution a { color: var(--blue); }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 3; max-width: 350px; padding: 13px 16px; border: 1px solid rgba(241,160,160,.4); border-radius: 10px; color: #ffd1d1; background: #311b25; box-shadow: var(--shadow); font-size: 12px; }
@keyframes reveal { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; padding-bottom: 30px; }.hero-orbit { justify-self: center; width: 260px; }.workspace-grid, .chart-layout { grid-template-columns: 1fr; }.summary-strip { grid-template-columns: repeat(3, 1fr); }.summary-item:nth-child(3n) { border-right: 0; }.summary-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 650px) { .site-header, .shell { padding-left: 17px; padding-right: 17px; }.site-header { padding-top: 19px; }.local-badge { display: none; }.hero { min-height: auto; padding-top: 34px; }.hero h1 { font-size: 42px; }.intro-card { min-height: auto; padding: 25px; }.intro-layout { grid-template-columns: 1fr; gap: 8px; }.intro-visual { min-height: 210px; }.intro-visual-caption { right: 8px; bottom: 0; }.intro-symbol { margin-top: 0; }.intro-card h2 { font-size: 31px; }.intro-stats { gap: 18px; margin-top: 35px; }.summary-strip { grid-template-columns: repeat(2, 1fr); }.summary-item:nth-child(3) { border-right: 1px solid var(--line); }.summary-item:nth-child(2n) { border-right: 0; }.summary-item:nth-child(3), .summary-item:nth-child(4) { border-bottom: 1px solid var(--line); }.result-heading { display: block; }.result-meta { margin-top: 12px; text-align: left; }.detail-column { grid-template-columns: 1fr; }.palace-grid { gap: 4px; }.palace-card { min-height: 105px; padding: 7px; }.palace-tags { margin-top: 9px; }.star-tag { font-size: 9px; }.data-footer { display: block; line-height: 1.8; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
