/* Result reading flow — shared by the live page and reference comparison. */
.refined-result {
  background: #fffaf6 !important;
  color: #45313b;
}
.refined-result .match-top {
  background: #fffaf6f2 !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ede1e6;
}
.result-eyebrow {
  font-size: 9px !important;
  font-weight: 600;
  letter-spacing: 2px;
  color: #a57e8f;
  margin: 0 0 15px;
  line-height: 1.6;
}
.refined-score {
  padding: 36px 22px 0;
  background:
    radial-gradient(at 90% 0, #f3e0d6, transparent 60%),
    linear-gradient(#fbf0ee, #fffaf6) !important;
}
.refined-score > .result-eyebrow {
  text-align: center;
}
.refined-score .result-names {
  font-size: var(--name-size, 25px);
  line-height: 1.45;
  letter-spacing: -0.8px;
  font-weight: 750;
  text-align: center;
  margin: 0 0 12px;
}
.keep {
  white-space: nowrap;
}
.result-lead {
  text-align: center;
  font-size: 12px;
  color: #947b86;
  margin: 0 0 27px;
}
.refined-score .match-people {
  gap: 12px;
}
.refined-result .match-person {
  border: 1px solid #ead7df;
  border-radius: 17px;
  background: #fffdfb;
  padding-bottom: 15px;
  box-shadow: 0 8px 24px #9d728411;
  min-width: 0;
}
.refined-result .person-art {
  height: 140px;
  background: #ecddd8;
}
.refined-result .person-art img {
  top: -32px;
  width: 200%;
  min-height: 100%;
  object-fit: cover;
}
.refined-result .person-art.woman img {
  top: -67px;
}
.profile-caption {
  padding-top: 13px;
}
.profile-role {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #b38c9c;
  margin-bottom: 5px;
}
.refined-result .match-person h3 {
  margin: 0 5px 5px;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.refined-result .match-person .profile-day {
  font-size: 11px;
  font-weight: 600;
  color: #a36780;
  margin: 0 0 13px;
  line-height: 1.5;
}
.refined-result .match-person .profile-date {
  font-size: 11px;
  margin: 13px 3px 3px;
  color: #8d7580;
  line-height: 1.6;
}
.refined-result .match-person small {
  font-size: 10px;
  color: #a28c96;
}
.profile-pillars {
  margin: 0 9px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}
.pillar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pillar-col > small {
  font-size: 8px !important;
  color: #ac96a1 !important;
  margin-bottom: 2px;
}
.pillar-col > b {
  display: grid;
  place-items: center;
  border-radius: 5px;
  min-height: 28px;
  width: 100%;
  font:
    17px/1.4 Georgia,
    "Batang",
    serif;
  background: #f7ede9;
  color: #a46b73;
}
.pillar-col > b[data-element="木"] {
  background: #eaf0df;
  color: #63734b;
}
.pillar-col > b[data-element="火"] {
  background: #f6e5e5;
  color: #ad6d6f;
}
.pillar-col > b[data-element="土"] {
  background: #f4ecd8;
  color: #977b43;
}
.pillar-col > b[data-element="金"] {
  background: #eeeaf4;
  color: #82758f;
}
.pillar-col > b[data-element="水"] {
  background: #e5edf3;
  color: #67879a;
}
.profile-proof {
  font-size: 9px;
  text-align: center;
  color: #a58a96;
  margin: 17px 0 21px;
  line-height: 1.7;
}
.result-chapters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid #eadbe2;
  border-bottom: 1px solid #eadbe2;
  margin: 0 -22px;
  background: #fffaf699;
}
.result-chapters a {
  flex: 1;
  text-align: center;
  color: #896373;
  font-size: 11px;
  text-decoration: none;
  padding: 15px 3px;
  white-space: nowrap;
}
.result-chapters a + a {
  border-left: 1px solid #eadbe2;
}
.refined-context {
  padding: 34px 26px 37px !important;
  background: #fffaf6;
  text-align: center;
  border-bottom: 1px solid #efe1e7;
}
.context-label {
  font-size: 9px !important;
  letter-spacing: 1.3px;
  color: #af899b !important;
}
.refined-context h2 {
  font-size: 14px !important;
  font-weight: 600;
  margin: 9px 0 18px !important;
  color: #916276;
}
.refined-context blockquote {
  font-size: 21px;
  line-height: 1.65;
  letter-spacing: -0.6px;
  color: #59404d;
  font-weight: 650;
  margin: 0 auto 16px;
  word-break: keep-all;
  max-width: 330px;
}
.refined-context > p {
  font-size: 11px !important;
  line-height: 1.9 !important;
  font-weight: 400 !important;
  color: #9a818e !important;
  margin: 0 !important;
}
.refined-report {
  background: #fffaf6 !important;
  padding: 0 !important;
}
.refined-report .report-heading {
  padding: 43px 22px 35px;
  text-align: center;
}
.refined-report .report-heading small {
  color: #b18a9b;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.refined-report .report-heading h2 {
  font-size: 26px;
  line-height: 1.55;
  letter-spacing: -1px;
  color: #4b3541;
  margin: 15px 0 16px;
}
.refined-report .report-heading > p {
  font-size: 12px;
  color: #a08995;
  line-height: 1.9;
  margin: 0;
}
.report-scene {
  padding: 0 0 42px;
  margin: 0;
  background: #fffaf6;
  scroll-margin-top: 68px;
}
.scene-heading {
  padding: 15px 27px 24px;
}
.scene-number {
  font:
    italic 38px/1 Georgia,
    serif;
  color: #dbbdcb;
  letter-spacing: -2px;
}
.scene-heading > p {
  font-size: 10px;
  letter-spacing: 1px;
  margin: 8px 0 12px;
  color: #a5768b;
}
.scene-heading h3 {
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: -0.8px;
  margin: 0;
  color: #4c3542;
  word-break: keep-all;
}
.report-scene figure {
  margin: 0;
  position: relative;
}
.report-scene figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.report-scene figcaption {
  background: #f6ebe6;
  color: #816572;
  padding: 21px 27px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -0.2px;
  word-break: keep-all;
  border-bottom: 1px solid #ebdce1;
}
.report-paper {
  margin: 24px 20px 0;
  padding: 22px 20px 0;
  background: #fffefd;
  border: 1px solid #e7d7df;
  border-radius: 3px;
  box-shadow: 0 7px 18px #8f647b0a;
}
.paper-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #eee4e8;
  padding-bottom: 15px;
}
.paper-heading > span {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #ac8296;
}
.paper-heading > small {
  font-size: 9px;
  color: #b09aa5;
}
.report-paper h4 {
  font-size: 18px;
  letter-spacing: -0.4px;
  color: #634855;
  margin: 22px 0 17px;
}
.report-paper ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.report-paper li {
  font-size: 13px;
  line-height: 1.85;
  color: #8e7280;
  padding: 9px 0 9px 16px;
  position: relative;
  border-bottom: 1px solid #f2e9ee;
  word-break: keep-all;
}
.report-paper li:before {
  content: "·";
  position: absolute;
  left: 1px;
  color: #ba8da4;
}
.paper-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 19px 0 20px;
}
.paper-chapters span {
  font-size: 9px;
  padding: 4px 7px;
  background: #f8f0f4;
  color: #ad8096;
  border-radius: 4px;
}
.paper-locked {
  border-top: 1px solid #eee1e8;
  text-align: center;
  font-size: 10px !important;
  color: #b08a9f !important;
  line-height: 1.7 !important;
  padding: 14px 0 !important;
  margin: 0 !important;
}
.paper-locked span {
  margin-right: 5px;
}
.report-index {
  background: #f5e9ee;
  padding: 40px 24px 37px;
  border-top: 1px solid #ead8e1;
  border-bottom: 1px solid #ead8e1;
}
.report-index .result-eyebrow {
  text-align: center;
}
.report-index h2 {
  text-align: center;
  font-size: 23px;
  line-height: 1.6;
  margin: 0 0 27px;
  letter-spacing: -0.7px;
  word-break: keep-all;
  color: #5f4052;
}
.report-index ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.report-index li {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #806171;
  padding: 13px 0;
  border-bottom: 1px solid #e6d5df;
  line-height: 1.7;
  gap: 14px;
}
.report-index li span {
  font:
    italic 17px Georgia,
    serif;
  color: #b48b9f;
  width: 23px;
  flex: none;
}
.index-note {
  font-size: 10px;
  line-height: 1.9;
  color: #a08393;
  text-align: center;
  margin: 22px 0 0;
}
.refined-offer {
  background: #fffaf6 !important;
  padding: 44px 24px 35px !important;
}
.refined-offer .offer-mark {
  font-size: 48px;
  margin: 0 0 11px;
  color: #c58ea6;
  line-height: 1.5;
}
.refined-offer > small {
  font-size: 8px !important;
  letter-spacing: 1.5px;
  color: #b48b9f;
}
.refined-offer h2 {
  font-size: 24px;
  line-height: 1.6;
  margin: 16px 0 17px;
  letter-spacing: -0.7px;
}
.offer-intro {
  font-size: 12px;
  line-height: 1.9;
  color: #9b7f8d;
  margin: 0 0 28px;
}
.offer-includes {
  border-top: 1px solid #ead8e1;
  border-bottom: 1px solid #ead8e1;
  padding: 6px 0;
}
.offer-includes > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #f0e4ea;
}
.offer-includes > div:last-child {
  border: 0;
}
.offer-includes span {
  font-size: 11px;
  white-space: nowrap;
  color: #b08b9e;
}
.offer-includes strong {
  font-size: 12px;
  font-weight: 500;
  color: #775968;
  line-height: 1.7;
  text-align: right;
  word-break: keep-all;
}
.offer-note {
  font-size: 10px;
  color: #ac8b9d;
  line-height: 1.7;
  margin: 17px 0 0;
}
.result-faq {
  padding: 33px 24px 42px;
  background: #f5eeed;
  border-top: 1px solid #e9dce2;
}
.result-faq h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
}
.result-faq details {
  border-top: 1px solid #e5d4de;
  padding: 15px 0;
  color: #816574;
}
.result-faq summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.result-faq summary:after {
  content: "+";
  color: #b892a5;
}
.result-faq details[open] summary:after {
  content: "−";
}
.result-faq details > p {
  font-size: 11px;
  line-height: 1.9;
  color: #9c818f;
  margin: 12px 0 0;
  word-break: keep-all;
}
.refined-result .match-sticky {
  background: #fffaf6f2;
  backdrop-filter: blur(10px);
  border-top: 1px solid #eadce4;
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
}
.refined-result .match-sticky .match-primary {
  background: #ad657e;
  min-height: 50px;
  border-radius: 11px;
  font-size: 14px;
}
.result-chapters a:focus-visible,
.result-faq summary:focus-visible {
  outline: 2px solid #ad657e;
  outline-offset: 2px;
}
@media (max-width: 350px) {
  .refined-score {
    padding-left: 16px;
    padding-right: 16px;
  }
  .result-chapters {
    margin-left: -16px;
    margin-right: -16px;
  }
  .refined-result .person-art {
    height: 119px;
  }
  .profile-pillars {
    margin: 0 6px;
    gap: 2px;
  }
  .pillar-col > b {
    min-height: 25px;
    font-size: 15px;
  }
  .refined-context {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .scene-heading h3 {
    font-size: 21px;
  }
  .refined-report .report-heading h2 {
    font-size: 23px;
  }
  .refined-score .result-names {
    font-size: min(var(--name-size), 23px);
  }
  .report-index h2 {
    font-size: 21px;
  }
}

.report-scene {
  scroll-margin-top: 62px;
}
@media (prefers-reduced-motion: reduce) {
  .refined-result {
    scroll-behavior: auto;
  }
}

/* V3: stronger reading hierarchy, complete portraits and story-specific landscape scenes. */
.refined-result {
  color: #30232c !important;
  background: #fffaf7 !important;
}
.refined-score {
  padding-top: 28px;
}
.refined-score .result-names {
  font-weight: 800;
  color: #30232c;
}
.result-lead {
  font-size: 14px;
  color: #66505d;
  line-height: 1.7;
  margin-bottom: 24px;
}
.result-eyebrow {
  font-size: 10px !important;
  color: #88536a;
  letter-spacing: 1px;
}
.refined-result .match-person {
  padding: 8px 8px 15px;
  border-color: #e1c6d1;
  border-radius: 16px;
}
.refined-result .person-art.portrait-v3 {
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 10px;
  background: #f3e9e4;
  overflow: hidden;
}
.refined-result .person-art.portrait-v3 img {
  position: static !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center !important;
}
.refined-result .match-person h3 {
  font-size: 18px;
  color: #352430;
}
.profile-role {
  font-size: 10px;
  color: #8c6073;
}
.refined-result .match-person .profile-day {
  font-size: 12px;
  color: #873c5d;
}
.refined-result .match-person .profile-date {
  font-size: 11px;
  color: #675360;
}
.refined-result .match-person small {
  color: #78616d;
}
.profile-pillars {
  margin-left: 0;
  margin-right: 0;
}
.profile-proof {
  font-size: 10px;
  color: #77616c;
  line-height: 1.7;
}
.result-chapters a {
  font-size: 12px;
  font-weight: 650;
  color: #714055;
  padding: 14px 3px;
}
.refined-context {
  padding: 24px 22px !important;
  background: #f5e8ec;
  border-bottom: 1px solid #e6cfd9;
}
.refined-context h2 {
  font-size: 15px !important;
  color: #66374e;
  margin-bottom: 12px !important;
}
.refined-context blockquote {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 750;
  color: #402733;
  margin-bottom: 12px;
}
.context-label {
  font-size: 11px !important;
  color: #79495f !important;
}
.refined-context > p {
  font-size: 12px !important;
  color: #6d5260 !important;
}
.editorial-report .report-heading {
  padding: 38px 22px 34px;
  text-align: center;
  background: #fffaf7;
}
.editorial-report .report-heading small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #91435f;
  letter-spacing: 0;
}
.editorial-report .report-heading h2 {
  font-size: 27px;
  font-weight: 800;
  color: #2f2029;
  line-height: 1.4;
  margin: 15px 0 16px;
  letter-spacing: -1px;
}
.editorial-report em {
  font-style: normal;
  color: #8c3156;
  background: linear-gradient(transparent 77%, #ecd1db 77%);
}
.editorial-report .report-heading > p {
  font-size: 14px;
  color: #6e5361;
  line-height: 1.8;
}
.editorial-report .report-scene {
  background: #fffaf7;
  padding-bottom: 32px;
  scroll-margin-top: 62px;
  border-top: 8px solid #f1e3e8;
}
.editorial-report .scene-heading {
  padding: 26px 22px 22px;
}
.scene-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.scene-kicker .scene-number {
  font:
    italic 30px/1 Georgia,
    serif;
  color: #ab617f;
  letter-spacing: -1px;
}
.scene-kicker > p {
  font-size: 12px;
  font-weight: 700;
  color: #8a4a65;
  margin: 0;
  letter-spacing: 0;
}
.editorial-report .scene-heading h3 {
  font-size: 27px !important;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -1px;
  color: #30212a;
  margin: 0;
  word-break: keep-all;
}
.editorial-report .scene-heading .scene-deck {
  font-size: 14px;
  font-weight: 500;
  color: #70515f;
  letter-spacing: -0.25px;
  line-height: 1.8;
  margin: 16px 0 0;
  word-break: keep-all;
}
.editorial-report .report-scene figure > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 0;
}
.scene-insight {
  padding: 22px 23px;
  background: #f7ece8;
  border-bottom: 1px solid #e8d6dd;
}
.scene-insight > span {
  font-size: 11px;
  font-weight: 750;
  color: #8c3d60;
}
.scene-insight > p {
  font-size: 15px;
  color: #503b46;
  line-height: 1.9;
  letter-spacing: -0.3px;
  margin: 8px 0 0;
  word-break: keep-all;
}
.editorial-report .report-paper {
  margin: 22px 18px 0;
  padding: 19px 18px 0;
  border: 1px solid #e1cbd5;
  background: #fffdfb;
  border-radius: 13px;
  box-shadow: 0 5px 16px #79415b08;
}
.editorial-report .paper-heading {
  padding-bottom: 13px;
  gap: 5px;
}
.editorial-report .paper-heading > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: #79425c;
}
.editorial-report .paper-heading > small {
  font-size: 10px;
  color: #8c6c7a;
}
.editorial-report .report-paper h4 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.6;
  color: #3f2734;
  margin: 18px 0 10px;
  word-break: keep-all;
}
.editorial-report .report-paper li {
  font-size: 14px;
  font-weight: 500;
  color: #5c4351;
  padding: 12px 0 12px 14px;
  line-height: 1.85;
  border-color: #eee1e7;
  letter-spacing: -0.25px;
}
.editorial-report .report-paper li:before {
  color: #a34f75;
  font-weight: 800;
}
.editorial-report .paper-chapters {
  gap: 5px;
  margin: 16px 0;
}
.editorial-report .paper-chapters span {
  font-size: 10px;
  color: #79475f;
  background: #f3e6ed;
  padding: 5px 7px;
}
.editorial-report .paper-locked {
  font-size: 11px !important;
  font-weight: 550;
  line-height: 1.8 !important;
  color: #875b70 !important;
  padding: 14px 0 !important;
}
.editorial-report .report-index {
  padding: 35px 22px;
  background: #f2e1e8;
  border-color: #dcc1d0;
}
.editorial-report .report-index h2 {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
  color: #402331;
  margin: 13px 0 25px;
}
.editorial-report .report-index li {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.65;
  color: #543746;
  border-color: #dfc6d3;
  padding: 13px 0;
}
.editorial-report .report-index li span {
  font-size: 18px;
  color: #9c5173;
}
.editorial-report .index-note {
  font-size: 11px;
  color: #795667;
}
.refined-offer h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
  color: #3b2632;
}
.offer-intro {
  font-size: 14px;
  color: #705563;
  line-height: 1.85;
}
.offer-includes span {
  font-size: 12px;
  color: #886175;
}
.offer-includes strong {
  font-size: 14px;
  color: #4f3543;
}
.offer-note {
  font-size: 11px;
  color: #795e6c;
}
.result-faq summary {
  font-size: 14px;
  color: #543949;
}
.result-faq details > p {
  font-size: 13px;
  color: #715562;
}
.result-faq h2 {
  font-size: 22px;
  color: #432b38;
}
@media (max-width: 350px) {
  .editorial-report .scene-heading h3 {
    font-size: 24px !important;
    letter-spacing: -1px;
  }
  .editorial-report .report-heading h2 {
    font-size: 24px;
  }
  .editorial-report .report-index h2 {
    font-size: 23px;
  }
  .editorial-report .scene-heading {
    padding-left: 18px;
    padding-right: 18px;
  }
  .editorial-report .scene-heading .scene-deck {
    font-size: 13px;
  }
  .scene-insight {
    padding: 20px 18px;
  }
  .scene-insight > p {
    font-size: 14px;
  }
  .editorial-report .report-paper {
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .refined-score .match-people {
    gap: 8px;
  }
  .refined-result .match-person {
    padding-left: 6px;
    padding-right: 6px;
  }
  .result-chapters a {
    font-size: 11px;
  }
}
