.hf-hero {
  background: #fff;
  border-radius: 24px;
  padding: 28px 18px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(90, 70, 180, 0.06);
  margin: 8px 0 14px;
}
.hf-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #8b74ff, #6d54f2);
  display: grid;
  place-items: center;
  font-size: 34px;
  box-shadow: 0 10px 24px rgba(109, 84, 242, 0.28);
}
.hf-hero h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
}
.hf-kicker {
  margin: 0 0 12px;
  color: #8b7fd0;
  letter-spacing: 0.16em;
  font-size: 11px;
}
.hf-hero p.lead {
  margin: 0;
  color: #6b5ea8;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}
.hf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hf-grid article {
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(90, 70, 180, 0.06);
}
.hf-grid strong { display: block; color: var(--purple-deep); margin-bottom: 4px; }
.hf-grid span { color: var(--muted); font-size: 12px; }
.ghost-btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 1px solid #ddd4ff;
  background: #fff;
  border-radius: 16px;
  color: var(--purple-deep);
  font-weight: 700;
}
.gender-list { display: grid; gap: 10px; }
.gender-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1.5px solid #ece8f8;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
}
.gender-card.on { border-color: #7b61ff; box-shadow: 0 0 0 1px #7b61ff; }
.g-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #efe8ff;
  color: var(--purple-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.gender-card b { display: block; margin-bottom: 2px; }
.gender-card small { color: var(--muted); }
.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 8px;
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 700;
}
.quiz-top .pct { font-size: 12px; font-weight: 650; color: var(--muted); }
.bar.slim { height: 6px; margin: 0 0 12px; }
.q-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px 14px 14px;
  box-shadow: 0 8px 24px rgba(90, 70, 180, 0.06);
}
.q-card h3 {
  margin: 8px 0 14px;
  font-size: 18px;
  line-height: 1.55;
}
.opt {
  width: 100%;
  text-align: left;
  border: 1.5px solid #ece8f8;
  background: #f7f4ff;
  border-radius: 16px;
  padding: 12px 12px 12px 40px;
  margin-bottom: 10px;
  position: relative;
  color: var(--ink);
}
.opt .dot {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbbfff;
  background: #fff;
}
.opt.on {
  background: #fff;
  border-color: #7b61ff;
}
.opt.on .dot {
  border-color: #7b61ff;
  box-shadow: inset 0 0 0 4px #7b61ff;
}
.opt b { display: block; font-weight: 650; }
.opt em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: #8b7fd0;
  font-size: 12px;
}
.quiz-foot {
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.quiz-foot .nav {
  height: 44px;
  border: 1px solid #ddd4ff;
  background: #fff;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 650;
}
.quiz-foot .nav:disabled { opacity: 0.4; }
.quiz-foot .hint-mid {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.result-head { text-align: center; padding: 8px 0 4px; }
.result-head .sub {
  color: var(--purple-deep);
  font-size: 14px;
  margin: 0 0 8px;
}
.result-head .pct-num {
  font-size: 64px;
  font-weight: 800;
  color: var(--purple-deep);
  line-height: 1;
  margin: 6px 0 4px;
}
.result-head h2 { margin: 4px 0 2px; font-size: 32px; }
.result-head .meta { color: #6b5ea8; margin: 0 0 12px; }
.lead-pill {
  display: inline-block;
  background: #efe8ff;
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  margin: 8px 0 0;
}
.quote-box {
  background: #f4f0ff;
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
  text-align: left;
}
.quote-box small { color: var(--purple-deep); font-weight: 700; }
.quote-box p { margin: 6px 0 0; color: #5a507f; line-height: 1.7; }
.sec-title { margin: 18px 0 10px; font-size: 18px; }
.dim-row {
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-size: 13px;
}
.tone-card {
  background: #f4f0ff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.tone-card h4 { margin: 0 0 6px; color: var(--purple-deep); }
.tone-card p { margin: 0; color: #5a507f; line-height: 1.7; font-size: 14px; }
.line-card {
  background: #fff;
  border: 1px solid #eee8ff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  color: #5a507f;
}
.save-mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 60, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 20;
}
.save-mask img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
}
.save-mask p { color: #fff; text-align: center; margin-top: 10px; }
.two-btns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 16px;
}
.two-btns .back {
  height: 48px;
  border: 1px solid #ddd4ff;
  background: #fff;
  border-radius: 16px;
  font-weight: 700;
}
.method p { color: #5a507f; line-height: 1.7; margin: 0 0 10px; }
