:root {
  --paper: #f8f4ef;
  --paper-deep: #efe7de;
  --card: rgba(255, 253, 250, 0.9);
  --ink: #3c3532;
  --muted: #817773;
  --rose: #a96f62;
  --rose-light: #d5a391;
  --sage: #9aa88f;
  --line: rgba(113, 91, 82, 0.15);
  --shadow: 0 18px 50px rgba(100, 76, 65, 0.09);
  --shadow-soft: 0 10px 30px rgba(83, 61, 52, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 183, 165, 0.24), transparent 30%),
    radial-gradient(circle at 92% 74%, rgba(183, 198, 175, 0.2), transparent 28%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(169, 111, 98, 0.28);
  outline-offset: 3px;
}

.screen {
  position: relative;
  width: min(100%, 680px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  animation: screen-in 0.36s ease both;
}

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

.home-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(50px, env(safe-area-inset-top)) 26px max(24px, env(safe-area-inset-bottom));
}

.home-content {
  position: relative;
  z-index: 1;
  margin: auto 0;
  text-align: center;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -120px;
  border: 1px solid rgba(170, 118, 100, 0.15);
  box-shadow: inset 0 0 70px rgba(203, 153, 133, 0.08);
}

.ambient-two {
  width: 180px;
  height: 180px;
  left: -110px;
  bottom: 15%;
  background: rgba(175, 191, 166, 0.12);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(169, 111, 98, 0.35);
  border-radius: 50%;
  color: var(--rose);
}

.brand-mark span {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
}

.eyebrow,
.section-index,
.report-date {
  margin: 0;
  color: var(--rose);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.home-content h1 {
  margin: 8px 0 20px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero-line {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.soft-divider,
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
  color: var(--rose-light);
  font-size: 10px;
}

.soft-divider span,
.ornament span {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 111, 98, 0.4));
}

.soft-divider span:last-child,
.ornament span:last-child {
  transform: rotate(180deg);
}

.home-description {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.test-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 18px;
  color: #756a66;
  font-size: 13px;
}

.test-meta i {
  font-family: Georgia, serif;
  font-style: normal;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose-light);
}

.primary-button,
.secondary-button {
  width: min(100%, 360px);
  min-height: 54px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, #b47c6d, #936157);
  box-shadow: 0 12px 30px rgba(143, 91, 78, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.primary-button span {
  display: inline-block;
  margin-left: 10px;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.home-note {
  margin: 14px 0 0;
  color: #9a908b;
  font-size: 11px;
}

.disclaimer {
  color: #948b87;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.home-disclaimer {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 38px auto 0;
}

.quiz-screen {
  padding: max(14px, env(safe-area-inset-top)) 20px max(36px, env(safe-area-inset-bottom));
}

.quiz-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 16px;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(248, 244, 239, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(89, 66, 56, 0.05);
  color: #665b57;
  cursor: pointer;
  font-size: 20px;
}

.close-button {
  font-size: 22px;
  font-weight: 300;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #8b817d;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.progress-copy strong {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}

.progress-copy small {
  color: #9d938e;
  font-size: 10px;
}

.progress-track,
.dimension-track {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(132, 108, 98, 0.11);
}

.progress-track span,
.dimension-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-light), var(--rose));
  transition: width 0.35s ease;
}

.question-stage {
  width: min(100%, 550px);
  margin: clamp(32px, 6vh, 54px) auto 0;
  padding-bottom: 12px;
}

.question-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(169, 111, 98, 0.07);
  color: var(--rose);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.question-stage h2 {
  margin: 0 0 26px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(21px, 5.5vw, 28px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.options {
  display: grid;
  gap: 11px;
}

.option {
  display: grid;
  grid-template-columns: 38px 1fr 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(116, 94, 85, 0.12);
  border-radius: 20px;
  background: rgba(255, 254, 252, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.option:hover {
  border-color: rgba(169, 111, 98, 0.32);
  transform: translateY(-2px);
}

.option.is-selected {
  border-color: rgba(169, 111, 98, 0.65);
  background: linear-gradient(135deg, rgba(253, 245, 240, 0.98), rgba(249, 238, 232, 0.92));
  box-shadow: 0 10px 26px rgba(145, 94, 80, 0.1);
}

.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(169, 111, 98, 0.28);
  border-radius: 50%;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 13px;
}

.is-selected .option-letter {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.option-text {
  color: #4e4642;
  font-size: 14px;
  line-height: 1.68;
}

.option-check {
  color: var(--rose);
  opacity: 0;
  text-align: left;
}

.is-selected .option-check {
  opacity: 1;
}

.previous-button {
  display: block;
  width: auto;
  min-height: 40px;
  margin: 26px auto 0;
  padding: 0 18px;
  border-color: transparent;
  color: #8d817c;
  font-size: 13px;
}

.result-screen {
  padding: max(16px, env(safe-area-inset-top)) 14px max(36px, env(safe-area-inset-bottom));
  overflow: visible;
}

.result-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 16px;
  color: #776c68;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.text-button {
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
  font-size: 11px;
}

.report-card,
.section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 111, 99, 0.12);
  border-radius: 26px;
  background: rgba(255, 254, 252, 0.93);
  box-shadow: var(--shadow);
}

.report-card {
  padding: 38px 25px 36px;
  text-align: center;
}

.report-card::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(177, 138, 121, 0.11);
  border-radius: 21px;
  content: "";
  pointer-events: none;
}

.report-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -160px;
  left: 50%;
  border-radius: 50%;
  background: rgba(214, 175, 157, 0.2);
  filter: blur(12px);
  transform: translateX(-50%);
}

.report-date {
  position: relative;
}

.score-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 23px auto 25px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 7;
}

.ring-base {
  stroke: rgba(164, 126, 112, 0.11);
}

.ring-value {
  stroke: url(#ringGradient);
  stroke-linecap: round;
  animation: draw-ring 1s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}

@keyframes draw-ring {
  from { stroke-dashoffset: 478; }
}

.score-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-content span {
  margin-bottom: 4px;
  color: #8c817c;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.score-content strong {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
}

.score-content small {
  margin-left: 3px;
  color: #8b7770;
  font-family: inherit;
  font-size: 14px;
}

.result-label,
.focus-label {
  margin: 0 0 9px;
  color: var(--rose);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.result-name {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.result-tagline {
  margin: 13px 0 0;
  color: #776c67;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
}

.result-text,
.advice-text,
.hidden-intro {
  position: relative;
  margin: 0;
  color: #655c58;
  font-size: 14px;
  line-height: 2.05;
  text-align: justify;
  white-space: pre-line;
}

.section-card {
  margin-top: 16px;
  padding: 30px 23px;
}

.section-card h2 {
  margin: 9px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 600;
}

.section-intro {
  margin: 0;
  color: #8b817d;
  font-size: 12px;
  line-height: 1.7;
}

.dimension-list {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.dimension-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.dimension-heading strong {
  flex: 0 0 auto;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 600;
}

.dimension-heading em {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
}

.dimension-heading em small {
  margin-left: 2px;
  color: #958b86;
  font-family: inherit;
  font-size: 10px;
}

.dimension-description {
  margin: 0 0 10px;
  color: #958b86;
  font-size: 10px;
  line-height: 1.6;
}

.dimension-track {
  height: 9px;
  background: #eee8e2;
}

.dimension-item:nth-child(2) .dimension-track span {
  background: linear-gradient(90deg, #bfaa8d, #a7886c);
}

.dimension-item:nth-child(3) .dimension-track span {
  background: linear-gradient(90deg, #aeb9a5, #829078);
}

.chart-note {
  margin: 22px 0 0;
  color: #a19894;
  font-size: 9px;
  text-align: right;
}

.advice-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(198, 217, 190, 0.18), transparent 38%),
    rgba(255, 253, 250, 0.9);
}

.advice-card .advice-text {
  margin-top: 2px;
  padding-top: 2px;
}

.focus-label {
  display: inline-block;
  margin-top: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(169, 111, 98, 0.08);
  letter-spacing: 0.05em;
}

.advice-level {
  margin: 0 0 4px;
  color: #8b817d;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.advice-card h2 {
  margin: 8px 0 15px;
}

.tiny-prompt {
  margin-top: 22px;
  padding: 15px 17px;
  border-left: 2px solid rgba(169, 111, 98, 0.38);
  background: rgba(245, 238, 232, 0.65);
}

.tiny-prompt span {
  color: var(--rose);
  font-size: 10px;
}

.tiny-prompt p {
  margin: 6px 0 0;
  color: #706762;
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  line-height: 1.7;
}

.hidden-card {
  border-color: rgba(174, 136, 86, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(228, 202, 155, 0.27), transparent 38%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(247, 238, 221, 0.88));
  text-align: center;
}

.star-badge {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(163, 126, 71, 0.3);
  border-radius: 50%;
  color: #aa814a;
}

.hidden-card .section-index {
  color: #a47c48;
}

.hidden-card h2 {
  margin-top: 12px;
}

.hidden-intro {
  margin-top: 12px;
  color: #7a674e;
  text-align: center;
}

.hidden-line {
  width: 44px;
  height: 1px;
  margin: 22px auto;
  background: rgba(164, 124, 72, 0.35);
}

.result-actions {
  display: grid;
  justify-items: center;
  gap: 11px;
  margin: 25px 0 20px;
}

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

.secondary-button {
  border: 1px solid rgba(169, 111, 98, 0.28);
  background: transparent;
  color: var(--rose);
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(58, 50, 47, 0.92);
  box-shadow: 0 10px 30px rgba(40, 30, 26, 0.18);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .screen {
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    border-radius: 32px;
  }

  .home-screen,
  .quiz-screen {
    background: rgba(250, 247, 243, 0.46);
    box-shadow: 0 22px 80px rgba(93, 73, 64, 0.08);
  }

  .result-screen {
    padding-right: 24px;
    padding-left: 24px;
  }

  .question-stage {
    margin-top: 54px;
  }
}

@media (max-width: 380px) {
  .home-screen {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-content h1 {
    font-size: 31px;
  }

  .hero-line {
    font-size: 17px;
  }

  .question-stage {
    margin-top: 28px;
  }

  .option {
    min-height: 66px;
    padding: 12px;
  }

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

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

.home-content {
  width: min(100%, 480px);
  margin: auto;
  padding: 28px 20px 22px;
  border: 1px solid rgba(139, 111, 99, 0.13);
  border-radius: 26px;
  background: rgba(255, 254, 252, 0.92);
  box-shadow: 0 14px 38px rgba(94, 69, 59, 0.08);
}

.brand-mark {
  margin-bottom: 14px;
}

.home-content .eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(169, 111, 98, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.home-content h1 {
  margin: 12px 0;
  font-size: clamp(28px, 7.6vw, 36px);
}

.hero-line {
  font-size: clamp(12px, 3.5vw, 16px);
}

.soft-divider {
  margin: 18px auto;
}

.home-description {
  font-size: 13px;
  line-height: 1.75;
}

.home-features {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  text-align: left;
}

.home-feature {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(139, 111, 99, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 14px rgba(94, 69, 59, 0.025);
}

.home-feature i {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--rose-light);
  box-shadow: 0 0 0 5px rgba(213, 163, 145, 0.16);
}

.home-feature strong,
.home-feature span {
  display: block;
}

.home-feature strong {
  margin-bottom: 3px;
  color: #4b423e;
  font-size: 13px;
}

.home-feature span {
  color: #857a75;
  font-size: 11px;
  line-height: 1.55;
}

.test-meta {
  margin: 16px 0 14px;
}

.home-info-card {
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(139, 111, 99, 0.1);
  border-radius: 14px;
  background: rgba(248, 244, 239, 0.75);
  text-align: left;
}

.home-info-card strong {
  color: #665a55;
  font-size: 11px;
}

.home-info-card p {
  margin: 5px 0 0;
  color: #918681;
  font-size: 9px;
  line-height: 1.65;
}

.question-stage {
  width: min(100%, 500px);
  padding: 20px 16px;
  border: 1px solid rgba(139, 111, 99, 0.13);
  border-radius: 24px;
  background: rgba(255, 254, 252, 0.94);
  box-shadow: var(--shadow-soft);
}

.question-kicker {
  display: flex;
  width: max-content;
  margin: 0 auto 12px;
  padding: 5px 10px;
}

.question-stage h2 {
  margin: 0 2px 16px;
  color: #342e2b;
  font-family: inherit;
  font-size: clamp(16px, 4.3vw, 18px);
  font-weight: 700;
  line-height: 1.72;
  letter-spacing: 0;
  text-align: center;
}

.option {
  grid-template-columns: 24px 1fr 18px;
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 14px;
}

.option.is-selected {
  border-left-width: 4px;
}

.option-letter {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #4f4541;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.is-selected .option-letter {
  background: transparent;
  color: var(--rose);
}

.option-text {
  font-size: 13.5px;
  line-height: 1.62;
}

.report-card .result-text,
.advice-card .advice-text {
  padding: 15px 16px;
  border: 1px solid rgba(169, 111, 98, 0.1);
  border-radius: 15px;
  background: rgba(248, 242, 238, 0.72);
}

.section-card h2 {
  font-size: 21px;
}

.section-index {
  letter-spacing: 0.08em;
}

@media (max-width: 380px) {
  .home-screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-content {
    padding: 24px 15px 18px;
  }

  .home-content h1 {
    font-size: 27px;
  }

  .hero-line {
    font-size: 12px;
  }

  .question-stage {
    padding: 18px 13px;
  }
}

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