:root {
  --paper: #f4f0e8;
  --ink: #102a43;
  --orange: #bd3511;
  --blue: #2d79a5;
  --lime: #d7df35;
  --muted: #626765;
  --line: rgba(16, 42, 67, 0.2);
  --max: 1120px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(45, 121, 165, 0.12), transparent 28%), var(--paper);
}
button,
a {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.8rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 48px);
  margin: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.wordmark small {
  font-size: 0.72rem;
  letter-spacing: 0;
}
.beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.review-menu {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 14px 0;
  cursor: pointer;
}
.review-menu:focus-visible,
.wordmark:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.review-panel {
  position: fixed;
  z-index: 20;
  top: 78px;
  right: 18px;
  width: min(330px, calc(100vw - 36px));
  padding: 16px;
  background: var(--ink);
  color: white;
  box-shadow: 0 20px 50px rgba(16, 42, 67, 0.28);
  display: grid;
  gap: 2px;
}
.review-panel[hidden] {
  display: none;
}
.review-panel a {
  color: white;
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.review-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}
main {
  min-height: calc(100vh - 78px);
}
.screen {
  max-width: var(--max);
  margin: auto;
  padding: 52px 24px 72px;
  animation: enter 0.38s ease both;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}
.provisional {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 0.25rem 0.55rem;
  vertical-align: middle;
}
.landing {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 130px);
}
.landing h1 {
  font: 700 clamp(3.7rem, 8vw, 8rem)/0.85 var(--serif);
  letter-spacing: -0.07em;
  margin: 0.3rem 0 2rem;
}
.landing h1 span {
  display: block;
  color: var(--orange);
  font: 700 clamp(1rem, 1.8vw, 1.35rem)/1.2 var(--sans);
  letter-spacing: 0.12em;
  margin-top: 1rem;
}
.lead {
  font: 600 clamp(1.75rem, 4vw, 3.6rem)/1.32 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
.landing-copy {
  font-size: 1.05rem;
  line-height: 1.95;
  max-width: 35rem;
}
.landing-privacy {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--lime);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}
.meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.primary {
  background: var(--ink);
  color: white;
}
.primary:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.secondary {
  background: transparent;
  color: var(--ink);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.landing-art {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  overflow: hidden;
  color: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.landing-art:before {
  content: "";
  position: absolute;
  width: 105%;
  height: 62%;
  right: -38%;
  top: 13%;
  border: 2px solid var(--blue);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px var(--ink),
    0 0 0 28px var(--blue),
    0 0 0 54px var(--ink),
    0 0 0 56px var(--blue),
    0 0 0 82px var(--ink),
    0 0 0 84px var(--blue);
  transform: rotate(-18deg);
}
.landing-art:after {
  content: "";
  position: absolute;
  left: 14%;
  bottom: 15%;
  width: 30%;
  height: 30%;
  background: var(--orange);
  clip-path: polygon(0 40%, 100% 0, 72% 100%);
}
.art-index,
.art-note {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}
.art-note {
  align-self: flex-end;
  writing-mode: vertical-rl;
  line-height: 2;
}
.route {
  position: absolute;
  z-index: 2;
  left: 18%;
  top: 37%;
  width: 55%;
  height: 28%;
  border-top: 3px dashed var(--paper);
  border-radius: 50%;
  transform: rotate(18deg);
}
.route:before,
.route:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
}
.route:before {
  left: -2px;
  top: -8px;
}
.route:after {
  right: -2px;
  top: -4px;
  background: var(--orange);
}
.intro {
  max-width: 720px;
  text-align: center;
  min-height: calc(100vh - 130px);
  display: grid;
  place-content: center;
}
.intro .number {
  font: 700 5rem/1 var(--serif);
  color: var(--orange);
  margin-bottom: 2rem;
}
.intro h1 {
  font: 700 clamp(2rem, 6vw, 4rem)/1.25 var(--serif);
  margin: 0 0 1rem;
}
.intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 2rem;
}
.question-screen {
  max-width: 900px;
  padding-top: 32px;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.counter {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.progress-track {
  height: 3px;
  background: rgba(16, 42, 67, 0.14);
  flex: 1;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  transition: width 0.35s ease;
}
.question-stem {
  font: 600 clamp(1.65rem, 4vw, 2.75rem)/1.45 var(--serif);
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}
.choices {
  border: 0;
  padding: 0;
  margin: 0;
}
.pole-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.pole {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 700;
}
.pole.right {
  text-align: left;
}
.pole-marker {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  color: white;
  font: 800 0.85rem var(--sans);
}
.or {
  font: italic 1rem var(--serif);
  color: var(--orange);
}
.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 28px 0 18px;
}
.scale-label {
  position: relative;
  cursor: pointer;
}
.scale-label input {
  position: absolute;
  opacity: 0;
}
.tap {
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  place-items: center;
  min-height: 86px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  transition: 0.18s ease;
}
.scale-choice-copy {
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}
.scale-label input:checked + .tap {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--orange);
}
.scale-label input:focus-visible + .tap {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.question-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 48px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.hint {
  font-size: 0.75rem;
  color: var(--muted);
}
.compiling {
  min-height: calc(100vh - 130px);
  display: grid;
  place-content: center;
  text-align: center;
}
.compiling h1 {
  font: 600 2rem var(--serif);
}
.axis-loader {
  display: grid;
  gap: 16px;
  width: min(520px, 80vw);
  margin: 28px auto;
}
.axis-loader div {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  animation: reveal 0.5s both;
}
.axis-loader div:nth-child(2) {
  animation-delay: 0.15s;
}
.axis-loader div:nth-child(3) {
  animation-delay: 0.3s;
}
.axis-loader div:nth-child(4) {
  animation-delay: 0.45s;
}
.result {
  padding-top: 30px;
}
.result-hero {
  background: var(--ink);
  color: white;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  overflow: hidden;
}
.result-copy {
  padding: clamp(34px, 7vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-copy h1 {
  font: 700 clamp(2.6rem, 7vw, 5.8rem)/1.08 var(--serif);
  margin: 0.3rem 0 0.5rem;
  letter-spacing: -0.05em;
}
.code {
  color: var(--lime);
  font-size: 1.1rem;
  letter-spacing: 0.45em;
  font-weight: 800;
}
.catch {
  font: 500 clamp(1.2rem, 2.5vw, 1.75rem)/1.6 var(--serif);
  max-width: 33rem;
}
.motif {
  position: relative;
  background: var(--orange);
  min-height: 400px;
  overflow: hidden;
}
.motif:before,
.motif:after {
  content: "";
  position: absolute;
  border: 3px solid var(--paper);
  border-radius: 50%;
  width: 78%;
  aspect-ratio: 1;
  left: 15%;
  top: 11%;
  box-shadow:
    0 0 0 28px var(--orange),
    0 0 0 31px var(--paper),
    0 0 0 59px var(--orange),
    0 0 0 62px var(--paper);
}
.motif:after {
  width: 18px;
  height: 18px;
  left: 63%;
  top: 34%;
  background: var(--lime);
  border: 0;
  box-shadow:
    -115px 135px 0 var(--ink),
    88px 210px 0 var(--blue);
}
.result-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.result-guide {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}
.action-hub {
  padding: 72px 0;
  scroll-margin-top: 72px;
}
.action-hub-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  column-gap: 42px;
  margin-bottom: 34px;
}
.action-hub-heading .section-label {
  grid-column: 1 / -1;
}
.action-hub-heading h2 {
  font: 700 clamp(2.2rem, 4vw, 3.8rem)/1.15 var(--serif);
  margin: 0.55rem 0 0;
}
.action-hub-heading p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0.8rem 0 0;
}
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pathway-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
.pathway-card.is-recommended {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: translateY(-10px);
  box-shadow: 0 10px 0 var(--lime);
}
.pathway-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.recommend-badge {
  align-self: flex-start;
  background: var(--lime);
  color: var(--ink);
  padding: 6px 8px;
  margin-top: 18px;
  font-size: 0.7rem;
  font-weight: 800;
}
.pathway-card h3 {
  font: 700 1.7rem/1.35 var(--serif);
  margin: 1.2rem 0 0.8rem;
}
.concept-label {
  margin-top: 1.1rem;
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.live-content {
  margin-top: auto;
  padding: 14px 0;
  border-top: 1px solid currentColor;
}
.live-content-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.live-content-label strong {
  color: var(--orange);
}
.live-content h4 {
  font: 700 1rem/1.5 var(--serif);
  margin: 0.55rem 0 0;
}
.live-content p,
.pathway-card .live-content p {
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 0.4rem 0 0;
}
.live-content.is-fallback {
  color: var(--muted);
}
.is-recommended .live-content.is-fallback {
  color: rgba(255, 255, 255, 0.72);
}
.pathway-card p {
  line-height: 1.75;
  margin: 0 0 1.2rem;
}
.pathway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 1.5rem;
}
.pathway-tags span {
  border: 1px solid currentColor;
  padding: 5px 7px;
  font-size: 0.72rem;
}
.pathway-action {
  color: inherit;
  text-decoration: none;
  border-top: 1px solid currentColor;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}
.pathway-action:hover span,
.pathway-action:focus-visible span {
  transform: translateX(5px);
}
.pathway-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 24px;
}
.result-guide a {
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  padding: 17px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  border-right: 1px solid var(--line);
}
.result-guide a:last-child {
  border-right: 0;
}
.result-guide a:hover,
.result-guide a:focus-visible {
  background: var(--lime);
}
.deep-reading {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.deep-reading-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  column-gap: 42px;
  margin-bottom: 34px;
}
.deep-reading-heading .section-label {
  grid-column: 1 / -1;
}
.deep-reading-heading h2,
.compatibility-heading h2 {
  font: 700 clamp(2rem, 4vw, 3.7rem)/1.15 var(--serif);
  margin: 0.55rem 0 0;
}
.deep-reading-heading p,
.compatibility-heading p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0.7rem 0 0;
}
.reading-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reading-card {
  background: var(--paper);
  padding: 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}
.reading-index {
  color: var(--orange);
  font: 800 1.1rem var(--sans);
}
.reading-card h3 {
  font: 700 1.55rem/1.35 var(--serif);
  margin: 0.45rem 0 0.8rem;
}
.reading-card p {
  line-height: 1.85;
  margin: 0;
}
.reading-card .reading-nuance {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.combined-reading {
  background: var(--ink);
  color: white;
  margin-top: 24px;
  padding: 42px;
}
.combined-reading h3 {
  font: 700 2rem var(--serif);
  margin: 0.5rem 0 1rem;
}
.combined-reading p {
  max-width: 58rem;
  line-height: 1.9;
}
.card-detail {
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.2rem;
}
.compatibility {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.compatibility-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 42px;
  margin-bottom: 34px;
}
.compatibility-heading .section-label {
  grid-column: 1 / -1;
}
.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.compatibility-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
}
.compatibility-art {
  min-height: 245px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #cfe5ee 0 52%, #f6a46f 52% 100%);
}
.compatibility-art > span {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  background: var(--ink);
  color: white;
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.compatibility-character {
  position: absolute;
  width: 255px;
  max-width: 92%;
  aspect-ratio: 1;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 7px rgba(16, 42, 67, 0.16));
}
.compatibility-copy {
  padding: 26px;
}
.compatibility-copy h3 {
  font: 700 1.65rem var(--serif);
  margin: 0.45rem 0 0.55rem;
}
.compatibility-copy p {
  line-height: 1.75;
}
.compatibility-catch {
  color: var(--blue);
  font-weight: 700;
}
.compatibility-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 18px;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  font-weight: 800;
}
.story {
  font: 500 clamp(1.3rem, 2.5vw, 1.8rem)/1.8 var(--serif);
  margin-top: 0.8rem;
}
.axis-list {
  display: grid;
  gap: 30px;
}
.axis-card h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}
.axis-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}
.axis-line {
  height: 9px;
  background: linear-gradient(90deg, var(--blue) 0 var(--pos), rgba(16, 42, 67, 0.12) var(--pos));
  position: relative;
  margin: 12px 0;
}
.axis-line:after {
  content: "";
  position: absolute;
  left: calc(var(--pos) - 8px);
  top: -4px;
  width: 17px;
  height: 17px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.axis-note {
  color: var(--muted);
  line-height: 1.65;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}
.flex-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.45rem;
  margin-left: 0.4rem;
}
.result-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 56px 0;
}
.paper-card {
  border: 1px solid var(--line);
  padding: 32px;
  background: rgba(255, 255, 255, 0.28);
}
.paper-card h2 {
  font: 600 1.7rem var(--serif);
  margin: 0.5rem 0 1.2rem;
}
.paper-card ul {
  padding-left: 1.2rem;
  line-height: 1.9;
}
.nearby {
  grid-column: 1/-1;
  background: var(--blue);
  color: white;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
.nearby .nearby-name {
  font: 700 2.2rem var(--serif);
}
.step {
  grid-column: 1/-1;
  background: var(--lime);
  border: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
.cta-block {
  margin: 0 0 56px;
  background: var(--orange);
  color: white;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-block h2 {
  font: 600 clamp(1.6rem, 3vw, 2.6rem) var(--serif);
  margin: 0;
}
.share-area {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 34px;
  margin-bottom: 56px;
  align-items: center;
}
.share-result-card {
  background: var(--ink);
  color: white;
  min-height: 0;
  aspect-ratio: 1200 / 630;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58% 42%;
}
.share-card-copy {
  padding: clamp(22px, 4vw, 48px);
  position: relative;
  z-index: 2;
}
.share-card-kicker {
  font-size: clamp(0.65rem, 1.3vw, 0.9rem);
  font-weight: 800;
}
.share-card-kicker span {
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 0.25em 0.4em;
  margin-left: 0.45em;
}
.share-result-card h3 {
  font: 700 clamp(1.8rem, 4vw, 3.7rem)/1.05 var(--serif);
  margin: clamp(18px, 4vw, 48px) 0 0.35em;
  letter-spacing: -0.04em;
}
.share-result-card p {
  font: 500 clamp(0.85rem, 1.8vw, 1.35rem)/1.55 var(--serif);
  max-width: 25rem;
}
.share-card-art {
  position: relative;
  background: linear-gradient(145deg, #f7a16d 0 57%, #2d79a5 57% 100%);
  overflow: hidden;
}
.share-card-art:before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border: 2px solid rgba(244, 240, 232, 0.7);
  border-radius: 50%;
  left: 10%;
  top: 10%;
  box-shadow: 0 0 0 24px transparent, 0 0 0 26px rgba(244, 240, 232, 0.7), 0 0 0 50px transparent, 0 0 0 52px rgba(244, 240, 232, 0.7);
}
.share-card-art > span {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 9px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.share-card-character {
  position: absolute;
  z-index: 2;
  width: 112%;
  aspect-ratio: 1;
  left: -8%;
  bottom: -18%;
  filter: drop-shadow(0 12px 9px rgba(16, 42, 67, 0.2));
}
.share-card-cta {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 15%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: clamp(0.64rem, 1.25vw, 0.95rem);
}
.share-card-cta span {
  font-weight: 800;
}
.share-preview-caption {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 10px 0 0;
}
.share-tools {
  padding: 10px 0;
}
.share-copy {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 20px;
  line-height: 1.8;
  white-space: pre-line;
}
.shared-result {
  padding-top: 30px;
}
.shared-invite {
  background: var(--lime);
  padding: 44px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.shared-invite h2 {
  font: 700 clamp(2rem, 4vw, 3.4rem)/1.15 var(--serif);
  margin: 0.3rem 0 0.5rem;
}
.shared-invite p {
  max-width: 42rem;
  line-height: 1.7;
  margin: 0;
}
.shared-invite .primary {
  flex: 0 0 auto;
  background: var(--ink);
  border-color: var(--ink);
}
.shared-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 18px 0 0;
}
.result-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 55rem;
  margin-top: 36px;
}
.types-screen h1,
.debug-screen h1 {
  font: 600 clamp(2.5rem, 6vw, 5rem) var(--serif);
  margin: 0.3rem 0 1rem;
}
.type-group {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.type-group h2 {
  font: 600 1.4rem var(--serif);
}
.type-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.type-tile {
  padding: 20px;
  border: 1px solid var(--line);
  min-height: 145px;
  background: rgba(255, 255, 255, 0.25);
}
.type-tile strong {
  display: block;
  font: 600 1.25rem var(--serif);
  margin: 0.5rem 0;
}
.type-tile small {
  letter-spacing: 0.18em;
  color: var(--orange);
}
.debug-banner {
  background: #162f46;
  color: white;
  padding: 16px 24px;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.debug-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.debug-actions button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0 16px;
  cursor: pointer;
}
.debug-actions button:hover {
  background: var(--ink);
  color: white;
}
.debug-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.debug-table th,
.debug-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.debug-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.pass {
  color: #167050;
  font-weight: 800;
}
.debug-json {
  background: #102a43;
  color: #e8f1f5;
  padding: 20px;
  overflow: auto;
  max-height: 380px;
  font-size: 0.78rem;
  line-height: 1.6;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  z-index: 50;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: scaleX(0.5);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@media (max-width: 780px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }
  .review-panel {
    top: 64px;
  }
  .screen {
    padding: 34px 18px 54px;
  }
  .landing {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .landing h1 {
    font-size: 3.8rem;
    margin-top: 0;
  }
  .landing-art {
    aspect-ratio: 5/3;
    order: -1;
    min-height: 205px;
  }
  .landing-art .art-note {
    display: none;
  }
  .lead {
    font-size: 2rem;
  }
  .question-screen {
    padding-top: 20px;
  }
  .progress-row {
    margin-bottom: 34px;
  }
  .question-stem {
    font-size: 1.65rem;
    margin-bottom: 32px;
    text-align: left;
  }
  .pole-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pole.right {
    text-align: left;
  }
  .or {
    display: none;
  }
  .scale {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }
  .tap {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    justify-items: start;
    min-height: 54px;
    padding: 8px 14px;
    text-align: left;
  }
  .tap > strong {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(16, 42, 67, 0.08);
  }
  .scale-label input:checked + .tap > strong {
    background: rgba(255, 255, 255, 0.16);
  }
  .scale-choice-copy {
    align-self: center;
    line-height: 1.45;
    text-align: left;
  }
  .hint {
    display: none;
  }
  .result {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
  }
  .result-hero {
    grid-template-columns: 1fr;
  }
  .result-copy {
    padding: 42px 24px;
  }
  .motif {
    min-height: 210px;
  }
  .result-grid,
  .result-columns,
  .share-area {
    margin-left: 18px;
    margin-right: 18px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .result-guide {
    margin: 0;
    grid-template-columns: 1fr 1fr;
  }
  .result-guide a:nth-child(2) {
    border-right: 0;
  }
  .result-guide a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .result-guide a:nth-child(4) {
    border-right: 0;
  }
  .result-guide a:nth-child(3),
  .result-guide a:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }
  .result-guide a:last-child {
    grid-column: 1 / -1;
  }
  .deep-reading,
  .compatibility,
  .action-hub {
    padding: 50px 18px;
  }
  .deep-reading-heading,
  .compatibility-heading,
  .action-hub-heading {
    grid-template-columns: 1fr;
  }
  .deep-reading-heading h2,
  .compatibility-heading h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .reading-list,
  .compatibility-grid,
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .reading-card {
    padding: 26px 22px;
  }
  .combined-reading {
    padding: 30px 24px;
  }
  .action-hub-heading h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .pathway-card {
    min-height: 0;
  }
  .pathway-card.is-recommended {
    transform: none;
    box-shadow: 0 7px 0 var(--lime);
  }
  .shared-result {
    padding: 0;
  }
  .shared-invite {
    margin: 0;
    padding: 32px 24px;
    align-items: stretch;
    flex-direction: column;
  }
  .shared-invite .primary {
    width: 100%;
  }
  .shared-note {
    margin: 18px;
  }
  .result-grid {
    padding: 50px 0;
  }
  .nearby,
  .step {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cta-block {
    margin: 0 18px 42px;
    padding: 32px 24px;
    align-items: flex-start;
    flex-direction: column;
  }
  .result-actions {
    margin: 0 18px;
  }
  .disclaimer {
    margin: 30px 18px 0;
  }
  .type-list {
    grid-template-columns: 1fr 1fr;
  }
  .debug-table {
    display: block;
    overflow-x: auto;
  }
  .question-footer {
    margin-top: 12px;
  }
}
@media (max-width: 390px) {
  .landing h1 {
    font-size: 3.35rem;
  }
  .landing-copy {
    font-size: 1rem;
  }
  .meta {
    margin: 1.3rem 0;
  }
  .actions {
    display: grid;
  }
  .actions > * {
    width: 100%;
  }
  .question-stem {
    font-size: 1.5rem;
  }
  .tap {
    min-height: 56px;
  }
  .result-copy h1 {
    font-size: 3rem;
  }
  .type-list {
    grid-template-columns: 1fr;
  }
  .share-preview h3 {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phase E R1.1 character direction */
.character {
  background-image: url("assets/k16-character-sprite-v1.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: var(--cx) var(--cy);
}
.landing-art {
  background: linear-gradient(145deg, #cfe5ee 0 48%, #f6a46f 48% 100%);
  color: var(--ink);
  padding: 26px;
}
.landing-art:before {
  inset: 18px;
  width: auto;
  height: auto;
  right: 18px;
  top: 18px;
  border: 1px solid rgba(16, 42, 67, 0.22);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  z-index: 2;
  pointer-events: none;
}
.landing-art:after {
  inset: 0;
  left: 0;
  bottom: 0;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 20% 16%, var(--lime) 0 8px, transparent 9px),
    radial-gradient(circle at 83% 78%, var(--orange) 0 8px, transparent 9px);
  clip-path: none;
  z-index: 1;
  pointer-events: none;
}
.hero-cast {
  position: absolute;
  z-index: 1;
  inset: 8% 3% 4%;
  width: 94%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 8px rgba(16, 42, 67, 0.12));
}
.landing-art .art-index,
.landing-art .art-note {
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 800;
}
.landing-art .art-index {
  background: var(--paper);
  padding: 8px 10px;
  align-self: flex-start;
}
.landing-art .art-note {
  align-self: flex-end;
  writing-mode: horizontal-tb;
  line-height: 1.5;
  background: var(--ink);
  color: white;
  padding: 9px 12px;
}
.motif {
  background:
    radial-gradient(circle at 78% 17%, var(--lime) 0 9px, transparent 10px),
    linear-gradient(145deg, #f7a16d 0 58%, #2d79a5 58% 100%);
}
.motif:before {
  border: 2px solid var(--paper);
  width: 78%;
  left: 12%;
  top: 8%;
  box-shadow:
    0 0 0 24px transparent,
    0 0 0 26px var(--paper),
    0 0 0 50px transparent,
    0 0 0 52px var(--paper);
  opacity: 0.55;
}
.motif:after {
  inset: 22px;
  width: auto;
  height: auto;
  left: 22px;
  top: 22px;
  border-radius: 0;
  border: 1px solid rgba(16, 42, 67, 0.35);
  background: transparent;
  box-shadow: none;
}
.result-character {
  position: absolute;
  z-index: 2;
  width: min(88%, 430px);
  aspect-ratio: 1;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 10px rgba(16, 42, 67, 0.2));
}
.character-caption {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 32px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 10px;
}
.type-tile {
  padding: 16px 20px 22px;
  min-height: 290px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.type-tile:nth-child(4n + 1) {
  background: #eef6f8;
}
.type-tile:nth-child(4n + 2) {
  background: #fff0e5;
}
.type-tile:nth-child(4n + 3) {
  background: #f3f5d8;
}
.type-tile:nth-child(4n) {
  background: #e8eef5;
}
.type-character {
  width: 150px;
  max-width: 90%;
  aspect-ratio: 1;
  margin: -4px auto 4px;
  filter: drop-shadow(0 8px 5px rgba(16, 42, 67, 0.1));
}
.type-tile small {
  font-weight: 800;
}
@media (max-width: 780px) {
  .hero-cast {
    inset: -8% 2% -14%;
    width: 96%;
    height: 122%;
  }
  .result-character {
    width: 250px;
    bottom: -18px;
  }
  .character-caption {
    top: 16px;
    right: 18px;
  }
  .type-tile {
    min-height: 280px;
  }
}

.tie-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 800px;
  margin: 0 auto 18px;
}
.tie-choice {
  position: relative;
  cursor: pointer;
}
.tie-choice input {
  position: absolute;
  opacity: 0;
}
.tie-choice > span {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.18s ease;
}
.tie-choice small {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.18em;
}
.tie-choice strong {
  font: 600 clamp(1.1rem, 2.2vw, 1.45rem) / 1.6 var(--serif);
}
.tie-choice em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}
.tie-choice input:checked + span {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--orange);
}
.tie-choice input:checked + span em {
  color: rgba(255, 255, 255, 0.7);
}
.tie-choice input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.tie-note {
  margin: 0 auto 28px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}
.share-social {
  margin-top: 18px;
}
.share-social .x-share {
  background: #102a43;
  color: white;
  border-color: #102a43;
}
.share-social .share-icon {
  margin-right: 0.55rem;
  font-weight: 900;
}
.share-local-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-top: 12px;
}
.beta-feedback,
.privacy-note {
  margin-top: 56px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}
.beta-feedback {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
}
.beta-feedback h2,
.privacy-note h2 {
  font: 650 clamp(1.55rem, 3vw, 2.25rem) / 1.35 var(--serif);
  margin: 0.5rem 0 1rem;
}
.beta-feedback fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.beta-feedback legend {
  margin-bottom: 12px;
  font-weight: 700;
}
.feedback-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 8px;
}
.feedback-scale label {
  position: relative;
  cursor: pointer;
}
.feedback-scale input {
  position: absolute;
  opacity: 0;
}
.feedback-scale span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 800;
}
.feedback-scale input:checked + span {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.feedback-scale input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.feedback-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}
.feedback-status,
.privacy-note p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}
.privacy-note {
  border-left: 4px solid var(--lime);
}
@media (max-width: 620px) {
  .beta-feedback {
    grid-template-columns: 1fr;
  }
  .feedback-scale {
    gap: 5px;
  }
  .tie-choice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tie-choice > span {
    min-height: 132px;
    padding: 20px;
  }
  .share-result-card {
    grid-template-columns: 58% 42%;
  }
  .share-card-copy {
    padding: 18px;
  }
  .share-result-card h3 {
    margin-top: 18px;
    font-size: 1.45rem;
  }
  .share-result-card p {
    display: block;
    font-size: 0.72rem;
    line-height: 1.45;
    margin-top: 0.7rem;
  }
  .share-card-cta {
    min-height: 19%;
  }
}
