.qm-quiz-container {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  max-width: 640px;
  margin: 0 auto;
}
.qm-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
}
.qm-card-body {
  padding: 24px;
}
@media (min-width: 640px) {
  .qm-card-body { padding: 32px; }
}
.qm-gradient-header {
  background: linear-gradient(135deg, #fce7f3, #fef9c3);
  padding: 32px 24px;
  text-align: center;
  font-size: 48px;
  line-height: 1;
}
.qm-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}
.qm-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.qm-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.qm-meta-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  text-align: center;
}
.qm-meta-icon {
  font-size: 18px;
  margin-right: 4px;
}
.qm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.qm-btn-start {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  font-size: 16px;
  padding: 14px 24px;
}
.qm-btn-start:hover { background: #4338ca; }
.qm-btn-next {
  background: #4f46e5;
  color: #fff;
}
.qm-btn-next:hover { background: #4338ca; }
.qm-btn-submit {
  background: #059669;
  color: #fff;
}
.qm-btn-submit:hover { background: #047857; }
.qm-btn-secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.qm-btn-secondary:hover { background: #f9fafb; }
.qm-btn-sm {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.qm-btn-sm:hover { background: #f3f4f6; }
.qm-progress-wrap {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.qm-progress-bar {
  height: 8px;
  background: #4f46e5;
  border-radius: 999px;
  flex: 1;
  transition: width 0.3s;
  max-width: 100%;
}
.qm-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.qm-timer {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-align: center;
  margin-bottom: 12px;
}
.qm-timer-warn {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
  animation: qmPulse 1s ease-in-out infinite;
}
@keyframes qmPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.qm-question-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 12px;
}
.qm-qimg {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}
.qm-qimg img {
  width: 100%;
  height: auto;
  display: block;
}
.qm-question-text {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.qm-option-points {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-align: right;
  margin-top: -12px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.qm-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qm-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.qm-option:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
}
.qm-option-selected {
  border-color: #4f46e5;
  background: #eef2ff;
}
.qm-radio, .qm-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
  flex-shrink: 0;
}
.qm-option-text {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.qm-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.qm-feedback-correct {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #6ee7b7;
}
.qm-feedback-incorrect {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #fca5a5;
}
.qm-feedback-score {
  font-weight: 600;
  font-size: 13px;
  opacity: 0.8;
}
.qm-explanation {
  margin-top: 12px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 14px;
  color: #1e40af;
  line-height: 1.6;
}
.qm-option-static {
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.qm-btn-disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}
.qm-blank-result {
  padding: 8px 0;
}
.qm-blank-line {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}
.qm-blank-label {
  font-weight: 600;
  color: #6b7280;
  margin-right: 4px;
}
.qm-hint {
  margin-top: 12px;
  padding: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}
.qm-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qm-results-header {
  padding: 32px 24px;
  text-align: center;
}
.qm-pass-bg { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.qm-fail-bg { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.qm-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.qm-circle-pass {
  background: #059669;
  color: #fff;
}
.qm-circle-fail {
  background: #dc2626;
  color: #fff;
}
.qm-circle-pct {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.qm-circle-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.qm-emoji {
  font-size: 40px;
}
.qm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.qm-stat {
  text-align: center;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 8px;
}
.qm-stat-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}
.qm-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  margin-top: 4px;
}
.qm-msg {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 20px 0;
}
.qm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.qm-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.qm-review-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}
.qm-review-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
.qm-review-correct {
  background: #d1fae5;
  color: #065f46;
}
.qm-review-incorrect {
  background: #fee2e2;
  color: #991b1b;
}
.qm-review-body {
  padding: 12px 16px;
  background: #fff;
}
.qm-review-ans {
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}
.qm-review-label {
  font-weight: 600;
  color: #6b7280;
  margin-right: 4px;
}
.qm-review-opt {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.qm-opt-correct {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
}
.qm-opt-wrong {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}
.qm-opt-missed {
  background: #f3f4f6;
  color: #6b7280;
}
.qm-blank-wrap {
  padding: 8px 0;
}
.qm-blank-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}
.qm-blank-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-size: 15px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.qm-blank-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.qm-blank-input::placeholder {
  color: #9ca3af;
}
.qm-review-expl {
  margin-top: 10px;
  padding: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}
