/* Gop y anh Canh 07/11 sang: game nhin la hieu, home gon, Zalo thay, Datova xuong duoi, xu Ken Do thay phao hoa, doc truyen vua man DT */
.game-tien-do{display:flex;gap:5px;justify-content:center;margin:10px auto 4px;max-width:420px}
.game-tien-do span{flex:1;height:8px;border-radius:999px;background:#d6e4f5}
.game-tien-do span.xong{background:#2fb36b}.game-tien-do span.nay{background:#ffd23f}
.goi-y:empty{min-height:20px;margin:4px 0}
.chon-game + div .loa-to{width:88px;height:88px;margin:6px auto 12px}
@media(max-width:600px){
  body:not(.che-do-thay) .luoi-hinh{gap:10px}
  body:not(.che-do-thay) .luoi-hinh .o-hinh{min-height:0;padding:6px}
  body:not(.che-do-thay) .luoi-hinh .o-hinh img{height:min(19svh,150px);max-height:none;width:100%;object-fit:contain}
  body:not(.che-do-thay) .luoi-hinh .o-hinh.chu-o{min-height:86px}
}
.zalo-home{display:flex;align-items:center;gap:12px;margin:14px 0;padding:12px 14px;border-radius:20px;background:#fff;box-shadow:0 4px 0 #cfe0f3;text-decoration:none;color:#0b3b8f;min-height:44px}
.zalo-home .zalo-logo{flex:0 0 48px;height:48px;border-radius:14px;background:#0068ff;color:#fff;font-weight:900;font-size:14px;display:grid;place-items:center}
.zalo-home b{display:block;font-size:16px}.zalo-home small{font-size:14px;color:#4a5b78}
.xem-them-giao{display:block;text-align:center;font-weight:800;margin:6px 0 12px;min-height:44px;line-height:44px}
.chan-datova{font-size:11px;padding-top:56px;opacity:.75}
.hieu-ung img{width:96px;height:96px;object-fit:contain}
.mung-xu{position:fixed;inset:0;z-index:70;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.mung-xu .xu-to{width:140px;height:140px;object-fit:contain;animation:xu-nhay 1s cubic-bezier(.2,1.6,.4,1) both;filter:drop-shadow(0 8px 14px rgba(180,120,0,.35))}
.mung-xu b{background:#fff;color:#0b3b8f;border-radius:999px;padding:10px 20px;font-size:20px;box-shadow:0 6px 0 #ffd23f;animation:xu-nhay .8s .15s both}
.mung-xu .xu-bay{position:absolute;bottom:-50px;width:40px;height:40px;animation:xu-bay 1.8s ease-out forwards}
.lop-an-mung .xu-roi{width:36px;height:36px;background:none!important;border-radius:0}
@keyframes xu-nhay{0%{transform:scale(.2);opacity:0}60%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}
@keyframes xu-bay{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(-95vh) rotate(540deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.mung-xu .xu-to,.mung-xu b,.mung-xu .xu-bay{animation:none}.mung-xu .xu-bay{display:none}}
.khung-kien-thuc .nghe-giang{margin-bottom:10px}
.khung-kien-thuc .giai-thich.sang,.khung-kien-thuc .cong-thuc.sang,.khung-kien-thuc .vi-du.sang{outline:3px solid #ffd23f;border-radius:14px;background:#fff8d6}
/* Doc truyen tren DT: tranh doc (dung) khong day nut Back/Next xuong duoi man */
@media(max-width:600px){
  body .doc-0611e .trang-giay .bia-trang{height:auto!important;max-height:none!important;min-height:0!important}
  body .doc-0611e .trang-giay .tranh-trang{height:auto!important;width:100%;max-height:max(150px,calc(100svh - 410px))!important;object-fit:contain}
}
/* DT: 3 nut chon game 1 hang cuon ngang, loa nho lai de du 4 dap an trong 1 man */
@media(max-width:600px){
  body:not(.che-do-thay) .chon-game:not(.tab-pron){display:flex;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:8px;padding:2px 2px 6px;scrollbar-width:none}
  body:not(.che-do-thay) .chon-game:not(.tab-pron)::-webkit-scrollbar{display:none}
  body:not(.che-do-thay) .chon-game:not(.tab-pron) button{flex:0 0 auto;white-space:nowrap;font-size:14px;min-height:44px;margin:0}
  .chon-game + div .loa-to{width:72px;height:72px;margin:4px auto 8px}
  body:not(.che-do-thay) .luoi-hinh .o-hinh img{height:min(17svh,150px)}
}
.game-tien-do{scroll-margin-top:84px}

/* ===== 07/11 trua: anh Dat soat tren iPhone ===== */
/* Learning room: luoi sach khong duoc no theo kich thuoc goc anh bia (Safari tran ngang -> thanh tren bi lech) */
.luoi-sach{grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr))}
@media(max-width:600px){.luoi-sach{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sach-mini{min-width:0}.sach-mini h3{overflow-wrap:anywhere}
.sach-mini .bia-sach img,.bia-sach img{max-width:100%}
html,body{overflow-x:clip}
/* Loa to: icon nam giua o xanh (truoc bi canh theo dong chu cao 81px) */
.loa-to{display:grid!important;place-items:center;padding:0!important;line-height:0!important;font-size:0!important}
.loa-to .ui-ic{margin:0!important;transform:translateY(3px)}
/* Noi cum tu voi tranh: anh nam gon trong o (Safari khong tinh height:100% trong o aspect-ratio) */
.noi-cap .phai button{position:relative;overflow:hidden}
.noi-cap .phai button img{position:absolute;inset:6px;width:calc(100% - 12px)!important;height:calc(100% - 12px)!important;max-height:none!important;object-fit:contain}
@media(max-width:600px){
  .noi-cap .phai{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .noi-cap .trai{gap:6px!important}
  .noi-cap .trai button{font-size:14px!important;padding:8px 12px!important;min-height:40px}
}
/* Doc truyen tren DT: che do tap trung – an thanh tren, cuon sach vua 1 man, khong phai cuon */
@media(max-width:600px){
  body.dang-doc .thanh-tren{display:none!important}
  body.dang-doc .noi-dung{padding-top:calc(8px + env(safe-area-inset-top))!important}
  body.dang-doc .doc-0611e{display:flex!important;flex-direction:column;gap:8px;height:auto!important;flex:1 1 auto;min-height:0!important;padding:8px!important;border-width:6px!important;border-radius:24px!important;box-sizing:border-box}
  body.dang-doc .doc-0611e>.nut-loa:first-child{position:static!important;margin:0!important;flex:0 0 auto;align-self:flex-start}
  body.dang-doc .doc-0611e .doc-loa{position:absolute!important;top:8px!important;right:8px!important}
  body.dang-doc .doc-0611e .trang-giay{flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;background:#fff;border-radius:18px;padding:8px!important;margin:0!important}
  body.dang-doc .doc-0611e .trang-giay .bia-trang{position:relative;flex:1 1 0;min-height:0!important;height:auto!important;max-height:none!important;border:0!important;display:flex;align-items:center;justify-content:center;overflow:hidden}
  body.dang-doc .doc-0611e .trang-giay .tranh-trang{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;border-radius:12px}
  body.dang-doc .doc-0611e .chu-wrap{flex:0 0 auto;margin:6px 0 0!important;padding:0!important;display:block!important;text-align:center;background:none!important}
  body.dang-doc .doc-0611e .chu-wrap{height:84px;overflow:hidden}
  body.dang-doc .doc-0611e .chu-wrap .chu{text-align:center!important;font-size:20px!important;height:auto!important;min-height:0!important;font-size:19px;line-height:1.25;padding:2px 4px!important;display:block!important;height:56px!important;min-height:56px!important;overflow:hidden}
  body.dang-doc .doc-0611e .so-trang-doc{display:block;font-size:13px;margin-top:2px}
  body.dang-doc .doc-0611e .cham-trang{flex:0 0 auto;margin:0!important}
  body.dang-doc .doc-0611e .lat-trang{position:static!important;flex:0 0 auto;height:auto!important;min-height:0!important;padding:0!important;display:flex!important;justify-content:center;align-items:center;gap:16px}
  body.dang-doc .doc-0611e .tiep-doc{flex:0 0 auto}
  body.dang-doc .doc-0611e .tiep-doc .nut{min-height:48px;margin:0}
  body.dang-doc .ghi-huong-dan{display:none}
}

/* ===== Trạm học trên ĐT: gọn 1 hàng (anh Đạt: bố cục bẩn, luộm thuộm, phải cuộn) ===== */
@media(max-width:600px){
  body.trong-tram:not(.dang-doc) .thanh-tren{display:none!important}
  body.trong-tram:not(.dang-doc) .noi-dung{padding-top:calc(10px + env(safe-area-inset-top))!important}
  body.trong-tram .dau-buoc{display:flex!important;align-items:center;gap:10px;margin:0 0 6px!important;min-width:0}
  body.trong-tram .dau-buoc .nhan-ve-hanh-trinh{display:none}
  body.trong-tram .dau-buoc > *{flex-shrink:0}
  body.trong-tram .dau-buoc h3{flex:1 1 auto;min-width:0;margin:0;padding:0;background:none!important;box-shadow:none!important;font-size:20px;display:flex;align-items:center;gap:8px}
  body.trong-tram .dau-buoc h3 .ic,body.trong-tram .dau-buoc h3 img{width:32px;height:32px;flex-shrink:0}
  body.trong-tram .thanh-buoc{margin:0 0 8px!important}
  body.trong-tram .thanh-buoc i{height:6px}
  /* hàng chọn game nhỏ lại, các thanh tiến độ mảnh */
  body.trong-tram .chon-game:not(.tab-pron) button{min-height:40px;font-size:14px;padding:6px 14px}
  body.trong-tram .game-tien-do{margin:6px auto 2px}
  body.trong-tram .game-tien-do span{height:6px}
  body.trong-tram .goi-y:empty{display:none}
  body.trong-tram .loa-to{width:64px;height:64px;margin:2px auto 8px}
  /* nút "Về bản đồ hành trình" cuối trang không chiếm cả màn */
  body.trong-tram .noi-dung > div > .nut.rong:last-child{margin-top:10px}
}

/* ===== Doc truyen / Read & Record: TAT CA trong 1 khung, khong cuon, khung anh dung yen ===== */
@media(max-width:600px){
  body.dang-doc .noi-dung > div{display:flex;flex-direction:column;gap:6px;height:calc(100svh - 24px - env(safe-area-inset-top) - 48px);min-height:0}
  body.dang-doc .noi-dung > div > .doc-0611e{flex:1 1 auto}
  body.dang-doc .noi-dung > div > :not(.doc-0611e){flex:0 0 auto;margin:0!important}
  body.dang-doc .kieu-doc select{height:40px;font-size:15px}
  body.dang-doc .ghi-huong-dan,body.dang-doc .goi-y:empty,body.dang-doc .noi-dung > div > div:has(> .dong-ho:empty):not(:has(button:not([hidden]))){display:none}
  body.dang-doc details.hop-video{padding:0;border-radius:16px}
  body.dang-doc details.hop-video summary{min-height:44px;padding:10px 14px;font-size:14px;line-height:1.3}
  /* nut Tram tiep luon chiem cho -> nhay trang cuoi khong lam anh nho lai */
  body.dang-doc .doc-0611e .tiep-doc[hidden]{display:block!important;visibility:hidden;height:52px}
  body.dang-doc .doc-0611e .tiep-doc{height:52px}
  body.dang-doc .doc-0611e .tiep-doc .nut{height:52px;min-height:52px;padding-top:0;padding-bottom:0}
}
/* Learning room: bia sach nam gon trong the, khong tran xuong chip Level */
.sach-mini .bia-sach{width:100%;aspect-ratio:396/612!important;height:auto!important;overflow:hidden;flex-shrink:0;position:relative}
.sach-mini .bia-sach img{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;display:block}
.sach-mini{justify-content:flex-start}

/* ===== Read & Record: gọn vào 1 khung (ghi đè khối trên) ===== */
@media(max-width:600px){
  body.dang-doc .noi-dung > div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:6px;position:relative}
  body.dang-doc .noi-dung > div > .doc-0611e{grid-column:1/-1;grid-row:1;min-height:0!important;padding-top:8px!important}
  body.dang-doc .noi-dung > div > .kieu-doc{grid-column:1;grid-row:2;min-width:0}
  body.dang-doc .noi-dung > div > .kieu-doc select{width:100%;max-width:100%;height:44px;font-size:14px;padding:0 10px}
  body.dang-doc .noi-dung > div > details.hop-video{grid-column:2;grid-row:2;min-width:0;align-self:stretch}
  body.dang-doc .noi-dung > div > details.hop-video summary{padding:6px 10px;font-size:12.5px;line-height:1.15;min-height:44px;display:flex;align-items:center;gap:6px}
  body.dang-doc .noi-dung > div > details.hop-video[open]{position:static;grid-column:1/-1;grid-row:3;background:#fff;max-height:40vh;overflow:auto}
  body.dang-doc .noi-dung > div > p.goi-y:not(:empty){grid-column:1/-1;grid-row:3}
  /* đồng hồ ghi âm: nằm giữa hai nút ở góc khung */
  body.dang-doc .noi-dung > div > div:not(.doc-0611e):not(.kieu-doc){position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:3;margin:0;width:auto}
  body.dang-doc .noi-dung > div > div:not(.doc-0611e):not(.kieu-doc) .dong-ho{background:#fff;border-radius:999px;padding:4px 12px;font-size:14px;font-weight:800;color:#0b3b8f}
  body.dang-doc .noi-dung > div > div:not(.doc-0611e):not(.kieu-doc) .dong-ho:empty{display:none}
  /* ← và 🔊 nằm ở góc khung, không chiếm hàng riêng */
  body.dang-doc .doc-0611e > .nut-loa:first-child{position:absolute!important;top:14px!important;left:14px!important;width:40px;height:40px;z-index:4;margin:0!important}
  body.dang-doc .doc-0611e .doc-loa{position:absolute!important;top:14px!important;right:14px!important;width:40px;height:40px;z-index:4}
  body.dang-doc .doc-0611e{padding-top:8px!important}
}

/* ===== Ngữ pháp: một khung gọn, gà không méo, không lồng khung ===== */
.khung-kien-thuc{display:grid!important;grid-template-columns:64px minmax(0,1fr);column-gap:12px;row-gap:10px;align-items:start;padding:14px!important;overflow:hidden}
.khung-kien-thuc > *{grid-column:1/-1;min-width:0;margin:0!important}
.khung-kien-thuc > h3{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.khung-kien-thuc > .hang{gap:6px;flex-wrap:wrap}
.khung-kien-thuc > img.ga-giang{grid-column:1;grid-row:span 2;width:64px!important;height:96px!important;max-width:none;object-fit:contain;object-position:top center;float:none!important;align-self:start}
.khung-kien-thuc > .cac-cong-thuc{grid-column:2;display:flex;flex-direction:column;gap:6px}
.khung-kien-thuc .cong-thuc{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border:0!important;padding:0!important;background:none!important;box-shadow:none!important;border-radius:0}
.khung-kien-thuc .phan-cong-thuc{padding:6px 12px;border-radius:12px;font-size:17px;line-height:1.25;overflow-wrap:anywhere}
.khung-kien-thuc .dau-cong{font-size:18px;flex-shrink:0}
.khung-kien-thuc > .giai-thich{grid-column:2;font-size:15px;line-height:1.4;text-indent:0!important;text-align:left;overflow-wrap:anywhere}
.khung-kien-thuc > .cac-vi-du{display:flex;flex-direction:column;gap:8px}
.khung-kien-thuc .vi-du{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:8px 8px 8px 14px!important;border-radius:16px;text-align:left!important;margin:0!important}
.khung-kien-thuc .vi-du > span{flex:1 1 auto;min-width:0;font-size:16px;font-weight:800;overflow-wrap:anywhere}
.khung-kien-thuc .vi-du > .nut-loa{flex:0 0 44px;width:44px;height:44px;min-width:44px;margin:0}
.khung-kien-thuc > .nghe-giang{margin-bottom:0!important}
.khung-kien-thuc > .khu-bt,.khung-kien-thuc > .khu-bai-tap{grid-column:1/-1}
@media(max-width:600px){body.dang-doc .noi-dung > div > details.hop-video:not([open]){height:46px;overflow:hidden}body.dang-doc .noi-dung > div > .kieu-doc select{height:46px}}
.khung-kien-thuc > .cac-cong-thuc{align-items:flex-start}.khung-kien-thuc .cong-thuc{justify-content:flex-start}
@media(max-width:600px){body.dang-doc .doc-0611e .bia-trang{aspect-ratio:auto!important;contain:size layout;width:100%}body.dang-doc .doc-0611e .trang-giay{contain:layout}}

/* Datova: chỉ ở cuối trang chủ + trang vào lớp, gọn; các trang khác ẩn để không phải cuộn và không hở khoảng trống */
body:not([data-trang="home"]):not([data-trang="vao"]) .chan-datova{display:none!important}
.chan-datova{padding:4px 16px 8px!important;margin:0}
.datova-menu{font-size:13px;color:#6b7a99;text-align:center;justify-content:center}

/* Read & Record: hết hở đáy + hàng "Đọc cả cuốn / video" cách khung ra (anh Đạt 07/11 16:36) */
@media(max-width:600px){
  body.dang-doc.co-thanh-duoi,body.dang-doc{padding-bottom:env(safe-area-inset-bottom,0px)!important}
  body.dang-doc .noi-dung > div{height:calc(100svh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));row-gap:14px}
  body.dang-doc .noi-dung > div > .kieu-doc,body.dang-doc .noi-dung > div > details.hop-video{margin-top:4px!important}
}
@media(max-width:600px){body.dang-doc .noi-dung > div > .kieu-doc select{height:48px}body.dang-doc .noi-dung > div > details.hop-video:not([open]){height:48px}}

/* Nút "Trạm tiếp" nằm CÙNG HÀNG với nút ghi âm ở trang cuối (thay mũi tên → đã mờ) – không chiếm chỗ, ảnh to hơn và không nhảy (anh Đạt 07/11) */
@media(max-width:600px){
  body.dang-doc .doc-0611e .tiep-doc[hidden]{display:none!important}
  body.dang-doc .doc-0611e .tiep-doc{position:absolute;right:12px;bottom:8px;left:auto;margin:0!important;width:auto;height:56px;z-index:3;flex:none}
  body.dang-doc .doc-0611e .tiep-doc .nut{width:auto;height:56px;min-height:56px;padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;gap:6px}
  body.dang-doc .doc-0611e .tiep-doc .tiep-chu,body.dang-doc .doc-0611e .tiep-doc .tiep-ten{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.dang-doc .doc-0611e .lat-trang [data-di="1"]:disabled{visibility:hidden}
  body.dang-doc .doc-0611e .chu-wrap{height:76px}
  body.dang-doc .doc-0611e .so-trang-doc{font-size:12.5px;margin-top:0}
}

/* Khung đọc truyện dạng lưới: "Trạm tiếp" dùng chung ô với hàng nút điều khiển (không absolute) – hàng "Nghe 1 lần" nằm dưới, không che nhau */
@media(max-width:600px){
  body.dang-doc .doc-0611e{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto auto;row-gap:8px;flex-direction:initial}
  body.dang-doc .doc-0611e > .trang-giay{grid-row:1;grid-column:1}
  body.dang-doc .doc-0611e > .cham-trang{grid-row:2;grid-column:1}
  body.dang-doc .doc-0611e > .lat-trang{grid-row:3;grid-column:1}
  body.dang-doc .doc-0611e > .tiep-doc{position:static!important;grid-row:3;grid-column:1;justify-self:end;align-self:center;margin:0 6px 0 0!important;z-index:3}
  body.dang-doc .doc-0611e > :not(.nut-loa):not(.trang-giay):not(.cham-trang):not(.lat-trang):not(.tiep-doc){grid-column:1;grid-row:4}
}

/* ===== 08/11 (anh Cảnh): bỏ con gà ở logo; ảnh game Vocab to hơn, bớt nút/chữ; trạm học gọn ở mọi cỡ màn ===== */
@media(max-width:430px){
  body:not(.che-do-thay) header .logo{font-size:17px!important;padding:6px 14px!important}
  body:not(.che-do-thay) header .logo::first-letter{font-size:inherit!important}
  body:not(.che-do-thay) header .logo span{display:none}
}
body.trong-tram:not(.dang-doc) .thanh-tren{display:none!important}
body.trong-tram:not(.dang-doc) .noi-dung{padding-top:calc(10px + env(safe-area-inset-top))!important}
body.trong-tram .dau-buoc{display:flex!important;align-items:center;gap:10px;margin:0 0 6px!important;min-width:0}
body.trong-tram .dau-buoc .nhan-ve-hanh-trinh{display:none}
body.trong-tram .dau-buoc > *{flex-shrink:0}
body.trong-tram .dau-buoc h3{flex:1 1 auto;min-width:0;margin:0;padding:0;background:none!important;box-shadow:none!important;font-size:20px;display:flex;align-items:center;gap:8px}
body.trong-tram .dau-buoc h3 .ic,body.trong-tram .dau-buoc h3 img{width:32px;height:32px;flex-shrink:0}
body.trong-tram .thanh-buoc{margin:0 0 8px!important}
body.trong-tram .thanh-buoc i{height:6px}
body.trong-tram .game-tien-do{margin:6px auto 2px}
body.trong-tram .game-tien-do span{height:6px}
body.trong-tram .goi-y:empty{display:none}
body.trong-tram .loa-to{width:64px;height:64px;margin:2px auto 8px}
body.trong-tram .luoi-hinh .o-hinh:not(.chu-o){padding:8px}
body.trong-tram .luoi-hinh .o-hinh:not(.chu-o) img{width:100%;height:clamp(150px,calc((100svh - 300px)/2 - 16px),360px);max-height:none;object-fit:contain}
@media(min-width:601px){body.trong-tram .luoi-hinh .o-hinh:not(.chu-o) img{height:clamp(240px,calc(100svh - 380px),620px)}}
body.trong-tram .luoi-hinh.ngang{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.trong-tram .luoi-hinh.ngang .o-hinh:not(.chu-o) img{height:clamp(110px,calc((100svh - 330px)/2 - 12px),420px)}
@media(max-width:600px){body.trong-tram .luoi-hinh.ngang{grid-template-columns:1fr!important}body.trong-tram .luoi-hinh.ngang .o-hinh:not(.chu-o) img{height:clamp(90px,calc((100svh - 310px)/4 - 14px),240px)}}
body.trong-tram .luoi-hinh.ngang .o-hinh:not(.chu-o) img{height:clamp(110px,calc((100svh - 410px)/2 - 12px),420px)}
@media(max-width:600px){body.trong-tram .luoi-hinh.ngang{gap:6px!important}body.trong-tram .luoi-hinh.ngang .o-hinh:not(.chu-o){padding:4px;min-height:0}body.trong-tram .luoi-hinh.ngang .o-hinh:not(.chu-o) img{height:clamp(80px,calc((100svh - 420px)/4),230px)}}
@media(max-width:600px){body.trong-tram .luoi-hinh.ngang .o-hinh:not(.chu-o) img{height:clamp(80px,calc((100svh - 440px)/4),230px)}}

.nghe-cham[aria-pressed="true"]{background:#fff3c4;outline:2px solid #e8a400}

/* Doc truyen / Read & Record tren dien thoai: khung keo xuong sat day man hinh (khong chua khoang trong 72px cua thanh dưới đã ẩn) */
@media(max-width:600px){
  body.dang-doc.trong-tram,body.dang-doc.co-thanh-duoi.trong-tram{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important}
  body.dang-doc .noi-dung > div{height:calc(100svh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
}

/* Anh Canh 08/11: bo chu huong dan Record; nut nghe (play) khong con duong vien */
.ghi-huong-dan{display:none!important}
body.dang-doc .doc-0611e .lat-trang .nut-loa,body.dang-doc .doc-0611e .doc-play{border:0!important;outline:0!important;box-shadow:0 2px 6px rgba(11,59,143,.25)!important}
body.dang-doc .doc-0611e .lat-trang .nut-loa:focus-visible{outline:3px solid #ffc43d!important;outline-offset:2px}

/* Ngu phap 4 phan: Tieu de - Ly thuyet - Vi du - Thuc hanh (anh Canh 08/11) */
.ngu-phap-4p h3{margin:0 0 6px;font-size:22px}
.ngu-phap-4p .phan-np{padding:10px 0;border-top:2px solid var(--vien-nhat,#e3ecfb)}
.ngu-phap-4p .phan-np:first-of-type{border-top:0}
.ngu-phap-4p > .phan-np > h4{margin:0 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#4a6fb3}
.ngu-phap-4p .vi-du{display:flex;align-items:center;gap:10px}
.ngu-phap-4p .vd-hinh{flex:0 0 52px;height:52px;display:grid;place-items:center;font-size:30px;background:#eef5ff;border-radius:14px}
.ngu-phap-4p .vd-cau{flex:1;font-weight:800;font-size:18px}
.ngu-phap-4p .ga-giang,.ngu-phap-4p .nghe-giang{display:none!important}

/* Anh Canh 08/11: bo bang chon so lan nghe (tiet kiem dien tich); moi lan nghe lai tu dong +5 Ken Do */
details.chon-luot{display:none!important}

/* Rewards 2 phan: Cho con / Cho bo me (anh Canh 08/11) */
.rw-chuyen{display:flex;gap:6px;background:#e8f0fb;border-radius:999px;padding:4px;margin:4px 0 12px}
.rw-chuyen button{flex:1;min-height:44px;border:0;border-radius:999px;background:transparent;font:800 16px/1 inherit;color:#31507f}
.rw-chuyen button.dang-mo{background:#fff;color:#0b3b8f;box-shadow:0 2px 6px rgba(11,59,143,.18)}
.rw-kids[hidden],.rw-parents[hidden]{display:none!important}
.rw-tong-tien{text-align:center;padding:26px 16px}
.rw-tong-tien .rw-nhan{font-weight:800;color:#4a6fb3;margin:0 0 6px}
.rw-tong-tien .rw-so{font-size:44px;font-weight:900;color:#0b3b8f;line-height:1.1}
.rw-tong-tien .rw-ghichu{margin:12px auto 0;max-width:34ch;font-size:13px;color:#5c6b86}
.anh-qua{position:relative}
.anh-qua:not(:has(img))::after{content:attr(data-the);position:absolute;left:50%;bottom:6px;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:800;line-height:1;letter-spacing:.04em;color:#fff;background:rgba(11,59,143,.82);padding:4px 9px;border-radius:999px}
.rw-kids .coin-jar h3{display:none}

/* Home = Community chung (anh Canh 09/11) */
.home-community{margin-top:12px}
.home-compose{display:flex;align-items:center;gap:10px;padding:12px;border-radius:18px;background:#fff;box-shadow:0 2px 8px rgba(11,59,143,.12);text-decoration:none;color:#0b3b8f;font-weight:800;margin-bottom:10px}
.home-compose .av{flex:0 0 40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#eef5ff;font-size:20px}
.home-compose small{display:block;font-weight:600;color:#5c6b86;font-size:12px}
.home-top-hoc-tap .top3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.home-top-hoc-tap li{display:grid;justify-items:center;gap:2px;padding:10px 6px;border-radius:16px;background:#fff;box-shadow:0 2px 6px rgba(11,59,143,.1);text-align:center}
.home-top-hoc-tap li.la-toi{outline:2px solid #ffc43d}
.home-top-hoc-tap .hang-so{font-size:22px}
.home-top-hoc-tap .av{font-size:26px;line-height:1}
.home-top-hoc-tap b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.home-top-hoc-tap small{color:#5c6b86;font-size:12px}
.su-kien-sap-toi{margin:8px 0;padding:10px 12px;border-radius:14px;background:#fff8dc;font-size:14px}
.community-card .share{margin-left:auto}

/* Sieu anh hung nhi (anh goc) – anh Canh 09/11 */
.thuong-tram .hero-thuong{display:block;height:150px;width:auto;margin:-6px auto 2px;filter:drop-shadow(0 4px 6px rgba(11,59,143,.25))}
.thuong-tram.cuoi .hero-thuong{height:190px}
.thuong-tram .xu-lop{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.thuong-tram-noi{position:relative;z-index:1}
.thuong-tram .tt-quay{position:fixed;z-index:2;top:calc(12px + env(safe-area-inset-top));left:12px;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:#fff;color:#0b3b8f;font:800 16px/1 inherit;box-shadow:0 3px 0 rgba(0,0,0,.18);cursor:pointer;touch-action:manipulation}
.thuong-tram .tt-quay:focus-visible{outline:3px solid #ffe066;outline-offset:3px}
@media (max-height:780px){.thuong-tram-noi{gap:10px}.thuong-tram .hero-thuong,.thuong-tram.cuoi .hero-thuong{height:110px}.thuong-tram .trung-thuong{width:90px;height:100px}.thuong-tram .trung-thuong>span{font-size:64px}.thuong-tram h2{font-size:clamp(32px,6vw,52px)}.thuong-tram-so{font-size:28px}}
.thuong-tram .xu-roi{position:absolute;top:-40px;width:34px;height:34px;pointer-events:none;animation:xuRoi 2.6s linear infinite}
@keyframes xuRoi{to{transform:translateY(560px) rotate(300deg)}}
@media (prefers-reduced-motion:reduce){.thuong-tram .xu-roi{animation:none;display:none}}
.doi-hero{display:flex;justify-content:center;align-items:flex-end;margin:-6px 0 4px;padding:0 4px;overflow:hidden}
.doi-hero img{height:74px;width:auto;margin:0 -6px;filter:drop-shadow(0 3px 4px rgba(11,59,143,.2))}
@media(min-width:700px){.doi-hero img{height:110px;margin:0 -4px}}
.home-top-hoc-tap .top3{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))!important}
.home-top-hoc-tap .av img,.home-top-hoc-tap .av .av3d{width:46px!important;height:46px!important}
.home-top-hoc-tap li{padding:8px 4px}
/* Doi hinh nhieu sieu anh hung + quai vat chay ngang (anh Canh 09/11: "nhieu sieu anh hung vao") */
.doi-hero{overflow:hidden;margin:-4px -12px 6px;padding:0;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.doi-hero-chay{display:flex;align-items:flex-end;gap:2px;width:max-content;animation:doiHeroChay 70s linear infinite}
.doi-hero img{height:76px;width:auto;margin:0;flex:0 0 auto}
@keyframes doiHeroChay{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.doi-hero-chay{animation:none}}
@media(min-width:700px){.doi-hero img{height:110px}}
.doi-hero{justify-content:flex-start!important}.doi-hero img{margin:0!important}
.home-top-hoc-tap .top3{grid-template-columns:repeat(auto-fit,minmax(96px,140px))!important;justify-content:center}

/* Banner Home moi: ga tham hiem + sieu anh hung + quai vat (anh Canh 09/11) – can lai vung bam 3 dao */
.island-library{left:3%!important;top:26%!important;width:36%!important;height:48%!important}
.island-practice{left:65%!important;top:28%!important;width:33%!important;height:44%!important}
.island-homework{left:28%!important;top:52%!important;width:44%!important;height:44%!important}
.home-hello{max-width:24%!important}

/* ===== HOME sinh dong: 2 cot, the mau co hero (anh Canh 09/11: nhin kho khan va may moc) ===== */
.home-luoi{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);margin-top:6px}
.home-cot{display:grid;gap:14px;min-width:0;align-content:start}
@media(min-width:900px){.home-luoi{grid-template-columns:minmax(320px,5fr) minmax(0,7fr);align-items:start}}
.home-luoi .muc{margin:0 0 8px}
/* Nhiem vu hom nay */
.the-nhiem-vu{position:relative;display:flex;align-items:flex-end;gap:10px;padding:16px 14px 14px 10px;border-radius:26px;background:linear-gradient(135deg,#ffe58a 0%,#ffb04a 100%);box-shadow:0 6px 0 #e08a1e,0 10px 18px rgba(224,138,30,.28);text-decoration:none;color:#5a2a00;overflow:visible;margin-top:26px}
.the-nhiem-vu .nv-hero{flex:0 0 auto;height:150px;width:auto;margin:-48px 0 -6px 0;filter:drop-shadow(0 6px 6px rgba(90,42,0,.28));transform-origin:bottom center;animation:heroNhun 3.2s ease-in-out infinite}
@keyframes heroNhun{50%{transform:translateY(-5px) rotate(1.5deg)}}
.the-nhiem-vu .nv-noi{min-width:0;display:grid;gap:6px}
.the-nhiem-vu small{font-weight:900;letter-spacing:.04em;text-transform:uppercase;font-size:12px;color:#8a4a00}
.the-nhiem-vu h3{margin:0;font-size:21px;line-height:1.15;color:#3d1c00;overflow-wrap:anywhere}
.the-nhiem-vu .cham-buoc{display:flex;flex-wrap:wrap;gap:4px}
.the-nhiem-vu .nv-nut{justify-self:start;margin-top:4px;background:#fff;color:#0b3b8f;box-shadow:0 4px 0 #cf8a2a;padding:10px 16px;border-radius:999px;font-weight:900}
/* Chuoi ngay hoc */
.the-chuoi{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:22px;background:linear-gradient(135deg,#fff4e4,#ffe3cc);box-shadow:0 3px 10px rgba(255,120,40,.16)}
.the-chuoi .lua{font-size:40px;line-height:1;animation:luaNhay 1.6s ease-in-out infinite;transform-origin:50% 90%}
@keyframes luaNhay{50%{transform:scale(1.12) rotate(-4deg)}}
.the-chuoi b{display:block;font-size:17px;color:#a1401a}
.the-chuoi small{color:#8a5a3a}
.chuoi-cham{margin-left:auto;display:flex;gap:4px}
.chuoi-cham i{width:12px;height:12px;border-radius:50%;background:#f1d6bf}
.chuoi-cham i.bat{background:linear-gradient(#ffb02e,#ff6a00);box-shadow:0 0 6px rgba(255,120,0,.6)}
/* Top hoc tap: buc vinh danh */
.home-top-hoc-tap{padding:12px 12px 0;border-radius:24px;background:linear-gradient(180deg,#e8f1ff,#fff);box-shadow:0 3px 10px rgba(11,59,143,.1);overflow:hidden}
.buc{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:6px}
.buc li{display:grid;justify-items:center;gap:2px;position:relative;text-align:center;min-width:0}
.buc .vuong-mien{position:absolute;top:-10px;font-size:22px;z-index:2;animation:luaNhay 2.2s ease-in-out infinite}
.buc .av{display:grid;place-items:center;width:64px;height:72px}
.buc .av img{width:60px!important;height:68px!important;object-fit:contain}
.buc .av.cho{font-size:30px;font-weight:900;color:#b6c5dd}
.buc b{font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0b3b8f}
.buc small{font-size:12px;color:#5c6b86}
.buc .cot{display:grid;place-items:center;width:100%;font-weight:900;font-size:22px;color:#fff;border-radius:12px 12px 0 0;margin-top:4px}
.buc-1 .cot{height:70px;background:linear-gradient(#ffd34e,#f0a800)}
.buc-2 .cot{height:50px;background:linear-gradient(#d5dde8,#a9b6c8)}
.buc-3 .cot{height:36px;background:linear-gradient(#e8b27a,#c98544)}
.buc li.la-toi b{color:#d46a00}
.buc li.trong{opacity:.55}
.home-top-hoc-tap .muc{padding-left:2px}
/* Ke huy hieu */
.ke-huy-hieu{display:block;padding:12px 12px 14px;border-radius:24px;background:linear-gradient(135deg,#f3ecff,#fff);box-shadow:0 3px 10px rgba(110,60,200,.12);text-decoration:none;color:inherit}
.ke-huy-hieu .ke{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
.ke-huy-hieu figure{margin:0;display:grid;justify-items:center;gap:4px;padding:8px 4px;border-radius:16px;background:#fff;box-shadow:0 2px 0 #e4d8fb}
.ke-huy-hieu img{width:56px;height:56px;object-fit:contain}
.ke-huy-hieu figcaption{font-size:11px;font-weight:800;text-align:center;color:#4a3a85;line-height:1.2}
.ke-huy-hieu figure.khoa img{filter:grayscale(1) brightness(1.1);opacity:.4}
.ke-huy-hieu figure.khoa figcaption{color:#9a93b3}
/* Su kien + community */
.the-su-kien{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:22px;background:linear-gradient(135deg,#dff1ff,#c9e6ff);box-shadow:0 3px 10px rgba(30,120,200,.15)}
.the-su-kien .lich-icon{font-size:34px}
.the-su-kien small{display:block;font-weight:800;color:#2f6aa3;text-transform:uppercase;letter-spacing:.04em;font-size:11px}
.the-su-kien b{display:block;font-size:17px;color:#0b3b8f}
.the-su-kien .gio{font-size:13px;color:#42648a}
.home-community{padding:14px;border-radius:26px;background:linear-gradient(180deg,#fff,#f2f8ff);box-shadow:0 4px 14px rgba(11,59,143,.12)}
.home-compose-box{display:flex;align-items:center;gap:10px}
.home-compose-box .av{flex:0 0 52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#eef5ff;overflow:hidden}
.home-compose-box .av img{width:48px!important;height:48px!important;object-fit:contain}
.home-community .home-compose{flex:1;display:block;margin:0;padding:14px 16px;border-radius:999px;background:#eef5ff;color:#5c6b86;font-weight:700;box-shadow:inset 0 1px 3px rgba(11,59,143,.12)}
.chip-goi-y{display:flex;gap:8px;overflow-x:auto;padding:10px 0 4px;scrollbar-width:none}
.chip-goi-y a{flex:0 0 auto;padding:8px 14px;border-radius:999px;background:#fff3cf;color:#7a4b00;font-weight:800;font-size:13px;text-decoration:none;box-shadow:0 2px 0 #f0d27a}
.chip-goi-y a:nth-child(2){background:#e3f7e8;color:#1b6b34;box-shadow:0 2px 0 #b9e2c4}
.chip-goi-y a:nth-child(3){background:#e8eaff;color:#3a3fa0;box-shadow:0 2px 0 #c5c9f2}
.chip-goi-y a:nth-child(4){background:#ffe6ee;color:#a0305a;box-shadow:0 2px 0 #f2bfd0}
.thuong-note{margin:6px 0 10px;font-size:13px;color:#6b5b2a}
.rong-hero{display:flex;align-items:center;gap:12px;padding:14px;border-radius:20px;background:#f3f8ff;border:2px dashed #b9d3f5}
.rong-hero img{height:110px;width:auto;flex:0 0 auto}
.rong-hero b{display:block;font-size:17px;color:#0b3b8f}
.rong-hero span{display:block;margin:2px 0 8px;color:#5c6b86;font-size:14px}
@media (prefers-reduced-motion:reduce){.the-nhiem-vu .nv-hero,.the-chuoi .lua,.buc .vuong-mien{animation:none}}
.the-nhiem-vu .nv-nut{white-space:nowrap;font-size:15px;padding:9px 14px}

/* Home theo y anh Canh: Community la phan chinh; Ken Do + Piggy, Top hoc tap, su kien o ben canh */
.the-vi{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-decoration:none}
.the-vi .vi-o{display:grid;justify-items:center;gap:0;padding:10px 6px;border-radius:20px;color:#0b3b8f;box-shadow:0 3px 10px rgba(11,59,143,.12)}
.the-vi .vi-ken{background:linear-gradient(135deg,#fff3c4,#ffd96a)}
.the-vi .vi-piggy{background:linear-gradient(135deg,#ffe3ee,#ffc2d6)}
.the-vi .vi-o img{width:46px;height:46px;object-fit:contain}
.the-vi .vi-o b{font-size:24px;line-height:1.1}
.the-vi .vi-o small{font-size:12px;font-weight:800;opacity:.75}
@media(max-width:899px){
  .home-luoi{display:flex;flex-direction:column;gap:14px}
  .home-cot{display:contents}
  .the-vi{order:1}.the-nhiem-vu{order:2}.the-chuoi{order:3}.home-top-hoc-tap{order:4}.the-su-kien{order:5}.lich-hoc{order:6}.home-community{order:7}.ke-huy-hieu{order:8}.home-giao{order:9}.zalo-home{order:10}
}

/* Man ket qua tro choi: chuc mung manh me (anh Canh 09/11) */
.chuc-mung-game{position:relative;display:grid;justify-items:center;gap:6px;padding:20px 14px 24px;border-radius:28px;background:linear-gradient(180deg,#fff,#eaf4ff);box-shadow:0 6px 18px rgba(11,59,143,.14);overflow:hidden;text-align:center;min-height:min(58vh,420px);align-content:center}
.chuc-mung-game.tuyet{background:linear-gradient(180deg,#fffbe0,#ffeaa8)}
.chuc-mung-game .cm-hero{height:170px;width:auto;filter:drop-shadow(0 6px 6px rgba(11,59,143,.25));animation:heroNhun 2.6s ease-in-out infinite}
.chuc-mung-game.tuyet .cm-hero{height:200px}
.cm-sao{display:flex;gap:6px;font-size:46px;line-height:1;color:#ffb400;text-shadow:0 3px 0 #d98a00}
.cm-sao span{display:inline-block;animation:saoNay .5s cubic-bezier(.2,1.6,.4,1) both}
.cm-sao span:nth-child(2){animation-delay:.15s}.cm-sao span:nth-child(3){animation-delay:.3s}
.cm-sao span.mo{color:#d6dbe6;text-shadow:none}
@keyframes saoNay{from{transform:scale(0) rotate(-40deg)}}
.cm-so{margin:0;font-weight:800;color:#31507f;font-size:17px}
.cm-xu{display:flex;align-items:center;gap:10px;padding:8px 18px;border-radius:999px;background:#fff;box-shadow:0 4px 0 #f0b400;animation:saoNay .5s .4s cubic-bezier(.2,1.6,.4,1) both}
.cm-xu b{font-size:26px;color:#b86a00}
.cm-loi{margin:2px 0 6px;color:#6b5b2a;font-weight:700;max-width:30ch}
.chuc-mung-game .cm-lai{margin-top:8px}
.cm-xu-roi{position:absolute;top:-40px;width:30px;height:30px;pointer-events:none;animation:xuRoi 2.4s linear infinite}
@media (prefers-reduced-motion:reduce){.chuc-mung-game .cm-hero,.cm-xu-roi{animation:none}.cm-xu-roi{display:none}}
.cm-xu-don{justify-self:center;margin:10px auto 0;width:max-content}
.ket-qua.tuyet .cm-xu-don{animation:saoNay .5s .2s cubic-bezier(.2,1.6,.4,1) both}

/* 09/11: Zalo dang bong bay goc phai; Learning room dung nen dao nhu Home */
.zalo-home{position:fixed;right:14px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:40;margin:0;padding:6px 14px 6px 6px;gap:8px;border-radius:999px;box-shadow:0 6px 18px #0b3b8f44,0 3px 0 #cfe0f3}
.zalo-home .zalo-logo{flex:0 0 42px;height:42px;border-radius:50%;font-size:12px}
.zalo-home .zalo-chu b{font-size:14px;line-height:1.1}.zalo-home .zalo-chu small{font-size:12px}
@media (min-width:900px){.zalo-home{bottom:24px;right:24px}}
.thu-vien-bia{position:relative;border-radius:26px;overflow:hidden;margin:0 0 14px;background:#bfe6f5;box-shadow:0 5px 0 #b3d8e5}
.thu-vien-bia>img{display:block;width:100%;height:clamp(150px,26vw,260px);object-fit:cover;object-position:50% 38%}
body:not(.che-do-thay) .thu-vien-bia .tieu-de-trang{position:absolute;left:10px;bottom:10px;right:10px;margin:0;min-height:0;justify-content:flex-start;flex-wrap:nowrap}
body:not(.che-do-thay) .thu-vien-bia .tieu-de-trang h2{margin:0}
body:not(.che-do-thay) .thu-vien-bia .tieu-de-trang{right:auto;padding:0}
body:not(.che-do-thay) .thu-vien-bia .tieu-de-trang h2{flex:0 0 auto;padding:6px 14px;font-size:clamp(15px,4.2vw,22px)}
body:not(.che-do-thay) .thu-vien-bia .tieu-de-trang h2 small{display:none}
.thu-vien-bia .nut-loa{width:38px;height:38px;min-width:38px}

/* 09/11: menu tai khoan (chu trang tren nen trang) + bang chon ban dong hanh bi de */
body:not(.che-do-thay) #menu-tren .tai-khoan-popup a,body:not(.che-do-thay) #menu-tren .tai-khoan-popup button{color:#0b3b8f;background:#fff;border-radius:12px;font-weight:800;font-size:16px;width:100%;height:auto;min-height:48px;justify-content:flex-start;box-shadow:none}
body:not(.che-do-thay) #menu-tren .tai-khoan-popup a:hover,body:not(.che-do-thay) #menu-tren .tai-khoan-popup button:hover{background:#eaf4ff}
.tai-khoan-popup .ui-ic{width:24px!important;height:24px!important;min-width:24px}
.chon-avatar{gap:10px}
.chon-avatar button{width:auto;height:auto;min-width:76px;padding:6px;line-height:0;display:grid;place-items:center}
.chon-avatar+.tb{margin-top:10px}
/* 09/11: nut "Vao lop" khong con la hinh tron 76px (chu tran) */
.raz-hang .raz-mui-ten{width:auto;height:auto;min-width:110px;min-height:56px;padding:10px 24px;border-radius:999px;font-size:20px;font-weight:900;line-height:1.1;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
@media (min-width:600px){.raz-hang{flex-wrap:nowrap;align-items:center}}

/* ===== 09/11 (anh Canh 22h): Home can doi, Goc nha Ken uu tien; Learning room muot; man Xong roi co 2 nut ===== */
.thuong-tram-nut{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.thuong-tram .nut.trang{background:#fff;color:#0b3b8f}
@media(min-width:900px){
  .home-luoi{grid-template-columns:minmax(0,7fr) minmax(300px,5fr);align-items:stretch}
  .home-cot-trai{grid-template-rows:auto minmax(0,1fr)}
  .home-cot-trai .home-community{display:flex;flex-direction:column;min-height:0}
}
@media(max-width:899px){.home-community{order:3!important}.the-chuoi{order:4!important}.home-top-hoc-tap{order:5!important}.the-su-kien{order:6!important}.lich-hoc{order:7!important}.ke-huy-hieu{order:8!important}}
/* sach-mini: bo content-visibility (gay nhay khi cuon vi chieu cao uoc luong sai) */
.sach-mini{content-visibility:visible;contain-intrinsic-size:none}
.sach-mini .bia-sach{background:#e6f0fb}
#noi-dung.vao-trang>*{animation:vaoTrang .22s ease-out both}
@keyframes vaoTrang{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){#noi-dung.vao-trang>*{animation:none}}
.skeleton-library .skeleton-main{height:150px}

/* ===== 09/11 Learning room kieu Duolingo: chuyen canh co huong, tram co X + thanh tien do, nut tiep dinh duoi ===== */
#noi-dung.vao-toi>*{animation:vaoToi .28s cubic-bezier(.2,.8,.2,1) backwards}
#noi-dung.vao-lui>*{animation:vaoLui .28s cubic-bezier(.2,.8,.2,1) backwards}
#noi-dung.vao-ngang>*{animation:vaoNgang .22s ease-out backwards}
@keyframes vaoToi{from{opacity:0;transform:translateX(32px)}}
@keyframes vaoLui{from{opacity:0;transform:translateX(-32px)}}
@keyframes vaoNgang{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){#noi-dung.vao-toi>*,#noi-dung.vao-lui>*,#noi-dung.vao-ngang>*{animation:none}}
body{overflow-x:clip}
/* the Hoc tiep o thu vien */
.the-hoc-tiep{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:12px 14px;border-radius:24px;background:linear-gradient(135deg,#ffe58a,#ffb04a);box-shadow:0 5px 0 #e08a1e;text-decoration:none;color:#3d1c00}
.hoc-tiep-bia{flex:0 0 64px;width:64px}.hoc-tiep-bia .bia-sach{width:64px!important;height:auto!important;aspect-ratio:396/612;border-radius:10px;overflow:hidden}
.hoc-tiep-chu{display:grid;gap:4px;min-width:0}.hoc-tiep-chu small{font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#8a4a00}
.hoc-tiep-chu b{font-size:19px;line-height:1.2;overflow-wrap:anywhere}
.hoc-tiep-nut{justify-self:start;font-style:normal;background:#fff;color:#0b3b8f;padding:8px 16px;border-radius:999px;box-shadow:0 3px 0 #cf8a2a;font-weight:900}
/* trong tram: X + thanh tien do day (kieu Duolingo) */
body.trong-tram .dau-buoc .nut-loa{background:#fff;border:0;box-shadow:0 3px 0 #bcd0ee;font-weight:900;color:#5a6b87}
.thanh-buoc{display:flex;gap:6px;margin:0 0 12px}
.thanh-buoc i{flex:1;height:12px;border-radius:999px;background:#d9e6f6;display:block;transition:background .3s}
.thanh-buoc i.xong{background:linear-gradient(#58d68d,#2ec27e)}
.thanh-buoc i.dang{background:linear-gradient(#ffe066,#ffc928)}
/* nut Tram tiep dinh duoi man hinh */
body.trong-tram .tiep-doc{position:static}
body.trong-tram .noi-dung>div>div[style*="margin-top:16px"]{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:6;padding:10px 0 4px;background:linear-gradient(transparent,#eaf4ff 40%)}
/* ban do: giu cho de khong nhay */
.skeleton-map .skeleton-main{height:520px}

/* ===== 11/11: trang vao lop + dang nhap thay co - canh dao sieu anh hung, ruy bang vang noi tiep man cho ===== */
.vao-canh{position:relative;max-width:900px;margin:6px auto 0}
.vao-canh-anh{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:46dvh;object-fit:cover;object-position:center 42%;border:6px solid #fff;border-radius:28px;box-shadow:0 8px 0 rgba(4,28,84,.35)}
.vao-ruy-bang{position:absolute;left:50%;bottom:-24px;z-index:2;margin:0;padding:8px 26px;transform:translateX(-50%) rotate(-2deg);background:#ffd23f;color:#0b3b8f;border-radius:18px;box-shadow:0 6px 0 #e0a800;font-size:clamp(19px,3.2vw,34px);line-height:1.25;white-space:nowrap}
.vao-ruy-bang:focus,.vao-ruy-bang:focus-visible{outline:none;box-shadow:0 6px 0 #e0a800}
.raz-than>.raz-buoc1.vao-the{order:0;margin-top:48px;padding-top:0}
.vao-the .raz-thay-co{margin-top:22px}
.vao-the .raz-thay-co a{display:inline-flex;align-items:center;min-height:44px;padding:8px 22px;border:2px solid rgba(255,255,255,.7);border-radius:999px;color:#fff;font-weight:800;text-decoration:none}
.vao-the .raz-thay-co a:hover{background:rgba(255,255,255,.14)}
.vao-the .raz-thay-co a:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
.raz-than>.raz-buoc1.vao-thay{max-width:460px;margin-top:10px}
.vao-thay-ga{width:130px;margin:0 auto -14px;position:relative;z-index:1}
.vao-thay-ga .linh-vat{display:block;width:130px;height:130px;position:static;float:none;margin:0}
.vao-thay .raz-the label{font-size:18px;margin:12px 0 6px}
.vao-thay .raz-the input{height:56px;font-size:19px;border:3px solid #cfe0f7;border-radius:16px;margin:0}
.vao-thay .raz-the input:focus{border-color:#22C55E}
.vao-thay .raz-mui-ten{width:100%;height:auto;min-height:58px;margin-top:18px;border-radius:999px;font-size:20px;font-weight:900}
@media(max-width:700px){.vao-canh-anh{border-width:4px;border-radius:22px}.raz-than>.raz-buoc1.vao-the{margin-top:40px}.raz-than>.raz-buoc1.vao-thay{margin-top:4px}}
.vao-anh-bia{position:absolute;left:-14px;top:-14px;z-index:2;width:clamp(84px,16vw,150px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:0 5px 0 rgba(4,28,84,.35);background:#fff;transform:rotate(-4deg)}
.vao-the .banner-dong{margin:18px 0 0;color:#fff;font-size:16px;font-weight:700}
@media(max-width:700px){.vao-anh-bia{left:-6px;top:-10px}}
.bia-sach .book-state{position:absolute;z-index:2;top:8px;right:8px;width:30px;height:30px;box-sizing:border-box;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;font:900 19px/1 Nunito,sans-serif;box-shadow:0 1px 5px #18355840}
.bia-sach .book-state.complete{background:#147bd1;color:#fff}
.bia-sach .book-state.partial{background:linear-gradient(90deg,#f8da4a 50%,#92bf45 50%);color:#263d15}
.rewards-illustration{display:grid;place-items:center;margin:12px 0;min-height:160px}
.rewards-illustration img{display:block;width:160px;height:160px;object-fit:contain}
.vocab-next{margin-top:12px;text-align:center}.vocab-next p{margin:8px 0;color:#40566b}
.nut.vocab-secondary{width:auto;display:block;margin:0 auto;min-height:44px;padding:8px 16px;background:#fff;color:#235a8a;box-shadow:none;border:1px solid #9abbd7;font-size:14px}
.copy-link-status{position:fixed;z-index:10000;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90vw;padding:12px 18px;border-radius:12px;background:#123b61;color:#fff;box-shadow:0 4px 16px #123b6133}
.homework-request{white-space:pre-wrap;overflow-wrap:anywhere}

/* Ken's quiet invitation: existing yellow action, blue book accent, inherited type. */
.nhac-hoc{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;margin:12px 0;background:#eef7ff;border-left:4px solid #2266ad;border-radius:12px;color:#173b61}
.nhac-hoc>span{font-size:28px}.nhac-hoc>div{flex:1;min-width:0}.nhac-hoc p{margin:0 0 8px;overflow-wrap:anywhere}.nhac-hoc .nut{min-height:44px}
.nhac-hoc-tat{border:0;background:transparent;color:#173b61;min-width:44px;min-height:44px;font-size:26px;cursor:pointer;touch-action:manipulation}
.nhac-hoc-tat:hover{background:#d7eafa}.nhac-hoc :focus-visible,.nhac-hoc-thay :focus-visible{outline:3px solid #2266ad;outline-offset:3px}
.nhac-hoc-hang{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:8px 0;content-visibility:auto}
.nhac-hoc-hang>span{min-width:0;overflow-wrap:anywhere}.nhac-hoc-hang button{flex-shrink:0;min-height:44px}.nhac-hoc-thay h2{text-wrap:balance}
@media(max-width:480px){.nhac-hoc-hang{align-items:flex-start;flex-direction:column}.nhac-hoc{padding:10px;gap:8px}}

/* Anh Canh 18/11: nen Ly thuyet (xanh duong) va Thuc hanh (xanh la) khac mau cho de nhan biet */
.ngu-phap-4p .phan-np.np-ly-thuyet,.ngu-phap-4p .phan-np.np-thuc-hanh{border-top:0;border-radius:18px;padding:12px 14px;margin:10px 0}
.ngu-phap-4p .phan-np.np-ly-thuyet{background:#eaf3ff;box-shadow:inset 4px 0 0 #3b82f6}
.ngu-phap-4p .phan-np.np-thuc-hanh{background:#e8f8ee;box-shadow:inset 4px 0 0 #22a35a}
.ngu-phap-4p > .phan-np.np-ly-thuyet > h4{color:#1d4ed8}
.ngu-phap-4p > .phan-np.np-thuc-hanh > h4{color:#15803d}
/* GPT cham 9/10: nhan dam hon, cach phan ro hon tren dien thoai */
.ngu-phap-4p > .phan-np > h4{font-size:13px;font-weight:800}
.ngu-phap-4p .phan-np.np-ly-thuyet,.ngu-phap-4p .phan-np.np-thuc-hanh{margin:16px 0}
.ngu-phap-4p > .phan-np.np-vi-du > h4{color:#1e3a8a}

/* 19/11 anh Dat: khung Giu lua ngang hang the Nhiem vu (the nhiem vu co margin-top 26px cho hero) */
@media(min-width:900px){.the-chuoi{margin-top:26px}}

/* 19/11 GPT soat: man Hoan thanh tren dien thoai phai cuon moi thay 2 nut -> dua 2 nut len ngay duoi so Ken Do, gon hinh */
@media (max-width:600px){.thuong-tram.cuoi .thuong-tram-noi{justify-content:flex-start;gap:12px;padding-top:44px}.thuong-tram.cuoi .trung-thuong{display:none}.thuong-tram.cuoi .hero-thuong{height:120px}.thuong-tram.cuoi h2{font-size:34px}.thuong-tram.cuoi .thuong-tram-nut{order:1}.thuong-tram.cuoi .thuong-tram-duong{order:2}}

/* 19/11 GPT soat: cot vang Tong Ken Do (anh Canh 13/11: cao bang cot Cua hang) bi trong giua trang -> giu chieu cao, dua so Ken Do len dau cot */
@media (min-width:700px){html body .rewards-layout .coin-jar{justify-content:flex-start;padding-top:28px}}
/* 20/11 soat loi: DT bong Zalo che nut "Vao Community" -> chi con logo tron */
@media (max-width:899px){.zalo-home{padding:5px;gap:0}.zalo-home .zalo-chu{display:none}}
