.hist-btn {
  border: 0;
  background: #efe8ff;
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
}
.hero-card {
  background: linear-gradient(180deg, #8b74ff, #6d54f2);
  color: #fff;
  border-radius: 22px;
  padding: 22px 18px;
  margin: 12px 0 14px;
  position: relative;
}
.hero-card h2 { margin: 8px 0 6px; font-size: 26px; color: #fff; }
.hero-card p { margin: 0; opacity: 0.9; font-size: 14px; }
.about-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 8px; }
.quiz-paper { padding-bottom: 24px; }
.miss-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6b63a8;
  font-size: 13px;
  margin: 8px 0 10px;
}
.miss-bar button {
  border: 0;
  background: transparent;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 650;
  padding: 0;
}
.miss-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.miss-list button {
  min-width: 36px;
  height: 32px;
  border: 1px solid #ddd4ff;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
}
.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.quiz-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.quiz-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.q-count {
  color: #3b82f6;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
  padding-top: 2px;
}
.q-count strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.bar.slim {
  height: 6px;
  margin: 14px 0 12px;
}
.tip-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef3ff;
  color: #5b7cff;
  font-size: 13px;
  text-align: center;
}
.q-stem {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}
.choice-list { display: grid; gap: 10px; }
.choice-list button {
  width: 100%;
  text-align: left;
  border: 1.5px solid #ece8f8;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
}
.choice-list button.on {
  border-color: #7b61ff;
  box-shadow: 0 0 0 1px #7b61ff;
  color: #5b45d6;
  font-weight: 650;
}
.quiz-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.nav-prev, .nav-next {
  height: 48px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}
.nav-prev {
  background: #e9edf5;
  color: #6b7280;
}
.nav-prev:disabled { opacity: 0.45; }
.nav-next {
  background: linear-gradient(180deg, #8a70ff, var(--purple-deep));
  color: #fff;
}
.q-no { color: var(--muted); margin: 12px 0 6px; }
.legend { display: grid; gap: 6px; margin: 12px 0 0; font-size: 13px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; }
.dot.n { background: #b7e3c0; }
.dot.l { background: #7dcf8a; }
.dot.m { background: #f5b942; }
.dot.s { background: #e35d5d; }
.factor { border-left: 3px solid var(--purple); padding: 12px 14px; background: #fff; border-radius: 14px; margin-bottom: 10px; }
.factor h4 { margin: 0 0 6px; }
.factor p { margin: 0; color: #5a507f; font-size: 13px; line-height: 1.7; }
.result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-table th, .result-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.hist-item { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.hist-item button { height: 32px; padding: 0 10px; font-size: 12px; }
.note { font-size: 12px; color: var(--muted); line-height: 1.6; }
canvas#radar { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
