:root {
  /* ── 色彩系统（≤3 主色 + 功能扩展）────────────────── */
  --color-ink: #1a2528;          /* 主色1：墨色 — 正文、标题 */
  --color-gold: #b9944f;         /* 主色2：古金 — 强调、按钮、装饰 */
  --color-parchment: #f5efe4;    /* 主色3：羊皮纸 — 页面底色 */
  --color-paper: #fbf8f1;        /* 纸白 — 卡片、面板 */
  --color-teal: #1d5a57;         /* 功能色：青绿 — 链接、辅助UI */
  --color-teal-soft: #e2ede8;    /* 青绿浅底 */
  --color-gold-soft: #f7f0df;    /* 古金浅底 */
  --color-muted: #8a8578;        /* 弱化文字 */
  --color-line: rgba(26, 37, 40, 0.1);      /* 分割线 */
  --color-line-strong: rgba(26, 37, 40, 0.18);

  /* ── 排版系统（1.333 比例）────────────────────────── */
  --text-base: 1rem;             /* 16px */
  --text-sm: 0.875rem;           /* 14px */
  --text-xs: 0.75rem;            /* 12px */
  --text-md: 1.333rem;           /* 21.3px */
  --text-lg: 1.777rem;           /* 28.4px */
  --text-xl: 2.369rem;           /* 37.9px */
  --text-2xl: 3.157rem;          /* 50.5px */
  --text-display: clamp(3.157rem, 7vw, 4.209rem); /* 50-67px */

  --leading-body: 1.55;          /* 正文行高 */
  --leading-heading: 1.15;       /* 标题行高 */
  --leading-tight: 1.05;

  --weight-regular: 400;
  --weight-medium: 550;
  --weight-bold: 700;
  --weight-black: 900;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", -apple-system, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", -apple-system, sans-serif;

  --measure: 38rem;              /* ~65 字符/行 */

  /* ── 间距系统（4px 基座）─────────────────────────── */
  --space-1: 0.25rem;  /*  4px */
  --space-2: 0.5rem;   /*  8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */

  /* ── 阴影 / 高度 ──────────────────────────────────── */
  --elevation-1: 0 1px 3px rgba(26, 37, 40, 0.06);
  --elevation-2: 0 4px 16px rgba(26, 37, 40, 0.08);
  --elevation-3: 0 12px 40px rgba(26, 37, 40, 0.12);
  --elevation-4: 0 24px 64px rgba(26, 37, 40, 0.16);

  /* ── 圆角 ────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ── 过渡 ────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;

  /* ── 旧变量兼容映射 ────────────────────────────────── */
  --page: var(--color-parchment);
  --paper: var(--color-paper);
  --paper-soft: #fcfbf4;
  --cloud: #f7f4ee;
  --ink: var(--color-ink);
  --teal: var(--color-teal);
  --teal-deep: #0d3334;
  --teal-soft: var(--color-teal-soft);
  --green: var(--color-teal);
  --green-deep: var(--teal-deep);
  --green-soft: var(--color-teal-soft);
  --blue-aura: #9fbcc7;
  --wax-paper: #f3df9f;
  --amber-haze: #c8903e;
  --electric-fuchsia: #c947a9;
  --jelly-mint: #bfe6d1;
  --plaster: #eac8bd;
  --muted: var(--color-muted);
  --line: var(--color-line);
  --line-strong: var(--color-line-strong);
  --gold: var(--color-gold);
  --clay: #bd7f63;
  --sage: #78947d;
  --blue: #7f9faf;
  --shadow: var(--elevation-3);
  --shadow-card: var(--elevation-2);
  --body-font: var(--font-body);
  --display-font: var(--font-display);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse at 14% 0%, rgba(185, 148, 79, 0.06), transparent 48%),
    radial-gradient(ellipse at 86% 12%, rgba(185, 148, 79, 0.04), transparent 44%),
    radial-gradient(ellipse at 50% 100%, rgba(29, 90, 87, 0.04), transparent 56%),
    var(--color-parchment);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
}

.background-layer {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.glow {
  filter: blur(60px);
  opacity: 0.35;
  position: absolute;
}

.glow-one {
  background: linear-gradient(105deg, rgba(185, 148, 79, 0), rgba(185, 148, 79, 0.1), rgba(185, 148, 79, 0));
  height: 420px;
  left: -10vw;
  top: 8vh;
  transform: rotate(-6deg);
  width: 120vw;
}

.glow-two {
  background: linear-gradient(105deg, rgba(29, 90, 87, 0), rgba(29, 90, 87, 0.06), rgba(185, 148, 79, 0.06));
  height: 340px;
  left: -8vw;
  top: 52vh;
  transform: rotate(4deg);
  width: 114vw;
}

.grid-mask {
  background-image:
    linear-gradient(rgba(26, 37, 40, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 37, 40, 0.014) 1px, transparent 1px);
  background-size: 56px 56px;
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 88%);
  position: absolute;
}

/* 首页全屏深色星海：隐藏浅色网格光晕 */
body:has(.home-landing:not(.hidden)) .background-layer {
  display: none;
}

body:has(.home-landing:not(.hidden)) {
  background: #071416;
}

.page-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding: var(--space-6) var(--space-6) var(--space-16);
  position: relative;
  z-index: 1;
}

.panel {
  animation: rise-in 0.5s var(--ease-out) both;
  background: linear-gradient(135deg, rgba(251, 248, 241, 0.94), rgba(251, 248, 241, 0.99));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-2);
  margin-bottom: var(--space-6);
  overflow: hidden;
  padding: var(--space-8);
  position: relative;
}

.panel::before {
  background:
    linear-gradient(90deg, rgba(23, 79, 77, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(23, 79, 77, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  position: absolute;
}

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



.eyebrow {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  letter-spacing: 0.16em;
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
}

.question-title,
.result-name {
  font-family: var(--display-font);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}


.button-primary,
.button-secondary,
.option-button {
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.button-primary,
.button-secondary {
  min-height: 48px;
  padding: 13px 24px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
}

.button-primary {
  background: linear-gradient(135deg, #1a403c, var(--color-teal) 65%, #2a6a65);
  box-shadow: 0 4px 16px rgba(29, 90, 87, 0.25);
  color: var(--color-paper);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 90, 87, 0.35);
  background: linear-gradient(135deg, #1f4d48, #226b66 65%, #317a74);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(29, 90, 87, 0.3);
}

.button-secondary {
  background: rgba(251, 248, 241, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-line);
  color: var(--color-teal);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  color: var(--color-ink);
  background: rgba(251, 248, 241, 0.95);
  box-shadow: var(--elevation-1);
}

.button-secondary:active {
  transform: translateY(0);
}

/* 聚焦环 */
.button-primary:focus-visible,
.button-secondary:focus-visible,
.option-button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}


.hidden {
  display: none;
}


.leaderboard-list,
.history-list {
  display: grid;
  gap: 10px;
}

.leaderboard-item,
.history-item {
  align-items: center;
  background: rgba(23, 79, 77, 0.06);
  border: 1px solid rgba(23, 79, 77, 0.08);
  border-radius: 16px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  padding: 11px 12px;
  text-decoration: none;
}

.history-item {
  grid-template-columns: 1fr auto;
}

.rank-number {
  background: var(--teal-deep);
  border-radius: 999px;
  color: var(--paper);
  display: grid;
  font-size: 0.82rem;
  font-weight: 900;
  height: 30px;
  place-items: center;
  width: 30px;
}

.leaderboard-item strong,
.history-item strong {
  color: var(--teal-deep);
  display: block;
  font-weight: 900;
}

.leaderboard-item small,
.history-item small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: 2px;
}

.leaderboard-item b,
.history-item b {
  color: var(--teal);
}

.empty-note {
  color: var(--muted);
  display: block;
  line-height: 1.6;
  padding: 4px 0;
}

.quiz-view {
  padding: 0;
}

.quiz-stage {
  margin: 0 auto;
  max-width: var(--measure);
  width: 100%;
}

.quiz-header {
  display: grid;
  gap: var(--space-4);
  text-align: center;
  width: 100%;
}

.quiz-header__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  justify-content: space-between;
}

.quiz-step {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.question-title {
  color: var(--teal-deep);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: var(--leading-heading);
  margin: var(--space-2) 0;
}

.question-subtitle {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  margin: 0 auto;
  max-width: none;
  width: 100%;
}

.progress-track {
  background: rgba(26, 37, 40, 0.06);
  border-radius: var(--radius-pill);
  height: 5px;
  overflow: hidden;
}

.quiz-progress {
  margin-top: var(--space-2);
}

.progress-value {
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
  border-radius: inherit;
  height: 100%;
  transition: width 0.35s var(--ease-out);
  width: 0%;
}

.options-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.option-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(251, 248, 241, 0.9), rgba(245, 239, 228, 0.7));
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-1);
  color: var(--color-ink);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 2.25rem 1fr;
  line-height: 1.5;
  min-height: 0;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  width: 100%;
}

.option-button:hover {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(251, 248, 241, 1), rgba(245, 239, 228, 0.95));
  box-shadow: var(--elevation-2);
  transform: translateY(-1px);
}

.option-button strong,
.option-letter {
  align-items: center;
  background: rgba(26, 37, 40, 0.05);
  border-radius: var(--radius-pill);
  color: var(--color-teal);
  display: flex;
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  height: 2.25rem;
  justify-content: center;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
  width: 2rem;
}

.option-label {
  font-size: 0.88rem;
  line-height: 1.45;
}

.option-button:hover {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(251, 248, 241, 1), rgba(245, 239, 228, 0.95));
  box-shadow: var(--elevation-2);
  transform: translateY(-1px);
}

.option-button.selected {
  background: linear-gradient(135deg, var(--color-ink), #1d3d38 60%, #2a5a53);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(26, 37, 40, 0.2);
  color: var(--color-paper);
  transform: translateY(-1px);
}

.option-button.selected strong,
.option-button.selected .option-letter {
  background: rgba(251, 248, 241, 0.18);
  color: var(--color-gold);
  color: rgba(255, 248, 232, 0.92);
}

.quiz-footer {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.quiz-back {
  font-size: 0.86rem;
  min-height: 38px;
  padding: 8px 16px;
}

.echo-board {
  display: none;
}

.echo-board:not(:empty) {
  display: block;
  animation: fade-in 0.3s var(--ease-out) both;
}

.echo-title {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  margin: 0 0 10px;
}

.echo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.echo-chip {
  background: rgba(23, 79, 77, 0.09);
  border: 1px solid rgba(23, 79, 77, 0.08);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: var(--space-2) var(--space-3);
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.result-view {
  overflow-x: clip;
  position: relative;
}

.result-view.panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 234, 0.94)),
    #faf6ee;
}

.result-marquee-canvas {
  display: block;
  height: auto;
  left: 50%;
  max-height: min(72vh, 760px);
  pointer-events: none;
  position: absolute;
  top: 38%;
  transform: translate(-50%, -50%);
  width: min(132%, 1220px);
  z-index: 0;
}

.result-marquee-veil {
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255, 255, 255, 0.52), transparent 56%),
    radial-gradient(ellipse at 50% 88%, rgba(250, 244, 234, 0.68), rgba(250, 244, 234, 0.84) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(250, 244, 234, 0.42));
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.result-view.hidden-result {
  background:
    linear-gradient(135deg, rgba(201, 71, 169, 0.16), transparent 32%),
    radial-gradient(circle at 50% 12%, rgba(243, 223, 159, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(32, 43, 44, 0.9), rgba(48, 57, 53, 0.94));
  border-color: rgba(184, 155, 98, 0.42);
  color: var(--paper);
}

.hidden-result .result-marquee-veil {
  background:
    radial-gradient(ellipse at 50% 14%, rgba(32, 43, 44, 0.28), transparent 56%),
    radial-gradient(ellipse at 50% 88%, rgba(32, 43, 44, 0.82), rgba(32, 43, 44, 0.96) 70%),
    linear-gradient(180deg, rgba(32, 43, 44, 0.2), rgba(32, 43, 44, 0.78));
}

.result-topline {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.result-anchor-nav {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  background: rgba(255, 248, 232, 0.78);
  border: 1px solid rgba(23, 79, 77, 0.12);
  border-radius: var(--radius-pill);
  box-shadow: var(--elevation-1);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0 6px;
  padding: 5px;
  position: sticky;
  top: 10px;
  z-index: 4;
}

.hidden-result .result-anchor-nav {
  background: rgba(32, 43, 44, 0.9);
  border-color: rgba(185, 150, 79, 0.35);
}

.result-anchor-nav__link {
  border-radius: 999px;
  color: var(--muted);
  flex: 1 1 0;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.result-anchor-nav__link:hover,
.result-anchor-nav__link:focus-visible {
  background: rgba(23, 79, 77, 0.08);
  color: var(--teal);
  outline: none;
}

.hidden-result .result-anchor-nav__link {
  color: rgba(248, 239, 215, 0.72);
}

.hidden-result .result-anchor-nav__link:hover,
.hidden-result .result-anchor-nav__link:focus-visible {
  background: rgba(185, 150, 79, 0.14);
  color: var(--paper);
}

.score-badge {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  border-radius: var(--radius-pill);
  box-shadow: var(--elevation-2);
  color: var(--paper);
  display: inline-flex;
  font-size: 1rem;
  font-weight: var(--weight-black);
  gap: 6px;
  padding: 10px 18px;
}

.hidden-result .score-badge {
  background: linear-gradient(135deg, var(--wax-paper), #ead8a5);
  color: #292410;
}

.result-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(180px, 280px) minmax(0, var(--measure));
  justify-content: center;
  margin-top: 14px;
}

.result-portrait {
  display: grid;
  place-items: center;
}

.result-name {
  color: var(--teal-deep);
  font-family: var(--display-font);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.hidden-result .result-name,
.hidden-result .eyebrow {
  color: var(--paper);
}

.result-title {
  color: var(--color-teal);
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.03em;
  margin: 12px 0 8px;
}

.result-section-label {
  color: var(--teal-deep);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}

.result-summary {
  margin-top: 0;
  max-width: var(--measure);
  white-space: pre-wrap;
}

.result-overview-intro {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 10px;
}

.life-story-intro {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 12px;
}

.life-story-legacy {
  white-space: pre-wrap;
}

.hidden-result .result-title {
  color: var(--wax-paper);
}

.hidden-result .result-description,
.hidden-result .result-summary,
.hidden-result .share-copy,
.hidden-result .trait-desc,
.hidden-result .choice-question,
.hidden-result .runner-up-score {
  color: rgba(248, 239, 215, 0.76);
}

.result-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}

.life-story-card {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.life-story-card .eyebrow {
  margin-bottom: 6px;
}

.life-story-card h3 {
  margin-bottom: 0;
}

.life-story-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  margin: 0;
}

.life-story-card .legacy-note {
  background: rgba(23, 79, 77, 0.07);
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: 16px;
  color: var(--teal-deep);
  font-weight: 800;
  padding: 14px 16px;
}

.hidden-result .life-story-card p {
  color: rgba(248, 239, 215, 0.78);
}

.hidden-result .life-story-card .legacy-note {
  background: rgba(255, 248, 232, 0.1);
  border-color: rgba(255, 248, 232, 0.18);
  color: var(--wax-paper);
}

.result-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 232, 0.62));
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-1);
  padding: 24px;
  position: relative;
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.result-card:hover {
  box-shadow: var(--elevation-2);
}

.result-card::before {
  background: linear-gradient(90deg, var(--teal), var(--blue-aura), var(--wax-paper), var(--electric-fuchsia));
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 20px;
  opacity: 0.68;
  position: absolute;
  right: 20px;
  top: 12px;
}

.hidden-result .result-card {
  background: rgba(255, 248, 232, 0.09);
  border-color: rgba(255, 248, 232, 0.18);
}

.result-card h3,
.share-section h4 {
  color: var(--teal-deep);
  font-family: var(--display-font);
  font-size: var(--text-lg);
  line-height: var(--leading-heading);
  margin: 0 0 16px;
}

.hidden-result .result-card h3,
.hidden-result .share-section h4 {
  color: var(--paper);
}

.trait-item + .trait-item,
.choice-item + .choice-item {
  margin-top: 16px;
}

.trait-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.trait-head span:first-child {
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
}

.trait-head span:last-child {
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
}

.hidden-result .trait-head span:last-child {
  color: rgba(248, 239, 215, 0.68);
}

.trait-bar {
  background: rgba(23, 79, 77, 0.08);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}

.hidden-result .trait-bar {
  background: rgba(248, 239, 215, 0.16);
}

.trait-fill {
  background: linear-gradient(90deg, var(--color-gold), #d4ad6a, var(--color-gold));
  border-radius: inherit;
  height: 100%;
  transition: width var(--duration-slow) var(--ease-out);
}

.hidden-result .trait-fill {
  background: linear-gradient(90deg, #e1c57d, #94a890, #d7b56d);
}

.trait-desc,
.choice-question,
.runner-up-score {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.choice-question {
  margin-bottom: 4px;
}

.choice-answer {
  font-weight: 850;
}

.full-width {
  margin-top: 16px;
}

#runnerUpsCard {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.runner-ups {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-inline: auto;
  max-width: 960px;
  width: 100%;
}

.runner-ups-card-head {
  text-align: center;
  width: 100%;
}

.runner-ups .runner-up + .runner-up {
  margin-top: 0;
}

.runner-up {
  align-items: center;
  background: rgba(23, 79, 77, 0.07);
  border: 1px solid rgba(23, 79, 77, 0.08);
  border-radius: 16px;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 0 1 220px;
  gap: 12px;
  max-width: 280px;
  padding: 14px 16px;
  position: relative;
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  width: min(100%, 280px);
}

.future-advice-card {
  border: 1px solid rgba(23, 79, 77, 0.1);
  display: grid;
  gap: 14px;
}

.future-advice-hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 8px 0 0;
}

.future-advice-text {
  color: var(--teal-deep);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 0;
  white-space: pre-wrap;
}

.hidden-result .future-advice-text {
  color: rgba(248, 239, 215, 0.88);
}

.match-radar-card {
  --radar-user: #5b949c;
  --radar-user-deep: #4a7f87;
  --radar-user-soft: #8eb5bc;
  --radar-persona: #b8898e;
  --radar-persona-deep: #936b70;
  --radar-persona-soft: #d9b8bc;
  --radar-telos: #c4a882;
  --radar-telos-deep: #a08862;
  --radar-psy: #7089a0;
  --radar-situation: #4d7278;
  --radar-ink: #2f4550;
  --radar-ink-soft: #5a6e78;
  --radar-line: rgba(74, 127, 135, 0.2);
  --radar-line-soft: rgba(74, 127, 135, 0.12);
  --radar-surface: #faf9f7;
  --radar-surface-soft: #f5f3ef;
  background: linear-gradient(180deg, #fcfbfa 0%, #f6f4f1 100%);
  border: 1px solid rgba(74, 127, 135, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-1);
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.match-radar-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
}

.match-radar-head__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.match-radar-head__copy h3 {
  margin-bottom: 8px;
}

.match-radar-hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
  max-width: 52ch;
}

.match-radar-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.match-radar-weight-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--radar-line-soft);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(47, 69, 80, 0.05);
  color: var(--radar-ink);
  display: inline-flex;
  font-size: 0.82rem;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  position: relative;
  white-space: nowrap;
}

.match-radar-weight-chip::before {
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.match-radar-weight-chip--teal::before {
  background: var(--radar-user);
  box-shadow: 0 0 0 3px rgba(91, 148, 156, 0.16);
}

.match-radar-weight-chip--gold::before {
  background: var(--radar-telos);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.16);
}

.match-radar-weight-chip--violet::before {
  background: var(--radar-psy);
  box-shadow: 0 0 0 3px rgba(112, 137, 160, 0.14);
}

.match-radar-weight-chip strong {
  font-weight: 700;
}

.match-radar-weight-chip em {
  background: rgba(74, 127, 135, 0.1);
  border-radius: 999px;
  color: var(--radar-ink);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  min-width: 2.8em;
  padding: 2px 8px;
  text-align: center;
}

.match-radar-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.match-radar-metric {
  background: #fff;
  border: 1px solid var(--radar-line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(47, 69, 80, 0.05);
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 14px 14px 12px;
  position: relative;
}

.match-radar-metric::before {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.match-radar-metric--teal::before {
  background: var(--radar-user-deep);
}

.match-radar-metric--gold::before {
  background: var(--radar-telos-deep);
}

.match-radar-metric--violet::before {
  background: var(--radar-psy);
}

.match-radar-metric--blue::before {
  background: var(--radar-situation);
}

.match-radar-metric__head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.match-radar-metric__label {
  color: var(--radar-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.match-radar-metric__value {
  color: var(--radar-ink);
  font-family: var(--display-font);
  font-size: 1.46rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.match-radar-metric__bar {
  background: rgba(74, 127, 135, 0.12);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.match-radar-metric__fill {
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.match-radar-metric--teal .match-radar-metric__fill {
  background: var(--radar-user);
}

.match-radar-metric--gold .match-radar-metric__fill {
  background: var(--radar-telos);
}

.match-radar-metric--violet .match-radar-metric__fill {
  background: var(--radar-psy);
}

.match-radar-metric--blue .match-radar-metric__fill {
  background: var(--radar-situation);
}

.match-radar-charts {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.22fr) minmax(220px, 0.78fr);
}

.match-radar-compare-section {
  background:
    linear-gradient(135deg, rgba(91, 148, 156, 0.06) 0%, #fff 46%, rgba(184, 137, 142, 0.06) 100%);
  border: 1px solid var(--radar-line-soft);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(47, 69, 80, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px 12px;
  position: relative;
}

.match-radar-compare-section::after {
  background: linear-gradient(90deg, var(--radar-user-deep), var(--radar-user-soft) 38%, var(--radar-persona-soft) 62%, var(--radar-persona-deep));
  border-radius: 18px 18px 0 0;
  content: "";
  height: 3px;
  left: 14px;
  position: absolute;
  right: 14px;
  top: 0;
}

.match-radar-compare-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  padding-top: 2px;
}

.match-radar-compare-head h4 {
  color: var(--radar-ink);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.match-radar-compare-head__sub {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 2px 0 0;
}

.match-radar-compare-head__sub strong {
  color: var(--radar-ink);
  font-weight: 800;
}

.match-radar-canvas--compare {
  margin-inline: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.match-radar-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  gap: 10px;
  justify-content: center;
  margin: 52px 0;
  text-align: center;
}

.match-radar-empty__dot {
  animation: match-radar-pulse 1.2s ease-in-out infinite;
  background: linear-gradient(145deg, var(--radar-user-deep), var(--radar-user-soft));
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(143, 164, 184, 0.14);
  display: inline-block;
  height: 8px;
  width: 8px;
}

@keyframes match-radar-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.match-radar-svg {
  display: block;
  height: auto;
  shape-rendering: geometricPrecision;
  text-rendering: optimizeLegibility;
  width: 100%;
}

.match-radar-svg text {
  font-family: var(--body-font);
}

.match-radar-bg-disc {
  fill: #fff;
}

.match-radar-bg-ring {
  stroke: rgba(61, 114, 121, 0.22);
  stroke-width: 1.2;
}

.match-radar-ring-band {
  fill: rgba(74, 127, 135, 0.045);
  stroke: none;
}

.match-radar-svg polygon.match-radar-grid {
  fill: none;
  shape-rendering: geometricPrecision;
  stroke: rgba(61, 114, 121, 0.22);
  stroke-width: 1;
}

.match-radar-grid--outer {
  stroke: rgba(61, 114, 121, 0.42);
  stroke-width: 1.4;
}

.match-radar-axis-line {
  stroke: rgba(61, 114, 121, 0.2);
  stroke-width: 1;
}

.match-radar-tick {
  stroke: rgba(61, 114, 121, 0.34);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.match-radar-center {
  fill: rgba(74, 127, 135, 0.35);
}

.match-radar-center-core {
  fill: #3d7279;
}

.match-radar-scale-bg {
  fill: #fff;
  stroke: rgba(61, 114, 121, 0.16);
  stroke-width: 0.6;
}

.match-radar-scale {
  fill: #3d525c;
  font-size: 10px;
  font-weight: 800;
  text-anchor: middle;
}

.match-radar-label-bg {
  fill: #fff;
  stroke: rgba(61, 114, 121, 0.22);
  stroke-width: 1;
}

.match-radar-label {
  fill: #24343c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-anchor: middle;
}

.match-radar-series--user {
  stroke: #3d7279;
}

.match-radar-series--persona {
  stroke: #7f5559;
}

.match-radar-node-ring {
  fill: #fff;
  stroke-width: 1.2;
}

.match-radar-node-ring--user {
  stroke: rgba(61, 114, 121, 0.35);
}

.match-radar-node-ring--persona {
  stroke: rgba(127, 85, 89, 0.35);
}

.match-radar-node {
  fill: #fff;
  stroke-width: 2.4;
}

.match-radar-node-core {
  pointer-events: none;
}

.match-radar-legend {
  background: transparent;
  border: none;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.match-radar-legend-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--radar-line-soft);
  border-radius: 999px;
  color: var(--radar-ink);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 7px;
  padding: 4px 10px 4px 8px;
}

.match-radar-legend-item::before {
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
  content: "";
  display: inline-block;
  height: 11px;
  width: 11px;
}

.match-radar-legend-item--user::before {
  background: linear-gradient(145deg, var(--radar-user-deep), var(--radar-user-soft));
}

.match-radar-legend-item--persona::before {
  background: linear-gradient(145deg, var(--radar-persona-deep), var(--radar-persona-soft));
}

.match-radar-axis-legend {
  background: #fff;
  border: 1px solid var(--radar-line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(47, 69, 80, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 11px 12px 10px;
}

.match-radar-axis-legend__title {
  color: var(--radar-ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.match-radar-axis-legend__list {
  display: grid;
  flex: 1;
  gap: 5px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  min-height: 0;
  padding: 0;
}

.match-radar-axis-legend__item {
  align-items: flex-start;
  background: rgba(74, 127, 135, 0.04);
  border-radius: 8px;
  display: flex;
  gap: 7px;
  padding: 5px 7px;
}

.match-radar-axis-legend__index {
  align-items: center;
  background: #f2f7f5;
  border: 1px solid var(--radar-line-soft);
  border-radius: 8px;
  color: var(--radar-ink);
  display: grid;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 800;
  height: 20px;
  place-items: center;
  width: 20px;
}

.match-radar-axis-legend__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.match-radar-axis-legend__name {
  color: var(--radar-ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.match-radar-axis-legend__desc {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.38;
}

.hidden-result .match-radar-card {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 248, 232, 0.06), transparent 42%),
    rgba(255, 248, 232, 0.03);
}

.hidden-result .match-radar-compare-section {
  background: rgba(255, 248, 232, 0.06);
  border-color: rgba(255, 248, 232, 0.14);
  box-shadow: none;
}

.hidden-result .match-radar-compare-head h4,
.hidden-result .match-radar-compare-head__sub strong,
.hidden-result .match-radar-metric__value,
.hidden-result .match-radar-axis-legend__title,
.hidden-result .match-radar-axis-legend__name,
.hidden-result .match-radar-legend-item,
.hidden-result .match-radar-axis-legend__index {
  color: var(--paper);
}

.hidden-result .match-radar-hint,
.hidden-result .match-radar-compare-head__sub,
.hidden-result .match-radar-metric__label,
.hidden-result .match-radar-axis-legend__desc,
.hidden-result .match-radar-empty {
  color: rgba(248, 239, 215, 0.72);
}

.hidden-result .match-radar-weight-chip,
.hidden-result .match-radar-metric,
.hidden-result .match-radar-legend,
.hidden-result .match-radar-axis-legend {
  background: rgba(255, 248, 232, 0.06);
  border-color: rgba(255, 248, 232, 0.14);
}

.hidden-result .match-radar-label {
  fill: rgba(248, 239, 215, 0.9);
}

.hidden-result .match-radar-label-bg {
  fill: rgba(32, 43, 44, 0.55);
  stroke: rgba(255, 248, 232, 0.12);
}

.hidden-result .match-radar-grid--outer,
.hidden-result .match-radar-axis-line,
.hidden-result .match-radar-scale {
  stroke: rgba(255, 248, 232, 0.16);
}

.hidden-result .match-radar-scale {
  fill: rgba(248, 239, 215, 0.45);
}

@media (min-width: 1040px) {
  .match-radar-axis-legend__list {
    gap: 5px 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .match-radar-charts {
    grid-template-columns: 1fr;
  }

  .match-radar-head {
    flex-direction: column;
  }

  .match-radar-weights {
    justify-content: flex-start;
  }

  .match-radar-axis-legend__list {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-hero-grid,
  .character-card {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .result-hero-grid {
    gap: 10px;
    grid-template-columns: 1fr;
    justify-items: stretch;
    margin-top: 8px;
  }

  .result-portrait {
    justify-items: center;
    order: 0;
  }

  .result-hero-grid > div:last-child {
    order: 1;
    width: 100%;
  }

  .result-name {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    text-align: center;
  }

  .result-title {
    margin: 6px 0 4px;
    text-align: center;
  }

  .result-section-label {
    margin: 10px 0 6px;
  }

  .result-overview-intro,
  .result-summary,
  .result-description {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .portrait-result {
    height: 196px;
    width: 196px;
  }

  .result-card.match-radar-card {
    gap: 4px;
    padding: 12px 12px 10px;
  }

  .match-radar-head {
    gap: 2px;
  }

  .match-radar-head__copy {
    flex-basis: auto;
  }

  .match-radar-head .eyebrow {
    margin-bottom: 4px;
  }

  .match-radar-head__copy h3 {
    margin-bottom: 2px;
  }

  .match-radar-hint {
    font-size: 0.78rem;
    line-height: 1.32;
    margin: 0;
    max-width: none;
  }

  .match-radar-weights {
    display: none;
  }

  .match-radar-metrics {
    gap: 6px;
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .match-radar-metric {
    gap: 6px;
    padding: 10px 10px 8px;
  }

  .match-radar-charts {
    gap: 8px;
  }

  .match-radar-compare-section {
    gap: 2px;
    padding: 8px 8px 6px;
  }

  .match-radar-compare-head {
    gap: 4px;
    margin-bottom: 0;
  }

  .match-radar-compare-head h4 {
    font-size: 0.92rem;
    margin: 0;
  }

  .match-radar-compare-head__sub {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .match-radar-legend {
    gap: 6px;
    padding: 4px 0 2px;
  }

  .match-radar-axis-legend {
    padding: 8px 10px;
  }

  .match-radar-axis-legend__title {
    margin-bottom: 6px;
  }

  .match-radar-axis-legend__list {
    gap: 4px;
  }

  .match-radar-axis-legend__desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .character-card__experience {
    font-size: 0.84rem;
    line-height: 1.55;
    padding: 12px;
  }

  .result-marquee-canvas {
    max-height: min(22vh, 168px);
    top: 9%;
    width: min(90%, 320px);
  }
}

@media (max-width: 520px) {
  .match-radar-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .match-radar-axis-legend__list {
    grid-template-columns: 1fr;
  }

  .match-radar-canvas--compare {
    width: 100%;
  }

  .match-radar-label {
    font-size: 9px;
  }
}

.runner-up-thumb {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 79, 77, 0.12);
  border-radius: 12px;
  display: grid;
  flex: 0 0 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  width: 52px;
}

.runner-up-thumb__img {
  border-radius: 12px;
  filter: saturate(0.9) contrast(1.03) sepia(0.08);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.runner-up-thumb__initial {
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 900;
}

.runner-up-body {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.runner-up:hover {
  background: rgba(23, 79, 77, 0.11);
  border-color: rgba(23, 79, 77, 0.2);
  box-shadow: var(--elevation-1);
  transform: translateY(-2px);
}

.runner-up:active {
  transform: translateY(0);
}

.runner-up--active,
.runner-up--primary {
  background: rgba(23, 79, 77, 0.16);
  border-color: rgba(23, 79, 77, 0.4);
  box-shadow: var(--elevation-2);
}

.runner-up-rank {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(23, 79, 77, 0.72);
  margin-bottom: 8px;
}

.runner-up strong {
  display: block;
  font-size: 1.04rem;
  margin-bottom: 6px;
}


.persona-portrait {
  height: 164px;
  margin: 0 auto;
  position: relative;
  width: 174px;
  z-index: 1;
}

.persona-card-image {
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(16, 38, 37, 0.16);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.persona-card-image.image-failed {
  display: none;
}

.persona-card-image-real {
  filter: saturate(0.92) contrast(1.04);
  object-position: center 18%;
}

.portrait-has-photo .figure-shadow,
.portrait-has-photo .figure-hood,
.portrait-has-photo .figure-hair,
.portrait-has-photo .figure-head,
.portrait-has-photo .figure-body,
.portrait-has-photo .figure-hand,
.portrait-has-photo .figure-foot,
.portrait-has-photo .figure-motif {
  display: none;
}

.portrait-has-photo .persona-card-image-real {
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(16, 38, 37, 0.22);
  filter: saturate(0.96) contrast(1.06);
  object-fit: cover;
  object-position: center top;
  position: relative;
}

.persona-card-image-illustrated {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.35), rgba(255, 248, 232, 0)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 58%);
  border: 2px solid rgba(23, 79, 77, 0.16);
  filter: saturate(0.88) contrast(1.02) sepia(0.12);
  object-fit: cover;
  object-position: center 12%;
  padding: 2px;
}

.portrait-result .persona-card-image-illustrated,
.portrait-poster .persona-card-image-illustrated {
  border-radius: 22px;
  box-shadow:
    0 24px 42px rgba(16, 38, 37, 0.18),
    inset 0 0 0 1px rgba(255, 248, 232, 0.45);
}

.portrait-result {
  height: 250px;
  width: 260px;
}

.portrait-poster {
  height: 250px;
  width: 260px;
}

.figure-shadow {
  background: rgba(16, 38, 37, 0.18);
  border-radius: 50%;
  bottom: 7%;
  filter: blur(3px);
  height: 18px;
  left: 14%;
  position: absolute;
  width: 72%;
}

.figure-hood {
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.28), transparent 20%),
    var(--sage);
  border-radius: 46% 46% 42% 42%;
  box-shadow: inset 0 -16px 22px rgba(16, 38, 37, 0.16);
  height: 58%;
  left: 18%;
  position: absolute;
  top: 7%;
  width: 64%;
}

.figure-hair {
  background: #293326;
  border-radius: 50% 50% 28% 28%;
  height: 38%;
  left: 25%;
  position: absolute;
  top: 11%;
  width: 50%;
  z-index: 2;
}

.figure-head {
  background: linear-gradient(180deg, #fff4ec, #f2dcd4);
  border-radius: 50% 50% 44% 44%;
  box-shadow: inset 0 -12px 18px rgba(122, 65, 50, 0.08);
  height: 43%;
  left: 27%;
  position: absolute;
  top: 19%;
  width: 46%;
  z-index: 3;
}

.figure-eye {
  background: #eaf0dc;
  border: 2px solid #577055;
  border-radius: 50%;
  height: 13%;
  position: absolute;
  top: 43%;
  width: 15%;
}

.figure-eye.left {
  left: 24%;
}

.figure-eye.right {
  right: 24%;
}

.figure-mouth {
  border-bottom: 3px solid #9c695d;
  border-radius: 50%;
  height: 14%;
  left: 42%;
  position: absolute;
  top: 66%;
  width: 16%;
}

.figure-body {
  background:
    radial-gradient(circle at 36% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    var(--teal);
  border-radius: 44% 44% 18% 18%;
  height: 30%;
  left: 28%;
  position: absolute;
  top: 56%;
  width: 44%;
  z-index: 2;
}

.figure-hand,
.figure-foot {
  background: #f0ded2;
  border-radius: 50%;
  position: absolute;
  z-index: 4;
}

.figure-hand {
  height: 18%;
  top: 58%;
  width: 18%;
}

.figure-hand.left {
  left: 13%;
}

.figure-hand.right {
  right: 13%;
}

.figure-foot {
  bottom: 7%;
  height: 18%;
  width: 22%;
}

.figure-foot.left {
  left: 26%;
}

.figure-foot.right {
  right: 26%;
}

.figure-motif {
  color: rgba(255, 248, 232, 0.9);
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 64%;
  z-index: 5;
}

.portrait-result .figure-motif,
.portrait-poster .figure-motif {
  font-size: 2.25rem;
}

.portrait-tone-0 .figure-hood,
.portrait-tone-0 .figure-body { background: linear-gradient(180deg, #2d7770, var(--teal)); }
.portrait-tone-1 .figure-hood,
.portrait-tone-1 .figure-body { background: linear-gradient(180deg, var(--blue-aura), #567b86); }
.portrait-tone-2 .figure-hood,
.portrait-tone-2 .figure-body { background: linear-gradient(180deg, #cdbd7a, var(--amber-haze)); }
.portrait-tone-3 .figure-hood,
.portrait-tone-3 .figure-body { background: linear-gradient(180deg, #cfa6b8, var(--electric-fuchsia)); }
.portrait-tone-4 .figure-hood,
.portrait-tone-4 .figure-body { background: linear-gradient(180deg, var(--jelly-mint), #6d947c); }
.portrait-tone-5 .figure-hood,
.portrait-tone-5 .figure-body { background: linear-gradient(180deg, var(--plaster), #a46f64); }

.portrait-tone-1 .figure-hair,
.portrait-tone-4 .figure-hair { background: #f1e9d8; }
.portrait-tone-2 .figure-hair { background: #d7ddec; }
.portrait-tone-3 .figure-hair { background: #47352d; }
.portrait-tone-5 .figure-hair { background: #1d2b2c; }

.portrait-hidden .figure-hood,
.portrait-hidden .figure-hair,
.portrait-hidden .figure-head,
.portrait-hidden .figure-body,
.portrait-hidden .figure-hand,
.portrait-hidden .figure-foot {
  background: #101411;
  border-color: #101411;
  box-shadow: none;
}

.portrait-hidden .figure-eye,
.portrait-hidden .figure-mouth {
  display: none;
}

.portrait-hidden .figure-motif {
  color: var(--wax-paper);
}

.portrait-hidden::before {
  background: radial-gradient(circle, rgba(243, 223, 159, 0.45), transparent 66%);
  content: "";
  inset: 5%;
  position: absolute;
}

.share-section {
  background:
    linear-gradient(165deg, rgba(251, 248, 241, 0.9) 0%, rgba(226, 237, 232, 0.5) 50%, rgba(251, 248, 241, 0.85) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.share-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
}

.share-section-head {
  align-items: flex-end;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.share-section-head h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  letter-spacing: 0.03em;
  line-height: var(--leading-heading);
  margin: 0;
}

.share-section-head p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  margin: 0;
  max-width: 20rem;
  text-align: right;
}

.share-copy {
  background: rgba(26, 37, 40, 0.03);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.character-card {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 248, 232, 0.95) 0 21%, transparent 21.5%),
    radial-gradient(circle at 50% 28%, transparent 0 27%, rgba(176, 131, 62, 0.12) 27.4%, transparent 28%),
    radial-gradient(ellipse at 50% 0%, rgba(185, 148, 79, 0.18), transparent 58%),
    linear-gradient(175deg, rgba(250, 242, 224, 0.99), rgba(232, 218, 190, 0.96));
  border: 1px solid rgba(129, 92, 42, 0.28);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 248, 225, 0.72) inset,
    0 0 0 8px rgba(255, 248, 232, 0.36) inset,
    0 22px 54px rgba(16, 38, 37, 0.13);
  margin: var(--space-4) auto 0;
  max-width: 430px;
  overflow: hidden;
  position: relative;
  text-align: center;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.character-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(23, 79, 77, 0.18);
  border-radius: 12px;
  pointer-events: none;
}

.character-card:hover {
  box-shadow:
    0 1px 0 rgba(185, 148, 79, 0.15) inset,
    var(--elevation-4);
}

.character-card.is-hidden {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(185, 148, 79, 0.1), transparent 42%),
    linear-gradient(180deg, #1e2a2c, #151f21);
  border-color: rgba(185, 148, 79, 0.35);
  color: var(--color-paper);
}

.character-card__portrait {
  display: flex;
  justify-content: center;
  padding: 44px var(--space-6) var(--space-2);
  position: relative;
}

.character-card__portrait::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}

.character-card__portrait .persona-portrait {
  margin: 0 auto;
  filter: drop-shadow(0 14px 26px rgba(26, 37, 40, 0.16));
}

.character-card__body {
  padding: var(--space-5) 42px 44px;
}

.character-card__name {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.85rem);
  font-weight: var(--weight-black);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
}

.character-card.is-hidden .character-card__name {
  color: var(--color-paper);
}

.character-card__motto {
  color: var(--color-teal);
  font-family: "Songti SC", "Iowan Old Style", "Noto Serif SC", Georgia, serif;
  font-size: 1.04rem;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.82;
  margin: 0 0 var(--space-5);
}

.character-card.is-hidden .character-card__motto {
  color: rgba(251, 248, 241, 0.88);
}

.character-card__experience {
  background: rgba(255, 248, 232, 0.54);
  border: 1px solid rgba(176, 131, 62, 0.18);
  border-radius: 12px;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 0;
  padding: var(--space-4);
  text-align: left;
}

.character-card.is-hidden .character-card__experience {
  border-top-color: rgba(185, 150, 79, 0.28);
  color: rgba(248, 239, 215, 0.72);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.generated-share {
  background: rgba(26, 37, 40, 0.03);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
  padding: var(--space-4);
}

.generated-share-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.generated-share-head a {
  color: var(--color-teal);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.generated-share-head a:hover {
  color: var(--color-gold);
}

.generated-share img {
  border-radius: var(--radius-md);
  display: block;
  max-width: min(360px, 100%);
}

.status-banner {
  background: rgba(13, 51, 52, 0.94);
  border-radius: 999px;
  bottom: 22px;
  color: var(--paper);
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 5;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 14px 10px 42px;
  }

  .panel {
    border-radius: 20px;
    padding: 20px 16px;
  }

  .page-shell--flow[data-active-view="quiz"],
  .page-shell--flow[data-active-view="situation"] {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-view.panel,
  .page-shell--flow[data-active-view="situation"] .situation-view.panel {
    margin-top: 6px;
    padding: 16px 14px 12px;
  }

  .quiz-stage {
    max-width: 100%;
  }

  .question-subtitle {
    max-width: none;
  }

  .option-button {
    gap: 6px;
    grid-template-columns: 1.5rem 1fr;
    padding: 7px 9px;
  }

  .option-button strong,
  .option-letter {
    font-size: 0.68rem;
    height: 1.5rem;
    width: 1.5rem;
  }

  .option-label {
    font-size: 0.8rem;
    line-height: 1.3;
  }




  .quiz-footer,
  .share-section-head {
    align-items: stretch;
    flex-direction: column;
  }

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


  .share-section-head p {
    max-width: none;
    text-align: left;
  }

  .character-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }






  .persona-portrait {
    height: 134px;
    width: 138px;
  }

  .portrait-result,
  .portrait-poster {
    height: 210px;
    width: 220px;
  }

  .result-actions {
    flex-direction: column;
  }

  .page-shell--wide:not(.page-shell--flow) {
    padding: 0;
  }

  .home-landing,
  .home-landing__stage {
    height: 100dvh;
    max-height: 100dvh;
  }

  .home-landing__chrome {
    padding:
      max(16px, env(safe-area-inset-top))
      18px
      max(14px, env(safe-area-inset-bottom));
  }

  .home-landing__head {
    max-width: none;
    padding-top: 8px;
    text-align: left;
    width: 100%;
  }

  .home-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    max-width: 12ch;
  }

  .home-subtitle {
    font-size: 0.92rem;
    max-width: 34ch;
  }

  .home-tagline--intent {
    font-size: 0.88rem;
    max-width: 40ch;
  }

  .home-landing__footer {
    align-items: stretch;
    width: 100%;
  }

  .home-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .home-cta__start,
  .home-cta__continue {
    width: 100%;
  }

  .home-cta__meta {
    justify-content: center;
  }

  .psych-report-profile--compact,
  .psych-report-profile--votes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* 首页：深色人物星海检索主视觉 */
.page-shell--wide {
  max-width: 1240px;
  overflow-x: clip;
}

.page-shell--wide:not(.page-shell--flow) {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.page-shell--flow[data-active-view="result"] {
  max-width: none;
  padding: 0;
  width: 100%;
}

.page-shell--flow[data-active-view="result"] .result-view:not(.hidden) {
  margin: 0 auto;
  min-height: 100dvh;
  width: min(1120px, 100%);
}

.page-shell--flow .quiz-view:not(.hidden),
.page-shell--flow .situation-view:not(.hidden),
.page-shell--flow .result-view:not(.hidden) {
  animation: flow-enter 0.32s ease both;
  margin-bottom: 0;
  min-height: calc(100dvh - 48px);
}

/* 答题页：窄卡片居中，匹配短题干与选项 */
.page-shell--flow[data-active-view="quiz"] {
  align-items: center;
  display: flex;
  justify-content: center;
  max-width: 36rem;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.page-shell--flow[data-active-view="quiz"] .quiz-view:not(.hidden) {
  min-height: 0;
}

.page-shell--flow[data-active-view="quiz"] .quiz-view.panel {
  flex: 0 0 auto;
  margin-bottom: 0;
  margin-top: clamp(8px, 4vh, 36px);
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 18px 18px 14px;
  width: 100%;
}

.page-shell--flow[data-active-view="quiz"] .quiz-view.panel::before {
  opacity: 0.14;
}

.page-shell--flow[data-active-view="quiz"] .options-grid {
  margin-top: 14px;
}

.page-shell--flow[data-active-view="quiz"] .quiz-footer {
  margin-top: 12px;
}

@media (max-width: 620px) {
  .page-shell--flow[data-active-view="quiz"] {
    overflow-y: hidden;
    padding:
      max(6px, env(safe-area-inset-top))
      10px
      max(8px, env(safe-area-inset-bottom));
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-view.panel {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px);
    padding: 10px 12px 8px;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-stage {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-header {
    flex-shrink: 0;
    gap: 4px;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-header__meta {
    gap: 2px 8px;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-act {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-section-lead {
    display: none;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-step {
    font-size: 0.66rem;
  }

  .page-shell--flow[data-active-view="quiz"] .narrative-beat {
    font-size: 0.74rem;
    line-height: 1.35;
    padding: 5px 8px 5px 10px;
  }

  .page-shell--flow[data-active-view="quiz"] .question-title {
    font-size: 1.02rem;
    line-height: 1.28;
    margin: 0;
  }

  .page-shell--flow[data-active-view="quiz"] .question-subtitle {
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-progress {
    height: 4px;
    margin-top: 2px;
  }

  .page-shell--flow[data-active-view="quiz"] .options-grid {
    align-content: start;
    flex: 1 1 auto;
    gap: 6px;
    margin-top: 8px;
    min-height: 0;
  }

  .page-shell--flow[data-active-view="quiz"] .option-button {
    gap: 6px;
    grid-template-columns: 1.4rem 1fr;
    line-height: 1.28;
    padding: clamp(5px, 1.1dvh, 7px) clamp(7px, 2.2vw, 9px);
  }

  .page-shell--flow[data-active-view="quiz"] .option-button strong,
  .page-shell--flow[data-active-view="quiz"] .option-button .option-letter {
    font-size: 0.66rem;
    height: 1.4rem;
    width: 1.4rem;
  }

  .page-shell--flow[data-active-view="quiz"] .option-label {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-footer {
    border-top: none;
    flex-shrink: 0;
    gap: 0;
    justify-content: flex-start;
    margin-top: 6px;
    padding-top: 0;
  }

  .page-shell--flow[data-active-view="quiz"] .echo-board,
  .page-shell--flow[data-active-view="quiz"] .echo-board:not(:empty) {
    display: none;
  }

  .page-shell--flow[data-active-view="quiz"] .quiz-back {
    font-size: 0.8rem;
    min-height: 32px;
    padding: 5px 12px;
    width: auto;
  }
}

.quiz-view .quiz-step,
.quiz-view .question-subtitle {
  color: rgba(23, 79, 77, 0.68);
}

.quiz-view .question-title {
  margin-inline: auto;
  max-width: 100%;
}

.quiz-view .quiz-header__meta {
  justify-content: center;
}

.quiz-view .quiz-progress {
  margin-inline: auto;
  max-width: 100%;
  width: 100%;
}

/* 独特经历页：与答题页一致的居中窄卡 */
.page-shell--flow[data-active-view="situation"] {
  align-items: center;
  display: flex;
  justify-content: center;
  max-width: 36rem;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.page-shell--flow[data-active-view="situation"] .situation-view:not(.hidden) {
  min-height: 0;
}

.page-shell--flow[data-active-view="situation"] .situation-view.panel {
  flex: 0 0 auto;
  margin-bottom: 0;
  margin-top: clamp(8px, 4vh, 36px);
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 18px 18px 14px;
  width: 100%;
}

@keyframes flow-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 首页主视觉：深色人物星海检索 */
.home-landing {
  --home-bg: #071416;
  --home-bg-mid: #081719;
  --home-text: #f4f0e8;
  --home-text-muted: rgba(244, 240, 232, 0.62);
  --home-gold: #d2b36b;
  --home-teal: #6f9f9c;
  --home-display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  --home-sans: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  align-items: stretch;
  animation: rise-in 0.6s var(--ease-out) both;
  background: var(--home-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--home-text);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.home-landing__stage {
  background:
    radial-gradient(ellipse at 62% 42%, rgba(111, 159, 156, 0.08), transparent 42%),
    radial-gradient(ellipse at 18% 18%, rgba(210, 179, 107, 0.05), transparent 36%),
    linear-gradient(180deg, #081719 0%, #071416 55%, #050f11 100%);
  display: grid;
  flex: 1 1 auto;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.home-search-canvas {
  display: block;
  grid-area: 1 / 1;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.home-landing__veil {
  background:
    linear-gradient(180deg, rgba(7, 20, 22, 0.18) 0%, transparent 16%, transparent 74%, rgba(7, 20, 22, 0.5) 100%),
    linear-gradient(90deg, rgba(7, 20, 22, 0.28) 0%, transparent 28%);
  grid-area: 1 / 1;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.home-landing__chrome {
  display: flex;
  flex-direction: column;
  grid-area: 1 / 1;
  justify-content: space-between;
  padding:
    max(28px, env(safe-area-inset-top))
    clamp(24px, 4vw, 56px)
    max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
  position: relative;
  z-index: 3;
}

.home-landing__head {
  max-width: min(34rem, 46vw);
  pointer-events: none;
  text-align: left;
}

.home-eyebrow {
  color: var(--home-teal);
  font-family: var(--home-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-title {
  color: var(--home-text);
  font-family: var(--home-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin: 0;
  max-width: 11ch;
  text-shadow: 0 2px 24px rgba(7, 20, 22, 0.45);
}

.home-subtitle {
  color: var(--home-text-muted);
  font-family: var(--home-sans);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 36ch;
}

.home-tagline--intent {
  color: rgba(232, 228, 218, 0.78);
  font-family: var(--home-sans);
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 42ch;
}

.home-landing__footer {
  align-items: flex-start;
  display: flex;
  pointer-events: auto;
}

.home-tagline {
  color: var(--home-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 12px 0 0;
}

.home-cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.home-landing .button-primary {
  background: linear-gradient(135deg, #1f4f4b, #2f6f6a 70%, #3d807a);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  color: #f4f0e8;
  min-width: 148px;
}

.home-landing .button-primary:hover {
  background: linear-gradient(135deg, #25615c, #37827c 70%, #46918a);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.home-landing .button-secondary {
  background: rgba(244, 240, 232, 0.06);
  border: 1px solid rgba(244, 240, 232, 0.18);
  color: var(--home-text);
}

.home-landing .button-secondary:hover {
  background: rgba(244, 240, 232, 0.1);
  border-color: rgba(210, 179, 107, 0.45);
  color: var(--home-text);
}

.home-cta__meta {
  color: var(--home-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-cta__meta span {
  background: rgba(244, 240, 232, 0.05);
  border: 1px solid rgba(111, 159, 156, 0.22);
  border-radius: 999px;
  color: var(--home-text-muted);
  font-family: var(--home-sans);
  font-size: 0.8rem;
  padding: 6px 12px;
}

@media (min-width: 621px) and (max-width: 980px) {
  .home-landing__head {
    max-width: min(30rem, 52vw);
  }

  .home-title {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-landing {
    animation: none;
  }
}

.quiz-act {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.quiz-act.hidden {
  display: none;
}

.quiz-section-lead {
  color: var(--muted-fg, #7e8c97);
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0.15rem 0 0;
  font-style: italic;
}

.quiz-section-lead.hidden {
  display: none;
}

.narrative-beat {
  background: rgba(23, 79, 77, 0.05);
  border-left: 2px solid rgba(201, 71, 169, 0.42);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
  padding: 8px 10px 8px 12px;
}

.result-after-story {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 20px;
}

.result-context-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 232, 0.72));
  border: 1px solid rgba(23, 79, 77, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  min-height: 200px;
  padding: 20px 22px;
}

.result-context-card h3 {
  color: var(--teal-deep);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.job-overlay {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(16, 38, 37, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 40;
  animation: fade-in 0.25s var(--ease-out) both;
}

.job-overlay.hidden {
  display: none;
}

.job-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: var(--space-6) var(--space-6);
  width: 100%;
  animation: rise-in 0.35s var(--ease-out) both;
}

.job-title {
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-black);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-4);
}

.job-progress {
  background: rgba(23, 79, 77, 0.12);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.job-progress__fill {
  background: linear-gradient(90deg, var(--teal-deep), var(--electric-fuchsia));
  border-radius: 999px;
  height: 100%;
  transition: width var(--duration-base) var(--ease-out);
  width: 0%;
}

.job-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 12px 0 0;
}

.result-after-story:has(.result-context-card--solo) {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.archetype-card .eyebrow {
  margin-bottom: 6px;
}

.archetype-hint {
  color: var(--amber-haze);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0 0 10px;
}

.archetype-summary {
  color: var(--teal-deep);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.55;
  margin: 0 0 12px;
}

.archetype-about {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.life-story-legacy {
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 16px;
}

.life-story-kicker {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.life-chapters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.life-chapter {
  background: rgba(23, 79, 77, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}

.life-chapter-summary {
  color: var(--teal-deep);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 12px 0;
  position: relative;
}

details.life-chapter > summary::-webkit-details-marker {
  display: none;
}

.life-chapter-summary::after {
  color: var(--amber-haze);
  content: "＋";
  font-size: 1.1rem;
  position: absolute;
  right: 0;
  top: 12px;
}

.life-chapter[open] .life-chapter-summary::after {
  content: "－";
}

.life-chapter-body {
  color: var(--ink);
  line-height: 1.75;
  padding: 0 0 14px;
}

.life-chapter-para {
  margin: 0 0 12px;
  text-align: justify;
  word-break: normal;
  overflow-wrap: break-word;
}

.life-chapter-para:last-child {
  margin-bottom: 0;
}

.life-chapter-source {
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.life-chapter-source a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.life-chapter-source a:hover {
  text-decoration: underline;
}

.match-breakdown-card h3 {
  margin-bottom: 6px;
}

.match-breakdown-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  max-width: 40rem;
}

.match-breakdown-details {
  margin-top: 12px;
}

.match-breakdown-toggle {
  align-items: center;
  background: rgba(251, 248, 241, 0.92);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-teal);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 18px;
  user-select: none;
  width: fit-content;
}

.match-breakdown-toggle::-webkit-details-marker {
  display: none;
}

.match-breakdown-toggle::marker {
  content: "";
}

.match-breakdown-toggle::after {
  content: "▾";
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.match-breakdown-details[open] .match-breakdown-toggle::after {
  transform: rotate(180deg);
}

.match-breakdown-toggle:hover {
  border-color: var(--color-gold);
  color: var(--color-ink);
}

.match-breakdown-panel {
  margin-top: 12px;
}

.match-lead {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0 0 4px;
}

.match-axes {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.match-axis {
  background: rgba(23, 79, 77, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
  padding: 16px 18px 18px;
}

.match-axis-sections,
.match-axis-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.match-axis--journey .match-axis-paragraphs {
  gap: 10px;
}

.match-axis--telos .match-axis-paragraphs {
  gap: 28px;
}

.match-axis--situation .match-axis-paragraphs {
  gap: 10px;
}

.match-axis-paragraph {
  margin: 0;
}

.match-axis-paragraph--telos + .match-axis-paragraph--telos {
  margin-top: 0;
}

.match-axis-paragraph__heading {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.match-axis-paragraph__body {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 79, 77, 0.08);
  border-left: 3px solid rgba(201, 71, 169, 0.42);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.88;
  margin: 0;
  padding: 14px 16px;
  text-align: justify;
  word-break: normal;
  overflow-wrap: break-word;
}

.match-axis--telos .match-axis-paragraph__body {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft, #4a5752);
  font-size: 0.96rem;
  line-height: 1.92;
  padding: 16px 18px;
}

.match-axis--journey .match-axis-paragraph__body {
  max-width: 100%;
}

.match-axis-note {
  line-height: 1.75;
  margin: 0;
}

.match-axis span {
  color: var(--amber-haze);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.match-acts {
  display: none;
}

.match-act {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.match-act:first-of-type {
  border-top: none;
  padding-top: 0;
}

.match-act__title {
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.match-act__body {
  color: var(--ink);
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
}

.hidden-result .match-breakdown-hint,
.hidden-result .match-breakdown-toggle,
.hidden-result .match-lead,
.hidden-result .match-act__body {
  color: rgba(248, 239, 215, 0.88);
}

.hidden-result .match-axis {
  background: rgba(255, 248, 232, 0.08);
  border-color: rgba(255, 248, 232, 0.18);
  color: rgba(248, 239, 215, 0.92);
}

.hidden-result .match-axis-block {
  background: rgba(255, 248, 232, 0.06);
  border-color: rgba(255, 248, 232, 0.14);
}

.hidden-result .match-axis-paragraph__body {
  background: rgba(255, 248, 232, 0.06);
  border-color: rgba(255, 248, 232, 0.14);
  color: rgba(248, 239, 215, 0.82);
}

.hidden-result .match-axis-paragraph__heading {
  color: rgba(248, 239, 215, 0.92);
}

.hidden-result .match-axis-block__detail,
.hidden-result .match-axis-detail-list li,
.hidden-result .match-axis-detail-stack .match-axis-block__detail {
  color: rgba(248, 239, 215, 0.78);
}

.hidden-result .match-axis-block__emphasis {
  color: rgba(248, 239, 215, 0.92);
}

.hidden-result .match-act__title {
  color: var(--wax-paper);
}

.situation-view {
  margin: 0 auto;
  max-width: var(--measure);
  width: 100%;
}

.situation-header {
  margin-bottom: 18px;
  text-align: center;
  width: 100%;
}

.situation-header .question-subtitle {
  color: rgba(23, 79, 77, 0.68);
}

.situation-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.situation-chip {
  background: rgba(23, 79, 77, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 8px 14px;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.situation-chip:hover {
  background: rgba(23, 79, 77, 0.12);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.situation-field {
  display: block;
}

.situation-field--scroll .situation-field__viewport {
  position: relative;
}

.situation-field--scroll textarea {
  display: block;
  max-height: 168px;
  overflow-y: auto;
  resize: none;
  scrollbar-width: thin;
}

.situation-field__fade {
  background: linear-gradient(180deg, rgba(248, 244, 236, 0) 0%, var(--paper-soft) 88%);
  bottom: 1px;
  height: 42px;
  left: 1px;
  pointer-events: none;
  position: absolute;
  right: 1px;
  border-radius: 0 0 15px 15px;
}

.situation-field--scroll textarea:focus + .situation-field__fade {
  background: linear-gradient(180deg, rgba(248, 244, 236, 0) 0%, var(--paper-soft) 92%);
}

.situation-field__label {
  color: rgba(23, 79, 77, 0.68);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
  text-align: center;
}

.situation-field textarea {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
  min-height: 140px;
  padding: 16px 18px;
  resize: vertical;
  width: 100%;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.situation-field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(23, 79, 77, 0.15);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(23, 79, 77, 0.06);
}

.situation-field__meta {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 8px;
  text-align: right;
}

.situation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.match-axis--situation span {
  background: rgba(201, 71, 169, 0.12);
  color: var(--electric-fuchsia);
}

.psych-report-card {
  border: 1px solid rgba(23, 79, 77, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-1);
  padding: 24px;
}

.psych-report-subtitle {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 750;
  margin: 6px 0 0;
}

.psych-report-lead {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 14px 0 0;
  text-align: justify;
}

.psych-report-framework-collapse {
  margin-top: 14px;
}

.psych-report-framework-collapse__toggle {
  color: var(--teal);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
  user-select: none;
}

.psych-report-framework-collapse__toggle::-webkit-details-marker {
  display: none;
}

.psych-report-framework-collapse__toggle::before {
  content: "▸ ";
}

.psych-report-framework-collapse[open] .psych-report-framework-collapse__toggle::before {
  content: "▾ ";
}

.psych-report-framework__block {
  background: rgba(23, 79, 77, 0.04);
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: 16px;
  margin-top: 10px;
  padding: 16px 18px;
}

.psych-report-framework__block h4 {
  margin: 0 0 8px;
}

.psych-report-framework__intro,
.psych-report-framework__note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0 0 12px;
}

.psych-report-pillars {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 10px;
}

.psych-report-pillar {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 12px 14px;
}

.psych-report-pillar__head {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.psych-report-pillar__head span {
  color: var(--electric-fuchsia);
  font-size: 0.82rem;
  font-weight: 700;
}

.psych-report-pillar p {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0 0 10px;
}

.psych-report-pillar__weights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psych-report-pillar__weights span {
  background: rgba(23, 79, 77, 0.08);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  padding: 4px 10px;
}

.psych-report-modules {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.psych-report-module {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(23, 79, 77, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.psych-report-module__head h4 {
  margin: 0;
}

.psych-report-module__theory-name {
  color: var(--electric-fuchsia);
  font-size: 0.86rem;
  font-weight: 800;
  margin: 6px 0 0;
}

.psych-report-module__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.psych-report-module__meta span {
  background: rgba(201, 71, 169, 0.1);
  border-radius: 999px;
  color: var(--electric-fuchsia);
  font-size: 0.76rem;
  padding: 4px 10px;
}

.psych-report-module__theory-intro,
.psych-report-module__synthesis {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 12px 0 0;
  text-align: justify;
}

.psych-report-module__synthesis {
  background: rgba(201, 71, 169, 0.05);
  border-left: 3px solid rgba(201, 71, 169, 0.4);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
}

.psych-report-profile {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.psych-report-profile--compact {
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psych-report-profile--votes {
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psych-report-profile__footnote {
  color: var(--muted);
  font-size: 0.72rem;
  grid-column: 1 / -1;
  line-height: 1.4;
  margin: 2px 0 0;
}

.psych-report-profile-row {
  background: rgba(23, 79, 77, 0.04);
  border-radius: 10px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.psych-report-profile-row--compact {
  gap: 4px;
  padding: 8px 10px;
}

.psych-report-profile-row--vote {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: space-between;
  padding: 8px 10px;
}

.psych-report-profile-row--vote .psych-report-profile-row__label {
  flex: 1 1 9rem;
  font-size: 0.78rem;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.psych-report-profile-row--vote .psych-report-profile-row__value {
  color: var(--electric-fuchsia);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.psych-report-profile-row--compact .psych-report-profile-row__main {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  line-height: 1.35;
}

.psych-report-profile-row--compact .psych-report-profile-row__label {
  flex-shrink: 0;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.psych-report-profile-row--compact .psych-report-profile-row__label::after {
  content: "：";
  font-weight: 700;
}

.psych-report-profile-row--compact .psych-report-profile-row__value {
  flex: 1 1 auto;
  font-size: 0.84rem;
  font-weight: 700;
  min-width: 0;
}

.psych-report-profile-row--compact .psych-report-profile-row__note {
  font-size: 0.72rem;
  line-height: 1.4;
}

.psych-report-profile-row__label {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.psych-report-profile-row__value {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.psych-report-profile-row__note {
  color: var(--muted);
  font-size: 0.8rem;
}

.psych-report-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.psych-report-dim-chip {
  background: rgba(23, 79, 77, 0.07);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
  padding: 6px 12px;
}

.psych-report-dim-chip em {
  color: var(--muted);
  font-style: normal;
  margin-left: 4px;
}

.psych-report-traits {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.psych-report-traits--compact {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.psych-report-traits__hint {
  color: var(--muted);
  flex: 1 1 100%;
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 2px 0 0;
}

.psych-report-trait-chip {
  flex: 0 0 auto;
}

.psych-report-trait-chip[open] {
  flex: 1 1 100%;
}

.psych-report-trait-chip__toggle {
  align-items: center;
  background: rgba(23, 79, 77, 0.07);
  border: 1px solid rgba(23, 79, 77, 0.12);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 6px 12px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.psych-report-trait-chip__toggle:hover {
  background: rgba(23, 79, 77, 0.11);
  border-color: rgba(23, 79, 77, 0.2);
}

.psych-report-trait-chip[open] .psych-report-trait-chip__toggle {
  background: rgba(201, 71, 169, 0.1);
  border-color: rgba(201, 71, 169, 0.28);
  border-radius: 10px;
}

.psych-report-trait-chip__toggle::-webkit-details-marker {
  display: none;
}

.psych-report-trait-chip__label {
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.psych-report-trait-chip__strength {
  color: var(--electric-fuchsia);
  font-size: 0.76rem;
  font-weight: 900;
}

.psych-report-trait-chip__desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 8px 0 0;
  padding-left: 4px;
}

.psych-report-trait-row {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
}

.psych-report-trait-row span:first-child {
  font-weight: 800;
}

.psych-report-trait-row p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 6px 0 0;
}

.psych-report-questions {
  margin-top: 16px;
}

.psych-report-questions h5 {
  align-items: baseline;
  color: var(--teal);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 8px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.psych-report-questions__hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.psych-report-question-grid {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.psych-report-question {
  background: transparent;
  border: none;
  border-radius: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.psych-report-question[open] {
  flex: 1 1 100%;
}

.psych-report-question__toggle {
  align-items: center;
  background: rgba(23, 79, 77, 0.07);
  border: 1px solid rgba(23, 79, 77, 0.14);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  list-style: none;
  min-width: 2.1rem;
  padding: 6px 10px;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.psych-report-question__toggle:hover {
  background: rgba(23, 79, 77, 0.12);
  border-color: rgba(23, 79, 77, 0.22);
  box-shadow: var(--elevation-1);
}

.psych-report-question[open] .psych-report-question__toggle {
  background: rgba(201, 71, 169, 0.12);
  border-color: rgba(201, 71, 169, 0.32);
}

.psych-report-question__toggle::-webkit-details-marker {
  display: none;
}

.psych-report-question__id {
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.psych-report-question__body {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: 12px;
  margin-top: 8px;
  padding: 12px 14px 14px;
}

.psych-report-question__title-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
}

.psych-report-question__qid {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.psych-report-question__title-line strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.psych-report-question__construct-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.psych-report-question__construct-label {
  background: rgba(201, 71, 169, 0.1);
  border-radius: 999px;
  color: var(--electric-fuchsia);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
}

.psych-report-question__construct {
  color: var(--electric-fuchsia);
  font-size: 0.82rem;
  font-weight: 750;
}

.psych-report-question__theory,
.psych-report-question__answer,
.psych-report-question__reading {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 8px 0 0;
}

.psych-report-question__reading {
  background: rgba(23, 79, 77, 0.04);
  border-radius: 10px;
  color: var(--muted);
  margin-top: 10px;
  padding: 10px 12px;
}

.psych-report-question__reading strong {
  color: var(--teal);
}

.psych-reading-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.psych-reading-block {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 79, 77, 0.08);
  border-radius: 10px;
  padding: 8px 10px 9px;
}

.psych-reading-block--behavior,
.psych-reading-block--contrast {
  background: rgba(201, 71, 169, 0.05);
  border-color: rgba(201, 71, 169, 0.14);
}

.psych-reading-block__label {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.psych-reading-block__text {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.62;
  margin: 0;
}

.psych-reading-disclaimer {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
  margin: 4px 0 0;
}

.psych-report-dims-collapse {
  margin-top: 10px;
}

.psych-report-dims-collapse__toggle {
  color: var(--teal);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  padding: 4px 0;
}

.psych-report-dims-collapse__toggle::-webkit-details-marker {
  display: none;
}

.psych-report-module--personality .psych-report-module__synthesis {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.dominant-traits-card {
  padding: 18px 20px 20px;
}

.dominant-traits-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 12px;
}

.dominant-traits-head h3 {
  font-size: 1.18rem;
  margin: 0;
}

.dominant-traits-hint {
  color: var(--muted);
  flex: 1 1 180px;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.dominant-traits-chips {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.dominant-trait-chip {
  background: rgba(23, 79, 77, 0.04);
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: 12px;
  min-width: 0;
}

.dominant-trait-chip[open] {
  background: rgba(201, 71, 169, 0.05);
  border-color: rgba(201, 71, 169, 0.2);
}

.dominant-trait-chip__toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 9px 11px;
}

.dominant-trait-chip__toggle::-webkit-details-marker {
  display: none;
}

.dominant-trait-chip__label {
  color: var(--teal-deep);
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.dominant-trait-chip__bar {
  background: rgba(23, 79, 77, 0.1);
  border-radius: 999px;
  flex: 1 1 48px;
  height: 6px;
  min-width: 48px;
  overflow: hidden;
}

.dominant-trait-chip__fill {
  background: linear-gradient(90deg, var(--blue-aura), var(--teal), var(--electric-fuchsia));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.dominant-trait-chip__pct {
  color: var(--electric-fuchsia);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 900;
}

.dominant-trait-chip__desc {
  border-top: 1px solid rgba(23, 79, 77, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.58;
  margin: 0;
  padding: 0 11px 10px;
}

.dominant-traits-questions {
  border-top: 1px solid rgba(23, 79, 77, 0.1);
  margin-top: 12px;
  padding-top: 12px;
}

.dominant-traits-questions__label {
  align-items: baseline;
  color: var(--teal);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.dominant-traits-questions__label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.dominant-trait-question-grid {
  gap: 5px;
}

.psych-report-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 18px 0 0;
}

.user-strengths-card {
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-1);
  padding: 18px 20px 20px;
}

.user-strengths-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 12px;
}

.user-strengths-head__titles {
  align-items: baseline;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.user-strengths-head__titles .eyebrow {
  margin: 0;
}

.user-strengths-head__titles h3 {
  font-size: 1.18rem;
  margin: 0;
}

.user-strengths-hint {
  color: var(--muted);
  flex: 1 1 180px;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.methodology-intro {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 16px;
}

.methodology-pillars {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 14px;
}

.methodology-pillar {
  background: rgba(23, 79, 77, 0.04);
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
}

.methodology-pillar__head h4 {
  margin: 0 0 4px;
}

.methodology-pillar__theory {
  color: var(--electric-fuchsia);
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.methodology-pillar__note {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 10px 0 12px;
}

.methodology-pillar__weights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.methodology-weight-chip {
  background: rgba(23, 79, 77, 0.08);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  padding: 4px 10px;
}

.methodology-weight-chip--match {
  background: rgba(201, 71, 169, 0.12);
  color: var(--electric-fuchsia);
}

.methodology-match-note {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 8px;
}

.methodology-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

.user-strengths-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.user-strength-tile {
  align-items: flex-start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 232, 0.55)),
    linear-gradient(135deg, rgba(23, 79, 77, 0.04), rgba(201, 71, 169, 0.03));
  border: 1px solid rgba(23, 79, 77, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  min-height: 0;
  padding: 10px 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.user-strength-tile:hover {
  border-color: rgba(201, 71, 169, 0.28);
  box-shadow: var(--elevation-1);
  transform: translateY(-2px);
}

.user-strength-tile__index {
  align-items: center;
  background: linear-gradient(145deg, var(--teal), var(--blue-aura));
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(23, 79, 77, 0.18);
  color: #fff;
  display: flex;
  flex: 0 0 24px;
  font-size: 0.7rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
  width: 24px;
}

.user-strength-tile__body {
  flex: 1;
  min-width: 0;
}

.user-strength-tile__title {
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 3px;
}

.user-strength-tile__text {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.58;
  margin: 0;
}

.user-strength-tile__evidence {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 4px 0 0;
}

.user-strengths-list[data-count="5"] .user-strength-tile:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .user-strengths-list[data-count="5"] .user-strength-tile:last-child {
    grid-column: auto;
  }

  .user-strengths-list[data-count="5"] {
    grid-template-columns: repeat(6, 1fr);
  }

  .user-strengths-list[data-count="5"] .user-strength-tile {
    grid-column: span 2;
  }

  .user-strengths-list[data-count="5"] .user-strength-tile:nth-child(4),
  .user-strengths-list[data-count="5"] .user-strength-tile:nth-child(5) {
    grid-column: span 3;
  }
}

.hidden-result .user-strengths-hint,
.hidden-result .user-strength-tile__text,
.hidden-result .user-strength-tile__evidence {
  color: rgba(248, 239, 215, 0.72);
}

.hidden-result .user-strength-tile__title {
  color: var(--paper);
}

.hidden-result .user-strength-tile {
  background: rgba(255, 248, 232, 0.08);
  border-color: rgba(255, 248, 232, 0.14);
}

.hidden-result .user-strength-tile:hover {
  border-color: rgba(255, 248, 232, 0.24);
  box-shadow: none;
  transform: none;
}

.persona-advice-card {
  border: 1px solid rgba(23, 79, 77, 0.14);
  box-shadow: 0 10px 28px rgba(23, 79, 77, 0.06);
}

.persona-advice-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.persona-advice-reflection {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 16px;
  text-align: justify;
}

.persona-advice-notes {
  display: grid;
  gap: 10px;
}

.persona-advice-note {
  background: rgba(23, 79, 77, 0.05);
  border-left: 3px solid rgba(201, 71, 169, 0.45);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  line-height: 1.8;
  margin: 0;
  padding: 12px 14px;
}

.advice-loader__track {
  background: rgba(23, 79, 77, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.advice-loader__bar {
  animation: advice-loader-indeterminate 1.6s var(--ease-in-out) infinite;
  background: linear-gradient(90deg, var(--teal) 0%, var(--amber-haze) 55%, var(--teal) 100%);
  border-radius: 999px;
  height: 100%;
  position: absolute;
  width: 46%;
}

.advice-loader__label {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 10px 0 0;
}

@keyframes advice-loader-indeterminate {
  0% {
    left: -45%;
  }
  100% {
    left: 100%;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-reveal {
  animation: fade-in 0.4s var(--ease-out) both;
}

.card-reveal[style*="animation-delay"] {
  animation-name: slide-up;
}

.crisis-list {
  display: grid;
  gap: 14px;
}

.crisis-item {
  background: rgba(23, 79, 77, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.crisis-item__label {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.crisis-item p {
  line-height: 1.75;
  margin: 0 0 8px;
}

.crisis-item p span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.crisis-item__lesson {
  color: var(--teal-deep);
  margin-bottom: 0 !important;
}

.crisis-item--llm .crisis-item__response--full {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.88;
  margin: 0;
  text-align: justify;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

.crisis-hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.crisis-empty-note {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .situation-actions {
    justify-content: stretch;
  }

  .situation-actions .button-primary,
  .situation-actions .button-secondary {
    flex: 1 1 100%;
  }
}


/* ═══════════════════════════════════════════════════════════
   Quiz Shell — 深色星海答题体验（与首页同一视觉世界）
   ═══════════════════════════════════════════════════════════ */

.home-landing.hidden,
.quiz-shell.hidden,
.quiz-view.hidden,
.situation-view.hidden,
.quiz-gate.hidden,
.quiz-transition-overlay.hidden {
  display: none !important;
}

body.theme-mirror,
body:has(.quiz-shell:not(.hidden)),
body:has(.home-landing--exiting),
body:has(.situation-view--mirror:not(.hidden)) {
  background: #071013;
}

body:has(.quiz-shell:not(.hidden)) .background-layer,
body:has(.home-landing--exiting) .background-layer,
body:has(.situation-view--mirror:not(.hidden)) .background-layer {
  display: none;
}

.page-shell--wide.page-shell--quiz-flow {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.page-shell--wide.page-shell--quiz-flow[data-active-view="situation"] {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  max-height: none;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* —— 首页退出过渡 —— */
.home-landing--exiting .home-landing__chrome {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.7s ease, transform 0.9s var(--ease-out);
}

.home-landing--exiting .home-search-canvas {
  transform: scale(1.06);
  transition: transform 1.5s var(--ease-out), filter 1.5s ease, opacity 1.4s ease;
  filter: brightness(0.72) saturate(0.9);
}

.home-landing--exiting.is-deep .home-search-canvas {
  opacity: 0.35;
  transform: scale(1.12);
}

.quiz-transition-overlay {
  align-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(11, 28, 30, 0.2), rgba(7, 20, 22, 0.72) 62%);
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 40;
}

.quiz-transition-overlay.hidden {
  display: none;
}

.quiz-transition-overlay__line {
  color: #f4f0e8;
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0;
  max-width: 18em;
  opacity: 0;
  text-align: center;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
}

.quiz-transition-overlay.is-visible .quiz-transition-overlay__line {
  opacity: 0.92;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-landing--exiting .home-landing__chrome,
  .home-landing--exiting .home-search-canvas,
  .quiz-transition-overlay__line {
    transition-duration: 0.2s !important;
    transform: none !important;
    filter: none !important;
  }
}

/* —— Quiz Shell —— */
.quiz-shell {
  --quiz-bg: #071013;
  --quiz-bg-soft: #0b1719;
  --quiz-panel: rgba(15, 25, 27, 0.88);
  --quiz-panel-elevated: #101a1c;
  --quiz-option: #152023;
  --quiz-option-hover: #19282a;
  --quiz-text: #f1eee6;
  --quiz-secondary: #9ca7a4;
  --quiz-muted: #697673;
  --quiz-teal: #73a7a2;
  --quiz-teal-soft: rgba(115, 167, 162, 0.16);
  --quiz-gold: #c9a85f;
  --quiz-gold-soft: rgba(201, 168, 95, 0.16);
  --quiz-line: rgba(219, 226, 220, 0.12);
  --quiz-line-strong: rgba(219, 226, 220, 0.2);
  --quiz-display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  --quiz-sans: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(11, 28, 34, 0.55), transparent 48%),
    radial-gradient(ellipse at 82% 78%, rgba(12, 24, 28, 0.35), transparent 42%),
    linear-gradient(180deg, var(--quiz-bg-soft), var(--quiz-bg) 42%, #060f11);
  color: var(--quiz-text);
  display: grid;
  flex: 1 1 auto;
  height: 100%;
  isolation: isolate;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.quiz-shell.hidden {
  display: none;
}

.quiz-shell__field {
  display: block;
  grid-area: 1 / 1;
  height: 100%;
  width: 100%;
  z-index: 0;
}

.quiz-shell__veil {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(7, 16, 19, 0.12), rgba(7, 16, 19, 0.78) 70%),
    linear-gradient(180deg, rgba(7, 16, 19, 0.4), transparent 20%, transparent 80%, rgba(7, 16, 19, 0.58));
  grid-area: 1 / 1;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.quiz-shell__stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-area: 1 / 1;
  justify-content: center;
  margin: 0 auto;
  max-width: 1080px;
  min-height: 0;
  padding:
    max(20px, env(safe-area-inset-top))
    clamp(16px, 3vw, 28px)
    max(16px, env(safe-area-inset-bottom));
  position: relative;
  width: min(1080px, 100%);
  z-index: 2;
}

.quiz-shell--entering .quiz-shell__panel {
  animation: quiz-panel-enter 0.7s var(--ease-out) both;
}

.quiz-shell--entering .quiz-shell__top,
.quiz-shell--entering .quiz-shell__footer {
  animation: quiz-fade-up 0.55s ease both;
}

@keyframes quiz-panel-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes quiz-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-shell__top {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand meta"
    "line line";
}

.quiz-brand {
  color: var(--quiz-teal);
  font-family: var(--quiz-sans);
  font-size: 0.72rem;
  font-weight: 600;
  grid-area: brand;
  letter-spacing: 0.28em;
}

.quiz-progress-meta {
  color: var(--quiz-muted);
  font-family: var(--quiz-sans);
  font-size: 0.84rem;
  font-weight: 500;
  grid-area: meta;
  letter-spacing: 0.04em;
}

.quiz-progress-line {
  background: rgba(219, 226, 220, 0.08);
  border-radius: 999px;
  grid-area: line;
  height: 2px;
  overflow: hidden;
  width: 100%;
}

.quiz-progress-line__fill {
  background: linear-gradient(90deg, rgba(115, 167, 162, 0.85), var(--quiz-gold));
  border-radius: inherit;
  height: 100%;
  transition: width 0.45s var(--ease-out);
  width: 4%;
}

.quiz-shell__panel {
  backdrop-filter: blur(14px);
  background: var(--quiz-panel);
  border: 1px solid var(--quiz-line);
  border-radius: 22px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(241, 238, 230, 0.04);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  min-height: min(62vh, 560px);
  overflow: hidden;
  position: relative;
}

.mirror-profile {
  background: rgba(16, 26, 28, 0.55);
  border-right: 1px solid rgba(219, 226, 220, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px 24px;
  position: relative;
}

.mirror-profile__eyebrow {
  color: var(--quiz-text);
  font-family: var(--quiz-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.mirror-profile__status {
  color: var(--quiz-secondary);
  font-family: var(--quiz-sans);
  font-size: 0.86rem;
  margin: -6px 0 4px;
}

.mirror-profile__core {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 180px;
  position: relative;
}

.mirror-profile__glow {
  background: radial-gradient(circle, rgba(201, 168, 95, 0.14), transparent 68%);
  border-radius: 50%;
  height: 168px;
  position: absolute;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
  width: 168px;
}

.mirror-profile__silhouette {
  align-items: center;
  color: rgba(241, 238, 230, 0.72);
  display: flex;
  filter: blur(8px);
  height: 148px;
  justify-content: center;
  opacity: 0.55;
  position: relative;
  transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease, color 0.5s ease;
  width: 112px;
  z-index: 1;
}

.mirror-profile__silhouette svg {
  display: block;
  height: 100%;
  width: auto;
}

.mirror-profile.is-pulse .mirror-profile__glow {
  opacity: 1;
  transform: scale(1.1);
}

.mirror-profile.is-pulse .mirror-profile__silhouette {
  color: rgba(201, 168, 95, 0.88);
}

.mirror-profile[data-clarity="0"] .mirror-profile__silhouette { filter: blur(5.5px); opacity: 0.48; }
.mirror-profile[data-clarity="1"] .mirror-profile__silhouette { filter: blur(4.2px); opacity: 0.58; }
.mirror-profile[data-clarity="2"] .mirror-profile__silhouette { filter: blur(3px); opacity: 0.68; }
.mirror-profile[data-clarity="3"] .mirror-profile__silhouette { filter: blur(1.8px); opacity: 0.78; }
.mirror-profile[data-clarity="4"] .mirror-profile__silhouette { filter: blur(0.9px); opacity: 0.88; }
.mirror-profile[data-clarity="5"] .mirror-profile__silhouette {
  color: rgba(241, 238, 230, 0.92);
  filter: drop-shadow(0 0 18px rgba(201, 168, 95, 0.22)) blur(0.35px);
  opacity: 0.96;
}

.mirror-traits {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mirror-trait {
  display: grid;
  gap: 4px;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
}

.mirror-trait__label {
  color: var(--quiz-secondary);
  font-family: var(--quiz-sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.mirror-trait__track {
  background: rgba(219, 226, 220, 0.08);
  border-radius: 999px;
  height: 3px;
  overflow: hidden;
}

.mirror-trait__fill {
  background: linear-gradient(90deg, rgba(115, 167, 162, 0.7), rgba(201, 168, 95, 0.75));
  border-radius: inherit;
  height: 100%;
  transition: width 0.45s var(--ease-out);
  width: 12%;
}

.mirror-trait.is-flash .mirror-trait__label {
  color: var(--quiz-gold);
}

.question-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-width: 0;
  padding: 28px 28px 24px;
}

.question-panel.is-exit {
  animation: question-exit 0.42s ease both;
}

.question-panel.is-enter {
  animation: question-enter 0.48s var(--ease-out) both;
}

.question-panel.is-exit-back {
  animation: question-exit-back 0.42s ease both;
}

.question-panel.is-enter-back {
  animation: question-enter-back 0.48s var(--ease-out) both;
}

@keyframes question-exit {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes question-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes question-exit-back {
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes question-enter-back {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-panel__tag {
  color: var(--quiz-teal);
  font-family: var(--quiz-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
}

.question-panel__title {
  color: var(--quiz-text);
  font-family: var(--quiz-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0;
  max-width: 18em;
}

.question-panel__options {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.answer-option {
  align-items: center;
  background: var(--quiz-option);
  border: 1px solid var(--quiz-line);
  border-radius: 12px;
  color: var(--quiz-text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 14px;
  grid-template-columns: 2rem 1fr;
  min-height: 68px;
  padding: 14px 16px;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  width: 100%;
}

.answer-option:hover {
  background: var(--quiz-option-hover);
  border-color: rgba(115, 167, 162, 0.45);
  transform: translateX(4px);
}

/* Keyboard focus only — keep visually distinct from is-selected (no gold letter). */
.answer-option.is-focused:not(.is-selected) {
  border-color: rgba(115, 167, 162, 0.7);
  box-shadow: inset 0 0 0 1px rgba(115, 167, 162, 0.28);
}

.answer-option:focus-visible {
  outline: 2px solid var(--quiz-teal);
  outline-offset: 2px;
}

.answer-option__letter {
  align-items: center;
  color: var(--quiz-secondary);
  display: inline-flex;
  font-family: var(--quiz-sans);
  font-size: 0.85rem;
  font-weight: 700;
  height: 1.8rem;
  justify-content: center;
  letter-spacing: 0.04em;
  transition: text-shadow 0.2s ease, color 0.2s ease;
  width: 1.8rem;
}

.answer-option:hover .answer-option__letter {
  color: var(--quiz-teal);
  text-shadow: none;
}

.answer-option__label {
  color: var(--quiz-text);
  font-family: var(--quiz-sans);
  font-size: 0.95rem;
  line-height: 1.45;
}

.answer-option.is-selected {
  background: var(--quiz-gold-soft);
  border-color: rgba(201, 168, 95, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 95, 0.12);
}

.answer-option.is-selected .answer-option__letter {
  color: var(--quiz-gold);
}

.quiz-shell__footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.quiz-shell__back {
  background: transparent;
  border: 1px solid var(--quiz-line);
  border-radius: 999px;
  color: var(--quiz-muted);
  cursor: pointer;
  font-family: var(--quiz-sans);
  font-size: 0.86rem;
  min-height: 40px;
  padding: 8px 16px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quiz-shell__back:hover:not(:disabled) {
  border-color: rgba(115, 167, 162, 0.45);
  color: var(--quiz-text);
}

.quiz-shell__back:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.quiz-shell__hint {
  color: var(--quiz-muted);
  font-family: var(--quiz-sans);
  font-size: 0.78rem;
}

/* —— Section / Calc gates —— */
.quiz-gate {
  align-items: center;
  background: rgba(7, 16, 19, 0.78);
  display: flex;
  flex-direction: column;
  gap: 10px;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 5;
}

.quiz-gate.hidden {
  display: none;
}

.quiz-gate__kicker {
  color: var(--quiz-gold);
  font-family: var(--quiz-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.quiz-gate__line {
  color: var(--quiz-text);
  font-family: var(--quiz-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  margin: 0;
  max-width: 16em;
}

.quiz-gate--calc .quiz-calc-canvas {
  height: auto;
  margin-bottom: 8px;
  max-height: 220px;
  max-width: min(420px, 80vw);
  opacity: 0.9;
  width: 100%;
}

.quiz-gate__retry {
  background: var(--quiz-teal-soft);
  border: 1px solid rgba(115, 167, 162, 0.45);
  border-radius: 999px;
  color: var(--quiz-text);
  cursor: pointer;
  font-family: var(--quiz-sans);
  margin-top: 12px;
  min-height: 42px;
  padding: 8px 18px;
}

.quiz-gate__retry.hidden {
  display: none;
}

/* —— Situation dark continuity —— */
.situation-view--mirror.panel {
  background: rgba(15, 25, 27, 0.92);
  border: 1px solid rgba(219, 226, 220, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  color: #f1eee6;
  max-width: 40rem;
}

.situation-view--mirror .eyebrow,
.situation-view--mirror .question-subtitle,
.situation-view--mirror .situation-field__label,
.situation-view--mirror .situation-field__meta {
  color: #9ca7a4;
}

.situation-view--mirror .question-title {
  color: #f1eee6;
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
}

.situation-view--mirror .situation-chip {
  background: #152023;
  border-color: rgba(219, 226, 220, 0.12);
  color: #f1eee6;
}

.situation-view--mirror textarea {
  background: rgba(7, 16, 19, 0.72);
  border-color: rgba(219, 226, 220, 0.12);
  color: #f1eee6;
}

.situation-view--mirror .button-secondary {
  background: #152023;
  border-color: rgba(219, 226, 220, 0.16);
  color: #f1eee6;
}

.page-shell--quiz-flow[data-active-view="situation"] {
  background: #071013;
}

/* —— Mobile —— */
@media (max-width: 820px) {
  .page-shell--wide.page-shell--quiz-flow {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: auto;
  }

  .quiz-shell {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
  }

  .quiz-shell__stage {
    gap: 14px;
    justify-content: flex-start;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .quiz-shell__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mirror-profile {
    align-items: center;
    border-bottom: 1px solid var(--quiz-line);
    border-right: none;
    display: grid;
    gap: 8px 14px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "core copy"
      "traits traits";
    padding: 16px 16px 12px;
  }

  .mirror-profile__eyebrow {
    font-size: 1.05rem;
    grid-area: copy;
    margin: 0;
  }

  .mirror-profile__status {
    grid-area: copy;
    margin: 1.35rem 0 0;
  }

  .mirror-profile__core {
    grid-area: core;
    min-height: 0;
  }

  .mirror-profile__glow {
    height: 92px;
    width: 92px;
  }

  .mirror-profile__silhouette {
    height: 78px;
    width: 58px;
  }

  .mirror-traits {
    grid-area: traits;
    grid-template-columns: 1fr 1fr;
  }

  .question-panel {
    padding: 18px 16px 16px;
  }

  .question-panel__title {
    font-size: 1.28rem;
    max-width: none;
  }

  .answer-option {
    min-height: 56px;
    padding: 12px 14px;
  }

  .answer-option:hover {
    transform: none;
  }

  .quiz-shell__hint {
    display: none;
  }

  .quiz-shell__field {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-shell--entering .quiz-shell__panel,
  .quiz-shell--entering .quiz-shell__top,
  .quiz-shell--entering .quiz-shell__footer,
  .question-panel.is-exit,
  .question-panel.is-enter,
  .question-panel.is-exit-back,
  .question-panel.is-enter-back {
    animation: none !important;
  }

  .answer-option,
  .quiz-progress-line__fill,
  .mirror-trait__fill,
  .mirror-profile__silhouette,
  .mirror-profile__glow {
    transition-duration: 0.2s !important;
  }
}

/* =========================================================
   Result V2 — dark reveal + warm archive paper
   ========================================================= */
body.theme-result {
  background: #071013;
}

body.theme-result .background-layer {
  display: none;
}

.result-view--v2.panel {
  --report-page-bg: #e8e2d6;
  --report-paper: #f3efe7;
  --report-card: #ede9e0;
  --report-text: #182426;
  --report-text-secondary: #68706c;
  --report-border: rgba(24, 36, 38, 0.1);
  --report-teal: #507f7b;
  --report-gold: #b58a3f;
  --reveal-bg: #071013;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #f1eee6;
  max-width: none;
  overflow: visible;
  padding: 0;
  width: min(1120px, 100%);
}

.result-view--v2.panel > .result-section-nav {
  position: sticky;
}

.result-view--v2 .result-marquee-canvas {
  max-height: min(88vh, 900px);
  opacity: 0.22;
  top: 12%;
  width: min(150%, 1400px);
}

.result-view--v2 .result-marquee-veil {
  background:
    radial-gradient(ellipse at 28% 42%, rgba(7, 16, 19, 0.15), transparent 36%),
    radial-gradient(ellipse at 50% 20%, rgba(201, 168, 95, 0.07), transparent 40%),
    radial-gradient(ellipse at 50% 0%, rgba(7, 16, 19, 0.25), transparent 50%),
    linear-gradient(180deg, rgba(7, 16, 19, 0.35), rgba(7, 16, 19, 0.88) 58%, #e8e2d6 100%);
}

.result-compat-hidden {
  display: none !important;
}

.result-section-nav {
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(16px);
  background: rgba(10, 18, 20, 0.88);
  border: 1px solid rgba(219, 226, 220, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(7, 16, 19, 0.28);
  display: flex;
  gap: 4px;
  margin: 12px auto 0;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  padding: 6px;
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  width: fit-content;
  z-index: 40;
}

.result-section-nav__link {
  color: #9ca7a4;
  flex: 0 0 auto;
  font-family: "Source Sans 3", "PingFang SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.result-section-nav__link:hover,
.result-section-nav__link:focus-visible {
  color: #f1eee6;
  outline: none;
}

.result-section-nav__link.is-active {
  background: rgba(201, 168, 95, 0.16);
  border-radius: 999px;
  color: #c9a85f;
}

.result-reveal {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  min-height: min(92vh, 900px);
  padding:
    max(48px, env(safe-area-inset-top))
    clamp(20px, 4vw, 48px)
    64px;
  position: relative;
  z-index: 1;
}

.result-reveal__eyebrow {
  color: #73a7a2;
  font-family: "Source Sans 3", "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  grid-column: 1 / -1;
  letter-spacing: 0.28em;
  margin: 0;
  text-transform: uppercase;
}

.result-reveal__portrait {
  align-items: center;
  display: flex;
  justify-content: center;
  justify-self: center;
  min-height: 320px;
  position: relative;
  width: min(100%, 400px);
}

.result-reveal__portrait::after {
  background: radial-gradient(circle, rgba(201, 168, 95, 0.22), transparent 70%);
  content: "";
  height: 70%;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 70%;
  z-index: 0;
}

.result-reveal__portrait .persona-portrait {
  position: relative;
  z-index: 1;
}

.result-reveal__portrait .portrait-result {
  filter: drop-shadow(0 0 28px rgba(201, 168, 95, 0.22));
  height: clamp(320px, 42vw, 440px);
  margin: 0 auto;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  width: clamp(240px, 34vw, 360px);
}

.result-reveal__portrait .persona-card-image {
  border-radius: 18px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.result-view--v2 .result-reveal__portrait .figure-hood,
.result-view--v2 .result-reveal__portrait .figure-body {
  background: linear-gradient(180deg, #d7c49a, #8d7350) !important;
}

.result-view--v2 .result-reveal__portrait .figure-head {
  background: #e7dfd0;
}

.result-reveal__copy {
  display: grid;
  gap: 14px;
  max-width: 34rem;
}

.result-reveal__name {
  color: #f1eee6;
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}

.result-reveal__meta,
.result-reveal__intro {
  color: #9ca7a4;
  font-family: "Source Sans 3", "PingFang SC", sans-serif;
  font-size: 1rem;
  margin: 0;
}

.result-reveal__verdict {
  color: #f1eee6;
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 22em;
}

.result-reveal__basis {
  color: #73a7a2;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.result-reveal__rank {
  color: #9ca7a4;
  font-size: 0.88rem;
  margin: 0;
}

.result-reveal__scroll {
  color: #c9a85f;
  font-size: 0.92rem;
  margin-top: 10px;
  text-decoration: none;
}

.result-reveal__scroll:hover,
.result-reveal__scroll:focus-visible {
  text-decoration: underline;
}

.result-archive {
  background:
    linear-gradient(180deg, transparent, var(--report-page-bg) 48px),
    var(--report-page-bg);
  color: var(--report-text);
  padding: 0 0 64px;
  position: relative;
  z-index: 2;
}

.result-archive__bridge {
  background: linear-gradient(180deg, rgba(7, 16, 19, 0.55), transparent);
  height: 72px;
  margin-top: -72px;
  pointer-events: none;
}

.result-section {
  margin: 0 auto;
  max-width: 920px;
  padding: 48px clamp(16px, 3vw, 28px) 16px;
  scroll-margin-top: 72px;
}

.result-section + .result-section {
  border-top: 1px solid rgba(24, 36, 38, 0.08);
  margin-top: 12px;
  padding-top: 56px;
}

.result-section__head {
  border-bottom: 2px solid rgba(24, 36, 38, 0.1);
  margin-bottom: 28px;
  max-width: none;
  padding-bottom: 18px;
}

.result-section__head h3,
.result-block h3,
.result-block h4 {
  color: var(--report-text);
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 6px 0 8px;
}

.result-section__head h3 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  margin: 10px 0 12px;
}

.result-kicker {
  align-items: center;
  color: var(--report-teal);
  display: flex;
  font-family: "Source Sans 3", "PingFang SC", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.result-kicker__num {
  background: rgba(80, 127, 123, 0.12);
  border: 1px solid rgba(80, 127, 123, 0.28);
  border-radius: 999px;
  color: var(--report-teal);
  display: inline-flex;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 2.4em;
  padding: 3px 10px;
  justify-content: center;
}

.result-section__lead,
.persona-advice-hint,
.weight-explain,
.match-breakdown-hint,
.match-radar-hint,
.life-story-kicker,
.life-story-intro,
.user-strengths-hint,
.dominant-traits-hint {
  color: var(--report-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.result-block {
  background: var(--report-paper);
  border: 1px solid var(--report-border);
  border-radius: 16px;
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 28px);
}

.result-block::before {
  display: none !important;
}

.content-source-tag {
  border: 1px solid var(--report-border);
  border-radius: 999px;
  display: inline-block;
  font-family: "Source Sans 3", "PingFang SC", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-right: 8px;
  padding: 2px 8px;
  vertical-align: middle;
}

.content-source-tag--user {
  background: rgba(80, 127, 123, 0.1);
  color: var(--report-teal);
}

.content-source-tag--fact {
  background: rgba(24, 36, 38, 0.05);
  color: var(--report-text-secondary);
}

.content-source-tag--system {
  background: rgba(181, 138, 63, 0.12);
  color: var(--report-gold);
}

.experience-quote {
  background: var(--report-card);
  border-left: 3px solid var(--report-gold);
  margin: 0 0 22px;
  max-width: 760px;
  padding: 18px 20px;
}

.experience-quote p {
  color: var(--report-text);
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.6;
  margin: 10px 0 0;
}

.experience-empty {
  background: var(--report-card);
  border: 1px dashed var(--report-border);
  border-radius: 14px;
  margin-bottom: 22px;
  max-width: 760px;
  padding: 18px 20px;
}

.historical-response,
.persona-advice-reflection,
.persona-advice-note,
.match-lead,
.psych-report-module__synthesis,
.life-chapter-para {
  color: var(--report-text);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 760px;
}

.historical-response__section {
  margin: 0 0 22px;
}

.historical-response__section h5 {
  color: var(--report-gold);
  font-family: "Cormorant Garamond", "Songti SC", Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.action-translation__list,
.similarity-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-translation__list li,
.similarity-list li {
  background: var(--report-card);
  border: 1px solid var(--report-border);
  border-radius: 12px;
  line-height: 1.7;
  padding: 14px 16px;
}

.action-translation__boundaries {
  color: var(--report-text-secondary);
  display: grid;
  font-size: 0.88rem;
  gap: 6px;
  line-height: 1.6;
  list-style: disc;
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.similarity-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 8px;
}

.weight-explain {
  background: rgba(80, 127, 123, 0.08);
  border-radius: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.weight-explain strong {
  color: var(--report-teal);
}

.match-radar-weight-chip--ink,
.match-radar-metric--ink .match-radar-metric__fill {
  background: rgba(24, 36, 38, 0.65);
}

.match-radar-weight-chip--violet {
  background: rgba(24, 36, 38, 0.08);
  color: var(--report-text);
}

.result-view--v2 .match-radar-legend-item--user::before {
  background: #5b949c;
}

.result-view--v2 .match-radar-legend-item--persona::before {
  background: #a8895e;
}

.match-radar-bars {
  display: none;
  gap: 12px;
  margin-top: 18px;
}

.radar-bar-row {
  display: grid;
  gap: 8px;
}

.radar-bar-row.is-gap-highlight {
  background: rgba(181, 138, 63, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.radar-bar-row__label {
  display: grid;
  gap: 2px;
}

.radar-bar-row__label strong {
  color: var(--report-text);
  font-size: 0.92rem;
}

.radar-bar-row__label span {
  color: var(--report-text-secondary);
  font-size: 0.78rem;
}

.radar-bar-row__tracks {
  display: grid;
  gap: 6px;
}

.radar-bar-track {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.radar-bar-track__rail {
  background: rgba(24, 36, 38, 0.08);
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
}

.radar-bar-track__rail > i {
  display: block;
  height: 100%;
}

.radar-bar-track--user .radar-bar-track__rail > i {
  background: #5b949c;
}

.radar-bar-track--persona .radar-bar-track__rail > i {
  background: #a8895e;
}

.radar-bar-track em {
  color: var(--report-text-secondary);
  font-size: 0.72rem;
  font-style: normal;
  min-width: 1.8rem;
}

.related-timeline {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-timeline__item {
  display: grid;
  gap: 14px;
  grid-template-columns: 4.5rem 1fr;
  padding: 0 0 18px;
  position: relative;
}

.related-timeline__item::before {
  background: var(--report-gold);
  bottom: 0;
  content: "";
  left: 1.5rem;
  position: absolute;
  top: 1.1rem;
  width: 1px;
}

.related-timeline__item:last-child::before {
  display: none;
}

.related-timeline__year {
  color: var(--report-gold);
  font-family: "Source Sans 3", "PingFang SC", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.related-timeline__body strong {
  display: inline-block;
  margin-bottom: 6px;
}

.related-timeline__body p,
.related-timeline__link {
  color: var(--report-text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 6px;
}

.related-timeline__item.is-related .related-timeline__year {
  color: var(--report-teal);
}

.result-view--v2 .runner-up {
  background: var(--report-card);
  border: 1px solid var(--report-border);
  border-radius: 14px;
  color: var(--report-text);
  text-align: left;
}

.result-view--v2 .runner-up--active {
  background: rgba(181, 138, 63, 0.08);
  border-color: rgba(181, 138, 63, 0.55);
  box-shadow: inset 0 0 0 1px rgba(181, 138, 63, 0.2);
}

.result-view--v2 .runner-up-score,
.result-view--v2 .runner-up-closest,
.result-view--v2 .runner-up-diff {
  color: var(--report-text-secondary);
  font-size: 0.8rem;
  margin-top: 4px;
}

.result-view--v2 .runner-up-closest {
  color: var(--report-teal);
}

.psych-report-module__details {
  border-top: 1px solid var(--report-border);
  margin-top: 16px;
  padding-top: 10px;
}

.psych-report-module__details > summary {
  color: var(--report-teal);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 8px 0;
}

.psych-report-module__details > summary::-webkit-details-marker {
  display: none;
}

.psych-report-module__details[open] > summary {
  color: var(--report-gold);
}

.psych-report-module__impact {
  color: var(--report-text-secondary);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.result-disclaimer-soft {
  color: var(--report-text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 42rem;
}

.result-view--v2 .result-card,
.result-view--v2 .match-radar-card,
.result-view--v2 .psych-report-card,
.result-view--v2 .share-section,
.result-view--v2 .life-story-card,
.result-view--v2 .dominant-traits-card,
.result-view--v2 .user-strengths-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.result-view--v2 .psych-report-module,
.result-view--v2 .character-card {
  background: var(--report-card);
  border: 1px solid var(--report-border);
  border-radius: 14px;
}

.result-view--v2 .psych-report-dim-chip,
.result-view--v2 .psych-report-profile-row {
  background: rgba(24, 36, 38, 0.04);
  border-color: var(--report-border);
}

.result-view--v2 .advice-loader__bar {
  background: linear-gradient(90deg, var(--report-teal), var(--report-gold));
}

@media (max-width: 900px) {
  .result-reveal {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: max(72px, env(safe-area-inset-top));
    text-align: center;
  }

  .result-reveal__copy {
    justify-items: center;
    margin: 0 auto;
  }

  .result-reveal__verdict {
    max-width: none;
  }

  .result-reveal__portrait .portrait-result {
    height: 300px;
    width: 240px;
  }

  .similarity-columns {
    grid-template-columns: 1fr;
  }

  .match-radar-canvas--compare {
    display: none;
  }

  .match-radar-bars {
    display: grid;
  }

  .result-section-nav {
    border-radius: 14px;
    justify-content: flex-start;
    margin-left: 12px;
    margin-right: 12px;
    max-width: calc(100% - 24px);
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-section-nav__link,
  .result-reveal__portrait .portrait-result {
    transition: none !important;
  }
}
