:root {
  --bg: #fff9f1;
  --text: #5c4033;
  --muted: #8f7f74;
  --panel: rgba(255, 255, 255, 0.84);
  --border: rgba(255, 255, 255, 0.95);
  --shadow: 0 24px 60px rgba(154, 122, 100, 0.12);
  --pink: #ffeff4;
  --blue: #eaf4ff;
  --yellow: #fff7d8;
  --mint: #eefcf3;
  --peach: #fff0e6;
  --accent: #ff8ba7;
  --accent-strong: #ff6f93;
  --accent-soft: #ffdbe6;
  --line: rgba(92, 64, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family:
    "M PLUS Rounded 1c",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 226, 0.9), transparent 28%),
    radial-gradient(circle at top right, rgba(204, 231, 255, 0.88), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 244, 190, 0.7), transparent 26%),
    linear-gradient(180deg, #fffef8 0%, #fff8f0 48%, #fffaf3 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

body::before {
  top: 7vh;
  left: 4vw;
  width: 168px;
  height: 168px;
  background: rgba(255, 196, 215, 0.32);
}

body::after {
  right: 6vw;
  bottom: 8vh;
  width: 220px;
  height: 220px;
  background: rgba(198, 227, 255, 0.28);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.app-root {
  min-height: calc(100vh - 80px);
}

.screen {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  width: 100%;
  border: 4px solid var(--border);
  border-radius: 36px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

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

.button:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
}

.button--primary {
  background: linear-gradient(180deg, #ff98b1, var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 28px rgba(255, 111, 147, 0.22);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 2px solid rgba(92, 64, 51, 0.08);
  box-shadow: 0 12px 22px rgba(92, 64, 51, 0.05);
}

.button--ghost {
  background: transparent;
  color: var(--muted);
  border: 2px solid rgba(92, 64, 51, 0.08);
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 16px rgba(92, 64, 51, 0.05);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.eyebrow {
  background: var(--blue);
}

.pill {
  background: #fff;
}

.pill--pink {
  background: var(--pink);
}

.pill--yellow {
  background: var(--yellow);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome-card {
  max-width: 760px;
  padding: 38px 34px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-card::before,
.welcome-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.welcome-card::before {
  top: -48px;
  right: -34px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 220, 229, 0.9), rgba(255, 220, 229, 0.18));
}

.welcome-card::after {
  left: -28px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(203, 230, 255, 0.9), rgba(203, 230, 255, 0.16));
}

.hero-bubble {
  position: relative;
  z-index: 1;
  width: 138px;
  height: 138px;
  margin: 0 auto 20px;
  border-radius: 999px;
  border: 6px solid #fff;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 65% 34%, #ffffff 0 18%, transparent 19%),
    linear-gradient(180deg, #fff6ba 0%, #ffe2af 100%);
  box-shadow: inset 0 -16px 28px rgba(255, 193, 93, 0.22);
}

.hero-bubble::after {
  content: "SBTI";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 14px 0 10px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.mini-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.mini-card {
  padding: 16px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.mini-card strong,
.credit-card strong,
.section-card h3,
.details-card summary {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.mini-card p,
.credit-card p,
.share-copy,
.sub-copy,
.match-meta,
.dim-copy,
.details-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.credit-card {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid rgba(255, 255, 255, 0.88);
  text-align: left;
}

.credit-card a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.credit-card a:hover {
  text-decoration: underline;
}

.quiz-shell {
  max-width: 760px;
  padding: 28px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.progress-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 8px rgba(92, 64, 51, 0.08);
  overflow: hidden;
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb4c9 0%, #ffd88e 48%, #a8d5ff 100%);
  transition: width 220ms ease;
}

.question-card {
  margin-top: 18px;
  padding: 26px;
  border-radius: 32px;
  border: 4px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.78);
}

.question-copy {
  margin: 18px 0 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.7;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.question-copy--long {
  font-size: clamp(20px, 3.5vw, 26px);
}

.question-copy--xlong {
  font-size: clamp(17px, 3vw, 22px);
}

.question-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.option-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.option-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 18px;
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 24px rgba(92, 64, 51, 0.06);
  text-align: left;
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card__badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 10px rgba(92, 64, 51, 0.06);
}

.option-card__copy {
  flex: 1;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.68;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.option-card__copy--long {
  font-size: 16px;
}

.option-card__copy--xlong {
  font-size: 15px;
}

.tint-pink {
  background: var(--pink);
}

.tint-blue {
  background: var(--blue);
}

.tint-yellow {
  background: var(--yellow);
}

.tint-mint {
  background: var(--mint);
}

.tint-peach {
  background: var(--peach);
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quiz-tip {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 420px;
}

.result-shell {
  padding: 28px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
}

.share-card {
  padding: 24px;
  border-radius: 36px;
  border: 6px solid rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(circle at top right, rgba(255, 218, 230, 0.75), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 251, 0.98));
  box-shadow: 0 26px 46px rgba(92, 64, 51, 0.08);
}

.share-top {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.share-art {
  min-height: 250px;
  padding: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, var(--yellow), rgba(255, 255, 255, 0.98));
  border: 4px solid rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.share-art img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 22px;
}

.share-art__fallback {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcbdb, #ffc7aa);
}

.share-title {
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.share-title span {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.5;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--mint);
  border: 2px solid rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 800;
}

.share-intro {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
}

.share-copy,
.sub-copy {
  margin-top: 10px;
}

.share-section {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 3px solid rgba(255, 255, 255, 0.92);
}

.share-section h3,
.section-card h3,
.details-card summary {
  margin: 0 0 10px;
  font-size: 16px;
}

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

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

.highlight-card,
.match-card,
.dim-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 3px solid rgba(255, 255, 255, 0.92);
}

.highlight-card strong,
.match-card strong,
.dim-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.highlight-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.share-footer {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.result-actions__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.section-card {
  padding: 20px;
  border-radius: 28px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.7);
}

.section-card--full {
  grid-column: 1 / -1;
}

.match-list,
.dim-grid {
  display: grid;
  gap: 10px;
}

.match-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.match-score {
  flex: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-strong);
}

.match-meta {
  font-size: 13px;
}

.section-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.radar-panel {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 251, 0.94), rgba(250, 252, 255, 0.92));
  border: 3px solid rgba(255, 255, 255, 0.95);
}

.radar-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  padding: 8px 0;
}

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

.radar-grid-line {
  fill: rgba(255, 255, 255, 0.52);
  stroke: rgba(92, 64, 51, 0.12);
  stroke-width: 1.4;
}

.radar-axis-line {
  stroke: rgba(92, 64, 51, 0.12);
  stroke-width: 1.3;
}

.radar-axis-label {
  font-size: 12px;
  font-weight: 800;
  fill: var(--muted);
}

.radar-ring-label {
  font-size: 11px;
  font-weight: 700;
  fill: rgba(92, 64, 51, 0.5);
}

.radar-value-area {
  fill: rgba(255, 139, 167, 0.18);
  stroke: none;
}

.radar-value-line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 3;
  stroke-linejoin: round;
}

.radar-value-dot,
.radar-center-dot {
  fill: var(--accent-strong);
  stroke: #fff;
  stroke-width: 2;
}

.radar-note {
  margin-top: 6px;
}

.radar-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.radar-legend-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.94);
}

.radar-legend-chip strong {
  margin: 0;
  font-size: 12px;
}

.radar-legend-chip span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

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

.dim-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}

.dim-score {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-strong);
}

.dim-copy {
  font-size: 13px;
}

.details-card {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 28px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.68);
}

.details-card summary {
  cursor: pointer;
  list-style: none;
}

.details-card summary::-webkit-details-marker {
  display: none;
}

.details-card p + p {
  margin-top: 12px;
}

.fade-in {
  animation: fadeIn 320ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .mini-grid,
  .result-grid,
  .highlight-grid,
  .share-top {
    grid-template-columns: 1fr;
  }

  .share-art {
    min-height: 220px;
  }

  .radar-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 12px 40px;
  }

  .welcome-card,
  .quiz-shell,
  .result-shell {
    padding: 18px;
    border-radius: 28px;
  }

  .question-card,
  .share-card,
  .section-card,
  .details-card {
    padding: 16px;
    border-radius: 24px;
  }

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

  .radar-panel {
    padding: 14px;
  }

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

  .button {
    width: 100%;
    justify-content: center;
  }

  .welcome-actions,
  .result-actions__buttons {
    width: 100%;
  }

  .hero-title {
    font-size: 38px;
  }

  .share-title {
    font-size: 36px;
  }
}
