:root {
  --paper: #f7f0df;
  --paper-deep: #eadfca;
  --ink: #1f2924;
  --ink-soft: #42584e;
  --green: #52695d;
  --green-deep: #33483f;
  --seal: #b85a3f;
  --seal-deep: #9d3f2f;
  --gold: #c6a46a;
  --line: rgba(84, 67, 45, 0.2);
  --shadow: 0 22px 54px rgba(43, 35, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e8dfcf;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(184, 90, 63, 0.08), transparent 26%),
    linear-gradient(180deg, #fbf7ec 0%, #e7dcc8 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(247, 240, 223, 0.9), rgba(247, 240, 223, 0.96)),
    repeating-linear-gradient(90deg, rgba(70, 60, 42, 0.025) 0 1px, transparent 1px 22px);
  box-shadow: 0 0 50px rgba(32, 28, 20, 0.16);
}

.screen {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.screen.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cover-screen {
  background: #f8f2e7;
}

.cover-wrap {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 94px;
  cursor: pointer;
}

.cover-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 118px);
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.primary-button {
  border: 0;
  color: #fffaf1;
  background: linear-gradient(180deg, #c66c4b 0%, var(--seal-deep) 100%);
  box-shadow: 0 14px 26px rgba(157, 63, 47, 0.22);
}

.secondary-button {
  border: 1px solid rgba(82, 105, 93, 0.28);
  color: var(--green-deep);
  background: rgba(255, 252, 244, 0.86);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.primary-button:not(:disabled):active,
.secondary-button:active,
.text-button:active {
  transform: scale(0.98);
}

.cover-button:active {
  transform: translateX(-50%) scale(0.98);
}

.cover-button {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(310px, calc(100% - 56px));
  transform: translateX(-50%);
  z-index: 2;
}

.intro-screen,
.result-screen {
  padding: 18px 14px 28px;
}

.intro-screen {
  background:
    linear-gradient(180deg, rgba(248, 243, 232, 0.9), rgba(237, 226, 205, 0.94)),
    url("参考页面.png");
  background-size: 150% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.paper-card,
.quiz-screen {
  position: relative;
}

.paper-card {
  min-height: calc(100vh - 36px);
  padding: 24px 18px;
  border: 1px solid rgba(94, 76, 48, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.94), rgba(248, 240, 224, 0.94)),
    repeating-linear-gradient(0deg, rgba(84, 67, 45, 0.025) 0 1px, transparent 1px 20px);
  box-shadow: var(--shadow);
}

.intro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
}

.intro-card::before,
.intro-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.22;
}

.intro-card::before {
  left: -36px;
  bottom: -14px;
  width: 164px;
  height: 220px;
  background:
    linear-gradient(104deg, transparent 0 45%, rgba(52, 72, 63, 0.45) 46% 48%, transparent 49% 100%),
    radial-gradient(ellipse at 72% 20%, rgba(52, 72, 63, 0.38) 0 42%, transparent 44%) 34px 28px / 78px 28px no-repeat,
    radial-gradient(ellipse at 28% 34%, rgba(52, 72, 63, 0.34) 0 42%, transparent 44%) 14px 62px / 72px 24px no-repeat,
    radial-gradient(ellipse at 74% 50%, rgba(52, 72, 63, 0.3) 0 42%, transparent 44%) 48px 92px / 76px 25px no-repeat,
    radial-gradient(ellipse at 30% 62%, rgba(52, 72, 63, 0.28) 0 42%, transparent 44%) 18px 126px / 70px 24px no-repeat;
  transform: rotate(-10deg);
}

.intro-card::after {
  right: -54px;
  top: 28px;
  width: 180px;
  height: 150px;
  background:
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.28) 0 58%, transparent 60%) 32px 14px / 86px 26px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.18) 0 58%, transparent 60%) 0 66px / 112px 34px no-repeat,
    radial-gradient(ellipse at center, rgba(184, 90, 63, 0.12) 0 54%, transparent 56%) 88px 82px / 68px 22px no-repeat;
}

.intro-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--seal-deep);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "PingFang SC", "Microsoft YaHei", serif;
  font-weight: 800;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
  line-height: 1.35;
}

.intro-copy {
  display: grid;
  gap: 12px;
  color: #3f4c45;
  font-size: 16px;
  line-height: 1.8;
}

.intro-copy p,
.result-section p {
  margin: 0;
}

.quiz-screen {
  padding: 0 10px 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(82, 105, 93, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(250, 246, 236, 0.98), rgba(239, 230, 211, 0.97));
}

.quiz-hero {
  height: 188px;
  margin: 0 -10px 12px;
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0.02) 0%, rgba(247, 240, 223, 0.2) 62%, rgba(247, 240, 223, 0.98) 100%),
    url("参考页面.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.quiz-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(82, 105, 93, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow: 0 12px 30px rgba(49, 40, 28, 0.08);
}

.progress-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 900;
}

.progress-track {
  height: 8px;
  margin: 14px 2px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(82, 105, 93, 0.14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--seal));
  transition: width 0.24s ease;
}

.hint {
  min-height: 22px;
  margin: 12px 4px 0;
  color: #69756e;
  font-size: 14px;
  line-height: 1.55;
}

.option-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.option-panel.image-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-card {
  position: relative;
  display: flex;
  min-height: 58px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(84, 67, 45, 0.18);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(49, 40, 28, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.answer-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-card.is-selected {
  border-color: rgba(184, 90, 63, 0.82);
  background: rgba(255, 246, 227, 0.96);
  box-shadow: 0 13px 26px rgba(157, 63, 47, 0.14);
}

.answer-card:active {
  transform: scale(0.99);
}

.text-answer {
  padding: 13px 14px;
}

.option-letter {
  display: inline-flex;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fffaf1;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
}

.option-text {
  min-width: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.image-answer {
  min-width: 0;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.image-answer .option-letter {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  width: 32px;
  height: 32px;
  box-shadow: 0 4px 12px rgba(35, 30, 22, 0.18);
}

.image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3ead7;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-answer .option-text {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.radio-dot {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(83, 72, 55, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.answer-card.is-selected .radio-dot {
  border: 7px solid var(--seal);
}

.quiz-actions {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
  margin-top: 18px;
}

.result-card {
  min-height: auto;
}

.result-hero {
  position: relative;
  padding: 22px 16px;
  border: 1px solid rgba(184, 90, 63, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(82, 105, 93, 0.12), rgba(184, 90, 63, 0.1)),
    rgba(255, 252, 245, 0.82);
  text-align: center;
}

.result-seal {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid var(--seal);
  color: var(--seal-deep);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 900;
}

.result-hero p {
  margin: 8px 0 0;
  color: var(--green-deep);
  font-weight: 800;
}

.result-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(84, 67, 45, 0.22);
}

.result-section h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 20px;
}

#personalityText {
  display: grid;
  gap: 10px;
  color: #38463f;
  font-size: 15px;
  line-height: 1.72;
}

.radar-wrap {
  display: grid;
  place-items: center;
  margin-top: 8px;
}

.radar-chart {
  width: min(260px, 100%);
  height: auto;
}

.score-bars {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  gap: 10px;
  align-items: center;
  color: #35443d;
  font-size: 15px;
  font-weight: 750;
}

.bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(82, 105, 93, 0.16);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--seal));
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-list span {
  padding: 8px 12px;
  border: 1px solid rgba(184, 90, 63, 0.22);
  border-radius: 999px;
  background: rgba(255, 246, 227, 0.88);
  color: var(--seal-deep);
  font-size: 15px;
  font-weight: 850;
}

.quote-box {
  padding: 16px;
  border: 1px solid rgba(82, 105, 93, 0.18);
  border-radius: 16px;
  background: rgba(246, 240, 226, 0.78);
}

.quote-box p,
.next-test p,
#calligraphyText,
#secondaryText {
  color: #38463f;
  font-size: 16px;
  line-height: 1.86;
}

.next-test {
  display: grid;
  gap: 12px;
}

.text-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  font-weight: 800;
}

.result-screen {
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 243, 0.98), rgba(239, 228, 207, 0.95) 72%),
    repeating-linear-gradient(0deg, rgba(84, 67, 45, 0.018) 0 1px, transparent 1px 20px);
  background-size: 100% auto;
  background-position: center top;
}

.result-poster {
  position: relative;
  min-height: 100vh;
  padding: 0 18px 36px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 6% 20%, rgba(82, 105, 93, 0.08), transparent 26%),
    radial-gradient(circle at 100% 58%, rgba(184, 90, 63, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(250, 246, 235, 0.92), rgba(244, 235, 216, 0.96)),
    repeating-linear-gradient(0deg, rgba(84, 67, 45, 0.018) 0 1px, transparent 1px 18px);
  box-shadow: none;
}

.result-poster::before {
  content: "";
  position: absolute;
  inset: 420px -64px 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(82, 105, 93, 0.08), transparent 28%),
    repeating-linear-gradient(96deg, transparent 0 26px, rgba(31, 41, 36, 0.03) 27px 28px, transparent 29px 52px);
  opacity: 0.5;
  pointer-events: none;
}

.result-poster > * {
  position: relative;
  z-index: 1;
}

.result-hero-panel {
  --result-portrait: url("result-portraits-v3/portrait-a-wang-xizhi.jpg");
  --portrait-x: 70%;
  --portrait-y: 50%;
  --portrait-right: -112px;
  --portrait-bottom: -30px;
  --portrait-width: 620px;
  --portrait-height: 570px;
  position: relative;
  min-height: 590px;
  margin: 0 -18px;
  padding: 36px 22px 74px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(250, 246, 235, 0.97) 0%, rgba(250, 246, 235, 0.9) 42%, rgba(250, 246, 235, 0.38) 68%, rgba(250, 246, 235, 0.04) 100%),
    radial-gradient(circle at 76% 16%, rgba(255, 252, 245, 0.1), rgba(82, 105, 93, 0.14) 36%, transparent 62%),
    var(--result-portrait);
  background-size: cover;
  background-position: var(--portrait-x) var(--portrait-y);
  background-repeat: no-repeat;
}

.result-hero-panel::before {
  content: "";
  position: absolute;
  inset: -18px -18px -6px;
  z-index: 0;
  background:
    radial-gradient(circle at 66% 24%, rgba(255, 252, 245, 0), rgba(247, 240, 223, 0.58) 58%),
    var(--result-portrait);
  background-size: cover;
  background-position: var(--portrait-x) var(--portrait-y);
  filter: saturate(0.86);
  opacity: 0.2;
  pointer-events: none;
}

.result-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 142px;
  background: linear-gradient(180deg, rgba(247, 240, 223, 0), rgba(247, 240, 223, 0.78) 64%, rgba(247, 240, 223, 1));
  pointer-events: none;
}

.result-name-watermark,
.result-portrait-foreground {
  display: none;
}

.result-hero-a,
.result-hero-e {
  --portrait-x: 70%;
  --portrait-y: 50%;
}

.result-hero-b,
.result-hero-c,
.result-hero-d {
  --portrait-x: 72%;
  --portrait-y: 50%;
}

.result-hero-f {
  --portrait-x: 74%;
  --portrait-y: 52%;
  --portrait-right: -110px;
  --portrait-bottom: -18px;
}

.result-hero-panel.is-portrait-forward .result-name-watermark {
  position: absolute;
  z-index: 1;
  right: -24px;
  bottom: 118px;
  display: block;
  color: rgba(31, 41, 36, 0.07);
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
  pointer-events: none;
}

.result-hero-panel.is-portrait-forward .result-portrait-foreground {
  position: absolute;
  z-index: 2;
  right: var(--portrait-right);
  bottom: var(--portrait-bottom);
  display: block;
  width: var(--portrait-width);
  max-width: none;
  height: var(--portrait-height);
  object-fit: cover;
  object-position: var(--portrait-x) var(--portrait-y);
  opacity: 0.98;
  filter: contrast(1.06) saturate(1.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 13%, rgba(0, 0, 0, 0.72) 32%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 13%, rgba(0, 0, 0, 0.72) 32%, #000 48%);
  pointer-events: none;
}

.result-hero-panel.is-portrait-forward .poster-kicker,
.result-hero-panel.is-portrait-forward .result-title-block {
  position: relative;
  z-index: 3;
}

.result-hero-panel.is-portrait-forward .poster-kicker {
  margin-bottom: 28px;
  color: rgba(32, 59, 55, 0.96);
  font-size: 22px;
}

.result-hero-panel.is-portrait-forward .result-title-block {
  width: min(64%, 272px);
}

.result-hero-panel.is-portrait-forward .result-pretitle {
  color: rgba(32, 59, 55, 0.96);
  font-size: 25px;
}

.result-hero-panel.is-portrait-forward .result-title-block h1 {
  font-size: 54px;
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(255, 252, 245, 0.7);
}

.result-hero-panel.is-portrait-forward .result-subtitle-pill {
  margin-top: 18px;
  padding: 9px 14px;
  border-color: rgba(82, 105, 93, 0.28);
  background: rgba(255, 252, 245, 0.72);
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(51, 72, 63, 0.08);
}

.result-hero-panel.is-portrait-forward .result-tagline {
  position: relative;
  margin-top: 34px;
  max-width: 300px;
  padding-left: 18px;
  color: rgba(31, 41, 36, 0.88);
  font-size: 17px;
  line-height: 1.82;
  text-shadow: 0 3px 14px rgba(255, 252, 245, 0.76);
}

.result-hero-panel.is-portrait-forward .result-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: calc(100% - 0.84em);
  border-radius: 999px;
  background: rgba(184, 90, 63, 0.42);
}

.result-hero-panel.is-portrait-forward .result-seal {
  position: absolute;
  z-index: 4;
  top: 34px;
  right: 20px;
  background: rgba(255, 252, 245, 0.48);
  box-shadow: 0 8px 20px rgba(157, 63, 47, 0.08);
}

.poster-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: var(--green-deep);
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2px;
}

.result-title-block {
  position: relative;
  z-index: 1;
  width: min(78%, 300px);
}

.result-pretitle {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.result-title-block h1 {
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 46px;
  line-height: 1.06;
  color: #111712;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  overflow-wrap: anywhere;
}

.result-subtitle-pill {
  display: inline-flex;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(82, 105, 93, 0.32);
  border-radius: 8px;
  background: rgba(248, 243, 232, 0.78);
  color: var(--green);
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.result-tagline {
  margin: 12px 0 0;
  color: #4d584f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.result-hero-panel .result-seal {
  position: absolute;
  z-index: 1;
  right: 20px;
  top: 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  background: rgba(248, 243, 232, 0.58);
  font-size: 20px;
}

.result-hero-panel.is-composite .result-title-block {
  width: min(76%, 330px);
}

.result-hero-panel.is-composite .result-title-block h1 {
  max-width: 302px;
  font-size: 38px;
  line-height: 1.16;
}

.result-hero-panel.is-composite .result-seal {
  right: 18px;
  top: 82px;
}

.result-chart-section {
  position: relative;
  margin: 20px 0 0;
  padding: 24px 14px 22px;
  border: 1px solid rgba(84, 67, 45, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.74), rgba(247, 239, 222, 0.72)),
    repeating-linear-gradient(0deg, rgba(84, 67, 45, 0.018) 0 1px, transparent 1px 18px);
  box-shadow: 0 12px 26px rgba(49, 40, 28, 0.06);
  text-align: center;
}

.result-chart-section h2 {
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 27px;
  letter-spacing: 2px;
}

.result-chart-section .radar-wrap {
  margin-top: 4px;
  position: relative;
}

.result-chart-section .radar-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  border: 14px solid rgba(31, 41, 36, 0.055);
  border-right-color: rgba(31, 41, 36, 0.16);
  border-bottom-color: rgba(82, 105, 93, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.result-chart-section .radar-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 14px;
  bottom: 22px;
  width: 94px;
  height: 118px;
  background:
    linear-gradient(105deg, transparent 0 48%, rgba(31, 41, 36, 0.16) 49% 51%, transparent 52% 100%),
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.14) 0 45%, transparent 47%) 42px 18px / 44px 14px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.13) 0 45%, transparent 47%) 12px 48px / 48px 15px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.11) 0 45%, transparent 47%) 44px 76px / 42px 14px no-repeat;
  opacity: 0.68;
  transform: rotate(11deg);
}

.result-chart-section .radar-chart {
  width: min(332px, 100%);
}

.result-chart-section .score-bars {
  margin: 18px 4px 0;
  text-align: left;
}

.poster-info-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(84, 67, 45, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.78), rgba(248, 240, 224, 0.76)),
    repeating-linear-gradient(90deg, rgba(84, 67, 45, 0.018) 0 1px, transparent 1px 22px);
  box-shadow: 0 10px 26px rgba(49, 40, 28, 0.055);
}

.poster-info-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 1px;
}

.poster-info-card p,
.poster-info-card #personalityText {
  color: #343f39;
  font-size: 16px;
  line-height: 1.86;
}

.poster-info-card #personalityText {
  gap: 14px;
}

.secondary-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 13px;
  border: 1px solid rgba(184, 90, 63, 0.22);
  border-radius: 999px;
  background: rgba(255, 246, 227, 0.8);
  color: var(--seal-deep);
  font-size: 15px;
  font-weight: 850;
}

.quote-box {
  padding: 18px 16px;
}

.next-test {
  gap: 12px;
}

.next-test > div {
  display: contents;
}

.next-test h2,
.next-test p {
  grid-column: 2;
}

.next-test .next-test-note {
  margin: -2px 0 4px;
  color: rgba(157, 63, 47, 0.86);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.72;
}

.next-test .primary-button,
.next-test .secondary-button {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

.next-test .primary-button {
  margin-top: 4px;
  background: linear-gradient(180deg, #52695d 0%, #33483f 100%);
  box-shadow: 0 12px 24px rgba(51, 72, 63, 0.2);
}

.next-test .secondary-button {
  border: 1px solid rgba(82, 105, 93, 0.28);
  color: var(--green-deep);
  background: rgba(255, 252, 245, 0.82);
  box-shadow: 0 7px 16px rgba(51, 72, 63, 0.06);
}

.restart-button {
  border-color: rgba(82, 105, 93, 0.22);
  color: var(--green-deep);
  background: rgba(246, 240, 226, 0.82);
  box-shadow: 0 7px 16px rgba(51, 72, 63, 0.05);
}

.restart-button::before {
  content: "↺";
  margin-right: 8px;
  font-size: 18px;
  line-height: 1;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 26px;
  max-width: min(360px, calc(100vw - 34px));
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(31, 41, 36, 0.92);
  color: #fffaf0;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 390px) {
  .intro-screen {
    padding: 14px 10px 24px;
  }

  .quiz-screen {
    padding: 0 10px 24px;
  }

  .result-screen {
    padding: 0;
  }

  .result-poster {
    padding: 0 16px 34px;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 20px;
  }

  .option-panel.image-mode {
    gap: 9px;
  }

  .image-answer .option-text {
    min-height: 58px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .score-row {
    grid-template-columns: 86px 1fr 34px;
    gap: 8px;
    font-size: 14px;
  }

  .result-hero-panel {
    --portrait-width: 590px;
    --portrait-height: 552px;
    --portrait-right: -112px;
    min-height: 570px;
    margin: 0 -16px;
    padding: 34px 18px 70px;
  }

  .result-hero-panel.is-portrait-forward .result-title-block {
    width: min(64%, 250px);
  }

  .result-hero-panel.is-portrait-forward .result-pretitle {
    font-size: 23px;
  }

  .result-hero-panel.is-portrait-forward .result-title-block h1 {
    font-size: 50px;
  }

  .result-hero-panel.is-portrait-forward .result-subtitle-pill {
    font-size: 22px;
  }

  .result-hero-panel.is-portrait-forward .result-tagline {
    max-width: 282px;
    font-size: 16px;
  }

  .result-hero-panel.is-composite .result-title-block {
    width: min(76%, 304px);
  }

  .result-hero-panel.is-composite .result-title-block h1 {
    max-width: 286px;
    font-size: 34px;
  }

  .poster-info-card {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

}

/* Poster-style result page: long guofeng share image, not stacked web cards. */
.result-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 241, 0.98), rgba(237, 226, 203, 0.98) 78%),
    repeating-linear-gradient(90deg, rgba(66, 54, 36, 0.018) 0 1px, transparent 1px 18px);
}

.result-poster {
  padding: 0 18px 40px;
  background:
    radial-gradient(circle at 12% 17%, rgba(82, 105, 93, 0.1), transparent 24%),
    radial-gradient(circle at 100% 38%, rgba(31, 41, 36, 0.1), transparent 28%),
    radial-gradient(circle at 4% 82%, rgba(184, 90, 63, 0.09), transparent 22%),
    linear-gradient(180deg, rgba(250, 246, 234, 0.94), rgba(240, 230, 207, 0.98));
}

.result-poster::before {
  inset: 520px -88px 0;
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0), rgba(247, 240, 223, 0.72) 18%, rgba(247, 240, 223, 0.34)),
    radial-gradient(ellipse at 8% 16%, rgba(31, 41, 36, 0.13), transparent 24%),
    radial-gradient(ellipse at 86% 34%, rgba(82, 105, 93, 0.11), transparent 28%),
    radial-gradient(circle at 50% 42%, rgba(82, 105, 93, 0.08), transparent 18%),
    repeating-linear-gradient(96deg, transparent 0 28px, rgba(31, 41, 36, 0.04) 29px 30px, transparent 31px 54px),
    repeating-linear-gradient(0deg, rgba(84, 67, 45, 0.018) 0 1px, transparent 1px 18px);
  opacity: 0.8;
}

.result-poster::after {
  content: "";
  position: absolute;
  left: -74px;
  right: -74px;
  bottom: 0;
  height: 470px;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 90%, rgba(31, 41, 36, 0.16), transparent 30%),
    radial-gradient(ellipse at 82% 96%, rgba(82, 105, 93, 0.13), transparent 34%),
    repeating-linear-gradient(105deg, transparent 0 23px, rgba(31, 41, 36, 0.055) 24px 25px, transparent 26px 42px);
  opacity: 0.38;
  pointer-events: none;
}

.result-hero-panel {
  --portrait-width: 610px;
  --portrait-height: 560px;
  --portrait-right: -104px;
  --portrait-bottom: -24px;
  min-height: 590px;
  margin: 0 -18px;
  padding: 34px 22px 78px;
  background:
    linear-gradient(90deg, rgba(250, 246, 235, 0.98) 0%, rgba(250, 246, 235, 0.88) 38%, rgba(250, 246, 235, 0.2) 70%, rgba(250, 246, 235, 0) 100%),
    radial-gradient(circle at 71% 23%, rgba(255, 252, 245, 0.05), rgba(31, 41, 36, 0.18) 34%, transparent 63%),
    var(--result-portrait);
  background-size: cover;
  background-position: var(--portrait-x) var(--portrait-y);
}

.result-hero-panel::before {
  inset: -12px -24px -4px;
  background:
    radial-gradient(circle at 73% 26%, rgba(255, 252, 245, 0), rgba(247, 240, 223, 0.54) 56%),
    radial-gradient(ellipse at 77% 32%, rgba(31, 41, 36, 0.22), transparent 32%),
    var(--result-portrait);
  background-size: cover;
  background-position: var(--portrait-x) var(--portrait-y);
  opacity: 0.24;
}

.result-hero-panel::after {
  height: 156px;
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0), rgba(247, 240, 223, 0.82) 62%, rgba(247, 240, 223, 1)),
    radial-gradient(ellipse at 76% 0%, rgba(31, 41, 36, 0.2), transparent 46%);
}

.result-hero-panel.is-portrait-forward .result-portrait-foreground {
  width: var(--portrait-width);
  height: var(--portrait-height);
  right: var(--portrait-right);
  bottom: var(--portrait-bottom);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 10%, rgba(0, 0, 0, 0.72) 28%, #000 44%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 10%, rgba(0, 0, 0, 0.72) 28%, #000 44%);
}

.result-hero-f {
  --portrait-width: 640px;
  --portrait-height: 575px;
  --portrait-right: -116px;
  --portrait-bottom: -10px;
}

.result-hero-d {
  --portrait-width: 632px;
  --portrait-right: -118px;
}

.result-hero-b {
  --portrait-width: 598px;
  --portrait-right: -98px;
}

.result-hero-panel.is-portrait-forward .poster-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 19px;
  letter-spacing: 3px;
}

.result-hero-panel.is-portrait-forward .poster-kicker::after {
  content: "";
  width: 118px;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 105, 93, 0.46), transparent);
}

.result-hero-panel.is-portrait-forward .result-title-block {
  width: min(64%, 282px);
}

.result-hero-panel.is-portrait-forward .result-pretitle {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: 1px;
}

.result-hero-panel.is-portrait-forward .result-title-block h1 {
  color: #0f1b16;
  font-size: 56px;
  letter-spacing: 0;
  text-shadow: 0 5px 18px rgba(255, 252, 245, 0.72);
}

.result-hero-panel.is-portrait-forward .result-subtitle-pill {
  margin-top: 20px;
  padding: 8px 15px 9px;
  border-radius: 4px;
  border-color: rgba(82, 105, 93, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 252, 245, 0.84), rgba(243, 235, 216, 0.64));
  color: var(--green-deep);
  font-size: 23px;
  box-shadow: none;
}

.result-hero-panel.is-portrait-forward .result-tagline {
  max-width: 284px;
  margin-top: 34px;
  padding-left: 18px;
  color: rgba(31, 41, 36, 0.9);
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.75;
}

.result-hero-panel.is-portrait-forward .result-tagline::before {
  width: 3px;
  background: linear-gradient(180deg, rgba(184, 90, 63, 0.48), rgba(184, 90, 63, 0.12));
}

.result-hero-panel .result-seal,
.result-hero-panel.is-portrait-forward .result-seal {
  top: 34px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-color: rgba(184, 90, 63, 0.86);
  border-width: 2px;
  background: rgba(248, 243, 232, 0.2);
  color: var(--seal-deep);
  font-size: 22px;
  box-shadow: none;
}

.result-chart-section {
  margin: -2px -2px 0;
  padding: 22px 0 26px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 49%, rgba(82, 105, 93, 0.1), transparent 38%),
    radial-gradient(ellipse at 54% 38%, rgba(184, 90, 63, 0.055), transparent 50%);
  box-shadow: none;
}

.result-chart-section::before,
.result-chart-section::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 67, 45, 0.26), transparent);
}

.result-chart-section::before {
  top: 6px;
}

.result-chart-section::after {
  bottom: 4px;
}

.result-chart-section h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 28px;
  letter-spacing: 2px;
}

.result-chart-section h2::before,
.result-chart-section h2::after {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: rgba(198, 164, 106, 0.8);
}

.result-chart-section .radar-chart {
  width: min(340px, 100%);
}

.result-chart-section .score-bars {
  margin: 16px 12px 0;
  padding: 0;
}

.score-row {
  grid-template-columns: 96px 1fr 38px;
  color: var(--green-deep);
  font-size: 15px;
}

.bar-track {
  background: rgba(82, 105, 93, 0.13);
}

.poster-info-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 112px;
  margin-top: 12px;
  padding: 22px 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(84, 67, 45, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.2), rgba(244, 235, 216, 0.12)),
    repeating-linear-gradient(0deg, rgba(84, 67, 45, 0.016) 0 1px, transparent 1px 17px);
  box-shadow: none;
}

.poster-info-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 86px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(31, 41, 36, 0.28), rgba(31, 41, 36, 0.05), transparent) 0 12px / 58px 1px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.18) 0 46%, transparent 48%) 50px 1px / 30px 10px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.16) 0 46%, transparent 48%) 58px 12px / 32px 10px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.12) 0 46%, transparent 48%) 34px 16px / 28px 9px no-repeat;
  opacity: 0.78;
  filter: none;
  transform: rotate(-3deg);
  pointer-events: none;
}

.poster-info-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 15px;
  width: 18px;
  height: 22px;
  border: 1px solid rgba(184, 90, 63, 0.52);
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(184, 90, 63, 0.34) 46% 52%, transparent 53%),
    rgba(255, 246, 227, 0.3);
}

.poster-info-card h2::before,
.poster-info-card h2::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
}

.poster-info-card h2::before {
  width: 18px;
  height: 1px;
  margin-right: 8px;
  background: rgba(84, 67, 45, 0.28);
}

.poster-info-card h2::after {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border: 1px solid rgba(184, 90, 63, 0.72);
  border-radius: 50%;
}

.poster-info-card > div {
  grid-column: auto;
  min-width: 0;
}

.poster-info-card h2 {
  margin: 0 28px 14px 0;
  padding-left: 72px;
  color: var(--green-deep);
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: 1px;
}

.poster-info-card p,
.poster-info-card #personalityText,
.quote-box p,
.next-test p,
#calligraphyText,
#secondaryText {
  color: rgba(31, 41, 36, 0.9);
  font-size: 16px;
  line-height: 1.86;
}

.poster-info-card #personalityText {
  gap: 12px;
}

.analysis-card {
  --art-x: 10%;
  --art-y: 35%;
}

.calligraphy-card {
  --art-x: 50%;
  --art-y: 68%;
}

.keyword-card {
  --art-x: 76%;
  --art-y: 44%;
  min-height: 98px;
}

.secondary-card {
  --art-x: 20%;
  --art-y: 78%;
}

.quote-box {
  --art-x: 58%;
  --art-y: 28%;
}

.next-test {
  --art-x: 86%;
  --art-y: 72%;
  padding-bottom: 18px;
}

.keyword-list {
  gap: 10px 9px;
}

.keyword-list span,
.secondary-badge {
  border-radius: 3px;
  border-color: rgba(84, 67, 45, 0.24);
  background: rgba(246, 238, 221, 0.36);
  color: var(--seal-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 245, 0.34);
}

.secondary-badge {
  font-size: 15px;
}

.next-test > div {
  display: block;
}

.next-test h2,
.next-test p {
  grid-column: auto;
}

.next-test .next-test-note {
  margin: 8px 0 12px;
  color: rgba(157, 63, 47, 0.86);
  font-size: 15px;
}

.next-test .primary-button,
.next-test .secondary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 17px;
}

.next-test .primary-button {
  position: relative;
  background:
    linear-gradient(90deg, rgba(31, 41, 36, 0.96), rgba(82, 105, 93, 0.96)),
    repeating-linear-gradient(105deg, transparent 0 10px, rgba(255, 252, 245, 0.08) 11px 12px);
}

.next-test .primary-button::after {
  content: "›";
  margin-left: 10px;
  font-size: 28px;
  line-height: 1;
}

.next-test .secondary-button {
  border-color: rgba(84, 67, 45, 0.24);
  background: rgba(250, 246, 235, 0.34);
}

/* Final result-module pass: no local image placeholders, only CSS ink ornaments. */
.poster-info-card {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 22px;
  padding: 22px 18px 20px;
  border-color: rgba(90, 78, 55, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(82, 105, 93, 0.065), transparent 36%),
    radial-gradient(ellipse at 92% 100%, rgba(184, 90, 63, 0.045), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 242, 0.72), rgba(246, 238, 220, 0.5)),
    repeating-linear-gradient(0deg, rgba(90, 78, 55, 0.018) 0 1px, transparent 1px 18px);
  box-shadow:
    inset 0 0 24px rgba(90, 78, 55, 0.045),
    0 10px 22px rgba(49, 40, 28, 0.035);
}

.poster-info-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 86px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(31, 41, 36, 0.28), rgba(31, 41, 36, 0.05), transparent) 0 12px / 58px 1px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.18) 0 46%, transparent 48%) 50px 1px / 30px 10px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.16) 0 46%, transparent 48%) 58px 12px / 32px 10px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.12) 0 46%, transparent 48%) 34px 16px / 28px 9px no-repeat;
  opacity: 0.78;
  transform: rotate(-3deg);
  pointer-events: none;
}

.poster-info-card::after {
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border: 0;
  border-top: 1px solid rgba(184, 90, 63, 0.48);
  border-right: 1px solid rgba(184, 90, 63, 0.48);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(184, 90, 63, 0.42) 49% 52%, transparent 53%);
}

.poster-info-card > div {
  grid-column: auto;
}

.poster-info-card h2 {
  margin: 0 28px 14px 0;
  padding-left: 72px;
}

.poster-info-card h2::before {
  display: none;
}

.poster-info-card h2::after {
  width: 6px;
  height: 6px;
  margin-left: 9px;
  border: 0;
  background: rgba(184, 90, 63, 0.76);
}

.analysis-card,
.calligraphy-card,
.keyword-card,
.secondary-card,
.quote-box,
.next-test {
  --art-x: initial;
  --art-y: initial;
}

.analysis-card::before {
  background:
    linear-gradient(90deg, rgba(31, 41, 36, 0.28), rgba(31, 41, 36, 0.05), transparent) 0 12px / 64px 1px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.18) 0 46%, transparent 48%) 48px 1px / 30px 10px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.14) 0 46%, transparent 48%) 60px 13px / 34px 10px no-repeat;
}

.calligraphy-card::before {
  background:
    linear-gradient(102deg, transparent 0 46%, rgba(31, 41, 36, 0.24) 47% 49%, transparent 50%) 18px 0 / 30px 30px no-repeat,
    linear-gradient(90deg, rgba(31, 41, 36, 0.2), rgba(31, 41, 36, 0.05), transparent) 0 14px / 72px 1px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.14) 0 46%, transparent 48%) 50px 4px / 34px 10px no-repeat;
}

.keyword-card::before,
.secondary-card::before {
  background:
    radial-gradient(circle at 12px 14px, rgba(184, 90, 63, 0.42) 0 3px, transparent 4px),
    linear-gradient(90deg, rgba(31, 41, 36, 0.22), rgba(31, 41, 36, 0.05), transparent) 20px 14px / 62px 1px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.13) 0 46%, transparent 48%) 54px 4px / 30px 9px no-repeat;
}

.quote-box::before,
.next-test::before {
  background:
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.14) 0 46%, transparent 48%) 2px 10px / 34px 10px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.12) 0 46%, transparent 48%) 30px 2px / 34px 10px no-repeat,
    linear-gradient(90deg, rgba(31, 41, 36, 0.2), rgba(31, 41, 36, 0.04), transparent) 0 18px / 76px 1px no-repeat;
}

.result-poster::after {
  background:
    radial-gradient(ellipse at 10% 88%, rgba(31, 41, 36, 0.13), transparent 28%),
    radial-gradient(ellipse at 86% 92%, rgba(82, 105, 93, 0.11), transparent 32%),
    linear-gradient(112deg, transparent 0 50%, rgba(31, 41, 36, 0.065) 51% 52%, transparent 53%) 0 0 / 120px 180px,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.075) 0 45%, transparent 47%) 18px 260px / 82px 26px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.06) 0 45%, transparent 47%) right 46px bottom 84px / 120px 34px no-repeat;
  opacity: 0.42;
}

@media (max-width: 390px) {
  .poster-info-card {
    grid-template-columns: 1fr;
    padding: 20px 16px 18px;
  }

  .poster-info-card::before {
    width: 78px;
    height: 24px;
  }

  .poster-info-card h2 {
    padding-left: 66px;
  }
}

@media (max-width: 390px) {
  .result-poster {
    padding: 0 14px 38px;
  }

  .result-hero-panel {
    --portrait-width: 588px;
    --portrait-height: 552px;
    --portrait-right: -112px;
    min-height: 570px;
    margin: 0 -14px;
    padding: 32px 18px 74px;
  }

  .result-hero-panel.is-portrait-forward .result-title-block {
    width: min(64%, 252px);
  }

  .result-hero-panel.is-portrait-forward .result-title-block h1 {
    font-size: 50px;
  }

  .result-hero-panel.is-composite .result-title-block h1 {
    font-size: 34px;
  }

  .poster-info-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 16px 18px;
  }

  .poster-info-card::before {
    width: 78px;
    height: 24px;
  }

  .poster-info-card h2 {
    font-size: 24px;
    padding-left: 66px;
  }

  .score-row {
    grid-template-columns: 86px 1fr 34px;
    font-size: 14px;
  }
}

/* Softer reading flow for result modules: no enclosed card frames. */
.result-poster {
  background:
    radial-gradient(circle at 8% 24%, rgba(82, 105, 93, 0.1), transparent 24%),
    radial-gradient(circle at 94% 72%, rgba(31, 41, 36, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(250, 246, 234, 0.94), rgba(240, 230, 207, 0.98)),
    repeating-linear-gradient(0deg, rgba(90, 78, 55, 0.016) 0 1px, transparent 1px 19px);
}

.result-poster::after {
  height: 620px;
  background:
    radial-gradient(circle at 12% 92%, rgba(184, 90, 63, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 82%, rgba(184, 90, 63, 0.24) 0 2px, transparent 3px),
    radial-gradient(ellipse at 8% 88%, rgba(31, 41, 36, 0.12), transparent 26%),
    radial-gradient(ellipse at 86% 92%, rgba(82, 105, 93, 0.1), transparent 32%),
    linear-gradient(108deg, transparent 0 48%, rgba(31, 41, 36, 0.055) 49% 50%, transparent 51%) 0 0 / 112px 172px,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.07) 0 45%, transparent 47%) 14px 300px / 86px 24px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.055) 0 45%, transparent 47%) right 40px bottom 94px / 122px 32px no-repeat;
  opacity: 0.5;
}

.result-chart-section {
  margin-bottom: 18px;
}

.poster-info-card {
  display: block;
  margin: 18px 0 0;
  padding: 26px 12px 24px 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 252, 242, 0.58), rgba(255, 252, 242, 0.34) 68%, transparent),
    linear-gradient(180deg, rgba(90, 78, 55, 0.045), transparent 1px, transparent calc(100% - 1px), rgba(90, 78, 55, 0.035) 100%),
    radial-gradient(ellipse at 96% 18%, rgba(184, 90, 63, 0.045), transparent 30%);
  box-shadow: none;
}

.poster-info-card::before {
  left: 0;
  top: 18px;
  width: 72px;
  height: 28px;
  background:
    linear-gradient(90deg, rgba(31, 41, 36, 0.24), rgba(31, 41, 36, 0.055), transparent) 0 13px / 60px 1px no-repeat,
    radial-gradient(ellipse at center, rgba(31, 41, 36, 0.18) 0 44%, transparent 46%) 46px 0 / 28px 9px no-repeat,
    radial-gradient(ellipse at center, rgba(82, 105, 93, 0.15) 0 44%, transparent 46%) 54px 12px / 30px 9px no-repeat,
    radial-gradient(circle at 11px 13px, rgba(184, 90, 63, 0.32) 0 2px, transparent 3px);
  opacity: 0.72;
}

.poster-info-card::after {
  top: 20px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-top: 1px solid rgba(184, 90, 63, 0.36);
  border-right: 1px solid rgba(184, 90, 63, 0.36);
  background:
    radial-gradient(circle at 2px 20px, rgba(184, 90, 63, 0.34) 0 2px, transparent 3px),
    linear-gradient(135deg, transparent 0 49%, rgba(184, 90, 63, 0.28) 50% 52%, transparent 53%);
}

.poster-info-card > div {
  max-width: 100%;
}

.poster-info-card h2 {
  margin: 0 34px 14px 0;
  padding-left: 58px;
}

.poster-info-card h2::after {
  background: rgba(184, 90, 63, 0.66);
}

.poster-info-card p,
.poster-info-card #personalityText,
.quote-box p,
.next-test p,
#calligraphyText,
#secondaryText {
  font-size: 16px;
  line-height: 1.92;
}

.analysis-card,
.quote-box {
  transform: translateX(-2px);
}

.calligraphy-card,
.secondary-card {
  transform: translateX(4px);
}

.keyword-card {
  padding-top: 24px;
}

.keyword-list span,
.secondary-badge {
  border: 1px solid rgba(90, 78, 55, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 242, 0.44);
  box-shadow: none;
}

.next-test {
  margin-top: 20px;
  padding-bottom: 24px;
  background:
    linear-gradient(90deg, rgba(255, 252, 242, 0.62), rgba(255, 252, 242, 0.36), transparent),
    radial-gradient(ellipse at 12% 100%, rgba(82, 105, 93, 0.08), transparent 38%);
}

@media (max-width: 390px) {
  .poster-info-card {
    padding: 24px 10px 22px 16px;
  }

  .poster-info-card h2 {
    padding-left: 54px;
  }
}
