/* 🛒 Shop Rubik (shop.js) – tiền tố sh- · kiểu khối Shop: .cube.skin-cx-<id> (dùng cho mọi khối 3D: Shop, Tự giải, Đấu online) */
.shop { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; padding-bottom: 28px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sh-title h1 { margin: 0 0 4px; font-size: 1.6rem; }
.sh-title p { margin: 0; color: var(--muted); line-height: 1.45; max-width: 560px; }
.sh-wallet { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 10px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #fff3c4, #ffd86b); color: #4a3200; box-shadow: 0 6px 18px rgba(201, 145, 0, .25); }
.sh-coin { font-size: 1.7rem; grid-row: span 2; }
.sh-wallet b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sh-wallet small { font-size: .74rem; opacity: .8; }
.sh-wallet small:empty { display: none; }
.sh-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft, rgba(91, 61, 245, .1)); line-height: 1.45; }
.sh-note .link { font-weight: 800; }

.sh-show { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.sh-stage { position: relative; border-radius: 20px; overflow: hidden; min-height: 290px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--body, #333) 70%);
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--body, #333) 45%, #ffffff) 0%, color-mix(in srgb, var(--body, #333) 55%, #0b0b14) 70%); }
.sh-stage.r2 { box-shadow: inset 0 0 0 2px #3b9cff55; }
.sh-stage.r3 { box-shadow: inset 0 0 0 2px #b05cff66, inset 0 0 40px #b05cff33; }
.sh-stage.r4 { box-shadow: inset 0 0 0 2px #ffb02088, inset 0 0 50px #ffb02040; }
.sh-stage.pop { animation: shPop .7s ease-out; }
@keyframes shPop { 0% { transform: scale(1); } 30% { transform: scale(1.04); filter: brightness(1.35); } 100% { transform: scale(1); } }
.sh-scene { height: 290px; width: 100%; touch-action: pan-y; cursor: grab; }
.sh-rar { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 800; color: #fff; background: #6b7280; }
.sh-rar.r2, .sh-r.r2 { background: #2f86ec; } .sh-rar.r3, .sh-r.r3 { background: #9b44f0; } .sh-rar.r4, .sh-r.r4 { background: linear-gradient(135deg, #ffb020, #ff6a00); }
.sh-rar.r5, .sh-r.r5 { background: linear-gradient(135deg, #ff2e63, #7b2ff7, #00c2ff); } /* Thần thoại */
.sh-rar.r6, .sh-r.r6 { background: linear-gradient(135deg, #3b0f5c, #b8860b); color: #ffe9a8; } /* 👑 VIP */
.sh-stage.r5 { box-shadow: inset 0 0 0 2px #ff2e6388, inset 0 0 60px #7b2ff740; }
.sh-stage.r6 { box-shadow: inset 0 0 0 2px #ffd36a, inset 0 0 50px #ffd36a40; }
.sh-card.r5 { border-color: #7b2ff7aa; background: linear-gradient(180deg, var(--surface), var(--surface)); background: linear-gradient(180deg, color-mix(in srgb, #7b2ff7 10%, var(--surface)), var(--surface)); }
.sh-card.r6 { border-color: #d4a017; background: linear-gradient(180deg, var(--surface), var(--surface)); background: linear-gradient(180deg, color-mix(in srgb, #3b0f5c 14%, var(--surface)), var(--surface)); }
.sh-tag.vip { color: #9a6b00; }
.sh-buy button.vipgo { background: linear-gradient(135deg, #3b0f5c, #b8860b) !important; border-color: #b8860b !important; color: #ffe9a8 !important; }
.sh-info h2 { margin: 0 0 6px; font-size: 1.5rem; }
.sh-desc { margin: 0 0 8px; line-height: 1.5; }
.sh-skill { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--border-strong, var(--border)); color: var(--muted); font-size: .88rem; }
.sh-skill.on { border: 1px solid #7c3aed88; background: rgba(124, 58, 237, 0.09); background: color-mix(in srgb, #7c3aed 9%, transparent); color: var(--text, inherit); line-height: 1.45; }
.sh-skill.on b { color: #7c3aed; } .sh-skill small { color: var(--muted); }
.sh-skb { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; background: linear-gradient(135deg, #ff2e63, #7b2ff7); color: #fff; box-shadow: 0 2px 6px rgba(123, 47, 247, .4); }
.sh-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-price { font-size: 1.1rem; } .sh-price:empty { display: none; }
.sh-buy button { min-height: 46px; padding: 0 22px; font-weight: 800; }
.sh-buy button.armed { background: #ff8a00 !important; border-color: #ff8a00 !important; color: #fff !important; box-shadow: 0 0 0 4px rgba(255, 138, 0, .3); } /* chờ bấm lần 2: đứng yên (không phập phồng – dễ chạm trúng) */
.sh-msg { min-height: 1.3em; margin: 10px 0 0; font-weight: 700; } .sh-msg.ok { color: var(--ok, #16a34a); } .sh-msg.error { color: var(--danger, #d23c36); }

.sh-h { margin: 6px 0 0; font-size: 1.15rem; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sh-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 0; height: auto; padding: 10px 8px 12px; border-radius: 16px; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text, inherit); font: inherit; white-space: normal; transition: transform .15s, box-shadow .15s; }
.sh-card:hover { transform: translateY(-2px); }
.sh-card.sel { border-color: var(--accent, #5b3df5); box-shadow: 0 0 0 2px var(--accent, #5b3df5); }
.sh-card.r3 { border-color: #b05cff66; } .sh-card.r4 { border-color: #ffb02099; background: linear-gradient(180deg, var(--surface), var(--surface)); background: linear-gradient(180deg, color-mix(in srgb, #ffb020 10%, var(--surface)), var(--surface)); }
.sh-mini { width: 86px; height: 86px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--body));
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--body) 35%, #ffffff), color-mix(in srgb, var(--body) 70%, #111)); }
.sh-mini svg { width: 70px; height: 70px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.sh-card b { font-size: .95rem; }
.sh-r { padding: 1px 8px; border-radius: 99px; font-size: .68rem; font-weight: 800; color: #fff; background: #6b7280; }
.sh-tag { margin-top: 4px; font-size: .82rem; font-weight: 800; }
.sh-tag.price { color: #b07800; } .sh-tag.own { color: var(--muted); } .sh-tag.eq { color: var(--ok, #16a34a); }
.sh-how { margin: 0; }
@media (max-width: 760px) {
  .sh-show { grid-template-columns: 1fr; }
  .sh-stage, .sh-scene { min-height: 240px; height: 240px; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-title h1 { font-size: 1.35rem; }
}
:root[data-theme="dark"] .sh-tag.price { color: #ffd166; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-tag.price { color: #ffd166; } }

/* Đấu online: dòng 🪙 */
.du-coinhint { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 216, 107, 0.22); background: color-mix(in srgb, #ffd86b 22%, transparent); font-size: .88rem; line-height: 1.45; }
.du-coins { margin: 6px 0; padding: 8px 12px; border-radius: 12px; font-weight: 700; }
.du-coins.got { background: linear-gradient(135deg, #fff3c4, #ffd86b); color: #4a3200; animation: shPop .7s ease-out; }
.du-coins.got a { color: #6a3d00; margin-left: 6px; }
.du-coins.none { background: var(--surface-2); color: var(--muted); font-weight: 600; }

/* Thanh "giao diện khối" (trang Giải Rubik): khối Shop đã mua */
.skin-btn[class*="skin-prev-cx-"] .skin-sw { background: #222; }

/* ================= Kiểu từng khối (đủ 6 màu khác nhau – vẫn giải được) ================= */
/* Tân Binh – nhựa đen chuẩn */
.cube.skin-cx-tanbinh .face { background: #16171b; }
/* Kẹo Ngọt – thân hồng kẹo bông, ô bóng như kẹo dẻo */
.cube.skin-cx-keongot .face { background: #ffb3d1; border-radius: 10px; }
.cube.skin-cx-keongot .sticker { inset: 3px; border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.cube.skin-cx-keongot .sticker::after { content: ''; position: absolute; left: 16%; top: 10%; width: 42%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; }
/* Rừng Rậm – thân gỗ, ô mộc */
.cube.skin-cx-rungram .face { background: repeating-linear-gradient(100deg, #5a3a1e 0 3px, #4a3019 3px 7px, #553620 7px 9px); border-radius: 5px; }
.cube.skin-cx-rungram .sticker { inset: 4px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.cube.skin-cx-rungram .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(35deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 6px); }
/* Băng Tuyết – thân băng trong, ô phủ sương */
.cube.skin-cx-bangtuyet .face { background: linear-gradient(135deg, rgba(220, 242, 255, .95), rgba(150, 205, 245, .9)); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 10px rgba(255, 255, 255, .8); }
.cube.skin-cx-bangtuyet .sticker { inset: 4px; border-radius: 7px; box-shadow: inset 0 0 7px rgba(255, 255, 255, .9); }
.cube.skin-cx-bangtuyet .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, .85) 0 6%, transparent 7%), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .6) 0 4%, transparent 5%), linear-gradient(160deg, rgba(255, 255, 255, .45), transparent 55%); }
/* Dung Nham – đá đen, khe nứt rực cam */
.cube.skin-cx-dungnham .face { background: radial-gradient(circle at 30% 30%, #2a1a12, #120a07 70%); border-radius: 4px; box-shadow: inset 0 0 0 1.5px #ff6a00, inset 0 0 8px rgba(255, 90, 0, .55); }
.cube.skin-cx-dungnham .sticker { inset: 4px; border-radius: 3px; box-shadow: 0 0 6px currentColor, inset 0 -4px 6px rgba(0, 0, 0, .25); }
/* Hoàng Hôn – ô chuyển màu như trời chiều */
.cube.skin-cx-hoanghon .face { background: linear-gradient(160deg, #3a1f4a, #1c0f26); border-radius: 7px; }
.cube.skin-cx-hoanghon .sticker { inset: 3px; border-radius: 7px; }
.cube.skin-cx-hoanghon .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(170deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 50%, rgba(90, 0, 70, .28) 100%); }
/* Sấm Sét – neon phát sáng + tia điện chớp */
.cube.skin-cx-samset .face { background: #0a0f2a; border-radius: 5px; box-shadow: inset 0 0 0 1px #2ab7ff; }
.cube.skin-cx-samset .sticker { inset: 4px; border-radius: 5px; box-shadow: 0 0 8px currentColor, inset 0 0 6px rgba(255, 255, 255, .6); }
.cube.skin-cx-samset .sticker::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 2px #bfefff, 0 0 12px #6fd8ff; opacity: 0; animation: shZap 3.2s steps(1) infinite; }
@keyframes shZap { 0%, 100% { opacity: 0; } 61% { opacity: .9; } 63% { opacity: 0; } 66% { opacity: .7; } 68% { opacity: 0; } }
/* Ngân Hà – bầu trời sao, ô ánh tinh vân */
.cube.skin-cx-nganha .face { border-radius: 6px;
  background: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 64%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 42% 82%, #d9ceff 50%, transparent 51%), radial-gradient(1px 1px at 85% 18%, #fff 50%, transparent 51%), radial-gradient(circle at 30% 30%, #3b1d6e, #120a2a 72%); }
.cube.skin-cx-nganha .sticker { inset: 4px; border-radius: 6px; box-shadow: 0 0 6px currentColor, inset 0 0 9px rgba(110, 70, 255, .6); }
/* Hoàng Kim – thân mạ vàng, ánh kim lướt qua */
.cube.skin-cx-hoangkim .face { background: linear-gradient(135deg, #7a5200, #ffd85a 35%, #b07d00 55%, #ffe58a 75%, #8a5d00); border-radius: 6px; }
.cube.skin-cx-hoangkim .sticker { inset: 4px; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(255, 232, 150, .95); }
.cube.skin-cx-hoangkim .sticker::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shShine 3.6s ease-in-out infinite; }
@keyframes shShine { 0%, 55% { transform: translateX(0); } 85%, 100% { transform: translateX(340%); } }
/* Long Vương – vảy rồng đỏ thẫm, ô rực lửa */
.cube.skin-cx-longvuong .face { border-radius: 5px; background: radial-gradient(circle at 50% 100%, transparent 52%, rgba(255, 90, 40, .55) 54% 60%, transparent 62%) 0 0 / 10px 8px, linear-gradient(160deg, #5a0a0a, #220303); box-shadow: inset 0 0 0 1px #ff9a3c; }
.cube.skin-cx-longvuong .sticker { inset: 4px; border-radius: 5px; box-shadow: 0 0 9px rgba(255, 120, 0, .85), inset 0 0 6px rgba(255, 255, 255, .5); }
.cube.skin-cx-longvuong .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 50% 120%, rgba(255, 200, 60, .55), transparent 60%); animation: shFire 1.6s ease-in-out infinite alternate; }
@keyframes shFire { from { opacity: .25; } to { opacity: .9; } }
/* ---- Thần thoại (giá nghìn 🪙) ---- */
/* Thiên Thạch – đá xám đầy hố, ô cháy rực như vừa xuyên qua khí quyển */
.cube.skin-cx-thienthach .face { border-radius: 5px; background: radial-gradient(circle at 25% 30%, #1a1c26 0 9%, transparent 10%), radial-gradient(circle at 70% 65%, #1a1c26 0 12%, transparent 13%), radial-gradient(circle at 60% 20%, #3c4152 0 6%, transparent 7%), linear-gradient(135deg, #4a4f62, #23252f); box-shadow: inset 0 0 0 1px #ff8a3c88; }
.cube.skin-cx-thienthach .sticker { inset: 4px; border-radius: 4px; box-shadow: 0 0 7px rgba(255, 140, 40, .75); }
.cube.skin-cx-thienthach .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255, 220, 120, .55), transparent 45%, rgba(0, 0, 0, .25)); animation: shFire 1.3s ease-in-out infinite alternate; }
/* Pha Lê – trong suốt, ánh 7 sắc */
.cube.skin-cx-phale .face { border-radius: 8px; background: conic-gradient(from 30deg, rgba(255, 180, 220, .85), rgba(180, 220, 255, .85), rgba(190, 255, 220, .85), rgba(255, 245, 180, .85), rgba(255, 180, 220, .85)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .95), inset 0 0 10px rgba(255, 255, 255, .8); }
.cube.skin-cx-phale .sticker { inset: 4px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 8px rgba(255, 255, 255, .7); }
.cube.skin-cx-phale .sticker::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .75) 0 18%, transparent 19% 52%, rgba(255, 255, 255, .35) 53% 60%, transparent 61%); }
/* Cầu Vồng – thân đổi màu cầu vồng liên tục, ô óng ánh */
/* (lớp nền ::before đổi màu – KHÔNG đặt filter lên .cube: làm khối 3D bị dẹt + đổi màu ô) */
.cube.skin-cx-cauvong .face { border-radius: 7px; background: #ff6ec7; }
.cube.skin-cx-cauvong .face::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, #ff2e63, #ff8a00, #ffe600, #08d9a0, #2f80ff, #b05cff); animation: shHue 6s linear infinite; }
@keyframes shHue { to { filter: hue-rotate(360deg); } }
.cube.skin-cx-cauvong .sticker { inset: 4px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.cube.skin-cx-cauvong .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .3) 70%, rgba(255, 255, 255, 0)); }
/* Hố Đen – đen tuyệt đối, vòng sáng tím xoáy */
.cube.skin-cx-hoden .face { border-radius: 6px; background: radial-gradient(circle at 50% 50%, #000 0 30%, #2a0a4a 45%, #000 70%); box-shadow: inset 0 0 0 1.5px #8b5cf6, inset 0 0 12px rgba(139, 92, 246, .7); }
.cube.skin-cx-hoden .sticker { inset: 5px; border-radius: 50% 12% 50% 12%; box-shadow: 0 0 10px rgba(167, 139, 250, .9), inset 0 0 8px rgba(0, 0, 0, .55); }
.cube.skin-cx-hoden .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: conic-gradient(from 0deg, rgba(167, 139, 250, .55), transparent 30%, rgba(167, 139, 250, .35) 60%, transparent 85%); animation: shSpin 4s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
/* ---- 👑 VIP ---- */
/* Vương Miện – nhung tím viền vàng ròng */
.cube.skin-cx-vuongmien .face { border-radius: 6px; background: radial-gradient(circle at 35% 30%, #5b1d86, #2a0844 75%); box-shadow: inset 0 0 0 2px #e8b931, inset 0 0 0 3px #7a5200; }
.cube.skin-cx-vuongmien .sticker { inset: 5px; border-radius: 5px; box-shadow: 0 0 0 1.5px #ffd75e, 0 2px 4px rgba(0, 0, 0, .4); }
.cube.skin-cx-vuongmien .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .45), transparent 45%); }
/* Kim Cương – bạc lấp lánh, ô mài giác */
.cube.skin-cx-kimcuong .face { border-radius: 6px; background: radial-gradient(1.5px 1.5px at 22% 28%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75% 70%, #fff 50%, transparent 51%), linear-gradient(135deg, #f4f7fb, #aab6c5 50%, #eef2f7); box-shadow: inset 0 0 0 1px #ffffff; }
.cube.skin-cx-kimcuong .sticker { inset: 4px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.cube.skin-cx-kimcuong .sticker::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(45deg, rgba(255, 255, 255, .45) 0 25%, transparent 25% 50%, rgba(0, 0, 0, .12) 50% 75%, rgba(255, 255, 255, .25) 75%), linear-gradient(-45deg, rgba(255, 255, 255, .3) 0 50%, rgba(0, 0, 0, .08) 50%); animation: shTwinkle 2.4s ease-in-out infinite; }
@keyframes shTwinkle { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
/* Phượng Hoàng – lông vũ rực cháy cam → hồng */
.cube.skin-cx-phuonghoang .face { border-radius: 7px; background: linear-gradient(160deg, #ffb347, #ff5e3a 45%, #e8317e); box-shadow: inset 0 0 0 1px rgba(255, 230, 160, .9); }
.cube.skin-cx-phuonghoang .sticker { inset: 4px; border-radius: 8px 2px 8px 2px; box-shadow: 0 0 8px rgba(255, 120, 60, .85); }
.cube.skin-cx-phuonghoang .sticker::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 50% 110%, rgba(255, 230, 120, .7), transparent 60%); animation: shFire 1.1s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .cube[class*="skin-cx-"] .sticker::after, .cube.skin-cx-cauvong .face::before { animation: none !important; } }

/* 🎁 Ô nhập mã quà tặng */
.sh-gift { margin-top: 14px; }
.sh-gift h2 { margin: 0 0 8px; font-size: 1.05rem; }
.sh-gift-f { display: flex; gap: 8px; }
.sh-gift-f input { flex: 1; min-width: 0; font: 700 1.05rem var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.sh-gift-f input::placeholder { letter-spacing: .04em; opacity: .55; }
.sh-gift .sh-msg { margin: 8px 0 0; }

/* ===== 🎨 Đồ trang trí (khung ảnh · quân cờ màu · hiệu ứng thắng) ===== */
.sh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.sh-tabs button { padding: 8px 14px; border-radius: 99px; font-weight: 700; }
.sh-tabs button.on { background: var(--accent, #5b3df5); border-color: var(--accent, #5b3df5); color: #fff; }
.sh-prev { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; min-height: 220px; }
.sh-fxtry { padding: 8px 16px; border-radius: 99px; font-weight: 800; }
.sh-x .sh-mini { display: flex; align-items: center; justify-content: center; min-height: 64px; }

/* 🖼️ Khung ảnh đại diện – dùng chung: Shop (.cx-av), Bạn bè (.fr-av), Đấu online (.du-sav) */
.cx-av { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card, #fff); font-size: 28px; line-height: 1; }
.cx-av.big { width: 120px; height: 120px; font-size: 64px; }
[class*="cxf-fr_"] { border-radius: 50% !important; border: 3px solid transparent !important; }
.cx-av.big[class*="cxf-fr_"] { border-width: 6px !important; }
.cxf-fr_go { background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, linear-gradient(135deg, #8a5a2b, #c88d52, #6b4120) border-box !important; }
.cxf-fr_bac { background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, linear-gradient(135deg, #f4f6f8, #9aa4ae, #e3e7eb, #7d8792) border-box !important; box-shadow: 0 0 6px rgba(160, 170, 180, .6); }
.cxf-fr_vang { background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, linear-gradient(135deg, #fff2a8, #d4a017, #ffe066, #b8860b) border-box !important; box-shadow: 0 0 10px rgba(240, 190, 30, .7); }
.cxf-fr_cauvong { background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, conic-gradient(#ff3b5c, #ff8c1a, #ffd23f, #3ddc84, #4da3ff, #b36bff, #ff3b5c) border-box !important; box-shadow: 0 0 10px rgba(180, 100, 255, .5); }
.cxf-fr_lua { background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, linear-gradient(0deg, #ff2a1a, #ff8c1a, #ffd23f) border-box !important; box-shadow: 0 0 12px rgba(255, 90, 20, .85), 0 -3px 14px rgba(255, 170, 30, .6); }
.cxf-fr_kimcuong { background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, linear-gradient(135deg, #e8fbff, #6fd6ff, #ffffff, #3fa9f5, #d6f4ff) border-box !important; box-shadow: 0 0 12px rgba(90, 200, 255, .9), 0 0 2px #fff; }

/* ♟️ Bộ quân cờ màu: body.pcset-… (cả trang) hoặc .cx-pcs.pcset-… (xem trước) – đổi màu ảnh quân .cb-p bằng bộ lọc */
.cx-pcs { display: inline-flex; gap: 2px; padding: 6px 8px; border-radius: 12px; background: linear-gradient(90deg, #ecd8b0 50%, #b88762 50%); }
.cx-pcs i { position: static; display: inline-block; width: 26px; height: 26px; background-size: contain; background-repeat: no-repeat; background-position: center; transform: none !important; }
.cx-pcs.big { flex-wrap: wrap; justify-content: center; max-width: 240px; padding: 10px; }
.cx-pcs.big i { width: 64px; height: 64px; }
.pcset-pc_bang .cb-p.pw { filter: sepia(1) saturate(3) hue-rotate(160deg) brightness(1.02); }
.pcset-pc_bang .cb-p.pb { filter: invert(.35) sepia(1) saturate(8) hue-rotate(185deg) brightness(.72); }
.pcset-pc_lua .cb-p.pw { filter: sepia(1) saturate(5) hue-rotate(-12deg) brightness(1.05); }
.pcset-pc_lua .cb-p.pb { filter: invert(.35) sepia(1) saturate(9) hue-rotate(-35deg) brightness(.7); }
.pcset-pc_ngoc .cb-p.pw { filter: sepia(1) saturate(3) hue-rotate(90deg) brightness(1.02); }
.pcset-pc_ngoc .cb-p.pb { filter: invert(.35) sepia(1) saturate(7) hue-rotate(80deg) brightness(.68); }
.pcset-pc_vang .cb-p.pw { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.08); }
.pcset-pc_vang .cb-p.pb { filter: invert(.35) sepia(1) saturate(8) hue-rotate(240deg) brightness(.72); }

/* 🎆 Hiệu ứng thắng */
.cx-fxico { font-size: 34px; line-height: 1; }
.cx-fxico.big { font-size: 84px; }
.cx-fx { position: fixed; inset: 0; z-index: 9999; overflow: hidden; pointer-events: none; }
.cx-drop { position: absolute; top: -40px; width: 9px; height: 14px; border-radius: 2px; animation: cxFall 2.4s linear forwards; }
.cx-drop.sym { width: auto; height: auto; background: none !important; line-height: 1; }
@keyframes cxFall { to { transform: translateY(110vh) rotate(var(--rot, 360deg)); opacity: .9; } }
.cx-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; opacity: 0; box-shadow: 0 0 6px currentColor; animation: cxBurst 1.3s ease-out forwards; }
@keyframes cxBurst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(.4); } }
.du-sav[class*="cxf-fr_"], .fr-av[class*="cxf-fr_"] { display: inline-flex; align-items: center; justify-content: center; }
.du-sav[class*="cxf-fr_"] { width: 34px; height: 34px; font-size: 20px; flex: none; }

/* 🎉 Sự kiện (shop.js – khối sự kiện, vòng quay, dải báo trên Trang chủ) */
.sh-rar.r7, .sh-r.r7 { background: linear-gradient(135deg, #ff006e, #ffbe0b, #3a86ff); color: #fff; } /* 🎉 Sự kiện */
.sh-stage.r7 { box-shadow: inset 0 0 0 2px #ff9ec7, inset 0 0 60px #ff006e40; }
.sh-card.r7 { border-color: #ff9ec7; }
.sh-tag.ev { background: linear-gradient(135deg, #ff006e, #ff8c1a); color: #fff; }
.ev-wheels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 6px 0 18px; }
.ev-wheel { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: var(--r-lg, 20px); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.ev-wheel b { font-size: .95rem; }
.ev-wheel small { color: var(--muted); font-size: .78rem; }
.ev-wheel button { width: 100%; min-height: 38px; font-size: .85rem; }
.ev-dial { position: relative; width: 156px; height: 156px; margin-top: 8px; } /* 🎡 kim + tâm đứng yên, chỉ .ev-disc quay */
.ev-disc { position: relative; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; border: 5px solid #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(0, 0, 0, .12); }
.ev-disc.spinning { transition: transform 4.2s cubic-bezier(.12, .78, .16, 1); }
.ev-lbl { position: absolute; left: 50%; top: 0; width: 34px; height: 50%; margin-left: -17px; transform-origin: 50% 100%; pointer-events: none; }
.ev-lbl i { display: flex; flex-direction: column; align-items: center; padding-top: 6px; font-style: normal; font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.ev-lbl small { margin-top: 2px; font-size: 9.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.ev-wheel .ev-res { min-height: 1.2em; color: var(--text); font-weight: 600; }
.ev-wheel button.armed { animation: evArm .9s ease-in-out infinite alternate; }
@keyframes evArm { to { filter: brightness(1.15); box-shadow: 0 0 0 3px #ffbe0b; } }
.ev-odds, .ev-hist { width: 100%; text-align: left; font-size: .8rem; }
.ev-odds summary, .ev-hist summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.ev-odds ul, .ev-hist ul { list-style: none; margin: 6px 0; padding: 0; }
.ev-odds li { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px dashed var(--border); }
.ev-odds small { display: block; line-height: 1.35; }
.ev-hist { margin: -6px 0 16px; }
.ev-hist li { padding: 2px 0; }
.ev-rule { margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .ev-disc.spinning { transition: none; } }
.ev-hub { position: absolute; left: 50%; top: 50%; z-index: 1; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.ev-ptr { position: absolute; z-index: 1; left: 50%; top: -12px; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 16px solid #ff2e63; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.ev-banner { display: flex; align-items: center; gap: 10px; margin: 0 auto 14px; max-width: 1120px; padding: 12px 16px; border-radius: var(--r-lg, 20px); color: #fff; text-decoration: none; background: linear-gradient(110deg, #ff006e, #ff8c1a 55%, #ffbe0b); box-shadow: 0 8px 22px rgba(255, 0, 110, .3); font-size: .95rem; }
.ev-banner:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.ev-b-ico { font-size: 1.5rem; animation: evPop 1.6s ease-in-out infinite; }
.ev-b-go { margin-left: auto; font-weight: 800; white-space: nowrap; }
@keyframes evPop { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .ev-b-ico { animation: none; } }

/* 🎉 Khối sự kiện (chung cho 30 khối – màu thân riêng qua --ev-body do bigcube.js gắn): thân bóng viền sáng, ô lấp lánh */
.cube.skin-ev .face { border-radius: 7px; background: radial-gradient(circle at 30% 25%, var(--ev-body, #222), var(--ev-body, #222) 70%); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--ev-body, #222) 82%, #fff), var(--ev-body, #222) 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cube.skin-ev .sticker { inset: 4px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 1px 3px rgba(0, 0, 0, .45); }
.cube.skin-ev .sticker::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(130deg, rgba(255, 255, 255, .6) 0 16%, transparent 17% 55%, rgba(255, 255, 255, .25) 56% 62%, transparent 63%); animation: shTwinkle 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cube.skin-ev .sticker::after { animation: none !important; } }

/* 🟡 Vàng + 🎁 gói ưu đãi (shop.js renderGold) */
.sh-gold { margin-left: 8px; font-weight: 700; }
.gd-bal { float: right; font-size: .85rem; font-weight: 600; }
.gd-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.gd-pack { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-lg, 18px); background: var(--surface); border: 1px solid var(--border); }
.gd-pk-top { display: flex; gap: 10px; align-items: center; }
.gd-pk-top small { display: block; color: var(--muted); }
.gd-pk-top small.gd-end { color: #d97706; font-weight: 700; }
.gd-pk-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, #fff3c4, #ffd166); }
.gd-pack ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.gd-pack li.own { opacity: .6; }
.gd-pack button { width: 100%; min-height: 38px; }
.gd-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.gd-tier { display: flex; flex-direction: column; align-items: center; padding: 10px; }
.gd-tier.on { outline: 3px solid #ffbe0b; }
.gd-pay { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin: 10px 0; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.gd-pay img { width: 200px; height: auto; max-width: 100%; border-radius: 10px; background: #fff; }
.gd-pay p { margin: 4px 0; }
.gd-code { font-family: monospace; font-size: 1.1rem; }

.ev-wheel .ev-end { color: #b26a00; font-weight: 700; } /* ⏳ còn X ngày */

/* ---------- 🏪 Cửa hàng chung (#store – shop.js storeShell, 25/11) ---------- */
.st-wallet { display: flex; gap: 10px; flex-wrap: wrap; }
.st-wallet > span { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 16px; background: var(--surface-2, rgba(0, 0, 0, .04)); border: 1px solid var(--border); }
.st-wallet b { font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-wallet small { font-size: .78rem; color: var(--muted); }
.st-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.st-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ff4d6d; color: #fff; font-size: .75rem; font-weight: 800; }
.st-tabs button.on .st-n { background: #fff; color: var(--accent, #5b3df5); }
.store #stMsg:empty { display: none; }
.st-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 14px; padding: 26px 18px; }
.st-empty > span { font-size: 2.4rem; }
.st-empty p { margin: 0; color: var(--muted); max-width: 520px; line-height: 1.5; }
.st-empty .ev-hist { align-self: stretch; text-align: left; }
.st-how { margin-top: 16px; }
.st-link, .gd-vip { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); }
.st-link[hidden] { display: none; }
.st-link:hover, .gd-vip:hover { text-decoration: none; border-color: var(--accent, #5b3df5); }
.st-link > span:nth-child(2), .gd-vip > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.4; }
.st-l-ico { font-size: 1.5rem; }
.st-l-go { flex: none; font-weight: 800; color: var(--accent, #5b3df5); white-space: nowrap; }
.gd-vip { margin: 14px 0 0; background: var(--gold-soft, #fff6d9); border-color: var(--gold-line, #f0d27a); }
.gd-vip > span:first-child { font-size: 1.6rem; }
.gd-vip small { display: block; color: var(--muted); }
.gd-vip .st-l-go { color: var(--gold-text, #7a5300); }
@media (max-width: 560px) { .st-wallet { width: 100%; } .st-wallet > span { flex: 1; justify-content: center; } }
/* ---------- 🧩 Sự kiện mảnh (season.js) – thẻ trong 🏪 Cửa hàng + ô ở Trang chủ ---------- */
.se-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; background: linear-gradient(120deg, var(--surface), var(--surface)); background: linear-gradient(120deg, color-mix(in srgb, #7c3aed 14%, var(--surface)), color-mix(in srgb, #f59e0b 12%, var(--surface))); }
.se-ico { font-size: 2.6rem; line-height: 1; }
.se-ht { flex: 1; min-width: 170px; }
.se-ht h2 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.se-ht p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.se-bal { display: flex; flex-direction: column; align-items: flex-end; padding: 8px 14px; border-radius: 14px; background: var(--surface); }
.se-bal small { color: var(--muted); font-size: .78rem; }
.se-bal b { font: 800 1.45rem/1.15 var(--font-mono, monospace); white-space: nowrap; }
.se-warn { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface); background: color-mix(in srgb, #dc2626 14%, var(--surface)); font-weight: 700; line-height: 1.45; }
.se-qx, .se-rws { margin-top: 12px; }
.se-rws h2 { margin: 0 0 8px; font-size: 1.15rem; }
.se-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.se-rw { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 8px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); text-align: center; }
.se-rw b { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.se-rw.r3 { border-color: #b05cff66; } .se-rw.r4 { border-color: #ffb02099; } .se-rw.r5 { border-color: #7b2ff7aa; }
.se-rw.r7 { border-color: #f59e0b; background: linear-gradient(180deg, var(--surface), var(--surface)); background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 12%, var(--surface)), var(--surface)); }
.se-rw.own { opacity: .72; }
.se-pv { min-height: 88px; display: grid; place-items: center; }
.se-pv .sh-mini { width: 80px; height: 80px; }
.se-sk { max-width: 100%; font-size: .78rem; font-weight: 800; color: var(--accent, #5b3df5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-cost { margin: 2px 0 4px; font: 800 1.05rem var(--font-mono, monospace); }
.se-rw button { width: 100%; }
.se-rw button.warn { background: #f59e0b; border-color: #f59e0b; color: #1a1206; }
.se-own { padding: 8px 0; font-weight: 800; color: var(--ok, #16a34a); }
.se-xu { font-size: 52px; line-height: 1; }
.se-home { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: inherit; text-decoration: none;
  border: 2px solid rgba(124, 58, 237, 0.45);
  border: 2px solid color-mix(in srgb, #7c3aed 45%, transparent); background: linear-gradient(110deg, var(--surface), var(--surface)); background: linear-gradient(110deg, color-mix(in srgb, #7c3aed 14%, var(--surface)), color-mix(in srgb, #f59e0b 12%, var(--surface))); }
.se-home:hover { border-color: #7c3aed; }
.se-h-ico { font-size: 2.2rem; line-height: 1; }
.se-h-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.se-h-t b { font-size: 1.05rem; overflow-wrap: anywhere; }
.se-h-t small { color: var(--muted); font-size: .84rem; }
.se-h-tag { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: #7c3aed; color: #fff; font-size: .68rem; vertical-align: middle; }
.se-h-n { flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #ef4444; color: #fff; font-size: .8rem; font-weight: 800; }
.se-h-go { flex: none; font-weight: 800; color: var(--accent, #5b3df5); white-space: nowrap; }
@media (max-width: 420px) { .se-bal { align-items: flex-start; width: 100%; } .se-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
