*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Noto Sans KR,
    Malgun Gothic,
    sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
}
button {
  font-family: inherit;
  cursor: pointer;
}
a {
  color: #1e3a5f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.start-screen {
  text-align: center;
  padding-top: 40px;
}
.main-title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0d233a;
  margin-bottom: 12px;
}
.sub-title {
  font-size: 1.0625rem;
  color: #4a5568;
  margin-bottom: 28px;
}
.intro-notice {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 32px;
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.6;
  text-align: left;
}
.intro-notice p {
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  transition:
    background 0.15s,
    opacity 0.15s;
  text-align: center;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: #1e3a5f;
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #152b47;
}
.btn-secondary {
  background: #e8edf3;
  color: #1e3a5f;
}
.btn-secondary:hover {
  background: #d5dee9;
}
.btn-outline {
  background: transparent;
  color: #1e3a5f;
  border: 2px solid #1e3a5f;
}
.btn-outline:hover {
  background: #f0f4f9;
}
.btn-start {
  background: #1e3a5f;
  color: #fff;
  padding: 16px 48px;
  font-size: 1.125rem;
  border-radius: 12px;
}
.btn-start:hover {
  background: #152b47;
}
.btn-restart {
  background: #e8edf3;
  color: #1e3a5f;
  padding: 12px 36px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
}
.btn-restart:hover {
  background: #d5dee9;
}
.estimate-time {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: #718096;
}
.recommend-section {
  margin-top: 40px;
  text-align: left;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 20px 24px;
}
.recommend-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #0d233a;
  margin-bottom: 12px;
}
.recommend-section ul {
  list-style: none;
  padding: 0;
}
.recommend-section li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  color: #4a5568;
}
.recommend-section li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #1e3a5f;
  border-radius: 50%;
}
.progress-bar {
  position: relative;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #1e3a5f;
  border-radius: 4px;
  transition: width 0.3s;
}
.progress-bar-text {
  position: absolute;
  right: 0;
  top: -26px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e3a5f;
}
.question-card {
  border: none;
  margin-bottom: 28px;
  padding: 0;
  display: block;
}
.question-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0d233a;
  margin-bottom: 16px;
  display: block;
  width: 100%;
}
.caution-text {
  font-size: 0.875rem;
  color: #c05621;
  background: #fffaf0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-size: 0.9375rem;
  background: #fff;
}
.option-card:hover {
  border-color: #90a4c2;
  background: #f7f8fa;
}
.option-card input {
  width: 20px;
  height: 20px;
  accent-color: #1e3a5f;
  flex-shrink: 0;
}
.option-selected {
  border-color: #1e3a5f;
  background: #f0f4f9;
}
.option-label {
  color: #2d3748;
  line-height: 1.4;
}
.help-tooltip-wrapper {
  display: inline;
  position: relative;
  margin-left: 6px;
}
.help-tooltip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #90a4c2;
  background: #fff;
  color: #90a4c2;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  line-height: 1;
}
.help-tooltip-button:hover {
  background: #e8edf3;
}
.help-tooltip-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: #0d233a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 14px 16px;
  border-radius: 10px;
  width: 280px;
  margin-top: 8px;
  line-height: 1.5;
}
.help-tooltip-close {
  display: block;
  margin-top: 10px;
  background: #ffffff26;
  border: none;
  color: #fff;
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.help-tooltip-close:hover {
  background: #ffffff40;
}
.step-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
}
.result-section {
  padding-top: 8px;
}
.result-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 24px;
}
.result-tier-badge {
  display: inline-block;
  background: #1e3a5f;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.result-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0d233a;
  margin-bottom: 12px;
  line-height: 1.4;
}
.result-description {
  font-size: 0.9375rem;
  color: #4a5568;
  margin-bottom: 24px;
  line-height: 1.6;
}
.result-summary-box {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.result-summary-box h3,
.result-section-block h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0d233a;
  margin-bottom: 10px;
}
.result-section-block {
  margin-bottom: 20px;
}
.result-section-block ul,
.result-summary-box ul {
  list-style: none;
  padding: 0;
}
.result-section-block li,
.result-summary-box li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  color: #2d3748;
  line-height: 1.5;
}
.result-section-block li:before,
.result-summary-box li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #90a4c2;
  border-radius: 50%;
}
.result-unknown-block {
  background: #fffaf0;
  border-radius: 10px;
  padding: 16px 18px;
}
.result-unknown-block p {
  font-size: 0.875rem;
  color: #7b6b4a;
  margin-bottom: 8px;
}
.discomfort-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.discomfort-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.discomfort-낮음 {
  background: #e8f5e9;
  color: #2e7d32;
}
.discomfort-보통 {
  background: #fff8e1;
  color: #f57f17;
}
.discomfort-높음 {
  background: #fce4ec;
  color: #c62828;
}
.discomfort-desc {
  font-size: 0.9375rem;
  color: #4a5568;
}
.discomfort-note {
  font-size: 0.8125rem;
  color: #718096;
  margin-top: 4px;
}
.urgent-notice {
  background: #fff5f5;
  border: 2px solid #e53e3e;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.urgent-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #c53030;
}
.urgent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.urgent-notice-body {
  font-size: 0.9375rem;
  color: #742a2a;
  line-height: 1.6;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.official-link-desc {
  font-size: 0.8125rem;
  color: #718096;
  margin-top: -4px;
}
.disclaimer-section {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.disclaimer-section p {
  font-size: 0.8125rem;
  color: #718096;
  margin-bottom: 8px;
  line-height: 1.5;
}
.disclaimer-section p:last-child {
  margin-bottom: 0;
}
.related-articles {
  margin-bottom: 28px;
}
.related-articles h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0d233a;
  margin-bottom: 12px;
}
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  margin-bottom: 8px;
}
.related-articles a {
  display: block;
  padding: 10px 14px;
  background: #f7f8fa;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #1e3a5f;
  border: 1px solid #e2e8f0;
  transition: background 0.15s;
}
.related-articles a:hover {
  background: #e8edf3;
  text-decoration: none;
}
.restart-section {
  text-align: center;
  margin-top: 8px;
}
@media print {
  body {
    background: #fff;
  }
  .progress-bar,
  .question-card,
  .step-navigation,
  .start-screen,
  .result-actions,
  .restart-section,
  .related-articles,
  .help-tooltip-button,
  .help-tooltip-content {
    display: none !important;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .result-card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  .urgent-notice {
    border: 1px solid #999;
  }
  .disclaimer-section {
    border: 1px solid #ddd;
  }
  .result-section {
    padding-top: 0;
  }
}
@media (min-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 768px) {
  .container {
    padding: 32px 24px 80px;
  }
  .main-title {
    font-size: 2rem;
  }
  .result-card {
    padding: 36px 32px;
  }
  .result-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
