* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background-color: #f4f6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.quiz-container {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 2px solid #eef0f4;
  padding-bottom: 16px;
}

header h1 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 8px;
}

#progress-text {
  font-weight: bold;
  color: #7f8c8d;
}

.question-header {
  margin-bottom: 20px;
}

#category-badge {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 12px;
}

#question-text {
  font-size: 1.2rem;
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid #dcdde1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-label:hover {
  background-color: #f8f9fa;
  border-color: #bdc3c7;
}

.option-label input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.controls {
  display: flex;
  justify-content: space-between;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #ecf0f1;
  color: #2c3e50;
  transition: background 0.2s;
}

.btn:hover:not(:disabled) {
  background-color: #bdc3c7;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background-color: #27ae60;
  color: white;
}

.btn.primary:hover {
  background-color: #2ecc71;
}

.hidden {
  display: none !important;
}

#score-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin: 20px 0;
}

.result-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.result-item.correct h4 { color: #27ae60; }
.result-item.incorrect h4 { color: #e74c3c; }