﻿/* Student shell and island home, approved mockups 06/11E. Teacher layout stays scoped out. */
body:not(.che-do-thay){background:linear-gradient(#dff3ff,#f4fbff);color:#0b3b8f}
body:not(.che-do-thay) .canh-nen{background:linear-gradient(#dff3ff,#f4fbff)}
body:not(.che-do-thay) .canh-nen .doi{display:none}
body:not(.che-do-thay) h2,body:not(.che-do-thay) h3{font-weight:900}
body:not(.che-do-thay) .thanh-tren{background:transparent;box-shadow:none;max-width:1140px;margin:auto;flex-wrap:nowrap;padding:12px 20px}
body:not(.che-do-thay) .logo{background:white;color:#0b3b8f;border-radius:999px;padding:6px 16px;box-shadow:0 4px 12px #145c9720;font-family:Nunito,sans-serif;font-weight:900}
body:not(.che-do-thay) .logo span{color:#0b3b8f}
body:not(.che-do-thay) #menu-tren{flex-wrap:nowrap;gap:10px}
body:not(.che-do-thay) #menu-tren>.nut-thoat,body:not(.che-do-thay) #menu-tren>.chuong{width:48px;height:48px;padding:0;display:grid;place-content:center;position:relative;font-size:21px;border-radius:50%}
body:not(.che-do-thay) #menu-tren>.chuong span{position:absolute;right:0;top:-3px;font-size:12px;background:#ffd23f;border-radius:10px;padding:0 3px}
body:not(.che-do-thay) #menu-tren>a{display:none}
.coin-pill{display:flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:8px 16px;color:#0b3b8f;font-size:22px;font-weight:900;box-shadow:0 3px 10px #145c9720}
body.co-thanh-duoi{padding-left:0;padding-bottom:0;--cao-thanh-duoi:104px}
body.co-thanh-duoi #thanh-duoi{top:auto;bottom:12px;left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 32px);max-width:900px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;border-radius:24px;background:#fff;padding:8px 12px;box-shadow:0 8px 28px #15549330}
#thanh-duoi a{min-height:64px;padding:4px 6px;gap:3px;border-radius:999px;justify-content:center;color:#0b3b8f;font-size:13px;line-height:1.1;text-align:center}
#thanh-duoi a.dang-mo{background:#ffd23f;color:#0b3b8f}
#thanh-duoi b{font-size:13px;font-weight:900}
#thanh-duoi img{width:40px;height:40px;object-fit:contain}
.ic{display:inline-block;object-fit:contain;vertical-align:middle;flex-shrink:0}
body:not(.che-do-thay) .noi-dung{max-width:1140px}
body:not(.che-do-thay) .the,body:not(.che-do-thay) .sach-mini{border-radius:22px;box-shadow:0 8px 24px #235c9a14;background:#fff}
body:not(.che-do-thay) .tieu-de-trang{justify-content:center;position:relative;flex-wrap:wrap;min-height:56px}
body:not(.che-do-thay) .tieu-de-trang h2{flex:0 1 auto;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border-radius:999px;padding:8px 22px;font-size:25px;box-shadow:0 4px 12px #145c9720;text-align:center;max-width:100%}
body:not(.che-do-thay) .tieu-de-trang h2 small{font-size:13px}
body:not(.che-do-thay) .sach-mini .bia-sach{border-radius:20px;overflow:hidden}
.home-map{position:relative;max-width:1100px;margin:0 auto 24px;border-radius:28px;isolation:isolate;box-shadow:0 14px 32px #197ba333}
.home-sea{width:100%;height:auto;aspect-ratio:16/9;display:block;border-radius:28px}
.home-hello{position:absolute;left:3%;top:4%;max-width:32%;background:#fffffff0;border-radius:22px;padding:10px 16px;box-shadow:0 5px 12px #0b3b8f22;font-size:clamp(12px,2.2vw,24px)}
.home-hello small{display:block;font-size:.6em}
.home-island{position:absolute;display:block;text-decoration:none;border-radius:45%;transition:transform .2s,filter .2s;color:#0b3b8f}
.home-island span{position:absolute;left:50%;bottom:0;transform:translateX(-50%);padding:8px 18px;white-space:nowrap;border-radius:999px;background:#fff;box-shadow:0 5px 0 #b3d8e5,0 7px 12px #15698733;font-weight:900;font-size:clamp(12px,1.8vw,22px)}@media (hover:hover){
.home-island:hover{transform:translateY(-5px);filter:brightness(1.08)}}
.island-library{left:5%;top:29%;width:38%;height:38%}
.island-practice{left:60%;top:25%;width:36%;height:38%}
.island-homework{left:32%;top:61%;width:36%;height:32%}
.home-jar{position:absolute;bottom:5%;left:2%;max-width:30%;display:flex;align-items:center;gap:7px;background:#fff;border-radius:20px;box-shadow:0 5px 0 #badbe7;padding:8px 12px;font-size:clamp(10px,1.25vw,15px);text-align:left;color:#0b3b8f;min-height:48px}
.home-jar img{width:56px;height:56px}.home-jar b{display:block;color:#b14427;font-size:1.4em}
.continue-reading{margin:20px 0}.continue-reading>h3{margin-bottom:12px}.continue-reading .sach-giao{align-items:center;gap:20px}.continue-reading .bia-sach{width:100px;flex-shrink:0}.continue-reading .nut{flex-shrink:0}
.hu-hoc-phi h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hu-hoc-phi .ic{width:56px;height:56px}
.hu-tuan span{border-radius:50%;aspect-ratio:1;display:grid;place-items:center;max-width:50px}.hu-tuan .co-tien{background:#36b873;color:white}
.rewards-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;margin-bottom:24px;align-items:start}.coin-jar{text-align:center;background:linear-gradient(#fff,#fff6c8)!important;padding:24px}.coin-jar>.ic{width:160px;height:180px}.coin-jar .so-to{font-size:32px;color:#0b3b8f}.prize-shop{min-width:0}.prize-shop>h3{text-align:center;margin:0 0 18px;font-size:28px}.prize-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.prize-grid .sach-mini{padding:16px 10px;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.prize-grid .sach-mini>div{height:120px;display:grid;place-items:center}.prize-grid img{max-height:120px;object-fit:contain}.prize-grid .nut{margin-top:auto}.rewards-tuition{display:flex;align-items:center;gap:20px}.rewards-tuition>.ic{width:100px;height:100px}.rewards-tuition>div{flex:1;min-width:0}.rewards-tuition .hu-tuan{max-width:480px}
.dong-ho-thi{width:fit-content;margin:0 0 12px auto;background:white;border-radius:999px;padding:8px 18px;font-weight:900}
body:not(.che-do-thay) .banner-0611d{background:linear-gradient(#ffffffaa,#ffffffcc),url('/img/nen-home.webp') center/cover;color:#0b3b8f}
body:not(.che-do-thay) .banner-0611d h2,body:not(.che-do-thay) .banner-0611d h2 em{color:#0b3b8f}.banner-0611d .hero-phu{background:#2f7bea!important;color:#fff!important;border-color:#1c55b0!important}
/* A 16:9 stage uses the same cover transform for background and photo frame. */
#man-cho{padding:0;background:#dff3ff;overflow:hidden;color:#0b3b8f}
.cho-stage{position:absolute;width:max(100vw,177.778dvh);height:max(100dvh,56.25vw);left:50%;top:50%;transform:translate(-50%,-50%);background:url('/img/nen-cho.webp') center/100% 100% no-repeat}
.cho-khung{position:absolute;left:23%;top:11%;width:51%;height:72%;margin:0;max-width:none}
.cho-anh{position:absolute;inset:0;aspect-ratio:auto;border:0;border-radius:4%;padding:0;background:white;overflow:hidden}
.cho-anh img{position:absolute;inset:0;width:100%;height:100%;border-radius:4%;object-fit:contain}
#man-cho .logo{position:fixed;top:3%;left:50%;transform:translateX(-50%);background:#fff;color:#0b3b8f;font:900 clamp(23px,3vw,40px) Nunito,sans-serif;padding:6px 22px;border-radius:999px}
#cho-slogan{position:absolute;left:25%;top:79%;width:48%;min-height:0;margin:0;padding:10px 25px;border-radius:20px;background:#ffd23f;box-shadow:0 7px 0 #e0a800;color:#0b3b8f;font-size:clamp(16px,2.5vw,32px);font-weight:900;transform:rotate(-2deg)}
.cho-tai{position:absolute;left:32%;top:91%;width:36%;height:30px;border:4px solid white;border-radius:999px;background:#1c55b0;box-shadow:0 5px 12px #145c9730;overflow:hidden}
.cho-tai i{background:#2f7bea;height:100%;animation:cho-tai 3s linear forwards}.cho-tai b{position:absolute;inset:0;color:#fff;font-size:15px;line-height:22px;text-shadow:0 1px 3px #0b3b8f}
@media(max-width:700px){
 body:not(.che-do-thay) .thanh-tren{padding:8px;gap:4px}body:not(.che-do-thay) .thanh-tren .logo{font-size:16px;padding:8px}
 body:not(.che-do-thay) #menu-tren{gap:6px}.coin-pill{font-size:17px;padding:7px 10px}body:not(.che-do-thay) #menu-tren>.nut-thoat,body:not(.che-do-thay) #menu-tren>.chuong{width:48px;height:48px;font-size:18px}.the-hs .avatar-nho{width:32px;height:32px;font-size:21px}
 body:not(.che-do-thay) .noi-dung{padding:12px}body.co-thanh-duoi #thanh-duoi{bottom:0;left:0;transform:none;width:100%;max-width:none;padding:6px 4px calc(6px + env(safe-area-inset-bottom));gap:2px;border-radius:24px 24px 0 0}#thanh-duoi b{font-size:12px}#thanh-duoi img{width:40px;height:40px}
 body:not(.che-do-thay) .tieu-de-trang h2{font-size:19px;padding:8px 12px;gap:5px}body:not(.che-do-thay) .tieu-de-trang h2 small{font-size:12px}.tieu-de-trang .ic{width:34px;height:34px}
 .home-map{margin-bottom:90px}.home-hello{max-width:42%;padding:5px 9px;font-size:13px}.home-hello small{font-size:9px}.home-island span{padding:5px 9px;font-size:12px}.home-jar{left:0;bottom:-72px;width:100%;max-width:none;font-size:12px;padding:5px 12px}.home-jar img{width:45px;height:45px}.home-jar span{display:flex;gap:12px;align-items:center}
 .continue-reading .sach-giao{flex-wrap:wrap;gap:12px}.continue-reading .bia-sach{width:72px}.continue-reading .nut{width:100%}
 .rewards-layout{grid-template-columns:1fr;gap:12px}.coin-jar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:12px}.coin-jar>.ic{width:70px;height:70px}.coin-jar .so-to{font-size:26px}.prize-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.prize-grid .nut{padding:8px 10px;font-size:14px}.rewards-tuition{padding:12px;gap:10px}.rewards-tuition>.ic{width:56px;height:56px}.rewards-tuition h3{font-size:18px}
 .cho-stage{width:100vw;height:100svh;background-size:auto 100%;background-position:49% center}.cho-khung{left:5%;top:14%;width:90%;height:64%}.cho-anh{border-radius:24px}#man-cho .logo{top:4%;font-size:26px}#cho-slogan{left:6%;top:78%;width:88%;font-size:20px;padding:12px}.cho-tai{left:15%;top:91%;width:70%}
}
.exam-count{margin:0 0 12px auto;width:fit-content;padding:6px 16px;background:#fff;border-radius:999px;font-weight:900}.exam-controls{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.exam-controls .nut{min-width:130px}
body:not(.che-do-thay) #menu-tren>.nut-thoat,body:not(.che-do-thay) #menu-tren>.chuong{background:white;color:#0b3b8f;box-shadow:0 3px 10px #145c971a}
body:not(.che-do-thay) .o-luyen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.o-luyen>.ic{width:60px;height:60px}.cham-buoc .ic{width:28px;height:28px}
body:not(.che-do-thay) .bai-duoc-giao{display:flex;align-items:start;gap:20px}.bai-duoc-giao>.bia-sach{width:140px;max-width:35%;flex:none;overflow:hidden;border-radius:20px}.homework-content{flex:1;min-width:0}@media(max-width:600px){.bai-duoc-giao>.bia-sach{width:90px}.bai-duoc-giao{gap:12px!important}.bai-duoc-giao h3{font-size:20px}}

/* 0611E muc 16: the tai khoan Ken Do + Piggy Bank tren thanh tren */
.tai-khoan{display:flex;gap:8px;text-decoration:none}
.tai-khoan .tk{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:6px 14px 6px 8px;border-radius:14px;color:#fff;box-shadow:0 3px 0 rgba(0,0,0,.18);min-width:118px}
.tai-khoan .tk-do{background:linear-gradient(135deg,#0b3b8f,#2f7bea)}
.tai-khoan .tk-vi{background:linear-gradient(135deg,#e2558f,#ff8db8)}
.tai-khoan .tk img{grid-row:1/3;width:34px;height:34px}
.tai-khoan .tk small{font-size:12px;font-weight:800;opacity:.9;letter-spacing:.3px;line-height:1}
.tai-khoan .tk b{font-size:18px;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}
@media(max-width:600px){.tai-khoan{gap:5px}.tai-khoan .tk{min-width:0;padding:4px 8px 4px 5px;column-gap:4px;border-radius:12px}.tai-khoan .tk small{display:none}.tai-khoan .tk img{grid-row:auto;width:24px;height:24px}.tai-khoan .tk{grid-template-rows:auto}.tai-khoan .tk b{font-size:14px}}
.tai-khoan .tk .xu{grid-row:1/3;font-style:normal;font-size:28px;line-height:1}@media(max-width:600px){.tai-khoan .tk .xu{grid-row:auto;font-size:20px}}
.goi-y-qua .thanh-qua{height:16px;border-radius:999px;background:#e8eefb;overflow:hidden;margin:8px 0}.goi-y-qua .thanh-qua span{display:block;height:100%;background:linear-gradient(90deg,#ffd23f,#ffb000);border-radius:999px}.goi-y-qua p{margin:4px 0}.goi-y-qua .doi-ngay a{font-weight:800}
body:not(.che-do-thay) #menu-tren>a.tai-khoan{display:flex}
@media(max-width:430px){body:not(.che-do-thay) header,body:not(.che-do-thay) #menu-tren{gap:4px}body:not(.che-do-thay) .logo{font-size:15px;padding:6px 10px}body:not(.che-do-thay) #menu-tren>.nut-thoat,body:not(.che-do-thay) #menu-tren>.chuong{width:38px;height:38px;font-size:16px}.the-hs .avatar-nho{width:30px;height:30px;font-size:18px}.tai-khoan .tk{padding:3px 6px 3px 4px}.tai-khoan .tk b{font-size:13px}}
@media(max-width:600px){body.che-do-thay #menu-tren{flex-wrap:wrap;justify-content:flex-end;row-gap:6px}}
body.co-thanh-duoi{padding-bottom:calc(var(--cao-thanh-duoi,104px) + 24px + env(safe-area-inset-bottom))}@media(max-width:600px){body.co-thanh-duoi{--cao-thanh-duoi:86px}}
@media(max-width:430px){body:not(.che-do-thay) header .logo{font-size:0;padding:6px 8px}body:not(.che-do-thay) header .logo::first-letter{font-size:22px}body:not(.che-do-thay) header .logo span{display:none}body:not(.che-do-thay) #menu-tren{min-width:0;flex-wrap:nowrap}.tai-khoan{min-width:0}}
/* 0611F: two-page reader, with all controls anchored to the book. */
body.dang-doc .noi-dung{width:min(96vw,1400px);max-width:1400px;padding:0;margin:12px auto}body.dang-doc .dau-buoc[hidden],body.dang-doc .thanh-buoc[hidden],.tiep-doc[hidden]{display:none!important}
body.dang-doc .doc-0611e{position:relative;width:100%;max-width:none;box-sizing:border-box;margin:0;padding:56px 12px 92px;border:14px solid #0755bc;border-radius:28px;background:#0866d2;box-shadow:0 8px 0 #053b8b,0 14px 28px #003c6555}
body.dang-doc .doc-0611e .trang-giay{display:grid;grid-template-columns:1fr 1fr;gap:0;background:white;border-radius:20px;height:100%;overflow:hidden}
body.dang-doc .doc-0611e .trang-giay .bia-trang{position:static;height:100%;max-height:none;min-height:0;aspect-ratio:auto!important;padding:4px;box-sizing:border-box;background:white}
body.dang-doc .doc-0611e .trang-giay .tranh-trang{width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:18px}
body.dang-doc .doc-0611e .chu-wrap{display:flex;flex-direction:column;justify-content:center;border-radius:0;margin:0;padding:24px;min-width:0;min-height:0;box-shadow:inset 12px 0 18px -14px #555}
body.dang-doc .doc-0611e .chu-wrap .chu{font-family:Nunito,sans-serif;font-weight:800;font-size:clamp(26px,2.6vw,44px)!important;line-height:1.5;height:auto;min-height:0;flex:1;align-content:center;padding:0;overflow:auto;text-align:left!important}.doc-0611e .chu .sang{background:#fff0a1;border-radius:8px}.so-trang-doc{color:#0b3b8f;font-weight:800;margin-top:12px}
body.dang-doc .doc-0611e.trang-bia .trang-giay{grid-template-columns:1fr}body.dang-doc .doc-0611e.trang-bia .chu-wrap{display:none}
body.dang-doc .doc-0611e>.nut-loa:first-child{position:absolute;top:0;left:4px}.doc-0611e .doc-loa{position:absolute;top:0;right:4px;background:linear-gradient(#FFE066,#FFC81F)}
body.dang-doc .doc-0611e .cham-trang{position:absolute;top:16px;left:25%;width:40%;margin:0;justify-content:center}
body.dang-doc .doc-0611e .lat-trang{position:absolute;bottom:6px;left:0;width:100%;height:72px;display:flex;justify-content:center;gap:8px;pointer-events:none}body.dang-doc .doc-0611e .lat-trang>*{pointer-events:auto}
body.dang-doc .doc-0611e [data-di]{position:absolute;bottom:0;width:72px;height:72px;background:linear-gradient(#FFE066,#FFC81F);border:2px solid #ffe066;border-bottom:5px solid #D99A00;box-shadow:0 3px #bb8800}body.dang-doc .doc-0611e [data-di='-1']{left:0}body.dang-doc .doc-0611e [data-di='1']{right:0}.doc-0611e [data-di]:disabled{opacity:.5}
body.dang-doc .doc-0611e .chon-luot{position:absolute;right:66px;top:4px;width:auto;margin:0;z-index:4}.doc-0611e .chon-luot summary{background:white;border-radius:999px;padding:8px;font-size:14px}.doc-0611e .chon-luot[open]{background:white;border-radius:18px;padding:8px;max-width:260px}.doc-0611e .chon-luot .ui-ic{width:20px;height:20px}
body.dang-doc .doc-0611e .mic{background:linear-gradient(#FF6B6B,#E5484D);width:64px;height:64px;border-bottom:5px solid #B3261E}.doc-0611e .tiep-doc{position:absolute;bottom:8px;left:90px;right:90px;z-index:2;margin:0!important}.doc-0611e:has(.mic) .tiep-doc{bottom:86px}.doc-0611e .tiep-doc .nut{font-size:16px;padding:12px}.doc-0611e .doc-play{width:56px;height:56px}
@media(min-width:900px){body.dang-doc #thanh-duoi,body.dang-doc .chan-datova{display:none!important}body.dang-doc .doc-0611e{height:calc(100dvh - 110px);min-height:470px}}
@media(max-width:899px){body.dang-doc .doc-0611e{border-width:8px;padding:58px 4px 80px}body.dang-doc .doc-0611e .trang-giay{display:flex;flex-direction:column;height:auto}body.dang-doc .doc-0611e .trang-giay .bia-trang{height:40dvh;max-height:45dvh;padding:8px}body.dang-doc .doc-0611e .chu-wrap{padding:14px;box-shadow:none}body.dang-doc .doc-0611e .chu-wrap .chu{font-size:26px!important;overflow:visible}body.dang-doc .doc-0611e [data-di]{width:56px;height:56px}.doc-0611e .tiep-doc{left:58px;right:58px}.doc-0611e .tiep-doc .nut{padding:8px;font-size:12px}body.dang-doc .doc-0611e .cham-trang{left:60px;width:calc(100% - 200px);top:20px}.doc-0611e .doc-play{width:48px;height:48px}body.dang-doc .doc-0611e .mic{width:56px;height:56px}.doc-0611e .chon-luot summary{font-size:12px;padding:6px}.doc-0611e .chon-luot .ui-ic{width:16px;height:16px}}
body.dang-doc .doc-0611e .trang-giay{width:100%;max-width:none}.chon-luot .chon-so button{width:auto;height:auto;min-width:80px;padding:8px;font-size:14px}
/* icon anh trong nut */
.ui-ic{vertical-align:middle;object-fit:contain;pointer-events:none;flex:none}
.nut .ui-ic,button.nut .ui-ic{width:24px;height:24px;margin:-4px 6px -2px 0}
.nut-loa .ui-ic,.mic .ui-ic,.mic-nho .ui-ic,.loa-to .ui-ic,.chuong .ui-ic,.nut-thoat .ui-ic,.raz-nut-tron .ui-ic{width:60%;height:60%;margin:0}
.nut-thoat .ui-ic,.chuong .ui-ic,#menu-tren .ui-ic{width:28px!important;height:28px!important;min-width:28px}@media(max-width:430px){.nut-thoat .ui-ic,.chuong .ui-ic,#menu-tren .ui-ic{width:24px!important;height:24px!important;min-width:24px}}
/* 07/11 bao cao UI: an menu duoi khi dang hoc trong tram; chu menu + nut tren DT de doc/bam hon */
body.trong-tram #thanh-duoi{display:none!important}
body.trong-tram.co-thanh-duoi{padding-bottom:24px!important}
@media(max-width:430px){#thanh-duoi b{font-size:12px!important;line-height:1.1}body:not(.che-do-thay) #menu-tren>.nut-thoat,body:not(.che-do-thay) #menu-tren>.chuong{width:44px!important;height:44px!important}}
/* 07/11: thanh tren dinh co nen mo de noi dung cuon khong de len logo/the tai khoan */
body:not(.che-do-thay) .thanh-tren{background:rgba(232,245,255,.9)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:0 0 22px 22px}
