/* =========================================================================
 * Chuỗi ngày (#/streak, #/streak/goal, #/streak/settings) và hàng 7 ngày (dùng lại ở màn chúc mừng sau bài).
 * Bố cục theo màn Streak của Duolingo (băng màu theo trạng thái, lịch nối dải, mục tiêu có mốc lịch, Streak Society),
 * thêm ý của Finch / BitePal (ô giấy giữ chuỗi), Speak / Fable (kỷ lục). Số kiểu bảng LED minibus của app.
 * Màu lấy từ biến của bảng màu (tuyến MTR, --sign-gold…) nên tự đổi theo 8 bảng màu và ngày / đêm.
 * ========================================================================= */
/* Màu nghĩa của chuỗi: lửa (cam), giấy xin phép (xanh băng), 恆心會 (vàng). Pha với màu của bảng màu đang chọn để hợp
 * từng bảng, nhưng vẫn giữ đúng sắc cam / xanh (vài bảng màu đổi tuyến cam thành nâu, tuyến xanh thành xanh lá). */
:root {
  --sk-fire: color-mix(in srgb, #ff8a1f 74%, var(--l-orange)); --sk-hot: color-mix(in srgb, #ffa53a 74%, var(--l-orange));
  --sk-deep: color-mix(in srgb, #e8541e 80%, var(--l-orange)); --sk-ice: color-mix(in srgb, #3b9be4 76%, var(--l-blue));
  --sk-gold: var(--sign-gold, #f3bd3b); --sk-red: color-mix(in srgb, #e5402f 80%, var(--bad));
}
.sk-page .pf-bar { grid-template-columns: 88px 1fr 88px; }
.sk-bar-r { display: inline-flex; gap: 2px; }
.sk-page button.pf-back { border: 0; background: transparent; cursor: pointer; color: var(--text); padding: 0; font: inherit; }
.sk-page button.pf-back:hover { background: var(--surface-2); }
.sk-sec { margin-top: 20px; }
.sk-h { font-size: 1.18rem !important; font-weight: 800; margin: 0 2px 10px !important; }
.sk-hrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sk-hrow .linkish { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; color: var(--l-sky); }

/* ---------- băng chuỗi ---------- */
.sk-hero2 {
  --sk-bg: var(--surface-2); --sk-ink: var(--text); --sk-num: color-mix(in srgb, var(--muted) 80%, transparent); --sk-ghost: color-mix(in srgb, var(--muted) 9%, transparent);
  position: relative; border-radius: 24px; overflow: hidden; color: var(--sk-ink); border: 2px solid var(--ink-line, var(--border)); box-shadow: var(--shadow);
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .22) 0 2px, transparent 3px) 0 0 / 28px 28px, var(--sk-bg);
}
.sk-hero2.is-on { --sk-bg: linear-gradient(145deg, #ffb444 0%, var(--sk-hot) 40%, var(--sk-deep) 100%); --sk-ink: #fff; --sk-num: #fff; --sk-ghost: rgba(255, 255, 255, .13); }
.sk-hero2.is-gold { --sk-bg: linear-gradient(145deg, #ffe9a6 0%, var(--sk-gold) 50%, #d99a00 100%); --sk-ink: #4a2c00; --sk-num: #5a3500; --sk-ghost: rgba(90, 53, 0, .12); }
.sk-hero2.is-risk { --sk-bg: color-mix(in srgb, var(--sk-fire) 9%, var(--surface-2)); --sk-num: color-mix(in srgb, var(--muted) 85%, var(--sk-fire)); --sk-ghost: color-mix(in srgb, var(--muted) 9%, transparent); }
.sk-hero2.is-ice { --sk-bg: linear-gradient(145deg, color-mix(in srgb, var(--sk-ice) 34%, var(--surface)), color-mix(in srgb, var(--sk-ice) 14%, var(--surface))); --sk-num: var(--sk-ice); --sk-ghost: color-mix(in srgb, var(--sk-ice) 16%, transparent); }
.sk-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 18px 20px 4px; }
.sk-num { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sk-num .sk-tag { margin-bottom: 6px; }
.sk-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border);
}
.sk-tag .ic { width: 15px; height: 15px; }
.is-on .sk-tag { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .35); }
.is-gold .sk-tag { background: rgba(90, 53, 0, .12); color: #4a2c00; border-color: rgba(90, 53, 0, .2); }
.sk-tag.warn { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.sk-tag.warn b { font-weight: 900; text-transform: none; letter-spacing: 0; }
.sk-tag.ice { color: var(--sk-ice); border-color: color-mix(in srgb, var(--sk-ice) 40%, var(--border)); }
:root:not([data-fx="less"]) .sk-tag.warn { animation: sk-pulse 1.8s ease-in-out infinite; }
.sk-big { display: inline-block; font-family: var(--font-led); font-weight: 700; font-size: clamp(3.8rem, 15vw, 5.6rem); line-height: .92; letter-spacing: .04em; color: var(--sk-num); }
.sk-big span { position: relative; z-index: 0; }
.sk-big span::before { content: attr(data-ghost); position: absolute; inset: 0; z-index: -1; color: var(--sk-ghost); text-shadow: none; }
.is-on .sk-big, .is-gold .sk-big { text-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
:root:not([data-fx="less"]) .sk-hero2.is-on .sk-big span, :root:not([data-fx="less"]) .sk-hero2.is-gold .sk-big span { display: inline-block; animation: sk-pop .7s cubic-bezier(.3, 1.6, .5, 1) .1s both; }
.sk-unit { font-weight: 800; font-size: 1.22rem; line-height: 1.1; }
.sk-hero2:not(.is-on):not(.is-gold) .sk-unit { color: var(--muted); }
.sk-fig .tc { margin: 0; }
.sk-fig .tc-lg { width: min(176px, 40vw); }
:root:not([data-fx="less"]) .sk-hero2 .sk-fig .tc-img { animation: tc-bob 2.8s ease-in-out infinite; }
.sk-flame { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 28px; color: var(--sk-fire); background: color-mix(in srgb, var(--sk-fire) 14%, var(--surface)); }
.is-on .sk-flame { background: rgba(255, 255, 255, .22); color: #fff; }
.sk-flame .ic { width: 60px; height: 60px; }
.sk-say { display: flex; justify-content: flex-end; padding: 0 16px; margin-top: -4px; }
.sk-say .tc-bubble { max-width: min(100%, 360px); }
.sk-panel { display: grid; gap: 12px; margin: 10px; padding: 14px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1.5px solid color-mix(in srgb, var(--border) 70%, transparent); }
.sk-line { margin: 0; line-height: 1.5; text-align: center; }
.sk-line .muted { display: block; font-size: .88rem; margin-top: 2px; }
.sk-cta { justify-content: center; }

/* ---------- hàng 7 ngày (trang chuỗi + màn chúc mừng sau bài) ---------- */
.sk-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; width: 100%; margin: 0 auto; }
.sk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sk-day small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.sk-day span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: transparent; border: 2px solid transparent; }
.sk-day span svg { width: 18px; height: 18px; }
.sk-day.on span { background: var(--sk-fire); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.sk-day.frz span { background: var(--sk-ice, var(--l-sky)); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.sk-day.is-today small { color: var(--text); font-weight: 800; }
.sk-day.is-today span { border-color: var(--sk-fire); }
.sk-day.future span { background: transparent; border: 2px dashed var(--border); }
.ses-fin-sub .sk-week { margin: 4px auto 14px; }

/* ---------- ghi chú (tuần trọn vẹn) ---------- */
.sk-note { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); }
.sk-note p { margin: 0; line-height: 1.5; }
.sk-note-i { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--l-purple) 14%, transparent); color: var(--l-purple); }
.sk-note-i .ic { width: 22px; height: 22px; }
.sk-note.perfect { border-color: color-mix(in srgb, var(--sk-gold) 60%, var(--border)); background: color-mix(in srgb, var(--sk-gold) 16%, var(--surface)); }
.sk-note.perfect .sk-note-i { background: var(--sk-gold); color: #5a3500; }

/* ---------- sửa chuỗi ---------- */
.sk-repair { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 0; padding: 14px;
  border: 2px solid color-mix(in srgb, var(--l-teal) 50%, var(--border)); background: color-mix(in srgb, var(--l-teal) 8%, var(--surface)); }
.sk-rp-art { flex: 0 0 auto; }
.sk-rp-art .tc { width: 84px; margin: 0; }
.sk-rp-art > .ic { width: 40px; height: 40px; color: var(--l-teal); }
.sk-rp-t { flex: 1; min-width: 0; }
.sk-rp-t h2 { font-size: 1.12rem; }
.sk-rp-t p { margin: 6px 0; line-height: 1.5; }
.sk-rp-cost { font-size: .86rem; }
.sk-rp-low { color: var(--bad); font-size: .85rem; }
.sk-rp-low .ic { width: 1em; height: 1em; vertical-align: -.12em; }

/* ---------- mục tiêu chuỗi ---------- */
.sk-goal { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; color: var(--text); text-align: left; text-decoration: none !important; }
.sk-goal > span:not([class]) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sk-goal > span small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.sk-goal.empty { border-style: dashed; }
.sk-goal.empty:hover { background: var(--surface-2); }
.sk-goal:not(.empty):not(.done) { flex-direction: column; align-items: stretch; }
.sk-goal.done { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.sk-track { display: flex; align-items: center; }
.sk-bar { flex: 1; height: 16px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 0 -3px; }
.sk-bar i { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: linear-gradient(90deg, var(--sk-hot), var(--sk-fire));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 4px 0 rgba(255, 255, 255, .28); transition: width .6s ease; }
.sk-bar.sm { height: 10px; margin: 0; }
.sk-goal-t { margin: 10px 0 0; }
.sk-calchip { position: relative; z-index: 1; flex: 0 0 auto; display: inline-grid; place-items: center; width: 38px; height: 42px; border-radius: 9px;
  background: var(--surface); border: 2px solid var(--border); color: var(--muted); box-shadow: 0 2px 0 var(--border); }
.sk-calchip i { position: absolute; top: -2px; left: -2px; right: -2px; height: 11px; border-radius: 8px 8px 0 0; background: var(--faint); }
.sk-calchip b { margin-top: 9px; font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sk-calchip.done { border-color: var(--sk-fire); color: var(--sk-fire); box-shadow: 0 2px 0 color-mix(in srgb, var(--sk-fire) 60%, #000); }
.sk-calchip.done i { background: var(--sk-fire); }
.sk-calchip.end i { background: var(--sk-red); }
.sk-calchip.big { width: 48px; height: 52px; }
.sk-calchip.big b { font-size: 1.05rem; }

/* ---------- lịch tháng ---------- */
.sk-mhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 2px 4px; }
.sk-mt { font-size: 1.18rem !important; font-weight: 800; }
.sk-mnav { display: flex; gap: 2px; }
.sk-mnav .pf-back { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.sk-mnav .pf-back:disabled { opacity: .3; cursor: default; }
.sk-fwd .ic { transform: rotate(180deg); }
.sk-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.sk-chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); }
.sk-chip > span:last-child { display: grid; min-width: 0; }
.sk-chip b { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.sk-chip small { color: var(--muted); font-size: .8rem; }
.sk-ci { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.sk-ci .ic { width: 17px; height: 17px; }
.sk-ci.on { background: var(--sk-fire); }
.sk-ci.frz { background: var(--sk-ice); }
.sk-badge { position: absolute; top: -11px; right: 10px; font-style: normal; font-size: .66rem; font-weight: 900; letter-spacing: .07em; padding: 3px 8px; border-radius: 8px; color: #fff; background: var(--l-green); }
.sk-badge.great { background: var(--sk-fire); }
.sk-badge.perfect { background: linear-gradient(90deg, var(--sk-hot), var(--sk-red)); }
.sk-mcard { margin: 0; padding: 12px 10px 10px; }
.sk-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; column-gap: 0; text-align: center; }
.sk-cal > b { font-size: .72rem; color: var(--muted); padding-bottom: 4px; }
.sk-c { position: relative; height: 42px; display: grid; place-items: center; font-size: .9rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sk-c i { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; }
.sk-c.r::before { content: ''; position: absolute; inset: 4px 0; z-index: 0; background: var(--sk-run); }
.sk-c.on { --sk-run: var(--sk-hot); color: #fff; font-weight: 800; }
.sk-c.frz { --sk-run: var(--sk-ice); color: #fff; font-weight: 800; }
.sk-c.rs::before { left: 3px; border-radius: 999px 0 0 999px; }
.sk-c.re::before { right: 3px; border-radius: 0 999px 999px 0; }
.sk-c.rs.re::before { border-radius: 999px; }
.sk-c.is-today i { box-shadow: inset 0 0 0 2.5px var(--sk-fire); font-weight: 800; }
.sk-c.r.is-today i { box-shadow: inset 0 0 0 2.5px #fff; }
.sk-c.future { color: var(--faint); }
.sk-c.flag i { background: color-mix(in srgb, var(--sk-gold) 30%, transparent); color: var(--text); font-weight: 800; }
.sk-flag { position: absolute; top: -3px; right: calc(50% - 21px); z-index: 2; color: var(--sk-red); line-height: 0; }
.sk-flag .ic { width: 16px; height: 16px; }
.sk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.sk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sk-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.sk-legend .lg.on { background: var(--sk-hot); }
.sk-legend .lg.frz { background: var(--sk-ice); }
.sk-legend .lg.flag { width: auto; height: auto; color: var(--sk-red); line-height: 0; }
.sk-legend .lg.flag .ic { width: 13px; height: 13px; }

/* ---------- bảo vệ chuỗi: giấy xin phép ---------- */
.sk-protect { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 16px; }
.sk-pass-img { flex: 0 0 auto; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
.sk-pt { flex: 1; min-width: 0; display: grid; gap: 8px; }
.sk-pt p { margin: 0; font-size: .9rem; }
.sk-pt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.sk-slots { display: inline-flex; align-items: center; gap: 5px; }
.sk-slots small { font-weight: 800; color: var(--muted); margin-left: 2px; }
.sk-slot { display: grid; place-items: center; width: 28px; height: 32px; border-radius: 7px; border: 2px dashed var(--border); color: var(--faint); }
.sk-slot .ic { width: 16px; height: 16px; }
.sk-slot.on { border: 2px solid color-mix(in srgb, var(--sk-ice) 70%, #000); background: var(--sk-ice); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--sk-ice) 60%, #000); }
.sk-earn { display: grid; gap: 5px; }
.sk-earn .sk-bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--sk-ice) 60%, #fff), var(--sk-ice)); }
.sk-earn small { color: var(--muted); font-size: .84rem; }
.sk-protect .btn { justify-self: start; }

/* ---------- mốc chuỗi & 恆心會 ---------- */
.sk-mss { margin: 0; padding: 0; overflow: hidden; }
.sk-ms { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1.5px solid var(--border); }
.sk-ms:first-child { border-top: 0; }
.sk-ms.next { background: color-mix(in srgb, var(--sk-fire) 7%, transparent); }
.sk-ms-art { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.sk-ms-art img { width: 56px; height: 56px; object-fit: contain; }
.sk-ms:not(.done):not(.next) .sk-ms-art img { filter: grayscale(1); opacity: .4; }
.sk-ms-ic .ic { width: 28px; height: 28px; color: var(--sk-fire); }
.sk-ms-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sk-ms-t small { color: var(--muted); font-size: .84rem; }
.sk-ms-st { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; color: var(--faint); }
.sk-ms-st .ic { width: 16px; height: 16px; }
.sk-ms-st.ok { color: var(--ok); }
.sk-ms-st.next { color: var(--sk-fire); }
.sk-soc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1.5px solid var(--border); background: var(--surface-2); }
.sk-soc > .ic { flex: 0 0 auto; width: 24px; height: 24px; color: var(--faint); }
.sk-soc p { margin: 0; font-size: .9rem; line-height: 1.45; }
.sk-soc.on { background: color-mix(in srgb, var(--sk-gold) 24%, var(--surface)); }
.sk-soc.on > .ic { color: #a26f00; }

/* ---------- kỷ lục ---------- */
.sk-rv { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sk-page .set-r small { color: var(--muted); font-size: .8rem; }

/* ---------- chọn mục tiêu ---------- */
.sk-gpage { display: grid; justify-items: center; gap: 12px; max-width: 520px; margin: 0 auto; text-align: center; }
.sk-ghero { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sk-ghero .tc-lg { width: min(160px, 42vw); margin: 0; }
.sk-gh { font-size: 1.5rem !important; font-weight: 800; }
.sk-gsub { margin: 0; line-height: 1.5; }
.sk-gopts { display: grid; gap: 10px; width: 100%; margin: 4px 0; }
.sk-gopt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface);
  box-shadow: 0 3px 0 var(--border); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .1s; }
.sk-gopt:hover { background: var(--surface-2); }
.sk-gopt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border); }
.sk-gopt.on { border-color: var(--l-sky); background: color-mix(in srgb, var(--l-sky) 10%, var(--surface)); box-shadow: 0 3px 0 color-mix(in srgb, var(--l-sky) 65%, var(--border)); }
.sk-gopt-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sk-gopt-t b { font-size: 1.12rem; }
.sk-gopt-t small { color: var(--muted); }
.sk-gopt-m { font-weight: 800; color: var(--sk-fire); }
.sk-gclear { color: var(--muted); }

/* ---------- số chuỗi nảy lên ở màn chúc mừng sau bài ---------- */
.sk-bump { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 6px; }
.sk-bump b { font-family: var(--font-led); font-size: 3.4rem; line-height: 1; color: var(--sk-fire); }
.sk-bump span { font-weight: 800; color: var(--sk-fire); }
:root:not([data-fx="less"]) .sk-bump b { animation: sk-pop .7s cubic-bezier(.3, 1.6, .5, 1) .15s both; }

/* ---------- hai tab "Của tôi | Bạn bè" ---------- */
.sk-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -4px 0 14px; border-bottom: 2px solid var(--border); }
.sk-tabs a { padding: 10px 0 9px; text-align: center; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none !important; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sk-tabs a:hover { color: var(--text); }
.sk-tabs a.on { color: var(--l-sky); border-bottom-color: var(--l-sky); }

/* ---------- tab Bạn bè: chuỗi chung ---------- */
.sk-fhero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 18px 18px 14px; border-radius: 24px; overflow: hidden;
  color: #fff; border: 2px solid var(--ink-line, var(--border)); box-shadow: var(--shadow);
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .22) 0 2px, transparent 3px) 0 0 / 28px 28px, linear-gradient(145deg, #ffb444 0%, var(--sk-hot) 40%, var(--sk-deep) 100%); }
.sk-fh-t h2 { font-size: 1.35rem; line-height: 1.2; }
.sk-fh-t p { margin: 6px 0 0; line-height: 1.45; opacity: .95; }
.sk-duo { display: flex; align-items: flex-end; }
.sk-duo .tc { width: 92px; margin: 0; }
.sk-duo .tc + .tc { margin-left: -26px; }
.sk-duo .tc.flip .tc-img { transform: scaleX(-1); }
.sk-duo .sk-flame { background: rgba(255, 255, 255, .22); color: #fff; }
.sk-fhero .sk-say { grid-column: 1 / -1; justify-content: flex-start; padding: 0; margin: 6px 0 0; }
.sk-fhero .tc-bubble { color: var(--text); }
.sk-fs-load { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 18px; color: var(--muted); }
.sk-fs-load .ic { width: 18px; height: 18px; }
:root:not([data-fx="less"]) .sk-fs-load .ic { animation: sk-spin 1.2s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
.sk-fs-gate { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 16px; }
.sk-fs-gate h2 { font-size: 1.08rem; }
.sk-fs-gate p { margin: 6px 0 10px; line-height: 1.5; }
.sk-fs-list { margin: 0; padding: 0; overflow: hidden; }
.sk-fs-row { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 14px; border-top: 1.5px solid var(--border); color: var(--text); text-decoration: none !important; }
.sk-fs-row:first-child { border-top: 0; }
.sk-fs-row.hot { background: color-mix(in srgb, var(--sk-fire) 7%, transparent); }
.sk-fs-row.wait .set-t b { color: var(--muted); }
.sk-fs-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none !important; }
.sk-fs-who:hover b { color: var(--l-sky); }
.sk-fs-who .set-t small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sk-fs-flame { display: inline-flex; align-items: center; gap: 2px; color: var(--faint); font-weight: 800; }
.sk-fs-flame .ic { width: 16px; height: 16px; }
.sk-fs-flame.on { color: var(--sk-fire); }
.sk-fs-flame.on .ic { fill: color-mix(in srgb, var(--sk-fire) 40%, transparent); }
.sk-fs-nudge { flex: 0 0 auto; color: var(--l-sky); border-color: color-mix(in srgb, var(--l-sky) 45%, var(--border)); font-weight: 800; }
.sk-fs-done { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--ok); }
.sk-fs-done .ic { width: 15px; height: 15px; }
.sk-fs-x { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bad); color: #fff; }
.sk-fs-x.plain { background: transparent; color: var(--muted); }
.sk-fs-x .ic { width: 18px; height: 18px; }
.sk-fs-row.empty { color: var(--faint); font-weight: 700; }
.sk-fs-row.empty:hover { background: var(--surface-2); color: var(--text); }
.sk-fs-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--border); }
.sk-fs-plus .ic { width: 20px; height: 20px; }
.sk-fs-hint { margin: 8px 4px; }
.sk-fs-nudged { margin-top: 14px; border-color: color-mix(in srgb, var(--l-sky) 45%, var(--border)); background: color-mix(in srgb, var(--l-sky) 8%, var(--surface)); }
.sk-fs-nudged .sk-note-i { background: var(--l-sky); color: #fff; }
.sk-fs-nudged p { flex: 1; }
.sk-board .sk-fs-row.me { background: color-mix(in srgb, var(--l-sky) 8%, transparent); }
.sk-rank { flex: 0 0 auto; width: 24px; text-align: center; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.sk-rank.r1 { color: #c99400; } .sk-rank.r2 { color: #8a96a3; } .sk-rank.r3 { color: #b26a3c; }
.sk-board .sk-fs-row .set-t { flex: 1; min-width: 0; }
.sk-fs-rules { margin: 18px 0 0; padding: 12px 16px; }
.sk-fs-rules summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sk-fs-rules summary .ic { width: 18px; height: 18px; color: var(--l-sky); }
.sk-fs-rules ul { margin: 10px 0 2px; padding-left: 20px; line-height: 1.55; color: var(--muted); }
/* ô nhỏ ở tab Của tôi */
.sk-fs-peek-c { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 14px; color: var(--text); text-decoration: none !important; }
.sk-fs-peek-c:hover { background: var(--surface-2); }
.sk-fs-peek-c.alert { border-color: color-mix(in srgb, var(--l-sky) 50%, var(--border)); background: color-mix(in srgb, var(--l-sky) 7%, var(--surface)); }
.sk-fs-peek-c .set-t { flex: 1; min-width: 0; }
.sk-fs-faces { display: flex; }
.sk-fs-mini { position: relative; display: inline-flex; flex-direction: column; align-items: center; margin-left: -8px; }
.sk-fs-mini:first-child { margin-left: 0; }
.sk-fs-mini .set-face { border: 2px solid var(--surface); }
.sk-fs-mini .sk-fs-flame { margin-top: -6px; padding: 0 4px; border-radius: 999px; background: var(--surface); font-size: .72rem; }
.sk-fs-mini .sk-fs-flame .ic { width: 12px; height: 12px; }
/* trang mời */
.sk-inv-head { text-align: center; margin: 4px 0 12px; }
.sk-inv-head p { margin: 4px 0 0; }
.sk-inv-q { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); }
.sk-inv-q input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.sk-inv-q .ic { width: 18px; height: 18px; color: var(--muted); }

@keyframes sk-pop { 0% { transform: scale(.4) translateY(12px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sk-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 35%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

@media (max-width: 560px) {
  .sk-top { padding: 16px 14px 2px; }
  .sk-fig .tc-lg { width: 132px; }
  .sk-panel { margin: 8px; padding: 12px; }
  .sk-day span { width: 32px; height: 32px; }
  .sk-c { height: 38px; font-size: .85rem; }
  .sk-c i { width: 30px; height: 30px; }
  .sk-protect { padding: 12px; gap: 10px; }
  .sk-pass-img { width: 52px; height: 52px; }
  .sk-repair { padding: 12px; gap: 10px; }
  .sk-rp-art .tc { width: 60px; }
}

/* Bảo vệ chuỗi, Quà giữ chuỗi (kiểu Streak Protection / Streak Society của Duolingo): hàng bấm được dẫn sang phòng Tiểu Cường */
.sk-gift-row { text-decoration: none !important; color: inherit; }
.sk-gift-row:hover b { text-decoration: underline; }
.sk-gift-art { overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.sk-gift-art img { width: 100%; height: 100%; object-fit: cover; }
.sk-ms-t .tc-rare { font-size: .6875rem; padding: 1px 6px; vertical-align: 1px; }
.sk-gift-note { margin: 10px 0 0; font-size: .875rem; }

/* ---------- nhiệm vụ bạn bè hằng tuần (trang Nhiệm vụ, tab Bạn bè): src/features/quests/friend-quest.js ---------- */
.fq-slot:empty { display: none; }
.fq { --fq-me: var(--sk-fire, #ff8a1f); --fq-them: color-mix(in srgb, #7a4fd6 75%, var(--l-purple)); display: grid; gap: 10px; }
.fq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fq-head h2 { font-size: .8rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fq-left { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fq-left .ic { width: 15px; height: 15px; }
.fq-art { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 10px 0 2px; border-radius: 16px;
  background: radial-gradient(120px 70px at 50% 80%, color-mix(in srgb, var(--sk-gold, #f3bd3b) 26%, transparent), transparent 70%), color-mix(in srgb, var(--fq-them) 9%, var(--surface-2)); }
.fq-art .tc { width: 76px; margin: 0; }
.fq-art .tc.flip .tc-img { transform: scaleX(-1); }
.fq-chest { margin-bottom: 10px; }
.fq-chest .q-chest, .fq-claim .q-chest, .fq-last .q-chest { width: 40px; height: 34px; }
.fq-title { font-size: 1.15rem; line-height: 1.3; }
.fq-title small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.fq-txt { margin: 0; line-height: 1.5; }
.fq-bar { position: relative; height: 20px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.fq-bar i { position: absolute; top: 0; bottom: 0; min-width: 0; transition: width .5s, left .5s; }
.fq-bar i.me { left: 0; background: var(--fq-me); border-radius: 999px 0 0 999px; }
.fq-bar i.them { background: var(--fq-them); }
.fq-bar.done i.them { border-radius: 0 999px 999px 0; }
.fq-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: .76rem; font-weight: 900; line-height: 20px; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 0 3px var(--surface); }
.fq-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .95rem; }
.fq-legend > span, .fq-legend > a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none !important; font-weight: 600; }
.fq-legend b { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.fq-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.fq-legend .dot.me { background: var(--fq-me); }
.fq-legend .dot.them { background: var(--fq-them); }
.fq-msg { margin: 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--l-sky) 9%, var(--surface-2)); line-height: 1.45; }
.fq-msg.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface-2)); }
.fq-msg .ic { width: 1em; height: 1em; vertical-align: -.12em; }
.fq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fq-actions .btn { flex: 1 1 160px; justify-content: center; }
.fq-claim { display: inline-flex; align-items: center; gap: 6px; }
.fq-last { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--sk-gold, #f3bd3b) 60%, var(--border)); background: color-mix(in srgb, var(--sk-gold, #f3bd3b) 14%, var(--surface)); }
.fq-last p { flex: 1; margin: 0; }
.fq .fq-inv { padding: 6px 0; border-top: 0; min-height: 0; }
