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

body {
  font-family: 'Pretendard', 'Comic Sans MS', sans-serif;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  background-color: #ffeaa7;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #2d3436;
}

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

header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 3px dashed #ffeaa7;
  padding-bottom: 16px;
}

header h1 {
  font-size: 1.8rem;
  color: #ff7675;
  margin-bottom: 8px;
}

#progress-text {
  font-weight: bold;
  color: #636e72;
  background: #dfe6e9;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
}

.question-header {
  margin-bottom: 15px;
  text-align: center;
}

#question-text {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #0984e3;
}

#hint-area {
  background-color: #fff3cd;
  color: #856404;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.95rem;
  animation: pop 0.3s ease-out;
}

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

.option-label {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #dfe6e9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.1rem;
  font-weight: 500;
}

.option-label:hover {
  background-color: #74b9ff;
  color: white;
  border-color: #0984e3;
  transform: translateY(-2px);
}

.option-label.disabled {
  pointer-events: none;
  opacity: 0.7;
}

.option-label.correct {
  background-color: #55efc4;
  border-color: #00b894;
  color: #2d3436;
}

.option-label.incorrect {
  background-color: #fab1a0;
  border-color: #d63031;
  color: white;
}

.option-label input[type="radio"] {
  display: none;
}

.option-label.selected {
  border-color: #0984e3;
  background-color: #e3f2fd;
  color: #0984e3;
}

#feedback-area {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 12px;
  animation: pop 0.3s ease-out;
}

#feedback-area.success { color: #00b894; background: #e8f8f5; }
#feedback-area.error { color: #d63031; background: #fdedec; }

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

.btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn.primary { background-color: #0984e3; color: white; }
.btn.primary:hover:not(:disabled) { background-color: #74b9ff; transform: translateY(-2px); }

.btn.secondary { background-color: #6c5ce7; color: white; }
.btn.secondary:hover:not(:disabled) { background-color: #a29bfe; transform: translateY(-2px); }

.btn.warning { background-color: #fdcb6e; color: #2d3436; }
.btn.warning:hover:not(:disabled) { background-color: #ffeaa7; transform: translateY(-2px); }

.hidden { display: none !important; }

#result-screen { text-align: center; }
#result-screen h2 { color: #ff7675; font-size: 2rem; margin-bottom: 20px; }
#score-display { font-size: 3rem; font-weight: bold; color: #00b894; margin: 20px 0; }
#result-message { font-size: 1.2rem; margin-bottom: 30px; color: #636e72; }

@keyframes pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bounce { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}