/* 역사 상식 테스트 전용 스타일 */
.era-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .era-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.era-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.era-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.era-btn.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.era-btn-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.era-btn-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.feed-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.82rem;
  color: var(--ink-sub);
}

.challenge-banner {
  background: #fef9c3;
  border: 1.5px solid #facc15;
  color: #713f12;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.question-text {
  margin: 0 0 18px;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.option-btn:disabled {
  cursor: default;
}

.option-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.option-btn.is-correct {
  border-color: var(--success);
  background: var(--success-soft);
  color: #0f5132;
}

.option-btn.is-correct .option-num {
  background: var(--success);
  color: #ffffff;
}

.option-btn.is-wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: #991b1b;
}

.option-btn.is-wrong .option-num {
  background: var(--danger);
  color: #ffffff;
}

.explain-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  border-left: 4px solid var(--brand);
  font-size: 0.9rem;
  color: var(--ink-sub);
  line-height: 1.6;
}

.explain-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.result-hero {
  text-align: center;
  padding: 8px 0 4px;
}

.result-score-big {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.15;
  margin: 6px 0;
}

.result-percentile {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 6px;
}

.result-rank-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-sub);
}

.duel-compare {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid #c5daf0;
  text-align: center;
  font-weight: 700;
  color: var(--brand-dark);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.review-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.review-q {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink);
}

.review-meta {
  font-size: 0.84rem;
  color: var(--ink-sub);
  margin: 4px 0 0;
}

.era-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.era-links-bar a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
}

.era-links-bar a:hover {
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
}

.file-upload-inline {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
