/* student-launch.css : 학생 첫 화면 단원평가 다음 도전 카드(#assessNext), 2026-11-13 */
#assessNext:empty { display: none; }

/* ---------- 단원평가 다음 도전 ---------- */
.an-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 18px; margin: 0 0 16px; padding: 18px 20px; border: 2px solid #a5b4fc; border-radius: 20px; background: radial-gradient(circle at 92% 12%, #fde68a55 0, transparent 38%), linear-gradient(120deg, #eef2ff 0%, #fff 62%); box-shadow: 0 6px 20px rgba(79, 70, 229, .12); }
.an-card.is-done { border-color: #86efac; background: linear-gradient(120deg, #f0fdf4, #fff 62%); }
.an-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.an-kicker { margin: 0; font-size: 14px; font-weight: 800; color: #4338ca; }
.an-card h2 { margin: 0; font-size: 23px; font-weight: 800; color: #1e1b4b; line-height: 1.3; word-break: keep-all; }
.an-status { margin: 0; font-size: 15px; color: #374151; line-height: 1.5; }
.an-status b { color: #be123c; }
.an-prog { display: flex; align-items: center; gap: 10px; }
.an-prog > b { flex: none; font-size: 13px; color: #4338ca; }
.an-bar { flex: 1; height: 12px; border-radius: 6px; background: #e0e7ff; overflow: hidden; }
.an-bar span { display: block; height: 100%; min-width: 4px; border-radius: 6px; background: linear-gradient(90deg, #818cf8, #4f46e5); }
.an-units { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.an-units li { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 10px; background: #fff; border: 1px solid #e0e7ff; }
.an-units li span { font-size: 12.5px; font-weight: 700; color: #3730a3; white-space: nowrap; }
.an-units em { display: flex; gap: 3px; }
.an-units i { width: 9px; height: 9px; border-radius: 50%; background: #e5e7eb; }
.an-units i.part { background: #fcd34d; }
.an-units i.ok { background: #22c55e; }
.an-side { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.an-lock, .an-gift { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; }
.an-lock { background: #fff7ed; border: 1px solid #fed7aa; }
.an-gift { background: #fdf4ff; border: 1px solid #f5d0fe; }
.an-lock > span, .an-gift > span { font-size: 24px; line-height: 1; }
.an-lock b, .an-gift b { display: block; font-size: 16px; color: #1e1b4b; }
.an-lock b { color: #c2410c; }
.an-lock small, .an-gift small { display: block; font-size: 12.5px; color: #6b7280; }
.an-go { min-height: 52px; padding: 12px 16px; border: 0; border-bottom: 4px solid #3730a3; border-radius: 14px; background: linear-gradient(180deg, #6366f1, #4f46e5); color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.an-go:hover, .an-go:focus-visible { filter: brightness(1.06); background: linear-gradient(180deg, #6366f1, #4f46e5); outline: 3px solid #c7d2fe; outline-offset: 2px; }
.an-go:active { transform: translateY(2px); border-bottom-width: 2px; }
.an-card.is-done .an-go { background: #16a34a; border-bottom-color: #166534; box-shadow: 0 6px 16px rgba(22, 163, 74, .25); }
.an-all { min-height: 40px; padding: 8px 12px; border: 1px solid #c7d2fe; border-radius: 12px; background: #fff; color: #3730a3; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) {
  .an-card { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .an-card h2 { font-size: 19px; }
  .an-status { font-size: 14px; }
  .an-side { flex-direction: row; flex-wrap: wrap; }
  .an-lock, .an-gift { flex: 1 1 140px; padding: 8px 10px; }
  .an-go { flex: 1 1 100%; font-size: 17px; }
  .an-all { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) { .an-go:active { transform: none; } }
