:root {
  --paper: #fffaf2;
  --cream: #f2eadf;
  --sage: #9fac92;
  --sage-dark: #56684f;
  --clay: #b58269;
  --cocoa: #8a6b56;
  --brown: #5e4838;
  --ink: #302d27;
  --muted: #786f65;
  --line: #718562;
  --shadow: 0 22px 60px rgba(67, 53, 39, 0.15);
  --readable-text: 16px;
  --readable-small: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.85;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid rgba(95, 74, 60, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: sticky;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: var(--brown);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid rgba(97, 116, 94, 0.35);
  border-radius: 999px;
  color: var(--sage-dark);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 120px clamp(22px, 7vw, 92px) 72px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.82) 40%, rgba(255, 253, 248, 0.18) 76%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.16), rgba(255, 253, 248, 0.5));
}

.hero-content {
  position: relative;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5.2vw, 58px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(27px, 4vw, 42px);
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.lead {
  max-width: 570px;
  color: var(--brown);
  font-size: clamp(16px, 2.1vw, 19px);
}

.hero-actions,
.answer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--sage-dark), #82906e);
  color: #fff;
  box-shadow: var(--shadow);
}

.ghost {
  background: rgba(255, 253, 248, 0.74);
  color: var(--brown);
  border: 1px solid rgba(95, 74, 60, 0.14);
}

.ghost.dark {
  background: transparent;
}

.microcopy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(22px, 6vw, 80px);
}

.section-copy {
  max-width: 720px;
}

.section-copy.narrow {
  max-width: 620px;
  margin: 0 auto 42px;
  text-align: center;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-grid span,
.feature-list div,
.type-grid article,
.result-block,
.result-roadmap {
  background: #fff;
  border: 1px solid rgba(95, 74, 60, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(66, 56, 43, 0.07);
}

.check-grid span {
  padding: 16px 18px;
  color: var(--brown);
}

.check-grid span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sage);
}

.soft-band {
  background: linear-gradient(180deg, #f3f6ed 0%, #fffdf8 100%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(36px, 6vw, 82px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

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

.feature-list div {
  padding: 24px;
}

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

.feature-list strong {
  color: var(--brown);
  font-size: 18px;
}

.feature-list span {
  margin-top: 6px;
  color: var(--muted);
}

.types {
  background: var(--paper);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}

.type-grid article {
  min-height: 230px;
  padding: 24px;
}

.type-grid p {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.type-grid span,
.section p,
.result-lead,
.result-block p {
  color: var(--muted);
}

.line-section {
  padding: clamp(72px, 10vw, 120px) 22px;
  background: #e7eee2;
}

.line-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.line-button {
  margin-top: 10px;
  background: var(--line);
  color: #fff;
  box-shadow: 0 16px 38px rgba(97, 116, 94, 0.18);
}

.demo-link {
  display: block;
  margin-top: 18px;
  color: var(--sage-dark);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer {
  padding: 28px 22px 42px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.diagnosis-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, #fff7f4 0%, #fffaf2 42%, #eef4e9 100%);
}

.quiz-shell {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(22px, 5vw, 58px) 0;
}

.quiz-intro,
.quiz-card,
.result {
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(95, 74, 60, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
}

.result {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.quiz-card {
  position: relative;
  background:
    radial-gradient(circle at 50% -8%, rgba(243, 220, 168, 0.22), transparent 55%),
    linear-gradient(180deg, #fffbf2 0%, #fff7e8 100%);
  border-color: rgba(190, 137, 102, 0.18);
  box-shadow: 0 22px 50px rgba(67, 53, 39, 0.12);
}

.quiz-card::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: var(--clay);
  opacity: 0.45;
}

.quiz-intro {
  position: relative;
  min-height: auto;
  display: grid;
  gap: 24px;
  overflow: hidden;
}

.quiz-intro::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(181, 130, 105, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: clamp(8px, 4vw, 34px);
  text-align: left;
}

.diagnosis-cover {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #f6e5e3;
  box-shadow: 0 18px 44px rgba(67, 53, 39, 0.14);
}

.diagnosis-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.42) 0%, rgba(255, 250, 246, 0.12) 44%, rgba(255, 250, 246, 0) 100%),
    radial-gradient(circle at 50% 21%, rgba(255, 255, 255, 0.68) 0 26%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
}

.diagnosis-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.cover-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 44px) 20px 0;
  text-align: center;
}

.cover-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 4px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 700;
}

.cover-copy h1 {
  margin-bottom: 0;
  color: #6a5147;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(38px, 6.5vw, 58px);
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.top-message {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(181, 130, 105, 0.34);
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-size: clamp(17px, 2.3vw, 24px);
  line-height: 1.65;
}

.hidden {
  display: none;
}

.progress-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e1d6;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--clay));
  transition: width 220ms ease;
}

.question-label {
  margin-bottom: 10px;
  color: var(--clay);
  font-weight: 700;
}

.quiz-card h2 {
  min-height: 92px;
  font-size: clamp(25px, 3.7vw, 38px);
}

.answer {
  flex: 1 1 150px;
  min-height: 58px;
  padding: 12px 18px;
  border: 1px solid rgba(97, 116, 94, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brown);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border 160ms ease, background 160ms ease;
}

.answer:hover {
  border-color: rgba(86, 104, 79, 0.48);
  background: #fbf7ef;
}

.answer:focus,
.button:focus {
  outline: 3px solid rgba(184, 137, 112, 0.36);
  outline-offset: 3px;
}

.result-lead {
  font-size: 18px;
}

.result-visual-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 34px) 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% -10%, rgba(243, 220, 168, 0.45), transparent 55%),
    linear-gradient(180deg, #fffbf2 0%, #fff7e6 100%);
  border: 0;
  box-shadow: 0 22px 50px rgba(67, 53, 39, 0.12);
  text-align: center;
  overflow: hidden;
}

.result-visual-card::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--clay);
  opacity: 0.5;
}

.result-eyebrow {
  margin: 0;
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.result-type-badge {
  justify-self: center;
  margin: 6px auto 4px;
  padding: 12px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3dca8, #e9a96b);
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  box-shadow: 0 14px 32px rgba(233, 169, 107, 0.36);
}

.result-visual-card h1 {
  margin: 4px 0 6px;
  font-size: clamp(25px, 4vw, 34px);
  color: var(--brown);
  font-weight: 700;
  line-height: 1.45;
  max-width: none;
  white-space: pre-line;
}

.result-visual-card .result-lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--brown);
  font-size: var(--readable-text);
  line-height: 1.9;
  white-space: pre-line;
}

.result-illustration {
  position: relative;
  width: min(320px, 84%);
  margin: 18px auto 4px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 248, 235, 0.55);
  box-shadow: 0 14px 30px rgba(67, 53, 39, 0.1);
}

.result-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.result-traits {
  margin: 20px calc(clamp(20px, 5vw, 34px) * -1) 0;
  padding: 24px clamp(20px, 5vw, 34px) 26px;
  border-top: 1px solid rgba(190, 137, 102, 0.22);
  background: rgba(255, 255, 255, 0.65);
  text-align: left;
}

.note-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 16px;
  border-radius: 999px;
  background: #e98954;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

#resultTraits {
  margin: 0;
  padding-left: 1.1em;
  color: #5d4b41;
  font-size: var(--readable-text);
  line-height: 1.95;
}

.result-block,
.result-roadmap {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.result-block h2,
.result-roadmap h2,
.line-section.mini h2 {
  font-size: clamp(21px, 3vw, 29px);
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.line-section.mini {
  margin-top: 24px;
  margin-bottom: 22px;
  padding: 42px 20px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.94) 0%, rgba(255, 253, 248, 0.78) 60%, rgba(255, 253, 248, 0.38) 100%);
  }

  .intro,
  .split,
  .result-columns {
    grid-template-columns: 1fr;
  }

  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    padding-top: 104px;
    align-items: end;
  }

  h1 {
    font-size: 32px;
  }

  .button,
  .hero-actions,
  .answer {
    width: 100%;
  }

  .check-grid,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .quiz-shell {
    width: min(100% - 16px, 520px);
    padding-top: 14px;
  }

  .quiz-intro {
    min-height: auto;
    padding: 8px 8px 34px;
  }

  .intro-copy {
    padding-inline: 18px;
  }

  .quiz-intro::before {
    display: none;
  }

  .diagnosis-cover {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .diagnosis-cover::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 246, 0.42) 0%, rgba(255, 250, 246, 0.08) 42%, rgba(255, 250, 246, 0) 100%),
      radial-gradient(circle at 50% 19%, rgba(255, 255, 255, 0.64) 0 26%, rgba(255, 255, 255, 0.14) 52%, transparent 70%);
  }

  .diagnosis-cover img {
    width: 104%;
    height: 104%;
    left: -2%;
    top: 4%;
    object-position: center bottom;
  }

  .cover-copy {
    padding-top: 22px;
  }

  .cover-kicker {
    min-height: 28px;
    margin-bottom: 12px;
    padding: 3px 14px;
    font-size: 12px;
  }

  .top-message {
    margin-bottom: 10px;
    padding-bottom: 6px;
    font-size: 13px;
    line-height: 1.55;
  }

  .cover-copy h1 {
    font-size: clamp(24px, 7.4vw, 31px);
    line-height: 1.24;
  }

  .result-visual-card {
    padding: 26px 18px 0;
  }

  .result-visual-card h1 {
    font-size: 27px;
  }

  .result-visual-card .result-lead {
    font-size: var(--readable-text);
    line-height: 1.85;
  }

  .result-type-side {
    gap: 10px;
  }

  .result-illustration {
    width: min(280px, 88%);
    margin-top: 14px;
  }
}

/* === Question UI (renewed) === */
.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.question-number {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.question-remaining {
  color: var(--muted);
  font-size: 13px;
}

.progress-cheer {
  justify-self: center;
  min-height: 34px;
  margin: 4px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(159, 172, 146, 0.16);
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}

.progress-cheer.is-visible {
  opacity: 1;
  visibility: visible;
}

.answer-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.answer-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 14px 22px;
  border: 1px solid rgba(97, 116, 94, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brown);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.answer-choice:hover {
  border-color: rgba(86, 104, 79, 0.5);
  background: #fbf7ef;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(67, 53, 39, 0.08);
}

.answer-choice:focus {
  outline: 3px solid rgba(184, 137, 112, 0.36);
  outline-offset: 3px;
}

.answer-choice .choice-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.answer-choice[data-score="4"] .choice-mark {
  background: rgba(184, 137, 112, 0.4);
  color: #7a4a32;
}

.answer-choice[data-score="3"] .choice-mark {
  background: rgba(184, 137, 112, 0.28);
  color: #8a5a3f;
}

.answer-choice[data-score="2"] .choice-mark {
  background: rgba(184, 137, 112, 0.18);
  color: #a07457;
}

.answer-choice[data-score="1"] .choice-mark {
  background: rgba(159, 172, 146, 0.2);
  color: var(--sage-dark);
}

.answer-choice[data-score="0"] .choice-mark {
  background: rgba(159, 172, 146, 0.12);
  color: var(--sage);
}

/* === Score summary === */
.score-summary {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid rgba(95, 74, 60, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(66, 56, 43, 0.07);
}

.score-summary h2 {
  margin-bottom: 8px;
  font-size: clamp(21px, 3vw, 29px);
}

.score-summary-lead {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: var(--readable-text);
  line-height: 1.9;
}

.score-bars {
  display: grid;
  gap: 16px;
}

.score-row {
  display: grid;
  gap: 8px;
}

.score-row-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--brown);
  font-size: 14px;
}

.score-label-text {
  font-weight: 700;
}

.score-label-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--clay);
}

.score-label-unit {
  margin-left: 2px;
  font-size: 13px;
  color: var(--muted);
}

.score-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(159, 172, 146, 0.18);
  overflow: hidden;
}

.score-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4ad96, #b58269);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.score-bar span.is-score-visible {
  width: var(--score-width);
}

.score-summary-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--readable-small);
  line-height: 1.8;
}

/* === Secondary note === */
.secondary-note {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(247, 240, 230, 0.7), rgba(255, 252, 246, 0.7));
  border: 1px solid rgba(190, 137, 102, 0.18);
  border-radius: 8px;
}

.secondary-note .eyebrow {
  color: var(--clay);
}

.secondary-note h2 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--brown);
}

.secondary-note p {
  color: var(--muted);
  margin: 0;
  font-size: var(--readable-text);
  line-height: 1.9;
}

/* === Next steps === */
.next-steps {
  display: grid;
  gap: 10px;
  max-width: 480px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: step;
}

.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(95, 74, 60, 0.08);
  border-radius: 10px;
  color: var(--brown);
  font-size: var(--readable-text);
}

.next-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .quiz-card {
    padding: 18px 18px 22px;
  }

  .quiz-card::before,
  .section-header--quiz {
    display: none;
  }

  .back-link {
    min-height: 22px;
    margin-bottom: 4px;
    padding: 0;
    font-size: 12px;
  }

  .progress-wrap {
    gap: 6px;
    margin-bottom: 16px;
  }

  .progress-bar {
    height: 7px;
  }

  .progress-foot {
    margin-top: 0;
  }

  .progress-percent {
    font-size: 12px;
  }

  .question-number {
    font-size: 24px;
  }

  .question-remaining {
    font-size: 12px;
  }

  .question-label {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .quiz-card h2 {
    min-height: 78px;
    margin-bottom: 0;
    font-size: clamp(25px, 7.2vw, 32px);
    line-height: 1.42;
  }

  .answer-choice {
    font-size: 15px;
    padding: 8px 16px;
    min-height: 45px;
    gap: 12px;
    border-radius: 12px;
  }

  .answer-stack {
    gap: 7px;
    margin-top: 16px;
  }

  .answer-choice .choice-mark {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .progress-cheer {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .score-label-value {
    font-size: 19px;
  }
}

/* === Result list with note (NG / Steps) === */
#resultNg,
#resultSteps {
  padding-left: 0;
  list-style: none;
}

#resultNg li,
#resultSteps li {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(95, 74, 60, 0.08);
}

#resultNg li:last-child,
#resultSteps li:last-child {
  border-bottom: 0;
}

#resultNg li + li,
#resultSteps li + li {
  margin-top: 0;
}

#resultNg .list-title,
#resultSteps .list-title {
  position: relative;
  margin: 0 0 6px;
  padding-left: 18px;
  color: var(--brown);
  font-weight: 700;
  line-height: 1.6;
}

#resultNg .list-title::before,
#resultSteps .list-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#resultNg .list-title::before {
  background: #d39a7c;
}

#resultSteps .list-title::before {
  background: var(--sage);
}

#resultNg .list-note,
#resultSteps .list-note {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--readable-text);
  line-height: 1.85;
}

/* === Future section === */
.result-future {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px) clamp(22px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(238, 244, 233, 0.85), rgba(255, 252, 246, 0.92));
  border: 1px solid rgba(159, 172, 146, 0.28);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(66, 56, 43, 0.06);
}

.result-future .eyebrow {
  color: var(--sage-dark);
}

.result-future h2 {
  margin-bottom: 14px;
  font-size: clamp(21px, 3vw, 28px);
  color: var(--brown);
}

.result-future p {
  margin: 0;
  color: var(--brown);
  line-height: 1.95;
}

/* === Back to previous question === */
.back-link {
  align-self: flex-start;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 160ms ease;
  opacity: 0;
  visibility: hidden;
}

.back-link:hover {
  color: var(--brown);
}

.back-link.is-visible {
  opacity: 1;
  visibility: visible;
}

/* === Review previous result link (intro) === */
.review-link {
  display: block;
  margin-top: 18px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 160ms ease;
}

.review-link:hover {
  color: var(--brown);
}

.result-disclaimer {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

/* === Scroll reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Result section base (journal style) === */
.result-section {
  position: relative;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid rgba(95, 74, 60, 0.08);
  box-shadow: 0 10px 30px rgba(66, 56, 43, 0.07);
  background: #fff;
}

.result-section > h2 {
  margin: 6px 0 14px;
  font-size: clamp(21px, 3vw, 28px);
  color: var(--brown);
  line-height: 1.55;
}

.result-section > p {
  color: var(--brown);
  font-size: var(--readable-text);
  line-height: 1.9;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(95, 74, 60, 0.12);
}

.section-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.06em;
  line-height: 1;
}

.section-en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cocoa);
  text-transform: uppercase;
}

/* === Tone variants === */
.result-section.tone-paper {
  background: #fff;
  border-color: rgba(95, 74, 60, 0.08);
}

.result-section.tone-cream {
  background: linear-gradient(180deg, #fdf4e2 0%, #fffaf2 100%);
  border-color: rgba(184, 137, 112, 0.2);
}

.result-section.tone-sage {
  background: linear-gradient(180deg, #edf3e5 0%, #fdfaee 100%);
  border-color: rgba(159, 172, 146, 0.3);
}

.result-section.tone-sage-deep {
  background: linear-gradient(180deg, rgba(231, 238, 226, 0.9), rgba(255, 252, 246, 0.92));
  border-color: rgba(159, 172, 146, 0.36);
}

.result-section.tone-clay {
  background: linear-gradient(180deg, rgba(247, 232, 222, 0.72), rgba(255, 252, 246, 0.85));
  border-color: rgba(190, 137, 102, 0.24);
}

/* Tone-specific section-num color accents */
.result-section.tone-sage .section-num,
.result-section.tone-sage-deep .section-num {
  color: var(--sage-dark);
}

.result-section.tone-clay .section-num {
  color: #b07254;
}

@media (max-width: 620px) {
  .section-header {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .section-num {
    font-size: 19px;
  }

  .section-en {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
}

/* === Quiz card journal-style header === */
.section-header--quiz {
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
  text-align: center;
}

.section-header--quiz .section-en {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--cocoa);
}

/* === Progress foot (percentage) === */
.progress-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.progress-percent {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.06em;
}

/* === Theme label with short line === */
.question-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 14px;
  padding: 0;
  color: var(--clay);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.question-label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--clay);
  opacity: 0.6;
}

/* === Question fade-in animation === */
@keyframes questionFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .question-label,
  .question-text,
  .answer-stack {
    animation: none !important;
  }
}
