/* Nhận diện MC: bảng trắng, xanh ngọc; sân chơi giữ nền tối để thấy rõ hoa quả. */
:root{--nc-xanh:#00ab8a;--nc-xanh-dam:#00755f;--nc-chu:#183d35;--nc-phu:#607c72;--nc-vien:#d6e7dd;--nc-nen:#f7fbf8;--nc-bong:0 24px 80px #001b2240}
html,body{background:#082b2d;font-family:"Segoe UI",system-ui,Roboto,Arial,sans-serif}
button,input,select{font-family:inherit}
button{touch-action:manipulation;transition:background .15s,border-color .15s,transform .15s}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #00ab8a;outline-offset:4px}
button:hover{filter:brightness(1.035)}
button:active{transform:scale(.985)}
.the{background:#fffffff5;border:1px solid #e1eee6;border-radius:26px;color:var(--nc-chu);box-shadow:var(--nc-bong)}
/* Sảnh ghép TV với điện thoại. */
#sanh{width:min(1110px,92vw);padding:clamp(24px,4.5vh,50px) clamp(24px,3.5vw,64px);gap:clamp(24px,4vw,64px);max-height:calc(100dvh - 110px);overflow:auto}
#sanh h1{font-size:clamp(25px,3.55vh,43px);color:var(--nc-xanh-dam);letter-spacing:-.8px;margin-bottom:1.8vh;line-height:1.2}
#sanh .trai>div[style]{color:var(--nc-phu)!important;font-size:clamp(13px,1.8vh,20px)!important;text-transform:uppercase;letter-spacing:1.5px;font-weight:700}
.maTo{color:#153c32;font-size:clamp(38px,7.7vh,90px);letter-spacing:.16em;line-height:1.1;margin:8px 0}
.nhoMo{font-size:clamp(12px,1.6vh,17px);color:#6a8278;margin-top:9px;word-break:break-word;line-height:1.5}
#sanh ol{font-size:clamp(14px,2.08vh,23px);color:#56766a;line-height:1.55;margin-top:2vh;padding-left:4px}
#sanh ol li+li{margin-top:.55vh}
#sanh ol b{color:#136b52;font-weight:750}
#sanh .oQR{flex:0 0 auto;position:relative;border:1px solid #dcebe2;border-radius:22px;padding:clamp(12px,1.5vw,22px);background:#fff;box-shadow:0 8px 28px #123c3110}
#sanh .oQR:after{content:"QUÉT QR ĐỂ VÀO CHƠI";position:absolute;left:0;right:0;top:calc(100% + 15px);font-size:clamp(10px,1.45vh,16px);font-weight:800;letter-spacing:1px;text-align:center;color:#607c72;line-height:1.4}
#qrTo{width:min(30vh,310px);height:min(30vh,310px)}
#btKieuSanh,#btChuot,#btPC{font-size:clamp(13px,1.95vh,21px)!important;padding:12px 16px!important;border-radius:12px!important;line-height:1.4;min-height:46px;margin:16px 8px 0 0!important;box-shadow:none;border:1px solid #d2e5db!important}
#btKieuSanh{background:#00ab8a!important;color:#fff!important;border-color:#00ab8a!important}
#btChuot,#btPC{background:#eff6f2!important;color:#245a48!important}
#goc{padding:12px 15px;gap:15px;right:22px;bottom:22px;border-radius:18px;background:#fffffff2}
#goc .chu{color:#5d7a6c;font-size:clamp(11px,1.65vh,17px)}
#goc .maNho{color:#173e32;letter-spacing:.12em;font-size:clamp(24px,3.5vh,37px)}
#goc .oQR{padding:2px}
#qrNho{width:clamp(70px,11vh,116px);height:clamp(70px,11vh,116px)}
/* Thanh thông tin trên sân chơi: các con số dễ đọc từ xa. */
#hud{padding:18px 265px 32px 24px;gap:10px 22px;background:linear-gradient(180deg,#06282ded,#06282d80 70%,transparent);font-size:clamp(15px,2.15vh,25px);min-height:90px;align-items:flex-start}
#hud .ng{padding:8px 12px;background:#183e4199;border:1px solid #6bbfa929;border-radius:12px;min-height:42px;gap:.45em}
#hud .ng i{width:.55em;height:.55em;box-shadow:0 0 10px #ffffff22}
#hud .ng b{font-size:1.35em;line-height:1;font-variant-numeric:tabular-nums}
#hud .cheDo{color:#b1e5d1!important;font-size:clamp(12px,1.85vh,20px)!important;line-height:1.6;padding:6px 0}
#hud .dongHo{font-variant-numeric:tabular-nums;color:#ffdc8a;font-size:clamp(25px,4vh,48px);letter-spacing:-1px;line-height:1.3;padding:2px 10px}
#hanhTrinh{position:fixed;left:24px;top:104px;z-index:16;width:min(440px,42vw);padding:13px 17px;background:#0b3336e8;border:1px solid #70c4ad40;border-radius:15px;color:#e8fff5;box-shadow:0 8px 26px #00181c20;font-size:clamp(13px,1.7vh,20px);line-height:1.5;pointer-events:none}
#hanhTrinh:empty{display:none}
#hanhTrinh b,#hanhTrinh strong{color:#8df5c8}
#hanhTrinh .tienDo{height:5px;margin-top:8px;background:#7ec5b323;border-radius:6px;overflow:hidden}
#hanhTrinh .tienDo i{display:block;height:100%;background:#00ab8a;border-radius:6px}
#hanhTrinh .sot{color:#ffe096}
/* Chế độ chơi: thẻ có lựa chọn rõ ràng, không thay luật chơi. */
#hopKieu{background:#fbfdfa;width:min(1100px,94vw);padding:clamp(22px,3.6vh,42px) clamp(20px,2.6vw,48px);max-height:90dvh;border-radius:26px;scrollbar-color:#b2d4c4 transparent}
#hopKieu h2{color:#146750;font-size:clamp(24px,4vh,46px);letter-spacing:-.6px;margin-bottom:8px}
#hopKieu .goiy{color:#658375;font-size:clamp(12px,1.75vh,19px);line-height:1.5;margin:0 auto 22px;max-width:800px}
#hopKieu .luoi{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#hopKieu .the1{display:flex;flex-direction:column;align-items:center;background:#fff;color:var(--nc-chu);border:2px solid #dfebe3;border-radius:18px;padding:20px 14px;min-height:190px;transition:border-color .15s,background .15s,transform .15s;position:relative}
#hopKieu .the1:hover{border-color:#76c9ac;background:#f1faf5;transform:translateY(-3px)}
#hopKieu .the1.chon{border-color:#00ab8a;background:#e9f8f0;box-shadow:0 0 0 3px #00ab8a13}
#hopKieu .the1.chon:after{content:"✓";position:absolute;right:10px;top:10px;color:#fff;background:#00ab8a;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;font-size:14px;font-weight:900}
#hopKieu .the1 .bieu{font-size:clamp(32px,5.6vh,62px);margin:8px 0 10px}
#hopKieu .the1 b{color:#214d3f;font-size:clamp(17px,2.35vh,26px);line-height:1.3;margin-bottom:9px}
#hopKieu .the1 span{color:#657f73;font-size:clamp(12px,1.75vh,18px);line-height:1.5;flex:1}
#hopKieu .the1 em{font-size:clamp(11px,1.6vh,17px);color:#007b61;margin-top:16px}
#hopKieu .nhac{color:#a3501f;font-size:clamp(13px,1.85vh,20px);line-height:1.5;margin-top:16px}
#hopKieu .hang{gap:12px;margin-top:14px}
#hopKieu .hang button{background:#eaf3ed;color:#365e4c;border-radius:12px;padding:14px 24px;min-height:46px;font-size:clamp(15px,2.05vh,23px)}
#hopKieu .hang .cam{background:#00ab8a;color:#fff}
/* Kết quả, thành tích và phần thưởng mới. */
#bao{width:min(800px,92vw);min-width:0;max-height:89dvh;overflow:auto;padding:32px clamp(22px,3vw,48px);border-radius:26px}
#bao h2{color:#087558;font-size:clamp(25px,4vh,46px);margin-bottom:18px;letter-spacing:-.6px}
#bao .so{color:#fff4bc;text-shadow:0 6px 35px #003b3b;font-size:clamp(80px,22vh,230px)}
#bao .phu{color:#607c70;font-size:clamp(13px,1.8vh,20px);line-height:1.6;margin-top:18px}
#bao td{padding:10px 18px;border-bottom:1px solid #e4eee7;font-size:clamp(17px,2.65vh,28px)}
#bao td.s{color:#007e64;font-variant-numeric:tabular-nums}
#bao.trong{overflow:visible;background:none;box-shadow:none;border:none;pointer-events:none}
#bao.trong h2{color:#dffff1;text-shadow:0 3px 15px #032c2b}
#bao.trong .phu{color:#bfe0d1}
.tongKet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.chiSo{padding:16px 12px;background:#edf7f0;border:1px solid #dcecdf;border-radius:14px;color:#617e70;font-size:clamp(12px,1.7vh,18px);line-height:1.5}
.chiSo b,.chiSo strong{display:block;color:#0b7357;font-size:clamp(24px,4.4vh,47px);line-height:1.25;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.nutKetQua{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.nutKetQua button,#bao button{min-height:46px;padding:13px 22px;border-radius:12px;border:1px solid #d4e5d9;background:#eaf4ee;color:#2a634d;font-size:clamp(14px,1.95vh,21px);font-weight:800;cursor:pointer}
.nutKetQua button:first-child{background:#00ab8a;color:#fff;border-color:#00ab8a}
#btOnl,#btThanhTich{position:fixed;right:24px;left:auto;z-index:26;min-height:42px;padding:10px 15px;border-radius:12px;border:1px solid #70bda44d;background:#103b3edb;color:#d5f9e8;font-size:clamp(13px,1.75vh,20px);font-weight:700;cursor:pointer;box-shadow:0 5px 20px #001d2418}
#btOnl{top:20px}
#btOnl.bat{background:#007b67;color:#fff;border-color:#52d7ae}
#btThanhTich{top:72px}
#hopThanhTich{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(800px,92vw);max-height:88dvh;overflow:auto;padding:30px clamp(20px,3vw,45px);z-index:46;background:#fcfefb;color:var(--nc-chu);border:1px solid #dcebe1;border-radius:26px;box-shadow:var(--nc-bong)}
#hopThanhTich.an{display:none}
#hopThanhTich h2,#hopThanhTich h3{color:#08765c;margin:0 0 15px;line-height:1.35;font-size:clamp(24px,3.5vh,40px)}
#hopThanhTich p{color:#617d70;line-height:1.6}
#hopThanhTich button{min-height:42px;padding:11px 18px;border:1px solid #d6e8dc;background:#eaf5ed;border-radius:11px;color:#27634d;font-family:inherit;font-size:clamp(14px,1.9vh,20px);font-weight:700;cursor:pointer}
#hopThanhTich .luoi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
#hopThanhTich .moc,#hopThanhTich .huyHieu,#hopThanhTich .thanhTich{border:1px solid #dceadf;border-radius:14px;padding:16px;background:#f2f8f3;line-height:1.5}
#hopThanhTich .dat{border-color:#71c6a5;background:#e8f8ed;color:#07684b}
#hopThanhTich .chua{opacity:.55}
#hopThanhTich table{border-collapse:collapse;width:100%;font-size:clamp(14px,2vh,21px)}
#hopThanhTich td,#hopThanhTich th{padding:10px;text-align:left;border-bottom:1px solid #dfebe2}
#nangCapToast{position:fixed;left:50%;top:17%;transform:translateX(-50%);z-index:55;width:max-content;max-width:calc(100vw - 36px);padding:14px 22px;border:1px solid #9ae2c0;border-radius:14px;background:#effff3;color:#08634b;box-shadow:0 10px 30px #001b2240;text-align:center;font-weight:800;font-size:clamp(15px,2.1vh,24px);pointer-events:none}
#nangCapToast.an,#nangCapToast:empty{display:none}
/* Chơi online và thanh điều khiển chuột/camera. */
#hopOnl{top:74px;right:24px;max-height:calc(100dvh - 98px);padding:24px;width:min(460px,92vw);font-size:clamp(14px,1.9vh,20px);border-radius:22px;scrollbar-color:#a9cebb transparent}
#hopOnl h3{color:#09795d;font-size:1.22em;margin-bottom:12px;line-height:1.35}
#hopOnl .ghi{color:#678171;font-size:.85em;line-height:1.6;margin:8px 0}
#hopOnl input,#hopOnl select{color:#284e3d;background:#f3f8f3;border:1px solid #d0e4d5;border-radius:10px;padding:12px;margin:7px 0 12px;min-height:44px}
#hopOnl input.ma{font-size:1.4em;letter-spacing:.18em;color:#006e52}
#hopOnl button{min-height:45px;background:#edf5ed;color:#285d44;border-radius:11px;padding:12px;font-size:.95em;margin:5px 0}
#hopOnl button.chinh,#hopOnl button.xanh{background:#00ab8a;color:#fff}
#hopOnl .maPhong{color:#00785a;font-size:2.4em;letter-spacing:.14em;padding:7px 0}
#hopOnl .nha{border-bottom:1px solid #dae9de;padding:9px 2px;color:#2d5742}
#bangChuot{width:max-content;max-width:calc(100vw - 40px);gap:8px;flex-wrap:wrap;justify-content:center;bottom:16px;padding:10px 12px;background:#fbfdf9f5;border:1px solid #dfede3;color:#284d3c;border-radius:18px;box-shadow:0 8px 35px #001b2238;font-size:clamp(13px,1.8vh,19px)}
#bangChuot button,#bangChuot select,#bcCam{background:#eaf3ec!important;color:#2b5d46!important;border:1px solid #dae6dc!important;padding:10px 12px!important;border-radius:10px!important;min-height:40px;font-size:inherit;line-height:1.25}
#bangChuot .xanh,#bangChuot .cam{background:#00ab8a!important;color:#fff!important;border-color:#00ab8a!important}
#bangChuot .do{background:#ffeded!important;color:#ae373a!important;border-color:#f1c9c9!important}
#bangChuot label{color:#5d796b;gap:8px;font-size:.87em}
#bangChuot input[type=range]{width:96px;accent-color:#00ab8a}
#bangChuot label b{min-width:32px;color:#166748;font-variant-numeric:tabular-nums}
#bcPC{gap:7px;flex-wrap:wrap}
#bcThoat{font-size:18px!important;min-width:40px}
#btKieu,#btXemCam{border:1px solid #76b59d48;background:#0c383ce0;color:#c2f1da;border-radius:11px;padding:10px 14px;min-height:40px;font-size:clamp(12px,1.7vh,19px);left:24px}
#btKieu{bottom:118px}#btXemCam{bottom:69px}#btXemCam.bat{background:#007c65;color:#fff}
#tt,#doMuot{color:#8eb7a9;font-size:clamp(11px,1.5vh,16px);left:24px;line-height:1.5;max-width:55vw}
#tt{bottom:17px}#doMuot{bottom:40px}
#oCamTV{left:24px;bottom:174px;max-width:calc(100vw - 48px);flex-wrap:wrap}
#oCamTV .khung{border-color:#41c9a2;border-radius:13px;box-shadow:0 8px 24px #00192055}
#oCamTV .ten{background:#083e38;color:#d9ffec;padding:5px 8px}
#nutAm{background:#e9faf1;color:#117655;border:1px solid #98d9bc;border-radius:40px;font-size:clamp(13px,1.85vh,20px);padding:12px 22px;box-shadow:0 6px 22px #001b2230;cursor:pointer}
body.chuot #btKieu{display:none}
body.chuot #btXemCam{bottom:110px}
body.chuot #oCamTV{bottom:163px}
body.chuot #doMuot{bottom:89px}
body.chuot #tt{bottom:70px}
body.chuot #nutAm{bottom:160px}
/* Thích ứng màn hình TV 720p và điện thoại nhỏ. */
@media(min-width:1600px){#sanh{width:min(1400px,90vw)}#hud{padding-right:330px}#hanhTrinh{top:118px;width:510px}#btOnl,#btThanhTich{padding:13px 19px}#btThanhTich{top:82px}#hopKieu{width:min(1400px,94vw)}#hopKieu .the1{min-height:240px;padding:28px 18px}#bao{width:1000px;padding:44px 54px}#bangChuot button,#bangChuot select,#bcCam{padding:13px 17px!important}#bangChuot{padding:13px 16px}#hopThanhTich{width:1000px}}
@media(max-width:1050px){#hopKieu .luoi{grid-template-columns:repeat(3,minmax(0,1fr))}#hopKieu .the1{min-height:180px;padding:15px 12px}#hopKieu .the1 .bieu{margin:0 0 7px}#hopKieu .the1 em{margin-top:10px}#sanh{gap:30px;padding:28px}#btKieuSanh,#btChuot,#btPC{margin-top:10px!important;padding:10px 12px!important}#bcCam{max-width:180px!important}#bangChuot{gap:6px}#bangChuot button,#bangChuot select,#bcCam{padding:9px 10px!important}#hud{padding-right:220px;gap:8px 12px}#hanhTrinh{top:110px}}
@media(max-width:700px){
 #sanh{width:calc(100vw - 28px);top:50%;flex-direction:column;align-items:stretch;gap:25px;padding:22px;max-height:calc(100dvh - 140px);border-radius:22px}
 #sanh h1{font-size:25px;letter-spacing:-.5px;margin-bottom:16px}#sanh ol{font-size:14px;line-height:1.5;margin-top:16px}#sanh .trai>div[style]{font-size:12px!important}.maTo{font-size:46px}.nhoMo{font-size:12px}
 #sanh .oQR{align-self:center;margin-bottom:25px;padding:13px;border-radius:15px}#qrTo{width:150px;height:150px}#sanh .oQR:after{font-size:10px;top:calc(100% + 10px)}
 #btKieuSanh,#btChuot,#btPC{display:block;width:100%;font-size:13px!important;margin:10px 0 0!important;min-height:44px}
 #hud{padding:14px 12px 25px;gap:7px;min-height:84px;font-size:13px}#hud .ng{padding:7px 9px;min-height:35px;border-radius:10px}#hud .ng b{font-size:1.3em}#hud .cheDo{font-size:11px!important;margin-left:0;flex-basis:100%;padding-top:0}#hud .dongHo{font-size:24px;padding:2px 6px}
 #btOnl,#btThanhTich{top:91px;right:12px;min-height:36px;font-size:11px;padding:8px 11px;border-radius:10px}#btThanhTich{left:12px;right:auto}
 #hanhTrinh{left:12px;top:139px;width:calc(100vw - 24px);max-width:none;padding:10px 13px;font-size:12px;border-radius:12px}
 #hopKieu{width:calc(100vw - 24px);padding:22px 15px;max-height:92dvh;border-radius:21px}#hopKieu h2{font-size:25px}#hopKieu .goiy{font-size:11px;margin-bottom:15px}#hopKieu .luoi{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#hopKieu .the1{min-height:185px;padding:15px 10px;border-radius:14px}#hopKieu .the1 .bieu{font-size:35px}#hopKieu .the1 b{font-size:16px;margin:5px 0 8px}#hopKieu .the1 span{font-size:11px}#hopKieu .the1 em{font-size:10px;margin-top:12px}#hopKieu .nhac{font-size:12px;margin-top:13px}#hopKieu .hang{gap:8px;margin-top:12px}#hopKieu .hang button{font-size:13px;padding:12px 14px}
 #bao{width:calc(100vw - 24px);padding:25px 15px;max-height:88dvh;border-radius:21px}#bao h2{font-size:25px}#bao td{font-size:16px;padding:9px 8px}#bao .phu{font-size:12px}.tongKet{gap:7px;margin:15px 0}.chiSo{padding:12px 5px;font-size:10px;border-radius:11px}.chiSo b,.chiSo strong{font-size:27px}.nutKetQua{gap:8px;margin-top:18px}.nutKetQua button,#bao button{font-size:12px;padding:11px 13px;min-height:42px}
 #hopThanhTich{width:calc(100vw - 24px);padding:24px 17px;border-radius:21px}#hopThanhTich h2,#hopThanhTich h3{font-size:24px}#hopThanhTich .luoi{gap:9px}#hopThanhTich .moc,#hopThanhTich .huyHieu,#hopThanhTich .thanhTich{padding:12px;font-size:12px}#hopThanhTich button{font-size:13px}
 #hopOnl{top:139px;right:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 155px);padding:22px 18px;font-size:14px;border-radius:20px}#hopOnl .maPhong{font-size:2.2em}
 #bangChuot{bottom:12px;width:calc(100vw - 24px);max-width:none;padding:10px 9px;gap:7px;font-size:11px;border-radius:15px}#bangChuot button,#bangChuot select,#bcCam{padding:8px 9px!important;min-height:36px;font-size:11px}#bangChuot label{font-size:11px}#bangChuot input[type=range]{width:78px}#bcPC{gap:6px;justify-content:center}#bcCam{max-width:130px!important}#bcThoat{min-width:32px;font-size:14px!important}
 #goc{right:12px;bottom:12px;padding:10px;gap:10px}#qrNho{width:58px;height:58px}#goc .maNho{font-size:24px}#goc .chu{font-size:10px}
 #btKieu,#btXemCam{left:12px;font-size:11px;padding:8px 10px;min-height:34px}#btKieu{bottom:111px}#btXemCam{bottom:69px}#doMuot,#tt{left:12px;font-size:10px;max-width:60vw}#doMuot{bottom:43px}#tt{bottom:20px}#oCamTV{left:12px;bottom:155px}#oCamTV img{width:140px}
 #nutAm{width:calc(100vw - 30px);text-align:center;font-size:12px;bottom:180px;padding:11px 14px}body.chuot #nutAm{bottom:194px}body.chuot #btXemCam{bottom:155px}body.chuot #oCamTV{bottom:198px}body.chuot #doMuot{bottom:132px}body.chuot #tt{bottom:115px}
 #nangCapToast{top:26%;font-size:13px;padding:12px 17px;width:calc(100vw - 36px)}
}
@media(max-height:560px) and (min-width:701px){#sanh{padding:20px 28px;max-height:calc(100dvh - 60px)}#sanh ol{font-size:13px;margin-top:10px}.maTo{font-size:38px}#sanh h1{font-size:23px}#qrTo{width:145px;height:145px}#sanh .oQR:after{font-size:9px}#btKieuSanh,#btChuot,#btPC{padding:8px 10px!important;font-size:12px!important;min-height:34px}#hopKieu .the1{min-height:160px}#hopKieu .the1 .bieu{font-size:29px}#hopKieu .the1 b{font-size:14px}#hopKieu .the1 span{font-size:11px}#hopKieu .the1 em{font-size:10px}#hanhTrinh{top:85px;font-size:12px}#hud{min-height:70px}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}button:active,#hopKieu .the1:hover{transform:none}#nangCapToast{animation:none!important}}
/* Bố cục riêng cho thử thách sáu chế độ và hồ sơ thành tích. */
#hanhTrinh.an{display:none}
#hanhTrinh .nhanThuThach{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:1.05em;margin-bottom:10px}
#hanhTrinh .nhanThuThach>span{color:#bedfd2;font-size:.85em;white-space:nowrap}
#hanhTrinh .mucTieu{display:grid;gap:8px}
#hanhTrinh .muc{display:grid;grid-template-columns:1fr auto;gap:0 12px;font-size:.85em;color:#b7d8cc}
#hanhTrinh .muc b{color:#edfff5;font-size:.9em;font-variant-numeric:tabular-nums}
#hanhTrinh .muc.dat{color:#9affce}
#hanhTrinh .muc .tienDo{grid-column:1/-1;margin-top:4px;height:4px}
#hanhTrinh .bungNo{margin-top:13px;padding-top:10px;border-top:1px solid #72b6a62e;font-size:.84em;color:#c5e7d8}
#hanhTrinh .bungNo.bat{color:#ffdf8a}
#hanhTrinh .bungNo.bat .tienDo i{background:#ffcc68}
#bao .tongKet{display:block;margin:20px 0 0;padding-top:18px;border-top:1px solid #dcece1}
#bao .huyHieu{display:inline-block;padding:7px 16px;border-radius:40px;background:#e4f7ec;color:#08765a;font-size:clamp(17px,2.5vh,27px);font-weight:800;line-height:1.5}
#bao .saoKetQua{color:#d5a334;font-size:clamp(26px,4vh,44px);letter-spacing:7px;margin:12px 0}
#bao .chiSo,#hopThanhTich .chiSo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0;margin:16px 0;background:none;border:none;border-radius:0}
.chiSo>div{padding:15px 8px;text-align:center;border:1px solid #dcebe1;border-radius:13px;background:#eff7f0;line-height:1.5}
.chiSo>div span{font-size:clamp(11px,1.55vh,17px);color:#678070}
#bao .thanhTuuMoi{color:#26784e;background:#edf9ec;border:1px solid #ceebcc;border-radius:12px;padding:12px;font-size:clamp(13px,1.85vh,20px);line-height:1.6}
#hopThanhTich .hangTieuDe{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
#hopThanhTich .hangTieuDe h2{margin-bottom:8px}
#hopThanhTich .hangTieuDe button{min-width:40px;padding:8px;flex:0 0 auto}
#hopThanhTich .goiy{margin-top:0;font-size:clamp(13px,1.8vh,20px)}
#hopThanhTich .luoiThanhTuu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 26px}
#hopThanhTich .huyHieuThe{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid #e0e9e1;background:#f3f6f0;color:#7a8b7c;border-radius:15px}
#hopThanhTich .huyHieuThe .icon{font-size:30px;flex:0 0 36px;text-align:center;filter:grayscale(1);opacity:.65}
#hopThanhTich .huyHieuThe b{font-size:clamp(14px,2vh,21px)}
#hopThanhTich .huyHieuThe p{font-size:clamp(12px,1.6vh,17px);margin:5px 0 0;line-height:1.5;color:#809080}
#hopThanhTich .huyHieuThe.dat{border-color:#a7dabc;background:#ebf8ec;color:#147145}
#hopThanhTich .huyHieuThe.dat .icon{filter:none;opacity:1}
#hopThanhTich .huyHieuThe.dat p{color:#5b8369}
#hopThanhTich h3{font-size:clamp(18px,2.65vh,29px)}
#hopThanhTich .kyLucMoi>div{display:flex;justify-content:space-between;gap:15px;padding:12px 3px;border-bottom:1px solid #e0ebe1;font-size:clamp(13px,1.85vh,20px);line-height:1.5}
#hopThanhTich .kyLucMoi b{color:#087657;text-align:right}
@media(max-width:700px){#bao .chiSo,#hopThanhTich .chiSo{gap:6px;margin:14px 0}.chiSo>div{padding:12px 4px;border-radius:10px}.chiSo>div span{font-size:9px}#bao .huyHieu{font-size:18px}#bao .saoKetQua{font-size:30px}#bao .thanhTuuMoi{font-size:12px;padding:10px}#hopThanhTich .luoiThanhTuu{gap:8px;margin:18px 0}#hopThanhTich .huyHieuThe{padding:12px 10px;gap:8px;align-items:flex-start;border-radius:12px}#hopThanhTich .huyHieuThe .icon{font-size:23px;flex-basis:25px}#hopThanhTich .huyHieuThe b{font-size:12px}#hopThanhTich .huyHieuThe p{font-size:10px}#hopThanhTich .kyLucMoi>div{font-size:12px;padding:10px 2px}#hopThanhTich h3{font-size:19px}}
#hopKieu .nhac:empty{display:none}
#hopKieu .the1{padding-top:16px;padding-bottom:16px}
/* Giữ mục tiêu gọn để dành phần lớn màn hình cho nhát chém. */
body:is([data-trang-thai="dem"],[data-trang-thai="van"],[data-trang-thai="luyen"]) #btOnl,
body:is([data-trang-thai="dem"],[data-trang-thai="van"],[data-trang-thai="luyen"]) #btThanhTich{display:none}
#hanhTrinh{top:86px;width:min(620px,56vw);padding:10px 14px;font-size:13px;border-radius:13px}
#hanhTrinh .nhanThuThach{font-size:13px;line-height:1.25;margin-bottom:7px}
#hanhTrinh .nhanThuThach>span{font-size:11px}
#hanhTrinh .mucTieu{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#hanhTrinh .muc{font-size:12px;gap:0 6px;line-height:1.3}
#hanhTrinh .muc b{font-size:11px;align-self:center}
#hanhTrinh .muc .tienDo{margin-top:5px;height:4px}
#hanhTrinh .bungNo{display:flex;align-items:center;gap:12px;margin-top:9px;padding-top:0;border-top:none;font-size:11px;line-height:1.4}
#hanhTrinh .bungNo>span{white-space:nowrap}
#hanhTrinh .bungNo>.tienDo{flex:1;margin-top:0;height:4px}
#nutAm{width:max-content;max-width:calc(100vw - 32px);font-size:12px;padding:9px 15px;bottom:90px}
body.chuot #nutAm{bottom:96px}
#hopThanhTich .huyHieuThe{color:#586c5b}#hopThanhTich .huyHieuThe p{color:#687c68}
@media(min-width:1600px){#hanhTrinh{top:96px;width:720px;font-size:16px;padding:12px 18px}#hanhTrinh .nhanThuThach{font-size:16px}#hanhTrinh .muc{font-size:14px}#hanhTrinh .muc b{font-size:13px}#hanhTrinh .bungNo{font-size:13px}#nutAm{font-size:15px}body.chuot #nutAm{bottom:108px}}
@media(max-width:700px){#hanhTrinh{top:82px;left:12px;width:calc(100vw - 24px);padding:10px 12px}#hanhTrinh .nhanThuThach{font-size:12px;margin-bottom:7px}#hanhTrinh .mucTieu{gap:9px}#hanhTrinh .muc{font-size:10px;gap:0 4px}#hanhTrinh .muc b{font-size:10px}#hanhTrinh .bungNo{font-size:10px;margin-top:8px}#nutAm{width:max-content;max-width:calc(100vw - 30px);font-size:11px;padding:9px 13px;bottom:145px}body.chuot #nutAm{bottom:143px}}
/* Kết quả có sẵn các nút chơi tiếp; dành trọn màn hình cho bảng này. */
body[data-trang-thai="ketqua"] :is(#btOnl,#btThanhTich,#bangChuot,#btXemCam,#oCamTV,#nutAm){display:none}
body[data-trang-thai="ketqua"] #bao{background:#fbfdfb}
body:is([data-trang-thai="dem"],[data-trang-thai="van"],[data-trang-thai="luyen"]) #hud{padding-right:24px}
#hopThanhTich .hangTieuDe{position:sticky;top:0;background:#fcfefb;z-index:2;padding-bottom:8px}
@media(max-width:700px){body.chuot #tt,body.chuot #doMuot{display:none}body.chuot #btXemCam{bottom:236px}body.chuot #oCamTV{bottom:279px}body.chuot:not([data-trang-thai="dem"]):not([data-trang-thai="van"]):not([data-trang-thai="luyen"]) #nutAm{bottom:188px}body.chuot:is([data-trang-thai="dem"],[data-trang-thai="van"],[data-trang-thai="luyen"]) #btXemCam{bottom:200px}body.chuot:is([data-trang-thai="dem"],[data-trang-thai="van"],[data-trang-thai="luyen"]) #oCamTV{bottom:243px}#hopKieu .hang{position:sticky;bottom:-1px;background:#fbfdfa;padding-top:10px;z-index:2;border-radius:12px}}
#bao td:nth-child(2){color:#15674d!important}
#bao td:last-child:not(.s){color:#647f71!important}
#hopOnl .nha span[style]{color:#617b6b!important}

/* === MAN HINH THAP (TV Android thuong la 960x540) — them 03/10/2026 ===
   Khong de nut noi de len the sanh; bang chon che do, bang ket qua, bang thanh tich hien tron ven, khong phai cuon
   (remote TV khong cuon duoc nen nut "Bat dau" / "Choi lai" phai luon nhin thay). */
@media(max-height:560px) and (min-width:701px){
 #sanh:not(.an)~#btKieu{display:none}
 #btThanhTich{top:20px;right:168px}
 #nutAm{bottom:44px}
 #btXemCam{bottom:44px}
 #hopKieu{padding:14px 20px;max-height:96dvh;border-radius:20px}
 #hopKieu h2{font-size:20px;margin-bottom:4px}
 #hopKieu .goiy{font-size:11px;line-height:1.4;margin-bottom:10px;max-width:none}
 #hopKieu .luoi{gap:8px}
 #hopKieu .the1{min-height:0;padding:9px 10px;border-radius:14px}
 #hopKieu .the1 .bieu{font-size:24px;margin:0 0 3px}
 #hopKieu .the1 b{font-size:14px;margin-bottom:4px}
 #hopKieu .the1 span{font-size:11px;line-height:1.4}
 #hopKieu .the1 em{font-size:10px;margin-top:5px}
 #hopKieu .nhac{font-size:11px;margin-top:8px}
 #hopKieu .hang{margin-top:10px;gap:10px}
 #hopKieu .hang button{min-height:36px;padding:8px 20px;font-size:14px}
 #bao{padding:16px 28px;max-height:96dvh;border-radius:20px}
 #bao h2{font-size:21px;margin-bottom:8px}
 #bao td{padding:5px 14px;font-size:15px}
 #bao .phu{font-size:11px;line-height:1.45;margin-top:8px}
 #bao .tongKet{margin-top:10px;padding-top:10px}
 #bao .huyHieu{font-size:15px;padding:4px 14px}
 #bao .saoKetQua{font-size:20px;margin:5px 0}
 #bao .chiSo{margin:8px 0;gap:8px}
 #bao .chiSo>div{padding:6px 6px;line-height:1.35}
 #bao .chiSo>div span{font-size:10px}
 #bao .thanhTuuMoi{font-size:11px;padding:6px 10px;line-height:1.45}
 .nutKetQua{margin-top:10px;gap:8px}
 .nutKetQua button,#bao button{min-height:36px;padding:8px 18px;font-size:13px}
 #hopThanhTich{padding:16px 24px;max-height:96dvh}
}
