/* "오늘의 5분 학습" 모달 위젯 스타일 — #app-root 재렌더링과 무관한 document.body 직속 오버레이 */
.ms-overlay {
  position: fixed; inset: 0; background: rgba(8,11,31,.72);
  display: none; align-items: center; justify-content: center; z-index: 9999; padding: 16px;
}
.ms-overlay.is-open { display: flex; }
.ms-modal {
  background: #12172e; color: #fff; border-radius: 20px; padding: 22px 22px 26px;
  width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.ms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ms-timer { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fbbf24; }
.ms-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.ms-close:hover { color: #fff; }

.ms-progress { height: 6px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.ms-progress-fill { height: 100%; background: linear-gradient(90deg, #f97316, #7c3aed); transition: width .3s ease; }

.ms-q-kicker { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.ms-q-sentence { font-size: 19px; font-weight: 900; line-height: 1.5; margin-bottom: 4px; }
.ms-q-sub { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 14px; }

.ms-opts { display: grid; gap: 8px; }
.ms-opt {
  text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
  font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.ms-opt:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.ms-opt.is-correct { border-color: #22c55e; background: rgba(34,197,94,.28); animation: ms-pulse .2s ease; }
.ms-opt.is-wrong { border-color: #ef4444; background: rgba(239,68,68,.24); }
.ms-opt:disabled { cursor: default; }

@keyframes ms-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.035); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ms-opt.is-correct { animation: none; }
}

.ms-results { text-align: center; }
.ms-results-emoji { font-size: 46px; margin-bottom: 6px; }
.ms-results-title { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.ms-results-grid { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
.ms-results-grid > div { display: flex; flex-direction: column; gap: 2px; }
.ms-results-grid strong { font-size: 18px; font-weight: 900; }
.ms-results-grid span { font-size: 11px; color: rgba(255,255,255,.6); }
.ms-results-next { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 16px; }

.ms-recommend {
  background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.3);
  border-radius: 14px; padding: 14px; margin-bottom: 18px; text-align: left;
}
.ms-recommend-label { font-size: 11px; font-weight: 800; color: #c4b5fd; margin-bottom: 4px; }
.ms-recommend-title { font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.ms-recommend-ex { font-size: 12.5px; color: rgba(255,255,255,.7); font-style: italic; margin-bottom: 10px; }

.ms-btn {
  display: inline-block; border: none; border-radius: 12px; padding: 12px 18px;
  font-weight: 900; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center;
}
.ms-btn-primary { background: linear-gradient(135deg, #f97316, #7c3aed); color: #fff; width: 100%; }
.ms-btn-ghost { background: rgba(255,255,255,.1); color: #fff; width: 100%; }

.ms-empty { padding: 30px 10px; text-align: center; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.8); }
