/* MGRANK 12/11/2026 — Giao diện minigame đua top: thẻ giới thiệu (trang chủ, /minigame) và trang chơi.
   Mọi luật đều bắt đầu bằng "html body .mgz:not(#mgx)" để thắng các lớp CSS chung của web. */
html body .mgz:not(#mgx){--mg-accent:#ffd23f;--mg-accent-ink:#2a1a00;--mg-bg:#14122b;--mg-bg2:#1d1a3d;--mg-line:#34306a;--mg-text:#ecebff;--mg-mute:#a9a6d6;margin:22px 0;font-family:inherit;text-align:left}
html body .mgz:not(#mgx) *{box-sizing:border-box}
/* web ép -webkit-text-fill-color (màu tối) lên chữ; trong khu minigame cho màu chữ đi theo color */
html body .mgz:not(#mgx),html body .mgz:not(#mgx) *{-webkit-text-fill-color:currentColor!important}
/* web cũng đặt màu riêng cho span/b/li...; trong thẻ game và trang chơi cho chúng nhận màu của khối cha, các luật bên dưới ghi đè khi cần */
html body .mgz:not(#mgx) .mgk-card *{color:inherit}
html body .mgz:not(#mgx) .mgk-theme-dusk,html body .mgz:not(#mgx).mgk-theme-dusk{--mg-accent:#ff9f43;--mg-accent-ink:#2b1200}
html body .mgz:not(#mgx) .mgz-crumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px;font-size:13.5px;color:#667085}
html body .mgz:not(#mgx) .mgz-crumb a{color:#0b49d8!important;font-weight:600;text-decoration:none}
html body .mgz:not(#mgx) .mgz-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 14px}
html body .mgz:not(#mgx) .mgz-title{margin:0 0 4px!important;padding:0!important;font-size:22px!important;line-height:1.25!important;font-weight:800!important;color:#101828!important;text-transform:none!important;letter-spacing:0!important;border:0!important;background:none!important}
html body .mgz:not(#mgx) .mgz-sub{margin:0!important;font-size:14px!important;line-height:1.55!important;color:#475467!important;max-width:760px}
html body .mgz:not(#mgx) .mgz-all{flex:0 0 auto;display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:10px;background:#0b49d8!important;color:#fff!important;font-size:14px;font-weight:700;text-decoration:none!important;white-space:nowrap}
html body .mgz:not(#mgx) .mgz-closed{padding:22px;border-radius:12px;background:#f2f4f7;color:#344054;font-size:14.5px}
html body .mgz:not(#mgx) .mgz-rules{margin:22px 0 0;padding:16px 18px;border:1px solid #e6e9ef;border-radius:12px;background:#fff}
html body .mgz:not(#mgx) .mgz-rules h2{margin:0 0 8px!important;font-size:16px!important;font-weight:800!important;color:#101828!important;text-transform:none!important}
html body .mgz:not(#mgx) .mgz-rules ul{margin:0;padding-left:20px;color:#344054;font-size:14px;line-height:1.7}

/* ---- thẻ giới thiệu ---- */
html body .mgz:not(#mgx) .mgk-list{display:grid;gap:14px}
html body .mgz:not(#mgx) .mgk-card{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);overflow:hidden;border:2px solid var(--mg-accent);border-radius:14px;background:var(--mg-bg);color:var(--mg-text);box-shadow:0 10px 26px -14px rgba(20,18,43,.55)}
html body .mgz:not(#mgx) .mgk-preview{position:relative;display:block;min-height:300px;background:#0d0b1f;overflow:hidden;text-decoration:none!important}
html body .mgz:not(#mgx) .mgk-art{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center 42%;image-rendering:pixelated;border:0!important;border-radius:0!important;margin:0!important}
html body .mgz:not(#mgx) .mgk-theme-dusk .mgk-art{object-position:left center}
html body .mgz:not(#mgx) .mgk-best{position:absolute;left:0;right:0;top:14px;display:flex;flex-direction:column;align-items:center;gap:2px;color:#fff;text-shadow:0 2px 0 #16102e,2px 0 0 #16102e,-2px 0 0 #16102e,0 -2px 0 #16102e;font-family:"Courier New",ui-monospace,monospace;pointer-events:none}
html body .mgz:not(#mgx) .mgk-best small{font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#fff!important}
html body .mgz:not(#mgx) .mgk-best b{font-size:42px;line-height:1;font-weight:800;letter-spacing:.04em}
html body .mgz:not(#mgx) .mgk-info{min-width:0;padding:18px 20px 20px}
html body .mgz:not(#mgx) .mgk-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
html body .mgz:not(#mgx) .mgk-tag{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 9px;border-radius:5px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
html body .mgz:not(#mgx) .mgk-tag .mg-ic{width:12px;height:12px}
html body .mgz:not(#mgx) .mgk-tag-season{background:var(--mg-accent);color:var(--mg-accent-ink)}
html body .mgz:not(#mgx) .mgk-tag-live{color:#7ef0a7;padding:0}
html body .mgz:not(#mgx) .mgk-tag-live i{width:7px;height:7px;border-radius:50%;background:#35d07f;box-shadow:0 0 0 3px rgba(53,208,127,.2)}
html body .mgz:not(#mgx) .mgk-tag-time{border:1px solid var(--mg-line);color:var(--mg-accent);border-radius:999px}
html body .mgz:not(#mgx) .mgk-name{margin:0 0 8px!important;padding:0!important;font-size:26px!important;line-height:1.15!important;font-weight:900!important;letter-spacing:.03em!important;text-transform:uppercase!important;color:var(--mg-accent)!important;text-shadow:0 3px 0 rgba(0,0,0,.35);border:0!important;background:none!important}
html body .mgz:not(#mgx) .mgk-name a{color:inherit!important;text-decoration:none!important;font:inherit!important}
html body .mgz:not(#mgx) .mgk-desc{margin:0 0 14px!important;font-size:14px!important;line-height:1.55!important;color:var(--mg-text)!important;max-width:560px}
html body .mgz:not(#mgx) .mgk-label{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mg-mute)}
html body .mgz:not(#mgx) .mgk-label .mg-ic{width:13px;height:13px;color:var(--mg-accent)}
html body .mgz:not(#mgx) .mgk-prizes,html body .mgz:not(#mgx) .mgk-leaders{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px!important;padding:0!important;list-style:none!important}
html body .mgz:not(#mgx) .mgk-prize,html body .mgz:not(#mgx) .mgk-leader{display:flex;align-items:center;gap:8px;min-width:0;margin:0!important;list-style:none!important}
html body .mgz:not(#mgx) .mgk-prize{flex:1 1 180px;max-width:260px;padding:8px 10px;border:1px solid var(--mg-line);border-radius:10px;background:var(--mg-bg2)}
html body .mgz:not(#mgx) .mgk-prize.mgk-gold{border-color:#d9a514}
html body .mgz:not(#mgx) .mgk-prize-text{min-width:0;font-size:13px;font-weight:700;line-height:1.3;color:#fff;overflow:hidden;text-overflow:ellipsis}
html body .mgz:not(#mgx) .mgk-prize-text small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mg-mute)}
html body .mgz:not(#mgx) .mgk-leader{padding:5px 12px 5px 5px;border-radius:999px;background:var(--mg-bg2);font-size:13px;color:var(--mg-text)}
html body .mgz:not(#mgx) .mgk-leader b{color:var(--mg-accent);font-weight:800;font-variant-numeric:tabular-nums}
html body .mgz:not(#mgx) .mgk-leader-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}
html body .mgz:not(#mgx) .mgk-medal{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:900;color:#3b2a00;background:#9aa0b5;box-shadow:inset 0 -3px 0 rgba(0,0,0,.22)}
html body .mgz:not(#mgx) .mgk-gold .mgk-medal{background:#ffcc33}
html body .mgz:not(#mgx) .mgk-silver .mgk-medal{background:#cfd6e4;color:#222a3a}
html body .mgz:not(#mgx) .mgk-bronze .mgk-medal{background:#d58a4a;color:#2e1500}
html body .mgz:not(#mgx) .mgk-empty{margin:0 0 14px!important;font-size:13.5px!important;color:var(--mg-mute)!important}
html body .mgz:not(#mgx) .mgk-play{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 24px;border-radius:8px;background:var(--mg-accent)!important;color:var(--mg-accent-ink)!important;font-size:15px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;text-decoration:none!important;box-shadow:0 5px 0 rgba(0,0,0,.4);transition:transform .08s,box-shadow .08s}
html body .mgz:not(#mgx) .mgk-play:hover{transform:translateY(-1px)}
html body .mgz:not(#mgx) .mgk-play:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.4)}
html body .mgz:not(#mgx) .mgk-play:focus-visible,html body .mgz:not(#mgx) .mgz-all:focus-visible,html body .mgz:not(#mgx) .mgk-preview:focus-visible{outline:3px solid #84adff;outline-offset:2px}

/* ---- trang chơi (bố cục: thanh tiêu đề, nút chuyển trò, khung game trái, thông tin + bảng xếp hạng phải) ---- */
html body .mgz:not(#mgx) .mgp-bar{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:11px 16px;border-radius:10px;background:linear-gradient(90deg,#0b49d8,#2f7bff 60%,#27b6ff);color:#fff;box-shadow:0 8px 18px -10px rgba(11,73,216,.7)}
html body .mgz:not(#mgx) .mgp-bar-ico{display:flex;color:#fff}
html body .mgz:not(#mgx) .mgp-bar h1{margin:0!important;padding:0!important;font-size:18px!important;line-height:1.3!important;font-weight:800!important;color:#fff!important;text-transform:none!important;letter-spacing:.01em!important;border:0!important;background:none!important}
html body .mgz:not(#mgx) .mgp-lead{margin:0 0 14px!important;font-size:14px!important;line-height:1.5!important;color:#475467!important}
html body .mgz:not(#mgx) .mgp-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
html body .mgz:not(#mgx) .mgp-tab{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 15px;border-radius:999px;border:1px solid #d5dbe6;background:#fff!important;color:#1d2939!important;font-size:13.5px;font-weight:700;text-decoration:none!important;white-space:nowrap}
html body .mgz:not(#mgx) .mgp-tab svg{width:16px;height:16px;color:var(--mg-accent)}
html body .mgz:not(#mgx) .mgp-tab.is-active{border-color:var(--mg-bg);background:var(--mg-bg)!important;color:#fff!important;box-shadow:inset 0 0 0 2px var(--mg-accent)}
html body .mgz:not(#mgx) .mgp-tab:focus-visible{outline:3px solid #84adff;outline-offset:2px}
html body .mgz:not(#mgx) .mgp-layout{display:grid;grid-template-columns:400px minmax(0,1fr);gap:20px;align-items:start}
html body .mgz:not(#mgx) .mgp-layout.mgp-wide{grid-template-columns:minmax(0,560px) minmax(0,1fr)}
html body .mgz:not(#mgx) .mgp-left{min-width:0}
html body .mgz:not(#mgx) .mgp-frame{padding:12px 12px 10px;border-radius:14px;background:var(--mg-bg);box-shadow:0 14px 30px -16px rgba(20,18,43,.7)}
html body .mgz:not(#mgx) .mgp-stage{position:relative;width:100%;margin:0 auto;max-width:calc(74vh * var(--mg-w) / var(--mg-h));aspect-ratio:var(--mg-w) / var(--mg-h);border-radius:8px;overflow:hidden;background:#0d0b1f;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:pointer}
html body .mgz:not(#mgx) .mgp-stage canvas{display:block;width:100%!important;height:100%!important;image-rendering:pixelated}
html body .mgz:not(#mgx) .mgp-frame-foot{display:flex;justify-content:flex-end;margin-top:10px}
html body .mgz:not(#mgx) .mgp-mute{width:38px;height:38px;padding:0;border:0;border-radius:9px;background:#2b2858;color:#fff!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
html body .mgz:not(#mgx) .mgp-mute:focus-visible{outline:3px solid #84adff;outline-offset:2px}
html body .mgz:not(#mgx) .mgp-mute .mgp-mute-x{display:none}
html body .mgz:not(#mgx) .mgp-mute.is-muted .mgp-mute-x{display:inline}
html body .mgz:not(#mgx) .mgp-mute.is-muted .mgp-mute-wave{display:none}
html body .mgz:not(#mgx) .mgp-how{margin:10px 2px 0!important;font-size:13px!important;line-height:1.55!important;color:#667085!important}
html body .mgz:not(#mgx) .mgp-right{min-width:0;display:flex;flex-direction:column;gap:12px}
html body .mgz:not(#mgx) .mgp-note{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.5;color:#1d2939!important}
html body .mgz:not(#mgx) .mgp-note span,html body .mgz:not(#mgx) .mgp-note b,html body .mgz:not(#mgx) .mgp-note small{color:inherit!important}
html body .mgz:not(#mgx) .mgp-note-me{justify-content:center;text-align:center;background:#eef3ff;border:1px solid #dbe6ff}
html body .mgz:not(#mgx) .mgp-note-season{background:#fffbeb;border:1px solid #f5c84c}
html body .mgz:not(#mgx) .mgp-note-season .mg-ic{flex:0 0 16px;margin-top:3px;color:#b45309}
html body .mgz:not(#mgx) .mgp-note-season small{font-size:12.5px;color:#667085!important}
html body .mgz:not(#mgx) .mgp-count{font-variant-numeric:tabular-nums;white-space:nowrap}
html body .mgz:not(#mgx) .mgp-login{color:#0b49d8!important;font-weight:800;text-decoration:underline!important}
html body .mgz:not(#mgx) .mgp-status{min-height:0;margin:0!important;font-size:14px!important;line-height:1.5!important;font-weight:600!important;color:#1d2939!important;text-align:center}
html body .mgz:not(#mgx) .mgp-status:empty{display:none}
html body .mgz:not(#mgx) .mgp-status a{color:#0b49d8!important;font-weight:800;text-decoration:underline!important}
html body .mgz:not(#mgx) .mgp-card{padding:14px;border:1px solid #e6e9ef;border-radius:12px;background:#fff}
html body .mgz:not(#mgx) .mgp-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;font-size:16px;font-weight:700;color:#101828!important}
html body .mgz:not(#mgx) .mgp-card-head > span{color:inherit!important}
html body .mgz:not(#mgx) .mgp-card-head .mg-ic{width:18px;height:18px;color:#d97706}
html body .mgz:not(#mgx) .mgp-badge{padding:3px 9px;border-radius:999px;background:#eef0ff;color:#4338ca!important;font-size:11.5px;font-weight:600}
html body .mgz:not(#mgx) .mgp-badge b{color:inherit!important;font-weight:700}
html body .mgz:not(#mgx) .mgp-high{margin-left:auto;font-size:12.5px;font-weight:600;color:#667085!important}
html body .mgz:not(#mgx) .mgp-high b{color:#101828!important}
html body .mgz:not(#mgx) .mgp-top,html body .mgz:not(#mgx) .mgp-prizes{margin:0!important;padding:0!important;list-style:none!important}
html body .mgz:not(#mgx) .mgp-top{max-height:560px;overflow:auto}
html body .mgz:not(#mgx) .mgp-top li,html body .mgz:not(#mgx) .mgp-prizes li{display:flex;align-items:center;gap:12px;margin:0 0 6px!important;padding:8px 12px;border-radius:10px;background:#f5f6fa;border-left:3px solid transparent;list-style:none!important;color:#1d2939!important}
html body .mgz:not(#mgx) .mgp-top li:last-child,html body .mgz:not(#mgx) .mgp-prizes li:last-child{margin-bottom:0!important}
html body .mgz:not(#mgx) .mgp-top .mgp-top-1,html body .mgz:not(#mgx) .mgp-prizes .mgp-gold{background:#fff8e1;border-left-color:#f5b301}
html body .mgz:not(#mgx) .mgp-top .mgp-top-2,html body .mgz:not(#mgx) .mgp-prizes .mgp-silver{background:#f1f4f9;border-left-color:#98a2b3}
html body .mgz:not(#mgx) .mgp-top .mgp-top-3,html body .mgz:not(#mgx) .mgp-prizes .mgp-bronze{background:#fdf0e6;border-left-color:#d58a4a}
html body .mgz:not(#mgx) .mgp-top li.is-me{box-shadow:inset 0 0 0 2px #0b49d8}
html body .mgz:not(#mgx) .mgp-top-rank{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;background:#3f3ab0;color:#fff!important;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
html body .mgz:not(#mgx) .mgp-top-1 .mgp-top-rank,html body .mgz:not(#mgx) .mgp-gold .mgp-top-rank{background:#ffcc33;color:#3b2a00!important}
html body .mgz:not(#mgx) .mgp-top-2 .mgp-top-rank,html body .mgz:not(#mgx) .mgp-silver .mgp-top-rank{background:#cfd6e4;color:#222a3a!important}
html body .mgz:not(#mgx) .mgp-top-3 .mgp-top-rank,html body .mgz:not(#mgx) .mgp-bronze .mgp-top-rank{background:#d58a4a;color:#2e1500!important}
html body .mgz:not(#mgx) .mgp-top-who{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
html body .mgz:not(#mgx) .mgp-top-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;color:#101828!important}
html body .mgz:not(#mgx) .mgp-prizes .mgp-top-name{white-space:normal}
html body .mgz:not(#mgx) .mgp-top-who small{font-size:11.5px;color:#667085!important}
html body .mgz:not(#mgx) .mgp-top-score{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}
html body .mgz:not(#mgx) .mgp-top-score b{font-size:15px;font-weight:800;color:#101828!important;font-variant-numeric:tabular-nums}
html body .mgz:not(#mgx) .mgp-top-score small{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3!important}
html body .mgz:not(#mgx) .mgp-top .mgp-top-empty{display:block;background:transparent;border:0;padding:4px 0;color:#667085!important;font-size:14px}

/* các mục trong danh sách (li) của thẻ giới thiệu bị web ép màu bằng !important nên phải ghi rõ màu ở đây */
html body .mgz:not(#mgx) .mgk-leader,html body .mgz:not(#mgx) .mgk-leader-name{color:var(--mg-text)!important}
html body .mgz:not(#mgx) .mgk-leader b{color:var(--mg-accent)!important}
html body .mgz:not(#mgx) .mgk-prize,html body .mgz:not(#mgx) .mgk-prize-text{color:#fff!important}
html body .mgz:not(#mgx) .mgk-prize-text small{color:var(--mg-mute)!important}
html body .mgz:not(#mgx) .mgz-rules li{color:#344054!important}

@media (max-width:991px){
    html body .mgz:not(#mgx) .mgp-layout,html body .mgz:not(#mgx) .mgp-layout.mgp-wide{grid-template-columns:minmax(0,1fr)}
    html body .mgz:not(#mgx) .mgp-tall .mgp-frame{max-width:420px;margin:0 auto}
}
@media (max-width:767px){
    html body .mgz:not(#mgx){margin:16px 0}
    html body .mgz:not(#mgx) .mgz-head{align-items:flex-start;flex-direction:column;gap:10px}
    html body .mgz:not(#mgx) .mgz-title{font-size:19px!important}
    html body .mgz:not(#mgx) .mgk-card{grid-template-columns:minmax(0,1fr)}
    html body .mgz:not(#mgx) .mgk-preview{min-height:0;aspect-ratio:16 / 9}
    html body .mgz:not(#mgx) .mgk-best b{font-size:34px}
    html body .mgz:not(#mgx) .mgk-info{padding:14px 14px 16px}
    html body .mgz:not(#mgx) .mgk-name{font-size:21px!important}
    html body .mgz:not(#mgx) .mgk-prize{flex-basis:100%;max-width:none}
    html body .mgz:not(#mgx) .mgk-play{width:100%;justify-content:center}
    html body .mgz:not(#mgx) .mgp-bar{padding:10px 13px}
    html body .mgz:not(#mgx) .mgp-bar h1{font-size:16px!important}
    html body .mgz:not(#mgx) .mgp-tab{min-height:36px;padding:0 12px;font-size:13px}
    html body .mgz:not(#mgx) .mgp-frame{padding:10px 10px 8px}
    html body .mgz:not(#mgx) .mgp-high{margin-left:0;flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){html body .mgz:not(#mgx) .mgk-play{transition:none}}

/* ---- bảng xếp hạng top 10: bục vinh danh top 3 + danh sách hạng 4-10 ---- */
html body .mgz:not(#mgx) .mgb-badge{position:relative;display:inline-flex;flex:0 0 auto;line-height:0}
html body .mgz:not(#mgx) .mgb-badge svg{display:block;width:100%;height:100%}
html body .mgz:not(#mgx) .mgb-badge b{position:absolute;left:0;right:0;text-align:center;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
html body .mgz:not(#mgx) .mgb-badge-medal{width:56px;height:68px;filter:drop-shadow(0 4px 6px rgba(16,24,40,.22))}
html body .mgz:not(#mgx) .mgb-badge-medal b{top:34px;font-size:20px;color:#5b3a00!important}
html body .mgz:not(#mgx) .mgb-badge-2 b{color:#334155!important}
html body .mgz:not(#mgx) .mgb-badge-3 b{color:#5a2e08!important}
html body .mgz:not(#mgx) .mgb-badge-medal.is-empty{filter:grayscale(1) opacity(.45)}
html body .mgz:not(#mgx) .mgb-badge-shield{width:34px;height:39px}
html body .mgz:not(#mgx) .mgb-badge-shield b{top:11px;font-size:14px;color:#fff!important}
html body .mgz:not(#mgx) .mgb-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end;padding:6px 2px 0}
html body .mgz:not(#mgx) .mgb-pod{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}
html body .mgz:not(#mgx) .mgb-pod-1 .mgb-badge-medal{width:72px;height:87px}
html body .mgz:not(#mgx) .mgb-pod-1 .mgb-badge-medal b{top:44px;font-size:26px}
html body .mgz:not(#mgx) .mgb-pod-name{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;max-width:100%;margin-top:6px;font-size:14.5px;font-weight:800;color:#101828!important;overflow-wrap:anywhere}
html body .mgz:not(#mgx) .mgb-pod.is-empty .mgb-pod-name{font-weight:600;color:#98a2b3!important}
html body .mgz:not(#mgx) .mgb-pod-score{display:flex;align-items:baseline;justify-content:center;gap:4px;min-height:26px;margin-top:1px}
html body .mgz:not(#mgx) .mgb-pod-score b{font-size:20px;font-weight:900;color:#101828!important;font-variant-numeric:tabular-nums}
html body .mgz:not(#mgx) .mgb-pod-1 .mgb-pod-score b{font-size:24px;color:#b45309!important}
html body .mgz:not(#mgx) .mgb-pod-score small{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#98a2b3!important}
html body .mgz:not(#mgx) .mgb-pod.is-empty .mgb-pod-score small{text-transform:none;letter-spacing:0;font-weight:500;font-size:12px}
html body .mgz:not(#mgx) .mgb-pod-base{width:100%;margin-top:8px;display:flex;align-items:flex-start;justify-content:center;padding-top:9px;border-radius:12px 12px 0 0;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
html body .mgz:not(#mgx) .mgb-pod-base span{color:inherit!important}
html body .mgz:not(#mgx) .mgb-pod-1 .mgb-pod-base{height:78px;background:linear-gradient(180deg,#ffd75a,#f5a700);color:#5b3a00!important;box-shadow:inset 0 3px 0 rgba(255,255,255,.55)}
html body .mgz:not(#mgx) .mgb-pod-2 .mgb-pod-base{height:56px;background:linear-gradient(180deg,#e8edf4,#b9c4d3);color:#334155!important;box-shadow:inset 0 3px 0 rgba(255,255,255,.7)}
html body .mgz:not(#mgx) .mgb-pod-3 .mgb-pod-base{height:42px;background:linear-gradient(180deg,#f3c093,#d38a45);color:#5a2e08!important;box-shadow:inset 0 3px 0 rgba(255,255,255,.45)}
html body .mgz:not(#mgx) .mgb-pod.is-empty .mgb-pod-base{filter:grayscale(.75) opacity(.55)}
html body .mgz:not(#mgx) .mgb-pod.is-me .mgb-pod-name{color:#0b49d8!important}
html body .mgz:not(#mgx) .mgb-you{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;background:#0b49d8;color:#fff!important;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;line-height:1.5}
html body .mgz:not(#mgx) .mgb-gift{display:inline-flex;align-items:center;gap:4px;max-width:100%;margin-top:4px;padding:2px 9px;border-radius:999px;border:1px solid #f5c84c;background:#fffbeb;color:#92400e!important;font-size:12px;font-weight:700;white-space:nowrap}
html body .mgz:not(#mgx) .mgb-gift span{color:inherit!important;overflow:hidden;text-overflow:ellipsis}
html body .mgz:not(#mgx) .mgb-gift .mg-ic{width:13px;height:13px;flex:0 0 13px;color:#d97706}
html body .mgz:not(#mgx) .mgb-list{margin:0!important;padding:10px 0 0!important;list-style:none!important;border-top:1px solid #eef0f4}
html body .mgz:not(#mgx) .mgb-list .mgb-row{display:flex;align-items:center;gap:12px;margin:0 0 6px!important;padding:8px 14px 8px 10px;border-radius:12px;background:#f7f8fb;border:1px solid #eef0f4;list-style:none!important;color:#1d2939!important;transition:transform .12s,box-shadow .12s}
html body .mgz:not(#mgx) .mgb-list .mgb-row:last-child{margin-bottom:0!important}
html body .mgz:not(#mgx) .mgb-list .mgb-row:hover{transform:translateY(-1px);box-shadow:0 6px 14px -8px rgba(16,24,40,.35)}
html body .mgz:not(#mgx) .mgb-list .mgb-row.is-me{border-color:#0b49d8;background:#eef3ff}
html body .mgz:not(#mgx) .mgb-who{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
html body .mgz:not(#mgx) .mgb-who b{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:800;color:#101828!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .mgz:not(#mgx) .mgb-who small{font-size:11.5px;color:#667085!important}
html body .mgz:not(#mgx) .mgb-row .mgb-gift{margin-top:0}
html body .mgz:not(#mgx) .mgb-score{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}
html body .mgz:not(#mgx) .mgb-score b{font-size:17px;font-weight:900;color:#101828!important;font-variant-numeric:tabular-nums}
html body .mgz:not(#mgx) .mgb-score small{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3!important}
html body .mgz:not(#mgx) .mgb-more{margin:0!important;padding:12px 4px 2px!important;border-top:1px solid #eef0f4;font-size:13.5px!important;line-height:1.5!important;color:#667085!important;text-align:center}
html body .mgz:not(#mgx) .mgb-foot{margin:10px 0 0!important;font-size:12px!important;color:#98a2b3!important;text-align:center}

/* ---- phần thưởng top bảng xếp hạng ---- */
html body .mgz:not(#mgx) .mgp-rewards{margin-top:18px}
html body .mgz:not(#mgx) .mgr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body .mgz:not(#mgx) .mgr-card{overflow:hidden;border-radius:12px;border:1px solid #e6e9ef;background:#fff;--mgr-a:#3b3791;--mgr-b:#1f1c52;--mgr-r:#e0457b}
html body .mgz:not(#mgx) .mgr-gold{border-color:#f0c64a;--mgr-a:#8a6200;--mgr-b:#3d2a00;--mgr-r:#d63a3a}
html body .mgz:not(#mgx) .mgr-silver{border-color:#c5cfdc;--mgr-a:#56657a;--mgr-b:#232c3a;--mgr-r:#3b6fd8}
html body .mgz:not(#mgx) .mgr-bronze{border-color:#dfa873;--mgr-a:#8a4a1c;--mgr-b:#3a1c08;--mgr-r:#1f9d57}
html body .mgz:not(#mgx) .mgr-banner{position:relative;display:flex;align-items:center;justify-content:center;height:150px;background:repeating-conic-gradient(from 0deg at 50% 46%,rgba(255,255,255,.09) 0 12deg,transparent 12deg 24deg),radial-gradient(circle at 50% 44%,var(--mgr-a),var(--mgr-b))}
html body .mgz:not(#mgx) .mgr-emblem{display:flex;align-items:center;justify-content:center;margin-bottom:20px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.4))}
html body .mgz:not(#mgx) .mgr-emblem > svg{width:88px;height:88px}
html body .mgz:not(#mgx) .mgr-emblem .mgb-badge-medal{width:72px;height:87px;filter:none}
html body .mgz:not(#mgx) .mgr-emblem .mgb-badge-medal b{top:44px;font-size:26px}
html body .mgz:not(#mgx) .mgr-emblem .mgb-badge-shield{width:70px;height:80px}
html body .mgz:not(#mgx) .mgr-emblem .mgb-badge-shield b{top:24px;font-size:28px}
html body .mgz:not(#mgx) .mgr-ribbon{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);min-width:62%;padding:4px 12px;background:var(--mgr-r);color:#fff!important;font-size:12.5px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;text-align:center;white-space:nowrap;box-shadow:0 3px 0 rgba(0,0,0,.25);clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%,9px 50%)}
html body .mgz:not(#mgx) .mgr-body{display:flex;flex-direction:column;gap:3px;padding:11px 13px 13px}
html body .mgz:not(#mgx) .mgr-body small{font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#667085!important}
html body .mgz:not(#mgx) .mgr-body b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.35;font-weight:700;color:#101828!important}
html body .mgz:not(#mgx) .mgr-value{font-size:12px;color:#667085!important}
html body .mgz:not(#mgx) .mgr-value i{font-style:normal;font-weight:800;color:#0a7d43!important}

/* ---- mục minigame ở trang chủ: rộng bằng khối lưu ý phía trên; trên điện thoại thẻ thu gọn để không đẩy sản phẩm xuống quá xa ---- */
html body .mgz:not(#mgx).mgz-home{margin:14px 0 10px}
html body .mgz:not(#mgx) .mgz-inner{width:min(1230px,calc(100% - 24px));max-width:1230px;margin:0 auto}
@media (max-width:767px){
    html body .mgz:not(#mgx) .mgb-podium{gap:6px}
    html body .mgz:not(#mgx) .mgb-pod-name{font-size:13px}
    html body .mgz:not(#mgx) .mgb-pod-score b{font-size:17px}
    html body .mgz:not(#mgx) .mgb-pod-1 .mgb-pod-score b{font-size:20px}
    html body .mgz:not(#mgx) .mgb-pod-base{font-size:10px;letter-spacing:.04em}
    html body .mgz:not(#mgx) .mgb-list .mgb-row{gap:9px;padding:7px 10px 7px 8px}
    html body .mgz:not(#mgx) .mgb-row .mgb-gift{display:none}
    html body .mgz:not(#mgx) .mgr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    html body .mgz:not(#mgx) .mgr-banner{height:104px}
    html body .mgz:not(#mgx) .mgr-emblem > svg{width:60px;height:60px}
    html body .mgz:not(#mgx) .mgr-ribbon{font-size:10.5px;letter-spacing:.1em;min-width:78%}
    html body .mgz:not(#mgx).mgz-home .mgk-card{grid-template-columns:118px minmax(0,1fr)}
    html body .mgz:not(#mgx).mgz-home .mgk-preview{aspect-ratio:auto;min-height:150px}
    html body .mgz:not(#mgx).mgz-home .mgk-best{top:8px}
    html body .mgz:not(#mgx).mgz-home .mgk-best small{font-size:8.5px;letter-spacing:.08em}
    html body .mgz:not(#mgx).mgz-home .mgk-best b{font-size:22px}
    html body .mgz:not(#mgx).mgz-home .mgk-info{padding:10px 12px 12px}
    html body .mgz:not(#mgx).mgz-home .mgk-tags{gap:5px;margin-bottom:6px}
    html body .mgz:not(#mgx).mgz-home .mgk-tag{min-height:20px;padding:0 7px;font-size:10px}
    html body .mgz:not(#mgx).mgz-home .mgk-tag-live{display:none}
    html body .mgz:not(#mgx).mgz-home .mgk-name{font-size:17px!important;margin-bottom:6px!important}
    html body .mgz:not(#mgx).mgz-home .mgk-desc,html body .mgz:not(#mgx).mgz-home .mgk-label,html body .mgz:not(#mgx).mgz-home .mgk-prizes,html body .mgz:not(#mgx).mgz-home .mgk-empty{display:none!important}
    html body .mgz:not(#mgx).mgz-home .mgk-leaders{flex-wrap:nowrap;overflow:hidden;gap:5px;margin-bottom:9px!important}
    html body .mgz:not(#mgx).mgz-home .mgk-leader{flex:0 0 auto;padding:3px 9px 3px 3px;font-size:11.5px}
    html body .mgz:not(#mgx).mgz-home .mgk-leader:nth-child(n+2){display:none}
    html body .mgz:not(#mgx).mgz-home .mgk-medal{flex-basis:20px;width:20px;height:20px;font-size:10.5px}
    html body .mgz:not(#mgx).mgz-home .mgk-play{min-height:38px;font-size:13px;padding:0 14px}
    html body .mgz:not(#mgx).mgz-home .mgz-sub{display:none}
}
@media (prefers-reduced-motion:reduce){html body .mgz:not(#mgx) .mgb-list .mgb-row{transition:none}}
/* chữ hoa bị web ép về chữ thường ở vài phần tử nên ghi rõ lại */
html body .mgz:not(#mgx) .mgr-ribbon, html body .mgz:not(#mgx) .mgb-pod-base span, html body .mgz:not(#mgx) .mgr-body small, html body .mgz:not(#mgx) .mgb-score small, html body .mgz:not(#mgx) .mgb-pod-score small, html body .mgz:not(#mgx) .mgk-name a, html body .mgz:not(#mgx) .mgk-play, html body .mgz:not(#mgx) .mgk-tag, html body .mgz:not(#mgx) .mgk-label, html body .mgz:not(#mgx) .mgb-you{text-transform:uppercase!important}
html body .mgz:not(#mgx) .mgb-pod.is-empty .mgb-pod-score small{text-transform:none!important}
/* ---- bảng xếp hạng dạng danh sách: mỗi người một hàng; top 3 có nền vàng / bạc / đồng và vạch màu bên trái ---- */
html body .mgz:not(#mgx) .mgb-list{border-top:0;padding-top:0!important}
html body .mgz:not(#mgx) .mgb-list .mgb-row{min-height:64px;gap:14px;margin-bottom:8px!important;padding:8px 16px 8px 12px;border-left-width:4px;background:#f8f9fc;border-color:#eceef4;border-left-color:#e3e6ee}
html body .mgz:not(#mgx) .mgb-list .mgb-row.mgb-top-1{background:#fff8dc;border-color:#f3dc8d;border-left-color:#f5b301}
html body .mgz:not(#mgx) .mgb-list .mgb-row.mgb-top-2{background:#f1f4f9;border-color:#d8dfe9;border-left-color:#9aa7b8}
html body .mgz:not(#mgx) .mgb-list .mgb-row.mgb-top-3{background:#fdefe4;border-color:#f0cba9;border-left-color:#d58a4a}
html body .mgz:not(#mgx) .mgb-list .mgb-row.is-me{box-shadow:0 0 0 2px #0b49d8}
html body .mgz:not(#mgx) .mgb-row .mgb-badge-medal{width:40px;height:48px;filter:drop-shadow(0 2px 3px rgba(16,24,40,.2))}
html body .mgz:not(#mgx) .mgb-row .mgb-badge-medal b{top:24px;font-size:14px}
html body .mgz:not(#mgx) .mgb-row .mgb-badge-shield{width:36px;height:41px;margin:0 2px}
html body .mgz:not(#mgx) .mgb-row .mgb-badge-shield b{top:12px;font-size:14px}
html body .mgz:not(#mgx) .mgb-row .mgb-who b{font-size:15px}
html body .mgz:not(#mgx) .mgb-row .mgb-who small{font-size:12px}
html body .mgz:not(#mgx) .mgb-row .mgb-gift{padding:4px 11px;border-color:#c9b6f7;background:#fff;color:#4c3aa8!important;font-size:12.5px}
html body .mgz:not(#mgx) .mgb-row .mgb-gift .mg-ic{color:#7c5ce6}
html body .mgz:not(#mgx) .mgb-top-1 .mgb-gift{border-color:#f0c64a;color:#8a5a00!important}
html body .mgz:not(#mgx) .mgb-top-1 .mgb-gift .mg-ic{color:#d99500}
html body .mgz:not(#mgx) .mgb-top-2 .mgb-gift{border-color:#b8c4d4;color:#3f4b5e!important}
html body .mgz:not(#mgx) .mgb-top-2 .mgb-gift .mg-ic{color:#64748b}
html body .mgz:not(#mgx) .mgb-top-3 .mgb-gift{border-color:#dfa873;color:#7c4310!important}
html body .mgz:not(#mgx) .mgb-top-3 .mgb-gift .mg-ic{color:#b8691f}
html body .mgz:not(#mgx) .mgb-row .mgb-score b{font-size:19px}
@media (max-width:767px){
    html body .mgz:not(#mgx) .mgb-list .mgb-row{min-height:58px;gap:10px;padding:7px 12px 7px 9px}
    html body .mgz:not(#mgx) .mgb-row .mgb-gift{display:inline-flex;padding:3px 8px}
}

/* MGWIDE 12/11/2026: trò khung ngang (mèo) trên máy tính - cột game rộng hơn để khung chơi bớt lùn (536x197 -> ~730x267 ở màn 1400) */
@media (min-width:992px){html body .mgz:not(#mgx) .mgp-layout.mgp-wide{grid-template-columns:minmax(0,1.9fr) minmax(300px,1fr)}}
/* MGPRIZE2 12/11/2026: thẻ phần thưởng có ảnh quà do admin tải lên */
html body .mgz:not(#mgx) .mgr-photo img{display:block;width:112px;height:112px;object-fit:cover;border-radius:16px;border:3px solid rgba(255,255,255,.92);background:#fff}
@media (max-width:767px){html body .mgz:not(#mgx) .mgr-photo img{width:74px;height:74px;border-radius:12px;border-width:2px}}
