/* src/css/hoc-an-sao.css – tab Học an sao (desktop: trang phủ dưới menubar · mobile: mở từ Trang chủ)
   Màu theo theme (mb-theme-btn): biến --hs-* khai báo trong theme.css (Ôn tập dùng chung).
   Bàn cờ, thẻ bài (nền giấy) và 5 viên ngũ hành giữ màu riêng ở mọi theme. */
.hoc-page { display: none; }
.hoc-page, .ot-page {                 /* nút chung trong trang: màu riêng của Học an sao (theme.css: --hs-btn-*) */
  --btn-pri-bg: var(--hs-btn-pri-bg); --btn-pri-bg-hover: var(--hs-btn-pri-bg-hover); --btn-pri-fg: var(--hs-btn-pri-fg);
}
body[data-layout="desktop"].mb-page-hoc .hoc-page,
body[data-layout="mobile"].hoc-open .hoc-page {
  display: block;
  position: fixed; left: 0; right: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  color: var(--hs-chu);
  font: 14px/1.55 Arial, sans-serif;
  background: var(--hs-nen);
  background-attachment: fixed;
}
body[data-layout="desktop"].mb-page-hoc .hoc-page { top: 44px; bottom: 0; z-index: 940; }      /* dưới menubar (950) */
body[data-layout="mobile"].hoc-open .hoc-page {
  top: calc(48px + env(safe-area-inset-top)); bottom: 0; z-index: 8950;                        /* dưới thanh trên cùng (9000) */
  padding-bottom: env(safe-area-inset-bottom);
}
body[data-layout="mobile"].hoc-open { overflow: hidden; }

.hoc-top { position: sticky; top: 0; z-index: 2; height: 0; }
.hoc-x {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--hs-vien-2); border-radius: 50%;
  background: var(--hs-x-nen); color: var(--hs-vang); font-size: 16px; cursor: pointer;
}
.hoc-wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 48px; box-sizing: border-box; }
body[data-layout="mobile"] .hoc-wrap { padding: 18px 14px 32px; }

/* ── Đầu trang ─────────────────────────────────────────────── */
.hoc-head { text-align: center; margin-bottom: 26px; }
.hoc-kicker { letter-spacing: .6em; color: var(--hs-vang-mo); font-size: 13px; }
.hoc-title {
  margin: 4px 0 6px; font: 900 40px/1.25 'Playfair Display', Georgia, serif;
  background: var(--hs-tieu-de); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hoc-title-sm { font-size: 30px; }
body[data-layout="mobile"] .hoc-title { font-size: 32px; }
.hoc-sub { margin: 0 auto; max-width: 520px; color: var(--hs-phu); }
.hoc-prog { width: min(320px, 80%); height: 6px; margin: 16px auto 6px; border-radius: 99px; background: var(--hs-thanh); overflow: hidden; }
.hoc-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e9b95c, #fff2cf); transition: width .6s; }
.hoc-prog-txt { font-size: 12px; color: var(--hs-mo-2); }

/* Ô tìm bài (trên bản đồ) */
.hoc-tim { width: min(560px, 100%); margin: -8px auto 22px; }
.hoc-tim-o {
  width: 100%; box-sizing: border-box; height: 42px; padding: 0 14px 0 38px; border-radius: 21px;
  border: 1px solid var(--hs-vien-2); outline: none; color: var(--hs-tieu); font: 15px Arial, sans-serif;
  background: var(--hs-o-nen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f2c86e' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 14px center;
}
body[data-layout="mobile"] .hoc-tim-o { font-size: 16px; }                 /* ≥16px: iOS không tự phóng to khi gõ */
.hoc-tim-o::placeholder { color: var(--hs-mo-2); }
.hoc-tim-o:focus { border-color: var(--hs-vang); background-color: var(--hs-o-nen-2); }
.hoc-tim-kq:not(:empty) { margin-top: 14px; }
.hoc-tim-kq .hoc-ds { grid-template-columns: 1fr; }
.hoc-tim-kq .hoc-the-mo { line-height: 1.45; }
.hoc-tim-kq mark { background: rgba(242, 200, 110, .3); color: var(--hs-tieu); border-radius: 3px; padding: 0 1px; }
.hoc-tim-dem { margin: 0 4px 8px; font-size: 12px; color: var(--hs-mo-2); }
.hoc-tim-rong { padding: 18px; text-align: center; color: var(--hs-mo); }

/* ── Bản đồ hành trình: các chặng nối nhau như chòm sao ─────── */
.hoc-map { position: relative; max-width: 640px; margin: 0 auto; padding: 8px 0; }
.hoc-map::before {
  content: ''; position: absolute; left: 50%; top: 24px; bottom: 24px; width: 2px; margin-left: -1px;
  background: var(--hs-duong);
}
.hoc-node {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 50%; margin: 0 0 14px; padding: 6px 0; box-sizing: border-box;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hoc-node.trai { flex-direction: row-reverse; text-align: right; padding-right: 0; }
.hoc-node.phai { margin-left: 50%; }
.hoc-node.trai .hoc-sao { margin-right: -11px; }
.hoc-node.phai .hoc-sao { margin-left: -11px; }
.hoc-node:disabled { cursor: default; }
.hoc-sao {
  flex: 0 0 22px; height: 22px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--hs-sao-nen); border: 2px solid var(--hs-sao-vien);
}
.hoc-node.dang .hoc-sao { background: radial-gradient(circle, #fff6dd 0%, #f2c86e 55%, #c48a2c 100%); border-color: #fff2cf; box-shadow: 0 0 0 6px rgba(242, 200, 110, .15), 0 0 22px rgba(242, 200, 110, .8); animation: hoc-nhay 2.4s ease-in-out infinite; }
.hoc-node.xong .hoc-sao { background: radial-gradient(circle, #fff6dd 0%, #f2c86e 70%); border-color: #f2c86e; box-shadow: 0 0 14px rgba(242, 200, 110, .55); }
@keyframes hoc-nhay { 50% { box-shadow: 0 0 0 10px rgba(242, 200, 110, .06), 0 0 30px rgba(242, 200, 110, 1); } }
.hoc-node-txt { display: flex; flex-direction: column; min-width: 0; padding: 10px 14px; border-radius: 12px; transition: background .2s; }
.hoc-node:not(:disabled):hover .hoc-node-txt { background: var(--hs-o-nen); }
.hoc-node-so { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--hs-vang); }
.hoc-node-ten { font: 700 18px/1.3 'Playfair Display', Georgia, serif; color: var(--hs-tieu); }
.hoc-node-mo { font-size: 12px; color: var(--hs-mo); }
.hoc-node.khoa .hoc-node-ten { color: var(--hs-khoa); }
.hoc-node.khoa .hoc-node-so { color: var(--hs-khoa); }
body[data-layout="mobile"] .hoc-map::before { left: 22px; }
body[data-layout="mobile"] .hoc-node,
body[data-layout="mobile"] .hoc-node.phai { width: 100%; margin-left: 0; flex-direction: row; text-align: left; padding-left: 11px; }
body[data-layout="mobile"] .hoc-node .hoc-sao { margin: 0; }

/* ── Danh sách bài trong chặng ─────────────────────────────── */
.hoc-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 36px; }
body[data-layout="mobile"] .hoc-nav { padding-right: 44px; flex-wrap: wrap; row-gap: 8px; }
/* Chọn kiểu bàn cờ: Đơn giản / Giống lá số */
.hoc-kieuban { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--hs-ray); flex: 0 0 auto; }
.hoc-kieuban button {
  padding: 5px 12px; border: 0; border-radius: 99px; background: none;
  color: var(--hs-phu); font: bold 12px Arial, sans-serif; cursor: pointer; touch-action: manipulation;
}
.hoc-kieuban button.on { background: var(--hs-chon-nen); color: var(--hs-tren-vang); }
body[data-layout="mobile"] .hoc-kieuban { order: 3; margin-left: 0; }
.hoc-back {
  flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--hs-vien-2); border-radius: 99px;
  background: var(--hs-back-nen); color: var(--hs-vang); font: bold 13px Arial, sans-serif; cursor: pointer;
}
.hoc-back:hover { background: var(--hs-o-nen-2); }
.hoc-nav-ten { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hs-phu-2); font-weight: bold; }
.hoc-head-sm { margin-bottom: 18px; }
.hoc-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hoc-the {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 12px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--hs-vien); border-radius: 14px;
  background: var(--hs-the); color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.hoc-the:not(:disabled):hover { transform: translateY(-2px); background: var(--hs-the-2); border-color: var(--hs-vien-dam); }
.hoc-the.xong { border-color: var(--hs-vien-xong); }
.hoc-the.khoa { opacity: .45; cursor: default; }
.hoc-the-so {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--hs-so-nen); color: var(--hs-vang); font-weight: bold;
}
.hoc-the.xong .hoc-the-so { background: var(--hs-vang-dac); color: var(--hs-tren-vang); }
.hoc-the-ten { font-weight: bold; color: var(--hs-tieu); font-size: 15px; }
.hoc-the-mo { grid-column: 2; font-size: 12px; color: var(--hs-mo); }
.hoc-the-sao { grid-row: 1 / 3; grid-column: 3; letter-spacing: 1px; }
.hoc-the-sao i, .hoc-kq-sao i { font-style: normal; color: var(--hs-sao-tat); }
.hoc-the-sao i.on { color: var(--hs-vang); }

/* ── Màn hình bài: bàn cờ + bảng ───────────────────────────── */
.hoc-wrap-bai { max-width: 1040px; }
.hoc-bai { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
body[data-layout="mobile"] .hoc-bai { grid-template-columns: 1fr; gap: 14px; }
.hoc-ban-wrap { width: 100%; max-width: 560px; justify-self: center; }

.hoc-ban {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 1 / 1; width: 100%;
  border: 2px solid #4a2e08; background: #4a2e08; gap: 1px;   /* giống khung lá số */
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--hs-ban-bong), 0 0 0 1px rgba(242, 200, 110, .25);
}
.hoc-giua {
  grid-row: 2 / 4; grid-column: 2 / 4;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #f6f1e4 radial-gradient(circle at 50% 50%, #fffdf6 0%, #efe6cf 100%);
  color: #7a5c2a; font: italic 13px Georgia, serif;
}
.hoc-o {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; padding: 0; border: 0; border-radius: 0;
  background: #fffdf7; color: #4a2e08; font: bold 17px Arial, sans-serif; cursor: default;
  transition: background .25s, color .25s, box-shadow .25s;
}
body[data-layout="mobile"] .hoc-o { font-size: 15px; }
.hoc-so { min-height: 1em; font: bold 13px/1.25 Arial, sans-serif; color: #b07a1c; white-space: pre-line; text-align: center; }
.hoc-o.hl   { background: #fff1c9; box-shadow: inset 0 0 0 3px #e0a93a; }
.hoc-o.hl2  { background: #e8eefb; box-shadow: inset 0 0 0 3px #7f97cf; }
.hoc-o.mo   { background: #fff6dd; box-shadow: inset 0 0 0 3px #c48a2c; }
.hoc-o.duong{ background: #fdf3d8; }
.hoc-o.dich { background: #f2c86e; color: #1b2350; box-shadow: inset 0 0 0 3px #a8741b; animation: hoc-nay .35s ease; }
.hoc-o.dung { background: #2e8b57; color: #fff; animation: hoc-nay .35s ease; }
.hoc-o.dung .hoc-so, .hoc-o.dich .hoc-so { color: inherit; }
.hoc-o.sai  { background: #c0392b; color: #fff; }
@keyframes hoc-nay { 40% { transform: scale(1.08); } }
.hoc-ban-wrap.cham .hoc-cung, .hoc-ban-wrap.cham .hoc-hanh { cursor: pointer; }
.hoc-ban-wrap.cham .hoc-cung:hover { background: #fff1c9; }

/* Kiểu bàn "giống lá số": nền trắng, tên chi nhỏ ở góc trên trái, sao ở giữa (màu chính tinh), ô giữa ghi LÁ SỐ TỬ VI */
.hoc-ban.skin-laso { border-radius: 0; box-shadow: var(--hs-ban-bong); }
.hoc-ban.skin-laso .hoc-o {
  justify-content: flex-start; align-items: stretch; gap: 0; padding: 4px 5px;
  background: #fff; color: #4a2e08; font: bold 11px Arial, sans-serif;
}
.hoc-ban.skin-laso .hoc-ten { align-self: flex-start; font-size: 11px; color: #8b5e1a; }
.hoc-ban.skin-laso .hoc-so {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font: bold 12px/1.3 Arial, sans-serif; color: var(--color-chinh, #8b0000);
}
body[data-layout="mobile"] .hoc-ban.skin-laso .hoc-so { font-size: 10.5px; }
.hoc-ban.skin-laso .hoc-o.hl, .hoc-ban.skin-laso .hoc-o.duong { background: #f6f1e4; box-shadow: none; }
.hoc-ban.skin-laso .hoc-o.hl2 { background: #eef2fa; box-shadow: none; }
.hoc-ban.skin-laso .hoc-o.mo { background: #fff; box-shadow: inset 0 0 0 2px #c48a2c; }
.hoc-ban.skin-laso .hoc-o.dich { background: #fff4d6; box-shadow: inset 0 0 0 3px #c48a2c; color: #4a2e08; }
.hoc-ban.skin-laso .hoc-o.dich .hoc-so { color: var(--color-chinh, #8b0000); }
.hoc-ban.skin-laso .hoc-o.dung { background: #e3f4ea; box-shadow: inset 0 0 0 3px #2e8b57; color: #1d5c39; }
.hoc-ban.skin-laso .hoc-o.dung .hoc-so { color: #1d5c39; }
.hoc-ban.skin-laso .hoc-o.sai { background: #fbe4e1; box-shadow: inset 0 0 0 3px #c0392b; color: #8e2a1c; }
.hoc-ban.skin-laso .hoc-giua { background: #fff; }
.hoc-giua-tt { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hoc-giua-tt b { font: 700 20px 'Playfair Display', Georgia, serif; letter-spacing: .14em; color: #1b2a6b; }
.hoc-giua-tt i { font: italic 13px Georgia, serif; letter-spacing: .12em; color: #1b2a6b; }
body[data-layout="mobile"] .hoc-giua-tt b { font-size: 15px; }
body[data-layout="mobile"] .hoc-giua-tt i { font-size: 10px; }


/* Vòng 10 can */
.hoc-canban {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  padding: 14px; border-radius: 14px;
  background: var(--hs-the); border: 1px solid var(--hs-vien);
}
.hoc-canban .hoc-o { aspect-ratio: 1 / 1; border-radius: 50%; border: 2px solid #c8b88a; font-size: 16px; }

/* Ngũ hành: 5 viên tròn trên vòng; mũi tên cong vàng = tương sinh, mũi tên thẳng đỏ nhạt = tương khắc */
.hoc-hanhban { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1 / 1; }
.hoc-hanhban svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hoc-hanh-vong { fill: none; stroke: var(--hs-vong); stroke-width: 9; }
.hoc-sinh { fill: none; stroke: var(--hs-sinh); stroke-width: .9; stroke-linecap: round; filter: var(--hs-sinh-sang); }
.hoc-khac { stroke: rgba(232, 128, 111, .7); stroke-width: .55; stroke-dasharray: 2 1.4; }
.hoc-hanhban .hoc-hanh.hoc-o {
  position: absolute; width: 27%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 0; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 34% 28%, var(--h1) 0%, var(--h2) 62%, var(--h3) 100%);
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .35), inset 0 3px 8px rgba(255, 255, 255, .25), 0 8px 22px rgba(0, 0, 0, .45);
  font: bold 15px Arial, sans-serif; letter-spacing: .02em;
  transition: transform .2s, box-shadow .25s;
}
.hoc-hanh .hoc-han { font: 400 26px/1 'Noto Serif CJK SC', 'Songti SC', serif; color: rgba(255, 248, 225, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.hoc-hanh .hoc-ten { margin-top: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.hoc-hanh .hoc-so { color: #fff2cf; font-size: 11px; }
body[data-layout="mobile"] .hoc-hanh .hoc-han { font-size: 22px; }
body[data-layout="mobile"] .hoc-hanhban .hoc-hanh.hoc-o { font-size: 13px; }
.hoc-hanh.hanh-0 { --h1: #6fcf8d; --h2: #2f7d4a; --h3: #184a2b; }      /* Mộc */
.hoc-hanh.hanh-1 { --h1: #ff9a7a; --h2: #c8462f; --h3: #7a1f12; }      /* Hỏa */
.hoc-hanh.hanh-2 { --h1: #f0c47a; --h2: #b4832f; --h3: #6b4a17; }      /* Thổ */
.hoc-hanh.hanh-3 { --h1: #eef1f5; --h2: #98a3b2; --h3: #56606e; }      /* Kim */
.hoc-hanh.hanh-4 { --h1: #7fb3f0; --h2: #2f5f9e; --h3: #142f57; }      /* Thủy */
/* Trạng thái: giữ màu hành, chỉ thêm vòng sáng */
.hoc-hanhban .hoc-hanh.hl, .hoc-hanhban .hoc-hanh.mo, .hoc-hanhban .hoc-hanh.duong,
.hoc-hanhban .hoc-hanh.hl2, .hoc-hanhban .hoc-hanh.dich, .hoc-hanhban .hoc-hanh.dung, .hoc-hanhban .hoc-hanh.sai {
  background: radial-gradient(circle at 34% 28%, var(--h1) 0%, var(--h2) 62%, var(--h3) 100%); color: #fff;
}
.hoc-hanhban .hoc-hanh.mo, .hoc-hanhban .hoc-hanh.hl { box-shadow: 0 0 0 3px #fff2cf, 0 0 26px rgba(242, 200, 110, .85); }
.hoc-hanhban .hoc-hanh.duong { box-shadow: 0 0 0 2px rgba(242, 200, 110, .7), 0 0 16px rgba(242, 200, 110, .45); }
.hoc-hanhban .hoc-hanh.hl2 { box-shadow: 0 0 0 3px #e8806f, 0 0 24px rgba(232, 128, 111, .75); }
.hoc-hanhban .hoc-hanh.dich { box-shadow: 0 0 0 4px #f2c86e, 0 0 34px rgba(242, 200, 110, 1); transform: translate(-50%, -50%) scale(1.08); animation: none; }
.hoc-hanhban .hoc-hanh.dung { box-shadow: 0 0 0 4px #4cd38a, 0 0 28px rgba(76, 211, 138, .9); }
.hoc-hanhban .hoc-hanh.sai { box-shadow: 0 0 0 4px #ff6b5b, 0 0 28px rgba(255, 107, 91, .9); }
.hoc-ban-wrap.cham .hoc-hanh:hover { transform: translate(-50%, -50%) scale(1.06); }
.hoc-hanh-chu { display: flex; justify-content: center; gap: 22px; margin-top: 6px; font-size: 12px; color: var(--hs-phu); }
.hoc-hanh-chu span { display: inline-flex; align-items: center; gap: 7px; }
.hoc-hanh-chu i { display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--hs-sinh); }
.hoc-hanh-chu i.khac { border-top: 2px dashed #e8806f; }

/* Bảng bên phải */
.hoc-panel { position: sticky; top: 12px; }
body[data-layout="mobile"] .hoc-panel { position: static; }
.hoc-mode { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 99px; background: var(--hs-ray); }
.hoc-mode button {
  flex: 1; padding: 7px 0; border: 0; border-radius: 99px; background: none;
  color: var(--hs-phu); font: bold 13px Arial, sans-serif; cursor: pointer;
}
.hoc-mode button.on { background: var(--hs-vang-dac); color: var(--hs-tren-vang); }
.hoc-card {
  padding: 16px 18px; border-radius: 14px;
  background: #fffdf7; color: #2b2112;
  box-shadow: var(--hs-the-bong);
}
.hoc-text { font-size: 15px; line-height: 1.6; }
.hoc-text b { color: #8b5e1a; }
.hoc-bang { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #f5efe0; font-size: 13px; line-height: 1.7; }
.hoc-dots, .hoc-qdots { display: flex; gap: 5px; margin-bottom: 12px; }
.hoc-dots i, .hoc-qdots i { flex: 1; height: 4px; border-radius: 99px; background: #e8dfc8; }
.hoc-dots i.qua { background: #e0c48a; }
.hoc-dots i.on, .hoc-qdots i.on { background: #c48a2c; }
.hoc-qdots i.dung { background: #2e8b57; }
.hoc-qdots i.nua { background: #e0a93a; }
.hoc-qdots i.sai { background: #c0392b; }
.hoc-qhead { display: flex; align-items: center; gap: 10px; }
.hoc-qhead .hoc-qdots { flex: 1; margin: 0; }
.hoc-qdiem { font-size: 12px; color: #7a5c2a; white-space: nowrap; }
.hoc-de { margin: 12px 0; }
.hoc-link { margin-top: 6px; padding: 0; border: 0; background: none; color: #8b5e1a; font: bold 13px Arial, sans-serif; cursor: pointer; }
.hoc-btns { margin-top: 14px; }
.hoc-lc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hoc-lc.vua { grid-template-columns: repeat(3, 1fr); }       /* 5–7 lựa chọn (Cục, Thân cư…) */
.hoc-lc.nhieu { grid-template-columns: repeat(5, 1fr); }     /* 10 can */
body[data-layout="mobile"] .hoc-lc.nhieu { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hoc-lc-btn {
  padding: 10px 4px; border: 1px solid #d9cba6; border-radius: 10px; background: #fff;
  color: #4a2e08; font: bold 14px Arial, sans-serif; cursor: pointer; touch-action: manipulation;
}
.hoc-lc-btn:hover:not(:disabled) { background: #fff6dd; border-color: #c48a2c; }
.hoc-lc-btn.dung { background: #2e8b57; border-color: #2e8b57; color: #fff; }
.hoc-lc-btn.sai { background: #c0392b; border-color: #c0392b; color: #fff; }
.hoc-lc-btn:disabled { cursor: default; }
.hoc-fb { min-height: 1.4em; margin-top: 10px; font-size: 14px; line-height: 1.55; }
.hoc-fb .ok { color: #2e8b57; }
.hoc-fb .no { color: #c0392b; }
.hoc-fb small { color: #7a5c2a; }
.hoc-page.hoc-rung .hoc-card { animation: hoc-rung .35s; }
@keyframes hoc-rung { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Kết quả */
.hoc-kq { text-align: center; padding: 6px 0; }
.hoc-kq-sao { font-size: 40px; letter-spacing: 6px; }
.hoc-kq-sao i.on { color: #f2c86e; display: inline-block; animation: hoc-sao-roi .5s backwards cubic-bezier(.3, 1.6, .5, 1); text-shadow: 0 0 14px rgba(242, 200, 110, .8); }
@keyframes hoc-sao-roi { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.hoc-kq-diem { font: 900 30px 'Playfair Display', Georgia, serif; color: #1b2350; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  .hoc-page *, .hoc-page *::before { animation: none !important; transition: none !important; }
}