/* «Победный танец» (0.39, victory-dance.js): the show over a game card's podium — a box of its own, laid over the
   card for a few seconds, that nobody can press (pointer-events: none) and that clips everything it draws — the
   shop's card with a live preview per style, the shop page's tile picture, the profile's line. Pieces move by
   transform and opacity only, placed once by left/top; --d is a piece's delay, --t its length, --t0 how far the show
   had got when the card drew itself again. */
.vd-box { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; overflow: hidden; border-radius: inherit; contain: layout paint; }
.vd-fx { position: absolute; inset: 0; pointer-events: none; }
.vd-p { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; animation-fill-mode: both; animation-duration: var(--t, var(--vd-ms, 3600ms)); animation-delay: calc(var(--d, 0ms) + var(--t0, 0ms)); }
.vd-hid { visibility: hidden !important; } /* the winner's face on the step while its copy dances */

/* Whose show it is: over the podium's title. */
.vd-tag { position: absolute; z-index: 2; left: 50%; top: 8px; max-width: calc(100% - 24px); box-sizing: border-box; padding: 5px 12px; border-radius: 999px; background: rgba(12, 14, 20, .86); border: 1px solid rgba(229, 160, 13, .75); color: #ffe6a3; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transform: translateX(-50%); animation: vdTag var(--vd-ms, 3600ms) ease-out both; animation-delay: var(--t0, 0ms); }
@keyframes vdTag {
  0% { opacity: 0; transform: translate(-50%, -10px) scale(.92); }
  8% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  90% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px) scale(.98); }
}

/* «Конфетти-пушка»: two cannons at the foot, a puff, the confetti up and over, fluttering down. */
.vd-cannon { width: 36px; height: 20px; margin: -10px 0 0 -6px; transform-origin: 6px 50%; border-radius: 3px; background: linear-gradient(90deg, #8a5a12 0 18%, #e5a00d 18% 40%, #fff1c9 40% 48%, #e5a00d 48% 78%, #ffd36b 78%); clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%); animation-name: vdCannon; animation-duration: var(--vd-ms, 3600ms); }
.vd-cannon.vd-sm { width: 18px; height: 10px; margin: -5px 0 0 -3px; transform-origin: 3px 50%; }
@keyframes vdCannon {
  0% { opacity: 0; transform: rotate(var(--aim)) scale(.3); }
  9% { opacity: 1; transform: rotate(var(--aim)) scale(1); }
  13% { transform: rotate(var(--aim)) scale(1); }
  15% { transform: rotate(var(--aim)) translateX(-5px) scale(1.08, .92); }
  22% { transform: rotate(var(--aim)) translateX(0) scale(1); }
  88% { opacity: 1; transform: rotate(var(--aim)) scale(1); }
  100% { opacity: 0; transform: rotate(var(--aim)) scale(.8); }
}
.vd-puff { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%); animation-name: vdPuff; animation-duration: 700ms; animation-timing-function: ease-out; }
@keyframes vdPuff { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: .9; } 100% { opacity: 0; transform: scale(2.2); } }
.vd-cf { width: var(--w, 6px); height: var(--h, 10px); margin: calc(var(--h, 10px) / -2) 0 0 calc(var(--w, 6px) / -2); border-radius: 1px; background: var(--c); animation-name: vdConfetti; animation-timing-function: cubic-bezier(.12, .75, .3, 1); }
.vd-cf.vd-round { border-radius: 50%; }
@keyframes vdConfetti {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(.5); }
  5% { opacity: 1; }
  40% { transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--rot) * .45)) scale(1); animation-timing-function: cubic-bezier(.45, 0, .8, .55); }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(var(--dx) * 1.18), calc(var(--dy) + var(--fall)), 0) rotate(var(--rot)) scale(.9); }
}

/* «Фейерверк»: rockets from the foot, a flash and a ring of sparks each. */
.vd-rocket { width: 3px; height: 16px; margin: -8px 0 0 -1.5px; border-radius: 2px; background: linear-gradient(to top, rgba(255, 255, 255, 0), var(--c) 60%, #fff); animation-name: vdRocket; animation-duration: 520ms; animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
@keyframes vdRocket { 0% { opacity: 0; transform: translate3d(0, var(--rise), 0); } 12% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 0, 0); } }
.vd-flash { width: var(--sz, 60px); height: var(--sz, 60px); margin: calc(var(--sz, 60px) / -2) 0 0 calc(var(--sz, 60px) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), var(--c) 25%, rgba(0, 0, 0, 0) 68%); animation-name: vdFlash; animation-duration: 520ms; animation-timing-function: ease-out; }
@keyframes vdFlash { 0% { opacity: 0; transform: scale(.2); } 18% { opacity: .85; } 100% { opacity: 0; transform: scale(1.3); } }
.vd-spark { width: 3px; height: 13px; margin: -6.5px 0 0 -1.5px; border-radius: 2px; background: linear-gradient(to top, rgba(255, 255, 255, 0), var(--c) 45%, #fff); box-shadow: 0 0 6px 1px var(--c); animation-name: vdSpark; animation-timing-function: cubic-bezier(.1, .8, .3, 1); }
.vd-spark.vd-sm { width: 2px; height: 7px; margin: -3.5px 0 0 -1px; box-shadow: 0 0 3px var(--c); }
@keyframes vdSpark {
  0% { opacity: 0; transform: rotate(var(--a)) translate3d(0, 0, 0) scale(1.3); }
  6% { opacity: 1; }
  65% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translate3d(0, calc(var(--r) * -1), 0) scale(.35); }
}

/* «Софиты»: the lights go down, two beams search and find the winner, who stands in a circle of light. */
.vd-veil { width: 100%; height: 100%; background: rgba(4, 6, 10, .58); animation-name: vdVeil; animation-duration: var(--vd-ms, 3600ms); }
@keyframes vdVeil { 0% { opacity: 0; } 9% { opacity: 1; } 38% { opacity: 1; } 44% { opacity: 0; } 100% { opacity: 0; } }
.vd-veil.vd-hole { background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(4, 6, 10, 0) 0 var(--hr, 40px), rgba(4, 6, 10, .62) calc(var(--hr, 40px) + 30px)); animation-name: vdHole; }
@keyframes vdHole { 0% { opacity: 0; } 38% { opacity: 0; } 44% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.vd-beam { width: var(--bw, 110px); height: var(--len, 300px); margin-left: calc(var(--bw, 110px) / -2); transform-origin: 50% 0; background: linear-gradient(to bottom, rgba(255, 244, 210, .62), rgba(255, 244, 210, .14) 70%, rgba(255, 244, 210, 0)); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation-name: vdBeam; animation-duration: var(--vd-ms, 3600ms); animation-timing-function: ease-in-out; }
@keyframes vdBeam {
  0% { opacity: 0; transform: rotate(var(--from)); }
  8% { opacity: .9; }
  24% { transform: rotate(var(--mid)); }
  38% { transform: rotate(var(--aim)); }
  88% { opacity: .9; transform: rotate(var(--aim)); }
  100% { opacity: 0; transform: rotate(var(--aim)); }
}
.vd-twinkle { font-size: var(--sz, 13px); font-style: normal; line-height: 1; margin: -.5em 0 0 -.5em; color: #fff3c4; text-shadow: 0 0 6px #ffd36b, 0 0 12px rgba(255, 211, 107, .7); animation-name: vdTwinkle; animation-duration: 900ms; animation-timing-function: ease-out; }
@keyframes vdTwinkle { 0% { opacity: 0; transform: scale(.2) rotate(0deg); } 35% { opacity: 1; transform: scale(1.15) rotate(25deg); } 100% { opacity: 0; transform: scale(.4) rotate(70deg); } }

/* «Танцующая аватарка»: the winner's own face leaves the step, dances to the beat, spins and lands back. */
.vd-dancer { width: var(--sz, 56px); height: var(--sz, 56px); margin: calc(var(--sz, 56px) / -2) 0 0 calc(var(--sz, 56px) / -2); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #e5a00d, #b2459c); color: #fff; font-style: normal; font-weight: 700; font-size: calc(var(--sz, 56px) * .42); box-shadow: 0 0 0 2px #ffd36b, 0 6px 16px rgba(0, 0, 0, .45); animation-name: vdDance; animation-duration: var(--vd-ms, 3600ms); animation-timing-function: ease-in-out; }
.vd-dancer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-dancer, .vd-note { z-index: 3; } /* the dancer passes in front of the name's tag */
@keyframes vdDance {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(var(--from, .6)); }
  4% { opacity: 1; }
  9% { transform: translate3d(0, calc(var(--hop, 40px) * -.9), 0) scale(1.06); }
  15% { transform: translate3d(-9px, calc(var(--hop, 40px) * -.4), 0) rotate(-14deg) scale(1.1, .9); }
  22% { transform: translate3d(0, calc(var(--hop, 40px) * -1), 0) rotate(0deg) scale(.95, 1.07); }
  29% { transform: translate3d(9px, calc(var(--hop, 40px) * -.4), 0) rotate(14deg) scale(1.1, .9); }
  36% { transform: translate3d(0, calc(var(--hop, 40px) * -1), 0) rotate(0deg) scale(.95, 1.07); }
  43% { transform: translate3d(-9px, calc(var(--hop, 40px) * -.4), 0) rotate(-14deg) scale(1.1, .9); }
  52% { transform: translate3d(0, calc(var(--hop, 40px) * -1.25), 0) rotate(-180deg) scale(1.12); }
  60% { transform: translate3d(0, calc(var(--hop, 40px) * -.85), 0) rotate(-360deg) scale(1); }
  67% { transform: translate3d(9px, calc(var(--hop, 40px) * -.4), 0) rotate(-346deg) scale(1.1, .9); }
  74% { transform: translate3d(0, calc(var(--hop, 40px) * -1), 0) rotate(-360deg) scale(.95, 1.07); }
  81% { transform: translate3d(-9px, calc(var(--hop, 40px) * -.4), 0) rotate(-374deg) scale(1.1, .9); }
  90% { transform: translate3d(0, calc(var(--hop, 40px) * -.5), 0) rotate(-360deg) scale(1); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-360deg) scale(var(--from, .6)); }
}
.vd-floor { width: var(--sz, 84px); height: calc(var(--sz, 84px) * .32); margin: calc(var(--sz, 84px) * -.16) 0 0 calc(var(--sz, 84px) / -2); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 211, 107, .55), rgba(255, 92, 170, .25) 55%, rgba(0, 0, 0, 0) 72%); animation-name: vdFloor; animation-duration: 500ms; animation-iteration-count: 7; animation-timing-function: ease-in-out; }
@keyframes vdFloor { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.vd-note { font-size: var(--sz, 16px); font-style: normal; line-height: 1; margin: -.5em 0 0 -.3em; color: #ffe6a3; text-shadow: 0 0 6px rgba(229, 160, 13, .8); animation-name: vdNote; animation-duration: 1300ms; animation-timing-function: ease-out; }
@keyframes vdNote { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-10deg) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(14deg) scale(1.05); } }

/* «Дождь из попкорна»: kernels and a few buckets tumbling down, a bounce at the foot. */
.vd-pop { width: var(--sz, 11px); height: calc(var(--sz, 11px) * .86); margin: calc(var(--sz, 11px) * -.43) 0 0 calc(var(--sz, 11px) / -2); border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%; background: radial-gradient(circle at 35% 32%, #fffef6, #f8ebc3 55%, #e9c46a); box-shadow: inset -1px -2px 2px rgba(176, 118, 18, .35), 0 1px 2px rgba(0, 0, 0, .35); animation-name: vdPop; animation-timing-function: cubic-bezier(.45, 0, .9, .6); }
.vd-pop.vd-bucket { width: auto; height: auto; margin: -.5em 0 0 -.5em; border-radius: 0; background: none; box-shadow: none; font-size: var(--sz, 20px); font-style: normal; line-height: 1; }
@keyframes vdPop {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  6% { opacity: 1; }
  70% { transform: translate3d(var(--sway), var(--fall), 0) rotate(var(--rot)); animation-timing-function: ease-out; }
  80% { transform: translate3d(calc(var(--sway) * 1.08), calc(var(--fall) - 11px), 0) rotate(calc(var(--rot) * 1.08)); animation-timing-function: ease-in; }
  89% { opacity: 1; transform: translate3d(calc(var(--sway) * 1.12), var(--fall), 0) rotate(calc(var(--rot) * 1.12)); }
  100% { opacity: 0; transform: translate3d(calc(var(--sway) * 1.12), var(--fall), 0) rotate(calc(var(--rot) * 1.12)); }
}

/* «Диско-шар» (n86): a mirror ball comes down on its cord, coloured rays turn around it, spots of light walk the card. */
.vd-ball { width: var(--sz, 52px); height: var(--sz, 52px); margin: calc(var(--sz, 52px) / -2) 0 0 calc(var(--sz, 52px) / -2); border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 30%), repeating-linear-gradient(0deg, rgba(20, 26, 40, .55) 0 1px, transparent 1px calc(var(--sz, 52px) / 7)), repeating-linear-gradient(90deg, rgba(20, 26, 40, .55) 0 1px, transparent 1px calc(var(--sz, 52px) / 7)), radial-gradient(circle at 40% 35%, #f4f7ff, #aab4cc 55%, #56607c); box-shadow: 0 0 calc(var(--sz, 52px) * .5) rgba(190, 215, 255, .55), inset calc(var(--sz, 52px) * -.1) calc(var(--sz, 52px) * -.12) calc(var(--sz, 52px) * .2) rgba(14, 18, 34, .55); animation-name: vdBall; animation-duration: var(--vd-ms, 3600ms); }
.vd-ball::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: var(--drop, 60px); margin-left: -1px; background: linear-gradient(rgba(200, 210, 230, .2), rgba(200, 210, 230, .8)); }
.vd-ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 68% 62%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 22%), radial-gradient(circle at 24% 66%, rgba(126, 232, 255, .7), rgba(126, 232, 255, 0) 18%), radial-gradient(circle at 62% 22%, rgba(255, 107, 139, .65), rgba(255, 107, 139, 0) 18%); animation: vdGlint 620ms steps(2, jump-none) infinite alternate; }
@keyframes vdBall { 0% { opacity: 1; transform: translate3d(0, calc(var(--drop, 60px) * -1), 0) rotate(-8deg); } 14% { opacity: 1; transform: translate3d(0, 5px, 0) rotate(6deg); } 20% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(0, 0, 0) rotate(4deg); } 86% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-3deg); } 100% { opacity: 0; transform: translate3d(0, calc(var(--drop, 60px) * -.5), 0) rotate(0deg); } }
@keyframes vdGlint { from { opacity: .25; transform: rotate(0deg); } to { opacity: 1; transform: rotate(90deg); } }
.vd-dray { width: var(--bw, 34px); height: var(--len, 300px); margin-left: calc(var(--bw, 34px) / -2); transform-origin: 50% 0; background: linear-gradient(to bottom, var(--c, #7ee8ff), transparent 92%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation-name: vdDray; animation-duration: calc(var(--vd-ms, 3600ms) - 700ms); animation-timing-function: linear; }
@keyframes vdDray { 0% { opacity: 0; transform: rotate(var(--a)); } 12% { opacity: .62; } 85% { opacity: .62; } 100% { opacity: 0; transform: rotate(calc(var(--a) + var(--turn, 44deg))); } }
.vd-dspot { width: var(--sz, 22px); height: calc(var(--sz, 22px) * .7); margin: calc(var(--sz, 22px) * -.35) 0 0 calc(var(--sz, 22px) / -2); border-radius: 50%; background: radial-gradient(ellipse, #fff 0 12%, var(--c, #7ee8ff) 34%, transparent 70%); mix-blend-mode: screen; animation-name: vdDspot; animation-timing-function: linear; }
@keyframes vdDspot { 0% { opacity: 0; transform: rotate(var(--a)) translate3d(0, var(--r, 80px), 0); } 15% { opacity: .95; } 80% { opacity: .9; } 100% { opacity: 0; transform: rotate(calc(var(--a) + var(--turn, 100deg))) translate3d(0, var(--r, 80px), 0); } }

/* Reduced motion (victory-dance.js sets .vd-still): nothing moves — a still picture of the show for the same time. */
.vd-still .vd-p, .vd-still .vd-tag { animation: none !important; }
.vd-still .vd-tag { transform: translateX(-50%); opacity: 1; }
.vd-still .vd-cannon { transform: rotate(var(--aim)); }
.vd-still .vd-puff, .vd-still .vd-rocket, .vd-still .vd-flash, .vd-still .vd-veil:not(.vd-hole), .vd-still .vd-floor { opacity: 0; }
.vd-still .vd-cf { transform: translate3d(calc(var(--dx) * .75), calc(var(--dy) * .7), 0) rotate(var(--rot)); }
.vd-still .vd-spark { transform: rotate(var(--a)) translate3d(0, calc(var(--r) * -.85), 0); opacity: .9; }
.vd-still .vd-beam { transform: rotate(var(--aim)); opacity: .85; }
.vd-still .vd-hole { opacity: 1; }
.vd-still .vd-twinkle { opacity: .9; }
.vd-still .vd-dancer { transform: translate3d(0, calc(var(--hop, 40px) * -.9), 0); }
.vd-still .vd-note { transform: translate3d(calc(var(--dx) * .6), calc(var(--dy) * .6), 0); opacity: .9; }
.vd-still .vd-pop { transform: translate3d(var(--sway), var(--fall), 0) rotate(var(--rot)); }
.vd-still .vd-ball::after { animation: none; }
.vd-still .vd-dray { transform: rotate(var(--a)); opacity: .62; }
.vd-still .vd-dspot { transform: rotate(var(--a)) translate3d(0, var(--r, 80px), 0); opacity: .9; }

/* n107b «Кордебалет»: top hats on canes rise from the floor in a line, bob in a wave, all tip at once; a soft spot on the winner. */
.vd-hat { width: var(--sz, 36px); height: calc(var(--sz, 36px) * 1.4); margin: calc(var(--sz, 36px) * -1.4) 0 0 calc(var(--sz, 36px) / -2); transform-origin: 50% 100%; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 56'><defs><linearGradient id='h' x1='0' x2='1'><stop offset='0' stop-color='%23050505'/><stop offset='.35' stop-color='%233a3a44'/><stop offset='.6' stop-color='%23121216'/><stop offset='1' stop-color='%23050505'/></linearGradient></defs><path d='M29.5 55 31.6 15.5c.3-5.6-3.4-7.6-6-6.4-2 .9-2.4 3.2-1.4 4.6' fill='none' stroke='%23111' stroke-width='4.2' stroke-linecap='round'/><path d='M29.5 55 31.6 15.5c.3-5.6-3.4-7.6-6-6.4-2 .9-2.4 3.2-1.4 4.6' fill='none' stroke='%23f4f1ea' stroke-width='2.4' stroke-linecap='round'/><path d='M29.6 52.5 29.8 48.6' stroke='%23c8102e' stroke-width='2.4'/><rect x='9' y='3' width='22' height='22' rx='2.5' fill='url(%23h)' stroke='%23000' stroke-width='.8'/><rect x='9' y='18' width='22' height='4.5' fill='%23c8102e'/><ellipse cx='20' cy='25.5' rx='17' ry='3.8' fill='%23151518' stroke='%23000' stroke-width='.8'/><ellipse cx='20' cy='24.6' rx='13' ry='1.6' fill='%2338383f'/></svg>") center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); animation-name: vdHat; animation-timing-function: ease-in-out; }
@keyframes vdHat {
  0% { transform: translate3d(0, 100%, 0); opacity: 1; }
  14% { transform: translate3d(0, 0, 0) rotate(0deg); }
  24% { transform: translate3d(0, -16%, 0) rotate(calc(var(--tip, 14deg) * .5)); }
  34% { transform: translate3d(0, 0, 0) rotate(0deg); }
  44% { transform: translate3d(0, -16%, 0) rotate(calc(var(--tip, 14deg) * -.5)); }
  54% { transform: translate3d(0, 0, 0) rotate(0deg); }
  64% { transform: translate3d(0, -16%, 0) rotate(calc(var(--tip, 14deg) * .5)); }
  72% { transform: translate3d(0, 0, 0) rotate(0deg); }
  80% { transform: translate3d(0, -32%, 0) rotate(var(--tip, 14deg)); opacity: 1; }
  90% { transform: translate3d(0, -32%, 0) rotate(var(--tip, 14deg)); opacity: 1; }
  100% { transform: translate3d(0, 100%, 0) rotate(0deg); opacity: 0; }
}
.vd-chspot { width: var(--sz, 90px); height: var(--sz, 90px); margin: calc(var(--sz, 90px) / -2) 0 0 calc(var(--sz, 90px) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 210, .38), rgba(255, 220, 140, .16) 45%, transparent 70%); mix-blend-mode: screen; animation-name: vdChspot; }
@keyframes vdChspot { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1); } 85% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.1); } }
/* n107b «Новый рекорд»: an 8-bit crown drops onto the winner in hops; pixel stars, hearts and coins burst out in steps. */
.vd-pxcrown { width: var(--sz, 34px); height: calc(var(--sz, 34px) * .75); margin: calc(var(--sz, 34px) * -.375) 0 0 calc(var(--sz, 34px) / -2); image-rendering: pixelated; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' shape-rendering='crispEdges'><path d='M0 2h2v1h1v1h1V2h2V0h4v2h2v2h1V3h1V2h2v10H0z' fill='%23000'/><path d='M1 3h1v2h3V3h1V1h4v2h1v2h3V3h1v8H1z' fill='%23ffcc00'/><path d='M1 9h14v2H1z' fill='%23ffa300'/><path d='M7 2h2v1H7zM2 4h1v1H2zM13 4h1v1h-1z' fill='%23fff3a0'/><path d='M3 7h2v1H3zM7 6h2v2H7zM11 7h2v1h-2z' fill='%23ff004d'/><path d='M7 6h1v1H7z' fill='%23ff77a8'/></svg>") center / contain no-repeat; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .45)); animation-name: vdPxCrown; }
@keyframes vdPxCrown {
  0% { transform: translate3d(0, calc(var(--drop, 60px) * -1), 0); opacity: 1; animation-timing-function: steps(6, end); }
  22% { transform: translate3d(0, 0, 0); animation-timing-function: steps(1, end); }
  30% { transform: translate3d(0, -4px, 0); }
  38% { transform: translate3d(0, 0, 0); }
  46% { transform: translate3d(0, -4px, 0); }
  54% { transform: translate3d(0, 0, 0); }
  90% { transform: translate3d(0, 0, 0); opacity: 1; }
  92% { opacity: 0; } 94% { opacity: 1; } 96% { opacity: 0; } 98% { opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 0; }
}
.vd-px { width: var(--sz, 16px); height: var(--sz, 16px); margin: calc(var(--sz, 16px) / -2) 0 0 calc(var(--sz, 16px) / -2); image-rendering: pixelated; background: center / contain no-repeat; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .5)); animation-name: vdPx; }
.vd-px0 { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><path d='M3 0h2v2h3v2H7v1h1v3H6V7H2v1H0V5h1V4H0V2h3z' fill='%23ffec27'/><path d='M3 1h1v2H3zM1 3h1v1H1z' fill='%23fff'/></svg>"); }
.vd-px1 { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><path d='M1 1h2v1h2V1h2v1h1v3H7v1H6v1H5v1H3V7H2V6H1V5H0V2h1z' fill='%23ff004d'/><path d='M1 2h1v1H1z' fill='%23ffccd8'/></svg>"); }
.vd-px2 { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><path d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1z' fill='%23ffa300'/><path d='M3 1h2v1h1v4H5v1H3V6H2V2h1z' fill='%23ffec27'/><path d='M3 2h1v3H3z' fill='%23fff'/></svg>"); }
@keyframes vdPx {
  0% { transform: translate3d(0, 0, 0); opacity: 0; animation-timing-function: steps(5, end); }
  6% { opacity: 1; }
  45% { transform: translate3d(var(--dx), var(--dy), 0); opacity: 1; animation-timing-function: steps(1, end); }
  70% { transform: translate3d(var(--dx), calc(var(--dy) - 4px), 0); opacity: 1; }
  78% { opacity: 0; } 84% { opacity: 1; } 90% { opacity: 0; }
  100% { transform: translate3d(var(--dx), var(--dy), 0); opacity: 0; }
}
/* n107b «Лазерное шоу»: beams from the floor's corners sweep the card through a haze, cross over the winner; a fan from above locks on; sparks where they meet. */
.vd-lz { width: 3px; height: var(--len, 400px); margin: calc(var(--len, 400px) * -1) 0 0 -1.5px; transform-origin: 50% 100%; border-radius: 2px; background: linear-gradient(to top, #fff, var(--c, #39ff6a) 4%, var(--c, #39ff6a) 55%, transparent); box-shadow: 0 0 6px 1px var(--c, #39ff6a); mix-blend-mode: screen; animation-name: vdLz; animation-timing-function: ease-in-out; }
@keyframes vdLz { 0% { opacity: 0; transform: rotate(var(--a)); } 8% { opacity: .9; } 45% { transform: rotate(calc(var(--a) + var(--turn, 60deg))); } 60% { opacity: .9; } 85% { transform: rotate(var(--a)); opacity: .8; } 100% { opacity: 0; transform: rotate(calc(var(--a) + var(--turn, 60deg) * .4)); } }
.vd-lzlock { margin-top: 0; transform-origin: 50% 0; background: linear-gradient(to bottom, rgba(255, 255, 255, .6), var(--c, #39ff6a) 8%, var(--c, #39ff6a) 92%, #fff); animation-name: vdLzLock; }
@keyframes vdLzLock { 0% { opacity: 0; transform: rotate(var(--a)) scaleY(0); } 20% { opacity: .95; transform: rotate(var(--a)) scaleY(1); } 30% { opacity: .5; } 38% { opacity: .95; } 80% { opacity: .95; transform: rotate(var(--a)) scaleY(1); } 100% { opacity: 0; transform: rotate(var(--a)) scaleY(1); } }
.vd-lzhaze { width: var(--w, 600px); height: var(--h, 160px); margin: calc(var(--h, 160px) / -2) 0 0 calc(var(--w, 600px) / -2); border-radius: 50%; background: radial-gradient(ellipse, rgba(150, 255, 210, .14), rgba(200, 120, 255, .08) 45%, transparent 70%); animation-name: vdLzHaze; }
@keyframes vdLzHaze { 0% { opacity: 0; transform: scale(.7); } 20% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
.vd-lzhit { width: var(--sz, 22px); height: var(--sz, 22px); margin: calc(var(--sz, 22px) / -2) 0 0 calc(var(--sz, 22px) / -2); border-radius: 50%; background: radial-gradient(circle, #fff 0 16%, var(--c, #39ff6a) 34%, transparent 68%); mix-blend-mode: screen; animation-name: vdLzHit; animation-duration: 900ms; }
@keyframes vdLzHit { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 25% { opacity: 1; transform: scale(1.3) rotate(30deg); } 100% { opacity: 0; transform: scale(.2) rotate(90deg); } }
/* n107b «Небесные фонарики» (only in «Киносюрприз»): warm paper lanterns lift off around the winner and drift up, swaying. */
.vd-lantern { width: var(--sz, 19px); height: calc(var(--sz, 19px) * 1.25); margin: calc(var(--sz, 19px) * -1.25) 0 0 calc(var(--sz, 19px) / -2); background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><defs><linearGradient id='p' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffe7a8'/><stop offset='.55' stop-color='%23ffb24a'/><stop offset='1' stop-color='%23e0581c'/></linearGradient><radialGradient id='f' cx='.5' cy='.85' r='.6'><stop offset='0' stop-color='%23fffbe0' stop-opacity='.95'/><stop offset='1' stop-color='%23ffd27a' stop-opacity='0'/></radialGradient></defs><path d='M3 2.5Q12 .5 21 2.5L18.2 24.5H5.8z' fill='url(%23p)'/><path d='M3 2.5Q12 .5 21 2.5L18.2 24.5H5.8z' fill='url(%23f)'/><path d='M9 1.8 9.5 24.5M15 1.8 14.5 24.5' stroke='%23c2541a' stroke-width='.6' stroke-opacity='.55' fill='none'/><path d='M5.8 24.5h12.4' stroke='%238a3a10' stroke-width='1.2'/><ellipse cx='12' cy='26.6' rx='1.6' ry='2.2' fill='%23fff3b0'/><ellipse cx='12' cy='27' rx='.8' ry='1.2' fill='%23fff'/></svg>") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 170, 60, .8)); animation-name: vdLantern; animation-timing-function: ease-in-out; }
@keyframes vdLantern {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  10% { transform: translate3d(0, -6px, 0) scale(1); opacity: 1; }
  40% { transform: translate3d(var(--sway, 0px), calc(var(--rise, -200px) * .38), 0) rotate(var(--rot, 6deg)) scale(.92); }
  70% { transform: translate3d(calc(var(--sway, 0px) * -.5), calc(var(--rise, -200px) * .7), 0) rotate(calc(var(--rot, 6deg) * -1)) scale(.78); opacity: .95; }
  100% { transform: translate3d(calc(var(--sway, 0px) * .3), var(--rise, -200px), 0) rotate(0deg) scale(.55); opacity: 0; }
}
.vd-lnglow { width: var(--sz, 100px); height: var(--sz, 100px); margin: calc(var(--sz, 100px) / -2) 0 0 calc(var(--sz, 100px) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 110, .32), rgba(255, 150, 60, .12) 50%, transparent 72%); mix-blend-mode: screen; animation-name: vdChspot; }
.vd-still .vd-hat { transform: translate3d(0, -14%, 0) rotate(var(--tip, 14deg)); }
.vd-still .vd-pxcrown { transform: none; }
.vd-still .vd-px { transform: translate3d(calc(var(--dx) * .85), calc(var(--dy) * .85), 0); opacity: 1; }
.vd-still .vd-lz { transform: rotate(calc(var(--a) + var(--turn, 60deg) * .5)); opacity: .75; }
.vd-still .vd-lzlock { transform: rotate(var(--a)); opacity: .85; }
.vd-still .vd-chspot, .vd-still .vd-lnglow, .vd-still .vd-lzhaze, .vd-still .vd-lzhit { opacity: .85; }
.vd-still .vd-lantern { transform: translate3d(var(--sway, 0px), calc(var(--rise, -200px) * .4), 0) rotate(var(--rot, 6deg)); opacity: .95; }

/* The shop's card: five tiles, each with its stage (a little podium, oneself on its first step), its name, «Выбрать». */
.vd-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.vd-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.vd-tile.on { border-color: var(--accent); background: rgba(229, 160, 13, .08); }
.vd-demo { position: relative; height: 92px; overflow: hidden; border-radius: 8px; background: radial-gradient(ellipse at 50% 120%, #2a2134 0%, #0b0f15 72%); cursor: pointer; contain: strict; }
.vd-demo .vd-fx { z-index: 1; }
.vd-mini { position: absolute; left: 50%; bottom: 0; display: flex; align-items: flex-end; gap: 3px; transform: translateX(-50%); }
.vd-mstep { display: flex; justify-content: center; align-items: flex-start; width: 24px; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .1); }
.vd-ms0 { height: 18px; } .vd-ms1 { height: 28px; background: rgba(229, 160, 13, .32); } .vd-ms2 { height: 13px; }
.vd-ms1 .vd-mface { margin-top: -25px; }
.vd-mface { flex: none; width: var(--sz, 22px); height: var(--sz, 22px); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #e5a00d, #b2459c); color: #fff; font-size: calc(var(--sz, 22px) * .45); font-weight: 700; line-height: 1; }
.vd-mface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-name { display: -webkit-box; min-height: 2.4em; overflow: hidden; font-size: 12px; line-height: 1.2; text-align: center; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.vd-pick { min-height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 13px; cursor: pointer; }
.vd-pick:hover:not(:disabled) { background: var(--line); }
.vd-pick[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.vd-pick:disabled { opacity: .7; cursor: default; }
.vd-pick:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.vd-hint { margin-top: 12px; }
@media (max-width: 760px) { .vd-pick { min-height: 44px; } }

/* The shop page's tile: oneself with the style one holds. */
.vd-tpv { position: relative; display: inline-grid; place-items: center; }
.vd-tpv .vd-mface { box-shadow: 0 0 0 2px #ffd36b; }
.vd-tpv-ico { position: absolute; right: -11px; bottom: -6px; font-style: normal; font-size: 18px; line-height: 1; }

/* The profile: the dance one celebrates with. */
.vd-pp { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.vd-pp-ico { font-size: 16px; line-height: 1; }
/* 0.67 «Гардероб»: one's own styles, the one that is on, «Снять» as a row above the styles */
.vd-tile.own { border-color: rgba(62, 207, 122, .4); }
.vd-tile.now { border-color: #3ecf7a; background: rgba(62, 207, 122, .07); }
.vd-pick.now { border-color: transparent; color: #6fe3a5; font-weight: 700; opacity: 1; }
.vd-off { grid-column: 1 / -1; }
.vd-off .shop-wd-off { flex-direction: row; gap: 6px; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; }
.vd-off .shop-wd-off-x { width: 20px; height: 20px; }
.vd-off .shop-opt-n { font-size: 13.5px; font-weight: 400; }

.vd-tile > .shop-opt-p { align-self: flex-start; margin-top: -2px; } /* n107b: a showpiece style's own price, under its name */
