:root {
  --color-paper: #fbf7f0;
  --color-paper-warm: #f5f1ea;
  --color-paper-deep: #ebe0d4;
  --color-surface: #fffdf8;
  --color-line: #e4d9cf;
  --color-line-strong: #cbbbae;
  --color-text: #3a2f29;
  --color-text-muted: #7b6d63;
  --color-text-soft: #a59a90;
  --archetype-strategy: #8f7048;
  --archetype-nurture: #ddb8a8;
  --archetype-insight: #8fa8ad;
  --archetype-pioneer: #c98a5a;
  --accent-mint: #c3d8dc;
  --accent-lilac: #d7cdea;
  --accent-butter: #f7e390;
  --accent-rose: #dcb9bf;
  --shadow-paper: 0 18px 54px rgba(58, 47, 41, 0.08);
  --shadow-soft: 0 10px 28px rgba(58, 47, 41, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(rgba(58, 47, 41, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(221, 184, 168, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(195, 216, 220, 0.18), transparent 38%),
    var(--color-paper);
  background-size: 18px 18px, auto, auto, auto;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 30px 18px 52px;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
}

.page-shell::before {
  top: -160px;
  left: -150px;
  background: radial-gradient(circle, rgba(247, 227, 144, 0.25), transparent 68%);
}

.page-shell::after {
  right: -170px;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(215, 205, 234, 0.24), transparent 68%);
}

.home-screen,
.test-container,
.result-container,
.share-page {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: 0 auto;
}

.home-screen {
  width: min(100%, 560px);
  text-align: center;
}

.test-container.wide {
  width: min(100%, 980px);
}

.test-container.narrow,
.result-container {
  width: min(100%, 720px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-line-strong);
}

.home-title,
.question-title,
.result-title,
.role-title,
.life-question,
.section-heading h2,
.reading-block h3 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.home-title {
  margin: 22px 0 14px;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1.08;
}

.home-copy {
  width: min(100%, 430px);
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.home-copy span {
  display: block;
}

.door-threshold {
  position: relative;
  min-height: 360px;
  margin: 34px auto 30px;
  border: 1px solid rgba(203, 187, 174, 0.76);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(247, 227, 144, 0.24), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(195, 216, 220, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.72), rgba(245, 241, 234, 0.82));
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}

.door-threshold::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(143, 112, 72, 0.22);
  border-radius: 18px;
  pointer-events: none;
}

.threshold-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 280px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 227, 144, 0.34), rgba(221, 184, 168, 0.16) 42%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(4px);
}

.door-label {
  position: absolute;
  left: 50%;
  top: 24px;
  z-index: 2;
  transform: translateX(-50%);
  border: 1px solid rgba(143, 112, 72, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  padding: 7px 13px;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-door-grid,
.q-image-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-door-grid {
  padding: 76px 28px 88px;
}

.home-door-card,
.image-choice {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  margin: 0;
  border: 1px solid rgba(203, 187, 174, 0.84);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 16px 30px rgba(58, 47, 41, 0.09);
  overflow: hidden;
}

.home-door-card img,
.image-choice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
}

.home-door-card::after,
.image-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(247, 227, 144, 0.24), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.door-note {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: min(82%, 380px);
  margin: 0;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  line-height: 1.7;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
}

.primary-button {
  min-width: 178px;
  border: 1px solid rgba(143, 112, 72, 0.18);
  background: var(--archetype-strategy);
  box-shadow: 0 12px 26px rgba(143, 112, 72, 0.18);
  color: var(--color-surface);
  font-size: 15px;
  font-weight: 500;
}

.secondary-button {
  border: 1px solid var(--color-line-strong);
  background: rgba(255, 253, 248, 0.7);
  color: var(--color-text-muted);
  font-size: 14px;
}

.home-meta {
  margin-top: 18px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.gentle-note {
  width: min(100%, 400px);
  margin: 24px auto 0;
  border-top: 1px solid var(--color-line);
  padding-top: 18px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.75;
}

.test-screen {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 84px);
}

.question-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--color-text-muted);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-line {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(228, 217, 207, 0.76);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--archetype-nurture), var(--archetype-pioneer));
}

.question-nav {
  display: flex;
  justify-content: flex-start;
  margin: -10px 0 22px;
}

.back-button {
  border: 1px solid rgba(203, 187, 174, 0.86);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 9px 14px;
}

.question-hero {
  text-align: center;
}

.question-title {
  margin: 0;
  font-size: clamp(38px, 8vw, 62px);
  line-height: 1.08;
}

.question-guide {
  width: min(100%, 460px);
  margin: 16px auto 0;
  color: var(--color-text-muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  line-height: 1.85;
}

.question-guide span {
  display: block;
}

.q-image-stage,
.question-card,
.result-card,
.section-card {
  position: relative;
  border: 1px solid var(--color-line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 10%, rgba(215, 205, 234, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(245, 241, 234, 0.92));
  box-shadow: var(--shadow-paper);
}

.q-image-stage {
  margin-top: 34px;
  padding: 34px;
}

.q-image-stage::before,
.question-card::before,
.result-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(143, 112, 72, 0.2);
  border-radius: 16px;
  pointer-events: none;
}

.image-choice,
.life-choice {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.image-choice {
  padding: 0;
}

.image-choice:hover,
.image-choice.is-selected {
  transform: translateY(-6px);
  border-color: rgba(143, 112, 72, 0.7);
  box-shadow: 0 22px 46px rgba(143, 112, 72, 0.18);
}

.selected-mark {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(143, 112, 72, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.84);
  color: var(--archetype-strategy);
  font-size: 14px;
  opacity: 0;
}

.is-selected .selected-mark {
  opacity: 1;
}

.question-card {
  padding: 30px;
}

.question-card > * {
  position: relative;
}

.life-question {
  margin: 4px 0 12px;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.35;
}

.question-subcopy {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.life-options {
  display: grid;
  gap: 12px;
}

.life-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.74);
  padding: 16px 52px 16px 16px;
  color: var(--color-text);
  text-align: left;
}

.life-choice:hover,
.life-choice.is-selected {
  transform: translateY(-2px);
  border-color: rgba(143, 112, 72, 0.62);
  background: rgba(245, 241, 234, 0.78);
  box-shadow: 0 12px 26px rgba(58, 47, 41, 0.07);
}

.option-letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(143, 112, 72, 0.22);
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 12px;
}

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

.life-choice .selected-mark {
  right: 14px;
  top: 16px;
}

.result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.result-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.15;
}

.archive-number {
  color: var(--color-text-soft);
  font-size: 12px;
  letter-spacing: 0.11em;
}

.result-card,
.section-card {
  overflow: hidden;
  padding: 28px;
}

.result-card > *,
.section-card > * {
  position: relative;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.role-title {
  margin: 32px 0 14px;
  font-size: clamp(42px, 10vw, 68px);
  line-height: 1;
}

.role-identity {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(203, 187, 174, 0.62);
}

.role-english {
  color: var(--archetype-pioneer);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 600;
}

.role-combination,
.keyword-chip {
  width: fit-content;
  border: 1px solid rgba(143, 112, 72, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.56);
  color: var(--color-text-muted);
}

.role-combination {
  padding: 7px 13px;
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.summary {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  line-height: 1.75;
}

.keyword-row,
.talent-tags,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-chip {
  padding: 7px 11px;
  font-size: 12px;
}

.talent-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.talent-tag {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.62);
  padding: 14px;
}

.talent-tag span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.talent-tag strong {
  font-size: 18px;
}

.section-card {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-index {
  color: var(--color-text-soft);
  font-size: 12px;
  letter-spacing: 0.13em;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
}

.radar-frame {
  display: grid;
  place-items: center;
  min-height: 258px;
  padding: 24px;
  border: 1px dashed rgba(143, 112, 72, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(221, 184, 168, 0.22), transparent 48%),
    rgba(245, 241, 234, 0.48);
}

.radar-svg {
  display: block;
  width: min(100%, 230px);
  height: auto;
  overflow: visible;
}

.score-list {
  display: grid;
  gap: 12px;
}

.score-item {
  display: grid;
  grid-template-columns: 64px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.score-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--color-paper-deep);
}

.score-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fill);
}

.reading-list {
  display: grid;
  gap: 16px;
}

.reading-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(245, 241, 234, 0.48);
  padding: 22px;
}

.reading-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--archetype-nurture), var(--archetype-pioneer));
  opacity: 0.62;
}

.reading-block .num {
  color: var(--color-text-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.reading-block h3 {
  margin: 11px 0 14px;
  font-size: 22px;
}

.reading-block p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.9;
}

.result-actions {
  justify-content: center;
  margin-top: 24px;
}

.share-page {
  width: min(100%, 520px);
}

.share-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 227, 144, 0.38), transparent 22%),
    radial-gradient(circle at 16% 74%, rgba(195, 216, 220, 0.2), transparent 22%),
    radial-gradient(circle at 86% 82%, rgba(221, 184, 168, 0.22), transparent 24%),
    linear-gradient(155deg, rgba(255, 253, 248, 0.98), rgba(245, 241, 234, 0.94));
  box-shadow: var(--shadow-paper);
  padding: 22px;
}

.share-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(143, 112, 72, 0.22);
  border-radius: 20px;
  pointer-events: none;
}

.share-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 227, 144, 0.28), rgba(221, 184, 168, 0.14) 44%, transparent 70%);
  filter: blur(5px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.share-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-text-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-wallpaper-hero {
  position: relative;
  overflow: hidden;
  height: 430px;
  margin: 20px 0 0;
  border: 1px solid rgba(203, 187, 174, 0.82);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 18px 42px rgba(58, 47, 41, 0.12);
}

.share-wallpaper-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-touch-callout: default;
  user-select: auto;
}

.share-wallpaper-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(251, 247, 240, 0.7));
  pointer-events: none;
}

.share-wallpaper-secret {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--color-text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.share-card-body {
  display: grid;
  justify-items: center;
  padding: 22px 8px 12px;
  text-align: center;
}

.share-site-name {
  margin: 0 0 24px;
  border: 1px solid rgba(143, 112, 72, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.56);
  padding: 7px 13px;
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.share-role-title,
.share-role-english {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
  font-weight: 600;
}

.share-role-title {
  margin: 0;
  font-size: clamp(46px, 12vw, 74px);
  line-height: 1.02;
}

.share-role-english {
  margin: 16px 0 0;
  color: var(--archetype-pioneer);
  font-size: clamp(21px, 5.5vw, 34px);
  line-height: 1.18;
}

.share-role-combination {
  width: fit-content;
  margin: 18px 0 0;
  border: 1px solid rgba(143, 112, 72, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.56);
  padding: 8px 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.share-summary {
  max-width: 360px;
  margin: 26px auto 0;
  color: var(--color-text-muted);
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  line-height: 1.85;
}

.share-author-section {
  margin-top: 18px;
  border: 1px solid rgba(203, 187, 174, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(195, 216, 220, 0.2), transparent 28%),
    rgba(255, 253, 248, 0.58);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.share-author-copy {
  color: var(--color-text-muted);
  text-align: left;
}

.share-author-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.share-author-copy h2 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 1.25;
}

.share-author-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.share-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.share-qr-module {
  display: grid;
  gap: 10px;
  justify-items: center;
  border: 1px solid rgba(228, 217, 207, 0.82);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.56);
  padding: 10px;
}

.share-qr-module p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.share-qr {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 108px);
  border: 1px dashed rgba(143, 112, 72, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(143, 112, 72, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(143, 112, 72, 0.05) 1px, transparent 1px),
    rgba(245, 241, 234, 0.62);
  background-size: 14px 14px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.share-qr img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.share-hint {
  margin: 18px auto 0;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.share-actions {
  margin-top: 16px;
}

.share-preview {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(58, 47, 41, 0.42);
}

.share-preview-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 820px);
  overflow: auto;
  border: 1px solid var(--color-line-strong);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 24px 72px rgba(58, 47, 41, 0.24);
  padding: 22px;
  text-align: center;
}

.share-preview-panel h2 {
  margin: 0 0 8px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 24px;
}

.share-preview-panel p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.share-preview-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 18px;
}

.share-preview-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 13px;
  margin-bottom: 14px;
}

@media print {
  body {
    background: var(--color-paper);
  }

  .page-shell {
    min-height: auto;
    padding: 0;
  }

  .page-shell::before,
  .page-shell::after,
  .share-hint,
  .share-actions {
    display: none;
  }

  .share-page {
    width: 100%;
  }

  .share-card {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 12px 44px;
  }

  .door-threshold {
    min-height: 320px;
  }

  .home-door-grid {
    gap: 7px;
    padding: 72px 18px 90px;
  }

  .home-door-card,
  .image-choice {
    border-radius: 15px;
  }

  .test-screen {
    min-height: auto;
  }

  .test-container.wide {
    width: min(100%, 480px);
  }

  .progress-meta {
    font-size: 11px;
  }

  .question-nav {
    margin: -8px 0 18px;
  }

  .question-title {
    font-size: clamp(31px, 10vw, 44px);
  }

  .question-guide {
    font-size: 16px;
  }

  .q-image-stage {
    margin-top: 22px;
    padding: 14px;
  }

  .q-image-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .image-choice {
    width: 100%;
    max-width: 430px;
    justify-self: center;
  }

  .selected-mark {
    width: 24px;
    height: 24px;
    right: 8px;
    top: 8px;
    font-size: 12px;
  }

  .question-card,
  .result-card,
  .section-card {
    padding: 24px 18px;
  }

  .life-choice {
    padding: 14px 44px 14px 14px;
  }

  .option-text {
    font-size: 15px;
  }

  .result-header {
    display: block;
  }

  .card-topline {
    display: grid;
  }

  .talent-tags,
  .radar-layout {
    grid-template-columns: 1fr;
  }

  .radar-layout {
    gap: 16px;
  }

  .radar-frame {
    min-height: 232px;
    padding: 24px;
  }

  .radar-svg {
    width: min(100%, 210px);
  }

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

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

  .share-card {
    border-radius: 24px;
    padding: 18px;
  }

  .share-topline {
    display: grid;
    gap: 6px;
  }

  .share-card-body {
    padding: 20px 2px 10px;
  }

  .share-wallpaper-hero {
    height: 390px;
    border-radius: 20px;
  }

  .share-author-section {
    padding: 14px;
  }

  .share-qr-grid {
    gap: 10px;
  }

  .share-qr-module {
    padding: 10px;
  }

  .share-qr {
    width: min(100%, 96px);
  }

  .share-summary {
    font-size: 17px;
  }
}
