:root {
  --bg: #f8f4ef;
  --panel: rgba(255, 251, 248, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --ink: #59524c;
  --muted: #8d857f;
  --line: rgba(172, 186, 167, 0.24);
  --accent: #e8a4b2;
  --accent-deep: #d98798;
  --accent-soft: rgba(246, 215, 223, 0.68);
  --sage: #bfd0bf;
  --sage-deep: #8ea48f;
  --mist: #edf2e5;
  --blush: #f7e7e4;
  --gold: #d8be76;
  --gold-soft: rgba(216, 190, 118, 0.18);
  --focus: #94aca0;
  --shadow: 0 18px 38px rgba(182, 169, 156, 0.12);
  --section-width: 980px;
  --section-padding: clamp(24px, 3.2vw, 36px);
  --content-gap: 18px;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-display: "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif SC", "Source Han Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 17% 22%, rgba(191, 208, 191, 0.42), transparent 24%),
    radial-gradient(circle at 74% 18%, rgba(244, 210, 214, 0.46), transparent 24%),
    radial-gradient(circle at 76% 76%, rgba(248, 226, 222, 0.44), transparent 26%),
    radial-gradient(circle at 24% 82%, rgba(216, 231, 217, 0.3), transparent 24%),
    linear-gradient(180deg, #faf7f2 0%, #f5efe9 100%);
}

body {
  position: relative;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
h1,
h2,
h3,
h4,
p,
li,
span,
strong,
em,
small {
  font-family: inherit;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(112deg, transparent 0 16%, rgba(201, 214, 196, 0.24) 16.5%, transparent 18.5%, transparent 37%, rgba(232, 199, 205, 0.18) 37.5%, transparent 40%, transparent 100%),
    linear-gradient(298deg, transparent 0 58%, rgba(194, 210, 194, 0.16) 58.5%, transparent 61.5%);
  opacity: 0.55;
}

body::after {
  background:
    radial-gradient(circle at 22% 30%, rgba(216, 190, 118, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 20%, rgba(216, 190, 118, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 74%, rgba(216, 190, 118, 0.16) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 78% 68%, rgba(216, 190, 118, 0.14) 0 1px, transparent 2px);
  background-size: 240px 240px, 320px 320px, 280px 280px, 360px 360px;
  opacity: 0.45;
}

button {
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.22;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
}

h4 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 500;
}

.app-shell {
  min-height: 100vh;
}

.site-back-link {
  display: none;
}

.site-back-link:hover,
.site-back-link:focus-visible {
  transform: translateY(-1px);
}

.view {
  display: none;
  min-height: 100vh;
  padding: 24px 16px 32px;
}

.view.is-active {
  display: grid;
  align-items: center;
}

.section-inner {
  width: min(var(--section-width), 100%);
  margin: 0 auto;
  padding: var(--section-padding);
  border: 1px solid rgba(185, 198, 177, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 20%, rgba(233, 243, 229, 0.58), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(248, 219, 225, 0.58), transparent 26%),
    linear-gradient(135deg, rgba(255, 246, 248, 0.72), rgba(243, 248, 241, 0.68) 52%, rgba(255, 251, 247, 0.78)),
    var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.view.is-active .section-inner {
  animation: sectionSettle 220ms ease-out both;
}

.home-layout,
.quiz-layout,
.center-layout,
.result-layout {
  position: relative;
}

.simple-sheet {
  display: grid;
  gap: var(--content-gap);
}

#homeView.is-active .site-back-link {
  position: absolute;
  top: 28px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  color: var(--ink);
  text-decoration: none;
}

.eyebrow,
.notice-text,
.progress-text,
.result-subtitle,
.section-copy,
.score-copy,
.match-item p,
.module-copy,
.home-footnote {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 4px;
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.intro-text,
.question-text,
.plain-list,
.result-section p,
.match-item p,
.lead-paragraph {
  line-height: 1.75;
}

.intro-text {
  max-width: 24em;
  margin-bottom: 0;
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.92;
  text-wrap: pretty;
}

.home-sheet {
  justify-items: center;
  padding-top: 36px;
}

.home-sheet > * {
  width: min(100%, 760px);
}

.home-sheet .eyebrow,
.home-sheet h1 {
  text-align: center;
}


.home-sheet .intro-text,
.home-sheet .home-footnote {
  max-width: min(100%, 22em);
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

.home-sheet .stats-grid,
.home-sheet .home-actions,
.home-sheet #buildHint {
  width: min(100%, 760px);
  margin-inline: auto;
}

.stats-grid,
.dimension-pills,
.role-tags,
.mini-tags,
.meta-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dimension-pill,
.role-tags span,
.mini-tags span,
.score-tier,
.meta-list span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.dimension-pill {
  display: grid;
  justify-items: start;
  align-content: start;
  min-height: 0;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(252, 249, 245, 0.62)),
    rgba(255, 255, 255, 0.52);
  box-shadow: 0 6px 18px rgba(182, 169, 156, 0.05);
}

.dimension-pill strong {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.08;
  font-weight: 500;
}

.dimension-pill-copy {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.dimension-pill em {
  color: var(--muted);
  font-style: normal;
}

.home-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-actions {
  align-items: stretch;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.home-actions .primary-button,
.home-actions .secondary-button {
  min-height: 56px;
}

.home-actions .primary-button {
  flex: 1 1 100%;
  font-size: 18px;
}

.home-actions .secondary-button {
  flex: 1 1 auto;
}

.primary-button {
  color: #be7284;
  border-color: rgba(217, 135, 152, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 252, 252, 0.98), rgba(250, 236, 239, 0.94)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(217, 135, 152, 0.18);
}

.secondary-button {
  color: var(--ink);
  border-color: rgba(176, 191, 171, 0.3);
  background:
    linear-gradient(180deg, rgba(253, 255, 252, 0.98), rgba(241, 247, 239, 0.9)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(143, 167, 140, 0.12);
}

.primary-button:disabled,
.secondary-button:disabled,
.option-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.primary-button:disabled:hover,
.primary-button:disabled:focus-visible,
.secondary-button:disabled:hover,
.secondary-button:disabled:focus-visible,
.option-button:disabled:hover,
.option-button:disabled:focus-visible {
  transform: none;
  box-shadow: none;
}

.notice-text {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.progress-row {
  padding: 16px 16px 14px;
  border: 1px solid rgba(199, 211, 193, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 252, 250, 0.62), rgba(243, 248, 241, 0.58));
}

.progress-text {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(227, 233, 223, 0.8);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--accent));
  box-shadow: 0 0 12px rgba(216, 190, 118, 0.2);
}

.question-sheet,
.result-section,
.summary-card,
.note-card,
.role-card,
.score-item,
.match-item,
.result-summary-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 251, 0.7), rgba(244, 248, 242, 0.62)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(182, 169, 156, 0.06);
}

.question-sheet {
  padding: 20px 20px 18px;
}

#quizView .section-inner {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#resultView .section-inner {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#quizView .simple-sheet {
  gap: 10px;
}

#quizView .progress-row {
  padding: 6px 2px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#quizView .question-sheet {
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.question-sheet-head {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(199, 211, 193, 0.38);
}

.question-sheet-body {
  margin-bottom: 20px;
}

#quizTitle {
  display: none;
}

#quizView .eyebrow,
#quizView .question-sheet-head,
#quizView .notice-text {
  display: none;
}

.module-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(143, 167, 140, 0.28);
  border-radius: 999px;
  color: var(--sage-deep);
  background: linear-gradient(135deg, rgba(239, 247, 236, 0.88), rgba(255, 248, 245, 0.72));
  font-weight: 500;
}

.question-text {
  margin-bottom: 0;
  max-width: 16em;
  font-size: clamp(26px, 3.8vw, 34px);
  line-height: 1.68;
  text-wrap: pretty;
}

.options-list {
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
}

.option-button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 46px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 251, 0.82), rgba(246, 249, 244, 0.72)),
    rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(184, 200, 178, 0.48);
  box-shadow: 0 12px 24px rgba(184, 200, 178, 0.12);
}

.option-button.is-selected {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(251, 238, 242, 0.84), rgba(239, 247, 236, 0.88)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(217, 135, 152, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#quizView .button-row {
  width: min(100%, 760px);
  padding-top: 6px;
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(241, 247, 239, 0.82);
  color: var(--sage-deep);
  font-weight: 500;
  font-size: 17px;
}

.option-button.is-selected .option-key {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffafb;
}

.option-copy {
  display: grid;
  gap: 2px;
}

.option-copy-label {
  display: none;
}

.option-copy-text {
  font-size: 17px;
  line-height: 1.72;
  text-wrap: pretty;
}

.result-layout {
  display: grid;
  gap: 16px;
}

#resultView .result-layout {
  width: min(860px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.result-section {
  padding: 18px 18px 16px;
}

#resultView .result-section,
#resultView .summary-card,
#resultView .note-card,
#resultView .role-card,
#resultView .score-item,
#resultView .match-item,
#resultView .result-summary-card {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#resultView .meta-list span,
#resultView .tag-list span,
#resultView .role-tags span,
#resultView .mini-tags span,
#resultView .dimension-pill,
#resultView .score-tier,
#resultView .match-similarity {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#resultView .dimension-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

#resultView .dimension-pill-copy,
#resultView .summary-label,
#resultView .match-kicker,
#resultView .score-item-kicker,
#resultView .result-kicker {
  color: var(--muted);
}

#resultView .meta-list,
#resultView .tag-list,
#resultView .role-tags,
#resultView .mini-tags,
#resultView .dimension-pills {
  gap: 6px 14px;
}

#resultView .result-summary-score,
#resultView .match-similarity,
#resultView .score-tier {
  color: var(--ink);
}

#resultView .meta-list,
#resultView .tag-list,
#resultView .dimension-pills {
  justify-content: center;
}

#resultView .result-summary-card {
  padding: 0;
}

#resultView .result-summary-copy {
  color: var(--muted);
  font-size: 14px;
}

#resultView .result-summary-score {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
}

#resultView .dimension-pill strong {
  font-size: 16px;
}

#resultView .dimension-pill em,
#resultView .dimension-pill-copy {
  color: var(--muted);
  font-size: 13px;
}

#resultView .meta-list span,
#resultView .tag-list span,
#resultView .role-tags span,
#resultView .mini-tags span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

#resultView .tag-list span::before {
  content: "· ";
}

#resultView .role-tags span::before,
#resultView .mini-tags span::before {
  content: "— ";
}

#resultView .score-tier::before,
#resultView .match-similarity::before {
  content: "· ";
}

.result-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 200, 178, 0.3), rgba(216, 190, 118, 0.26), rgba(228, 164, 178, 0.22), transparent);
}

#primaryResult {
  padding: 26px 24px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(248, 219, 225, 0.22), transparent 24%),
    radial-gradient(circle at 16% 72%, rgba(216, 190, 118, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(255, 248, 249, 0.86), rgba(247, 251, 246, 0.76));
}

#resultView #primaryResult {
  padding: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(199, 211, 193, 0.38);
}

#resultView .result-section h3::after {
  display: none;
}

#resultView .result-section h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: start;
}

.result-hero-main {
  min-width: 0;
}

.result-hero-side {
  display: grid;
  gap: 12px;
}

.result-kicker,
.summary-label {
  margin-bottom: 8px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#resultView .result-kicker,
#resultView .summary-label {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.result-verdict {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.04em;
}

#resultView .result-verdict {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.result-hero-main h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.16;
}

#resultView .result-hero-main h2 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.14;
}

.interpretation-stack,
.score-list,
.match-list {
  display: grid;
  gap: 12px;
}

#resultView .interpretation-stack,
#resultView .score-list,
#resultView .match-list {
  gap: 6px;
}

#resultView .result-hero {
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

#resultView .result-hero-side {
  width: 100%;
  gap: 6px;
  justify-items: center;
}

.summary-card,
.note-card,
.role-card,
.score-item,
.match-item,
.result-summary-card {
  padding: 16px;
}

.summary-card-accent {
  background:
    radial-gradient(circle at 84% 18%, rgba(216, 190, 118, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(255, 243, 246, 0.8), rgba(246, 251, 245, 0.72));
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.78;
}

.plain-list li + li {
  margin-top: 8px;
}

.role-card {
  display: grid;
  gap: 12px;
}

.role-copy,
.summary-card h4,
.summary-card p:last-child,
.result-summary-copy {
  margin-bottom: 0;
}

.score-item-top,
.match-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.score-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  font-weight: 500;
}

.score-tier {
  background: rgba(255, 247, 233, 0.8);
}

.score-copy {
  margin: 8px 0 0;
  font-size: 14px;
}

.match-kicker,
.score-item-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.match-similarity {
  min-width: 66px;
  padding: 8px 12px;
  border: 1px solid rgba(217, 135, 152, 0.24);
  border-radius: 999px;
  background: rgba(255, 246, 248, 0.72);
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

.match-reason {
  margin: 10px 0 12px;
}

.match-item p {
  margin-bottom: 0;
}

#resultView .result-section p,
#resultView .plain-list,
#resultView .score-copy,
#resultView .match-reason {
  max-width: 38em;
}

#resultView .lead-paragraph,
#resultView .role-copy,
#resultView .section-copy,
#resultView .match-reason,
#resultView .score-copy,
#resultView .plain-list {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

#resultView .section-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

#resultView #resultDescription .interpretation-stack,
#resultView #resultStrengths .plain-list,
#resultView #resultBlindSpots .plain-list,
#resultView #resultBestRole .role-card,
#resultView #resultBiography .lead-paragraph,
#resultView #scoreSummary .score-list,
#resultView #secondaryMatches .match-list {
  margin-top: 8px;
}

#resultView #resultDescription,
#resultView #resultBiography,
#resultView #resultStrengths,
#resultView #resultBlindSpots,
#resultView #resultBestRole,
#resultView #scoreSummary,
#resultView #secondaryMatches {
  border-top: 1px solid rgba(199, 211, 193, 0.32);
  padding-top: 14px;
}

#resultView .score-item-top,
#resultView .match-item-top {
  gap: 8px;
}

#resultView .score-item-kicker,
#resultView .match-kicker {
  display: none;
}

#resultView .score-label,
#resultView .match-item h4 {
  font-size: 18px;
  font-weight: 500;
}

#resultView .score-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

#resultView .match-item p,
#resultView .match-item h4 {
  margin-bottom: 0;
}

.loading-sheet {
  justify-items: center;
  text-align: center;
}

.loading-sheet .intro-text {
  max-width: 22em;
  text-align: center;
}

.result-summary-card {
  background:
    radial-gradient(circle at 14% 24%, rgba(216, 190, 118, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(255, 243, 246, 0.82), rgba(246, 251, 245, 0.72));
}

.result-summary-score {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.detail-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(199, 211, 193, 0.36);
}

#resultView .detail-block {
  margin-top: 8px;
  padding-top: 8px;
}

.detail-block summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  list-style: none;
}

.detail-block summary::-webkit-details-marker {
  display: none;
}

.detail-block summary::before {
  content: "展开";
  margin-right: 8px;
  color: var(--muted);
}

.detail-block[open] summary::before {
  content: "收起";
}

.detail-block p {
  margin-top: 12px;
}

.loading-indicator {
  display: inline-flex;
  gap: 10px;
}

.loading-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--gold), var(--accent));
  animation: pulse 1s ease-in-out infinite;
}

.loading-indicator span:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-indicator span:nth-child(3) {
  animation-delay: 0.24s;
}

@media (min-width: 900px) {
  .result-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  #primaryResult,
  #resultDescription,
  #resultBiography,
  #scoreSummary,
  #secondaryMatches,
  .button-row,
  #copyStatus {
    grid-column: 1 / -1;
  }

  #resultStrengths,
  #resultBlindSpots,
  #resultBestRole {
    grid-column: span 4;
  }

  .score-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .view {
    padding: 14px 10px 18px;
  }

  .section-inner {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .home-actions,
  .button-row {
    display: grid;
    gap: 10px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.12;
  }

  h2 {
    margin-bottom: 10px;
    font-size: clamp(24px, 8vw, 32px);
  }

  .simple-sheet {
    gap: 14px;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .intro-text {
    max-width: min(100%, 18em);
    font-size: 16px;
    line-height: 1.92;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .question-sheet {
    padding: 16px 14px 14px;
  }

  #quizView .section-inner {
    padding: 6px 2px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  #resultView .section-inner {
    padding: 8px 2px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  #quizView .simple-sheet {
    gap: 8px;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .dimension-pill {
    padding: 12px 14px 13px;
    border-radius: 20px;
  }

  .dimension-pill strong {
    font-size: 17px;
  }

  .home-actions .primary-button,
  .home-actions .secondary-button {
    min-height: 54px;
  }

  .home-footnote {
    max-width: min(100%, 18em);
    font-size: 13px;
    line-height: 1.8;
  }

  .home-sheet > * {
    width: min(100%, 680px);
  }

  .home-sheet .eyebrow {
    text-align: center;
  }

  .home-sheet h1 {
    text-align: center;
  }

  .home-sheet .intro-text,
  .home-sheet .home-footnote {
    margin-inline: auto;
  }

  .progress-row {
    padding: 12px 12px 10px;
    border-radius: 16px;
  }

  #quizView .progress-row {
    padding: 4px 2px 0;
    border-radius: 0;
  }

  .progress-text {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .progress-track {
    height: 8px;
  }

  .question-sheet-head {
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  #quizView .question-sheet {
    padding: 4px 0 0;
  }

  #quizView .question-sheet-head {
    margin-bottom: 10px;
  }

  .module-label {
    margin-bottom: 6px;
  }

  .module-copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .question-text {
    max-width: none;
    font-size: 21px;
    line-height: 1.78;
  }

  .options-list {
    gap: 10px;
  }

  .option-button {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 13px 14px;
    border-radius: 14px;
  }

  .option-key {
    min-height: 40px;
    font-size: 16px;
  }

  .option-copy-text {
    font-size: 16px;
    line-height: 1.72;
  }

  .result-section {
    padding: 16px 15px 14px;
  }

  #primaryResult {
    padding: 20px 18px 18px;
  }

  #resultView .result-layout {
    gap: 12px;
  }

  #resultView .result-section,
  #resultView #primaryResult,
  #resultView .summary-card,
  #resultView .note-card,
  #resultView .role-card,
  #resultView .score-item,
  #resultView .match-item,
  #resultView .result-summary-card {
    padding: 4px 0;
  }

  #resultView .meta-list,
  #resultView .tag-list,
  #resultView .role-tags,
  #resultView .mini-tags,
  #resultView .dimension-pills {
    gap: 6px 10px;
  }

  #resultView .result-section h3 {
    font-size: 21px;
  }

  #resultView .result-hero-main h2 {
    font-size: clamp(28px, 10vw, 40px);
  }

  #resultView .result-subtitle {
    font-size: 16px;
  }

  #resultView .lead-paragraph,
  #resultView .role-copy,
  #resultView .section-copy,
  #resultView .match-reason,
  #resultView .score-copy,
  #resultView .plain-list {
    font-size: 15px;
    line-height: 1.86;
  }
}

@keyframes sectionSettle {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
