/* buy-clear.js: the buy button reads as coins → basket */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc{position:relative!important;display:flex!important;align-items:center;justify-content:center;padding:8px 18px!important;min-height:70px!important;min-width:min(300px,60vw)!important;overflow:visible!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc>:not(.bc-row):not(.bc-finger){display:none!important}
.bc-row{display:flex;align-items:center;gap:10px;pointer-events:none}
.bc-coins{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:200px}
.bc-coins i{position:relative;width:30px;height:30px;border-radius:50%;border:2.5px dashed #ffffffd0;box-sizing:border-box;display:grid;place-items:center}
.bc-coins i img{width:34px;height:34px;max-width:none;opacity:0;scale:.5;transition:opacity .2s,scale .25s cubic-bezier(.3,1.6,.5,1)}
.bc-coins i.on{border-color:transparent}
.bc-coins i.on img{opacity:1;scale:1;filter:drop-shadow(0 2px 0 #0002)}
.bc-coins i.paid::after{content:'';position:absolute;inset:-8px;border-radius:50%;background:radial-gradient(circle,#fff 0,#fff0 65%);animation:bc-shine .5s ease-out forwards;pointer-events:none}
@keyframes bc-shine{from{opacity:1;scale:.4}to{opacity:0;scale:1.4}}
.bc-many .bc-coins{max-width:150px;gap:3px}
.bc-many .bc-coins i{width:21px;height:21px;border-width:2px}
.bc-many .bc-coins i img{width:24px;height:24px}
.bc-arrow{width:22px;height:16px;flex:none;background:#fff;clip-path:polygon(0 30%,55% 30%,55% 0,100% 50%,55% 100%,55% 70%,0 70%);opacity:.95}
.bc-basket{width:48px;height:48px;flex:none;filter:drop-shadow(0 2px 0 #0002)}
/* enough coins: a gentle "tap me" pulse */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc:not(:disabled):not(.bc-flying){animation:none}
@keyframes bc-pulse{50%{scale:1.045}}
/* not enough: soft gray, can't be pressed; the Play star beside it hops */
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc.bc-short{background:linear-gradient(180deg,#e9e4ee,#d9d2e0)!important;box-shadow:0 5px 0 #bdb3c7!important;opacity:1!important;filter:none!important}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc:disabled{pointer-events:none}
.bc-short .bc-coins i{border-color:#a99bb8}
.bc-short .bc-arrow{background:#a99bb8}
.bc-short .bc-basket{opacity:.45;filter:grayscale(.7)}
html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc.bc-short~.vp-earn{animation:bc-hop 1.3s ease-in-out infinite!important;box-shadow:0 5px 0 #d9b24a,0 0 0 6px #ffe08a66,0 0 22px #ffd34d!important}
@keyframes bc-hop{0%,55%,100%{translate:0 0;scale:1}20%{translate:0 -10px;scale:1.06 .96}35%{translate:0 0;scale:1.08 .92}}
.bc-fly{position:absolute;z-index:20;width:34px;height:34px;pointer-events:none;filter:drop-shadow(0 3px 3px #0003)}
.bc-finger{position:absolute;right:-6px;top:52%;width:54px;height:auto;pointer-events:none;z-index:5;filter:drop-shadow(0 4px 6px #0003)}
@media(max-width:500px){.bc-coins{max-width:150px}.bc-coins i{width:24px;height:24px}.bc-coins i img{width:27px;height:27px}.bc-basket{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc,html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc.bc-short~.vp-earn{animation:none!important}}

/* the wish rides along into the games: the toy in a coin ring that fills as you earn */
.bc-wish{position:fixed;z-index:9000;right:16px;bottom:calc(var(--nav-h,96px) + 18px + env(safe-area-inset-bottom));width:96px;height:96px;padding:0;border:0;border-radius:50%;cursor:pointer;
 background:conic-gradient(#ffcf3d 0 var(--bc-fill,0deg),#ffffffb0 var(--bc-fill,0deg) 360deg);box-shadow:0 6px 0 #0000001f,0 8px 20px #6b4a6533;display:grid;place-items:center;transition:--bc-fill .5s}
.bc-wish-ring{position:absolute;inset:8px;border-radius:50%;background:#fffaf0;box-shadow:inset 0 2px 4px #0001}
.bc-wish-toy{position:relative;width:62px;height:62px;display:grid;place-items:center;pointer-events:none}
.bc-wish-toy>*{width:100%!important;height:100%!important;position:static!important;transform:none!important;margin:0!important}
.bc-wish-coin{position:absolute;right:-4px;bottom:-4px;width:34px;height:34px;filter:drop-shadow(0 2px 0 #0002);pointer-events:none}
.bc-wish.ready{background:conic-gradient(#ffcf3d 0 360deg);box-shadow:0 6px 0 #d9a520,0 0 0 6px #ffe08a88,0 0 28px #ffd34d;animation:bc-hop 1.2s ease-in-out infinite}
@media(max-width:600px){.bc-wish{width:66px;height:66px;right:10px;bottom:auto;top:calc(64px + env(safe-area-inset-top))}.bc-wish-ring{inset:6px}.bc-wish-toy{width:42px;height:42px}.bc-wish-coin{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.bc-wish.ready{animation:none}}
/* big coins worth five */
.bc-coins i.bc-five{width:38px;height:38px}
.bc-coins i.bc-five img{width:42px;height:42px}
.bc-coins i.bc-five b{position:absolute;inset:0;display:grid;place-items:center;padding-top:6%;font:900 20px/1 "Grandstander",ui-rounded,system-ui,sans-serif;color:#fff;-webkit-text-stroke:2.5px #b8701a;paint-order:stroke fill;opacity:0;transition:opacity .2s}
.bc-coins i.bc-five.on b{opacity:1}
.bc-coins i.bc-five[data-v="10"] b{font-size:17px;letter-spacing:-.04em}
/* Coins sit in their slots (Mac, 10/23): the coin picture is a little bigger than its slot and drifted down-right of the dashed
   ring, and on a toy you can't afford yet the short style's ring color showed behind the coins you do have. Rows stay inside
   the button and split evenly when they wrap (buy-clear.js). */
.bc-coins i img{position:absolute;left:50%;top:50%;translate:-50% -50%}
.bc-coins i.on,.bc-short .bc-coins i.on{border-color:transparent}
.bc-coins{flex:none}
/* small phones: the buy pill, star and info were wider than the screen, so the coins got squeezed onto two rows and spilled out */
@media(max-width:360px){
 html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock .bc{min-width:0!important;padding:8px 12px!important}
 html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock{gap:8px!important}
 html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock>.vp-earn{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;padding:0!important}
 html body.ui2 dialog#modal[open] .squish-playground.vp .squish-dock>.squish-more{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important}
 .bc-arrow{display:none!important}
 .bc-row{gap:6px}.bc-coins i.bc-five{width:30px;height:30px}.bc-coins i.bc-five img{width:33px;height:33px}.bc-coins i.bc-five b{font-size:16px}.bc-basket{width:34px!important;height:34px!important}
}
