/* streak.css : 연속 기록 카드·인사·랭킹(2026-11-13, streak.js) */
.stk-card { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: 18px; padding: 12px 16px; margin: 0 0 14px; color: #431407; }
.stk-main { display: flex; align-items: center; gap: 10px; }
.stk-main b { font-size: 20px; display: block; }
.stk-main small { color: #9a3412; font-size: 13px; }
.stk-flame { font-size: 30px; filter: grayscale(.6); opacity: .7; }
.stk-flame.lit { filter: none; opacity: 1; animation: stk-flick 1.6s ease-in-out infinite; }
@keyframes stk-flick { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(2deg); } }
.stk-week { display: flex; gap: 6px; }
.stk-day { width: 36px; height: 44px; border-radius: 10px; border: 1px dashed #fdba74; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #9a3412; background: #fff; }
.stk-day i { font-style: normal; font-size: 16px; height: 18px; line-height: 18px; }
.stk-day.visit { border-style: solid; background: #ffedd5; }
.stk-day.learn { border: 2px solid #f97316; background: #ffedd5; font-weight: 800; }
.stk-day.today { box-shadow: 0 0 0 3px #fde68a; }
.stk-side { display: flex; flex-direction: column; min-width: 200px; flex: 1; }
.stk-nudge { font-weight: 800; color: #c2410c; }
.stk-side small { color: #9a3412; }
.stk-rank-btn { margin-left: auto; white-space: nowrap; }

.stk-toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -30px); opacity: 0; z-index: 9999; display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #fdba74; border-radius: 18px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(124, 45, 18, .25); width: min(560px, calc(100vw - 32px)); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .35s; color: #431407; }
.stk-toast.in { transform: translate(-50%, 0); opacity: 1; }
.stk-toast.out { transform: translate(-50%, -20px); opacity: 0; }
.stk-toast-ic { font-size: 40px; }
.stk-toast-txt { display: flex; flex-direction: column; flex: 1; }
.stk-toast-txt b { font-size: 19px; }
.stk-toast-txt small { color: #9a3412; font-size: 14px; }
.stk-got { margin-top: 6px; background: #fef3c7; color: #92400e; border-radius: 10px; padding: 4px 8px; font-weight: 800; font-size: 14px; }
.stk-x { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #9a3412; align-self: flex-start; }

.stk-board { background: #fff; border: 1px solid #fed7aa; border-radius: 18px; padding: 16px 18px; margin: 0 0 14px; color: #431407; }
.stk-board-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.stk-board-head b { font-size: 19px; }
.stk-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.stk-tabs button.on { background: #f97316; color: #fff; border-color: #f97316; }
.stk-gap { flex: 1; }
.stk-list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.stk-list li { display: flex; align-items: center; gap: 10px; border: 1px solid #ffedd5; border-radius: 12px; padding: 6px 10px; background: #fffaf5; }
.stk-list li.me { border: 2px solid #f97316; background: #ffedd5; font-weight: 800; }
.stk-place { width: 30px; text-align: center; font-weight: 900; color: #9a3412; }
.stk-place.p1, .stk-place.p2, .stk-place.p3 { font-size: 20px; }
.stk-who { flex: 1; color: #7c2d12; }
.stk-me { font-weight: 800; color: #c2410c; margin: 10px 0 0; }
.stk-goals { margin-top: 12px; border-top: 1px dashed #fed7aa; padding-top: 10px; }
.stk-goal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.stk-goal { display: inline-flex; flex-direction: column; align-items: center; border: 1px dashed #fdba74; border-radius: 12px; padding: 6px 12px; font-weight: 800; }
.stk-goal small { font-weight: 600; color: #9a3412; }
.stk-goal.ok { border-style: solid; background: #dcfce7; border-color: #86efac; color: #166534; }

/* 선생님 화면: 이름 옆 연속 학습 */
.stk-mini { font-size: 11px; font-weight: 800; color: #c2410c; background: #ffedd5; border-radius: 999px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }

@media (max-width: 700px) { .stk-rank-btn { margin-left: 0; } .stk-side { min-width: 0; } }
