/* Trang bài thực hành Scratch – cùng màu, cùng font với landing Tin học online và go10 */
:root{
  --green:#017114;--green-600:#015c10;--green-900:#00300a;--green-soft:#e8f5ea;
  --orange:#F77E2D;--orange-600:#c55a14;--orange-soft:#fff1e7;
  --bg:#f6f9f6;--card:#fff;--ink:#0f1a12;--muted:#4a5a4e;--line:#e1e9e3;
  --shadow:0 1px 2px rgba(0,48,10,.05),0 10px 30px rgba(0,48,10,.07);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:"Be Vietnam Pro",system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:var(--green-600)}
.wrap{max-width:860px;margin:0 auto;padding-inline:16px}
.small{font-size:15px}.muted{color:var(--muted)}
.top{display:flex;align-items:center;padding-block:14px}
.brand{text-decoration:none;color:var(--ink);line-height:1.2}.brand b{display:block;font-size:16px}.brand small{font-size:13px;color:var(--muted)}
footer{padding-block:30px 40px;text-align:center}

.hero{padding-block:10px 18px}
.kicker{display:inline-block;background:var(--orange-soft);color:#8a3d06;font-weight:700;font-size:14px;border-radius:999px;padding:4px 12px;margin-bottom:8px}
h1{font-size:clamp(28px,5vw,40px);line-height:1.2;letter-spacing:-.01em;margin-bottom:10px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.chips span{background:#fff;border-radius:999px;padding:4px 12px;font-size:14px;font-weight:600;box-shadow:inset 0 0 0 1.5px var(--line)}

.sec{background:var(--card);border-radius:20px;box-shadow:var(--shadow);padding:22px 22px 8px;margin-bottom:18px}
.sec h2{font-size:24px;line-height:1.3;margin-bottom:12px;color:var(--green-900)}
.sec h3{font-size:20px;margin:22px 0 8px}
.sec h4{font-size:16px;margin:16px 0 6px;color:var(--muted)}
.sec p,.sec ul,.sec ol{margin-bottom:14px}
.sec ul,.sec ol{padding-left:24px}
.sec li{margin-bottom:4px}
.sec blockquote{background:var(--green-soft);border-radius:14px;padding:12px 16px;margin-bottom:14px}
.sec blockquote p{margin:0}
.sec code{background:var(--bg);border-radius:6px;padding:1px 6px;font-size:.92em}
.source{text-align:center;margin-bottom:10px}

/* khối lệnh Scratch */
pre.blocks{white-space:pre-wrap;font-family:inherit}
.scratchblocks{overflow-x:auto;margin:6px 0 16px;max-width:100%}
.scratchblocks svg{max-width:none}

/* nút */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 22px;font:inherit;font-weight:700;font-size:17px;background:var(--green);color:#fff;text-decoration:none;min-height:50px;cursor:pointer}
.btn:hover{background:var(--green-600)}
.btn.orange{background:var(--orange);box-shadow:0 6px 18px rgba(247,126,45,.35)}.btn.orange:hover{background:var(--orange-600)}
.btn.ghost{background:#fff;color:var(--green-600);box-shadow:inset 0 0 0 2px var(--green-soft)}.btn.ghost:hover{background:var(--green-soft)}

/* chơi thử */
.player{background:var(--bg);border-radius:16px;padding:18px;text-align:center;margin-bottom:16px}
.player p{margin:10px 0 0}
.player.on{padding:0;background:transparent}
.player iframe{display:block;width:100%;max-width:100%;aspect-ratio:480/400;border:0;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line)}

/* tải file */
.dl{background:var(--orange-soft);border-radius:16px;padding:16px 18px;margin-bottom:16px}
.dl ol{margin:12px 0 0;padding-left:22px}

/* phần giấu: gợi ý, đáp án */
details{border-radius:14px;margin-bottom:14px;box-shadow:inset 0 0 0 1.5px var(--line)}
details>summary{cursor:pointer;font-weight:700;padding:12px 16px;list-style:none;display:flex;justify-content:space-between;gap:10px}
details>summary::after{content:"+";color:var(--green);font-weight:800}
details[open]>summary::after{content:"–"}
details>*:not(summary){margin-inline:16px}
details[open]{padding-bottom:4px}
details.answer{box-shadow:inset 0 0 0 2px var(--orange)}
details.answer>summary{color:var(--orange-600)}

/* bảng chạy tay */
.tbl{overflow-x:auto;margin-bottom:16px}
table{border-collapse:collapse;width:100%;font-size:16px}
th,td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:center;white-space:nowrap}
th{background:var(--green-soft);color:var(--green-900)}

/* trang danh sách */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-bottom:24px}
.card.lesson{display:flex;flex-direction:column;gap:4px;background:#fff;border-radius:18px;padding:18px;box-shadow:var(--shadow);text-decoration:none;color:var(--ink)}
.card.lesson:hover{box-shadow:0 0 0 2px var(--orange),var(--shadow)}
main>h2{font-size:22px;margin:10px 0 12px}

@media (max-width:520px){body{font-size:17px}.sec{padding:18px 16px 6px}.btn{width:100%}}
@media print{.player,.dl,footer{display:none}}

/* Danh sách tự kiểm tra: "- [ ] …" trong bai.md */
li.tick{list-style:none;margin-left:-1.2em}
li.tick label{display:flex;gap:8px;align-items:flex-start;cursor:pointer}
li.tick input{width:18px;height:18px;margin-top:3px;accent-color:#F77E2D;flex:none}

/* Bài mẫu công khai (tin-hoc-online/bai-mau/): khung giới thiệu đầu trang + lời mời cuối trang */
.mau{background:#fff1e7;border-radius:18px;padding:16px 18px;margin:4px 0 18px;font-size:15.5px;line-height:1.55}
.mau-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.mau-cta .btn{text-decoration:none}
.mau-end{background:#e8f5ea}

/* Hình minh hoạ trong bài (lesson.js): khung chung */
.goc-xoay,.toa-do,.chia-du,.vong-tuan,.boc-so,.dong-ho,.ban-co,.xe-mep,.den-chu-ky,.vung-dung,.keo-tha,.rut-tham,.ban-sao,.lap-xoay,.xoan-oc,.huong-nay,.ga-cho,.xep-nhom,.dong-thoi-gian,.neu-thi,.heo-dat,.bac-thang{background:var(--bg);border-radius:16px;padding:14px 14px 16px;margin-bottom:16px}
.toa-do:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.mh-nhap{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:10px;font-size:15px;font-weight:600}
.mh-nhap input,.mh-nhap select{font:inherit;font-size:16px;width:7em;margin-left:6px;padding:6px 8px;border:1.5px solid var(--line);border-radius:10px;background:#fff}
.mh-nhap select{width:auto}
.mh-nhap .vt-n,.mh-nhap .bs-n{width:9.5em}

/* Hình động "Bút xoay mấy vòng" (.goc-xoay, bài Vẽ ngôi sao) */
.gx-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.gx-tab{font:inherit;font-size:15px;font-weight:700;border:0;border-radius:999px;padding:8px 14px;min-height:40px;background:#fff;color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line);cursor:pointer}
.gx-tab[aria-pressed="true"]{background:var(--green);color:#fff;box-shadow:none}
.gx-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gx-row figure{margin:0;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);padding:8px 8px 4px;text-align:center}
.gx-row svg{display:block;width:100%;height:auto;max-height:260px}
.gx-row figcaption{font-size:14px;font-weight:600;color:var(--muted);line-height:1.35}
.gx-net{fill:none;stroke:#f5a300;stroke-width:5;stroke-linejoin:round;stroke-linecap:round}
.gx-mui{fill:#e5322d;stroke:#fff;stroke-width:1}
.gx-ray{fill:none;stroke:var(--line);stroke-width:10}
.gx-moc{stroke:var(--muted);stroke-width:2;stroke-dasharray:3 3}
.gx-c1{fill:none;stroke:#F77E2D;stroke-width:10;stroke-linecap:round}
.gx-c2{fill:none;stroke:#017114;stroke-width:10;stroke-linecap:round}
.gx-d1{fill:#fff;stroke:#c55a14;stroke-width:2}
.gx-d2{fill:#fff;stroke:#015c10;stroke-width:2}
.gx-kim{stroke:#e5322d;stroke-width:3;stroke-linecap:round}
.gx-so{font:800 18px "Be Vietnam Pro",system-ui,sans-serif;fill:var(--ink);paint-order:stroke;stroke:#fff;stroke-width:4px}
.gx-chu-giai{display:block;font-weight:700;font-size:13px}
.gx-chu-giai i{display:inline-block;width:14px;height:8px;border-radius:4px;margin:0 4px 1px 6px;vertical-align:middle}
.gx-v1{background:#F77E2D}.gx-v2{background:#017114}
.gx-chu{min-height:3.2em;margin:10px 2px 10px;font-size:16.5px;line-height:1.55}
.gx-nut{display:flex;flex-wrap:wrap;gap:8px}
.gx-nut .btn{min-height:44px;padding:8px 16px;font-size:16px}
.gx-nut .btn:disabled,.goc-xoay.dang-ve .gx-nut .btn{opacity:.5;cursor:default}
@media (max-width:520px){.gx-row{gap:6px}.gx-row figure{padding:4px 4px 2px}.gx-row figcaption{font-size:12.5px}.gx-nut .btn{width:auto;flex:1 1 auto}}
.gx-tab.sai{color:#b3261e}.gx-tab.sai[aria-pressed="true"]{background:#b3261e;color:#fff}
@media print{.goc-xoay .gx-nut,.goc-xoay .gx-tabs{display:none}}

/* Sân khấu có lưới toạ độ (.toa-do) */
.td-svg{display:block;width:100%;height:auto;max-height:380px;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);cursor:crosshair}
.td-nen{fill:#f4fbff;stroke:#9fb3c8;stroke-width:2}
.td-luoi{stroke:#d7e3ee;stroke-width:1}
.td-truc{stroke:#5b6b7a;stroke-width:2}
.td-so{font:600 13px "Be Vietnam Pro",system-ui,sans-serif;fill:#5b6b7a}
.td-ten{font:800 15px "Be Vietnam Pro",system-ui,sans-serif;fill:#0f1a12}
.td-moc{fill:#fff;stroke:#F77E2D;stroke-width:2.5}
.td-gach{stroke:#e5322d;stroke-width:1.5;stroke-dasharray:5 4}
.td-cham{fill:#e5322d;stroke:#fff;stroke-width:2}
.td-meo{font-size:32px}
.td-nhan{font:800 17px "Be Vietnam Pro",system-ui,sans-serif;fill:#b3261e;paint-order:stroke;stroke:#fff;stroke-width:5px}
.td-phim small{font-weight:600;font-size:13px;opacity:.8}

/* Chia đều (.chia-du) */
.cd-ban{display:flex;flex-wrap:wrap;gap:8px}
.cd-o{flex:1 1 110px;min-height:70px;background:#fff;border-radius:12px;box-shadow:inset 0 0 0 1.5px var(--line);padding:6px 8px}
.cd-o small{display:block;font-weight:700;color:var(--muted)}
.cd-o span,.cd-thua span{display:flex;flex-wrap:wrap;gap:2px;font-size:20px;line-height:1.2}
.cd-o i,.cd-thua i{font-style:normal;animation:mh-roi .25s ease-out}
.cd-thua{margin-top:8px;background:var(--orange-soft);border-radius:12px;padding:8px 10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:44px}
.cd-thua span{font-size:20px}
@keyframes mh-roi{from{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}
.ct-sach{display:flex;flex-wrap:wrap;gap:8px}
.ct-trang{background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--line);padding:6px 8px;min-width:96px;display:flex;flex-direction:column;gap:2px;font-size:14px}
.ct-trang.co{box-shadow:inset 0 0 0 2.5px var(--orange)}
.ct-trang span{border-radius:6px;padding:1px 6px}
.ct-trang span small{color:var(--muted);margin-left:4px}
.ct-trang span.day{background:var(--orange);color:#fff;font-weight:700}.ct-trang span.day small{color:#fff}
.ct-trang span.mo{opacity:.4}

/* Thứ trong tuần (.vong-tuan) */
.vt-svg{display:block;width:100%;max-width:330px;height:auto;margin:0 auto}
.vt-o circle{fill:#fff;stroke:var(--line);stroke-width:2.5}
.vt-o.on circle{fill:var(--orange-soft);stroke:var(--orange);stroke-width:3.5}
.vt-ten{font:800 15px "Be Vietnam Pro",system-ui,sans-serif;fill:var(--ink)}
.vt-so{font:600 9.5px "Be Vietnam Pro",system-ui,sans-serif;fill:var(--muted)}

/* Bóc chữ số (.boc-so) */
.bs-hang{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:10px}
.bs-hang small{display:block;font-size:13px;font-weight:700;color:var(--muted)}
.bs-the{display:flex;gap:4px;min-height:52px}
.bs-the span{display:inline-flex;align-items:center;justify-content:center;width:40px;height:50px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 2px var(--line);font-size:26px;font-weight:800}
.bs-the span:last-child{box-shadow:inset 0 0 0 2.5px var(--orange)}
.bs-the span.bay{animation:mh-bay .45s ease-in forwards}
.bs-the span.het{opacity:.5}
@keyframes mh-bay{to{transform:translate(40px,30px) scale(.6);opacity:0}}
.bs-kq{background:var(--green-soft);border-radius:12px;padding:6px 14px;min-width:110px}
.bs-kq b{font-size:28px;color:var(--green-900)}
.boc-so .tbl{margin-bottom:6px}.boc-so td,.boc-so th{font-size:14px;white-space:normal}

/* Đồng hồ (.dong-ho) và bàn cờ (.ban-co) */
.dh-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center}
.dh-svg,.bc-svg{display:block;width:100%;max-width:300px;height:auto;margin:0 auto}
.dh-mat{fill:#fff;stroke:#1f2a44;stroke-width:5}
.dh-vach{stroke:#7a8699;stroke-width:1.5}.dh-vach.to{stroke:#1f2a44;stroke-width:3.5}
.dh-so{font:800 15px "Be Vietnam Pro",system-ui,sans-serif;fill:#1f2a44}
.dh-dien{font:700 13px "Be Vietnam Pro",system-ui,sans-serif;fill:var(--muted)}
.dh-kim-gio{stroke:#1f2a44;stroke-width:8;stroke-linecap:round}
.dh-kim-phut{stroke:#F77E2D;stroke-width:5;stroke-linecap:round}
.dh-gio-dung{stroke:#2e7d32;stroke-width:5;stroke-dasharray:5 5;opacity:.85;stroke-linecap:round}
.dh-tam{fill:#1f2a44}
.dh-dk{display:flex;flex-direction:column;gap:12px;font-size:15px;font-weight:600}
.dh-dk input[type=range]{display:block;width:100%;accent-color:#F77E2D;margin-top:4px}
.dh-sai{display:flex;gap:8px;align-items:flex-start;font-weight:500;color:#b3261e}
.dh-sai input{width:18px;height:18px;margin-top:3px;accent-color:#b3261e;flex:none}
.bc-nen{fill:#fff}
.bc-sang{fill:#f0d9b5}.bc-toi{fill:#b58863}
.bc-vien{fill:none;stroke:#5b3a1e;stroke-width:4}
.bc-khung{fill:none;stroke:#e5322d;stroke-width:3.5}
.bc-tt{font-size:15px}.bc-tt p{margin:0 0 4px}
.bc-thanh{height:10px;background:#fff;border-radius:6px;box-shadow:inset 0 0 0 1.5px var(--line);margin-bottom:10px;overflow:hidden}
.bc-thanh i{display:block;height:100%;width:0;background:var(--green);transition:width .15s}
.bc-thanh .bc-tc{background:var(--orange)}
@media (max-width:520px){.dh-row{grid-template-columns:1fr}.mh-nhap input{width:6em}}

/* Hình minh hoạ các bài Ôn thi D1 */
.xm-svg,.vd-svg,.kt-svg{display:block;width:100%;height:auto;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line)}
.xm-ngoai{fill:#eceff1}
.xm-duong{fill:#5f6b73}
.xm-vach{stroke:#fff;stroke-width:3;stroke-dasharray:18 14}
.xm-nho{font:600 11px "Be Vietnam Pro",system-ui,sans-serif;fill:var(--muted);text-anchor:middle}
.xm-moc{stroke:#e5322d;stroke-width:3;stroke-dasharray:6 4}
.xm-moc-t{font:800 12px "Be Vietnam Pro",system-ui,sans-serif;fill:#b3261e;text-anchor:middle;dominant-baseline:hanging}
.xm-xe{fill:#1e88e5;stroke:#0d47a1;stroke-width:2}
.xm-kinh{fill:#bbdefb}
.dc-den{display:flex;gap:24px;justify-content:center;margin-bottom:10px}
.dc-den figure{margin:0;text-align:center;font-size:14px;font-weight:700}
.dc-cot{display:inline-flex;flex-direction:column;gap:6px;background:#263238;border-radius:14px;padding:8px}
.dc-cot i{width:30px;height:30px;border-radius:50%;background:#455a64;transition:background .2s}
.dc-cot i.on{box-shadow:0 0 14px 2px rgba(255,255,255,.35)}
.dc-truc{position:relative;padding-bottom:22px}
.dc-hang{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:13px;font-weight:700}
.dc-hang span{flex:none;width:58px}
.dc-hang div{flex:1;display:flex;border-radius:8px;overflow:hidden}
.dc-hang i{font-style:normal;color:#fff;font-size:12px;text-align:center;padding:4px 0;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.dc-kim{position:absolute;top:-4px;bottom:16px;width:0;border-left:3px solid #0f1a12;transition:left .3s linear}
.dc-kim b{position:absolute;bottom:-18px;left:-12px;font-size:12px}
.dc-so{display:none}
.vd-svg{max-height:220px}
.vd-nga-tu{fill:#cfd8dc}
.vd-vung{fill:rgba(67,160,71,.25);stroke:#43a047;stroke-width:2}
.vd-vach{stroke:#e5322d;stroke-width:4}
.vd-vach-t{font:800 13px "Be Vietnam Pro",system-ui,sans-serif;fill:#b3261e;text-anchor:middle}
.vd-vet{fill:#F77E2D}
.kt-svg{touch-action:none;max-height:340px;cursor:default}
.kt-qua{cursor:grab}
.kt-tao{fill:#e53935;stroke:#b71c1c;stroke-width:3}
.kt-cuong{fill:none;stroke:#5d4037;stroke-width:5;stroke-linecap:round}
.kt-tam{fill:#fff}
.kt-lech{stroke:#0f1a12;stroke-width:2;stroke-dasharray:5 4}
.kt-chuot path{fill:#fff;stroke:#0f1a12;stroke-width:1.5}
.rt-hang{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
.rt-hang small{display:block;font-weight:600;color:var(--muted);margin-bottom:4px}
.rt-hop,.rt-da{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.rt-hop li,.rt-da li{background:#fff;border-radius:8px;box-shadow:inset 0 0 0 1.5px var(--line);padding:2px 8px;font-size:15px}
.rt-hop li span{display:inline-block;min-width:22px;font-weight:800;color:var(--muted)}
.rt-hop li.chon{box-shadow:inset 0 0 0 2.5px var(--orange);background:var(--orange-soft)}
.rt-hop li.trong{color:var(--muted);font-style:italic;background:transparent}
.rt-hop li.trong.chon{box-shadow:inset 0 0 0 2.5px #b3261e;background:#fdecea;color:#b3261e}
.rt-da li{background:var(--green-soft);box-shadow:none}
.bsao-hang{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px}
.bsao-hang small{display:block;font-weight:600;color:var(--muted);margin-bottom:4px}
.bsao-list{display:flex;flex-direction:column;gap:4px}
.bsao-ca{display:flex;align-items:center;gap:8px;font-size:28px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--line);padding:2px 10px}
.bsao-ca span{font-size:14px;font-weight:700;background:var(--orange-soft);border-radius:8px;padding:2px 8px}
.bsao-goc .bsao-ca{flex-direction:column;align-items:flex-start;opacity:.85}
.bsao-ca.moi{animation:mh-roi .35s ease-out}
@media (max-width:520px){.rt-hang,.bsao-hang{grid-template-columns:1fr}}
.hinh-ve{display:block;width:100%;max-width:640px;height:auto;margin:0 auto 14px;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line)}
.vd-svg .td-so,.xm-svg .td-so{font-size:17px}.xm-svg .xm-nho{font-size:12.5px}.xm-moc-t{font-size:17px!important}.vd-svg .xm-nho{font-size:15px}.vd-vach-t{font-size:16px}
.rt-hang ol{margin:0!important;padding:0!important}
.dang-ve .gx-tab{opacity:.55;cursor:default}

/* Đợt 3: mẫu xoay quanh tâm, xoắn ốc, bóng nảy, gà và chó, xếp nhóm (ước số), dòng thời gian */
.lx-svg{display:block;width:100%;max-width:330px;height:auto;margin:0 auto 4px;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line)}
.lx-tam{fill:#0f1a12}
.lx-mau{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.lx-mau.chong{stroke:#b3261e!important;stroke-dasharray:6 4;stroke-width:3.5}
.xo-net{stroke-width:2.2;stroke-linecap:round}
.xo-nhanh{display:flex;flex-wrap:wrap;gap:6px}
.xo-nhanh .gx-tab{min-height:34px;padding:4px 12px;font-size:14px}
.hn-huong{margin-bottom:8px}
.hn-svg{display:block;width:100%;height:auto;max-height:340px;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line)}
.hn-vet{fill:none;stroke:#F77E2D;stroke-width:3;stroke-dasharray:2 6;stroke-linecap:round}
.hn-bong{fill:#ffb300;stroke:#e65100;stroke-width:3}
.hn-nay{display:flex;gap:8px;align-items:flex-start;margin-top:8px;font-size:15px;font-weight:600}
.hn-nay input{width:18px;height:18px;margin-top:3px;accent-color:#F77E2D;flex:none}
.gc-dem{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gc-dem>div{background:#fff;border-radius:12px;box-shadow:inset 0 0 0 1.5px var(--line);padding:8px 10px;font-size:15px}
.gc-dem b{font-size:22px}.gc-dem small{color:var(--muted)}
.gc-o{font-size:17px;line-height:1.25;word-break:break-all;margin-top:4px;min-height:22px}
.gc-phep{margin:10px 0 0;padding:8px 12px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-size:16px}
.gc-phep.dung{background:var(--green-soft);box-shadow:inset 0 0 0 2px var(--green)}
.xn-nhom{display:flex;flex-wrap:wrap;gap:8px;min-height:44px}
.xn-g{display:flex;flex-wrap:wrap;gap:3px;max-width:150px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 2px var(--green);padding:6px;align-items:center;animation:mh-roi .25s ease-out}
.xn-g i{width:14px;height:14px;border-radius:50%;background:var(--green)}
.xn-g.le{box-shadow:inset 0 0 0 2px #b3261e;background:#fdecea}.xn-g.le i{background:#e53935}
.xn-g small{font-weight:800;color:#b3261e;margin-left:4px}
.xn-uoc{margin:10px 0 0;font-size:15px}
.xn-chip{display:inline-block;min-width:26px;text-align:center;background:var(--green-soft);color:var(--green-900);border-radius:999px;padding:0 8px;margin:2px}
.dt-ai{display:flex;justify-content:space-around;gap:10px;margin-bottom:10px}
.dt-ai figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;flex:1;max-width:240px}
.dt-ai .dt-bong{flex:1;display:flex;align-items:center;justify-content:center}
.dt-ai b{background:#fff;border-radius:999px;padding:2px 14px;box-shadow:inset 0 0 0 1.5px var(--line)}
.dt-bong{min-height:48px;width:100%;background:#fff;border-radius:16px;padding:8px 10px;font-size:15px;text-align:center;opacity:.25;box-shadow:inset 0 0 0 1.5px var(--line);position:relative}
.dt-bong.on{opacity:1;box-shadow:inset 0 0 0 2.5px var(--orange)}
.dt-truc .dt-noi{background:var(--orange)}
.dt-truc .dt-doi{background:#b0bec5}
.dt-truc .dt-trong{background:transparent}
@media (max-width:520px){.gc-dem{grid-template-columns:1fr}}

/* Bắt táo (nếu … thì), heo đất, ghép bậc thang */
.neu-thi:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.nt-svg{touch-action:none}
.nt-troi{fill:#e3f2fd}.nt-co{fill:#2e9e44}
.nt-ro{fill:#a1887f;stroke:#5d4037;stroke-width:3}.nt-ro-soc{stroke:#5d4037;stroke-width:2}
.nt-noi{font:800 16px "Be Vietnam Pro",system-ui,sans-serif;fill:#0f1a12;paint-order:stroke;stroke:#fff;stroke-width:5px}
.nt-hoi{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.nt-q{background:#fff;border-radius:12px;box-shadow:inset 0 0 0 1.5px var(--line);padding:6px 10px;font-size:15px}
.nt-q b{float:right;color:var(--muted)}
.nt-q.co{box-shadow:inset 0 0 0 2.5px var(--green);background:var(--green-soft)}.nt-q.co b{color:var(--green-900)}
.nt-q.nhay{animation:mh-nhay .25s}
@keyframes mh-nhay{from{background:#fff8e1}}
.hd-hang{display:grid;grid-template-columns:1fr 60px 1fr;gap:8px;align-items:center}
.hd-the{background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line);padding:8px 12px;text-align:center}
.hd-the small{display:block;font-weight:700;color:var(--muted)}
.hd-the b{font-size:32px;color:var(--orange-600)}
.hd-heo{background:#fce4ec}.hd-heo b{color:#ad1457}
.hd-xu{text-align:center;min-height:40px}
.hd-xu i{display:inline-block;font-style:normal;font-weight:800;background:#ffd54f;border:3px solid #f9a825;border-radius:50%;min-width:36px;padding:4px;animation:mh-xu .5s ease-in forwards}
@keyframes mh-xu{from{transform:translateX(-50px);opacity:1}to{transform:translateX(50px);opacity:0}}
.hd-vong{margin:6px 0}
.heo-dat td,.heo-dat th{font-size:14px}
.bt-svg{display:block;width:100%;max-width:420px;height:auto;margin:0 auto 6px;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--line)}
.bt-o1{fill:#F77E2D}.bt-o2{fill:#43a047}
.bt-xanh{opacity:0;transform:translateY(-40px);transition:transform .7s ease-out,opacity .7s}
.bt-xanh.on{opacity:1;transform:none}
.bt-so{font:700 11px "Be Vietnam Pro",system-ui,sans-serif;fill:var(--muted)}
@media (max-width:520px){.nt-hoi{grid-template-columns:1fr}.hd-hang{grid-template-columns:1fr 40px 1fr}.hd-the b{font-size:26px}}
.heo-dat th{white-space:normal}
