:root {
  --paper: #f8f1e9;
  --paper-deep: #eadbca;
  --ink: #261b19;
  --muted: #806f68;
  --red: #bf2034;
  --red-dark: #7e1120;
  --gold: #bb8a49;
  --white: #fffaf4;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: #160d0e;
}
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: #160d0e;
  overflow-x: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.app-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: auto;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  padding: 18px clamp(20px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  border: 0;
  background: none;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 0;
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 50% 50% 48% 52%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font: 20px var(--serif);
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.brand b,
.brand small {
  display: block;
}
.brand b {
  font: 600 14px var(--serif);
  letter-spacing: 0.15em;
}
.brand small {
  font-size: 7px;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-top: 3px;
}
.sound-button {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(38, 27, 25, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-family: Georgia;
}
.screen {
  display: none;
  min-height: 100vh;
  position: relative;
  padding-top: 78px;
}
.screen.is-active {
  display: block;
  animation: screenIn 0.55s ease both;
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.home-screen {
  display: none;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1.05fr);
  align-items: center;
  padding-left: clamp(26px, 7vw, 100px);
  padding-right: clamp(24px, 5vw, 70px);
  padding-bottom: 72px;
}
.home-screen.is-active {
  display: grid;
}
.home-screen:before {
  content: "七夕";
  position: absolute;
  left: -0.08em;
  bottom: -0.19em;
  font: 400 clamp(210px, 29vw, 440px)/1 var(--serif);
  color: rgba(126, 17, 32, 0.035);
  pointer-events: none;
}
.edition {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 24px;
}
.edition span {
  color: var(--red);
  border: 1px solid rgba(191, 32, 52, 0.35);
  border-radius: 99px;
  padding: 4px 8px;
  margin-right: 10px;
}
.hero-copy {
  position: relative;
  z-index: 4;
  padding-top: 30px;
}
.hero-copy h1 {
  font: 500 clamp(56px, 7vw, 104px)/1.02 var(--serif);
  letter-spacing: -0.08em;
  margin: 0;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
.hero-copy h1 em:after {
  content: "";
  position: absolute;
  left: 5%;
  right: -4%;
  bottom: -5px;
  height: 10px;
  border-top: 2px solid var(--red);
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero-lead {
  max-width: 500px;
  font: 400 16px/1.9 var(--serif);
  color: #65534e;
  margin: 32px 0;
}
.hero-lead span {
  display: block;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.free-edition #openPurchase {
  justify-content: center;
}
.free-edition #openPurchase b,
.free-edition #purchaseModal {
  display: none !important;
}
.primary-button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  box-shadow: 0 14px 32px rgba(126, 17, 32, 0.16);
  transition: 0.25s;
}
.primary-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.primary-button span {
  font-weight: 600;
  letter-spacing: 0.08em;
}
.primary-button b {
  font: 500 18px Georgia;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(38, 27, 25, 0.2);
}
.text-button span {
  color: var(--red);
  margin-left: 8px;
}
.trust-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 52px 0 0;
  gap: 38px;
}
.trust-list li {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 7px;
  align-items: end;
}
.trust-list b {
  font: 500 25px Georgia;
  color: var(--red);
}
.trust-list span {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 3px;
}
.hero-art {
  position: relative;
  height: min(74vh, 750px);
  min-height: 580px;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 4% 3% 0 8%;
  background: linear-gradient(138deg, transparent 0 46%, rgba(191, 32, 52, 0.055) 46.2% 46.5%, transparent 46.7%);
  pointer-events: none;
}
.moon {
  display: none;
}
.portrait-card {
  position: absolute;
  width: 43%;
  height: 70%;
  padding: 13px;
  background: #e9d7c5;
  border: 1px solid rgba(38, 27, 25, 0.13);
  box-shadow: 0 24px 50px rgba(55, 27, 21, 0.16);
  overflow: hidden;
}
.portrait-card:after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
}
.portrait-a {
  left: 9%;
  top: 15%;
  transform: rotate(-5deg);
  background: #d5b89e;
}
.portrait-b {
  right: 4%;
  bottom: 0;
  transform: rotate(4deg);
  background: #782332;
  color: #fff0e5;
}
.card-number {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 24px;
  font: 14px var(--serif);
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  opacity: 0.7;
}
.portrait-card p {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  margin: 0;
  font: 500 clamp(15px, 1.4vw, 21px)/1.7 var(--serif);
  letter-spacing: 0.05em;
}
.face {
  display: none;
}
.face:before {
  content: "";
  position: absolute;
  width: 52%;
  height: 58%;
  left: 25%;
  top: 18%;
  background: #392724;
  border-radius: 48% 51% 45% 48%;
  box-shadow: 0 -50px 0 13px #211617;
}
.face:after {
  content: "";
  position: absolute;
  width: 84%;
  height: 58%;
  left: 9%;
  bottom: -25%;
  background: #3c2824;
  border-radius: 50% 50% 0 0;
}
.face i {
  position: absolute;
  z-index: 2;
  width: 19%;
  height: 8%;
  left: 42%;
  top: 50%;
  border-bottom: 2px solid #c59d7f;
  border-radius: 50%;
}
.face-b:before {
  background: #c29072;
  box-shadow: 0 -46px 0 16px #241717;
  border-radius: 48%;
}
.face-b:after {
  background: #201515;
}
.silhouette {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}
.silhouette-a,
.silhouette-b { transform: none; }
.portrait-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(24, 11, 24, 0.58));
  pointer-events: none;
}
.portrait-a p { color: #fff7f4; text-shadow: 0 2px 12px rgba(20, 8, 18, 0.58); }
.red-thread {
  position: absolute;
  z-index: 3;
  inset: 4% 0 0;
  width: 100%;
  height: 95%;
  pointer-events: none;
}
.red-thread path {
  stroke: var(--red);
  stroke-width: 1.3;
  filter: drop-shadow(0 0 4px rgba(191, 32, 52, 0.3));
}
.red-thread circle {
  fill: var(--red);
}
.red-thread-label {
  position: absolute;
  z-index: 4;
  left: 2%;
  top: 88%;
  color: var(--red);
  font: 500 10px/1.2 var(--serif);
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: none;
  opacity: 0.84;
  pointer-events: none;
}
.seal {
  position: absolute;
  z-index: 4;
  right: 1%;
  top: 45%;
  color: #fff;
  background: var(--red);
  width: 62px;
  height: 62px;
  border-radius: 48%;
  display: grid;
  place-items: center;
  text-align: center;
  font: 12px/1.25 var(--serif);
  letter-spacing: 0.14em;
  transform: rotate(9deg);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.23);
}
.manifesto {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 25px;
  text-align: right;
}
.manifesto span {
  font: 7px Georgia;
  letter-spacing: 0.18em;
  color: var(--red);
}
.manifesto p {
  font: 500 11px/1.7 var(--serif);
  margin: 6px 0;
  color: var(--muted);
}
.setup-screen,
.loading-screen {
  background: radial-gradient(
    circle at 50% 34%,
    #fffaf2 0,
    var(--paper) 48%,
    #ead9c7 130%
  );
}
.setup-screen:before,
.loading-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 50% 42%,
    transparent 0 119px,
    rgba(126, 17, 32, 0.05) 120px 121px
  );
}
.setup-card {
  position: relative;
  z-index: 2;
  width: min(90%, 600px);
  margin: 4vh auto 10vh;
  padding: 45px 55px 38px;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(38, 27, 25, 0.14);
  box-shadow: 0 25px 80px rgba(69, 39, 29, 0.12);
  backdrop-filter: blur(10px);
}
.setup-card:after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(191, 32, 52, 0.12);
  pointer-events: none;
}
.back-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.step-label {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin: 38px 0 12px;
}
.setup-card h2 {
  font: 500 clamp(36px, 5vw, 58px)/1.2 var(--serif);
  letter-spacing: -0.05em;
  margin: 0 0 35px;
}
.setup-card form > label {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(38, 27, 25, 0.2);
  padding: 4px 0;
}
.setup-card form > label span {
  font: 500 13px var(--serif);
}
.setup-card input {
  height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 20px var(--serif);
  letter-spacing: 0.06em;
}
.setup-card input::placeholder {
  font-size: 13px;
  color: #b7a79f;
}
.heart-divider {
  text-align: center;
  color: var(--red);
  height: 28px;
  line-height: 28px;
}
.setup-card fieldset {
  border: 0;
  padding: 0;
  margin: 32px 0 26px;
}
.setup-card legend {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
}
.radio-card {
  display: inline-block;
  margin: 0 6px 8px 0;
}
.radio-card input {
  position: absolute;
  opacity: 0;
}
.radio-card span {
  display: block;
  padding: 10px 13px;
  border: 1px solid rgba(38, 27, 25, 0.17);
  font-size: 11px;
  background: #fff8f0;
}
.radio-card input:checked + span {
  border-color: var(--red);
  color: var(--red);
  background: #fff0ee;
}
.primary-button.full {
  width: 100%;
}
.privacy-note,
.payment-note,
.result-disclaimer {
  font-size: 9px;
  line-height: 1.7;
  color: #9b8b83;
  text-align: center;
  margin: 18px auto 0;
}
.quiz-screen {
  background: var(--paper);
  padding-left: clamp(24px, 8vw, 120px);
  padding-right: clamp(24px, 8vw, 120px);
}
.history-screen {
  background: var(--paper);
  padding-left: clamp(22px, 8vw, 120px);
  padding-right: clamp(22px, 8vw, 120px);
  padding-bottom: 80px;
}
.history-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 15%, rgba(191, 32, 52, .08), transparent 25%),
    radial-gradient(circle at 12% 72%, rgba(210, 117, 145, .08), transparent 28%);
  pointer-events: none;
}
.history-page {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin: 45px auto 0;
}
.history-page h2 {
  font: 500 clamp(42px, 7vw, 74px)/1.15 var(--serif);
  margin: 14px 0 12px;
}
.history-intro {
  color: var(--muted);
  font: 13px/1.8 var(--serif);
  margin: 0 0 32px;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-item {
  border: 1px solid rgba(126, 17, 32, .13);
  background: rgba(255, 250, 244, .8);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.history-item small,
.history-empty small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}
.history-item h3 {
  font: 500 24px/1.4 var(--serif);
  margin: 8px 0 4px;
}
.history-item p {
  color: #6e5c56;
  font-size: 12px;
  margin: 0;
}
.history-item button {
  border: 1px solid rgba(191, 32, 52, .35);
  color: var(--red);
  background: transparent;
  padding: 10px 14px;
  white-space: nowrap;
}
.history-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed rgba(126, 17, 32, .2);
}
.history-empty b {
  display: block;
  font: 500 24px var(--serif);
  margin-bottom: 10px;
}
.quiz-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(126, 17, 32, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(126, 17, 32, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 22%,
    #000 80%,
    transparent
  );
}
.quiz-top {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font: 10px Georgia;
}
.progress-meta i {
  display: block;
  width: 150px;
  height: 2px;
  background: #d9c9bb;
}
.progress-meta b {
  display: block;
  height: 100%;
  width: 8.33%;
  background: var(--red);
  transition: width 0.4s;
}
.question-card {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin: 10vh auto 0;
}
.question-scene {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin: 0 0 20px;
}
.question-card h2 {
  font: 500 clamp(30px, 4.3vw, 56px)/1.35 var(--serif);
  letter-spacing: -0.04em;
  min-height: 150px;
  margin: 0 0 35px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.answer-button {
  min-height: 76px;
  border: 1px solid rgba(38, 27, 25, 0.16);
  background: rgba(255, 250, 244, 0.55);
  text-align: left;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.2s;
}
.answer-button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateX(4px);
  background: #fff8f2;
}
.answer-button b {
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font: 12px Georgia;
}
.answer-button span {
  font: 500 14px/1.5 var(--serif);
}
.question-card.is-leaving {
  animation: questionOut 0.25s ease both;
}
.question-card.is-entering {
  animation: questionIn 0.35s ease both;
}
@keyframes questionOut {
  to {
    opacity: 0;
    transform: translateX(-18px);
  }
}
@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
.quiz-tip {
  text-align: center;
  color: #aa9b93;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin: 34px;
}
.loading-screen.is-active {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0;
}
.loader-orbit {
  position: relative;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(191, 32, 52, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font: 45px var(--serif);
}
.loader-orbit:before,
.loader-orbit:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(191, 32, 52, 0.1);
  border-radius: 50%;
}
.loader-orbit:after {
  inset: -22px;
}
.loader-orbit i {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  transform-origin: 0 89px;
  animation: orbit 2.4s linear infinite;
}
.loader-orbit i:nth-child(2) {
  animation-delay: -0.8s;
}
.loader-orbit i:nth-child(3) {
  animation-delay: -1.6s;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.loading-screen p {
  font: 500 18px var(--serif);
  margin: 45px 0 22px;
}
.analysis-lines {
  height: 22px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
}
.analysis-lines span {
  display: block;
  height: 22px;
  animation: loadingText 2.1s steps(3) infinite;
}
@keyframes loadingText {
  to {
    transform: translateY(-66px);
  }
}
.result-screen {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 142, 183, 0.18), transparent 25%),
    radial-gradient(circle at 86% 31%, rgba(244, 104, 161, 0.15), transparent 27%),
    radial-gradient(circle at 50% 72%, rgba(219, 69, 126, 0.12), transparent 34%),
    linear-gradient(145deg, #2a0f1a 0%, #54172d 43%, #35101f 72%, #1e0d15 100%);
  color: #fff6ed;
  padding-bottom: 80px;
  overflow: hidden;
}
.result-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 13%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 19% 36%, rgba(255,181,211,.7) 0 2px, transparent 4px),
    radial-gradient(circle at 31% 9%, rgba(255,255,255,.65) 0 1px, transparent 3px),
    radial-gradient(circle at 42% 28%, rgba(255,167,203,.58) 0 3px, transparent 7px),
    radial-gradient(circle at 57% 15%, rgba(255,255,255,.78) 0 1px, transparent 3px),
    radial-gradient(circle at 67% 42%, rgba(255,153,196,.55) 0 3px, transparent 8px),
    radial-gradient(circle at 79% 18%, rgba(255,255,255,.72) 0 1px, transparent 3px),
    radial-gradient(circle at 91% 39%, rgba(255,171,210,.65) 0 2px, transparent 6px),
    radial-gradient(circle at 14% 67%, rgba(255,164,204,.45) 0 4px, transparent 12px),
    radial-gradient(circle at 38% 82%, rgba(255,255,255,.52) 0 1px, transparent 3px),
    radial-gradient(circle at 61% 70%, rgba(255,151,191,.5) 0 3px, transparent 9px),
    radial-gradient(circle at 87% 78%, rgba(255,255,255,.58) 0 1px, transparent 3px);
  opacity: .8;
  pointer-events: none;
}
.result-screen:after {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(circle at 14% 26%, rgba(255, 188, 215, .14) 0 32px, transparent 70px),
    radial-gradient(circle at 86% 16%, rgba(255, 139, 185, .13) 0 42px, transparent 94px),
    radial-gradient(circle at 72% 61%, rgba(255, 180, 213, .11) 0 55px, transparent 115px),
    radial-gradient(circle at 22% 79%, rgba(227, 76, 138, .13) 0 45px, transparent 105px);
  filter: blur(5px);
  pointer-events: none;
}
.result-page {
  position: relative;
  z-index: 2;
  width: min(90%, 1040px);
  margin: auto;
}
.result-heading {
  padding: 25px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-heading p {
  font: 8px Georgia;
  letter-spacing: 0.2em;
  color: #cdaeb0;
}
.result-heading span {
  font: 500 12px var(--serif);
  letter-spacing: 0.15em;
}
.result-hero {
  text-align: center;
  min-height: 560px;
  padding: 75px 0 55px;
  position: relative;
}
.result-rank {
  font-size: 10px;
  color: #d2acad;
  letter-spacing: 0.18em;
}
.result-hero h2 {
  font: 500 clamp(54px, 8vw, 100px)/1 var(--serif);
  margin: 20px 0 15px;
  letter-spacing: -0.07em;
}
.result-tag {
  font: 400 16px var(--serif);
  color: #e1c4bc;
}
.result-symbol {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font: 300 340px/1 var(--serif);
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
.score-ring {
  --score: 88;
  width: 154px;
  height: 154px;
  margin: 40px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    #e35f7f calc(var(--score) * 1%),
    rgba(255, 255, 255, 0.09) 0
  );
  position: relative;
}
.score-ring:before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #361421;
  border-radius: 50%;
}
.score-ring > div {
  position: relative;
}
.score-ring b {
  font: 46px Georgia;
}
.score-ring span {
  color: #f08ba5;
}
.score-ring small {
  display: block;
  font-size: 8px;
  color: #bc9697;
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
.report-card {
  background: rgba(255, 249, 244, 0.96);
  color: var(--ink);
  padding: 38px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}
.card-kicker {
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.18em;
}
.overview-card h3,
.advice-card h3 {
  font: 500 27px/1.55 var(--serif);
  margin: 20px 0;
}
.overview-card p,
.advice-card p {
  font: 400 13px/1.9 var(--serif);
  color: #6e5c56;
}
.dimension-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.dimension-row {
  display: grid;
  grid-template-columns: 62px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.dimension-row i {
  height: 4px;
  background: #ddcbbb;
  border-radius: 4px;
  overflow: hidden;
}
.dimension-row b {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
}
.dimension-row em {
  font: 11px Georgia;
  color: var(--red);
  font-style: normal;
}
.quote-card {
  background: var(--red);
  color: #fff5ec;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-card .quote-mark {
  position: absolute;
  font: 150px Georgia;
  top: -32px;
  left: 22px;
  opacity: 0.15;
}
.quote-card p {
  position: relative;
  font: 500 clamp(25px, 3vw, 38px)/1.6 var(--serif);
  margin: 10px 0 30px;
}
.quote-card small {
  color: #f0b9bb;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.advice-card {
  background: rgba(242, 225, 220, 0.97);
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 45px 0 0;
}
.result-screen .text-button {
  color: #c8aeb0;
  border-color: rgba(255, 255, 255, 0.2);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 10, 11, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s;
}
.purchase-sheet {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 480px);
  background: var(--paper);
  padding: clamp(32px, 6vh, 65px) 48px;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.25);
  animation: sheetIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: auto;
}
@keyframes sheetIn {
  from {
    transform: translateX(100%);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.modal-close {
  position: absolute;
  right: 25px;
  top: 20px;
  border: 0;
  background: none;
  font: 28px/1 sans-serif;
  color: var(--muted);
}
.purchase-sheet h2 {
  font: 500 44px/1.2 var(--serif);
  letter-spacing: -0.05em;
  margin: 30px 0;
}
.purchase-sheet ul {
  list-style: none;
  padding: 22px 0;
  margin: 0;
  border-top: 1px solid rgba(38, 27, 25, 0.12);
  border-bottom: 1px solid rgba(38, 27, 25, 0.12);
}
.purchase-sheet li {
  font-size: 12px;
  margin: 15px 0;
  color: #5e4d48;
}
.purchase-sheet li span {
  color: var(--red);
  margin-right: 10px;
}
.price-row {
  display: flex;
  align-items: baseline;
  margin: 32px 0 22px;
}
.price-row > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: auto;
}
.price-row b {
  font: 42px Georgia;
  color: var(--red);
}
.price-row b i {
  font-size: 16px;
  font-style: normal;
}
.price-row del {
  font: 12px Georgia;
  color: #a79790;
  margin-left: 10px;
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 15px;
}
.method-button {
  min-height: 48px;
  border: 1px solid rgba(38, 27, 25, 0.14);
  background: #fff9f2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
}
.method-button.is-selected {
  border-color: var(--red);
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.method-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font: 12px var(--serif);
}
.wechat-icon { background: #1a9b5b; }
.alipay-icon { background: #1677ff; }
.qr-placeholder {
  position: relative;
  min-height: 116px;
  margin: 0 0 15px;
  border: 1px dashed rgba(38, 27, 25, 0.22);
  background: repeating-linear-gradient(45deg, #fffaf4 0 8px, #f7eee5 8px 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.qr-placeholder b { font: 500 13px var(--serif); }
.qr-placeholder small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.qr-corners { position: absolute; inset: 9px; border: 1px solid rgba(191, 32, 52, 0.16); }
.pay-button {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 3px;
  background: #1a9b5b;
  color: #fff;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pay-button span {
  font-weight: 600;
}
.pay-button b {
  font: 17px Georgia;
}
.demo-button {
  width: 100%;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 11px;
  margin: 17px 0 0;
  padding: 8px;
}
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: #160d0e;
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 860px) {
  .topbar {
    position: absolute;
    height: 66px;
    padding: 14px 18px;
  }
  .screen {
    padding-top: 66px;
  }
  .home-screen {
    grid-template-columns: 1fr;
    padding: 105px 22px 75px;
    min-height: 100svh;
  }
  .home-screen.is-active {
    display: block;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy h1 {
    font-size: clamp(54px, 16vw, 76px);
  }
  .hero-lead {
    font-size: 14px;
    margin: 28px 0;
  }
  .hero-actions {
    display: grid;
    gap: 13px;
  }
  .primary-button {
    width: 100%;
  }
  .text-button {
    justify-self: center;
  }
  .trust-list {
    margin-top: 36px;
    gap: 0;
    justify-content: space-between;
  }
  .hero-art {
    height: 570px;
    min-height: 0;
    margin: 18px -5px 0;
  }
  .portrait-card {
    height: 66%;
    width: 48%;
  }
  .portrait-a {
    left: 1%;
    top: 18%;
  }
  .portrait-b {
    right: 1%;
    bottom: 2%;
  }
  .moon { display: none; }
  .seal {
    right: -2%;
    top: 48%;
  }
  .manifesto {
    display: none;
  }
  .setup-card {
    padding: 34px 25px;
    margin: 3vh auto;
  }
  .setup-card h2 {
    font-size: 40px;
  }
  .quiz-screen {
    padding-left: 20px;
    padding-right: 20px;
  }
  .question-card {
    margin-top: 8vh;
  }
  .question-card h2 {
    font-size: 30px;
    min-height: 130px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .answer-button {
    min-height: 64px;
  }
  .progress-meta i {
    width: 86px;
  }
  .result-page {
    width: 92%;
  }
  .result-heading {
    padding-top: 18px;
  }
  .result-heading p {
    display: none;
  }
  .result-hero {
    padding: 60px 8px 45px;
    min-height: 470px;
  }
  .result-hero h2 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.06em;
    white-space: nowrap;
  }
  .result-tag {
    max-width: 340px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.75;
  }
  .score-ring {
    width: 138px;
    height: 138px;
    margin-top: 34px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-card {
    padding: 28px;
  }
  .result-actions {
    display: grid;
  }
  .history-item {
    grid-template-columns: 1fr;
  }
  .history-item button {
    width: 100%;
  }
  .purchase-sheet {
    padding: 55px 25px 30px;
  }
  .purchase-sheet h2 {
    font-size: 38px;
  }
  .sound-button {
    display: none;
  }
}
@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 52px;
  }
  .hero-art {
    height: 500px;
  }
  .portrait-card p {
    left: 20px;
    bottom: 20px;
  }
  .setup-card {
    width: 94%;
  }
  .question-card {
    margin-top: 6vh;
  }
  .question-card h2 {
    font-size: 27px;
  }
  .answer-button {
    padding: 13px;
  }
  .result-hero h2 {
    font-size: 36px;
  }
  .result-tag {
    font-size: 12px;
  }
}
.mini-back {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 24px;
}
.status-options {
  display: grid;
  gap: 12px;
}
.status-card {
  min-height: 100px;
  border: 1px solid rgba(38, 27, 25, 0.14);
  background: #fff9f2;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 50px 1fr 25px;
  align-items: center;
  text-align: left;
  transition: 0.25s;
}
.status-card:hover {
  border-color: var(--red);
  transform: translateX(5px);
  box-shadow: 0 12px 28px rgba(126, 17, 32, 0.09);
}
.status-card > b {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font: 500 22px var(--serif);
}
.status-card > span {
  font: 600 16px var(--serif);
}
.status-card small {
  display: block;
  color: var(--muted);
  font: 10px/1.5 var(--sans);
  margin-top: 7px;
}
.status-card i {
  color: var(--red);
  font-style: normal;
}
.detail-step[hidden],
.setup-step[hidden] {
  display: none;
}
.intent-fieldset {
  display: grid;
  gap: 10px;
}
.intent-card {
  display: block;
}
.intent-card input {
  position: absolute;
  opacity: 0;
}
.intent-card > span {
  display: block;
  border: 1px solid rgba(38, 27, 25, 0.16);
  padding: 15px;
  background: #fff9f2;
}
.intent-card b,
.intent-card small {
  display: block;
}
.intent-card b {
  font: 600 14px var(--serif);
}
.intent-card small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.intent-card input:checked + span {
  border-color: var(--red);
  background: #fff0ee;
}
.intent-card input:checked + span b {
  color: var(--red);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
