:root {
  color-scheme: light;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  color: #422e34;
  background: #fbefec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #442f36;
  --muted: #9b7f83;
  --rose: #c31443;
  --card: rgba(255, 255, 255, 0.96);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #f8e5e8 0%, #fbefec 56%, #faf6f5 100%); }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid rgba(194, 20, 67, .32); outline-offset: 3px; }
.app-shell { min-height: 100vh; padding: 28px 18px 56px; }
.welcome-card { width: min(100%, 430px); margin: 0 auto; padding: 42px 30px 30px; border-radius: 24px; background: var(--card); box-shadow: 0 18px 50px rgba(103, 58, 66, .08); text-align: center; }
.brand { color: #d4486b; font: 700 10px/1.4 Arial, sans-serif; letter-spacing: .38em; }
h1, h2, p { margin-top: 0; }
.welcome-card h1 { margin: 18px 0 7px; font-size: 29px; line-height: 1.35; letter-spacing: .02em; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 9px auto 23px; color: #cba16c; font-size: 11px; }
.ornament span { width: 36px; height: 1px; background: #ead9d5; }
.welcome-lead { margin-bottom: 11px; font-size: 16px; font-weight: 700; }
.welcome-description { margin: 0 auto 19px; color: #806c70; font-size: 13px; line-height: 1.8; }
.test-meta { display: inline-flex; gap: 7px; align-items: center; margin: 0 auto 19px; padding: 7px 13px; border-radius: 99px; background: #fff0f3; color: #9e4c60; font-size: 12px; font-weight: 700; }
.test-meta b { color: #d4a4aa; }
.primary-button { display: block; width: 100%; min-height: 53px; border: 0; border-radius: 14px; background: linear-gradient(100deg, #c20a3d, #f43c7b); box-shadow: 0 7px 14px rgba(202, 26, 71, .18); color: white; font-size: 17px; font-weight: 700; letter-spacing: .12em; }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.local-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 18px; padding: 10px; border: 1px solid #f1e9e8; border-radius: 12px; color: #8b6f75; font-size: 12px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #ca1e48; }
.welcome-divider { height: 1px; margin: 20px 0 21px; background: #eee5e3; }
.feature-list { text-align: left; }
.feature-list h2 { margin: 0 0 10px; color: #9b7d82; font-size: 12px; }
.feature-item { display: flex; gap: 15px; padding: 14px 0; border-bottom: 1px solid #f0e9e7; }
.feature-item:last-child { border-bottom: 0; }
.feature-icon { width: 20px; flex: 0 0 20px; color: #dc7790; font-size: 18px; text-align: center; }
.feature-item strong { display: block; margin: 1px 0 5px; font-size: 14px; }
.feature-item p { margin: 0; color: #806e71; font-size: 12px; line-height: 1.7; }
.steps { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin: 24px 0 17px; }
.steps div { display: grid; gap: 5px; min-width: 72px; }
.steps span { color: #d2788a; font-size: 10px; }
.steps strong { font-size: 11px; }
.steps > i { width: 24px; height: 1px; background: #ecd9db; }
.disclaimer { margin: 0; color: #9d8689; font-size: 10px; line-height: 1.7; }

.quiz-shell { width: min(100%, 540px); margin: 28px auto 0; }
.question-card { padding: 32px 29px; border-radius: 20px; background: var(--card); box-shadow: 0 18px 50px rgba(103, 58, 66, .08); }
.progress-row { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; color: #ae8e58; font-size: 13px; }
.progress-row strong { flex: 0 0 auto; }
.progress-track, .score-track { flex: 1; overflow: hidden; height: 3px; border-radius: 99px; background: #f2e5e6; }
.progress-track span, .score-track span { display: block; height: 100%; border-radius: inherit; background: #c91343; transition: width .22s ease; }
.question-card h1 { margin: 0 0 34px; color: #3b2c32; font-size: 19px; line-height: 1.65; }
.option-list { display: grid; gap: 16px; }
.option-card { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 69px; padding: 14px 18px; border: 1px solid #ded8d8; border-radius: 16px; background: rgba(255,255,255,.8); text-align: left; font-size: 14px; line-height: 1.65; transition: border-color .15s, background .15s, box-shadow .15s; }
.option-card:hover { border-color: #df9eae; }
.option-card.is-selected { border-color: #cc234c; background: #fff7f8; box-shadow: 0 0 0 2px rgba(204,35,76,.08); }
.radio-mark { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid #d9d8da; border-radius: 50%; background: white; }
.is-selected .radio-mark { border: 6px solid #c91b46; }
.quiz-navigation { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 12px; margin: 28px 0 0; }
.text-button, .next-button { min-height: 44px; border: 0; background: transparent; color: #604d53; font-size: 13px; }
.text-button:disabled { color: #c4b7b9; cursor: default; }
.next-button { justify-self: end; min-width: 92px; padding: 0 17px; border: 1px solid #dfa9b6; border-radius: 10px; color: #ba2448; font-weight: 700; }
.next-button:disabled { border-color: #e6dcdd; color: #c2b6b7; cursor: default; }
.quiz-hint { margin: 17px 0 0; color: #9c878a; font-size: 11px; text-align: center; }
.quiz-hint span { margin: 0 7px; color: #d1b4b8; }

.result-shell { width: min(100%, 405px); margin: 15px auto 0; }
.result-page-title { margin: 0 0 17px; text-align: center; font-size: 22px; line-height: 1.4; }
.result-card { margin-bottom: 14px; padding: 22px 19px; border-radius: 20px; background: var(--card); box-shadow: 0 14px 35px rgba(103,58,66,.07); }
.radar-card { padding: 16px 11px 18px; }
.radar-chart { display: block; width: 100%; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: #e6dfdc; stroke-width: 1; }
.radar-axis { stroke: #e9e2e0; stroke-width: 1; }
.radar-reference { fill: rgba(202, 162, 108, .13); stroke: #c49a6a; stroke-width: 1.5; }
.radar-values { fill: rgba(190, 39, 60, .18); stroke: #bd3344; stroke-width: 2; }
.radar-dot { fill: #bd3344; stroke: white; stroke-width: 1.5; }
.radar-label { fill: #4c3c40; font-size: 10px; font-family: inherit; font-weight: 700; }
.chart-legend { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: #f9f2ec; color: #9a835f; font-size: 11px; font-weight: 700; }
.chart-legend span:last-child { background: #fbefef; color: #9b4b53; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #c59c6c; }
.legend-dot.own { background: #bd3344; }
.dominant-card { padding: 19px 18px 17px; text-align: center; }
.eyebrow { margin: 0 0 9px; color: #89747a; font-size: 12px; font-weight: 700; }
.dominant-card h2 { margin: 0 0 8px; color: #c14e42; font-size: 21px; }
.secondary-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; color: #b18c5d; font-size: 17px; font-weight: 700; }
.secondary-tags span:first-child { color: #b18c5d; }
.secondary-tags span:last-child { color: #c91b46; }
.dominant-card blockquote { margin: 12px 0 0; color: #887378; font-size: 12px; font-style: italic; line-height: 1.7; }
.card-heading { margin: 0 0 15px; padding-bottom: 13px; border-bottom: 1px solid #eee7e5; font-size: 15px; }
.score-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.score-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.score-label strong { color: #b83a4c; }
.score-track { height: 9px; background: #f0e9e7; }
.report-card { padding: 22px 19px; }
.report-card .card-heading { display: flex; align-items: center; gap: 8px; border-bottom: 0; padding-bottom: 5px; }
.report-card .card-heading i { width: 3px; height: 17px; border-radius: 3px; background: #d35357; }
.report-section { padding: 3px 0 15px; }
.report-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid #f0e8e6; color: #cf6664; font-size: 12px; }
.report-section-title span { font-style: italic; color: #d8a2a0; }
.report-section p { margin: 0; color: #65545a; font-size: 13px; line-height: 1.95; text-align: justify; }
.result-disclaimer { margin: 2px 0 0; color: #a08b8d; font-size: 10px; text-align: center; }
.result-actions { display: flex; justify-content: center; gap: 12px; margin: 19px 0 10px; }
.share-button, .restart-button { min-height: 40px; padding: 0 17px; border: 1px solid #d8a8b1; border-radius: 10px; background: white; color: #a34657; font-size: 12px; font-weight: 700; }
.restart-button { border-color: #c31443; background: #c31443; color: white; }
.result-footer { color: #9e888b; font-size: 10px; text-align: center; }

@media (max-width: 560px) {
  .app-shell { padding: 12px 12px 34px; }
  .welcome-card { padding: 32px 21px 23px; border-radius: 20px; }
  .welcome-card h1 { font-size: clamp(24px, 6.6vw, 28px); }
  .welcome-lead { font-size: 15px; }
  .welcome-description { font-size: 12px; }
  .steps { gap: 4px; }
  .steps div { min-width: 66px; }
  .steps > i { width: 17px; }
  .quiz-shell { margin-top: 14px; }
  .question-card { padding: 24px 19px; border-radius: 18px; }
  .progress-row { margin-bottom: 24px; font-size: 12px; }
  .question-card h1 { margin-bottom: 26px; font-size: 17px; }
  .option-list { gap: 12px; }
  .option-card { min-height: 64px; padding: 12px 14px; font-size: 13px; }
  .quiz-navigation { gap: 5px; margin-top: 18px; }
  .next-button { min-width: 81px; padding: 0 10px; }
  .result-shell { margin-top: 4px; }
  .result-page-title { font-size: 20px; }
  .result-card { margin-bottom: 11px; padding: 18px 15px; border-radius: 17px; }
  .radar-card { padding: 12px 5px 14px; }
  .radar-label { font-size: 9px; }
  .chart-legend { gap: 6px; }
  .chart-legend span { padding: 6px 9px; font-size: 10px; }
  .report-section p { font-size: 12px; line-height: 1.9; }
}

@media print {
  body { background: #fff; }
  .app-shell { padding: 0; }
  .result-shell { width: 100%; margin: 0 auto; }
  .result-actions, .result-footer { display: none; }
  .result-card { box-shadow: none; border: 1px solid #eee; break-inside: avoid; }
}
