/* «🎯 Trò chơi hành vi tích cực» trong Lớp của tôi — đợt 4 (18/11/2026) */
.hv-dau{display:flex;gap:16px;align-items:center;background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;border-radius:var(--bo);padding:16px 20px;margin-bottom:14px}
.hv-dau h2{margin:0 0 4px}
.hv-dau p{margin:0;opacity:.95}
.hv-dau .lp-linh-vat{width:96px;height:auto;flex:none}
@media (max-width:640px){.hv-dau .lp-linh-vat{display:none}}
.hv-luat{display:grid;gap:6px}
.hv-luat-dong{display:flex;gap:6px;align-items:center}
.hv-luat-dong input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--vien);border-radius:10px;background:var(--the);font-size:16px}
.hv-chon{display:flex;gap:6px;align-items:center;border:1px solid var(--vien);border-radius:10px;padding:6px 10px;cursor:pointer}
.hv-chon:has(input:checked){border-color:var(--cam);background:var(--cam-nhat)}
.hv-thuong{display:flex;flex-wrap:wrap;gap:6px;align-items:center;flex:1}
.hv-thuong input{flex:1;min-width:220px;padding:8px 10px;border:1px solid var(--vien);border-radius:10px;background:var(--the)}
.lp-khoi select{padding:6px 8px;border:1px solid var(--vien);border-radius:9px;background:var(--the)}
.hv-lon{font-size:20px;padding:14px 28px;margin:6px 0 16px}
.hv-cach{margin:0;padding-left:20px}
.hv-cach kbd{border:1px solid var(--vien);border-bottom-width:2px;border-radius:6px;padding:0 5px;font:inherit;font-size:13px}
.hv-lich{width:100%;border-collapse:collapse;font-size:14.5px}
.hv-lich th,.hv-lich td{border-bottom:1px solid var(--vien);padding:6px 8px;text-align:left;vertical-align:top}
/* ván đang chơi — to, đọc được từ cuối lớp */
.hv-tren{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;background:var(--the);border:1px solid var(--vien);border-radius:var(--bo);padding:14px 18px;margin-bottom:14px}
.hv-dong-ho{text-align:center;min-width:170px}
.hv-dong-ho b{display:block;font-size:clamp(46px,8vw,92px);line-height:1;font-variant-numeric:tabular-nums;color:var(--navy2)}
.hv-dong-ho.dung b{color:var(--chu-phu)}
.hv-dong-ho small{font-weight:700;color:var(--chu-phu)}
.hv-van.het .hv-dong-ho b{color:var(--do)}
.hv-luat-chieu{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 14px;font-size:clamp(16px,2vw,22px);font-weight:700}
.hv-luat-chieu li{background:var(--the2);border-radius:10px;padding:6px 10px;overflow-wrap:anywhere}
@media (max-width:640px){.hv-tren{grid-template-columns:1fr}}
.hv-doi-luoi{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:14px}
.hv-doi{position:relative}
.hv-doi-bam{width:100%;display:flex;flex-direction:column;align-items:center;gap:6px;border:4px solid var(--mau-nhom);background:var(--the);border-radius:20px;padding:14px 10px 12px;cursor:pointer;color:var(--chu);transition:transform .12s}
.hv-doi-bam:active:not(:disabled){transform:scale(.97)}
.hv-doi-bam:disabled{cursor:default}
.hv-doi-bam .lp-anh-nhom{width:64px;height:64px}
.hv-doi-bam b{font-size:clamp(18px,2.2vw,26px);overflow-wrap:anywhere;text-align:center}
.hv-phim{position:absolute;top:8px;left:10px;font-weight:800;color:var(--chu-phu);font-size:14px}
.hv-cham{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.hv-cham i{width:22px;height:22px;border-radius:50%;border:3px solid var(--mau-nhom);background:transparent}
.hv-cham i.co{background:var(--mau-nhom)}
.hv-cham i.vuot{background:var(--do);border-color:var(--do)}
.hv-so{font-weight:700;color:var(--chu-phu)}
.hv-doi.vuot .hv-so{color:var(--do)}
.hv-doi.dat .hv-doi-bam{background:var(--la-nhat)}
.hv-doi.dat .hv-so{color:var(--la);font-size:20px}
.hv-doi.chua .hv-doi-bam{opacity:.7}
.hv-bo{position:absolute;top:8px;right:8px;border:1px solid var(--vien);background:var(--the);border-radius:9px;width:34px;height:34px;cursor:pointer;font-size:16px}
.hv-bo:disabled{opacity:.35;cursor:default}
.hv-ket{text-align:center;background:var(--the);border:2px solid var(--la);border-radius:var(--bo);padding:14px;margin-bottom:14px}
.hv-ket .lp-linh-vat{width:110px;height:auto}
.hv-ket h2{margin:6px 0;font-size:clamp(24px,3.4vw,38px)}
.hv-thuong-chieu{font-size:clamp(16px,2vw,22px)}
@media (prefers-reduced-motion:reduce){.hv-doi-bam{transition:none}}
.hoi-lai{background:#D93F3F!important;color:#fff!important;border-color:#D93F3F!important}
