:root {
  color-scheme: light;
  --ink: #243044;
  --muted: #697386;
  --line: #f0d8d4;
  --peach: #ff856c;
  --peach-2: #ffb199;
  --violet: #7b47d8;
  --violet-2: #efe5ff;
  --cream: #fffaf3;
  --card: rgba(255, 255, 255, 0.86);
  --yellow: #ffd86d;
  --green: #8dd9ae;
  --blue: #83c8ee;
  --shadow: 0 18px 40px rgba(122, 69, 60, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 209, 106, 0.28), transparent 28%),
    radial-gradient(circle at 86% 5%, rgba(136, 111, 225, 0.16), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, #fff3ee 48%, #fffaf6 100%);
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 42px;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 28px 0 8px;
  text-align: center;
}

.hero-mark {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 14px 24px rgba(255, 133, 108, 0.25));
}

.eyebrow {
  margin: 0;
  color: var(--violet);
  font-size: 15px;
  font-weight: 800;
}

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

.hero h1 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(42px, 10vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.accent {
  color: var(--peach);
}

.lead {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.primary-btn,
.ghost-btn,
.choice-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 42px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--peach), #ff704f);
  box-shadow: 0 16px 30px rgba(255, 111, 78, 0.28);
  font-size: 20px;
  font-weight: 900;
}

.primary-btn:hover,
.choice-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.feature-list {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 24px;
}

.feature-card,
.panel {
  border: 1px solid rgba(240, 216, 212, 0.9);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 120px;
  padding: 22px;
  text-align: left;
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #fff0eb;
  font-size: 28px;
}

.feature-card h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.feature-card p,
.panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tiny-note {
  margin: 18px 0 0;
  color: #978b9a;
  font-size: 14px;
}

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

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

.progress {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f4ded9;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--peach), var(--violet));
}

.quiz-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.quiz-card h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.24;
}

.dimension-pill,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #dcc8ff;
  border-radius: 999px;
  color: var(--violet);
  background: var(--violet-2);
  font-size: 14px;
  font-weight: 800;
}

.choices {
  display: grid;
  gap: 14px;
}

.choice-btn {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 26px rgba(72, 55, 42, 0.08);
  text-align: left;
}

.choice-btn.is-selected {
  border-color: var(--peach);
  background: #fff3ee;
  box-shadow: 0 16px 30px rgba(255, 133, 108, 0.18);
}

.choice-btn span {
  display: block;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.quiz-actions,
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.ghost-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid #ead6d2;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.result-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px 0 22px;
  text-align: center;
}

.avatar-ring {
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  border: 9px solid white;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3df, #efe6ff);
  box-shadow: 0 18px 36px rgba(80, 44, 137, 0.18);
}

.avatar-ring svg,
.type-avatar {
  width: 100%;
  height: 100%;
}

.type-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.hero .type-avatar {
  width: 112px;
  height: 112px;
  box-shadow: 0 14px 24px rgba(255, 133, 108, 0.16);
}

.type-code {
  margin-bottom: 0;
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 17vw, 112px);
  line-height: 0.9;
}

.type-name {
  margin-bottom: 0;
  color: var(--violet);
  font-size: 30px;
  font-weight: 900;
}

.quote {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 18px;
  font-size: 24px;
}

.section-title::before,
.section-title::after {
  width: 58px;
  height: 1px;
  content: "";
  background: #eadbd5;
}

.radar-wrap {
  display: grid;
  justify-items: center;
  padding: 10px 0 2px;
}

.radar {
  width: min(100%, 360px);
  height: auto;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 24px;
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 25px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  min-height: 92px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7f2;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--violet);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  padding: 13px 16px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.type-tile {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 118px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.type-tile svg {
  width: 54px;
  height: 54px;
}

.type-tile .type-avatar {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.type-tile strong {
  font-size: 15px;
}

.type-tile span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 560px) {
  .app-shell {
    padding: 18px 14px 34px;
  }

  .feature-card {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    min-height: 108px;
    padding: 18px;
  }

  .feature-card h2 {
    font-size: 20px;
  }

  .quiz-card,
  .panel {
    padding: 20px;
  }

  .quiz-actions,
  .result-actions,
  .meta-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title::before,
  .section-title::after {
    width: 34px;
  }
}
