/* ---- MGCARD2 12/11/2026: thẻ minigame ở trang chủ dựng lại theo bố cục mẫu user chỉ định (lớp mgq-*; lớp mgk-* cũ ở trên không còn dùng cho thẻ) ---- */
html body .mgz:not(#mgx) .mgq-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
html body .mgz:not(#mgx) .mgq-list{display:grid;gap:18px;padding:3px}
html body .mgz:not(#mgx) .mgq{--q-accent:#ffd23f;--q-title:#ffd23f;--q-ink:#3a2200;--q-deep:#b8860b;--q-edge:#0b0a1f;--q-bg:#14122e;--q-glow:rgba(255,210,63,.35);--q-drop:rgba(20,18,46,.35);display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);overflow:hidden;border:3px solid var(--q-edge);border-radius:16px;background:var(--q-bg);box-shadow:0 0 0 3px var(--q-accent),0 10px 26px var(--q-drop);color:#fff}
html body .mgz:not(#mgx) .mgq.mgq-theme-dusk{--q-accent:#ff8a1f;--q-title:#ffb454;--q-ink:#2a1245;--q-deep:#b45309;--q-edge:#09040f;--q-bg:#190f2c;--q-glow:rgba(255,138,31,.4);--q-drop:rgba(42,18,69,.45)}
html body .mgz:not(#mgx) .mgq,html body .mgz:not(#mgx) .mgq *{font-family:"Saira Semi Condensed","Be Vietnam Pro",Arial,sans-serif!important}
html body .mgz:not(#mgx) .mgq .mgq-best,html body .mgz:not(#mgx) .mgq .mgq-best *{font-family:"Courier New",ui-monospace,monospace!important}

html body .mgz:not(#mgx) .mgq-scene{position:relative;display:block;min-height:300px;background:#0d0b1f;overflow:hidden;line-height:0!important;text-decoration:none!important}
html body .mgz:not(#mgx) .mgq-theme-dusk .mgk-art{object-position:left center}
html body .mgz:not(#mgx) .mgq-stars{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
html body .mgz:not(#mgx) .mgq-stars path{fill:#fff;animation:mgqTwinkle 2.6s ease-in-out infinite}
html body .mgz:not(#mgx) .mgq-stars path:nth-child(2){animation-delay:.9s}
html body .mgz:not(#mgx) .mgq-stars path:nth-child(3){animation-delay:1.7s}
@keyframes mgqTwinkle{0%,100%{opacity:.25}50%{opacity:1}}
html body .mgz:not(#mgx) .mgq-best{position:absolute;left:0;right:0;top:5.5%;display:flex;flex-direction:column;align-items:center;gap:7px;line-height:1!important;pointer-events:none}
html body .mgz:not(#mgx) .mgq-best small{font-size:17px!important;font-weight:900!important;line-height:1!important;letter-spacing:1.4px!important;text-transform:uppercase!important;color:var(--q-title)!important;text-shadow:2px 2px 0 #1b1b2f}
html body .mgz:not(#mgx) .mgq-best b{font-size:37px!important;font-weight:900!important;line-height:1!important;color:#fff!important;text-shadow:3px 3px 0 #1b1b2f}

html body .mgz:not(#mgx) .mgq-info{position:relative;min-width:0;display:flex;flex-direction:column;gap:10px;padding:18px 22px 20px;background:var(--q-bg);font-size:16px!important;line-height:26px!important}
html body .mgz:not(#mgx) .mgq-info::before{content:"";position:absolute;left:0;top:0;right:0;bottom:0;background:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1.4px) 0 0/14px 14px;pointer-events:none}
html body .mgz:not(#mgx) .mgq-info>*{position:relative}
html body .mgz:not(#mgx) .mgq-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
html body .mgz:not(#mgx) .mgq-season{display:inline-flex;align-items:center;gap:6px;padding:3px 12px 3px 9px;border:2px solid var(--q-edge);border-radius:4px;background:var(--q-accent);box-shadow:2px 2px 0 var(--q-edge);font-size:12px!important;font-weight:800!important;line-height:1.6!important;letter-spacing:.8px!important;text-transform:uppercase!important;white-space:nowrap;color:var(--q-ink)!important}
html body .mgz:not(#mgx) .mgq-season .mg-ic,html body .mgz:not(#mgx) .mgq-ends .mg-ic{width:12px;height:12px}
html body .mgz:not(#mgx) .mgq-live{display:inline-flex;align-items:center;gap:6px;font-size:11px!important;font-weight:700!important;line-height:1.55!important;letter-spacing:1px!important;text-transform:uppercase!important;white-space:nowrap;color:#7ee787!important}
html body .mgz:not(#mgx) .mgq-live i{width:8px;height:8px;border-radius:50%;background:#7ee787}
html body .mgz:not(#mgx) .mgq-ends{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:99px;background:rgba(255,255,255,.08);font-size:11px!important;font-weight:700!important;line-height:1.55!important;letter-spacing:.6px!important;text-transform:uppercase!important;white-space:nowrap;color:var(--q-title)!important}
html body .mgz:not(#mgx) .mgq-ends span{color:inherit!important;text-transform:uppercase!important}
html body .mgz:not(#mgx) .mgq-title{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:34px!important;line-height:1.05!important;font-weight:900!important;letter-spacing:1px!important;text-transform:uppercase!important;color:var(--q-title)!important;text-shadow:3px 3px 0 var(--q-edge),0 0 18px var(--q-glow)}
html body .mgz:not(#mgx) .mgq-title a{font:inherit!important;letter-spacing:inherit!important;text-transform:uppercase!important;text-decoration:none!important;color:inherit!important}
html body .mgz:not(#mgx) .mgq-sub{margin:0!important;padding:0!important;max-width:416px;font-size:13.5px!important;line-height:26px!important;font-weight:400!important;color:#cfd2ff!important}
html body .mgz:not(#mgx) .mgq-label{display:flex;align-items:center;gap:7px;margin:2px 0 0;font-size:11.5px!important;font-weight:800!important;line-height:1.55!important;letter-spacing:1.2px!important;text-transform:uppercase!important;color:#9aa0d8!important}
html body .mgz:not(#mgx) .mgq-label .mg-ic{width:13px;height:13px;color:var(--q-accent)}
html body .mgz:not(#mgx) .mgq-prizes,html body .mgz:not(#mgx) .mgq-top{display:flex;flex-wrap:wrap;gap:8px}
html body .mgz:not(#mgx) .mgq-prize{--q-tone:#f5b72a;display:flex;align-items:center;gap:8px;max-width:100%;padding:5px 12px 5px 6px;border:2px solid var(--q-tone);border-radius:10px;background:#1f1c47}
html body .mgz:not(#mgx) .mgq-prize.mgq-t2{--q-tone:#aeb9c7}
html body .mgz:not(#mgx) .mgq-prize.mgq-t3{--q-tone:#cc7d3a}
html body .mgz:not(#mgx) .mgq-medal{flex:0 0 auto;display:block;width:30px;height:35px}
html body .mgz:not(#mgx) .mgq-th{flex:0 0 auto;display:block;width:30px;height:30px;border:2px solid var(--q-tone);border-radius:7px;overflow:hidden;line-height:0!important}
html body .mgz:not(#mgx) .mgq-th svg{display:block;width:100%;height:100%}
html body .mgz:not(#mgx) .mgq-tx{display:block;min-width:0;line-height:1.15!important}
html body .mgz:not(#mgx) .mgq-tx b{display:block;max-width:150px;overflow:hidden;font-size:12.5px!important;font-weight:700!important;line-height:1.15!important;white-space:nowrap;text-overflow:ellipsis;color:#fff!important}
html body .mgz:not(#mgx) .mgq-tx small{display:block;margin-top:3px;font-size:11px!important;font-weight:800!important;line-height:1.15!important;color:var(--q-tone)!important}
html body .mgz:not(#mgx) .mgq-player{display:flex;align-items:center;gap:7px;padding:3px 12px 3px 5px;border-radius:99px;background:rgba(255,255,255,.07);font-size:12.5px!important;font-weight:600!important;line-height:26px!important;color:#fff!important}
html body .mgz:not(#mgx) .mgq-player span{max-width:120px;font-weight:600!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#fff!important}
html body .mgz:not(#mgx) .mgq-player b{margin-left:2px;font-weight:900!important;font-variant-numeric:tabular-nums;color:var(--q-title)!important}
html body .mgz:not(#mgx) .mgq-empty{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.5!important;color:#9aa0d8!important}
html body .mgz:not(#mgx) .mgq-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:9px;margin:4px 0 8px;padding:11px 24px;border:3px solid var(--q-edge);border-radius:6px;background:var(--q-accent)!important;box-shadow:0 5px 0 var(--q-deep),0 5px 0 3px var(--q-edge);font-size:15px!important;font-weight:900!important;line-height:1.5!important;letter-spacing:1.2px!important;text-transform:uppercase!important;text-decoration:none!important;white-space:nowrap;color:#3a2200!important;transition:transform .08s ease,box-shadow .08s ease}
html body .mgz:not(#mgx) .mgq-cta .mg-ic{width:15px;height:15px}
html body .mgz:not(#mgx) .mgq-cta:hover{transform:translateY(1px);box-shadow:0 4px 0 var(--q-deep),0 4px 0 3px var(--q-edge)}
html body .mgz:not(#mgx) .mgq-cta:active{transform:translateY(5px);box-shadow:0 0 0 var(--q-deep),0 0 0 3px var(--q-edge)}
html body .mgz:not(#mgx) .mgq-cta:focus-visible,html body .mgz:not(#mgx) .mgq-scene:focus-visible{outline:3px solid #84adff;outline-offset:2px}
@media (max-width:767px){
    html body .mgz:not(#mgx) .mgq{grid-template-columns:minmax(0,1fr)}
    html body .mgz:not(#mgx) .mgq-scene{min-height:0;aspect-ratio:360 / 210}
    html body .mgz:not(#mgx) .mgq-best{gap:5px}
    html body .mgz:not(#mgx) .mgq-best small{font-size:12px!important;letter-spacing:1px!important}
    html body .mgz:not(#mgx) .mgq-best b{font-size:26px!important;text-shadow:2px 2px 0 #1b1b2f}
    html body .mgz:not(#mgx) .mgq-info{padding:14px 14px 16px}
    html body .mgz:not(#mgx) .mgq-title{font-size:24px!important}
    html body .mgz:not(#mgx) .mgq-tx b{max-width:120px}
    html body .mgz:not(#mgx) .mgq-cta{align-self:stretch;justify-content:center}
}
@media (prefers-reduced-motion:reduce){html body .mgz:not(#mgx) .mgq-cta{transition:none}}
