/* =========================================================
   ドリル: 「おしい！ もう1回」のヒントと、結果画面の「つまずきのタイプ」
   ========================================================= */

/* ---- ドリル中: ヒントを見て もう1回 ---- */
.drill-feedback.hint { background: #fffbeb; border: 2px solid #fcd34d; }
.fb-slip { margin-top: 6px; font-weight: 800; color: #b45309; }
.fb-hint {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px dashed #fcd34d;
  font-weight: 700; font-size: 1.02rem; line-height: 1.9; overflow-wrap: anywhere;
}
.fb-hint-tag {
  display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px;
  background: #fef3c7; color: #b45309; font-size: .82rem; font-weight: 900; white-space: nowrap;
}
.fb-note { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.hint-giveup { min-height: 48px; margin-top: 10px; }
/* もう1回のあと: 1回目の「ざんねん」より やさしい色に */
.drill-feedback.is-retry.ng { background: #fffbeb; border-color: #fcd34d; }

/* ---- 結果画面: つまずきのタイプ ---- */
.mistake-summary h2 { margin-bottom: 4px; }
.mistake-lead { margin: 0 0 10px; font-size: .9rem; }
.mistake-types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mistake-type {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px; border-radius: 14px;
  background: #fef3c7; color: #92400e; font-weight: 800;
}
.mistake-type b {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: #b45309; font-weight: 900;
}
.mistake-tip {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  font-size: .95rem; line-height: 1.9; overflow-wrap: anywhere;
}
.mistake-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mistake-chip { white-space: normal; }

@media (max-width: 480px) {
  .fb-hint { font-size: .98rem; padding: 8px 10px; }
  .mistake-type { padding: 6px 12px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .drill-feedback.hint, .drill-feedback.is-retry { animation: none !important; }
}
