/* Planetary Portrait — midnight blue, aged brass, quiet celestial light. */
:root {
  --bg: #0b0e19; --surface: #121a2c; --surface-2: #1b243b;
  --text: #f1eee8; --muted: #b5bfd2; --line: #aabdd52b;
  --accent: #c0d4ef; --accent-text: #141827; --gold: #dcc49a;
  --ok: #9edac2; --warn: #e5c794; --focus: #edce93; --radius: 22px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --tone-mercury: #bfd1e3; --tone-venus: #e0b898; --tone-mars: #dd9b8e;
  --tone-jupiter: #dbc197; --tone-saturn: #dfcbb1; --tone-uranus: #a1d5d7; --tone-neptune: #a5bdef;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; isolation: isolate; color: var(--text); background: var(--bg); font: 15px/1.95 var(--sans); }
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before {
  background: linear-gradient(180deg,#080d1bc2,#0b112c80 50%,#120e248c), url("assets/cosmic-nebula.webp") center / cover no-repeat;
}
body::after {
  background: radial-gradient(ellipse at 82% 16%,#687cc522,transparent 45%), radial-gradient(ellipse at 10% 75%,#6f45851c,transparent 50%),
    radial-gradient(1px 1px at 13% 19%,#dae5fc88 80%,transparent), radial-gradient(1px 1px at 67% 39%,#dae5fc88 80%,transparent),
    radial-gradient(1px 1px at 81% 74%,#dae5fc88 80%,transparent), radial-gradient(1px 1px at 29% 83%,#dae5fc77 80%,transparent);
  background-size: auto,auto,233px 307px,389px 443px,277px 317px,433px 271px;
}
main { max-width: 780px; margin: 0 auto; padding: 24px 28px 80px; outline: none; }
main[data-view="intro"] { max-width: 1180px; }
h1,h2,h3 { line-height: 1.55; margin: 1.2em 0 .5em; }
h1,h2 { font-family: var(--serif); font-weight: 500; letter-spacing: .07em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem,5.6vw,2.5rem); }
/* 見出しの語の途中で改行させない（狭い画面で一文字だけ次の行に落ちるのを防ぐ）。 */
.phrase { display: inline-block; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; font-weight: 500; }
p { margin: .85em 0; } a { color: var(--accent); text-underline-offset: 4px; }
button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
::selection { background: #c5a6774d; color: #fff; }
.site-header { max-width: 1180px; margin: 0 auto; padding: 26px 28px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #c5d5f018; }
.brand { color: var(--text); text-decoration: none; font-size: .87rem; font-weight: 600; letter-spacing: .11em; white-space: nowrap; }
.brand::before { content: "◎"; color: var(--gold); font-size: 1.35rem; margin-right: 10px; vertical-align: -1px; }
.header-note { font: 10px/1.6 Georgia,serif; color: #a4acc0; letter-spacing: .18em; }
.site-footer { max-width: 780px; margin: 0 auto; padding: 30px 28px 38px; color: #a6b2c9; font-size: .72rem; border-top: 1px solid var(--line); }
.eyebrow { color: var(--gold); font: 500 .63rem/1.7 var(--sans); letter-spacing: .23em; margin: 0 0 14px; }
.page-heading { text-align: center; margin: 32px 0; }
.page-heading h1 { margin: 10px 0 14px; } .page-heading p:not(.eyebrow) { font-size: .84rem; }
.muted { color: var(--muted); } .small { font-size: .79rem; } .center { text-align: center; }
.card { background: linear-gradient(125deg,#202b429e,#131b31c9 65%); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 18px 0; box-shadow: inset 0 1px 0 #ffffff07,0 16px 40px #03071526; }
.card.featured { border-color: #d6bd8b69; background: linear-gradient(135deg,#2e304294,#182039db 70%); }
.card h2:first-child { margin-top: 0; } .card > p { font-size: .88rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 13px 25px; border-radius: 10px; border: 1px solid #f3dcac70; background: linear-gradient(115deg,#f0d8ac,#d5b983 58%,#c8ad83); color: var(--accent-text); font: 600 .88rem/1.5 var(--sans); letter-spacing: .03em; cursor: pointer; text-decoration: none; box-shadow: inset 0 1px 0 #fff6,0 5px 28px #d9b57d1a; transition: transform .2s,background .2s,box-shadow .2s; }
.btn > span { font-size: 1.1rem; font-weight: 400; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 35px #d9b57d33; }
.btn.secondary { background: linear-gradient(120deg,#2e395251,#20253e80); border-color: #c3cfe449; color: var(--text); box-shadow: inset 0 1px 0 #ffffff09; font-weight: 500; }
.btn.link { background: none; border: none; color: var(--muted); min-height: 44px; padding: 6px 8px; font-size: .8rem; font-weight: 400; text-decoration: underline; text-underline-offset: 5px; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; } .btn.link:hover { box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; align-items: center; } .actions.center { justify-content: center; }
/* The opening has one invitation, rather than a stack of information panels. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 570px; padding: 44px 0 56px; position: relative; }
.hero-copy { padding-left: 28px; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem,3.3vw,2.85rem); line-height: 1.65; letter-spacing: .07em; margin: 18px 0 22px; }
.hero .lead { font-size: .9rem; line-height: 2.1; color: #c1c9d9; }
.hero-actions { margin: 30px 0 15px; } .hero-meta { color: #b8bfcf; font-size: .73rem; letter-spacing: .05em; } .hero-meta span { margin: 0 14px; color: var(--gold); }
.hero .lead strong { font-weight: 500; color: var(--text); }
.hero-rescue { font-size: .72rem; color: #c9d0df; margin-top: 12px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 25px 0; }
.benefit-grid > div { padding: 16px 0 0; border-top: 1px solid #d9c49655; }
.benefit-grid h3 { margin: 0 0 10px; font-family: var(--serif); color: var(--gold); font-size: 1rem; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: .79rem; }
.profile-label { text-align: center; padding: 12px 12px 26px; }
.profile-label h2 { font-size: clamp(1.3rem,4vw,1.8rem); margin: 8px 0 12px; color: var(--gold); overflow-wrap: anywhere; }
.profile-label > p:last-child { font-size: .71rem; color: var(--muted); }
.mobile-break { display: none; }
.celestial-scene { position: relative; width: 100%; aspect-ratio: 480 / 440; max-width: 520px; }
.celestial-scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse,#7d94c32b,transparent 62%); filter: blur(12px); }
.celestial-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-caption,.scene-coordinate { position: absolute; font: 8px/1.5 var(--sans); letter-spacing: .18em; color: #bac4db99; }
.scene-caption { bottom: 3%; left: 0; right: 0; text-align: center; } .scene-coordinate { top: 7%; right: 1%; writing-mode: vertical-rl; }
.intro-content { max-width: 724px; margin: auto; } .concept-card { border-radius: 0; border-width: 1px 0; background: linear-gradient(90deg,#1b254221,transparent); padding: 32px 12px; box-shadow: none; }
.concept-card h2 { font-size: 1.6rem; } .concept-card p { color: #c7cedb; } .concept-card strong { color: var(--text); font-weight: 500; }
.planet-showcase { padding: 58px 0 44px; text-align: center; } .planet-showcase h2 { margin: 0 0 34px; font-size: 1.55rem; }
.planet-gallery { display: grid; grid-template-columns: repeat(7,1fr); gap: 12px; }
.planet-gallery > div { display: flex; align-items: center; flex-direction: column; gap: 12px; min-width: 0; }
.planet-gallery .planet-orb { width: 48px; height: 48px; }
.planet-gallery > div > span:not(.planet-orb) { font-family: var(--serif); font-size: .86rem; }
.planet-gallery small { font-size: .64rem; color: var(--muted); margin-top: -8px; }
.experience { padding: 22px 0 36px; } .experience > h2 { margin-top: 0; }
.experience-steps { list-style: none; padding: 0; margin: 32px 0; }
.experience-steps li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.experience-steps li > span { color: var(--gold); font: 28px/1.4 Georgia,serif; } .experience-steps h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.08rem; } .experience-steps p { margin: 0; font-size: .85rem; color: var(--muted); }
/* Matte anime-inspired paintings, shared with the locally exported result image. */
.planet-orb { display: inline-block; position: relative; flex: 0 0 auto; width: 76px; height: 76px; isolation: isolate; }
.planet-illustration { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.orb-saturn > .planet-illustration { width: 180%; height: 104%; left: -40%; top: -2%; }
.hero-planet { position: absolute; width: 42%; height: auto; aspect-ratio: 1; left: 30%; top: 27%; }
.scene-neptune { position: absolute; width: 15%; height: auto; aspect-ratio: 1; left: 8%; top: 61%; }
.scene-venus { position: absolute; width: 11%; height: auto; aspect-ratio: 1; left: 77%; top: 17%; }
/* One coherent journey through birth information, reflection, and the reading. */
.journey { display: grid; grid-template-columns: repeat(4,1fr); padding: 0; margin: 8px 0 42px; list-style: none; gap: 12px; }
.journey li { color: #a5adc0; border-top: 1px solid #9dafce38; padding-top: 11px; font-size: .72rem; display: flex; align-items: center; gap: 9px; }
.journey li > span { font: .7rem Georgia,serif; opacity: .8; } .journey [aria-current="step"] { color: var(--gold); border-color: var(--gold); } .journey li.complete { color: var(--accent); }
.birth-card { padding: 34px; }
.form-section-title { display: flex; align-items: center; gap: 15px; margin: 32px 0 16px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-section-title:first-child { margin-top: 0; padding-top: 0; border: 0; } .form-section-title > span { font: 23px Georgia,serif; color: var(--gold); } .form-section-title h2 { margin: 0; font-size: 1.17rem; }
.form-row { margin: 22px 0; min-width: 0; } .form-row label { display: block; font-size: .84rem; font-weight: 500; margin-bottom: 9px; }
select,input[type="date"],input[type="time"],input[type="number"] { font: .95rem var(--sans); display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 54px; padding: 12px 14px; border-radius: 10px; border: 1px solid #96abce4d; background: #090f20a8; color: var(--text); }
select:focus,input:focus { border-color: var(--gold); } select:disabled { opacity: .55; }
.form-row .field-label { display: block; font-size: .84rem; font-weight: 500; margin-bottom: 9px; }
.date-fields { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto; gap: 8px; }
.date-calendar { position: relative; display: flex; align-items: center; justify-content: center; width: 54px; min-height: 54px; border: 1px solid #96abce4d; border-radius: 10px; background: #090f20a8; color: var(--gold); cursor: pointer; }
.form-row .date-calendar { display: flex; margin: 0; }
.date-calendar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.date-calendar:hover, .date-calendar:focus-within { border-color: var(--gold); }
.date-calendar input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-row .date-part { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; min-width: 0; }
.date-part select { flex: 1 1 auto; padding-left: 12px; padding-right: 6px; }
/* スマホ幅では、1段目に年とカレンダー、2段目に月と日を半分ずつ置き、2桁の数字が隠れないようにする。 */
@media(max-width:560px) { .date-fields { display: flex; flex-wrap: wrap; } .date-fields .date-part { flex: 1 1 calc(50% - 4px); } .date-fields .date-part:first-child { flex-basis: calc(100% - 62px); } .date-calendar { flex: 0 0 54px; order: 1; } .date-fields .date-part:not(:first-child) { order: 2; } }
.date-part span { color: var(--muted); font-size: .84rem; flex: none; }
input[type="time"] { -webkit-appearance: none; appearance: none; text-align: left; }
input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field-help { font-size: .75rem; color: var(--muted); line-height: 1.9; margin: 9px 0 0; }
.form-privacy { text-align: center; color: var(--muted); font-size: .72rem !important; } .form-privacy > span { color: var(--gold); }
.birth-card .actions > .btn { width: 100%; }
.notice { background: #809abc12; border-left: 2px solid #b1c3df88; border-radius: 0 10px 10px 0; padding: 14px 16px; font-size: .82rem; color: #d2daea; }
.error { color: #ffb7b0; font-size: .85rem; min-height: 1em; margin: 4px 0; }
.calculation-status { display: flex; align-items: center; gap: 16px; color: var(--gold); font-size: .8rem; }
.orbit-loader { display: inline-block; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #d6bd8b44; border-top-color: var(--gold); border-radius: 50%; animation: orbit-turn 1.5s linear infinite; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
.question-panel { padding: 26px 32px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(140deg,#1d2944b0,#0f1730c2); }
.progress { display: flex; align-items: center; gap: 16px; color: var(--gold); font: .82rem Georgia,serif; margin: 20px 0 30px; }
.progress-bar { flex: 1; height: 2px; background: #aebfdb29; overflow: hidden; border-radius: 999px; } .progress-bar span { display: block; height: 100%; background: linear-gradient(90deg,#abc1e4,var(--gold)); }
.question-eyebrow { margin-top: 3px; }
.question-number { font-family: var(--serif); color: var(--gold); font-size: 1.25rem; letter-spacing: .06em; margin: 2px 0 0; }
.question-number span { font-size: .85rem; color: var(--muted); }
.question-panel { animation: question-in .42s ease-out; }
.question-panel.is-leaving { transform: translateX(-10px); transition: transform .3s ease; }
.question-panel.is-leaving .choice:not(:has(input:checked)), .question-panel.is-leaving .actions { opacity: .3; transition: opacity .25s ease; }
.question-panel.is-leaving .choice input:checked + label { background: #d4b88340; }
@keyframes question-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.chart-legend { list-style: none; padding: 0; margin: 4px auto 18px; max-width: 390px; color: var(--muted); display: grid; gap: 6px; }
.chart-legend li { display: flex; align-items: center; gap: 10px; }
.legend-swatch { flex: none; width: 22px; height: 14px; border-radius: 3px; }
.legend-swatch.sector { background: #e2c68f55; border: 1px solid #e2c68f; }
.legend-swatch.axis { height: 0; border-top: 1px dashed #92acd0; }
.legend-swatch.candidate { width: 14px; border-radius: 50%; background: #dec38c; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { padding: 0; }
.question-text { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; line-height: 1.95; margin: 26px 0; }
.instruction { color: var(--muted); font-size: .8rem; margin-bottom: 24px; }
.choices { display: grid; gap: 10px; } .choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.choice label { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid #adc0df30; border-radius: 10px; background: #18213b88; cursor: pointer; min-height: 55px; font-size: .87rem; transition: background .18s,border-color .18s; }
.choice label::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #bbc9e177; border-radius: 50%; }
.choice:hover label { background: #9db3dd15; border-color: #e0c99880; } .choice input:checked + label { border-color: var(--gold); background: #d4b88318; }
.choice input:checked + label::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px #29303f; }
.choice input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 4px; } .choice.subtle label { color: var(--muted); }
.compare { display: grid; gap: 12px; margin-bottom: 24px; } .compare .option { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #1c2744; font-size: .88rem; } .compare .tag { color: var(--gold); margin-right: 10px; font: 1.3rem Georgia,serif; }
/* A visual portrait precedes the detailed interpretation. No invented percentages. */
.planet-system { position: relative; overflow: hidden; text-align: center; padding: 45px 28px 28px; border: 1px solid #d8c19140; border-radius: 24px; background: radial-gradient(ellipse at 50% 30%,#6d8ebf22,transparent 62%),linear-gradient(155deg,#1c2a4670,#181c37b8 70%); box-shadow: 0 24px 60px #03061735; }
.system-halo { position: absolute; top: 22px; left: 50%; width: 270px; height: 270px; transform: translateX(-50%); border-radius: 50%; border: 1px solid #d6c39630; pointer-events: none; }
.system-halo::before,.system-halo::after { content: ""; position: absolute; border: 1px solid #b0c2e31f; border-radius: 50%; inset: -18px; } .system-halo::after { inset: 18px; border-style: dashed; opacity: .55; }
.system-primary { position: relative; padding: 26px 0 0; }
.system-primary > .planet-orb { width: 140px; height: 140px; margin-bottom: 45px; } .system-primary > .orb-saturn { margin-bottom: 48px; }
.system-primary .eyebrow { margin-bottom: 10px; }
.system-role { display: block; width: fit-content; margin-inline: auto; color: var(--gold); font: 500 1rem/1.5 var(--sans); letter-spacing: .2em; padding: 3px 14px 3px 17px; border: 1px solid #d9bd8480; border-radius: 999px; margin-bottom: 10px; }
.system-role.sub { font-size: .82rem; letter-spacing: .12em; padding: 1px 10px 1px 12px; margin: 0 0 4px; } .system-primary h2 { font-size: 2.4rem; letter-spacing: .15em; margin: 4px 0; } .system-primary > p:last-child { color: var(--gold); font-size: .86rem; margin: 8px 0 0; }
.system-secondary { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 30px; padding: 30px 0 20px; margin-top: 30px; border-top: 1px solid var(--line); position: relative; }
.system-satellite { display: flex; align-items: center; text-align: left; gap: 17px; flex: 0 1 260px; }
.system-satellite > .planet-orb { width: 56px; height: 56px; margin: 0 8px; } .system-satellite small { color: var(--gold); font-size: .65rem; } .system-satellite h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0; } .system-satellite p { color: var(--muted); font-size: .7rem; margin: 0; }
.system-empty { color: var(--muted); font-size: .82rem; margin: 30px 0; }
.system-note { color: #aebad0; font-size: .7rem; line-height: 1.9; position: relative; margin: 15px 0 0; } .system-pending { position: relative; padding: 36px 0 12px; } .system-pending h2 { font-size: 1.4rem; margin: 8px 0; }
.result-time-note { text-align: center; padding: 0 14px; } .share-actions { margin-bottom: 10px; } #image-status { font-size: .7rem; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 2px 12px; color: var(--muted); font-size: .8rem; letter-spacing: .05em; } .count-label { font: .6rem var(--sans); letter-spacing: .13em; color: var(--gold); }
.planet-head { display: flex; align-items: center; gap: 20px; position: relative; flex-wrap: wrap; }
.planet-head > .planet-orb { width: 66px; height: 66px; margin: 6px 8px; } .planet-head > div { flex: 1; min-width: 125px; }
.planet-english { color: var(--planet-tone,var(--gold)); font: .57rem/1.5 var(--sans); letter-spacing: .2em; }
.planet-head h3 { margin: 3px 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.planet-glyph { font: 1.05rem Georgia,serif; color: var(--planet-tone); opacity: .8; margin-left: 14px; }
.planet-head .core { color: var(--planet-tone,var(--gold)); font-size: .72rem; letter-spacing: .03em; }
.role { font-size: .8rem; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); align-self: flex-start; } .role.main { border-color: #d9bd8480; color: var(--gold); }
.candidate-card > p,.planet-card > p { color: #c2cbdb; font-size: .85rem; margin-top: 22px; }
.planet-card { border-top: 2px solid var(--planet-tone); } .planet-card.featured { padding: 30px; }
dl.facets { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 14px; margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .75rem; } dl.facets dt { color: var(--muted); } dl.facets dd { margin: 0; }
.status-supported { color: var(--ok); font-weight: 500; } .status-low { color: var(--muted); } .status-unconfirmed,.status-not-asked { color: var(--warn); }
.subhead { color: var(--gold); font-size: .8rem; font-weight: 500; margin: 22px 0 4px; } .reading-body p:not(.subhead) { color: #c2cddd; font-size: .84rem; }
.planet-reading { border-top: 1px solid var(--line); padding-top: 14px; }
.planet-reading summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; min-height: 44px; font-size: .81rem; color: var(--accent); } .planet-reading summary::-webkit-details-marker { display: none; } .planet-reading summary span { color: var(--gold); font-size: 1.2rem; } .planet-reading[open] summary span { transform: rotate(45deg); }
.portrait-card { padding: 36px; } .portrait-card > h2 { font-size: 1.65rem; margin: 22px 0 32px; } .portrait-card h3 { font-family: var(--serif); color: var(--gold); font-size: 1.12rem; margin-top: 30px; }
.portrait-card > p { line-height: 2.1; } .portrait-card details { color: var(--muted); font-size: .75rem; border-left: 1px solid #d0bb8d4d; padding-left: 14px; } .portrait-card details summary { cursor: pointer; }
details.card { background: #15203b80; padding: 20px 25px; } details.card > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: .84rem; min-height: 30px; gap: 18px; }
details.card > summary::-webkit-details-marker { display: none; } details.card > summary::after { content: "+"; color: var(--gold); font: 22px Georgia,serif; } details.card[open] > summary::after { content: "−"; } details.card[open] > summary { margin-bottom: 22px; }
details.card > p,details.card li { font-size: .84rem; color: #c2cddd; } details.card h3 { font-family: var(--serif); color: var(--gold); font-size: 1.08rem; }
.kicker { text-align: center; color: var(--gold); letter-spacing: .15em; font-size: .7rem; margin: 8px 0 16px; }
.verdict { text-align: center; font-family: var(--serif); font-size: clamp(1.6rem,7vw,2.5rem); font-weight: 500; color: var(--gold); letter-spacing: .1em; margin: 0 0 20px; line-height: 1.7; }
table.overview { width: 100%; border-collapse: collapse; font-size: .76rem; } table.overview th,table.overview td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } table.overview th { color: var(--muted); font-weight: 400; } .table-wrap { overflow-x: auto; }
.history-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.closing { text-align: center; color: var(--muted); font-family: var(--serif); font-size: .87rem; padding: 30px 4px; line-height: 2.1; }
.ad-slot { margin: 64px auto 8px; padding: 18px 0 0; border-top: 1px solid var(--line); text-align: center; color: #a5b2cc; font-size: .65rem; width: 100%; max-width: 728px; }
.ad-slot[hidden] { display: none; }
.ad-label { margin: 0 0 12px; letter-spacing: .16em; }
.adsbygoogle { min-height: 100px; width: 100%; }
.ad-preview-space { display: grid; place-items: center; min-height: 140px; border: 1px dashed #c9a54a35; border-radius: 12px; background: linear-gradient(135deg,#19223a70,#0b102050); color: #8794af; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.footer-links a { color: #d6bd8b; text-underline-offset: 4px; }
.policy-page h2 { font-size: 1.15rem; }
.policy-page a { color: #e0c998; text-underline-offset: 4px; overflow-wrap: anywhere; }
/* Existing astronomical diagram retained, with restrained contrast. */
.chart-stage { position: relative; padding: 16px 0; margin: 20px -8px 4px; background: radial-gradient(circle,#48618d22 0,transparent 68%); }
.chart { display: block; width: 100%; max-width: 390px; margin: 8px auto; filter: drop-shadow(0 16px 28px #00000055); overflow: visible; }
.chart-star { position: absolute; color: var(--gold); opacity: .7; } .star-one { top: 10%; right: 7%; font-size: 14px; } .star-two { bottom: 16%; left: 3%; font-size: 20px; }
.ch-outer { fill: url(#chart-field); stroke: #7788a7; stroke-opacity: .55; stroke-width: .7; } .ch-ring { fill: none; stroke: #7b8ba8; stroke-opacity: .35; stroke-width: .6; }
.ch-quadrant { fill: url(#chart-sector); stroke: #e2c68f; stroke-opacity: .85; stroke-width: 1.2; } .ch-tick { stroke: #7485a1; stroke-opacity: .4; stroke-width: .6; } .ch-sign { font-size: 8px; fill: #aebace; text-anchor: middle; dominant-baseline: central; }
.ch-axis { stroke: #92acd0; stroke-opacity: .65; stroke-width: .7; stroke-dasharray: 2 5; } .ch-dir { font-size: 9px; font-weight: 500; fill: #c7d5ec; text-anchor: middle; dominant-baseline: central; }
.ch-leader { stroke: #9caac0; stroke-opacity: .6; stroke-width: .5; } .ch-planet { fill: #1a2940; stroke: #a6b6d0; stroke-width: .7; } .ch-planet.is-candidate { fill: #dec38c; stroke: #f6e4bd; stroke-width: 1; }
.ch-label { font-size: 12px; font-weight: 500; fill: #e4eafa; text-anchor: middle; dominant-baseline: central; } .ch-label.is-candidate { fill: #1b2230; font-weight: 700; }
.noscript { padding: 16px; text-align: center; }
@media(min-width:640px) { .compare { grid-template-columns: 1fr 1fr; } .candidate-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } .candidate-grid .card { margin: 0; padding: 24px; } }
@media(max-width:760px) {
  .header-note { display: none; } .hero { display: flex; flex-direction: column; padding: 4px 0 38px; min-height: auto; text-align: center; }
  .hero-copy { padding: 0; order: 1; } .celestial-scene { max-width: 370px; margin: 0 auto -12px; }
  .hero h1 { font-size: clamp(1.95rem,6.2vw,2.8rem); margin: 12px 0 20px; line-height: 1.7; }
  .hero-copy > .eyebrow { font-size: .57rem; margin-top: 12px; } .hero .lead { font-size: .84rem; }
  .hero-actions { justify-content: center; margin-top: 24px; } .desktop-break { display: none; }
  .scene-caption { font-size: 7px; } .scene-coordinate { font-size: 7px; }
  .planet-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 18px; }
  .planet-gallery > div:nth-child(5) { grid-column: 1; } .planet-gallery { max-width: 410px; margin: auto; }
  .concept-card { padding: 28px 0; } .planet-showcase { padding: 48px 0 32px; }
}
@media(max-width:420px) {
  .benefit-grid { grid-template-columns: 1fr; gap: 16px; }
  main { padding: 18px 20px 60px; } .site-header { padding: 18px 20px; } .site-footer { padding: 24px 20px; }
  .hero .celestial-scene { width: calc(100% + 16px); max-width: 350px; margin: -8px -8px -10px; }
  .hero h1 { font-size: 1.95rem; } .hero .lead { max-width: 330px; } .hero-actions .btn { width: 100%; }
  .hero-meta { margin-top: 12px; } .hero { padding-bottom: 24px; }
  .card,.birth-card,.portrait-card,.planet-card.featured { padding: 23px; } .page-heading { margin: 25px 0; }
  .page-heading h1 { font-size: 1.8rem; } .journey { gap: 8px; margin-bottom: 28px; } .journey li { font-size: .64rem; gap: 5px; } .journey li > span { font-size: .65rem; }
  .btn { width: 100%; } .actions .btn.link { width: auto; } .question-panel { padding: 22px 18px 16px; }
  .question-text { font-size: 1.16rem; } .choice label { padding: 14px; font-size: .83rem; }
  .planet-head { gap: 14px; } .planet-head > .planet-orb { width: 54px; height: 54px; margin: 6px; } .planet-head > div { min-width: 140px; }
  .planet-head h3 { font-size: 1.4rem; } .role { position: absolute; top: -9px; right: -8px; padding: 2px 9px; font-size: .74rem; }
  .planet-head .core { font-size: .68rem; } .planet-system { padding: 36px 20px 24px; } .system-primary { padding-top: 26px; }
  .system-halo { top: 22px; width: 240px; height: 240px; } .system-primary > .planet-orb { width: 120px; height: 120px; margin-bottom: 44px; }
  .system-primary h2 { font-size: 2.1rem; } .system-satellite { flex-basis: 235px; } .system-secondary { gap: 24px; padding-top: 26px; }
  .portrait-card > h2 { font-size: 1.35rem; margin-bottom: 24px; } details.card { padding: 18px 20px; }
  dl.facets { font-size: .69rem; gap: 10px; } .planet-showcase h2 { font-size: 1.3rem; } .concept-card h2 { font-size: 1.4rem; }
  .count-label { font-size: .53rem; } .section-label { font-size: .75rem; } .experience-steps li { gap: 18px; }
}
@media(max-width:350px) { .hero h1 { font-size: 1.7rem; } .journey li { flex-direction: column; align-items: flex-start; gap: 1px; } .planet-head > div { min-width: 115px; } .planet-head .core { font-size: .61rem; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
