/* Trang "Hồ Sơ Của Em": nền kem như thư viện, dùng chung thanh trên và chữ của library.css */
.hs-main { max-width: 760px; }
.hs-hero { display: flex; align-items: center; gap: clamp(16px, 4vw, 32px); margin-bottom: 24px; }
.hs-avatar { flex: 0 0 auto; display: grid; place-items: center; width: clamp(88px, 22vw, 128px); aspect-ratio: 1; border-radius: 50%; background: #e9f8ff; box-shadow: 2px 6px 0 var(--line), 3px 10px 16px #5e4a3018; overflow: hidden; }
.hs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hs-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; }
.hs-who { margin: 0; font: 700 19px/1.3 "Comfortaa", "Segoe UI", Arial, sans-serif; color: var(--ink-soft); }

.hs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hs-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; border-radius: 22px; background: #fffdf6; text-align: center; box-shadow: 2px 6px 0 var(--line), 3px 10px 16px #5e4a3018; }
.hs-stat strong { font: 700 clamp(26px, 5vw, 36px)/1.1 "Comfortaa", "Segoe UI", Arial, sans-serif; color: #d98a0b; }
.hs-stat span { font: 700 14px/1.3 "Comfortaa", "Segoe UI", Arial, sans-serif; color: #8a6a18; }
.hs-note { margin: 14px 0 0; color: var(--ink-soft); }

.hs-block { margin-top: 32px; }
.hs-block h2 { margin: 0 0 12px; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.25; }
.hs-missions { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hs-mission { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-radius: 18px; background: #fffdf6; box-shadow: 2px 5px 0 var(--line); font-size: 17px; }
.hs-check { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #9db3d6; border-radius: 50%; background: #fff; color: #fff; font-weight: 800; }
.hs-mission.is-done .hs-check { border-color: #2fb45a; background: #2fb45a; }
.hs-mission.is-done .hs-mission-text { color: #5d7a66; text-decoration: line-through; }
.hs-mission-text { flex: 1; color: var(--ink); text-decoration: none; }
a.hs-mission-text:hover { text-decoration: underline; }
.hs-reward { font-weight: 800; color: #d98a0b; }

@media (max-width: 480px) {
  .hs-hero { flex-direction: column; text-align: center; }
  .hs-stats { gap: 8px; }
}

/* Liên kết sửa hồ sơ trên thanh trên */
.hs-edit { color: #fff; text-decoration: none; font: 700 14px/1 "Comfortaa", "Segoe UI", Arial, sans-serif; padding: 12px 14px; border-radius: 22px; background: #ffffff1f; }
.hs-edit:hover { background: #ffffff33; }

.hs-stats-4 { grid-template-columns: repeat(4, 1fr); }
.hs-sub { margin: 20px 0 8px; font: 700 17px/1.3 "Comfortaa", "Segoe UI", Arial, sans-serif; color: var(--ink-soft); }
.hs-empty { padding: 12px 14px; border-radius: 14px; background: #f3ecd6; color: var(--ink-soft); list-style: none; }

/* Huy hiệu */
.hs-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hs-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: #f3ecd6; text-align: center; opacity: .5; filter: grayscale(1); }
.hs-badge.is-on { opacity: 1; filter: none; background: #fffdf6; box-shadow: 2px 5px 0 var(--line); }
.hs-badge-icon { font-size: 30px; line-height: 1; }
.hs-badge-title { font: 700 13px/1.25 "Comfortaa", "Segoe UI", Arial, sans-serif; color: var(--ink); }

/* Đổi quà */
.hs-gifts, .hs-redeemed, .hs-topics, .hs-lessons, .hs-games { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hs-gift { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: #fffdf6; box-shadow: 2px 5px 0 var(--line); }
.hs-gift.is-locked { opacity: .65; }
.hs-gift-icon { font-size: 28px; }
.hs-gift-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hs-gift-info strong { font-size: 16px; color: var(--ink); }
.hs-gift-info span { font-size: 14px; color: #8a6a18; font-weight: 700; }
.hs-gift-btn { min-width: 64px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: #1b5fc4; color: #fff; font-weight: 700; }
.hs-gift-btn:disabled { background: #c9bd9d; cursor: default; }
.hs-redeemed li, .hs-game { padding: 8px 14px; border-radius: 12px; background: #f3ecd6; color: var(--ink-soft); }

/* Học tập */
.hs-week { display: flex; align-items: flex-end; gap: 8px; height: 118px; padding: 10px 6px 0; border-radius: 18px; background: #fffdf6; box-shadow: 2px 5px 0 var(--line); }
.hs-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.hs-day-n { font: 700 12px/1 "Comfortaa", sans-serif; color: #1b5fc4; height: 12px; }
.hs-day-bar { width: 70%; max-width: 34px; border-radius: 8px 8px 0 0; background: #d9d2bc; }
.hs-day-bar.is-on { background: #4d9be0; }
.hs-day-l { font-size: 12px; color: var(--ink-soft); padding-bottom: 4px; }
.hs-topic, .hs-lesson { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #fffdf6; box-shadow: 2px 4px 0 var(--line); }
.hs-topic-name { font-weight: 700; color: var(--ink); }
.hs-topic-meta, .hs-lesson-ts { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.hs-lesson-q { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

@media (max-width: 480px) {
  .hs-stats-4 { grid-template-columns: repeat(2, 1fr); }
  .hs-topic { flex-direction: column; gap: 2px; }
}

/* Lightweight cut-paper icons; only the artwork is muted for unearned badges. */
.hs-paper-icon { display: inline-block; flex: none; width: 48px; height: 48px; object-fit: contain; vertical-align: middle; }
.hs-avatar img.hs-paper-avatar { object-fit: contain; padding: 6px; box-sizing: border-box; }
.hs-badge { filter: none; opacity: 1; }
.hs-badge:not(.is-on) .hs-paper-icon { filter: grayscale(1); opacity: .45; }
.hs-badge:not(.is-on) .hs-badge-title { color: #697782; }
.hs-gift-icon { width: 44px; height: 44px; }
.hs-gift-info { min-width: 0; }
.hs-stat strong { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.hs-paper-icon.hs-stat-star { width: 32px; height: 32px; }
.hs-star-amount { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.hs-paper-icon.hs-star-icon { width: 18px; height: 18px; }
.hs-reward { flex: none; white-space: nowrap; }
.hs-check { position: relative; border: 2px solid #f8f4e8; background: #e2e8e4; box-shadow: 0 2px 0 #acbdb4, inset 0 0 0 1px #ccd7cf; }
.hs-mission.is-done .hs-check { border-color: #f8f4e8; background: #78a98f; box-shadow: 0 2px 0 #537e68, inset 0 0 0 1px #a5c8b4; }
.hs-mission.is-done .hs-check::after { content: ''; width: 8px; height: 14px; border: solid #fff8dd; border-width: 0 4px 4px 0; transform: translateY(-2px) rotate(40deg); filter: drop-shadow(1px 1px 0 #4e775c); }
.hs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .hs-paper-icon.hs-stat-star { width: 25px; height: 25px; }
  .hs-stat strong { gap: 3px; }
}

/* Bỏ hết khung: nền phẳng, không hộp, không bóng. Hàng danh sách ngăn nhau bằng đường kẻ mảnh. */
.hs-avatar { box-shadow: none; }
.hs-stat, .hs-badge, .hs-badge.is-on, .hs-gift, .hs-mission, .hs-topic, .hs-lesson, .hs-week,
.hs-empty, .hs-redeemed li, .hs-game { background: transparent; box-shadow: none; border-radius: 0; }
.hs-stat { padding: 8px 4px; }
.hs-badge { padding: 8px 4px; }
.hs-week { padding: 10px 0 0; }
.hs-gift, .hs-mission, .hs-topic, .hs-lesson, .hs-redeemed li, .hs-game { padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
.hs-gifts li:last-child, .hs-missions li:last-child, .hs-topics li:last-child, .hs-lessons li:last-child, .hs-redeemed li:last-child, .hs-games li:last-child { border-bottom: 0; }
.hs-empty { padding-left: 0; padding-right: 0; }
.hs-gifts, .hs-redeemed, .hs-topics, .hs-lessons, .hs-games, .hs-missions { gap: 0; }
