/* MiniGame hub + "Trang trí cây thông" (Christmas game). Shop winter style: glass frame, cream cards with gold hairline, navy stage. */
body[data-bb-route="information/bb_xmas_game"] .bbx-snow{display:none!important}
html body.version-4 .xg{box-sizing:border-box;width:min(1380px,calc(100% - 32px));margin:24px auto 48px;padding:34px 36px 30px;border:1px solid rgba(232,194,122,.22);border-radius:22px;background:rgba(8,18,40,.5);color:#eaf0fc;font-family:var(--bbx-sans,Inter,system-ui,sans-serif);box-shadow:0 14px 34px rgba(2,8,20,.35);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html body.version-4 .xg *{box-sizing:border-box}
html body.version-4 .xg-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid rgba(232,194,122,.2);font-size:13px;color:#c4d0e8}
html body.version-4 .xg-crumb a{color:#f0d79a;text-decoration:none}html body.version-4 .xg-crumb a:hover{text-decoration:underline}html body.version-4 .xg-crumb [aria-current]{color:#fff4df}
html body.version-4 .xg-crumb .xg-cakes{margin-left:auto}
html body.version-4 .xg-intro{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:22px 0 26px}
html body.version-4 .xg-eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;color:#e8c27a}html body.version-4 .xg-eyebrow i{margin-right:8px;font-style:normal;font-size:15px}html body.version-4 .xg-eyebrow.small{font-size:10px}
html body.version-4 .xg h1{margin:10px 0 4px;font-size:clamp(30px,3.4vw,46px);font-weight:800;line-height:1.15;letter-spacing:-1.2px;color:#fff4df}html body.version-4 .xg h1 span{font-weight:500}
html body.version-4 .xg-lead{max-width:430px}html body.version-4 .xg-lead p{margin:0 0 12px;font-size:14px;line-height:1.75;color:#c4d0e8}
html body.version-4 .xg-tags{display:flex;flex-wrap:wrap;gap:8px}html body.version-4 .xg-tags span{padding:5px 12px;border:1px solid rgba(232,194,122,.35);border-radius:999px;font-size:12px;color:#f0d79a}
html body.version-4 .xg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 26px;border:0;border-radius:999px;font:700 15px var(--bbx-sans,Inter,system-ui,sans-serif);text-decoration:none;cursor:pointer;transition:transform .15s,filter .15s,box-shadow .15s}
html body.version-4 .xg-btn.primary{background:linear-gradient(135deg,#8f1d33,#b2263f);color:#fff4df!important;box-shadow:0 8px 20px rgba(143,29,51,.35)}
html body.version-4 .xg-btn.primary:hover{transform:translateY(-1px);filter:brightness(1.08)}
html body.version-4 .xg-btn.ghost{background:transparent;color:#101f3b!important;border:1px solid #101f3b}html body.version-4 .xg-btn.ghost:hover{background:rgba(16,31,59,.07)}
html body.version-4 .xg-warn{margin:10px 0;font-size:13px;line-height:1.5;color:#a02034}html body.version-4 .xg-note{margin:8px 0 0;font-size:12.5px;line-height:1.6;color:#475569}

/* layout */
.xg-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}
html body.version-4 .xg-stage{padding:14px;border:1px solid rgba(232,194,122,.4);border-radius:22px;background:#0b1738;box-shadow:0 18px 40px rgba(2,8,20,.45)}
html body.version-4 .xg-hud{display:grid;grid-template-columns:1.5fr 1fr .7fr .8fr auto;gap:10px;align-items:stretch;margin-bottom:12px}
html body.version-4 .xg-stat{position:relative;padding:8px 14px 10px;border-radius:14px;background:rgba(255,255,255,.07);color:#fff4df}
html body.version-4 .xg-stat span{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;color:#9fb1d6}
html body.version-4 .xg-stat b{display:block;font-size:26px;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums}
html body.version-4 .xg-time .xg-bar{display:block;height:5px;margin-top:5px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}html body.version-4 .xg-time .xg-bar u{display:block;height:100%;width:100%;border-radius:3px;background:linear-gradient(90deg,#ffd45c,#ff9d4d);text-decoration:none}
html body.version-4 .xg-time.hot b{color:#ff7b8b;animation:xgBeat .5s ease-in-out infinite alternate}
html body.version-4 .xg-coins b{color:#ffd45c}
html body.version-4 .xg-combo{opacity:.55;transition:opacity .2s,background .2s}html body.version-4 .xg-combo.on{opacity:1;background:rgba(255,212,92,.2)}html body.version-4 .xg-combo.on b{color:#ffb347}
html body.version-4 .xg-snd{align-self:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff4df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5Z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E") center/20px no-repeat;cursor:pointer}
html body.version-4 .xg-snd.off{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff4df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5Z'/%3E%3Cpath d='m16 9 5 6m0-6-5 6'/%3E%3C/svg%3E");opacity:.7}
html body.version-4 .xg-field{position:relative;overflow:hidden;border-radius:18px;background:#0a1838;touch-action:manipulation;user-select:none;-webkit-user-select:none}
html body.version-4 .xg-field canvas{display:block;width:100%;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body.version-4 .xg-toast{position:absolute;left:50%;bottom:12px;max-width:90%;padding:8px 16px;border-radius:999px;background:rgba(255,250,241,.96);color:#101f3b;font-size:13px;font-weight:700;opacity:0;transform:translate(-50%,10px);transition:opacity .2s,transform .2s;pointer-events:none;z-index:3}
html body.version-4 .xg-toast.show{opacity:1;transform:translate(-50%,0)}
html body.version-4 .xg-banner{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(34px,7vw,76px);font-weight:900;letter-spacing:-1px;color:#fff4df;text-shadow:0 4px 24px rgba(0,0,0,.6),0 0 40px rgba(255,212,92,.5);pointer-events:none;z-index:4}
html body.version-4 .xg-banner[hidden]{display:none}html body.version-4 .xg-banner.pop{animation:xgPop .7s ease-out both}
html body.version-4 .xg-panel{position:absolute;inset:0;z-index:5;display:none;place-items:center;overflow-y:auto;padding:12px;background:rgba(6,14,34,.5);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
html body.version-4 .xg-panel.on{display:grid}
html body.version-4 .xg-card-pop{width:min(440px,100%);margin:auto;padding:22px 22px 20px;border:1px solid rgba(201,162,84,.7);border-radius:22px;background:#fffaf1;color:#101f3b;text-align:center;box-shadow:0 24px 60px rgba(2,8,20,.5)}
html body.version-4 .xg-card-pop .xg-eyebrow{color:#8f1d33}
html body.version-4 .xg-card-pop h2{margin:6px 0 4px;font-size:24px;font-weight:800;color:#101f3b}html body.version-4 .xg-card-pop p{margin:6px 0;font-size:14px;line-height:1.55;color:#334155}
html body.version-4 .xg-card-pop .xg-btn{width:100%;margin-top:10px}
html body.version-4 .xg-how{margin:12px 0 4px;padding:0;list-style:none;counter-reset:s;text-align:left}
html body.version-4 .xg-how li{position:relative;margin:7px 0;padding:8px 10px 8px 42px;border-radius:12px;background:#fff;border:1px solid #eadfc8;font-size:13px;line-height:1.45;color:#101f3b;counter-increment:s}
html body.version-4 .xg-how li::before{content:counter(s);position:absolute;left:10px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:50%;background:#101f3b;color:#e8c27a;font-size:12px;font-weight:800;line-height:24px;text-align:center}
html body.version-4 .xg-spin{width:34px;height:34px;margin:6px auto 10px;border:3px solid #eadfc8;border-top-color:#8f1d33;border-radius:50%;animation:xgSpin .8s linear infinite}
html body.version-4 .xg-big{margin:8px 0 2px}html body.version-4 .xg-big b{display:block;font-size:60px;font-weight:900;line-height:1;color:#8f1d33}html body.version-4 .xg-big span{font-size:13px;font-weight:700;color:#475569;letter-spacing:.04em}
html body.version-4 .xg-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 4px}html body.version-4 .xg-chips span{padding:5px 11px;border-radius:999px;background:#fff;border:1px solid #eadfc8;font-size:12.5px;color:#334155}html body.version-4 .xg-chips b{color:#101f3b}
html body.version-4 .xg-reward{margin:12px 0 2px!important;padding:11px 14px;border-radius:14px;font-size:20px!important;font-weight:800;color:#101f3b!important}html body.version-4 .xg-reward.got{background:linear-gradient(135deg,#ffe9a8,#ffd45c);color:#5b3b00!important;box-shadow:0 6px 18px rgba(224,165,46,.4);animation:xgPop .6s ease-out both}html body.version-4 .xg-reward.none{background:#eef1f7}
html body.version-4 .xg-actions{display:flex;flex-direction:column;gap:2px;margin-top:6px}

/* tray */
.xg-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
html body.version-4 .xg-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;padding:6px 4px 8px;border:2px solid rgba(201,162,84,.65);border-radius:16px;background:#fffaf1;color:#101f3b;font:700 12.5px var(--bbx-sans,Inter,system-ui,sans-serif);cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s;-webkit-tap-highlight-color:transparent}
html body.version-4 .xg-item canvas{width:48px;height:48px}
html body.version-4 .xg-item kbd{position:absolute;top:5px;right:7px;font:700 10px var(--bbx-sans,Inter,system-ui,sans-serif);color:#8a96ad;background:none;padding:0}
html body.version-4 .xg-item:hover{transform:translateY(-2px)}
html body.version-4 .xg-item.on{border-color:#ffd45c;background:#fff;transform:translateY(-4px);box-shadow:0 0 0 3px rgba(255,212,92,.6),0 10px 22px rgba(0,0,0,.35)}
html body.version-4 .xg-tray.nudge{animation:xgNudge .45s}

/* side cards */
.xg-side{display:grid;gap:16px}
html body.version-4 .xg-card{padding:18px 20px;border:1px solid rgba(201,162,84,.6);border-radius:20px;background:#fffaf1;color:#101f3b;box-shadow:0 10px 28px rgba(2,8,20,.3)}
html body.version-4 .xg-card p{margin:0 0 10px;font-size:13.5px;line-height:1.6;color:#334155}
html body.version-4 .xg-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:10.5px;font-weight:800;letter-spacing:.14em;color:#8f1d33}html body.version-4 .xg-card-head i{font-style:normal;color:#c9a254;font-size:16px}
html body.version-4 .xg-ladder{display:grid;gap:8px;margin:12px 0}
html body.version-4 .xg-tier{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:9px 12px;border-radius:14px;background:#fff;border:1px solid #eadfc8}
html body.version-4 .xg-tier b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#101f3b;color:#e8c27a;font-size:12px}html body.version-4 .xg-tier span{font-size:13px;color:#475569}html body.version-4 .xg-tier strong{font-size:15px;color:#8f1d33}
html body.version-4 .xg-today strong{display:block;font-size:18px;margin:6px 0 2px}html body.version-4 .xg-today span{display:block;font-size:12.5px;color:#475569;margin-top:2px}
html body.version-4 .xg-pips{display:flex;gap:8px}html body.version-4 .xg-pips i{width:26px;height:26px;border-radius:50%;border:2px solid #c9a254;background:transparent}html body.version-4 .xg-pips i.on{background:radial-gradient(circle at 35% 30%,#ffe9a8,#ffd45c);}
html body.version-4 .xg-score ul{margin:0;padding:0;list-style:none}html body.version-4 .xg-score li{position:relative;margin:7px 0;padding-left:18px;font-size:13px;line-height:1.5;color:#334155}html body.version-4 .xg-score li::before{content:"✦";position:absolute;left:0;color:#c9a254;font-size:11px;top:2px}
html body.version-4 .xg-nojs{padding:20px;color:#fff4df}

/* hub */
.mg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
html body.version-4 .mg-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(201,162,84,.65);border-radius:24px;background:#fffaf1;color:#101f3b;box-shadow:0 14px 34px rgba(2,8,20,.35);transition:transform .2s,box-shadow .2s}
html body.version-4 .mg-card:hover{transform:translateY(-4px);box-shadow:0 22px 44px rgba(2,8,20,.45)}
html body.version-4 .mg-art{position:relative;display:block;aspect-ratio:5/3;overflow:hidden}html body.version-4 .mg-art svg{display:block;width:100%;height:100%}
html body.version-4 .mg-halloween .mg-art{display:grid;place-items:center;background:radial-gradient(circle at 70% 25%,#ffb347 0,transparent 38%),linear-gradient(160deg,#241345,#4b2a73 55%,#d9742b)}
html body.version-4 .mg-halloween .mg-art img{height:88%;width:auto;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
html body.version-4 .mg-badge{position:absolute;top:14px;left:14px;padding:5px 12px;border-radius:999px;background:linear-gradient(135deg,#8f1d33,#b2263f);color:#fff4df;font-size:11px;font-weight:800;letter-spacing:.1em}
html body.version-4 .mg-body{display:flex;flex:1;flex-direction:column;padding:20px 24px 22px}
html body.version-4 .mg-reward{align-self:flex-start;padding:4px 12px;border-radius:999px;background:#101f3b;color:#e8c27a;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}html body.version-4 .mg-reward.alt{background:#4b2a73;color:#ffd9a1}
html body.version-4 .mg-body h2{margin:12px 0 6px;font-size:26px;font-weight:800;color:#101f3b}html body.version-4 .mg-body p{margin:0 0 12px;font-size:14.5px;line-height:1.65;color:#334155}
html body.version-4 .mg-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:0;list-style:none}html body.version-4 .mg-meta li{padding:4px 12px;border:1px solid #d9d2bf;border-radius:999px;font-size:12.5px;color:#475569;background:#fff}
html body.version-4 .mg-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto}html body.version-4 .mg-status{font-size:13px;font-weight:600;color:#8f1d33}

@keyframes xgSpin{to{transform:rotate(360deg)}}
@keyframes xgPop{0%{opacity:0;transform:scale(.6)}40%{opacity:1;transform:scale(1.12)}100%{opacity:1;transform:scale(1)}}
@keyframes xgBeat{from{transform:scale(1)}to{transform:scale(1.08)}}
@keyframes xgNudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
@media(max-width:1080px){html body.version-4 .xg-layout{grid-template-columns:1fr}html body.version-4 .xg-side{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}html body.version-4 .xg-intro{flex-direction:column;align-items:flex-start;gap:12px}}
@media(max-width:760px){html body.version-4 .xg{width:calc(100% - 16px);margin:12px auto 36px;padding:18px 12px 18px;border-radius:18px}html body.version-4 .mg-grid{grid-template-columns:1fr}html body.version-4 .xg-hud{grid-template-columns:1fr 1fr 1fr;grid-auto-flow:row}html body.version-4 .xg-time{grid-column:1/-1}html body.version-4 .xg-snd{position:absolute;right:20px;top:20px}html body.version-4 .xg-stat b{font-size:22px}html body.version-4 .xg-crumb .xg-cakes{margin-left:0}html body.version-4 .xg-intro{padding:14px 0 16px}html body.version-4 .xg-card-pop{padding:16px 14px}html body.version-4 .xg-big b{font-size:48px}html body.version-4 .xg-how{display:none}html body.version-4 .xg-item canvas{width:40px;height:40px}html body.version-4 .xg-item span{font-size:11.5px}html body.version-4 .mg-body{padding:16px 16px 18px}html body.version-4 .mg-body h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){html body.version-4 .xg-time.hot b,html body.version-4 .xg-banner.pop,html body.version-4 .xg-reward.got{animation:none}html body.version-4 .mg-card{transition:none}}
html body.version-4 .xg-card-pop.result{padding:16px 20px 16px}
html body.version-4 .xg-card-pop.result .xg-big{margin:4px 0 0}
html body.version-4 .xg-card-pop.result .xg-big b{font-size:48px}
html body.version-4 .xg-card-pop.result .xg-chips{margin:8px 0 2px}
html body.version-4 .xg-card-pop.result .xg-reward{margin:8px 0 0!important;padding:8px 12px;font-size:18px!important}
html body.version-4 .xg-card-pop.result .xg-note{margin:4px 0 0;font-size:12px}
html body.version-4 .xg-card-pop.result .xg-btn{min-height:42px;margin-top:8px}
html body.version-4 .xg-panel{scrollbar-width:thin}html body.version-4 .xg-hud{grid-template-columns:1.5fr 1fr .7fr .8fr}
html body.version-4 .xg-snd{position:absolute;right:10px;top:10px;z-index:6;width:36px;height:36px;border:1px solid rgba(255,255,255,.25);background-color:rgba(8,18,40,.55);background-size:18px}
@media(max-width:760px){
html body.version-4 .xg-hud{grid-template-columns:1.25fr 1fr .8fr 1fr;gap:6px;margin-bottom:8px}
html body.version-4 .xg-hud .xg-stat{padding:6px 9px 8px;border-radius:12px}
html body.version-4 .xg-hud .xg-stat span{font-size:9px;letter-spacing:.1em}
html body.version-4 .xg-hud .xg-stat b{font-size:20px}
html body.version-4 .xg-time{grid-column:auto}
html body.version-4 .xg-stage{padding:10px}
html body.version-4 .xg-tray{gap:6px;margin-top:8px}
html body.version-4 .xg-item{padding:4px 2px 6px;border-radius:14px}
html body.version-4 .xg-item span{font-size:11px}
}html body.version-4 .xg-goal{display:flex;align-items:center;gap:12px;margin:-2px 2px 10px;color:#9fb1d6;font-size:12px}
html body.version-4 .xg-goal i{position:relative;flex:0 0 46%;height:8px;border-radius:5px;background:rgba(255,255,255,.12);font-style:normal}
html body.version-4 .xg-goal u{display:block;height:100%;width:0;border-radius:5px;background:linear-gradient(90deg,#ffd45c,#ff9d4d);text-decoration:none;transition:width .25s}
html body.version-4 .xg-goal em{position:absolute;top:-17px;transform:translateX(-50%);font-style:normal;font-size:10px;font-weight:800;color:#e8c27a}
html body.version-4 .xg-goal em::after{content:"";position:absolute;left:50%;top:15px;width:2px;height:12px;margin-left:-1px;background:rgba(255,255,255,.35)}
html body.version-4 .xg-goal span{flex:1;min-width:0;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){html body.version-4 .xg-goal{margin:8px 2px 10px}html body.version-4 .xg-goal i{flex-basis:40%}html body.version-4 .xg-goal span{font-size:11px;white-space:normal}}body[data-bb-route="information/bb_xmas_game"] .floating-cat{display:none!important}
