/* ===== Video giới thiệu VIP (vip-video.js) – luôn nền tối như trình phát video ===== */
.vv-dlg { padding: 0; border: 0; background: transparent; color: #F4EEDD; margin: auto;
  width: min(1280px, calc(100vw - 24px)); max-width: none; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; }
.vv-dlg::backdrop { background: rgba(5, 6, 10, .78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.vv-wrap { height: 100%; display: flex; flex-direction: column; background: #121116; border: 1px solid #3a3020; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.vv-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; font-size: .95rem; }
.vv-head b { color: #F3D27A; white-space: nowrap; }
.vv-head span { flex: 1; color: #B9B2A0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-x { background: #24222a; color: #ddd; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; }

.vv-screen { position: relative; width: 100%; flex: 1; min-height: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2c2412 0%, #15130f 55%, #0c0b0e 100%); }
.vv-stage { position: absolute; left: 0; top: 0; width: 480px; height: 360px; transform-origin: 0 0; font-family: inherit; }
.vv-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; }
.vv-scene.in { animation: vvFade .5s ease both; }
@keyframes vvFade { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Bàn tay */
.vv-hand { position: absolute; left: 0; top: 0; z-index: 5; font-size: 40px; line-height: 1; pointer-events: none;
  opacity: 0; transform: translate(420px, 380px); transition: transform .7s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.vv-hand.show { opacity: 1; }
.vv-hand span { display: block; transform-origin: 50% 0; }
.vv-hand.press span { animation: vvPress .45s ease; }
.vv-hand.press::before { content: ''; position: absolute; left: 14px; top: 4px; width: 14px; height: 14px; margin: -7px; border-radius: 50%;
  border: 2px solid #F3D27A; animation: vvRipple .6s ease-out forwards; }
@keyframes vvPress { 40% { transform: scale(.8) translateY(4px); } }
@keyframes vvRipple { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(3.2); } }
.vv-tapped { animation: vvTap .35s ease; box-shadow: 0 0 0 3px rgba(243, 210, 122, .55) !important; }
@keyframes vvTap { 50% { transform: scale(.94); } }

/* Khối Rubik CSS */
.vv-cube { --s: 90px; width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-35deg); }
.vv-cube.vv-spin { animation: vvSpin 9s linear infinite; }
.vv-cube.vv-tilt { animation: vvWob 5s ease-in-out infinite; }
@keyframes vvSpin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes vvWob { 50% { transform: rotateX(-30deg) rotateY(-55deg); } }
.vv-f { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: calc(var(--s) / 40); padding: calc(var(--s) / 30);
  background: #111; border-radius: calc(var(--s) / 14); backface-visibility: hidden; }
.vv-f i { border-radius: calc(var(--s) / 30 / var(--n) * 3); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.vv-front  { transform: translateZ(calc(var(--s) / 2)); }
.vv-back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.vv-right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.vv-left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.vv-cube .vv-top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.vv-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
/* 5 giao diện */
.skin-sl .vv-f { gap: 0; padding: 0; background: transparent; }
.skin-sl .vv-f i { border-radius: 0; box-shadow: none; filter: saturate(1.25) brightness(1.08); }
.skin-glass .vv-f { background: rgba(255,255,255,.08); }
.skin-glass .vv-f i { opacity: .82; background-image: linear-gradient(140deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 45%) !important; background-blend-mode: screen; }
.skin-neon .vv-f { background: #07070c; }
.skin-neon .vv-f i { background: transparent !important; border: 2px solid currentColor; box-shadow: 0 0 6px currentColor, inset 0 0 4px currentColor; }
.skin-neon .vv-front i { color: #39ff88; } .skin-neon .vv-back i { color: #4aa8ff; } .skin-neon .vv-right i { color: #ff3b6b; }
.skin-neon .vv-left i { color: #ff9a2e; } .skin-neon .vv-top i { color: #f4f4ff; } .skin-neon .vv-bottom i { color: #ffe83a; }
.skin-pastel .vv-f { background: #f3eee6; }
.skin-pastel .vv-f i { filter: saturate(.45) brightness(1.3); }

/* Thành phần chung trong cảnh */
.vv-center { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.vv-big { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.vv-gold { background: linear-gradient(135deg, #FBE29A, #E2B246 50%, #B9861A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vv-price { font-size: 26px; font-weight: 800; color: #F3D27A; } .vv-price small { font-size: 15px; color: #B9B2A0; font-weight: 600; }
.vv-hero-cube { height: 130px; display: grid; place-items: center; perspective: 600px; }
.vv-hero-cube .vv-cube { animation: vvSpin 7s linear infinite; }
.vv-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 420px; }
.vv-pills span { padding: 6px 12px; border-radius: 99px; background: rgba(243,210,122,.12); border: 1px solid rgba(243,210,122,.35); color: #F6E6B8;
  font-size: 13px; font-weight: 600; opacity: 0; animation: vvPop .4s ease forwards; animation-delay: calc(.6s + var(--i) * .22s); }
@keyframes vvPop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

.vv-app { width: 100%; max-width: 430px; background: #1d1b22; border: 1px solid #2f2c36; border-radius: 16px; padding: 14px; position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 12px; }
.vv-appbar { font-weight: 700; color: #fff; font-size: 15px; }
.vv-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 14px; border-radius: 11px; background: #2b2833; color: #e9e6ef;
  font-weight: 700; font-size: 14px; border: 1px solid #3a3644; }
.vv-btn-gold { background: linear-gradient(135deg, #FBE29A 0%, #E2B246 45%, #B9861A 100%); color: #2E2103; border: 0; box-shadow: 0 6px 16px rgba(185,134,26,.35); }
.vv-wide { width: 100%; padding: 12px; font-size: 16px; }
.vv-mini { font-size: 12.5px; color: #B9B2A0; }
.vv-stat { font-size: 14px; color: #d6d2dc; background: #26232d; padding: 7px 11px; border-radius: 10px; }
.vv-stat b { color: #fff; font-variant-numeric: tabular-nums; }

.vv-steps { display: grid; gap: 7px; }
.vv-steps div { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #26232d; opacity: .25; }
.vv-steps b { min-width: 46px; color: #F3D27A; font-size: 14px; }
.vv-steps code, .vv-pop code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; color: #e8e4f0; }
.vv-steps.go div { animation: vvStep .45s ease forwards; animation-delay: calc(var(--i) * .7s); }
@keyframes vvStep { to { opacity: 1; background: #2e2a1d; box-shadow: inset 3px 0 0 #E2B246; } }

.vv-split { display: flex; gap: 16px; align-items: center; justify-content: center; width: 100%; }
.vv-cubebox { width: 190px; height: 250px; padding-bottom: 40px; box-sizing: border-box; display: grid; place-items: center; perspective: 700px; position: relative; }
.vv-side { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }
.vv-tip { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 10px); background: #F3D27A; color: #2E2103; font-weight: 800; font-size: 14px;
  padding: 7px 12px; border-radius: 10px; opacity: 0; transition: .4s; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.vv-tip.show { opacity: 1; transform: translate(-50%, 0); }

.vv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vv-card { background: #26232d; border: 1px solid #34303d; border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0; animation: vvPop .4s ease forwards; animation-delay: calc(var(--i) * .15s); }
.vv-card b { font-size: 24px; color: #F3D27A; } .vv-card span { font-size: 12.5px; color: #d6d2dc; }
.vv-pop { position: absolute; inset: auto 12px 12px 12px; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: #2e2a1d;
  border: 1px solid #6b5420; perspective: 500px; opacity: 0; transform: translateY(16px); transition: .45s; }
.vv-pop.show { opacity: 1; transform: none; }
.vv-pop > div:last-child { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.vv-pop b { color: #fff; } .vv-pop small { color: #F3D27A; }
.vv-pop .vv-cube { margin: 4px 10px; }

.vv-bigrow { display: flex; gap: 14px; perspective: 700px; }
.vv-bigc { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 8px 10px; border-radius: 14px; opacity: 0;
  animation: vvPop .45s ease forwards; animation-delay: calc(var(--i) * .3s); }
.vv-bigc b { color: #fff; font-size: 17px; }
.vv-bigc.vv-tapped { background: rgba(243,210,122,.1); }

.vv-panel { flex: 1; max-width: 205px; background: #1d1b22; border: 1px solid #2f2c36; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.vv-panel small { color: #B9B2A0; font-size: 12.5px; font-weight: 600; }
.vv-timer { font-size: 46px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; }
.vv-fire { font-size: 17px; color: #fff; } .vv-fire b { color: #ff9a2e; font-size: 26px; }
.vv-days { display: flex; gap: 6px; }
.vv-days i { width: 20px; height: 20px; border-radius: 6px; background: #2b2833; transition: .4s; }
.vv-days i.on { background: linear-gradient(135deg, #ffb347, #ff6a2e); box-shadow: 0 0 10px rgba(255,120,40,.5); }

.vv-phone { width: 210px; background: #1d1b22; border: 2px solid #3a3644; border-radius: 26px; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; align-items: center; position: relative; }
.vv-scan { width: 150px; height: 150px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 6px; border: 2px dashed #F3D27A; border-radius: 12px; position: relative; overflow: hidden; background: #0e0d11; }
.vv-scan i { border-radius: 6px; background: #26232d; transition: background .3s; }
.vv-scan i.got { background: var(--c); }
.vv-line { position: absolute; left: 0; right: 0; height: 3px; background: #39ff88; box-shadow: 0 0 12px #39ff88; top: 0; opacity: 0; }
.vv-scan.go .vv-line { opacity: 1; animation: vvScan 1.6s ease-in-out 1 forwards; }
@keyframes vvScan { to { top: 100%; opacity: .2; } }

.vv-chart { width: 100%; height: 130px; background: #17151b; border-radius: 12px; }
.vv-chart polyline { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: vvDraw 2.4s ease forwards; }
.vv-chart .a { stroke: #8C7CFF; } .vv-chart .b { stroke: #E2B246; animation-delay: .5s; stroke-width: 2; }
@keyframes vvDraw { to { stroke-dashoffset: 0; } }
.vv-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -10px); background: #138A48; color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 7px 14px; border-radius: 99px; opacity: 0; transition: .4s; white-space: nowrap; }
.vv-toast.show { opacity: 1; transform: translate(-50%, 0); }

.vv-skins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; }
.vv-skin { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 22px 2px 12px; border-radius: 14px; perspective: 500px; transition: .35s; border: 1px solid transparent; }
.vv-skin b { font-size: 12px; color: #d6d2dc; }
.vv-skin.pick { background: rgba(243,210,122,.1); border-color: rgba(243,210,122,.45); transform: translateY(-6px) scale(1.06); }
.vv-skin.pick b { color: #F3D27A; }

.vv-qr { width: 130px; height: 130px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px; background: #fff; border-radius: 10px;
  opacity: 0; transform: scale(.85); transition: .45s; }
.vv-qr i.k { background: #111; border-radius: 2px; }
.vv-qr.show { opacity: 1; transform: none; }
.vv-done { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 24px; background: rgba(19,138,72,.95); color: #fff; font-size: 20px; font-weight: 800;
  opacity: 0; transform: scale(.9); transition: .45s; pointer-events: none; }
.vv-done.show { opacity: 1; transform: none; }

/* Màn kết thúc + nút phát lớn */
.vv-end { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: radial-gradient(90% 80% at 50% 30%, rgba(74,56,16,.97), rgba(14,12,10,.97)); animation: vvFade .5s ease both; padding: 16px; }
.vv-end[hidden] { display: none; }
.vv-end .vv-crown { font-size: 46px; } .vv-end h3 { margin: 0; color: #fff; font-size: 1.5rem; } .vv-end p { margin: 0; color: #E9DDB8; }
.vv-cta { margin-top: 6px; padding: 13px 26px; border: 0; border-radius: 14px; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  background: linear-gradient(135deg, #FBE29A 0%, #E2B246 45%, #B9861A 100%); color: #2E2103; box-shadow: 0 8px 24px rgba(185,134,26,.45); }
.vv-again { background: transparent; border: 1px solid #6b5420; color: #F3D27A; padding: 8px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.vv-bigplay { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; z-index: 7; font-size: 30px; cursor: pointer;
  background: rgba(243,210,122,.92); color: #2E2103; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.vv-bigplay[hidden] { display: none; }

/* Phụ đề + điều khiển */
.vv-cap { margin: 0; min-height: 3.2em; padding: 10px 16px 4px; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.5; color: #F4EEDD; text-align: center; }
.vv-ctrl { display: flex; align-items: center; gap: 10px; padding: 8px 12px 12px; }
.vv-ctrl > button { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: #24222a; color: #fff; font-size: 1rem; cursor: pointer; }
.vv-prog { flex: 1; display: flex; gap: 4px; }
.vv-prog button { flex: 1; height: 18px; padding: 7px 0; border: 0; background: transparent; cursor: pointer; }
.vv-prog button i { display: block; height: 4px; width: 0; border-radius: 4px; background: #E2B246; box-shadow: 0 0 0 100vw #3a3644 inset; }
.vv-prog button { background-image: linear-gradient(#3a3644, #3a3644); background-size: 100% 4px; background-position: center; background-repeat: no-repeat; border-radius: 4px; }
.vv-voice { margin: 0; padding: 0 16px 12px; font-size: .8rem; color: #B9B2A0; text-align: center; }

/* Nút mở video trên trang VIP */
.vv-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 18px; border-radius: 14px; cursor: pointer; font-weight: 700; font-size: .98rem;
  background: rgba(255,246,223,.08); color: #FFF6DF; border: 1px solid rgba(243,210,122,.5); }
.vv-open:hover { background: rgba(255,246,223,.16); }
.vv-open .pl { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F3D27A; color: #2E2103; font-size: .75rem; }
.vv-open.on-light { background: var(--gold-soft, #FBF3DE); color: var(--gold-text, #8A6209); border-color: var(--gold-line, #E8CF8A); }

@media (max-width: 560px) {
  .vv-dlg { width: 100vw; height: 100vh; height: 100dvh; }
  .vv-wrap { border-radius: 0; border: 0; }
  .vv-cap { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vv-cube.vv-spin, .vv-hero-cube .vv-cube, .vv-cube.vv-tilt { animation: none; }
}

/* Toàn màn hình */
.vv-dlg:fullscreen { width: 100vw; height: 100vh; }
.vv-dlg:fullscreen .vv-wrap { border-radius: 0; border: 0; }

/* Cảnh "Hỗ trợ những khối nào?" */
.vv-support { gap: 12px; width: 100%; }
.vv-sup-title { color: #F3D27A; font-weight: 800; font-size: 20px; }
.vv-sup-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 100%; perspective: 600px; }
.vv-sup { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 16px 2px 8px; border-radius: 14px; border: 1px solid transparent;
  opacity: 0; animation: vvPop .45s ease forwards; animation-delay: calc(.3s + var(--i) * .35s); transition: background .35s, border-color .35s; }
.vv-sup b { color: #fff; font-size: 16px; }
.vv-sup.pick { background: rgba(243,210,122,.1); border-color: rgba(243,210,122,.45); }
.vv-sup.pick b { color: #F3D27A; }
.vv-sup-info { display: grid; gap: 7px; width: 100%; }
.vv-sup-info div { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 11px; background: #1d1b22; border: 1px solid #2f2c36;
  text-align: left; opacity: .3; transition: .4s; }
.vv-sup-info div.show { opacity: 1; background: #2e2a1d; border-color: #6b5420; }
.vv-sup-info b { color: #F3D27A; font-size: 14px; white-space: nowrap; min-width: 82px; }
.vv-sup-info span { color: #e8e4f0; font-size: 12.5px; }

/* ===== Video Cờ vua VIP (chess-video.js) ===== */
.vv-dlg.vv-chess .vv-screen { background: radial-gradient(120% 90% at 50% 0%, #10233a 0%, #0d1622 55%, #090c12 100%); }
.vc-grad { background: linear-gradient(135deg, #67E8F9, #A78BFA 55%, #F472B6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vc-hero { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.vc-glow { position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(103, 232, 249, .45), transparent 70%); animation: vcPulse 2s ease-in-out infinite; }
@keyframes vcPulse { 50% { transform: scale(1.15); opacity: .6; } }
.vc-knight { position: relative; width: 96px; height: 96px; background: center / contain no-repeat; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); animation: vcHop 1.6s ease-in-out infinite; }
@keyframes vcHop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.vc-crown { position: absolute; top: -8px; right: 6px; font-size: 30px; animation: vcPop .6s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
@keyframes vcPop { from { transform: scale(0) rotate(-40deg); } }

.vc-vs { display: flex; align-items: center; gap: 14px; }
.vc-card { position: relative; width: 170px; padding: 18px 12px; border-radius: 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; background: #1d1b22; border: 1px solid #2f2c36; color: #e9e6ef; }
.vc-card small { font-weight: 700; color: #B9B2A0; }
.vc-card .vc-num { font-size: 46px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.vc-card span { font-size: 13px; color: #c9c4d6; }
.vc-free { opacity: .8; } .vc-lock { position: absolute; top: 8px; right: 10px; font-size: 18px; }
.vc-vip { border: 2px solid rgba(103, 232, 249, .5); }
.vc-vip.on { background: linear-gradient(160deg, #123247, #2a1f55); box-shadow: 0 0 0 3px rgba(103, 232, 249, .25), 0 12px 30px rgba(0,0,0,.4); }
.vc-vip.on .vc-num { color: #67E8F9; }
.vc-arrow { font-size: 26px; color: #67E8F9; animation: vcNudge 1s ease-in-out infinite; }
@keyframes vcNudge { 50% { transform: translateX(6px); } }

.vc-kinds { gap: 14px; }
.vc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vc-kind { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px; border-radius: 14px; border: 2px solid #3a3644; background: #26232d; color: #fff; }
.vc-kind span { grid-row: span 2; font-size: 26px; } .vc-kind b { font-size: 15px; } .vc-kind small { font-size: 11px; color: #B9B2A0; }
.vc-kind.on { border-color: #67E8F9; background: #123247; }
.vc-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vc-levels div { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.vc-levels i { width: 100%; height: 10px; border-radius: 6px; background: #2b2833; }
.vc-levels b { font-size: 11.5px; color: #c9c4d6; }
.vc-levels.go i { animation: vcFill .4s ease forwards; animation-delay: calc(var(--i) * .45s); }
.vc-levels div:nth-child(1) { --c: #22c55e; } .vc-levels div:nth-child(2) { --c: #84cc16; } .vc-levels div:nth-child(3) { --c: #f59e0b; } .vc-levels div:nth-child(4) { --c: #f97316; } .vc-levels div:nth-child(5) { --c: #ef4444; }
@keyframes vcFill { to { background: var(--c); box-shadow: 0 0 10px var(--c); } }
.vc-auto { align-self: center; padding: 9px 16px; border-radius: 99px; background: #26232d; border: 2px solid #3a3644; color: #fff; font-weight: 800; font-size: 14px; }
.vc-auto.on { border-color: #A78BFA; background: #2a1f55; box-shadow: 0 6px 18px rgba(167, 139, 250, .35); }

.vc-genius { display: flex; gap: 16px; align-items: center; }
.vc-board { position: relative; width: 232px; height: 232px; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.5); flex: none; }
.vc-sqs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); }
.vc-sqs i.l { background: #F0D9B5; } .vc-sqs i.d { background: #B58863; }
.vc-sqs i.last { box-shadow: inset 0 0 0 100px rgba(255, 213, 0, .4); }
.vc-sqs i.mated { box-shadow: inset 0 0 0 100px rgba(230, 40, 40, .55); animation: vcMate .5s ease 3; }
@keyframes vcMate { 50% { box-shadow: inset 0 0 0 100px rgba(230, 40, 40, .25); } }
.vc-ps { position: absolute; inset: 0; }
.vc-p { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; background: center / 92% no-repeat; transition: transform .55s cubic-bezier(.3, .7, .3, 1), opacity .3s; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.vc-p.gone { opacity: 0; scale: .4; } /* mờ đi tại chỗ, không bay về góc */
.vc-badge { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; display: none; pointer-events: none; z-index: 3; }
.vc-badge.show { display: block; }
.vc-side { position: relative; display: flex; flex-direction: column; gap: 8px; width: 190px; }
.vc-step { padding: 9px 11px; border-radius: 12px; background: #1d1b22; border: 1px solid #2f2c36; color: #8f8a99; font-weight: 700; font-size: 13.5px; transition: .35s; }
.vc-step i { font-style: normal; display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 99px; color: #fff; text-align: center; margin-left: 4px; }
#vcS1 i { background: #1BAFA8; } #vcS3 i { background: #6AA84F; }
.vc-step.on { color: #fff; border-color: #67E8F9; background: #123247; transform: translateX(4px); }
.vc-confetti { position: absolute; left: 0; top: 0; width: 232px; height: 232px; pointer-events: none; z-index: 5; } /* bắn ngay trên bàn cờ */
.vc-confetti i { position: absolute; left: calc(55% + var(--i) * 2.4%); top: 10%; width: 7px; height: 11px; border-radius: 2px; opacity: 0;
  background: hsl(calc(var(--i) * 40), 90%, 60%); }
.vc-confetti.go i { animation: vcConf 1.6s ease-out forwards; animation-delay: calc(var(--i) * .03s); }
@keyframes vcConf { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(calc(-90px - var(--i) * 4px)) translateX(calc((var(--i) - 9) * 6px)) rotate(540deg); } }

.vc-syms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; }
.vc-sym { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: vvPop .45s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(.4s + var(--i) * .45s); }
.vc-sym i { font-style: normal; min-width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 900 22px/1 var(--font-sans, sans-serif); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.vc-sym span { font-size: 12px; color: #e9e6ef; font-weight: 700; text-align: center; }

.vc-coach { display: flex; align-items: center; gap: 10px; }
.vc-gm { width: 170px; height: 212px; }
.vc-gm .gm { width: 100%; height: 100%; }
.vc-bubble { position: relative; max-width: 220px; padding: 14px 16px; border-radius: 18px; background: #fff; color: #1d1d1f; font-weight: 800; font-size: 17px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.vc-bubble::before { content: ''; position: absolute; left: -10px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.vc-bubble.pop { animation: vcBub .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes vcBub { from { transform: scale(.6); opacity: 0; } }

.vc-rating { gap: 10px; }
.vc-elo { display: flex; align-items: baseline; gap: 12px; }
.vc-elo b { font-size: 56px; font-weight: 900; color: #F3D27A; font-variant-numeric: tabular-nums; }
.vc-elo span { font-size: 18px; font-weight: 800; color: #22c55e; opacity: 0; transition: .4s; }
.vc-elo span.show { opacity: 1; }
.vc-chart { width: 100%; height: 90px; background: #17151b; border-radius: 12px; }
.vc-chart polyline { fill: none; stroke: #22c55e; stroke-width: 3.5; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: vvDraw 2.6s ease .6s forwards; }

.vc-combo { position: relative; display: flex; align-items: center; gap: 10px; }
.vc-pk, .vc-res { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 120px; padding: 14px 8px; border-radius: 16px; background: #1d1b22; border: 1px solid #2f2c36; color: #fff; transition: .7s cubic-bezier(.5, 0, .3, 1); }
.vc-pk span, .vc-res span { font-size: 30px; } .vc-pk b, .vc-res b { font-size: 15px; } .vc-pk small, .vc-res small { color: #F3D27A; font-weight: 800; font-size: 15px; }
.vc-plus { font-size: 28px; color: #B9B2A0; transition: .5s; }
.vc-res { position: absolute; left: 50%; top: 50%; width: 170px; transform: translate(-50%, -50%) scale(.3); opacity: 0;
  background: linear-gradient(160deg, #3b2a0a, #2a1f55); border: 2px solid #F3D27A; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.vc-res i { font-style: normal; margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg, #F59E0B, #EF4444); font-size: 12px; font-weight: 800; }
.vc-combo.go .vc-pk.a { transform: translateX(70px) scale(.6); opacity: 0; }
.vc-combo.go .vc-pk.b { transform: translateX(-70px) scale(.6); opacity: 0; }
.vc-combo.go .vc-plus { opacity: 0; }
.vc-combo.go .vc-res { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .35s; }

.vc-phone { gap: 10px; }
.vc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
.vc-plans span { padding: 7px 2px; border-radius: 10px; background: #26232d; border: 2px solid #3a3644; color: #e9e6ef; font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.vc-plans span b { color: #F3D27A; }
.vc-plans span.on { border-color: #67E8F9; background: #123247; }
.vc-badge.show { display: block; }
.vc-badge span { position: absolute; right: -16%; top: -16%; min-width: 50%; height: 50%; padding: 0 6%; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center;
  color: #fff; font: 900 13px/1 var(--font-sans, sans-serif); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.vc-badge.k-brilliant span { background: #1BAFA8; } .vc-badge.k-mate span { background: #6AA84F; }
.vc-badge.pop span { animation: badgePop .45s cubic-bezier(.3, 1.6, .5, 1), vcGlow 1.2s ease-in-out .45s 2; }
@keyframes vcGlow { 50% { box-shadow: 0 0 0 6px rgba(27, 175, 168, .45), 0 2px 6px rgba(0,0,0,.4); } }
.vv-open-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.vc-genius { position: relative; }

/* Video quay thật (data-real-video) */
.rv-dlg { padding: 0; border: 0; background: transparent; margin: auto; width: min(1100px, calc(100vw - 24px)); max-height: 100vh; max-height: 100dvh; }
.rv-dlg::backdrop { background: rgba(5, 6, 10, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rv-wrap { background: #12101d; border-radius: 18px; overflow: hidden; border: 1px solid rgba(243, 210, 122, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; color: #FFF6DF; }
.rv-x { width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; cursor: pointer; }
.rv-wrap video { display: block; width: 100%; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); background: #000; aspect-ratio: 1440 / 682; }
.rv-err { margin: 0; padding: 10px 16px; color: #ffb4b4; text-align: center; }
@media (max-width: 560px) { .rv-dlg { width: 100vw; } .rv-wrap { border-radius: 0; border: 0; } }
