/* mission-stamps.css : 미션 도장·배지·추천(2026-11-13, mission-stamps.js) */
.ms-board, .ms-home, .ms-rec { background: #fff; border: 1px solid #e0e7ff; border-radius: 18px; padding: 16px 18px; margin: 0 0 14px; color: #1e1b4b; }
.ms-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 12px; }
.ms-head b { font-size: 19px; }
.ms-head small { flex-basis: 100%; }
.ms-master-n { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 14px; }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ms-card { position: relative; border: 2px solid color-mix(in srgb, var(--c) 35%, #e5e7eb); border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--c) 6%, #fff); overflow: hidden; }
.ms-card.master { border-color: #f59e0b; box-shadow: 0 0 0 3px #fde68a inset; background: linear-gradient(135deg, #fffbeb, color-mix(in srgb, var(--c) 8%, #fff)); }
.ms-title { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ms-title b { font-size: 16px; }
.ms-title small { color: #64748b; font-size: 12px; }
.ms-ic { font-size: 20px; }
.ms-stamps { display: flex; gap: 12px; justify-content: center; }
.ms-stamp { width: 92px; height: 92px; border-radius: 50%; border: 3px dashed #cbd5e1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #94a3b8; background: rgba(255,255,255,.7); }
.ms-stamp small { font-size: 12px; font-weight: 700; }
.ms-stamp em { font-style: normal; font-size: 12px; margin-top: 3px; color: #64748b; }
.ms-stamp.on { border: 4px double #dc2626; color: #dc2626; background: rgba(254,226,226,.55); transform: rotate(-12deg); box-shadow: 0 0 0 2px rgba(220,38,38,.18); }
.ms-stamp.on b { font-size: 24px; letter-spacing: 2px; line-height: 1; font-weight: 900; }
.ms-stamp.on small { color: #b91c1c; margin-top: 3px; }
.ms-ribbon { margin-top: 10px; text-align: center; font-weight: 900; color: #92400e; background: #fde68a; border-radius: 999px; padding: 4px 10px; }
.ms-board.compact .ms-stamp { width: 70px; height: 70px; }
.ms-board.compact .ms-stamp.on b { font-size: 18px; }
.ms-board.compact .ms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* 첫 화면 */
.ms-home { padding: 14px 16px; }
.ms-home-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ms-home-top > b { font-size: 17px; }
.ms-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-dot { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; border: 2px dashed #cbd5e1; background: #f8fafc; }
.ms-dot i { position: absolute; bottom: -7px; right: -8px; font-style: normal; font-size: 10px; font-weight: 800; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0 4px; color: #475569; }
.ms-dot.k1 { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.ms-dot.k2 { border: 3px double #dc2626; background: #fee2e2; }
.ms-dot.master { border-color: #f59e0b; background: #fef3c7; box-shadow: 0 0 0 2px #fde68a; }
.ms-all { margin-left: auto; }
.ms-home .ms-rec { border: 0; padding: 0; margin: 0; }

/* 추천 */
.ms-rec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ms-rec-head b { font-size: 16px; }
.ms-shuffle { margin-left: auto; }
.ms-rec ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-rec li { display: flex; align-items: center; gap: 10px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; background: #f8fafc; }
.ms-rec-ic { font-size: 22px; flex: none; }
.ms-rec-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ms-rec-txt b { font-size: 15px; }
.ms-rec-txt small { color: #64748b; font-size: 13px; }
.ms-go { flex: none; background: #4f46e5; color: #fff !important; text-decoration: none; border-radius: 10px; padding: 7px 12px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.ms-go:hover { background: #4338ca; }

/* 선생님 표 게임 칸 */
.ms-mini { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800; color: #b91c1c; background: #fee2e2; border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.ms-mini.master { color: #92400e; background: #fde68a; }

@media (max-width: 900px) { .ms-grid, .ms-board.compact .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ms-grid, .ms-board.compact .ms-grid { grid-template-columns: 1fr; } .ms-all { margin-left: 0; } }
