/* Recitation mini-game styles scoped to overlay elements only */
.recitation-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.recitation-overlay .recitation-game { background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); width: 90%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.recitation-overlay .game-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(200,155,60,0.08), rgba(255,255,255,0.5)); }
.recitation-overlay .game-header h2 { font-size: 20px; margin: 0; color: var(--primary); }
.recitation-overlay .close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #999; transition: color 0.2s; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.recitation-overlay .close-btn:hover { color: #1d1d1f; }
.recitation-overlay .game-area { flex: 1; overflow-y: auto; padding: 24px; }
.recitation-overlay .game-container { display: flex; flex-direction: column; gap: 16px; }
.recitation-overlay .question-box { background: #f5f7fa; border-radius: 12px; padding: 20px; border: 2px solid var(--border); text-align: center; }
.recitation-overlay .question-text { font-size: 16px; color: var(--primary); margin-bottom: 16px; font-weight: 500; }
.recitation-overlay .options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recitation-overlay .option-btn { background: white; border: 2px solid var(--border); border-radius: 10px; padding: 12px 16px; cursor: pointer; transition: all 0.2s; font-size: 14px; color: var(--primary); font-weight: 500; }
.recitation-overlay .option-btn:hover { border-color: var(--accent); background: rgba(200,155,60,0.08); }
.recitation-overlay .option-btn.correct { background: #d4edda; border-color: #28a745; color: #155724; }
.recitation-overlay .option-btn.incorrect { background: #f8d7da; border-color: #f5222d; color: #721c24; }
.recitation-overlay .progress-bar { width: 100%; height: 4px; background: #e8ecf1; border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
.recitation-overlay .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #667eea); transition: width 0.3s ease; }
.recitation-overlay .game-controls { display: flex; gap: 12px; margin-top: 20px; }
.recitation-overlay .control-btn { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; background: white; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary); transition: all 0.2s; }
.recitation-overlay .control-btn:hover { border-color: var(--accent); background: rgba(200,155,60,0.08); }
.recitation-overlay .control-btn.primary { background: var(--accent); color: white; border-color: var(--accent); }
.recitation-overlay .control-btn.primary:hover { background: #b8851f; border-color: #b8851f; }
.recitation-overlay .options-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; background: #f9f9fb; }
@media (max-width: 1024px) { .recitation-overlay .options { grid-template-columns: 1fr; } }
