:root {
  color-scheme: light;
  --ink: #101b29;
  --muted: #29364b;
  --accent-ink: #463b72;
  --line: #dcd9e9;
  --neon-yellow: #fff526;
  --navy-text: #14293d;
  --paper: #fbfafc;
  --pale: #f1eef8;
  --navy: #10243a;
  --sans: "Instrument Sans", "Noto Sans JP", "Hiragino Sans", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Instrument Serif", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.85 var(--sans); }
a { color: var(--accent-ink); text-underline-offset: .2em; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #64518e; outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
.page { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 65px; }
.brand, .topbar nav a { text-decoration: none; color: var(--ink); font-weight: 700; }
.brand { white-space: nowrap; letter-spacing: .125em; font-size: 15px; }
.brand span { color: var(--accent-ink); font-size: 1.25em; }
.topbar nav { display: flex; flex-wrap: wrap; gap: clamp(8px, 3vw, 36px); font-size: 15px; }
.topbar nav a:hover { text-decoration: underline; }
.hero { background: radial-gradient(ellipse at 77% 46%, #e2d8f8 0%, transparent 58%), linear-gradient(112deg, #fff 12%, #f0edf9 100%); border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 486px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 38px; padding-block: 58px; }
.eyebrow { font-size: 14px; font-weight: 750; color: var(--accent-ink); letter-spacing: .13em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
.hero h1 { color: #101b29; font-family: var(--sans); font-size: clamp(52px, 8vw, 100px); font-weight: 900; line-height: 1.15; letter-spacing: -.085em; margin: .2em 0 .26em; }
.hero h1 em { font-style: normal; color: inherit; background: linear-gradient(transparent 76%, var(--neon-yellow) 76% 92%, transparent 92%); padding-inline-end: .075em; }
.subtitle { font-size: clamp(21px, 2.8vw, 29px); font-weight: 700; }
.hero-copy { margin: 12px 0 24px; color: var(--muted); }
.hero-art { filter: drop-shadow(0 18px 26px #22394926); width: 100%; max-width: 490px; display: block; justify-self: center; }
.primary, .action { display: inline-flex; align-items: center; justify-content: center; gap: .65em; border-radius: 9px; min-height: 46px; padding: 8px 17px; font-weight: 750; }
.primary { color: var(--ink); background: var(--neon-yellow); text-decoration: none; box-shadow: 0 4px 0 #c1ae19; }
.primary:hover { background: #fff77c; }
.action { color: #fff; background: var(--navy-text); border: 1px solid var(--navy-text); }
.action:hover { background: #2c4c66; }
.section { padding-block: clamp(52px, 8vw, 105px); }
.tinted { background: var(--pale); border-block: 1px solid #dfd9ec; }
.section-heading { margin-bottom: 25px; max-width: 760px; }
.section-heading h2 { color: var(--ink); font-family: var(--sans); font-size: clamp(29px, 4.4vw, 44px); font-weight: 850; letter-spacing: -.04em; line-height: 1.3; margin: 7px 0 12px; }
.section-heading h2::after { content: ""; display: block; width: 65px; height: 5px; margin-top: 12px; background: var(--neon-yellow); border-radius: 5px; }
.section-heading > p:not(.eyebrow), .panel p { color: var(--muted); }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: clamp(14px, 3vw, 32px); }
.board { min-width: 0; background: radial-gradient(ellipse at 79% 16%, #42366675, transparent 57%), radial-gradient(ellipse at 48% 49%, #1d3450, var(--navy) 78%); color: #f3f8fb; border-radius: 20px; border: 1px solid #4f5377; box-shadow: 0 12px 28px #152d4520; padding: clamp(12px, 2.2vw, 24px); }
.board-top { color: #f3f8fb; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 15px; font-weight: 750; }
.board-top { padding-bottom: 8px; border-bottom: 1px solid #6e8a9e75; }
.board-top > :last-child { color: #fffaa0; }
.wheel { width: min(100%, 450px); display: block; margin: 6px auto 0; font-family: var(--sans); overflow: visible; }
.legend { color: #f3f8fb; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 16px; font-size: 15px; }
.transit-trail { filter: drop-shadow(0 0 4px #fff52690); }
.natal-key { color: #ffdda3; }
.moving-key { color: #fff88c; }
.panel { min-width: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: clamp(15px, 3vw, 30px); border-radius: 17px; box-shadow: 0 8px 24px #34245415; }
.panel h3 { font-size: clamp(23px, 2.9vw, 30px); line-height: 1.4; margin: 12px 0 8px; }
.panel .action { margin-top: 15px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choices button, #house-buttons button { min-height: 44px; border: 1px solid #bcb6ce; border-radius: 8px; padding: 6px 11px; background: #f8f6fc; color: var(--ink); font-weight: 700; }
.choices button:hover, #house-buttons button:hover { border-color: #645781; background: #eee9fb; }
.choices button[aria-pressed="true"], #house-buttons button[aria-pressed="true"] { color: #101b29; background: var(--neon-yellow); border-color: #958300; }
.basic-copy { min-height: 112px; margin-top: 16px; }
details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { color: var(--accent-ink); font-weight: 750; }
details p { margin-top: 8px; }
.comparison { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 10px; text-align: center; }
.mini-orbit svg { display: block; width: 100%; max-width: 118px; margin: auto; }
.mini-orbit b, .mini-orbit small, .mini-orbit output { display: block; line-height: 1.5; }
.mini-orbit b { color: #f3f8fb; font-size: 17px; }
.mini-orbit small { font-size: 14px; color: #e2edf3; }
.mini-orbit output { font-size: 15px; color: #fff8dc; padding-top: 5px; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.planet-picker { margin-top: 12px; font-weight: 700; }
.planet-picker select { background: #fff; color: var(--ink); border: 1px solid #a7a0bc; border-radius: 8px; margin-left: 6px; padding: 6px 12px; }
.section-heading .reading-keyword { color: var(--accent-ink); font-size: 20px; font-weight: 800; margin: 12px 0 3px; }
.reading-route { border-top: 1px solid #6e8a9e75; padding-top: 9px; }
.reading-route b { color: #fffaa0; font-variant-numeric: tabular-nums; }
.reading-route p { color: #f3f8fb; font-size: 16px; line-height: 1.6; }
.house-chooser { margin-top: 14px; }
.chooser-label { font-weight: 750; margin-bottom: 6px; }
#house-buttons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
#house-buttons button { padding: 6px 1px; font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 850; }
.house-chooser .action { margin-top: 12px; }
.reading-panel .reading-kicker { font-size: 15px; color: var(--accent-ink); font-weight: 750; }
.reading-panel h3 { margin-top: 4px; }
.reading-block { padding: 16px 0; border-top: 1px solid var(--line); }
.reading-block h4 { margin-bottom: 4px; font-size: 17px; color: var(--accent-ink); }
.reading-block p { color: var(--ink); font-size: 18px; }
#house-headline { font-size: clamp(23px, 3vw, 29px); font-weight: 750; }
.reflection { background: #f0ebfc; border: 0; border-left: 4px solid #fff526; border-radius: 0 8px 8px 0; padding: 11px 13px; margin-top: 5px; }
footer { color: var(--ink); background: #f5f2fa; font-size: 15px; }
@media (max-width: 760px) {
  .lesson-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { min-height: auto; grid-template-columns: minmax(0, 1fr) 42%; gap: 12px; padding-block: 46px; }
}
@media (max-width: 500px) {
  .page { width: calc(100% - 30px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 32px 16px; }
  .hero-art { width: min(84%, 285px); }
  .wide-only { display: none; }
  .topbar nav { font-size: 13px; }
  .brand { font-size: 13px; letter-spacing: .06em; }
  .comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.comparison { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.planet-picker select { min-height: 44px; }
@media (max-width: 600px) {
  .comparison { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
