* * {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  color: #222222;
  background: #f5f7f6;
}

.app {
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  max-width: 660px;
  text-align: center;
}

.screen.active {
  display: block;
}

.label {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #2f8f5b;
}

h1,
h2 {
  margin: 0;
  line-height: 1.35;
  color: #111111;
}

h1 {
  font-size: 42px;
}

h2 {
  min-height: 96px;
  font-size: 28px;
}

.description {
  margin: 20px auto 32px;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.7;
  color: #666666;
}

.primary-button,
.secondary-button {
  border-radius: 8px;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  border: none;
  color: #ffffff;
  background: #2f8f5b;
}

.primary-button:hover {
  background: #26784c;
}

.secondary-button {
  border: 1px solid #cbd8d0;
  color: #333333;
  background: #ffffff;
}

.secondary-button:hover {
  background: #edf4f0;
}

.secondary-button:disabled,
.answer-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.progress-wrap {
  width: 100%;
  height: 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe8e2;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #2f8f5b;
  transition: width 0.3s ease;
}

.answer-area {
  margin-top: 42px;
}

.answer-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  color: #555555;
}

.answer-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
}

.answer-button {
  width: 40px;
  height: 40px;
  border: 2px solid #2f8f5b;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
}

.answer-button.strong {
  width: 48px;
  height: 48px;
}

.answer-button:hover {
  background: #e5f3eb;
}

.answer-button.selected {
  background: #2f8f5b;
}

.question-actions {
  margin-top: 36px;
}

.loader {
  width: 52px;
  height: 52px;
  margin: 0 auto 28px;
  border: 5px solid #dfe8e2;
  border-top-color: #2f8f5b;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-title {
  min-height: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  padding: 28px;
  border: 1px solid #dde6e0;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.result-grade {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2f8f5b;
}

.result-title {
  min-height: auto;
  margin-bottom: 16px;
  font-size: 34px;
  text-align: left;
}

.result-description {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: #555555;
}

.result-detail {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.analysis-title {
  margin: 28px 0 16px;
  font-size: 20px;
  color: #111111;
}

.category-list {
  display: grid;
  gap: 18px;
}

.category-item {
  display: grid;
  gap: 8px;
}

.category-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.category-name {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
}

.category-score {
  font-size: 14px;
  font-weight: 700;
  color: #2f8f5b;
}

.category-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e4ebe6;
}

.category-fill {
  height: 100%;
  border-radius: 999px;
  background: #2f8f5b;
}

.category-comment {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
}

.summary-box {
  margin: 28px 0;
  padding: 22px;
  border-radius: 8px;
  background: #f5f7f6;
}

.summary-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #2f8f5b;
}

.summary-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .app {
    padding: 28px 18px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    min-height: 116px;
    font-size: 24px;
  }

  .answer-buttons {
    gap: 7px;
  }

  .answer-button {
    width: 34px;
    height: 34px;
  }

  .answer-button.strong {
    width: 40px;
    height: 40px;
  }

  .answer-labels {
    font-size: 13px;
  }

  .result-card {
    padding: 22px;
  }

  .result-title {
    font-size: 28px;
  }

  .result-actions {
    display: grid;
  }
}