/* 심리테스트 화면. 승인된 공식 컬러와 소프트 3D 아이콘 규칙을 따른다. */

.psych-test-view .test-body {
  padding: 20px 16px 96px;
  background: var(--white);
}

.test-state {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 64px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 진행 표시 ---------- */
.test-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.test-progress-bar {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lime-soft);
}

.test-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--lime-accent);
  transition: width 0.25s ease;
}

.test-progress-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- 질문 ---------- */
.test-question {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.test-options {
  display: grid;
  gap: 10px;
}

.test-options button {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  background: var(--lime-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.test-options button:active {
  transform: scale(0.985);
  border-color: var(--lime-accent);
  background: var(--lime-panel);
}

.test-prev {
  margin-top: 18px;
  padding: 8px 4px;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 결과 ---------- */
.test-result {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.test-result-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: 13px;
  font-weight: 800;
}

.test-result h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.test-result-image {
  width: 148px;
  height: 148px;
  margin: 6px 0 2px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(32, 36, 43, 0.14));
}

.test-result-lead {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.test-result-body {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--lime-soft);
  text-align: left;
}

.test-result-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.test-result-pair {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.test-result-pair > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}

.test-result-pair b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 900;
}

.test-result-pair p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.test-result-cta {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--lime-panel);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.test-result .secondary-action {
  margin-top: 4px;
}

.test-result-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 375px) {
  .test-question {
    font-size: 20px;
  }

  .test-options button {
    min-height: 58px;
    font-size: 14px;
  }

  .test-result-image {
    width: 132px;
    height: 132px;
  }
}
