/* MCQ 공통 스타일 (기존 mcq/play.html 인라인 CSS를 분리) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.mcq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.mcq-header {
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mcq-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    font-size: 0.85rem;
}

.mcq-stats span {
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.mcq-stats .mcq-stage,
.mcq-stats .mcq-difficulty {
    color: #667eea;
    font-weight: 600;
}

.mcq-stats .mcq-timer {
    font-size: 0.95rem;
    color: #ff6b6b;
    font-weight: 600;
}

.mcq-question-box {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mcq-question-text {
    font-size: 12pt;
    color: #333;
    margin-bottom: 25px;  /* 질문과 선택지 간격 증가 */
    padding-bottom: 15px;  /* 질문 영역 하단 여백 */
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-bottom: 1px solid #e8e8e8;  /* 질문과 선택지 구분선 */
}

.mcq-choices {
    display: grid;
    gap: 10px;
}

.mcq-choice-btn,
.mcq-choice-label {
    padding: 10px 15px;  /* 높이 줄임 (12px → 10px, 약 83%) */
    border: 2px solid #e0e0e0;  /* 테두리 두께도 살짝 줄임 */
    background: white;
    border-radius: 10px;
    font-size: 12pt;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    line-height: 1.4;  /* 줄 간격도 살짝 조정 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);  /* 미세한 그림자로 각 항목 구분 */
}

.mcq-choice-btn:hover,
.mcq-choice-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);  /* 호버 시 그림자 강조 */
}

.mcq-choice-btn:active {
    transform: scale(0.98);
}

.mcq-loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.2em;
}

.mcq-panel {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mcq-panel-compact {
    padding: 12px;
}

.mcq-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.mcq-cta .btn {
    min-width: 180px;
}

.mcq-muted {
    color: rgba(255,255,255,0.9);
}

.mcq-hidden {
    display: none !important;
}

/* 질문/예문 분리 스타일 */
.question-part {
    padding: 8px 0;
    font-weight: 500;
    color: #333;
}

.question-divider {
    margin: 12px 0;
    border: none;
    border-top: 2px solid #dee2e6;
}

.example-part {
    padding: 8px 0;
    color: #444;  /* 색상도 조금 더 진하게 */
    font-style: normal;  /* 이탤릭 제거 */
    font-size: 12pt;  /* 글씨 크기 증가 (11pt → 12pt) */
    line-height: 1.6;
}

/* AI Battle 인덱스 페이지 스타일 */
.ai-title {
  text-align: center;
  font-weight: 800;
  margin: 8px 0 10px;
  font-size: 1.5rem;
  color: #333;
}

.ai-subcopy {
  text-align: center;
  margin: 0 auto 14px;
  line-height: 1.5;
  max-width: 600px;
}

.ai-subcopy-strong {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #333;
}

.ai-subcopy-text {
  margin: 0;
  opacity: .92;
  color: #555;
}

.ai-bullets {
  list-style: none;
  padding-left: 0;
  max-width: 520px;
  margin: 10px auto 8px;
  text-align: left;
}

.ai-bullets li {
  margin: 4px 0;
  padding-left: 8px;
}

.ai-note {
  text-align: center;
  font-size: .9rem;
  opacity: .75;
  margin: 6px 0 16px;
  color: #666;
}

.ai-rounds {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.ai-round-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  transition: background-color 0.2s ease;
}

.ai-round-row:first-child {
  border-top: 0;
}

.ai-round-row:hover {
  background-color: #f8f9fa;
}

.ai-round-name {
  font-weight: 600;
  color: #333;
  flex: 1;
  margin-right: 12px;
}

.ai-round-played {
  background-color: #f8f9fa;
  opacity: 0.85;
}

.ai-round-played:hover {
  background-color: #e9ecef;
  opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 576px) {
  .ai-title {
    font-size: 1.3rem;
    margin: 6px 0 8px;
  }
  
  .ai-subcopy {
    margin: 0 auto 12px;
    padding: 0 12px;
  }
  
  .ai-subcopy-strong {
    font-size: 1rem;
  }
  
  .ai-bullets {
    max-width: 100%;
    padding: 0 12px;
  }
  
  .ai-round-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  
  .ai-round-name {
    margin-right: 0;
    width: 100%;
  }
  
  .ai-round-row .btn {
    width: 100%;
  }
}

/* 접근성: 포커스 스타일 */
.ai-round-row:focus-within {
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

.ai-round-row .btn:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}


