/* Toy viewer, premium pass. Measurements (--vp-*) come from viewer-premium.js. */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-stage{position:relative;overflow:visible}
/* rarity glow behind the toy (replaces the rarity pill) */
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-glow{position:absolute;left:var(--vp-cx);top:calc(var(--vp-bottom) - var(--vp-toy)*.55);width:calc(var(--vp-toy)*1.9);aspect-ratio:1;translate:-50% -50%;border-radius:50%;pointer-events:none;z-index:0;background:radial-gradient(closest-side,#fff8ec 0,#fff1dccc 38%,#fff1dc00 72%)}
html body.ui2 dialog#modal[open] .squish-playground.vp[data-rarity=uncommon] .vp-glow{background:radial-gradient(closest-side,#f3fff9 0,#c9f1df 40%,#c9f1df00 72%)}
html body.ui2 dialog#modal[open] .squish-playground.vp[data-rarity=rare] .vp-glow{background:radial-gradient(closest-side,#faf5ff 0,#dccbff 40%,#dccbff00 72%);animation:vp-shimmer 3.2s ease-in-out infinite}
html body.ui2 dialog#modal[open] .squish-playground.vp[data-rarity=legendary] .vp-glow{background:radial-gradient(closest-side,#fffbe8 0,#ffe08a 38%,#ffe08a00 72%);animation:vp-shimmer 2.4s ease-in-out infinite}
html body.ui2 dialog#modal[open] .squish-playground.vp[data-rarity=legendary] .vp-glow:after{content:"";position:absolute;inset:12%;background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0/38px 38px,radial-gradient(circle,#fff6c8 0 1.5px,transparent 2.5px) 19px 13px/41px 41px;border-radius:50%;opacity:.8;animation:vp-twinkle 2s steps(2) infinite}
@keyframes vp-shimmer{50%{scale:1.06;opacity:.85}}
@keyframes vp-twinkle{50%{opacity:.35}}
/* the display base the toy stands on */
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-base{position:absolute;left:var(--vp-cx);top:var(--vp-bottom);width:var(--vp-base-w);height:auto;translate:-50% -32%;z-index:0;pointer-events:none;filter:drop-shadow(0 10px 12px #6b452a26)}
html body.ui2 dialog#modal[open] .squish-playground.vp #squish{position:relative;z-index:1}
html body.ui2 dialog#modal[open] .squish-playground.vp #squish:before{content:"";position:absolute;left:18%;right:18%;bottom:0;height:9%;border-radius:50%;background:radial-gradient(closest-side,#5a3b2a59,#5a3b2a00);z-index:-1;pointer-events:none}
/* not yours yet: smaller, under the glass dome (its tray surface is 75.5% down the picture) */
html body.ui2 dialog#modal[open] .squish-playground.vp-locked #squish{scale:.6;transform-origin:50% 100%}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .vp-base{display:none}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked :is(.vp-dome-back,.vp-dome-front){position:absolute;left:var(--vp-cx);top:var(--vp-bottom);width:var(--vp-dome);height:auto;translate:-50% -75.5%;pointer-events:none;transform-origin:50% 75%}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .vp-dome-back{z-index:0;filter:drop-shadow(0 10px 12px #6b452a26)}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .vp-dome-front{z-index:2}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .squish-stage{cursor:pointer!important}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .squish-lock{display:none!important}
/* words that can go: the rarity pill and the feel lines (Details still has them) */
html body.ui2 dialog#modal[open] .squish-playground.vp .viewer-heading>:not(h2){display:none!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-feel-line{display:none!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .kid-shortage{display:none!important}
/* Details is a small (i) */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .squish-more{width:58px!important;min-width:58px!important;padding:0!important;font-size:0!important;border-radius:50%!important;flex:0 0 58px!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .squish-more svg{width:26px;height:26px}
/* coin slots under the price on the buy button */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .vp-buy{position:relative!important;padding-bottom:18px!important;min-height:66px!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-slots{position:absolute;left:50%;bottom:7px;translate:-50% 0;display:flex;gap:4px}
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-slots i{width:12px;height:12px;border-radius:50%;background:#ffffff8c;box-shadow:inset 0 1px 2px #0002}
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-slots i.on{background:radial-gradient(circle at 35% 30%,#fff6c4,#ffcf3d 60%,#e0a316);box-shadow:0 1px 0 #b98410}
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-slots.bar{width:70%;height:8px;border-radius:99px;background:#ffffff8c;overflow:hidden}
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-slots.bar b{display:block;height:100%;width:var(--fill);background:linear-gradient(90deg,#ffe58a,#ffc93d)}
/* the Play star beside it when you're short */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .btn.vp-earn{flex:0 0 64px!important;max-width:64px!important;width:64px!important;min-width:64px!important;height:64px!important;padding:0!important;border-radius:50%!important;font-size:0!important;border:4px solid #fff!important;background:linear-gradient(180deg,#fff6d4,#ffe08a)!important;box-shadow:0 5px 0 #d9b24a!important;animation:vp-bob 1.6s ease-in-out infinite}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .vp-earn svg{width:30px;height:30px}
@keyframes vp-bob{50%{translate:0 -4px}}
/* Keep the display clear; dedicated arrows handle browsing. */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-picker .squish-preview{display:none!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-picker :is(.squish-prev,.squish-next){z-index:3;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked:not(.viewer-details) #squish{width:min(66cqw,70cqh,calc((100cqw - 88px)/1.14))!important;height:min(66cqw,70cqh,calc((100cqw - 88px)/1.14))!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-unlock-progress{display:block;width:100%;height:6px;accent-color:#83c5aa}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .vp-unlock{flex-direction:column;gap:5px!important;color:#477565!important;opacity:1!important;font-size:15px!important;line-height:1.15}
/* the lift-off sparkle */
html body.ui2 dialog#modal[open] .squish-playground.vp .vp-spark{position:absolute;width:12px;height:12px;z-index:4;pointer-events:none;background:radial-gradient(circle,#fff 0 30%,#ffe08a 45%,transparent 70%);border-radius:50%;animation:vp-spark .9s ease-out both}
@keyframes vp-spark{0%{scale:0;opacity:0}30%{scale:1.4;opacity:1}100%{scale:.2;opacity:0;translate:0 -40px}}
@media(prefers-reduced-motion:reduce){html body.ui2 dialog#modal[open] .squish-playground.vp :is(.vp-glow,.vp-glow:after,.vp-earn){animation:none!important}}
/* owned toys stand up on the base: a little smaller and lifted so the base clears the buttons */
html body.ui2 dialog#modal[open] .squish-playground.vp:not(.vp-locked) #squish{scale:.86;transform-origin:50% 100%}
html body.ui2 dialog#modal[open] .squish-playground.vp .viewer-heading{position:relative;z-index:3}

/* Reveal the complete dome together. On failure, retain the toy without broken glass. */
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .squish-stage.vp-dome-loading{visibility:hidden}
html body.ui2 dialog#modal[open] .squish-playground.vp-locked .squish-stage:not(.vp-dome-ready) :is(.vp-dome-back,.vp-dome-front){visibility:hidden}
