/* ── 基础 ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(1100px 760px at 88% -12%, rgba(180, 85, 59, 0.13), transparent 62%),
    radial-gradient(900px 700px at -8% 108%, rgba(91, 106, 80, 0.15), transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(180, 85, 59, 0.22);
  color: var(--ink);
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

/* 这些标题只用于程序化聚焦与读屏，不参与 Tab 顺序 */
.intro__title:focus,
.quiz__scene:focus,
.result__name:focus {
  outline: none;
}

.hidden {
  display: none !important;
}

.serif {
  font-family: var(--serif);
}

.label {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* 纸面颗粒与光晕 */
.grain {
  position: fixed;
  inset: -60%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  animation: drift 28s ease-in-out infinite alternate;
}

.ambient__orb--clay {
  top: -14vw;
  right: -10vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(180, 85, 59, 0.22), transparent 68%);
}

.ambient__orb--moss {
  bottom: -20vw;
  left: -14vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(91, 106, 80, 0.2), transparent 68%);
  animation-delay: -14s;
}

/* ── 舞台 ─────────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 2;
}

.stage {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 34px) var(--pad) 44px;
}

.stage--intro,
.stage--quiz {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ── 顶栏 ─────────────────────────────────────────────── */
.topbar,
.result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.6s ease;
}

.brand:hover .brand__mark {
  transform: rotate(180deg);
}

.topbar__meta {
  white-space: nowrap;
}

/* 站内推广条 */
.promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(180, 85, 59, 0.2);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(180, 85, 59, 0.08), rgba(181, 138, 71, 0.05));
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.06em;
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.promo-bar__tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--clay);
  color: var(--paper);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.promo-bar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-dim);
  opacity: 0.5;
}

.promo-bar__arrow {
  margin-left: auto;
  color: var(--clay);
}

/* 好友挑战提示 */
.challenge-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(180, 85, 59, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(180, 85, 59, 0.09), rgba(181, 138, 71, 0.04));
  animation: fadeUp 0.5s ease both;
}

.challenge-banner__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--paper);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.challenge-banner p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.challenge-banner p b {
  color: var(--clay);
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: -3px;
}

.challenge-banner p span {
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ── 开场 ─────────────────────────────────────────────── */
.intro__hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(40px, 9vh, 104px) 0 clamp(30px, 6vh, 60px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 3vh, 28px);
  color: var(--clay);
  font-size: 11px;
  letter-spacing: 0.26em;
  animation: fadeUp 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.intro__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.8vw, 3.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.005em;
  animation: fadeUp 0.8s 0.06s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.intro__title em {
  position: relative;
  font-style: normal;
  color: var(--clay);
  background: linear-gradient(
    transparent 64%,
    rgba(180, 85, 59, 0.15) 64%,
    rgba(180, 85, 59, 0.15) 92%,
    transparent 92%
  );
}

.intro__lead {
  max-width: 34em;
  margin: clamp(20px, 3.5vh, 30px) 0 0;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.95;
  animation: fadeUp 0.8s 0.14s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.intro__actions {
  margin-top: clamp(28px, 5vh, 42px);
  animation: fadeUp 0.8s 0.22s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.intro__note {
  margin: 14px 0 0;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.intro__note--promo {
  margin-top: 6px;
  color: var(--clay);
}

/* 年龄表盘 */
.dial {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.dial::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 28%,
    rgba(255, 255, 255, 0.9),
    rgba(234, 225, 208, 0.55) 56%,
    rgba(180, 85, 59, 0.06)
  );
  box-shadow: inset 0 0 46px rgba(34, 32, 27, 0.045);
}

.dial__svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial__ring-outer {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.dial__ring-dash {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  opacity: 0.45;
  transform-origin: 150px 150px;
  animation: spin 80s linear infinite;
}

.dial__ring-inner {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
}

.dial__ticks line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.3;
}

.dial__center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dial__q {
  font-family: var(--serif);
  font-size: clamp(5rem, 17vw, 7.4rem);
  line-height: 0.9;
  color: var(--ink);
}

.dial__cap {
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.dial__orbit {
  position: absolute;
  inset: 0;
  z-index: 4;
  animation: spin 26s linear infinite;
}

.dial__orbit::before {
  content: "";
  position: absolute;
  top: 5.4%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 6px rgba(180, 85, 59, 0.12);
}

/* 样例人格 */
.teaser {
  padding: clamp(20px, 3.5vh, 30px) 0 0;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.teaser__label {
  margin: 0 0 12px;
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.24em;
}

.teaser__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.teaser__item {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.teaser__item b {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.teaser__item i {
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.teaser__sep {
  color: var(--line);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.teaser__note {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

/* 上次档案 */
.last-report {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(251, 247, 239, 0.5);
  animation: fadeUp 0.5s ease both;
}

.last-report__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.last-report__btn > span:first-child {
  flex: 1;
  min-width: 0;
  line-height: 1.7;
}

.last-report__btn > span:last-child {
  flex: 0 0 auto;
  padding-top: 1px;
}

.last-report__btn b {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  vertical-align: -2px;
}

.last-report__btn span {
  color: var(--ink-dim);
  white-space: nowrap;
}

.last-report__btn:hover span {
  color: var(--accent);
}

/* 页脚 */
.foot {
  margin-top: clamp(28px, 5vh, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  line-height: 1.9;
  text-align: center;
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.foot p {
  margin: 0;
}

/* ── 按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 34px -22px rgba(34, 32, 27, 0.7);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -22px rgba(34, 32, 27, 0.55);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--accent {
  border-color: rgba(180, 85, 59, 0.45);
  background: rgba(180, 85, 59, 0.06);
  color: var(--clay);
}

.btn--accent:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn--text {
  padding-inline: 8px;
  background: none;
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}

.btn--text:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.btn--hero {
  padding: 17px 30px;
  font-size: 15px;
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn--hero:hover .btn__arrow {
  transform: translateX(4px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.link-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.link-btn:hover:not(:disabled) {
  color: var(--accent);
}

.link-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── 答题 ─────────────────────────────────────────────── */
.quiz__progress {
  height: 2px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

#progressBar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clay), var(--gold));
  transition: width 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.quiz__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(34px, 8vh, 90px) 0;
}

.quiz__body.is-entering {
  animation: qIn 0.4s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.quiz__body.is-leaving {
  animation: qOut 0.18s ease both;
}

.quiz__kicker {
  margin: 0 0 18px;
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.3em;
}

.quiz__scene {
  margin: 0 0 clamp(28px, 5vh, 46px);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.quiz__options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 247, 239, 0.55);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.option:hover {
  border-color: rgba(180, 85, 59, 0.5);
  background: var(--card);
  transform: translateX(4px);
  box-shadow: 0 12px 26px -22px rgba(34, 32, 27, 0.45);
}

.option__letter {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: 14px;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.option.is-selected {
  border-color: var(--accent);
  background: rgba(180, 85, 59, 0.075);
}

.option.is-selected .option__letter {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.quiz__options.is-locked .option {
  pointer-events: none;
}

.quiz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.quiz__hint {
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* ── 结果 ─────────────────────────────────────────────── */
.stage--result {
  max-width: 980px;
}

.result__top {
  margin-bottom: clamp(22px, 4vh, 34px);
}

.result__card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(251, 247, 239, 0.92)),
    var(--card);
  box-shadow: var(--shadow);
  animation: fadeUp 0.65s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.result__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 88% 0%, rgba(180, 85, 59, 0.12), transparent 66%),
    radial-gradient(560px 380px at 0% 100%, rgba(91, 106, 80, 0.09), transparent 65%);
}

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

.result__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.result__age {
  min-width: 0;
}

.result__number {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: clamp(5.4rem, 15vw, 9rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.result__number i {
  margin-left: 0.1em;
  color: var(--ink-2);
  font-size: 0.22em;
  font-style: normal;
  letter-spacing: 0.04em;
  -webkit-text-fill-color: var(--ink-2);
}

.result__gap {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.result__persona {
  padding-left: clamp(0px, 2vw, 26px);
  border-left: 1px solid var(--line-soft);
}

.result__mark {
  margin-bottom: 16px;
}

.result__mark .icon {
  display: block;
}

.result__name {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
}

.result__en {
  margin: 0 0 16px;
  color: var(--ink-dim);
  font-size: 9.5px;
  letter-spacing: 0.22em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.divider {
  position: relative;
  height: 1px;
  margin: clamp(30px, 5vw, 46px) 0;
  background: var(--line);
}

.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 年龄标尺 */
.ruler__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  color: var(--ink-dim);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.ruler__head p {
  margin: 0;
}

#actualAgeLabel {
  color: var(--ink-2);
}

.ruler__track {
  position: relative;
  height: 64px;
  margin: 28px 0 10px;
}

.ruler__track::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(180, 85, 59, 0.2),
    rgba(181, 138, 71, 0.28),
    rgba(91, 106, 80, 0.2)
  );
}

.ruler__band {
  position: absolute;
  top: 22px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.55;
  transition:
    left 0.12s linear,
    width 0.12s linear;
}

.ruler__marker {
  position: absolute;
  top: 11px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  transition: left 0.12s linear;
}

.ruler__marker span {
  position: absolute;
  left: 50%;
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ruler__marker span b {
  color: var(--ink);
  font-weight: 600;
}

.ruler__marker--mental {
  z-index: 3;
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(251, 247, 239, 0.9),
    0 0 0 5px rgba(34, 32, 27, 0.1);
}

.ruler__marker--mental span {
  top: -25px;
  color: var(--accent);
}

.ruler__marker--actual {
  z-index: 4;
  background: var(--card);
  border: 2px solid var(--ink);
  cursor: grab;
}

.ruler__marker--actual span {
  top: 30px;
}

.ruler__marker.is-left span {
  left: 0;
  transform: none;
}

.ruler__marker.is-right span {
  right: 0;
  left: auto;
  transform: none;
}

#actualRange {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.ruler__track:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 8px;
}

.ruler__scale {
  display: flex;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.ruler__text {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.9;
  color: var(--ink-2);
}

/* 雷达与气质 */
.result__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head span {
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#radarWrap {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.radar__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar__ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.radar__axis {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.radar__avg {
  fill: none;
  stroke: rgba(34, 32, 27, 0.3);
  stroke-width: 1.1;
  stroke-dasharray: 3 4;
}

.radar__user {
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.radar__label {
  fill: var(--ink-dim);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.radar__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.radar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--user {
  background: var(--accent);
}

.dot--avg {
  border: 1px dashed var(--ink-2);
  background: transparent;
}

.trait-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trait-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.trait-list li:first-child {
  border-top: 0;
}

.trait__idx {
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: 11px;
}

.trait__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.trait__name em {
  margin-left: 6px;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.16em;
}

.trait__line {
  margin: 3px 0 0;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.trait__value {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.percentile {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(34, 32, 27, 0.028);
}

.percentile > p:first-child {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
}

.percentile__bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

#percentileBar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.percentile__note {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* 解读 */
.narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 4vw, 46px);
  margin-top: clamp(34px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

.narrative__item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.narrative__item--wide {
  grid-column: 1 / -1;
}

.narrative__item p {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 2;
  color: var(--ink-2);
}

.narrative__item--wide p {
  max-width: 46em;
  font-size: clamp(1.05rem, 1.8vw, 1.16rem);
}

.narrative blockquote {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding: 26px 30px;
  border-left: 3px solid var(--accent);
  border-radius: 0 20px 20px 0;
  background: linear-gradient(
    135deg,
    rgba(180, 85, 59, 0.075),
    rgba(181, 138, 71, 0.035) 55%,
    transparent
  );
}

.narrative blockquote p {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.8;
  color: var(--ink);
}

.narrative blockquote cite {
  display: block;
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(180, 85, 59, 0.08);
  color: var(--clay);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* 好友对比 */
.challenge-compare {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg, rgba(180, 85, 59, 0.07), transparent 70%);
}

.challenge-compare__headline {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.challenge-compare__sub {
  margin: 6px 0 0;
  color: var(--ink-dim);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* 分享引导 */
.share-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: clamp(26px, 4vh, 34px) 0 0;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.share-prompt p {
  margin: 0;
}

.share-prompt__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(180, 85, 59, 0.1);
  color: var(--clay);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* 结果操作 */
.result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(18px, 3vh, 26px) 0 4px;
}

/* ── 弹层与提示 ───────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 17, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.modal__panel {
  position: relative;
  width: min(520px, 94vw);
  max-height: 92svh;
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 40px 100px -30px rgba(15, 13, 10, 0.6);
  animation: modalIn 0.32s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.modal__panel h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.modal__panel img {
  display: block;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.modal__hint {
  margin: 12px 0 16px;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.is-locked {
  overflow: hidden;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 300;
  max-width: calc(100vw - 40px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(34, 32, 27, 0.92);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

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

/* ── 动效 ─────────────────────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 3vh, 0) scale(1.08);
  }
}

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

@keyframes qIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes qOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── 适配 ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .intro__hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: clamp(32px, 6vh, 56px);
  }

  .dial {
    width: min(250px, 64vw);
    order: 2;
  }

  .intro__copy {
    order: 1;
  }

  .intro__lead {
    max-width: 38em;
  }

  .result__hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .result__persona {
    padding: 24px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .result__grid {
    grid-template-columns: 1fr;
  }

  #radarWrap {
    max-width: 350px;
  }
}

@media (max-width: 620px) {
  .stage {
    padding-bottom: 32px;
  }

  .topbar,
  .result__top {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .brand {
    font-size: 11px;
  }

  .intro__title {
    font-size: clamp(2.2rem, 9.4vw, 3rem);
  }

  .intro__lead {
    font-size: 0.95rem;
  }

  .teaser__row {
    gap: 8px 12px;
  }

  .teaser__item b {
    font-size: 1.4rem;
  }

  .teaser__item i {
    font-size: 10.5px;
  }

  .teaser__sep {
    display: none;
  }

  .teaser__item {
    padding: 5px 11px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
  }

  .last-report__btn {
    gap: 10px;
    font-size: 12px;
  }

  .promo-bar {
    gap: 7px;
    padding: 8px 11px;
    font-size: 10px;
    line-height: 1.5;
  }

  .promo-bar__dot,
  .promo-bar__arrow {
    display: none;
  }

  .challenge-banner {
    padding: 14px 16px;
  }

  .share-prompt {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .quiz__scene {
    font-size: clamp(1.4rem, 6.2vw, 1.8rem);
  }

  .option {
    padding: 15px 16px;
    font-size: 14px;
  }

  .option__letter {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .quiz__hint {
    display: none;
  }

  .result__card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .result__number {
    font-size: clamp(5rem, 25vw, 7rem);
  }

  .result__name {
    font-size: 1.65rem;
  }

  .narrative {
    grid-template-columns: 1fr;
  }

  .narrative__item--wide {
    grid-column: auto;
  }

  .narrative blockquote {
    grid-column: auto;
    padding: 22px 20px;
  }

  .result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result__actions .btn {
    width: 100%;
  }

  .modal__panel {
    padding: 16px;
  }

  .ruler__head {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
