/* Giao diện riêng hobaohuy.com — chồng lên /core/css/giao-dien.css. Nền sáng, chữ rõ, nút to cho ngón tay. */
body.huy .hud .tren{top:calc(6px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));right:calc(8px + env(safe-area-inset-right))}
.h-ten{display:flex;align-items:center;gap:6px;max-width:42vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h-gio{width:16px;height:16px;border-radius:50%;flex:0 0 auto;background:#ffcf4a;box-shadow:0 0 0 2px #fff3c0}
.h-gio.dem{background:#e8eefc;box-shadow:inset -5px -3px 0 #8da2d6}
.h-nut-tren{display:flex;gap:6px}
.h-duoi{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;max-width:calc(100vw - 12px)}
.h-duoi > *{pointer-events:auto}
.h-sk{display:flex;justify-content:space-between;gap:10px;width:100%;padding:0 4px;pointer-events:none}
.h-tim,.h-no{display:flex;gap:1px;background:rgba(255,255,255,.82);border-radius:9px;padding:3px 5px;border:1px solid var(--vien)}
.h-no{flex-direction:row-reverse}
.ic{width:14px;height:13px;display:block}
.ic.day path{fill:#e0473f}.ic.nua path{fill:#f2a6a0}.ic.rong path{fill:#d9dee6}
.h-no .ic.day path{fill:#c7843a}.h-no .ic.nua path{fill:#ecc49a}
.h-tim.yeu{animation:h-run .5s infinite}
@keyframes h-run{50%{transform:translateY(-1px)}}
.h-thanh-hang{display:flex;gap:4px;align-items:stretch}
.h-thanh{display:flex;gap:3px;padding:4px;background:rgba(255,255,255,.92);border-radius:13px;border:1px solid var(--vien);box-shadow:var(--bong)}
.h-thanh button{width:44px;height:44px;border-radius:9px;border:2px solid #dde3ec;padding:0;background:#eef2f7;flex:0 0 auto;cursor:pointer;display:flex;align-items:center;justify-content:center}
.h-thanh button.chon{border-color:var(--nhan);background:#fff;box-shadow:0 0 0 2px rgba(63,143,79,.25)}
.h-tui-nut{min-width:54px;border-radius:13px;border:1px solid var(--vien);background:rgba(255,255,255,.95);box-shadow:var(--bong);font:700 14px system-ui;color:var(--chu);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;cursor:pointer}
.h-tui-nut small{font-weight:600;font-size:10px;color:var(--mo)}
.o-vat{position:relative;display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center}
.o-vat img{width:32px;height:32px;image-rendering:pixelated}
.o-vat b{position:absolute;right:-2px;bottom:-3px;font:800 12px system-ui;color:#1d2a3a;text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 3px #fff}
.o-vat i{position:absolute;left:3px;right:3px;bottom:0;height:3px;background:#d9dee6;border-radius:2px}
.o-vat i:after{content:"";position:absolute;left:0;top:0;bottom:0;width:calc(var(--ben)*100%);background:hsl(calc(var(--ben)*110),70%,45%);border-radius:2px}
.h-nhat{position:absolute;left:calc(10px + env(safe-area-inset-left));bottom:calc(120px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:4px;pointer-events:none}
.h-nhat:before{content:attr(data-ten);position:fixed;left:50%;bottom:calc(112px + env(safe-area-inset-bottom));transform:translateX(-50%);background:rgba(255,255,255,.92);border:1px solid var(--vien);border-radius:10px;padding:3px 10px;font-weight:700;font-size:14px;opacity:0;transition:opacity .2s}
.h-nhat.ten:before{opacity:1}
.h-nhat-dong{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.92);border:1px solid var(--vien);border-radius:10px;padding:2px 10px 2px 4px;font-weight:700;font-size:13px;animation:h-vao .25s}
.h-nhat-dong img{width:22px;height:22px;image-rendering:pixelated}
@keyframes h-vao{from{transform:translateX(-12px);opacity:0}}
body.huy .h-nut-cham{bottom:calc(112px + env(safe-area-inset-bottom));right:calc(12px + env(safe-area-inset-right));gap:8px}
body.huy .h-nut-cham button{width:62px;height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;font-size:14px}
body.huy .h-nut-cham button small{font-size:10px;font-weight:600;color:var(--mo)}
body.huy .h-nut-cham button.giu{background:#fff;border-color:var(--nhan);box-shadow:0 0 0 3px rgba(63,143,79,.3)}
body.huy .h-nut-cham .h-nhay{width:72px;height:72px}
.h-chi-st,.h-chi-bay{display:none!important}
body.sang-tao .h-chi-st{display:flex!important}
body.dang-bay .h-chi-bay{display:flex!important}
.h-dau{position:absolute;inset:0;pointer-events:none!important;box-shadow:inset 0 0 120px 30px rgba(224,71,63,0);}
.h-dau.loe{animation:h-loe .5s}
@keyframes h-loe{0%{box-shadow:inset 0 0 120px 40px rgba(224,71,63,.55)}100%{box-shadow:inset 0 0 120px 30px rgba(224,71,63,0)}}
.h-nuoc{position:absolute;inset:0;pointer-events:none!important;background:rgba(40,90,170,.32);display:none}
.h-nuoc.bat{display:block}
.h-ngat{position:fixed;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;background:rgba(246,248,251,.72);padding:16px;text-align:center}
.h-ngat .the{max-width:380px}
.h-ngat h2{margin-top:0}
/* bảng túi đồ */
.bang.h-bang-tui{width:min(860px,calc(100vw - 16px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:12px 14px}
.h-tui-dau{display:flex;justify-content:space-between;align-items:center;gap:8px;position:sticky;top:-12px;background:#fff;padding:2px 0 8px;z-index:1}
.h-tui-dau b{font-size:18px}
.h-tui-than{display:grid;gap:14px}
.h-tui-than.hai{grid-template-columns:minmax(0,auto) minmax(0,1fr)}
@media (max-width:760px){.h-tui-than.hai{grid-template-columns:1fr}}
.h-bang-tui h3{margin:4px 0 8px;font-size:16px}.h-bang-tui h4{margin:10px 0 4px;font-size:13px;color:var(--mo);font-weight:700}
.h-luoi{display:grid;grid-template-columns:repeat(var(--cot),40px);gap:3px}
.h-luoi button,.h-o-don{width:40px;height:40px;padding:0;border-radius:8px;border:2px solid #dde3ec;background:#eef2f7;display:flex;align-items:center;justify-content:center;cursor:pointer}
.h-luoi button.chon,.h-o-don.chon{border-color:var(--nhan);background:#fff}
.h-luoi.h-kho{grid-template-columns:repeat(auto-fill,40px);max-height:46vh;overflow:auto}
@media (max-width:400px){.h-luoi{grid-template-columns:repeat(var(--cot),36px)}.h-luoi button{width:36px;height:36px}.h-luoi .o-vat{transform:scale(.9)}}
.h-chi-tiet{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;margin:6px 0;font-size:14px}
.h-loc{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.h-ds-ct{display:grid;gap:6px;max-height:56vh;overflow:auto;padding-right:2px}
.h-ct{display:flex;align-items:center;gap:8px;border:1px solid var(--vien);border-radius:11px;padding:6px 8px;background:#fbfcfe}
.h-ct.mo{opacity:.62}
.h-ct > img{width:32px;height:32px;image-rendering:pixelated;flex:0 0 auto}
.h-ct-giua{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.h-ct-giua b{font-size:14px}
.h-can{display:flex;flex-wrap:wrap;gap:4px;font-size:12px;font-weight:700}
.h-can > span{display:inline-flex;align-items:center;gap:2px;background:#eef2f7;border-radius:7px;padding:1px 6px 1px 2px}
.h-can img{width:18px;height:18px;image-rendering:pixelated}
.h-can .thieu{background:#fde8e5;color:var(--do)}
.h-the{font-weight:600!important;color:var(--mo);padding:1px 6px!important}
.h-ct-nut{display:flex;gap:4px;flex:0 0 auto}
.h-ct-nut .nut{min-height:34px;padding:4px 10px}
.h-ct-nut .nut[disabled]{opacity:.5;cursor:default}
.h-lo{display:grid;grid-template-columns:auto auto auto;gap:6px 12px;align-items:center;justify-items:center;background:#f4f6fa;border-radius:12px;padding:10px;width:max-content}
.h-lo small{display:block;font-size:11px;color:var(--mo);text-align:center;margin-bottom:2px}
.h-lo-giua{display:flex;flex-direction:column;gap:6px;align-items:center}
.h-lua{width:18px;height:18px;border-radius:50% 50% 40% 40%;background:#d9dee6}
.h-lua.chay{background:radial-gradient(circle at 50% 70%,#ffe08a,#ff8a2a 60%,#e0473f);animation:h-run .4s infinite}
.h-tien{width:60px;height:8px;background:#d9dee6;border-radius:4px;overflow:hidden}.h-tien i{display:block;height:100%;background:var(--nhan)}
.h-ma-moi{background:#eef7f0;border:1px dashed var(--nhan);border-radius:10px;padding:8px 10px;margin:0 0 10px}
.h-ma-moi b{font-size:20px;letter-spacing:2px}
.h-chon-nho{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
@media (max-height:460px){
  .h-thanh button{width:38px;height:38px}.h-thanh .o-vat{transform:scale(.88)}
  .h-tui-nut{min-width:46px;font-size:13px}
  body.huy .h-nut-cham{bottom:calc(8px + env(safe-area-inset-bottom));gap:6px}
  body.huy .h-nut-cham button{width:54px;height:54px;font-size:13px}
  body.huy .h-nut-cham .h-nhay{width:62px;height:62px}
  .h-nhat{bottom:calc(90px + env(safe-area-inset-bottom))}
  .ic{width:12px;height:11px}
}
@media (max-width:520px){
  .h-thanh button{width:34px;height:34px;border-radius:7px}.h-thanh .o-vat{transform:scale(.82)}
  .h-thanh{gap:2px;padding:3px}
  .h-tui-nut{min-width:42px;font-size:12px}
  .ic{width:11px;height:10px}
  .hud .tren .nut.nho{padding:6px 9px;font-size:13px}
}

/* ---- bảng trên điện thoại: chạm nền để đóng, cuộn được, nút Đóng to ---- */
.h-nen-bang{position:fixed;inset:0;z-index:4;background:rgba(29,42,58,.28);touch-action:none}
body.huy .bang{touch-action:pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;-webkit-user-select:none;user-select:none;
  max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding-top:max(16px,env(safe-area-inset-top))}
body.huy .bang .h-luoi,body.huy .bang .h-ds-ct{touch-action:pan-y}
.h-dong{min-height:44px;min-width:44px;font-size:16px}
.h-dong-goc{position:sticky;float:right;top:0;margin:-4px -4px 4px 8px;z-index:2;padding:0;width:44px;font-size:20px}
body.huy .bang .nut{min-height:44px}
body.huy .bang .h-ct-nut .nut{min-height:40px}
@media (max-height:460px){ body.huy .bang{top:50%;max-height:calc(100dvh - 12px)} .h-tui-dau{top:-8px} }
