/* PrizeHub Claw Machine (markup built by PH.buildClaw in /assets/js/claw.js).
   Everything is sized in cqw of the host, so the machine scales from a phone to a desktop column without moving anything.
   The cabinet is the slot machine's sister: deep neon chrome that shifts colour, a marquee in the brand colour (--cw-a/--cw-b, set by
   the script), gold trims. The tank's picture (toys, claw, floor) is one canvas; the lights round it, the glass, the controls and the
   prize door are elements here. Looping animations move by transform or opacity only. The joystick and the Grab button are at least
   a finger wide on a machine 290px wide or more. */
.claw{--cw-a:var(--brand,#ff4fa0);--cw-b:var(--brand-2,#7a0b4c);--cw-gold:#ffcf5a;
  position:relative;width:min(100%,430px);margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:10px;container-type:inline-size;-webkit-tap-highlight-color:transparent;text-align:left}
.cw-machine{position:relative;width:100%;aspect-ratio:100/150;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.cw-machine>*,.cw-cab>*,.cw-tank>*,.cw-deck>*{position:absolute}

/* ---- cabinet ---- */
.cw-pearl{inset:0;border-radius:9cqw 9cqw 6cqw 6cqw;overflow:hidden;pointer-events:none}
.cw-pearl::before{content:"";position:absolute;left:0;top:0;width:280%;height:280%;background:linear-gradient(125deg,#3a1cff 0%,#8b2bff 14%,#ff2e9a 28%,#ff6a3d 40%,#b01cd0 52%,#19a8ff 64%,#18d0b0 76%,#5b3dff 88%,#e01cc0 100%);animation:cw-pearl-run 10s ease-in-out infinite alternate;will-change:transform}
@keyframes cw-pearl-run{from{transform:translate(0,0)}to{transform:translate(-64.286%,-64.286%)}}
.cw-cab{inset:0;border-radius:9cqw 9cqw 6cqw 6cqw;
  background:linear-gradient(90deg,rgba(120,225,255,.18),rgba(120,225,255,0) 11%,rgba(255,90,210,0) 89%,rgba(255,90,210,.16)),linear-gradient(180deg,rgba(255,255,255,.06),rgba(14,4,36,.2) 50%,rgba(6,2,18,.6));
  box-shadow:inset 0 0 0 .6cqw rgba(255,255,255,.08),inset 0 .5cqw 1cqw rgba(255,255,255,.1),0 5cqw 10cqw rgba(0,0,0,.5)}
.cw-cab::before,.cw-cab::after{content:"";position:absolute;top:22cqw;bottom:34cqw;width:1.4cqw;border-radius:1cqw;background:linear-gradient(90deg,#1b1238,#6fe0ff 50%,#241645);box-shadow:0 0 1.2cqw rgba(0,210,255,.45)}
.cw-cab::before{left:1.5cqw}.cw-cab::after{right:1.5cqw}

/* ---- marquee ---- */
.cw-top{left:3cqw;right:3cqw;top:2cqw;height:16cqw;border-radius:7.4cqw 7.4cqw 3cqw 3cqw;border:.9cqw solid transparent;
  background:radial-gradient(130% 150% at 50% -10%,color-mix(in srgb,var(--cw-a) 55%,#fff) 0%,var(--cw-a) 42%,var(--cw-b) 100%) padding-box,linear-gradient(180deg,#ffe9a8,#f5b73a 45%,#b8720e) border-box;
  background-color:var(--cw-a);box-shadow:inset 0 -1.6cqw 3cqw rgba(0,0,0,.28),inset 0 1cqw 2cqw rgba(255,255,255,.25),0 1cqw 2.4cqw rgba(0,0,0,.4)}
.cw-bulbs{position:absolute;left:7cqw;right:7cqw;display:flex;justify-content:space-between;pointer-events:none}
.cw-bulbs.t{top:.9cqw}.cw-bulbs.b{bottom:.9cqw}
.cw-bulbs i{width:1.9cqw;height:1.9cqw;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff,#ffe9a8 45%,#f5a623);box-shadow:0 0 1.4cqw rgba(255,214,110,.95);animation:cw-chase 1.2s steps(1,end) infinite;animation-delay:calc(var(--k) * -.4s)}
@keyframes cw-chase{0%,33%{opacity:1}34%,100%{opacity:.28}}
.cw-sign{position:absolute;left:5cqw;right:5cqw;top:3.4cqw;bottom:3.4cqw;display:flex;align-items:center;justify-content:center;gap:2.2cqw;min-width:0}
.cw-mark{flex:none;width:7.6cqw;height:7.6cqw;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:rgba(0,0,0,.22);border:.5cqw solid rgba(255,233,168,.85);font-family:var(--font-display,system-ui);font-weight:700;font-size:4cqw;color:#ffe9a8;box-shadow:0 .6cqw 1.4cqw rgba(0,0,0,.3)}
.cw-mark img{width:100%;height:100%;object-fit:cover}
.cw-title{min-width:0;padding:1.4cqw 2cqw;margin:-1.4cqw -2cqw;font-family:var(--font-display,system-ui);font-weight:700;font-size:max(12px,5.6cqw);line-height:1.02;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff6d6;text-shadow:0 .3cqw 0 rgba(90,20,0,.45),0 0 2cqw rgba(255,220,140,.5)}
.claw.cw-light .cw-title{color:#3a1a00;text-shadow:0 .3cqw 0 rgba(255,255,255,.5)}
.claw.cw-light .cw-mark{color:#4a2200;border-color:rgba(74,34,0,.75);background:rgba(255,255,255,.3)}

/* ---- the glass tank ---- */
.cw-tank{left:5cqw;right:5cqw;top:20.5cqw;height:86cqw;border-radius:4.4cqw;overflow:hidden;background:#12072f;
  box-shadow:0 0 0 .7cqw #1b1238,0 0 0 1.5cqw #c8d0f2,0 0 0 2.1cqw #2a1c52,inset 0 0 4cqw rgba(0,0,0,.6),0 1.6cqw 3cqw rgba(0,0,0,.45)}
.cw-cv{inset:0;width:100%;height:100%;display:block}
/* a ring of small lamps just inside the glass: five colours take turns, each one fading in as the last fades out */
.cw-leds{inset:0;pointer-events:none}
.cw-leds i{position:absolute;inset:.9cqw;opacity:0;animation:cw-led 12.5s linear infinite;
  background:radial-gradient(circle,currentColor 0 30%,transparent 38%) left top/3.5cqw 2cqw repeat-x,radial-gradient(circle,currentColor 0 30%,transparent 38%) left bottom/3.5cqw 2cqw repeat-x,
    radial-gradient(circle,currentColor 0 30%,transparent 38%) left top/2cqw 3.5cqw repeat-y,radial-gradient(circle,currentColor 0 30%,transparent 38%) right top/2cqw 3.5cqw repeat-y}
.cw-leds i:nth-child(1){color:#39d8ff;animation-delay:0s}.cw-leds i:nth-child(2){color:#5dffa2;animation-delay:-10s}.cw-leds i:nth-child(3){color:#ffd84a;animation-delay:-7.5s}
.cw-leds i:nth-child(4){color:#ff5a6e;animation-delay:-5s}.cw-leds i:nth-child(5){color:#ff4fc0;animation-delay:-2.5s}
@keyframes cw-led{0%{opacity:0}5%,20%{opacity:1}25%,100%{opacity:0}}
/* a grab lights up: the fast ring fades in over the slow one and out again. The slow ring never changes speed (changing a running
   animation's length jumps it to another point of its cycle, which showed as a colour snap at the latch and at the reset) */
.cw-leds{transition:opacity .25s ease}
.cw-leds-fast{opacity:0}
.cw-leds-fast i{animation-duration:.9s;animation-play-state:paused}
.cw-leds-fast i:nth-child(2){animation-delay:-.72s}.cw-leds-fast i:nth-child(3){animation-delay:-.54s}.cw-leds-fast i:nth-child(4){animation-delay:-.36s}.cw-leds-fast i:nth-child(5){animation-delay:-.18s}
.claw.cw-excite .cw-leds-fast,.claw.cw-win .cw-leds-fast{opacity:1}
.claw.cw-excite .cw-leds-fast i,.claw.cw-win .cw-leds-fast i{animation-play-state:running}
.claw.cw-excite .cw-leds:not(.cw-leds-fast),.claw.cw-win .cw-leds:not(.cw-leds-fast){opacity:0}
.cw-glass{inset:0;pointer-events:none;background:linear-gradient(112deg,rgba(255,255,255,.17) 0 11%,rgba(255,255,255,0) 11.4% 31%,rgba(255,255,255,.07) 31.4% 38%,rgba(255,255,255,0) 38.4%),linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 22%)}
.cw-flash{inset:0;pointer-events:none;background:#ff2a4a;opacity:0}
.claw.cw-lose .cw-flash{animation:cw-dim 1.1s ease-out 1}
@keyframes cw-dim{0%{opacity:0}18%{opacity:.26}100%{opacity:0}}

/* ---- the little screen ---- */
.cw-lcd{left:9cqw;right:9cqw;top:109.4cqw;height:7.6cqw;border-radius:2cqw;display:grid;place-items:center;overflow:hidden;background:linear-gradient(180deg,#05020f,#150a33);box-shadow:inset 0 0 0 .4cqw rgba(120,225,255,.35),inset 0 .8cqw 1.6cqw rgba(0,0,0,.7),0 .4cqw 0 rgba(255,255,255,.12)}
.cw-lcd span{max-width:100%;box-sizing:border-box;padding:1.8cqw 2.2cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-display,system-ui);font-weight:600;font-size:max(10.5px,3.9cqw);letter-spacing:.12em;text-transform:uppercase;color:#8ff4ff;text-shadow:0 0 1.6cqw rgba(60,220,255,.9)}
.claw.cw-win .cw-lcd span{color:#ffe27a;text-shadow:0 0 1.8cqw rgba(255,200,60,.95)}
.claw.cw-lose .cw-lcd span{color:#ff9fb0;text-shadow:0 0 1.6cqw rgba(255,70,110,.8)}

/* ---- the control deck: prize door, joystick, Grab ---- */
.cw-deck{left:4cqw;right:4cqw;top:119.4cqw;bottom:3.2cqw;border-radius:3cqw 3cqw 4.4cqw 4.4cqw;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(10,3,30,.35) 30%,rgba(6,2,18,.62));box-shadow:inset 0 0 0 .4cqw rgba(255,255,255,.1),inset 0 .8cqw 1.4cqw rgba(255,255,255,.12)}
.cw-out{left:2.6cqw;top:3cqw;bottom:2.8cqw;width:29cqw;border-radius:2.4cqw;overflow:hidden;background:linear-gradient(180deg,#05020f,#1a0a3c);box-shadow:0 0 0 .5cqw #c8d0f2,0 0 0 1cqw #2a1c52,inset 0 1cqw 2cqw rgba(0,0,0,.8);perspective:60cqw}
.cw-hole{position:absolute;inset:0;background:radial-gradient(80% 90% at 50% 100%,rgba(255,214,110,.95),rgba(255,120,60,.5) 45%,rgba(255,120,60,0) 75%);opacity:0;transition:opacity .25s}
.cw-flap{position:absolute;inset:0;border-radius:2cqw;transform-origin:50% 0;transition:transform .34s cubic-bezier(.3,1.5,.5,1);background:linear-gradient(180deg,#3c2a78,#22154c 60%,#170d36);box-shadow:inset 0 0 0 .4cqw rgba(255,255,255,.14),inset 0 -1cqw 1.6cqw rgba(0,0,0,.4)}
.cw-flap::after{content:"";position:absolute;left:18%;right:18%;bottom:14%;height:.9cqw;border-radius:1cqw;background:linear-gradient(180deg,#f3f5ff,#7b84ad)}
.cw-out b{position:absolute;left:0;right:0;top:24%;text-align:center;font-family:var(--font-display,system-ui);font-weight:700;font-size:max(9px,3.4cqw);letter-spacing:.2em;text-transform:uppercase;color:var(--cw-gold);text-shadow:0 0 1.4cqw rgba(255,200,60,.6);transition:opacity .2s}
.claw.cw-open .cw-flap{transform:rotateX(-78deg)}.claw.cw-open .cw-hole{opacity:1}.claw.cw-open .cw-out b{opacity:0}

.cw-deck::before{content:"";position:absolute;left:33.4cqw;right:1.6cqw;top:1.6cqw;bottom:1.6cqw;border-radius:2.6cqw;pointer-events:none;
  background:radial-gradient(circle,#c8d0f2 0 34%,#4b527a 36% 60%,transparent 62%) left 1cqw top 1cqw/1.5cqw 1.5cqw no-repeat,radial-gradient(circle,#c8d0f2 0 34%,#4b527a 36% 60%,transparent 62%) right 1cqw top 1cqw/1.5cqw 1.5cqw no-repeat,
    radial-gradient(circle,#c8d0f2 0 34%,#4b527a 36% 60%,transparent 62%) left 1cqw bottom 1cqw/1.5cqw 1.5cqw no-repeat,radial-gradient(circle,#c8d0f2 0 34%,#4b527a 36% 60%,transparent 62%) right 1cqw bottom 1cqw/1.5cqw 1.5cqw no-repeat,
    linear-gradient(180deg,rgba(26,10,62,.82),rgba(8,3,24,.9));
  box-shadow:inset 0 0 0 .3cqw rgba(120,225,255,.3),inset 0 .9cqw 1.6cqw rgba(0,0,0,.6),0 .3cqw 0 rgba(255,255,255,.1)}
/* the joystick: a gold-rimmed dish, a rubber boot, a chrome shaft that leans the way it is pushed and a ball on top. The script turns
   .cw-shaft about its foot and moves .cw-ball; the shaft stands 37% of the joystick's width tall, its foot 71% of the way down. */
.cw-stick{left:36.5cqw;top:50%;width:24cqw;height:24cqw;margin-top:-12cqw;cursor:grab;touch-action:none;outline:0}
.cw-stick.on{cursor:grabbing}
.cw-stick>i{position:absolute;pointer-events:none}
.cw-sbase{left:.65cqw;right:.65cqw;top:calc(71% - 5.75cqw);height:11.5cqw;box-sizing:border-box;border-radius:50%;border:.45cqw solid #8a5500;background:#f5b73a;box-shadow:0 1.2cqw 0 #4a2c00,0 2.6cqw 2.4cqw rgba(0,0,0,.5)}
/* the dish inside the gold rim is its own oval: a shadow with a spread on an oval is drawn as a square by Safari 18 */
.cw-sbase::before{content:"";position:absolute;inset:.7cqw;border-radius:50%;background:radial-gradient(ellipse at 50% 36%,#43308c 0 26%,#1d0f47 56%,#07031a 100%);box-shadow:inset 0 1cqw 2cqw rgba(0,0,0,.85)}
.cw-sboot{left:50%;top:calc(71% - 2.5cqw);width:8.4cqw;height:5cqw;margin-left:-4.2cqw;border-radius:50%;background:radial-gradient(ellipse at 50% 28%,#5a6088,#23263c 58%,#0b0c18);box-shadow:inset 0 -.5cqw .8cqw rgba(0,0,0,.6),0 .5cqw .9cqw rgba(0,0,0,.55)}
.cw-shaft{left:50%;top:calc(71% - 8.88cqw);width:2.7cqw;height:8.88cqw;margin-left:-1.35cqw;border-radius:1.35cqw;transform-origin:50% 100%;background:linear-gradient(90deg,#59618c,#f6f8ff 36%,#b9c1e2 58%,#4b527a);box-shadow:0 0 0 .28cqw rgba(20,10,40,.75);transition:transform .16s cubic-bezier(.3,1.6,.5,1)}
.cw-ball{left:50%;top:calc(71% - 14.38cqw);width:11cqw;height:11cqw;margin-left:-5.5cqw;border-radius:50%;background:radial-gradient(circle at 34% 27%,#fff 0 5%,#ffb5c3 11%,#ff3d65 33%,#da1040 60%,#7d0019 100%);
  box-shadow:0 0 0 .3cqw rgba(60,0,16,.8),0 1.4cqw 2.2cqw rgba(0,0,0,.5),inset -.8cqw -1.1cqw 1.8cqw rgba(0,0,0,.3),inset .3cqw .4cqw .6cqw rgba(255,255,255,.35);transition:transform .16s cubic-bezier(.3,1.6,.5,1)}
.cw-stick.on .cw-ball,.cw-stick.on .cw-shaft{transition:none}
.claw.cw-kb .cw-stick:focus .cw-sbase{background:#fff;border-color:#f5b73a}   /* the keyboard's ring (the script adds cw-kb when the joystick was reached by a key, never by a touch or a click) */
/* the joystick's pulse: always running, it fades out during a go instead of stopping (a stopped animation starts again from its first
   frame, a pop), and each pulse fades in and out, so its loop has no seam */
.cw-ball::after{content:"";position:absolute;inset:-1.1cqw;border-radius:50%;border:.5cqw solid rgba(255,255,255,0);animation:cw-ring 1.8s ease-out infinite;transition:opacity .3s ease}
.claw.cw-busy .cw-ball::after,.claw.cw-done .cw-ball::after{opacity:0}
@keyframes cw-ring{0%{transform:scale(.8);border-color:rgba(255,255,255,0)}14%{border-color:rgba(255,255,255,.62)}100%{transform:scale(1.5);border-color:rgba(255,255,255,0)}}

/* the Grab button: a lit arcade dome in a chrome bezel, with a slow ring of light turning round it. The words sit on the dome
   (the span), which sinks when it is pressed and stays down for the whole go. */
.cw-grab{right:3.6cqw;top:50%;width:23.4cqw;height:23.4cqw;margin-top:-12.2cqw;border-radius:50%;border:0;padding:0;background:none;cursor:pointer;touch-action:manipulation;isolation:isolate;-webkit-appearance:none;appearance:none;
  font-family:var(--font-display,system-ui);font-weight:700;font-size:max(11.5px,4.6cqw);letter-spacing:.1em;text-transform:uppercase;color:#4a2100}
.cw-grab::before{content:"";position:absolute;inset:-1.3cqw;border-radius:50%;z-index:-2;background:conic-gradient(from 0deg,#39e6ff,#8b5cff,#ff4fd8,#ffd84a,#39e6ff);animation:cw-halo 4.5s linear infinite;transition:opacity .3s ease}
@keyframes cw-halo{to{transform:rotate(360deg)}}
.cw-grab::after{content:"";position:absolute;inset:-.45cqw;border-radius:50%;z-index:-1;background:linear-gradient(155deg,#fff,#aab3d6 36%,#454d78 62%,#dfe4fa);box-shadow:0 0 0 .35cqw #170a33,0 1.6cqw 2.2cqw rgba(0,0,0,.5)}
.cw-grab span{position:absolute;inset:1.3cqw;border-radius:50%;display:grid;place-items:center;text-align:center;line-height:1.05;padding:0 1.2cqw;text-wrap:balance;text-shadow:0 1px 0 rgba(255,255,255,.55);
  background:radial-gradient(58% 32% at 50% 15%,rgba(255,255,255,.88),rgba(255,255,255,0) 72%),radial-gradient(72% 38% at 50% 98%,rgba(255,244,190,.5),rgba(255,244,190,0) 70%),radial-gradient(circle at 50% 42%,#ffe37a 0%,#ffbf2e 44%,#f08a0c 76%,#a94f00 100%);
  box-shadow:inset 0 .5cqw .7cqw rgba(255,255,255,.6),inset 0 -1.3cqw 1.6cqw rgba(150,62,0,.5),inset 0 0 0 .3cqw rgba(120,50,0,.5),0 1.1cqw 0 #8a4a00,0 1.1cqw 0 .55cqw #170a33,0 0 0 .55cqw #170a33;
  transition:transform .08s,box-shadow .08s,filter .2s}
.cw-grab:hover span{filter:brightness(1.06)}
.cw-grab:active span,.claw.cw-busy .cw-grab span{transform:translateY(.8cqw);box-shadow:inset 0 .5cqw .7cqw rgba(255,255,255,.5),inset 0 -1.3cqw 1.6cqw rgba(150,62,0,.5),inset 0 0 0 .3cqw rgba(120,50,0,.5),0 .3cqw 0 #8a4a00,0 .3cqw 0 .55cqw #170a33,0 0 0 .55cqw #170a33}
.claw.cw-busy .cw-grab::before{animation-play-state:paused;opacity:.45}
.cw-grab:focus-visible{outline:.9cqw solid #fff;outline-offset:1.8cqw}
.cw-grab:disabled{cursor:default}
.claw.cw-done .cw-grab:disabled span{filter:saturate(.5) brightness(.8)}
.claw.cw-done .cw-grab:disabled::before{opacity:.3;animation-play-state:paused}
.claw.cw-has-sound .cw-lcd{right:19.4cqw}
.cw-sound{right:8.6cqw;top:109.4cqw;width:7.6cqw;height:7.6cqw;min-width:22px;min-height:22px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;color:rgba(255,255,255,.75);background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.2)}
.cw-sound svg{width:55%;height:55%}
.cw-sound[aria-pressed="true"] .off,.cw-sound[aria-pressed="false"] .on{display:none}

/* ---- the won toy jumps out of the prize door and lands big in front of the tank ---- */
.cw-pop{--lx:29cqw;--ly:-71cqw;left:6.6cqw;top:122.4cqw;width:29cqw;height:24cqw;pointer-events:none;z-index:4}   /* --lx, --ly: where the toy lands, from the door (a skinned machine moves both) */
.cw-pop .cw-toy,.cw-pop .cw-rays{position:absolute;left:50%;top:50%;opacity:0}
.cw-pop .cw-toy{width:66.3cqw;height:66.3cqw;margin:-33.15cqw 0 0 -33.15cqw}   /* laid out at its biggest and only ever scaled down: Safari paints a scaled-up layer soft */
.cw-pop .cw-toy canvas{width:100%;height:100%;display:block}
.cw-pop .cw-rays{width:92cqw;height:92cqw;margin:-46cqw 0 0 -46cqw}
.cw-pop .cw-rays canvas{width:100%;height:100%;display:block}
.cw-pop.go .cw-toy{animation:cw-pop 1.5s cubic-bezier(.2,.9,.3,1) 1 forwards}
/* the rays: one burst at the prize door, where the prize comes out, and they stay there. They never move across the machine and never
   turn for ever: a layer that moved and turned at once was painted twice by iPhone Safari while the page scrolled (2 December 2026).
   One property (transform), one run, then still. */
.cw-pop.go .cw-rays{animation:cw-rays 2.6s cubic-bezier(.2,.7,.3,1) 1 forwards}
.cw-pop.go.calm .cw-rays{animation:cw-rays-out .9s ease-in 1 forwards}      /* the win is over: they go */
@keyframes cw-rays-out{from{opacity:.7;transform:scale(1) rotate(120deg)}to{opacity:0;transform:scale(1.06) rotate(132deg)}}
@keyframes cw-pop{0%{transform:translate(0,5cqw) scale(.128) rotate(-30deg);opacity:0}12%{opacity:1}34%{transform:translate(calc(var(--lx) * .2),calc(var(--ly) * .535)) scale(.615) rotate(-14deg)}62%{transform:translate(var(--lx),calc(var(--ly) - 3cqw)) scale(1) rotate(7deg)}80%{transform:translate(var(--lx),calc(var(--ly) + 1cqw)) scale(.892) rotate(-2deg)}100%{transform:translate(var(--lx),var(--ly)) scale(.923) rotate(0);opacity:1}}
@keyframes cw-rays{0%{opacity:0;transform:scale(.2) rotate(0deg)}18%{opacity:.95;transform:scale(1) rotate(30deg)}100%{opacity:.7;transform:scale(1) rotate(120deg)}}
/* a gift bursts open where it landed: it shakes, swells and goes in a flash of light (claw.js adds .burst) */
.cw-pop.burst .cw-toy{animation:cw-burst .8s cubic-bezier(.45,0,.6,1) 1 forwards}
@keyframes cw-burst{0%{transform:translate(var(--lx),var(--ly)) scale(.923) rotate(0);opacity:1}12%{transform:translate(var(--lx),var(--ly)) scale(.94) rotate(-9deg)}24%{transform:translate(var(--lx),var(--ly)) scale(.94) rotate(9deg)}36%{transform:translate(var(--lx),var(--ly)) scale(.96) rotate(-7deg)}48%{transform:translate(var(--lx),var(--ly)) scale(.98) rotate(6deg)}62%{transform:translate(var(--lx),var(--ly)) scale(1.06) rotate(0);opacity:1}100%{transform:translate(var(--lx),var(--ly)) scale(1.7) rotate(0);opacity:0}}
.cw-pop::after{content:"";position:absolute;left:50%;top:50%;width:70cqw;height:70cqw;margin:-35cqw 0 0 -35cqw;border-radius:50%;pointer-events:none;opacity:0;translate:var(--lx) var(--ly);background:radial-gradient(circle,rgba(255,255,245,.95) 0,rgba(255,226,140,.6) 28%,rgba(255,120,200,.22) 48%,rgba(255,120,200,0) 66%)}
.cw-pop.burst::after{animation:cw-burst-flash .9s ease-out .42s 1 forwards}
@keyframes cw-burst-flash{0%{opacity:0;scale:.3}28%{opacity:1;scale:1}100%{opacity:0;scale:1.5}}
/* the prize itself springs out of the gift's flash, big and centred in front of the window, before the prize card comes up (the founder,
   2 December 2026: no empty window while the card is on its way). claw.js fills .cw-prize-pic with the picture the page sends. */
.cw-pop .cw-prize{position:absolute;left:50%;top:50%;width:74cqw;height:54cqw;margin:-27cqw 0 0 -37cqw;transform:translate(var(--lx),var(--ly));opacity:0;pointer-events:none}
.cw-prize-glow{position:absolute;inset:-12cqw -4cqw;border-radius:50%;opacity:0;background:radial-gradient(closest-side,rgba(255,248,210,.92),rgba(255,214,110,.5) 40%,rgba(255,110,200,.16) 68%,rgba(255,110,200,0))}
.cw-prize-pic{position:absolute;inset:0;display:grid;place-items:center;opacity:0}
.cw-prize-pic>*{display:grid;place-items:center;width:100%;height:100%}
.cw-prize-pic img,.cw-prize-pic svg{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 2.2cqw 2.6cqw rgba(0,0,0,.55))}
.cw-prize-pic .cw-medal{width:46cqw;height:46cqw;border-radius:50%;color:var(--m-ink,#3b2200);background:radial-gradient(circle at 32% 26%,var(--m1,#fff6c8),var(--m5,#f5c84b) 34%,var(--m2,#c98a1c) 70%,var(--m4,#8a5a0a));
  box-shadow:0 0 0 1.4cqw rgba(255,236,170,.4),0 3cqw 5cqw rgba(0,0,0,.5)}      /* a prize with only an icon */
.cw-prize-pic .cw-medal svg,.pg .cw-prize-pic .cw-medal .ic{width:24cqw;height:24cqw;filter:none}
.cw-pop.reveal .cw-prize{opacity:1}
.cw-pop.reveal .cw-prize-glow{animation:cw-prize-glow 1s ease-out 1 both}
.cw-pop.reveal .cw-prize-pic{animation:cw-prize-in .9s cubic-bezier(.2,1.25,.4,1) 1 both}
.cw-pop.reveal.gone .cw-prize{opacity:0;transition:opacity .6s ease-in}
/* the prize never grows past its laid-out size (Safari keeps a layer painted at the blur of a scaled-up moment): the bounce dips instead */
@keyframes cw-prize-in{0%{opacity:0;transform:scale(.12) rotate(-14deg)}22%{opacity:1}58%{opacity:1;transform:scale(1) rotate(3deg)}80%{opacity:1;transform:scale(.95) rotate(-1deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes cw-prize-glow{0%{opacity:0;transform:scale(.3)}40%{opacity:1}100%{opacity:.85;transform:scale(1)}}

.cw-hint{margin:0;min-height:1.3em;font-size:.86rem;font-weight:700;text-align:center;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.cw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  .cw-pearl::before,.cw-bulbs i,.cw-leds i,.cw-ball::after,.cw-pop.go .cw-rays,.cw-grab::before{animation:none}
  .cw-leds i:nth-child(1){opacity:1}
  .cw-pop.go .cw-toy{animation-duration:.4s}
  .cw-pop.burst .cw-toy,.cw-pop.burst::after{animation:none}
  .cw-pop.reveal .cw-prize-pic,.cw-pop.reveal .cw-prize-glow{animation:none;opacity:1}
  .cw-flap,.cw-ball,.cw-shaft{transition:none}
}

/* ---- a machine that is a picture (claw.js opts.skin, PrizePass 2 December 2026): the picture is 2:3 like the machine, its glass cut out.
   The live tank sits behind the glass; the joystick stands on the picture's own neon ring and Grab sits on its gold button; the prize
   pops out of its door. Places are the picture's own, measured on it at 800 x 1200 (8 px = 1cqw). It has no screen: its words go to the
   line under it. ---- */
.claw.cw-skin .cw-pearl,.claw.cw-skin .cw-top,.claw.cw-skin .cw-lcd,.claw.cw-skin .cw-sound,.claw.cw-skin .cw-deck::before,.claw.cw-skin .cw-cab::before,.claw.cw-skin .cw-cab::after{display:none}
.claw.cw-skin .cw-cab{background:none;box-shadow:none;border-radius:0}
.claw.cw-skin .cw-tank{left:14.75cqw;width:71.5cqw;right:auto;top:28cqw;height:61.5cqw;border-radius:0;box-shadow:none;background:#04102a}
.claw.cw-skin .cw-frame{inset:0;width:100%;height:100%;display:block;pointer-events:none;filter:drop-shadow(0 4cqw 6cqw rgba(0,0,0,.45))}
.claw.cw-skin .cw-deck{inset:0;border-radius:0;background:none;box-shadow:none;pointer-events:none}
.claw.cw-skin .cw-deck>*{pointer-events:auto}
.claw.cw-skin .cw-stick{left:27.5cqw;top:85.85cqw;width:15cqw;height:15cqw;margin-top:0}
.claw.cw-skin .cw-sbase{display:none}
.claw.cw-skin .cw-sboot{top:calc(71% - 1.56cqw);width:5.25cqw;height:3.1cqw;margin-left:-2.62cqw}
.claw.cw-skin .cw-shaft{top:calc(71% - 5.55cqw);width:1.7cqw;height:5.55cqw;margin-left:-.85cqw;border-radius:.85cqw;background:linear-gradient(90deg,#8a5410,#fff3bf 36%,#e2ad44 58%,#7a4a10)}
.claw.cw-skin .cw-ball{top:calc(71% - 9cqw);width:7cqw;height:7cqw;margin-left:-3.5cqw;background:radial-gradient(circle at 34% 27%,#fff 0 5%,#ffb3dc 11%,#ff3fae 34%,#d4148a 62%,#6e0045 100%);box-shadow:0 0 0 .2cqw rgba(60,0,30,.7),0 .9cqw 1.4cqw rgba(0,0,0,.5),inset -.5cqw -.7cqw 1.1cqw rgba(0,0,0,.3)}
.claw.cw-skin .cw-ball::after{inset:-.8cqw;border-width:.35cqw}
.claw.cw-skin.cw-kb .cw-stick:focus .cw-ball{outline:.5cqw solid #fff;outline-offset:.6cqw}
/* the Grab button on a picture cabinet: drawn the size of the coin button painted on the cabinet (12cqw), but its box is 16cqw so a thumb
   finds it (53px on a phone, over the 44px minimum); halo, ring and face are inset by the 2cqw it grew on each side. Centred on the
   gold coin painted on the Beast cabinet (65.1cqw, 95.6cqw: measured on beast/m/claw-frame.webp) */
.claw.cw-skin .cw-grab{left:57.1cqw;right:auto;top:87.6cqw;width:16cqw;height:16cqw;margin-top:0;font-size:max(10px,2.7cqw);letter-spacing:.06em}
.claw.cw-skin .cw-grab::before{inset:1.1cqw;opacity:.55}
.claw.cw-skin .cw-grab::after{inset:1.55cqw}
.claw.cw-skin .cw-grab span{inset:2.4cqw;padding:0 .6cqw}
.claw.cw-skin .cw-grab:focus-visible{outline-offset:0}
.claw.cw-skin .cw-out{left:36.25cqw;top:115.6cqw;width:27.5cqw;height:13.75cqw;bottom:auto;background:none;box-shadow:none;border-radius:3cqw}
.claw.cw-skin .cw-flap,.claw.cw-skin .cw-out b{display:none}
.claw.cw-skin .cw-pop{left:36.25cqw;top:113cqw;width:27.5cqw;height:16cqw;--lx:.5cqw;--ly:-62cqw}
.claw.cw-skin .cw-hint{min-height:2.6em}
