/* Shared mobile layout: the measured navigation already includes safe-area. */
body.co-thanh-duoi{padding-bottom:calc(var(--cao-dieu-huong,0px) + 20px)!important}
body.trong-tram.co-thanh-duoi{padding-bottom:20px!important}
body:not(.che-do-thay) #thanh-duoi b{font-size:12px;line-height:1.25;white-space:nowrap}
body:not(.che-do-thay) #thanh-duoi a{min-width:0;min-height:56px}
.menu-tai-khoan{position:relative}
.menu-tai-khoan summary{list-style:none;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff}
.menu-tai-khoan summary::-webkit-details-marker{display:none}
.tai-khoan-popup{position:absolute;right:0;top:100%;z-index:50;width:180px;padding:8px;background:#fff;border-radius:16px;box-shadow:0 8px 28px #0b3b8f33}
.tai-khoan-popup a,.tai-khoan-popup button{display:flex;align-items:center;gap:8px;min-height:48px;width:100%;padding:8px;color:#0b3b8f;font-size:16px;text-decoration:none;background:white;border:0}
body:not(.che-do-thay) #menu-tren>.chuong{min-width:44px;min-height:44px}
.tai-khoan .tk-vi{color:#48203d;background:#ffc2dc}
body:not(.che-do-thay) .tieu-de-trang{flex-wrap:nowrap;gap:8px;justify-content:space-between}
body:not(.che-do-thay) .tieu-de-trang h2{flex:1;min-width:0;border-radius:20px;line-height:1.3;padding:8px 10px}
.tieu-de-trang>.nut-loa,.tieu-de-trang>button{flex:0 0 48px}
.tai-khoan .tk small{display:block!important;font-size:13px!important;line-height:1.1}
.tai-khoan .tk img,.tai-khoan .tk .xu{grid-row:1/3!important}
.tai-khoan .tk{grid-template-rows:auto auto!important}
:is(a,button,summary,input,select):focus-visible{outline:3px solid #0047ab;outline-offset:4px}
.home-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.home-summary a{display:flex;align-items:center;gap:8px;margin:0;padding:12px;font-size:14px;text-decoration:none;color:#0b3b8f;min-width:0}
.home-summary img{width:36px;height:36px}.home-summary b{display:block;font-size:13px}
.home-map .home-jar{display:none}
.home-map{margin-bottom:16px}
.home-hello small{font-size:13px}
.home-island span{font-size:14px}
.continue-reading .sach-giao{gap:10px;padding:12px;flex-wrap:wrap}
.continue-reading .bia-sach{width:64px}
.continue-reading .nut{font-size:15px}
.level-chips{display:flex;overflow-x:auto;gap:8px;padding:6px 2px 12px;scrollbar-width:thin}
.level-chips button{flex:0 0 auto;min-width:48px;min-height:44px;padding:8px 14px;border:2px solid #aac9dd;border-radius:24px;background:white;color:#0b3b8f;font-size:16px;font-weight:800}
.level-chips button[aria-pressed=true]{background:#ffd23f;border-color:#0047ab}
.loc-gon{margin-bottom:16px}.loc-gon>summary{min-height:44px;display:flex;align-items:center;width:fit-content;padding:8px 20px;background:white;border:2px solid #aac9dd;border-radius:22px;cursor:pointer;font-weight:800}
.loc-gon .bo-loc{padding:12px 0;display:flex;flex-wrap:wrap;gap:8px}.loc-gon select{min-height:44px;max-width:100%;font-size:16px}
.raz-buoc1 .raz-ga{display:none}
.journey-layout{display:grid;grid-template-areas:'info' 'map' 'action';grid-template-columns:minmax(0,1fr);gap:12px}
.journey-layout .the-dau-sach.sach-noi{grid-area:info;position:static!important;max-width:none!important;width:100%!important;height:auto!important;max-height:none!important;margin:0;pointer-events:auto;padding:12px!important}
.journey-layout .the-dau-sach b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal;font-size:17px!important;line-height:1.35}
.journey-layout .the-dau-sach .vien,.journey-layout .the-dau-sach .sao{font-size:14px!important}
.journey-layout .the-dau-sach .bia-sach{width:48px!important;min-width:48px!important;height:64px!important;flex:0 0 48px!important}
.journey-layout .hanh-trinh-0611e{grid-area:map;margin:0 auto;width:100%;min-height:680px;background-size:cover;background-position:center;aspect-ratio:800/1420}
.journey-layout .journey-continue{grid-area:action;position:sticky;bottom:calc(var(--cao-dieu-huong,0px) + 8px);z-index:8;min-height:52px;white-space:normal;font-size:16px;box-shadow:0 4px 0 #dca619,0 0 0 5px #fff}
.hanh-trinh-0611e.duong-hoc .tram .tram-chu b{font-size:16px!important}
.hanh-trinh-0611e.duong-hoc .tram .tram-nut{max-width:100%;min-height:52px!important}
.hanh-trinh-0611e.duong-hoc .tram{max-width:72%}
.hanh-trinh-0611e .duong-ga{animation:none!important}
.hanh-trinh-0611e .duong-ga .loi-tram{display:none}
.nhan-ve-hanh-trinh{font-size:14px;color:#0b3b8f}
.dau-buoc{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:center}
.dau-buoc>button:first-child{grid-column:1;grid-row:1}
.dau-buoc>.nhan-ve-hanh-trinh{grid-column:2;grid-row:1}
.dau-buoc>button:last-child{grid-column:3;grid-row:1}
.dau-buoc h3{grid-column:1/-1;grid-row:2;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3;padding:8px 12px;font-size:22px}
.skeleton{min-height:60dvh;display:grid;gap:16px;padding:12px}
.skeleton-title,.skeleton-main,.skeleton-cards i{display:block;border-radius:24px;background:linear-gradient(100deg,#dce9f4 25%,#f5f9fc 45%,#dce9f4 65%);background-size:200% 100%;animation:skeleton-0711 1.5s linear infinite}
.skeleton-title{width:65%;height:48px}.skeleton-main{height:220px}.skeleton-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.skeleton-cards i{height:140px}
.skeleton-map .skeleton-main{height:480px}.skeleton-library .skeleton-main{height:44px}.skeleton-progress .skeleton-main{height:160px}
@keyframes skeleton-0711{to{background-position:-200% 0}}
@media(max-width:700px){
 .raz-than{display:flex;flex-direction:column}.raz-than>.raz-buoc1{order:-1}.raz-buoc1 .raz-ga{display:none}.raz-than>.banner-0611d{margin-top:16px}.raz-than>.banner-0611d .banner-nut{display:none}
 .raz-buoc1{padding-top:8px}.raz-hang{display:flex;flex-wrap:wrap;gap:8px}.raz-hang input{min-width:0;flex:1 1 150px;font-size:18px}.raz-hang .raz-mui-ten{width:auto;min-width:96px;min-height:48px;padding:8px 14px;font-size:16px;white-space:nowrap;border-radius:20px}
 .raz-than>.banner-0611d{max-height:none}.home-hello{max-width:45%;padding:4px 8px}.home-hello small{display:none}.home-map .home-island span{padding:5px 9px}
 body:not(.che-do-thay) .tieu-de-trang h2 small{font-size:13px}
 body:not(.che-do-thay) .noi-dung{padding:12px}
}
@media(min-width:768px) and (max-width:1099px){
 body:not(.che-do-thay) .noi-dung{max-width:920px;padding:20px;margin:auto}
 .home-summary{gap:16px}.continue-reading .bia-sach{width:90px}
 .journey-layout{max-width:720px;margin:auto}.journey-layout .hanh-trinh-0611e{max-width:510px}
}
@media(prefers-reduced-motion:reduce){.skeleton *{animation:none!important}html{scroll-behavior:auto!important}}

/* 13/11 anh Canh: muc Talk with AI Ken sau Practice -> thanh duoi 6 cot */
body.co-thanh-duoi #thanh-duoi{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:8px 8px}
#thanh-duoi .ic-emoji{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:28px;line-height:1}
@media (max-width:1099px){body:not(.che-do-thay) #thanh-duoi a b{font-size:12px!important;line-height:1.08!important;white-space:normal!important;text-align:center;max-width:100%;overflow-wrap:anywhere;letter-spacing:-.2px}}
#thanh-duoi a{padding-left:1px;padding-right:1px;min-width:0}
@media (min-width:1100px){body.co-thanh-duoi #thanh-duoi a b{font-size:15px}#thanh-duoi .ic-emoji{width:38px;height:38px;font-size:24px}}

/* 13/11 giai thich khi lam sai (ngu phap) */
.giai-thich-sai{margin:10px 0 0;padding:10px 12px;border-radius:14px;background:#fff7e0;border:2px solid #ffd23f;color:#5a3d00;font-size:15px;line-height:1.45}
.giai-thich-sai p{margin:2px 0}

/* 13/11 the Test dau vao tren Home (hoc sinh ngoai lop) */
.the-test-dau-vao{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:14px 16px;border-radius:20px;background:#fff7e0;border:2px solid #ffd23f;color:#0b3b8f;text-decoration:none;box-shadow:0 6px 18px #ffd23f40}
.the-test-dau-vao b{display:block;font-size:18px}
.the-test-dau-vao small{display:block;font-size:14px;opacity:.85}
.the-test-dau-vao .nut{flex:0 0 auto;margin:0}

/* 13/11 anh Canh: Rewards gon - tong Ken Do / Co the dung thanh 1 dai ngang cung chieu rong voi cua hang qua tang */
body .rewards-layout{grid-template-columns:1fr;gap:12px}
body .rewards-layout .coin-jar{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;padding:12px 20px;width:100%;box-sizing:border-box}
body .rewards-layout .coin-jar>.ken-coin,body .rewards-layout .coin-jar>.ic{flex:0 0 auto}
body .rewards-layout .coin-jar .ken-coin svg,body .rewards-layout .coin-jar .ken-coin img{width:56px;height:56px}
body .rewards-layout .coin-jar .so-du-qua{width:auto;margin:0;display:flex;gap:28px}

/* 13/11 mini game Pronunciation */
.pronun-games .pronun-de{display:flex;align-items:center;gap:10px;justify-content:center;font-size:28px;color:#0b3b8f;margin:6px 0}
.pronun-games .pronun-ipa{font-size:18px;opacity:.75}
.pronun-games .pronun-huong{text-align:center;margin:4px 0 10px;color:#31507f}
.pronun-games .pronun-o{min-height:52px;display:flex;justify-content:center;align-items:center;font-size:26px;font-weight:800;color:#0b3b8f;background:#fff;border:3px dashed #9cc4f5;border-radius:18px;padding:8px 14px;margin:0 auto 12px;max-width:520px}
.pronun-games .pronun-khay{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.pronun-games .pronun-chip{min-width:72px;min-height:56px;font-size:22px;padding:8px 18px}
.pronun-games .pronun-chip.nhan{background:#ffd23f;color:#0b3b8f}

/* 13/11 anh Canh: phim chuyen trang nhay giat. Nguyen nhan: :hover day nut len 3px -> con tro roi khoi mep nut -> nut ha xuong -> hover lai (lap vo han).
   Nut dieu khien trang doc khong dich chuyen khi hover, chi doi do sang; bam van co hieu ung :active. */
body .lat-trang button,body .lat-trang .nut-loa,body .tiep-doc .nut,body .doc-play{transition:filter .15s ease,box-shadow .15s ease}
body .lat-trang button:hover:not(:disabled),body .lat-trang .nut-loa:hover:not(:disabled),body .tiep-doc .nut:hover,body .doc-play:hover:not(:disabled){transform:none!important;filter:brightness(1.07)}
@media (prefers-reduced-motion:reduce){body .lat-trang button,body .tiep-doc .nut{transition:none}}

/* 13/11 anh Canh: hinh minh hoa o phan Vi du ngu phap phai to hon (truoc: o emoji nho nam trong khung rong bi flex keo gian) */
body .ngu-phap-4p .vi-du > .vd-hinh{flex:0 0 96px;width:96px;height:96px;font-size:60px;line-height:1;border-radius:20px;display:grid;place-items:center}
body .ngu-phap-4p .vi-du > .vd-cau{flex:1 1 auto;font-size:19px;min-width:0}
body .ngu-phap-4p .vi-du{min-height:112px;gap:14px}
@media (max-width:430px){body .ngu-phap-4p .vi-du > .vd-hinh{flex-basis:80px;width:80px;height:80px;font-size:50px}body .ngu-phap-4p .vi-du > .vd-cau{font-size:17px}body .ngu-phap-4p .vi-du{min-height:96px}}
@media (min-width:900px){body .rewards-layout .prize-grid,body .prize-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
